A seeding client refuses to seed

Looks like I've hit a new issue. The seeding client refuses to seed one of the auto generated torrents. There's no errors generating it nor adding it, and the tracker works fine. The peer connects to the seed, but the seed closes the connection immediately (tested both in a monotorrent client and uTorrent 2.2.1, in monotorrent the seed gets removed from the peers list immediately after it's added while uTorrent periodically tries to connect but the seed closes the connection immediately).
The torrent contains a very large amount of small files, it's 163KB with only V1 hashes. I'm guessing it's something about that. Other torrents generated in the same way seed fine.
There's nothing in the log outside of this:
Client log:
[18:56:37] INFO: ConnectionManager:ipv4://xx.xx.xxx.xxx:15847/: Connection opened
[18:56:37] INFO: ConnectionManager:ipv4://xx.xx.xxx.xxx:15847/: [outgoing] Sending handshake message with peer id '-MO3000-374654087375'

Server log:
INFO: ListenManager:ipv4://yyy.yyy.yy.yyy:51952/: ConnectionReceived

Packet dump: stuck.zip

Hrm, i can't get tell from the wireshark dump as the only two messasges visible in it are the two handshakes (one going each way).

The peer connects to the seed, but the seed closes the connection immediately (tested both in a monotorrent client and uTorrent 2.2.1, in monotorrent the seed gets removed from the peers list immediately after it's added while uTorrent periodically tries to connect but the seed closes the connection immediately

Is this a private torrent? If so it's possible the connection is being closed due to the peer id reported to the tracker being different to the peer id received by the client which established the outgoing connection.
i.e.
peer A connects to the tracker and receives a list of peers, including peer B and peer B's peer id.
peer A connects to peer B
peer A sends a handshake to peer B containing peer A's peer id
peer B accepts this and responds with it's handshake , containing peer B's peer id.
peer A closes the connection if peer B reported a different peer ID to the one it expected to receive.
This is something i'm going to address as part of https://github.com/alanmcgovern/monotorrent/pull/614#issuecomment-1412700393 , though if this were actually happening in your case it should show in the seeder/leecher logs (whichever client initiates the connection should log that it's closing the connection due to the mismatch).

The torrent was set to public so I could use AddPeer for testing, so being private doesn't matter. It seems to happen more often the more files there are in the torrent, but it's not consistent at all. It happens the most often on a torrent with around 1200 files, most around 450KB. I added extra logging to the server to try to find any sort of clue as to what is happening, but it decided to work correctly after the server restart. I'll post an update if I learn anything new.

It looks like no exceptions are thrown when this happens.
It seems that after restarting the server side app, the seed always works fine, but it stops working after either restarting the client and starting the download over a few times, or after letting the seed idle for a while, not sure which one. It could also just be luck, but once it stops working it stops working for good, maybe it's something related to open connections?
If you have any test builds I could try to find the issue, let me know.

Good idea, I'll add logging to TorrentStateChanged on the server. The client is always in the Downloading state.

Alright, so the torrent keeps seeding, it doesn't error out.
Now that I've increased the open file limit to infinity, there is a change in behavior - the torrent in question still gets stuck, but now it actually does download, but at extremely low speed. The torrent has 1200+ of ~400KB files (1.7GB total, 1729 x 1.0MB pieces) and one of these downloads every minute or so, I think the delay is in between chunks being downloaded. At the same time there's a 950 file torrent (21GB total, 2707 x 8.0 MB pieces) being seeded by that very same instance, and it downloads just fine at connection speed limit.
Maybe the issue is related to having a ton of individual files that are smaller than the piece size? The client downloads only a subset of these files, around 200 or so, so maybe there's a performance issue? CPU and HDD usage of the process looks very low.

Now that I've increased the open file limit to infinity, there is a change in behavior - the torrent in question still gets stuck, but now it actually does download, but at extremely low speed. The torrent has 1200+ of ~400KB files (1.7GB total, 1729 x 1.0MB pieces) and one of these downloads every minute or so

Hrm, maybe I need to do some profiling with a 1,200 file torrent when 1000 of those are marked as 'DoNotDownload'? I can mock this scenario up pretty easily, so I'll do that and profile things to see if there's a measurable difference. The benchmarking I was trying locally was a 2,000 file torrent where each file was ~30kB, with piecesize of 1MB. I also set MaxOpenFiles to 3 to really stress things.

I'm not sure if setting files as DoNotDownload is important or not, trying to download everything at once with uTorrent after the issue happened resulted in a steady 10KBps download speed.
Now that I reduced the piece size when generating this torrent the issue seems to be resolved since I can't make it happen despite doing the exact same steps that caused the bug before.

I created a torrent with 20,000 files, each 400kB in size using a loop like:
var buffer = new byte[400 * 1024];
var span = buffer.AsSpan ();
for (int i = 0; i < 20_000; i ++) {
    span.Fill ((byte) i);
    File.WriteAllBytes (buffer, $"{i}.data");
}

Performance seems fine when:

monotorrent seeds, monotorrent downloads.
monotorrent seeds, qbittorrent downloads
qbittorrent seeds, monotorrent downloads

If you do come up with a reasonably reliable way of triggering a performance issue, do let me know the steps and i'll try to reproduce the problem again. For now it seems ok as far as I can tell. I did try leaving the seeder alone for ages, then connecting. I also tried constantly disconnecting/reconnecting the leecher.

Yeah, unfortunately I have no idea what exactly triggers the issue, changing the piece size and increasing open file limit seems to have fixed it. Maybe it's specific to running on Linux and/or .NET 6.0 stand-alone?

This sounds like the same issue I have. So I have a little game launcher which I coded (as a total noob!!) whereby players can download a game and then after they have downloaded the game, they also have the option to seed it for other downloaders.
So I am seeding my game from 4 servers using qBittorrent. Which works great, anyone that starts to download the game from my application will then download from these 4 peers, but when a player starts to share the game from my application then the application won't seed to new downloaders. Well sometimes it suddenly starts to seed to maybe one downloader, but there are sometimes maybe like 5 players downloading at the same time and still my application won't seed to any of them.
I can even do a test where i start seeding from my PC using my app and then start downloading from another PC on another network and then my seeding side just wont seed anything at all. The download side will only download from qBittorrent on those 4 servers. I still could not figure this out at all.. :(

@rjclarkewp007 Turn on debug logging (LoggerFactory.Register) and see what happens, if the connections are attempted but don't go through then maybe it's just because all clients have closed ports.

Thanks @ManlyMarco, i will give that a try as well. Just as a matter of interest, am I suppose to run something in a timed manner to update or search for more peers while busy downloading? Just asking because I mostly find that while downloading from my app and i start another download from lets say qBittorent, then my application will not download from that new downloader until the download in qBittorent is 100% complete. So it wont download chunks from an incomplete peer in other words.

@rjclarkewp007 It should be able to download just fine before 100% without you doing anything special. Maybe the tracker update speed is slow and it takes a while for the client to query for new peers.

Thanks @ManlyMarco , Yeah i am still lost with this. Have no idea why my application will not seed to others. :( While bittorrent is seeding perfectly fine haha.
Here one can clearly see bitorrent seeding to 3 downloaders:

While my application is not seeding to them at all.. :(

I am still not even sure if it is the download part which is the problem or the seeding part which is the issue here. I tried to do that logging, but have not idea how that works so i can see a log of when/if any peers try to connect etc.

oh and then all of a sudden it sees a leacher and starts to upload to only one hehe..
But i am seeding from 2 PC's with my application and only 1 computer sees this leacher. The other one not.. and both of them still not seeing the other two leachers.

Everything works fine in my app now on the latest master builds, so I'll close this issue.
@rjclarkewp007 If it never connects then maybe ports it tries to use are closed on both sides. If you still have this issue I think you should open a new issue since this one got a bit off topic.


[bzip2:x64-linux] build failure

Host Environment

OS: linux(centos 6.7)
Compiler: gcc 7.3

To Reproduce
Steps to reproduce the behavior:
./vcpkg install boost
Failure logs
The following packages will be built and installed:
boost[core]:x64-linux

boost-accumulators[core]:x64-linux
boost-align[core]:x64-linux
boost-asio[core]:x64-linux
boost-assign[core]:x64-linux
boost-beast[core]:x64-linux
boost-bimap[core]:x64-linux
boost-callable-traits[core]:x64-linux
boost-compute[core]:x64-linux
boost-context[core]:x64-linux
boost-contract[core]:x64-linux
boost-convert[core]:x64-linux
boost-coroutine[core]:x64-linux
boost-coroutine2[core]:x64-linux
boost-crc[core]:x64-linux
boost-date-time[core]:x64-linux
boost-dll[core]:x64-linux
boost-dynamic-bitset[core]:x64-linux
boost-fiber[core]:x64-linux
boost-flyweight[core]:x64-linux
boost-geometry[core]:x64-linux
boost-gil[core]:x64-linux
boost-graph[core]:x64-linux
boost-graph-parallel[core]:x64-linux
boost-hana[core]:x64-linux
boost-heap[core]:x64-linux
boost-histogram[core]:x64-linux
boost-hof[core]:x64-linux
boost-icl[core]:x64-linux
boost-interprocess[core]:x64-linux
boost-iostreams[core]:x64-linux
boost-local-function[core]:x64-linux
boost-locale[core]:x64-linux
boost-lockfree[core]:x64-linux
boost-log[core]:x64-linux
boost-metaparse[core]:x64-linux
boost-msm[core]:x64-linux
boost-multi-array[core]:x64-linux
boost-multi-index[core]:x64-linux
boost-multiprecision[core]:x64-linux
boost-nowide[core]:x64-linux
boost-odeint[core]:x64-linux
boost-outcome[core]:x64-linux
boost-parameter[core]:x64-linux
boost-parameter-python[core]:x64-linux
boost-phoenix[core]:x64-linux
boost-poly-collection[core]:x64-linux
boost-polygon[core]:x64-linux
boost-pool[core]:x64-linux
boost-process[core]:x64-linux
boost-program-options[core]:x64-linux
boost-property-map[core]:x64-linux
boost-property-tree[core]:x64-linux
boost-proto[core]:x64-linux
boost-ptr-container[core]:x64-linux
boost-python[core]:x64-linux
boost-qvm[core]:x64-linux
boost-random[core]:x64-linux
boost-safe-numerics[core]:x64-linux
boost-scope-exit[core]:x64-linux
boost-serialization[core]:x64-linux
boost-signals2[core]:x64-linux
boost-sort[core]:x64-linux
boost-spirit[core]:x64-linux
boost-stacktrace[core]:x64-linux
boost-statechart[core]:x64-linux
boost-static-string[core]:x64-linux
boost-test[core]:x64-linux
boost-thread[core]:x64-linux
boost-timer[core]:x64-linux
boost-tokenizer[core]:x64-linux
boost-tti[core]:x64-linux
boost-type-erasure[core]:x64-linux
boost-ublas[core]:x64-linux
boost-units[core]:x64-linux
boost-uuid[core]:x64-linux
boost-variant[core]:x64-linux
boost-variant2[core]:x64-linux
boost-vmd[core]:x64-linux
boost-wave[core]:x64-linux
boost-xpressive[core]:x64-linux
boost-yap[core]:x64-linux
bzip2[core]:x64-linux
libffi[core]:x64-linux
libiconv[core]:x64-linux
liblzma[core]:x64-linux
openssl[core]:x64-linux
openssl-unix[core]:x64-linux
python3[core]:x64-linux
zlib[core]:x64-linux
zstd[core]:x64-linux
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-linux...
Starting package 1/91: bzip2:x64-linux
Building package bzip2[core]:x64-linux...
Could not locate cached archive: /root/.cache/vcpkg/archives/6e/6ef5e41b2d631729a9a51d4dcb821e7fbb03788c.zip
-- Fetching https://sourceware.org/git/bzip2.git...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:85 (message):
Command failed: /usr/local/bin/git fetch https://sourceware.org/git/bzip2.git 75a94bea3918e612b879d6a11ca64b8689526147 --depth 1 -n
Working Directory: /root/Git/vcpkg/downloads/git-tmp
Error code: 128
See logs for more information:
/root/Git/vcpkg/buildtrees/bzip2/git-fetch-x64-linux-err.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_from_git.cmake:77 (vcpkg_execute_required_process)
ports/bzip2/portfile.cmake:1 (vcpkg_from_git)
scripts/ports.cmake:79 (include)
Error: Building package bzip2:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with ./vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: bzip2:x64-linux
Vcpkg version: 2020.06.15-unknownhash
Additionally, attach any relevant sections from the log files above.
Additional context
The detailed information about the "/root/Git/vcpkg/buildtrees/bzip2/git-fetch-x64-linux-err.log" is
error: Server does not allow request for unadvertised object 75a94bea3918e612b879d6a11ca64b8689526147

I have used the ./vcpkg update command, but it doesn't work

Could you download the attchments and put it to dowloads folder and try again?
bzip2-75a94bea3918e612b879d6a11ca64b8689526147.tar.gz

I was also experiencing this issue on the latest version of vcpkg and after update the issue was not solved.
The solution provided by @PhoebeHui did fix the issue.

Could you download the attchments and put it to dowloads folder and try again?
bzip2-75a94bea3918e612b879d6a11ca64b8689526147.tar.gz

OK. the solution does work. Thank you very much for your help.

Good to know it works.


Using env file to save SMS phone number for Twilio

It is better keeping Twilio account's phone number in the env file than 'hard code' in api.js

Instead of putting the number in the configs, you may want to just read it from the API and provide it to the user.  Note that you may need to provide the user with a choice (i.e. a drop down) if the user has multiple phone numbers in their Twilio account.  See https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource for additional documentation.


Hyperparameter settings for some models

Hi, Jianqing, thank you very much for your open-source project, it's great work and helped me a lot in my studies. Recently, I ran the FedRep and FedALA models on the Cifar10 dataset under the Pathological heterogeneous setting， the hyperparameters I used were  ''python main.py -lr 0.005 -lbs 10 -nc 20 -jr 1 -nb 10 -data Cifar10 -m cnn -algo FedXXX -gr 2000 -did 0''. The results are 91.14 for  FedRep and 91.75 for FedALA. There is a gap of about 0.7% compared to what is reported in Table 2 of the FedALA paper. So I want to ask for help on how to tune my hyperparameters.  Thanks again for the great work on the project.

Thank you for your attention! As mentioned in the README.md, this project updates gradually, and some basic settings may also change, so the gap of 0.7% is negligible in this case. I typically use grid search to tune hyperparameters.

I got it. Thanks for your reply.


[Adaptive Card - InputsWithValidation.json]: Auto scroll is not working while navigate on the input with validation screen.

Test Environment:
Device: iPhone 11
iOS: 15.5
Application: Adaptive Cards
App Version: 1.0 (2.4.0-beta.20220612.1)
Screen Reader: Voice Over
Repro Steps:

Launch Adaptive Cards iOS application.
Home screen will appear.
Activate Voice over
Navigate to "V1.3" control and select it.
Navigate to 'Scenarios' control and activate it.
Navigate to 'InputWithValidation.json' and activate it.
Perform right swipe and observe the issue.

Actual Result:
Auto scroll is not working when navigating on the input with validation screen using swipe gesture.
Expected Result:
Auto scroll should be work properly when navigate the screen through the swipe gesture.
User Experience:
If the auto scroll will not work on the Inputs with validation screen then it will impact the screen reader user as they will get confused about the elements.
MAS Reference:
https://liquid.microsoft.com/Web/Object/Read/MS.Accessibility/Requirements/04.03.01
"Have feedback to share on Bugs ? Please help fill Trusted Tester Bug Feedback (office.com) “
https://user-images.githubusercontent.com/95913748/176499387-7b842aa7-8dc2-4bfb-aed7-39bb5f9b5d30.MP4

Hi @vagpt,
The auto scrolling function has to be provided by sample app.
AdaptiveCards does not have scrolling function.
Since sample is not facing outside audience. I will close this issue.

Closing this issue as this is not in our scope.


Include Application Notes in CSV/JSON

Hello!
Program admins can add a note to an application they are reviewing. However, exporting an application to PDF or downloading a CSV/JSON does not include the note.
Is it possible to include program admin notes when downloading application data?
This is not high priority but it has been requested by a City of Bloomington department in the process of transitioning to Civiform.

@msprenke are you with us closing this issue? I believe this went out in the last release.

Slight miscommunication--my apologies. This one is still open, and is being tracked here: https://github.com/civiform/civiform/issues/7366
inform: @isabelcshaw and @msprenke

This is done now, right @swatkat1?

Not in JSON but CSV. I don't think JSON was mentioned in Miguel's ticket.


anki: 2.1.60 -> 2.1.61

This is a rote update. It turns out while getting #221229 ready to merge, upstream released a new version, so we get to update again already.
This update was very straightforward. I updated hashes, grabbed the Cargo.lock from their repo, and verified that there was nothing in the git log for python/requirements.* so we don't have to change anything with our list of python dependencies.
We got to drop two patches that were upstreamed.
Description of changes
Upstream changelog:
https://github.com/ankitects/anki/releases/tag/2.1.61
Things done

Built on platform(s)

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

[ ] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

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

[x] Fits CONTRIBUTING.md.

@ofborg build anki


Fatal error: Class 'Saferpay' not found

Hi,
When I try to implement Saferpay I got this fatal error:
Fatal error: Class 'Saferpay' not found

I followed the readme but I can't make it work. I use a lot of other class and maybe it's a conflict bewteen classes and namespaces? Here is my composer.json file:
{
	"require": {
		"lichtner/fluentpdo": "dev-master",
		"respect/validation": "0.7.*@dev",
		"michelf/php-markdown": "1.3",
		"ircmaxell/password-compat": "dev-master",
		"phpmailer/phpmailer": "dev-master",
		"mobiledetect/mobiledetectlib": "dev-master",
		"frameworks/jquery": "dev-master",
		"components/modernizr": "dev-master",
		"donatj/phpuseragentparser": "*",
		"ifsnop/mysqldump-php": "dev-master",
		"Chumper/Zipper": "dev-master",
		"hashids/hashids": "1.0.0",
		"whatwedo/postfinance-e-payment": "dev-master",
		"kriswallsmith/buzz": "dev-master",
		"kriswallsmith/buzz": "~0.9",
		"ensepar/html2pdf": "dev-master",
		"psr/log": "1.0.*",
        "payment/httpclient": "1.0.*",
        "payment/httpclient-implementation": "~1.0"
	},
	"minimum-stability": "dev",
	"require-dev": {
        "payment/httpclient-buzz": "~1.1",
        "phpunit/phpunit": "3.7.*"
    },
	"autoload": {
        "files": [
			"app/core/Session.php",
			"app/classes/Paypal.php"
		],
		"psr-0": {
			"configuration": "app/classes",
			"Payment\\Saferpay\\": "src"
		}
	}
}

As I said, I use other payment classes for a small shop. Can you help me?
I tried to use it in a other project with only the files from this repo and it's working. I just copied the content of your files and everything was okay but when I mix it with my project it doesn't find the classe. And when I indicate the namespace, my other classes doesn't work. I use a MVC pattern.

@beeInteractive Hello, whats the reason you do not use the composer.json of the repository?
https://github.com/payment/saferpay#with-buzz

Is it not right to include the content of the composer.json from this repo into my composer.json? Can you explain me how to do it? I've always did this with my other projects:
Include the packages I need, the with the "use" keywords in my files and then "new class". But here, it doesn't seem to work..

@beeInteractive for vendors like this library there is the require part, better use something like this
{
    "require": {
        "lichtner/fluentpdo": "dev-master",
        "respect/validation": "0.7.*@dev",
        "michelf/php-markdown": "1.3",
        "ircmaxell/password-compat": "dev-master",
        "phpmailer/phpmailer": "dev-master",
        "mobiledetect/mobiledetectlib": "dev-master",
        "frameworks/jquery": "dev-master",
        "components/modernizr": "dev-master",
        "donatj/phpuseragentparser": "*",
        "ifsnop/mysqldump-php": "dev-master",
        "Chumper/Zipper": "dev-master",
        "hashids/hashids": "1.0.0",
        "whatwedo/postfinance-e-payment": "dev-master",
        "kriswallsmith/buzz": "dev-master",
        "kriswallsmith/buzz": "~0.9",
        "ensepar/html2pdf": "dev-master",
        "psr/log": "1.0.*",
        "payment/saferpay": "~3.0",
        "payment/httpclient": "1.0.*",
        "payment/httpclient-implementation": "~1.0"
    },
    "minimum-stability": "dev",
    "require-dev": {
        "payment/httpclient-buzz": "~1.2",
        "phpunit/phpunit": "3.7.*"
    },
    "autoload": {
        "files": [
            "app/core/Session.php",
            "app/classes/Paypal.php"
        ],
        "psr-0": {
            "configuration": "app/classes"
        }
    }
}

I followed your composer.json file and then, in my productController I try this:
<?php
namespace Payment\Saferpay;

use Payment\HttpClient\BuzzClient;
use Payment\Saferpay\Data\PayInitParameter;

$saferpay = new Saferpay;
$saferpay->setHttpClient(new BuzzClient());

var_dump($saferpay);

/**
* Products controller
*/
class ProductsController extends Controller
{
	function index() {
	}
}

The var_dump shows me some data from the Saferpay classe but I got this other error:
Fatal error: Class 'Payment\Saferpay\Controller' not found in /Users/Home/Sites/shop.dev/app/controllers/ProductsController.php

@beeInteractiveYour own code should be in a diffrent namespace, not at Payment\Saferpay\ProductsController

But I don't use any namespaces anywhere in my code.. And it always worked until now

Well you do, in your example, remove the namespace row, in your code and
try it again.
Am 16.02.2015 08:40 schrieb "Yves Engetschwiler"<EMAIL_ADDRESS>
But I don't use any namespaces anywhere in my code.. And it always worked
until now
—
Reply to this email directly or view it on GitHub
https://github.com/payment/saferpay/issues/12#issuecomment-74469653.

When I remove the line "namespace Payment\Saferpay;" I got this other error: Fatal error: Class 'Saferpay' not found..

@beeInteractive replace the namespace Payment\Saferpay; with use Payment\Saferpay;

@beeInteractive please take a look within the phpdoc: http://php.net/manual/en/language.namespaces.php, you should understand it, to be able using modern libraries.

Yes it worked! Thank you for the time!

you're welcome


Clarify NIST license

I was under the impression that the NIST CODATA is in the public domain, but I could not find any good pointers to that on  https://www.nist.gov/srd. The only thing I could find is https://www.nist.gov/srd/public-law which is troublesome and not open data / open source, so if the data used by QCElemental is under that license, it is unclear whether QCElemental could be shipped by Linux distributions like Debian or Red Hat that require Open Source.
The top-level LICENSE file does not seem to cover that so it would be good if that could be clarified.

For the physconst, there's "This dataset is intended for public access and use." from here. But it looks like SRD is under gov't copyright. We could certainly add that language to files in qcel. It looks like NIST is encouraging more API access but that page is only a month old and isn't best suitable for this project. In practice, what qcel does is no different from every quantum chemistry program that grabs from NIST, then stuffs the numbers in a header, not to be changed for the next decade.
Thanks for pointing out the licensing issue. Do you think that the public use statement is enough?

For the physconst, there's "This dataset is intended for public access and use." from here.

Well, that field can be "public", "restricted public" or "non-public" according to https://www.nist.gov/director/https://project-open-data.cio.gov/v1.1/schema/#accessLevel - I think anything else than "public" would be not enough for any interpretation of Open Data. But just being "public" usually isn't enough either.

But it looks like SRD is under gov't copyright. We could certainly add that language to files in qcel. It looks like NIST is encouraging more API access but that page is only a month old and isn't best suitable for this project. In practice, what qcel does is no different from every quantum chemistry program that grabs from NIST, then stuffs the numbers in a header, not to be changed for the next decade.

Yeah, I understand. This (open data vs. open source) is a recurring issue with Free Software - Physicists think it's crazy to edit the fundamental constants in any way, but Free Software people think you should entirely be able to do so.

Thanks for pointing out the licensing issue. Do you think that the public use statement is enough?

Probably not, as this got flagged by the Debian archive admins when they reviewed qcelemental for archive inclusion. "Public use" is just not enough with respect to the Free Software Definition, which requires you are allowed modify the project and ship that.
Not sure what to do here, is there a solution that does not involve the US government relicensing NIST data, but still makes it possible to build PSI4? Last I checked qcelemental was a required depedency (which is why I packaged it for Debian).

In the concern whether qcel is allowed to use the data as we have? Or whether someone could modify NIST data legally? The latter seems out of the scope of this project. If someone did do it, qcel is positioned to allow it because everything (physconst, covalent radii, vdW radii, except for periodic table but that could be added) is under "contexts", so the new dataset gets a new label and users can access it alongside other versions.
If the concern is the former, that sounds rather harder to solve. But I think one would have to pull most all qc programs, as they've all got this data in a header or scattered somewhere, just more deeply that qcel has.
And yes, qcel is a req'd dependency for psi4 and all qcarchive. have to depart.

Side question: I guess nist_data/srd121_nist-codata-fundamental-physical-constants-2014-metadata.json is required for license compliance and/or technical reasons?

As kind of a follow-up to this, we got qcelemental into Debian with just removing raw_data/nist_data/srd121_nist-codata-fundamental-physical-constants-2014-metadata.json from it, under the working theory that this file is not essential for operation.
Still would be good to have this clarified properly, but at least it's not an immediate showstopper for Psi4 in Debian/Ubuntu.

Sorry, I missed your 3 Nov post. Yes, none of raw_data/ are needed for operation. Thanks for finding a way to shepherd the package into Debian.


Anybody can help me ?I want know how many records has been changed (or  by delete) by using createQuery( update delete ....etc...)

I defined a repository in my foxx,but i don't know how to do ......i just want to know how may records has been changed or deleted....thanks
  Repository.prototype.updatePassword = Foxx.createQuery({
    query: 'for user IN watchdog_comment filter user.id == @id update user with {content: @content} in watchdog_comment',
    params: ['id', 'content']
  });

The HTTP API can optionally return a count, but I don't know if it can return the count without returning the actual documents that changed:
https://docs.arangodb.com/HttpAqlQueryCursor/AccessingCursors.html

what should i do ? @fceller @dothebart @pluma @hkernbach

hm, if you use the db._query() you will get a cursor. on the cursor you then cat call getExtra() which gives you :
a=db._query("for u in _users return u");
a.getExtra()
{
  "stats" : {
    "writesExecuted" : 0,
    "writesIgnored" : 0,
    "scannedFull" : 1,
    "scannedIndex" : 0,
    "filtered" : 0
  },
  "warnings" : [ ]
}

https://docs.arangodb.com/Upgrading/UpgradingChanges23.html
hopefully foxx has wrapped that @pluma?

@realdog @dothebart @pluma It seems that the query generated and run via Foxx.Repository.createQuery() only returns the raw results, but no result meta data, such as the number of modified documents. I think this should be added because it's not an exotic use case.
However, the following code will do this (inside or outside of Foxx):
var db = require("org/arangodb").db;
// set bind parameter values
var bindParameters = { "key": "someId", "@collection" : "_users" };
// set query string
var query = db._query("FOR doc IN @@collection FILTER doc._key != @key RETURN doc", bindParameters);
// run query
var result = query.toArray();
// get statistics
var stats = query.getExtra();

// print results
require("console").log(result, stats);

The Foxx.createQuery function is intended as a high-level wrapper around db._query and does not expose the underlying result object directly.
The documentation should be updated with a reference to db._query and why you may want to chose one over the other. We should also probably rethink this feature for 3.0 as I think the distinction is not very easy to understand.

@pluma thank u very much

@pluma  I  put the code into 'repository' ， but not into controller......beacuse i think..... maby ............its more efficient....


fix(commands/jira_status_reconciliation): exception due to missing ar…

…gument
Description
Using the script jira_status_reconciliation, it appears there is a bug where a function does not have enough arguments. It looks like it is related to an issue raised some time ago: https://github.com/DefectDojo/django-DefectDojo/issues/4856
The bug appears only when there were some changes in JIRA, and the tool tries to sync in DefectDojo.
Test results
N/A
Documentation
N/A

Hi @yohboy thank you for the PR! Unfortunately, it was already fixed on the dev branch by #7460
It will be in the next minor release coming this upcoming Monday

Hi @Maffooch, it is great news, I didn't think to check the dev branch... Just lost a few times debugging ahah. Happy to know it will be released soon :) Thanks!


On SmartTable, the sorterValue doesn't work since 4.0.1

On the SmartTable component, the sorterValue props doesn't work anymore since v4.0.1.
I don't have access to the react-pro repo so I don't know the diffs, but by looking at source code, I have a suspect : it would be because there is
previousSorterValue.current = sorterValue
at line 114 on CSmartTable.tsx, then it is checked at line 329 :
JSON.stringify(previousSorterValue.current) !== JSON.stringify(sorterValue) && setSorterState({ ...sorterValue })
As the previousSorterValue was already updated, setSorterState would not be called.

Fixed in v4.0.2

It works, thank you


Divs with class "ProducerPlotTooltip" should be not displayed

The plot numbers appear on Creating new Asset before selecting category.
On create new asset the set display:none to ProducerPlotTooltip class with jQuery css command or css

41641af1e2e9f9f80d9b262da7996a55f9a91a06

Taso to ProducerPlotTooltip emfanizetai afou dialeksw to category decoration kai patisw to "Select an MTL file"

Fixed the right one in 7c2bf268d0d019d8fdc1f0904e42406efa1e5169


Tensorflow EnasTrainer: how to provide batch size

Environment:

NNI version: 1.8
NNI mode (local|remote|pai): local
Client OS: ubuntu 18.04
Server OS (for remote mode only):
Python version: 3.8.6
PyTorch/TensorFlow version: Tensorflow 2.3.1
Is conda/virtualenv/venv used?: venv
Is running in Docker?: no

Error message:
ValueError: If a RNN is stateful, it needs to know its batch size. Specify the batch size of your input tensors:
- If using a Sequential model, specify the batch size by passing a `batch_input_shape` argument to your first layer.
- If using the functional API, specify the batch size by passing a `batch_shape` argument to your Input layer.

What issue meet, what's expected?:
I want to use enas in tensorflow for my own dataset and don't know how to provide RNN the batch size. I tried a lot of possibilities where to put in the shape, but I'm getting always this error. I tried to use the EnasTrainer with subclassing model and with using a sequential model, but for both it is the same error. I'm very new into it and don't know how to solve this.
How to reproduce it?:
import tensorflow as tf
import tensorflow.keras as k
from tensorflow.keras import Model
from tensorflow.keras import Input
from tensorflow.keras.layers import BatchNormalization
from tensorflow.keras.layers import Activation
from tensorflow.keras.layers import Flatten
from tensorflow.keras.layers import MaxPool1D

from functools import partial
import argparse
import sys

from nni.nas.tensorflow.enas import EnasTrainer

class Net(Model):
    def __init__(self):
        super().__init__()
        self.bn1 = BatchNormalization()
        self.conv1 = Conv1D(
            filters=5,
            kernel_size=8,
            strides=3,
            use_bias=False,
            padding='valid',
            quantizer=Binarize(),
            kernel_constraint=ChebyshevDistance(1.)
        )
        self.bn2 = BatchNormalization(scale=False)
        self.fc1 = Dense(units=1, activation='relu')
        #self.act1 = partial(Activation, 'relu')
        self.pool1 = MaxPool1D(
            pool_size=8,
            strides=6
        )
        self.conv2 = Conv1D(
            filters=3,
            kernel_size=1,
            use_bias=False
        )
        self.bn3 = BatchNormalization(scale=False)
        self.fc2 = Dense(units=1, activation='relu')
        self.conv3 = Conv1D(
            filters=3,
            kernel_size=5,
            use_bias=False
        )
        self.bn4 = BatchNormalization(scale=False)
        self.fc3 = Dense(units=1, activation='relu')
        self.conv4 = Conv1D(
            filters=6,
            kernel_size=3,
            use_bias=False
        )
        self.bn5 = BatchNormalization(scale=False)
        self.fc4 = Dense(units=1, activation='relu')
        self.pool2 = MaxPool1D(
            pool_size=2,
            strides=2
        )
        self.conv5= Conv1D(
            filters=3,
            kernel_size=2,
            use_bias=False
        )
        self.bn6 = BatchNormalization()
        self.fc5 = Dense(units=1, activation='relu')
        self.pool3 = MaxPool1D(
            pool_size=4,
            strides=4
        )
        self.pool4 = MaxPool1D(
            pool_size=3,
            strides=3
        )
        self.flat = Flatten()
        self.dense = Dense(
            units=1,
            use_bias = False,
            quantizer=Binarize(),
            kernel_constraint=ChebyshevDistance(1.)
        )
        self.bn7 = BatchNormalization()
        self.fc6 = Dense(units=1, activation='relu')

    def call(self, inputs):
        x = self.bn1(inputs)
        x = self.conv1(x)
        x = self.bn2(x)
        x = self.fc1(x)
        x = self.pool1(x)
        x = self.conv2(x)
        x = self.bn3(x)
        x = self.fc2(x)
        x = self.conv3(x)
        x = self.bn4(x)
        x = self.fc3(x)
        x = self.conv4(x)
        x = self.bn5(x)
        x = self.fc4(x)
        x = self.pool2(x)
        x = self.conv5(x)
        x = self.bn6(x)
        x = self.fc5(x)
        x = self.pool3(x)
        x = self.pool4(x)
        x = self.flat(x)
        x = self.dense(x)
        x = self.bn7(x)
        x = self.fc6(x)

        return x

def accuracy_metrics(y_true, logits):
    return {'enas_acc': accuracy(y_true, logits)}

def accuracy(y_true, logits):
    # y_true: shape=(batch_size) or (batch_size,1), type=integer
    # logits: shape=(batch_size, num_of_classes), type=float
    # returns float
    batch_size = y_true.shape[0]
    y_true = tf.squeeze(y_true)
    y_pred = tf.math.argmax(logits, axis=1)
    y_pred = tf.cast(y_pred, y_true.dtype)
    equal = tf.cast(y_pred == y_true, tf.int32)
    return tf.math.reduce_sum(equal).numpy() / batch_size

def main(argv):
    print("\n##############\n", tf.__version__, "\n#############\n")
    parser = argparse.ArgumentParser(description='Train a model on data sets.')
    parser.add_argument('savepath', metavar='SAVEPATH')
    parser.add_argument('datasets', metavar='DATASET', nargs='+')
    args = parser.parse_args(args=argv)

    x_train, y_train, x_valid, y_valid, x_test, y_test = get_data(args.datasets)
    dataset_train = (x_train, y_train)
    dataset_valid = (x_valid, y_valid)

    net = Net()
    net.build(input_shape=(256, 5760, 1))

    trainer = EnasTrainer(
        net,
        loss=k.losses.BinaryCrossentropy(),
        metrics=accuracy_metrics,
        reward_function=accuracy,
        optimizer=k.optimizers.Adamax(0.01),
        batch_size=256,
        num_epochs=2,
        dataset_train=dataset_train,
        dataset_valid=dataset_valid,
    )

    trainer.train()

if __name__ == "__main__":
    main(sys.argv[1:])

Additional information:
I am using my own function for getting the data, so you cannot reproduce it. But maybe you see where I have to put in the batch size for avoiding this error. Many thanks in advance!

Your model does not contain "mutables" like LayerChoice or InputChoice, so there is nothing for ENAS to search.

Okay, thanks, it works now.


Mark RFC 1201 (naked functions) superseded by RFC 2972 (constrained naked functions)

See the FCP at https://github.com/rust-lang/rust/issues/32408#issuecomment-1016931986 ; I think we should consider that FCP to also cover this PR.


Replace CommutativeMonoid by simple Monoid everywhere.

It looks like the code does not use any properties of CommutativeMonoid and Monoid should be enough. Also, it could be a bit more tidy if import cats.Monoid is used instead of import cats.kernel.Monoid. Double check with @t3hnar in case I mixed it up.

It looks like it is required after all as values might be aggregated randomly. See foldMap documentation for more details: https://github.com/evolution-gaming/scache/pull/181


[$1000] App displays last image even when we preview first image on android chrome

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open the app in android chrome
Open any report
Send 3-4 images
Open first image in preview and scroll to last image
Click on mobile back and again open first image
Again click on mobile back and open first image and now see that app displays last image instead of first image on which we clicked

Expected Result:
App should display correct image in preview on android chrome
Actual Result:
App displays last image even after clicking first image when we send multiple messages, open first image, scroll to last image, close   and open first image and repeat few times
Platforms: android chrome
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[x] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.49-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43995119/52e9c6ee-5431-4d73-82d1-980461c075ea
https://github.com/Expensify/App/assets/43995119/5d7f5a53-2e0d-4b4a-b5d2-bd0213750f5a
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690957918828549
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01b2f93e5871d2c7e0
Upwork Job ID:<PHONE_NUMBER>301753856
Last Price Increase: 2023-08-12

No proposal yet

The root cause same with issue #23546 not only safari, in my proposal have described

Closing out as dupe of https://github.com/Expensify/App/issues/23546


[Suggestion] Split or separate model downloads

It's really confusing that for example the VGGFace model still runs but with horrible results in case the model didn't download successfully due to Google Drive getting overwhelmed by the amount of download requests on those links.
My preferred suggestion is to at least upload the weight files to Github instead of Google Drive and it's always possible to split files that are > 100MB into smaller .zip files so it shouldn't pose an issue. I can do that and start a pull request if you want to.
If that's not possible, at least the structure of the base model files should be improved to be more consistent cause there is a pattern there and it would be much better if it explicitly separates model downloads by not having them under loadModel() cause again it's confusing for the VGGFace model that if the download fails then the model still gets built yielding incorrect results.

You can follow the same path used by face_recognition by having a separate repo like this one.

I uploaded the pre-trained weights to github releases: https://github.com/serengil/deepface_models/releases/tag/v1.0
Besides, google drive referenced urls changed to github in the source code.
deepface 0.0.63 is live! thank you for guiding me.


Add JSON Documentation & Document Generator

Adds document generator to convert JSON schema into HTML files. Also included the HTML version of the current schema.
Preview - https://noursaidi.github.io/udmi/schema/index.html
Suggest that GitHub Pages is enabled on the docs directory to allow it to be viewed nicely from the web.

I've now added the more basic descriptions to this PR and many of the descriptions which already exist in the current documentation

Resolved pre-review comments and moved directory into gencode/docs. Most of the more straightforward definitions which already exist in the current documentation have been copied over, rest of definitions to come later.
New web preview link - https://noursaidi.github.io/udmi/gencode/docs/

Indent fixed - ready to be merged now


Test for project existence in deploy.sh does not use parameterized project name

The deploy.sh code that tests for the pre-existence of the specified project does not actually check the project as specified by the input project-name parameter.
oc project &> /dev/null
if [ $? -ne 0 ]; then
    echo "Creating new Openshift project : $PROJECT_NAME"
    oc new-project $PROJECT_NAME
else

should be:
oc project $PROJECT_NAME &> /dev/null
if [ $? -ne 0 ]; then
    echo "Creating new Openshift project : $PROJECT_NAME"
    oc new-project $PROJECT_NAME
else

Fix tested in master branch.


Class field type safety

I was wondering about how Flow can possibly support public class fields if the proposal solidifies as it is, without leaving ambiguity whether the programmer meant a PublicFieldDefinition without Initializer + a type annotation; or the whole definition to be stripped out.
Currently the whole definition is stripped out:
/* @flow */
class Person {
  age: number;
}

transpiles to
class Person { }

Babel sandbox
However once that proposal lands in the standard another possible target can be
class Person {
  age;
}

which AFAIK has slightly different runtime semantics. This even means to me that age: number can't actually pass type check as you can't initialize a number to undefined as is the case specified in the proposal.
The other interesting thing is that the upmost code passes type check, so currently Flow turns a blind eye to uninitialized class fields. This is apparent here:
/* @flow */

class Person {
  age: number;
}

const p = new Person();

(p.age: number);
console.log(p.age);

Asserting p.age as a number passes, regardless it is undefined.
Babel sandbox Flow sandbox
I'm just curious about if this is a known issue that is going to be rectified once the proposal lands, and also how you plan to resolve the mentioned ambiguity.

We now let you do
class Person {
  declare age: number;
}

If you want the extra safety.


Sort by Date no long work

Sort by Date keyboard shortcut no longer works. Please help.

Thanks for reporting this bug!  I don't use this feature much so I wouldn't have noticed.
For this keybinding, the extension was not handling the keypress since regular Todoist had a sort-by-date binding for s.  However, it looks like Todoist has changed the keybinding for sort-by-date to instead be d.
todoist-shortcuts is already using d for marking items complete, and that is very much so in the muscle memory of me and other users.  So, I've made a change so that s will once again cause sorting by date, and this has been released in version 54.

@mgsloan thank you very much. It works now. Btw, I love this extension and can't live without it.

Great!  I'm glad that you appreciate it so much :D


Issue loading BART-large model finetuned on XSUM dataset

I 'm trying to load bart.large.xsum finetuned weights:
bart = BARTModel.from_pretrained('./bart.large.xsum/', checkpoint_file='model.pt', data_name_or_path='./xsum-bin')
The checkpoint file is download from https://dl.fbaipublicfiles.com/fairseq/models/bart.large.xsum.tar.gz
And the dict.txt file is copy from that of bart.large.cnn
But I'm getting the following error :
RuntimeError: Error(s) in loading state_dict for BARTModel:
size mismatch for encoder.embed_tokens.weight: copying a param with shape torch.Size([50264, 1024]) from checkpoint, the shape in current model is torch.Size([50265, 1024]).
size mismatch for decoder.embed_tokens.weight: copying a param with shape torch.Size([50264, 1024]) from checkpoint, the shape in current model is torch.Size([50265, 1024]).
size mismatch for decoder.output_projection.weight: copying a param with shape torch.Size([50264, 1024]) from checkpoint, the shape in current model is torch.Size([50265, 1024]).
Environment
fairseq Version： 0.10.2
PyTorch Version:   1.4.0
OS: Linux
How you installed fairseq (pip, source): pip
Python version: 3.6
CUDA/cuDNN version: 10.1

Hi, I meet the same question, do you solve this problem ? I use a totally different dictionary to preocess my corpus, and there is error:
size mismatch for decoder.embed_tokens.weight: copying a param with shape torch.Size([18000, 512]) from checkpoint, the shape in current model is torch.Size([22336, 512]).
size mismatch for decoder.output_projection.weight: copying a param with shape torch.Size([18000, 512]) from checkpoint, the shape in current model is torch.Size([22336, 512]).
How do you finetune your model? And do you know how to initiate the decoder with some command lines ?

Hi, I meet the same question, do you solve this problem ? I use a totally different dictionary to preocess my corpus, and there is error:
size mismatch for decoder.embed_tokens.weight: copying a param with shape torch.Size([18000, 512]) from checkpoint, the shape in current model is torch.Size([22336, 512]).
size mismatch for decoder.output_projection.weight: copying a param with shape torch.Size([18000, 512]) from checkpoint, the shape in current model is torch.Size([22336, 512]).
How do you finetune your model? And do you know how to initiate the decoder with some command lines ?

I find that the problem I met is caused by the mismatch between the task translation and denoise (and blame to myself). Therefore I close this issue.
And I have no idea about your issue and could not provide suggestions for you.


Is this project dead?

Is this project dead?
Haven't been updated for a year.

@cmatomic will you update to latest VLC version? https://www.videolan.org/vlc/#download

It would be best to work with the authors of VLC to get an official AppImage made as part of their build process.


Use uv project interface in template

Blog post announcing uv project interface.
Guide on how to manage projects.

It's still compatible with standard pip if a user doesn't want to use uv.

This should probably be discussed in the plugin meeting so that people can voice their opinion.

So now we can use uv directly without creating a virtual environment? Do we need to do some previous step to do this

Yes, you won't have to manually manage the environment. uv sync/ uv run for the first time will also create the lock file for you. All invocations of uv run will automatically use the correct venv and your venv will be up to date with all of the changes in the pyproject.toml file.

This should probably be discussed in the plugin meeting so that people can voice their opinion.

Makes sense, I will create a short intro for this and how to develop multiple plugins locally. In the mean time maybe Chema and others can try it out and see if it's helpful.


Edit user profile

As a user, I want to be able to change my profile information so that I keep it up to date.
Acceptance Criteria:

My Profile page has the Edit button
Clicking the Edit button shows the Profile page in editing mode (without the Edit button and with input fields pre-filled with current user information)
All fields except login name and email are editable
Page in editing mode has Save and Cancel buttons
Cancel button redirects to user profile page in the state before clicking Edit
Save button saves the edited profile information
After saving the information the user is redirected to user profile page, the edited fields are updated accordingly and the success message is displayed on top of the page

Save process：

Edit button on buttom and clickable
After clicking, redirected to edit mode with input fields for each attributes
Inputs for some fields
Click on save, redirected to myprofile page with updated information

Cancel:

Edit age
Click on cancel
Redirected to myprofile and the input field was not recorded as cancel was clicked

Problem:
upload profile pic seems to have worked, but there is another ticket for the profiel pic.

I will give a pass to this ticket, as no profile pic is mentioned.

Editing layout should be improved, it is also unresponsive currently.
Bug: no way to add/edit first name and last name.
Verified with google chrome latest on Windows 10, commit  00695fb.

Usability issues:

fields have different order on the edit profile page and on the profile page
skype contact is usually not a URL
expected URL format can be specified


Docs - Choose your own adventure Cookbook has an error in the code #473

Choose your own adventure cookbook is not running as expected.
Current behavior

When running the cookbook, I get an error.

Stack Traces
Traceback (most recent call last):
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 885, in _step
    result, new_state = _run_single_step_action(
                        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 287, in _run_single_step_action
    action.run_and_update(state, **inputs), action.name, action.schema
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/action.py", line 655, in run_and_update
    return self._fn(state, **self._bound_params, **run_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/projects/demodrive-tests/burr/run_choose_adventure.py", line 13, in start
    current_challenge = state["challenges"][0]
                        ~~~~~^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/state.py", line 432, in __getitem__
    raise KeyError(
KeyError: 'Key "challenges" not found in state. Keys state knows about are: [\'did_win\']. If you hit this within the context of an application, you want to (a) ensure that an upstream action has produced this state/it is set as an initial state value and (b) ensure that your action declares this as a read key.'

Traceback (most recent call last):
  File "/Users/spalanimalai/projects/demodrive-tests/burr/run_choose_adventure.py", line 143, in <module>
    action, state, result = app.run(halt_after=["win"])
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/telemetry.py", line 276, in wrapped_fn
    return call_fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 672, in wrapper_sync
    return fn(app_self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 1243, in run
    next(gen)
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 1186, in iterate
    prior_action, result, state = self.step(inputs=inputs)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 672, in wrapper_sync
    return fn(app_self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 843, in step
    out = self._step(inputs=inputs, _run_hooks=True)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 899, in _step
    raise e
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 885, in _step
    result, new_state = _run_single_step_action(
                        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/application.py", line 287, in _run_single_step_action
    action.run_and_update(state, **inputs), action.name, action.schema
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/action.py", line 655, in run_and_update
    return self._fn(state, **self._bound_params, **run_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/spalanimalai/projects/demodrive-tests/burr/run_choose_adventure.py", line 13, in start
    current_challenge = state["challenges"][0]
                        ~~~~~^^^^^^^^^^^^^^
  File "/Users/spalanimalai/.pyenv/versions/pretzelai/lib/python3.12/site-packages/burr/core/state.py", line 432, in __getitem__
    raise KeyError(
KeyError: 'Key "challenges" not found in state. Keys state knows about are: [\'did_win\']. If you hit this within the context of an application, you want to (a) ensure that an upstream action has produced this state/it is set as an initial state value and (b) ensure that your action declares this as a read key.'

Recommended Fix
Pass additional state. .with_state(did_win=False, challenges=challenges, current_challenge=challenges[0])
Additional context
This bug was found using an automation built by https://www.demodrive.tech/. We are looking at popular OSS projects and helping them ensure their documentation is error-proof.

@nehiljain thanks for flagging I think I have a fix - #475

@nehiljain please try again -- let me know if it doesn't work.

@nehiljain thanks for flagging I think I have a fix - #475

@skrawcz does this fix cowsay or choose your own adventure? I think you meant to mark #473 closed instead of this one.

@nehiljain yep my bad. But I have fix for that too! Thanks for the finds. Interesting tool. Will DM.


Script to convert a single user nix installation to a multi user one

I've spent a couple of days figuring out how to convert a single user nix installation on Ubuntu, there were a couple of fiddly issues so I've written instructions for this process.
@cleverca22 suggested to make this into a package then a user can nix-env -iA nixpkgs.upgrade-to-multi-user && upgrade-to-multi-user to switch to a multi user system.
This issue is mainly to remind me to package this up in a neat, safe script and add it to nixpgs.
The instructions are here https://gist.github.com/expipiplus1/e571ce88c608a1e83547c918591b149f
I'd really value some feedback on these instructions, as I'm certain that there's room for improvement.
Testers would be super too :)

This looks really useful! It might make sense to bring it up in the "Nix" repository as well as some parts of that script could be subject to change. You should read through NixOS/nix#929 which documents a similar process but AFAICT no-one has put it in an easy to use script like this. You may want to open up a PR and put it in NixOS/nix/scripts folder and update the docs to more reflect what you have in the Gist.

@matthewbauer Sure, that might be a more appropriate place for the finished script.
I'm very much expecting this to change :)

Worked for me except one step (https://gist.github.com/expipiplus1/e571ce88c608a1e83547c918591b149f#gistcomment-2268583)

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/are-there-official-docs-on-how-to-change-a-single-user-install-to-a-multi-user-one-and-vice-versa/13881/1

I feel like this script be part of Nix, even.

Hmm, I have no idea if it need to be updated.
Anyone is welcome to do so! I'm probably unlikely to get around to it any
time soon!
On Sat, 21 Aug 2021, 5:55 am John Ericson, @.***> wrote:

I feel like this script be part of Nix, even.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/16142#issuecomment-902977427,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGRJXC3F3PVPZJLJGDJYMLT53FMXANCNFSM4CGOHGGA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.


Negotiations UI improvements

Place a separator between the conflicts.

Make the tree levels difference more noticeable. Either by colors or by bold or by putting an explicit indentation.

When pressing in a negotiation on the panel, mark or distinguish which is the selected negotiation.

Add a button to clear the map of the selected negotiations and clear the selected negotiation on the panel. We now have a button that makes all the negotiations disappear or show but not just a particular trajectory

So here's my attempt at beautifying the negotiations panel, inspiration taken superficially from reddit. Instead of placing a separator, I used a vertical border to indicate the contents of a particular tree and children trees.
Apart from that, I added some paddings, border styling and removed the selected stylings to ensure that only the contents have the background color. Is the selected styles needed?

When pressing in a negotiation on the panel, mark or distinguish which is the selected negotiation.

I think removing the selected stylings does the job as the selected negotiation is now  a different color from the background.

Add a button to clear the map of the selected negotiations and clear the selected negotiation on the panel. We now have a button that makes all the negotiations disappear or show but not just a particular trajectory

You mean to have the following buttons?:

A button to clear all the current negotiations on the panel
Another button to clear the currently selected negotiation? Sort of like a reset.

So here's my attempt at beautifying the negotiations panel, inspiration taken superficially from reddit. Instead of placing a separator, I used a vertical border to indicate the contents of a particular tree and children trees.
Apart from that, I added some paddings, border styling and removed the selected stylings to ensure that only the contents have the background color. Is the selected styles needed?

Oh man! this looks good! =) What do you think if we reduce a bit the vertical space between the boxes? in order to see as many negotiations as possible before start scrolling.

I think removing the selected stylings does the job as the selected negotiation is now a different color from the background.

Is the gray the selected one, right? Looks good.

You mean to have the following buttons?:

A button to clear all the current negotiations on the panel
Another button to clear the currently selected negotiation? Sort of like a reset.

Yeah, you got it.

So here's my attempt at beautifying the negotiations panel, inspiration taken superficially from reddit. Instead of placing a separator, I used a vertical border to indicate the contents of a particular tree and children trees.
Apart from that, I added some paddings, border styling and removed the selected stylings to ensure that only the contents have the background color. Is the selected styles needed?

When pressing in a negotiation on the panel, mark or distinguish which is the selected negotiation.

I think removing the selected stylings does the job as the selected negotiation is now a different color from the background.

Add a button to clear the map of the selected negotiations and clear the selected negotiation on the panel. We now have a button that makes all the negotiations disappear or show but not just a particular trajectory

You mean to have the following buttons?:

A button to clear all the current negotiations on the panel
Another button to clear the currently selected negotiation? Sort of like a reset.

:+1: . Rounded borders is the secret sauce to make everything look good. Also shadows.
imo we can remove the "Negotation Trajectories" in the leaflet layers, since that is implied to be on when you are on the negotation panel, and off otherwise. I don't see a situation where you would want to toggle it manually.

merged


xarray.to_rasterio()

xr.open_rasterio() doesnt work with the latest xarray package (encountered in wx.to_array(..)).
can be solved easily by adding rioxarray to utils.py (or specify xarray version).

Thanks for pointing this out @benehiebl! The next release will replace xarray.open_rasterio with rioxarray.open_rasterio. I'll keep this open until that is released.

Fix is released in 0.4.0


When with player inside the minecart, and the minecart is fast enough, it will rebound at the slope upward sometimes

As the video I recorded, the first time the minecart rebound but the second time it DOES climb up successfully. I was purely just using the fabric API and Copper Rails mod. Waxed Copper Powered Rail is used to test. I found this when I tried to replace the vanilla powered rail with the waxed copper rail for a faster minecart travel in another world, and I never be able to climb up the slope. I sincerely hope you can have a look at it. (PS: Sorry for the awful expression because I am not that good at speaking English as a Chinese player)
Game Version: 1.21.1
Mods: Fabric API 0.105.0+1.21.1, Copper Rails 1.0.4+mc1.21
To reproduce:

Build a straight railway with enough copper rails to gain the max speed. Ensure at least 1 slopes.
Put a minecart and sit into it.
Use a button or some other way to start the minecart.
Normally the minecart should clime up the slope, but there is chance that it will just rebound and go back to the starting point.

NOTE: After some tests later, I find this bug might have connection with the minecart itself. And When the slope is at the edge of the chunks, it might happens more frequently.
https://github.com/user-attachments/assets/7ff582c0-db28-48b9-ab72-a620cfda5a07
https://github.com/user-attachments/assets/f9c46ce1-2842-4cb3-993b-64207915efb1

Can confirm this for 1.21.1


pandas read_excel(), DataFrame.iloc[] stubs issues

Environment data

Language Server version: 2021.7.5
OS and version: Lubuntu 21.04
Python version: 3.9.5

Code Snippet / Additional information
pandas.read_excel()
There is no @overload for the first positional argument being something other than str, namely bytes.
@overload
def read_excel(
    filepath: str,

Up-to-date docstrings snippet:
Parameters
----------
io : str, bytes, ExcelFile, xlrd.Book, path object, or file-like object

pandas.DataFrame.iloc[]
There is no @overload for a slice object with ints as an input.
class _iLocIndexerFrame(_iLocIndexer):
    @overload
    def __getitem__(self, idx: Tuple[int, int]) -> Scalar: ...
    @overload
    def __getitem__(self, idx: int) -> Series[Dtype]: ...
    @overload
    def __getitem__(self, idx: Tuple[Union[IndexType, MaskType], int]) -> Series[Dtype]: ...
    @overload
    def __getitem__(self, idx: Tuple[int, Union[IndexType, MaskType]]) -> Series[Dtype]: ...
    @overload
    def __getitem__(self, idx: Union[int, Tuple[Union[IndexType, MaskType], Union[IndexType, MaskType, int]]]) -> DataFrame: ...

Up-to-date docstrings snippet:
Allowed inputs are:

- An integer, e.g. ``5``.
- A list or array of integers, e.g. ``[4, 3, 0]``.
- A slice object with ints, e.g. ``1:7``.

Pandas has been upstreamed and no longer maintained here. https://github.com/pandas-dev/pandas-stubs I think this can be closed.


added issue and pull request templates

Added issue template and pull request template for GitHub

Thanks for your contribution! You could also consider adding the files to {{cookiecutter.project_name}}/.github, so any repository created with the template will also include your added issue templates.

It seems a few .DS_Store files were also added by accident.

I thought the .gitignore blocked .DS_Store files, ah my bad! I ll fix it

I thought the .gitignore blocked .DS_Store files, my bad! I ll fix it

No worries. The changes to the file are still being tracked, so you'll need to manually remove them. See e.g. here

I thought the .gitignore blocked .DS_Store files, my bad! I ll fix it

The files are still not removed. See the 'Files changed' tab and the link I shared earlier for ways to resolve this.


Many fields are missing from BinaryParagraph and SourceParagraph

I must have been looking at an incomplete list of fields when defining these classes. Every field appears to be enumerated throughout this page.

It appears that the definitive list of fields for source and binary paragraphs are the deb-src-control(5) manpage, hosted online here.


added logic for inactive users

I think this PR isn't necessary. You can configure the login rule however you'd like. Just a tip though since we're both students: you probably want to add a description to your PR and include a bunch of unit tests. I know the CI here is broken right now, but for best practices: always always always unit test. Take a look at the docs to learn how to unit test.

I think this PR isn't necessary. You can configure the login rule however you'd like. Just a tip though since we're both students: you probably want to add a description to your PR and include a bunch of unit tests. I know the CI here is broken right now, but for best practices: always always always unit test. Take a look at the docs to learn how to unit test.


feat(fabric): ansible decoupling for create/crypto/orderer role

Description
As a developer, I want to decouple Ansible from BAF. This is achieved by moving the extra functionality from ansible to helm charts and use ansible only for templatizing purposes only.
This issue covers the change needed for create/crypto/orderer role
State of the deployment before running of the new role (subject to change, if required)

Orderer crypto material absent from orderer vault
Ambassador certs for orderer not created

State of the deployment after running the new role (subject to change, if required)

Orderer crypto fetched from CA Tools and stored in vault
Ambassador certs created for peers and stored as k8s secrets and in vault

Acceptance Criteria

The create/crypto/orderer role should be modified in such a way that ansible is only used for templatizing purpose.
The previous and expected state of the deployment shall match the above description

I'll take this


os/mac/diagnostic: check for OpenCore

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

This configuration is not supported. Let's make brew doctor complain
about it.

Great, thanks @carlocab!


Table border colors are not being applied

In the preview, the style is being applied to the table, but later when saving the content, the border colors are not being saved

The solution is: where to render the HTML generated by the editor, put a class: .jodit-wysiwyg


Feature Request: Allow Location Option

Please add option for each webapp to allow it to get the device location and an option which it will as the user in the browser when the website it requesting the user location to ask the user if it will allow or block the location request.
This way I will be able to use Google Maps, Skip the Dishes easier. Please make this optional and disabled by default.

i need this too, great idea

Uhhh. Ahem. [clears throat as politely as possible] Any news on this one?

Similar issue to #38 - it's a privacy concern. See the discussion there.

OK, makes sense now. Relevant explanation for the record:

Once WebApps is given permission to camera/microphone/location, then the system WebView will have access to these, regardless of which site is loaded.

FYI, I have decided to implement this anyway (https://github.com/tobykurien/WebApps/commit/61c159f852b906a28e29c8ad785a9163b9a7c4b9). The paranoid can leave location permission off, and there is a per-app option to allow or deny permission.


Define ZFC as a first-order theory

We should decide whether or start with just a single binary relation, or work with a conservative extension with symbols added for emptyset, pairing, etc. The latter might be useful by itself.
We should work towards the goals of:

stating the continuum hypothesis

showing Mario's "model" of ZFC is a model of ZFC.

I think we want ZFC to be a theory in the language with a single binary relation ∈. However, when writing sentences in ZFC (like CH, and also the more complicated axioms (infinity, choice)), we want to write them in a different language L', and then write a method of transforming them into the language {∈}. Also, if ZFC' are the axioms in L', then we need to show that if ZFC'  ⊢ A then ZFC ⊢ translation(A).
I think we want ZFC to be in the language {∈}, because that will proving meta-theoretic properties probably easiest.


Todobot seemingly stopped working entirely

I've added some todo comments to my code on multiple commits now but the bot never picks them up and creates issues anymore. Examples of these commits are here and here, neither time did the bot pick them up as TODO's.
The only thing that comes to mind is that in both of these cases the commits were queued along with other commits when I pushed them but that really shouldn't matter.
So what gives?
p.s. I know they are the same todos, it was an attempt to get the bot to trigger. I temporarily removed it here

Looks like it hit some rate limiting issues. I don't have the bandwidth to solve that, but you're welcome to clone the repo and host your own instance of the app.


Rebase repo to CW-main and bump Rust version

@adairrr Could you have a look at the feature compilation?
Run

make build
cd tests/simple-contract
docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ abstractmoney/rust-optimizer-arm64:0.14.0

PS: The target directory was changed to /target from ./target in the upstream repo.
Error i'm getting:
error: unexpected argument '--features hello' found

  tip: a similar argument exists: '--features'

Which is some Bash shenanigans I (and chat-gpt) can't seem to figure out...

Wrong repo, sorry!


Way to use Lazy?

Hello !
I've been using your select in production and it's working very nicely.
Only exception is when the select contains lots of items. The whole page becomes very slow. Any idea/best practice to fix that?
I will just add it to the readme of nunntom/elm-ui-select ;)

Hello @CharlonTank
Thanks for your feedback. I'm happy to hear you're using it and it's working well.
Can I ask how many items roughly do you have in the select when you notice this slowdown? Is the page slow all the time or just when interacting with the select? Any example code?

Hey :)
22000 items 😂. Yeah it's slow all the time.
I use to setItems in the view, but I now setItems after fetching the items, but I feel like it doesn't change anything in terms of lag.
, Select.withFilter (Just Select.startsWithThenContains)
    (Select.view [ height <| px 18, Border.rounded 0, moveUp 10 ]
        { onChange = SelectAggregatMsg "full-text-select"
        , label = Input.labelAbove [ width <| px 200, moveDown 2, moveLeft 23 ] <| text "Référence/Label"
        , placeholder = Nothing
        , itemToString = aggregationToString
        }
    )
    |> Select.withMenuAlwaysBelow
    |> Select.toElement model.aggregationSearchSelects.fullTextSelect.select

Hi @CharlonTank .
Yeah, 22000 items is way too many! I did play around with lazy and keyed but i didn't see a lot of difference.
When I have a large number of possible items I tend to be fetching them from an api using Select.request and ideally the back-end will filter, sort and limit the number of returned items based on the search query so I'm never dealing with too many on the front-end.
I could add a configuration option to the select to not show any items until a minimum number of chars has been entered. That might alleviate the problem but I expect there still might be a little slowdown just filtering that number of items. I'll look into doing this.
Btw startsWithThenContains is the default filter so you should be able to remove Select.withFilter (Just Select.startsWithThenContains).

Yeah, 22000 items is way too many! I did play around with lazy and keyed but i didn't see a lot of difference.
It's weird that lazy is not able to reduce this problem in front though.

When I have a large number of possible items I tend to be fetching them from an api using Select.request and ideally the back-end will filter, sort and limit the number of returned items based on the search query so I'm never dealing with too many on the front-end.

Hey, yeah I thought of the same but the backend is in Scala and I'm not used to it and not really in charge. I'll need to understand and to create a route for that api call for sure.

I could add a configuration option to the select to not show any items until a minimum number of chars has been entered. That might alleviate the problem but I expect there still might be a little slowdown just filtering that number of items. I'll look into doing this.

Thank you

Btw startsWithThenContains is the default filter so you should be able to remove Select.withFilter (Just Select.startsWithThenContains)
Ah yeah, thank you :)

As soon as I have updates on this, I let you know.
Have a good week!

See v3.1.0 for Select.withMinInputLength
Please let me know if this helps with your issue. @CharlonTank

See v3.1.0 for Select.withMinInputLength
Please let me know if this helps with your issue. @CharlonTank

That's amazing thank you! Yeah it solved my problem!

While withMinInputLength resolves my current issue, I think there is still room for optimization in the select component when not using that prop. For example, maybe implementing lazy loading for the items by only loading the items that are currently visible in the dropdown, rather than loading all the items at once.
I'm unsure why the input text is causing lag, as I am only calling setItems when loading the large list and not in the view. @nunntom, are you available for a screenshare call to discuss further and explore these optimization opportunities?"

While withMinInputLength resolves my current issue, I think there is still room for optimization in the select component when not using that prop. For example, maybe implementing lazy loading for the items by only loading the items that are currently visible in the dropdown, rather than loading all the items at once.

Hmm. It couldn't only "load" (add to vdom) the items visible in the menu, but potentially it could incrementally add more items as the scroll reaches the bottom. That wouldn't be too hard to implement.

I'm unsure why the input text is causing lag, as I am only calling setItems when loading the large list and not in the view.

Is the input text causing lag for you now even when using withMinInputLength or are you talking about without it? I wouldn't be surprised if there is some lag because you're still running the filtering logic on that whole huge list on each keypress beyond the minimum, even though there's now less slowdown from the vdom diffing.
@CharlonTank

Btw, I realised that without adding withMinInputLength there is a way you could have got similar behaviour. A bit hacky but assuming you aren't already using Select.request:
Select.updateWith
  [ Select.request
      (\input ->
          Ok (myFilterFunction input model.items) -- your own filter function
              |> Select.gotRequestResponse input
              |> Task.succeed
              |> Task.perform SelectMsg
      )
  ]
  SelectMsg
  selectMsg
  model.select

This would also debounce the input so that it doesn't perform the filtering logic on every keypress, but only when the user pauses typing. You can configure delay and min input with Select.requestMinInputLength and Select.requestDebounceDelay.
You need to write your own filter function though, keep the list of items to filter separately in your model, and make sure to pass |> Select.withFilter Nothing in view so it doesn't filter twice.

I'm unsure why the input text is causing lag, as I am only calling setItems when loading the large list and not in the view.

Is the input text causing lag for you now even when using withMinInputLength or are you talking about without it? I wouldn't be surprised if there is some lag because you're still running the filtering logic on that whole huge list on each keypress beyond the minimum, even though there's now less slowdown from the vdom diffing.
@CharlonTank

No no, without withMinInputLength. But I'm talking about another select than this one. Why would the filtering happens at each update in the update function?

Yes, the filtering happens in the select view code, which means every time elm re-runs the view it will re-run the filtering on that huge list of yours which may happen when interacting with any other element on the page. It would be more efficient to filter in update but it would lose the ability to set items in the view which has been useful for some of my use-cases to avoid multiple sources of truth in the model. I will think about other ways round this.
In the meantime to mitigate this you can export the select view into a separate function and use Element.Lazy in your view. Then it will only run the filter when the select is updated directly. Unfortunately I can't make use of lazy internally because the view config object contains functions and so doesn't work with lazy.
The workaround above would also work to move the filtering logic into update.

@CharlonTank  Please try v3.1.1:
3.1.1
Enhancements

Optimised filtering. Previously filtering ran every time the virtual DOM re-rendered the select. This caused performance issues with large lists of items. Now the filter only runs when the input or options are changed.
Filter startsWithThenContains now uses a faster implementation.

@CharlonTank  Please try v3.1.1:
3.1.1
Enhancements

Optimised filtering. Previously filtering ran every time the virtual DOM re-rendered the select. This caused performance issues with large lists of items. Now the filter only runs when the input or options are changed.

Filter startsWithThenContains now uses a faster implementation.

I'll try that and let you know! Nice improvement!


Add an actual README.md

The CurseForge page has a nice description, it would be nice if it was copy/pasted to the README.md

Normally users shouldn't download from github unless they're already familiar with the project, github is not meant for end users in my opinion. I added the links to the binaries in the readme so people can go to the descriptions which are more end user friendly.
I'm also working on citresewn.rtfd.io and when that's done I'm planning to redo both the readme and the Modrinth/Curse descriptions.


{Network} Refine help message

Fix #2066
This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/MyronFanQiu/azure-cli-extensions.git@fix-2066-example#subdirectory=src/$EXT&egg=$EXT"

add to S174


Remove Tropo references from collab-dne-event-setup-itp/step/1

Also remove FileZilla, as it was only needed for Tropo log access

This task has been completed; closing.


440 add split file example

Ready for review. I have used this script to divide a driver back into the original files, and found it very convenient, esp. the fact that it creates a Makefile with dependencies etc.

OOps, wrong repo  - please ignore.


Handle extends option correctly in when calling tslint

Before calling the tslint linter, we need to call findConfiguration in order for extends to be resolved.
Addresses: https://github.com/kratiahuja/broccoli-tslinter/issues/9
cc: @turbo87

@turbo87: can you please try this in your project? I want to make sure this works correctly for you.

@kratiahuja seems to work! 👍
one issue I noticed though is that when I change the tslint.json file the tests are apparently not updated, but that seems to be a different issue and unrelated to fixing the extends feature.

@Turbo87 yeah i am aware of that issue. I need to track that down. Will probably do it this weekend.
I'll merge and release this today. Thanks for your help here!

<EMAIL_ADDRESS>is released!


Improve argument validation for Flash-attn + SWA

As raised by @malteos , Flash attention requires not 2.0.0+ but version 2.3.0+ to support sliding_window_width. However also, sliding-window attention is supported in the absence of Flash.
This PR changes the argument validation to 1) check for version 2.3.0 and 2) only perform this check if "flash" type attention is used. Also, it doesn't pass window_size kwarg when not required, meaning we'll never give the invalid kwarg to flash versions < 2.3.0 .

Also updates Mistral config with seqlen info following https://discord.com/channels/1144547040454508606/1144547040928481394/1156616342682751087 .


Expose wgpu's StencilOperation with bevy

Objective
Bevy should expose all wgpu types needed for building rendering pipelines.
Closes #2818
Solution
Add wgpu's StencilOperation to bevy_render2::render_resource's export.

bors r+

bors r+

network errors on crates.io
bors retry


Create Post UI

It looks like you have to sign that agreement and then reply with @googlebot I signed it! before you can merge any code in

@googlebot I signed it!

It looks like the CLA bot is still blocking your commits even though you signed the CLA. What I did was go on the link that the bot linked for "Googlers go here for more info" and checked what email was being used for each commit

@googlebot I fixed it.

@googlebot I fixed it.


Specify columns

How do I specify which columns I want in return? Example:
Database: name, surname, email.
I want in return; name surname

Right now it's not possible, but I think it's a cool feature and can give more value to this already valuable project.

please check  #550


How to implement backpressure on imap-flow?

TCP/IP is great as if you don't read the socket, once the TCP OS buffer will be full, the information will be back-propagated through the network to the client, that will slow-down its sending. Unfortunately, we break the "backpressure-chain" as, to send data on imap-flow, you also have to read them, and thus either store it or drop it.
My current workaround is closing the socket if the client sends 10 commands in a row. But it's not ideal, and still can lead to DoS: if we consider 25MB literals, with 10 commands, it's 250MB of memory that can be allocated. Doing that in 10 or 100 of connections, and you can easily trigger an OOM on the server.

We investing heavily in separating the IMAP state machine from the I/O bits. The I/O bits are now located inside of imap_next::stream::Stream  and are optional. We tried to keep Stream simple because complex I/O features should not be part of imap-next, at least for now.
If something like backpressure is necessary, I would suggest to omit imap_next::stream::Stream (you can remove it with default-features = false and implement the I/O bits yourself. The state machine should give you enough control to implement anything you want and that fits your use case.


Update fundamentalError.Rnw: insert "change"

The current version reads " can radically our assessment of the probability " and is missing a verb. (maybe it should be alter?)

Thanks! I'm doing page proofs now, this was helpful.

fixed.


1.1.0 broke MagicOnionService

Env:
Unity 2021.3.5.f1
Problem:
After 1.1.0 MagicOnionService (not StreamingHub) stopped working with error on client - "No grpc-status found on response".
How to reproduce:
Add any Service to MagicOnion sample and try using
var service = MagicOnionClient.Create<IMyService>(channel);
await service.MyMethod();

Hack fix:
In 1.1.0 some api has been changed to native api where possible if unity can support it.
Somehow returning TrailingHeadersHelpers.TrailingHeaders to previous version fixes the problem.

This is due to the change of the code for Unity 2021.3 is now for .NET Standard 2.1.
As a result, Grpc.Net.Client assembly must also be used for .NET Standard 2.1, but we do not publish custom builds at this time.
We will publish a custom Grpc.Net.Client build. We apologize for the inconvenience.


License missing?

Hello
The chart package looks very interesting, but it seems to lack a license?

Hi @vdobler
Thank you for creating and sharing a nice library!
Could you add LICENSE file?
The following page might help for choosing license.
"Choosing an OSS license doesn’t need to be scary - ChooseALicense.com"
http://choosealicense.com/
Thanks.

Done.


Migrations issue: "django_site" does not exist

I ran into this error some time ago and it has haunted me for weeks now:
django.db.utils.ProgrammingError: relation "django_site" does not exist
LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
I get this when I try to run manage.py migrate on an empty Postgres db. My workaround is to comment out my apps, run migrations, comment my apps back in and only then do the migrations of my apps run through nicely.
Turns out when I remove the cms_app.py files from my apps, the migrations will all run through nicely. Of course, they do not run through properly but I guess this links Django-CMS to the issue somehow.
Does anyone know how this might have come about?
I had this with Django-CMS 3.2.1 and 3.2.3 running Django 1.9.2

Ok, my bad, the issue was on my side. But perhaps a good reference point for others who run into this.
I am using Python 3. So I had to run python3 manage.py migrate, NOT: python manage.py migrate. That caused the issue.


unlimited priorities

Add feature to remove restriction on priorities. I am on the fence if I should allow priorities to be float or just integers.
I also have to make sure that I keep track and efficiently add the priorities without resorting to Array#sort

https://github.com/rafde/PrioritizedSubPub/commit/fe7e1da79a482c847ff8cb2626679dffe244ec48


Phone number should not be mandatory while adding contact for a client

Description
Phone number should not be mandatory while adding client details
What is the expected behaviour?
Phone number should not be mandatory while adding client details
What is the current behaviour?
Cannot add contact details of client till all details are added
How to reproduce the issue?
Screenshots or Screencast

Please provide any traces or logs that could help here.
Any possible solutions?
If the bug is confirmed, would you be willing to submit a PR?

Please check for other places where a phone number is mandatory and change it to non-mandatory.


crash for help

Hello everyone.
We are using the libuv(uv_version_string:0.10.15,uv_version:2575) on ubuntu 12.04 and have recently encountered a problem. In some cases (haven't manage to localize yet: it's hard to reproduce and it happens only with high load) the following crash is triggered:
from gdb bt
Program terminated with signal 11, Segmentation fault.
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
39	../sysdeps/unix/sysv/linux/x86_64/syscall.S: No such file or directory.
(gdb) bt
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
#1  0x000000000050b1fa in uv__epoll_wait (epfd=, events=,
nevents=, timeout=) at ../src/unix/linux-syscalls.c:282
#2  0x0000000000509c3d in uv__io_poll (loop=0xbdf580, timeout=58) at ../src/unix/linux-core.c:160
#3  0x000000000050138c in uv_run (loop=0xbdf580, mode=) at ../src/unix/core.c:317
#4  0x00000000004106e9 in main (argc=1, argv=0x7ffff77e7c68) at src/main.cpp:81
Here is the part of code in src/main.cpp:81:
uv_loop_t*  defaultloop = uv_default_loop();
uv_run(defaultloop, UV_RUN_DEFAULT);
please help me
Thanks in advance.

please generator a core file.

Is there any chance you can update to the latest v1.x release or at least the latest v0.10 release?  v0.10.15 was released three years ago, a lot of bug fixes have gone in since that time.
Note that the v0.10 release line is near its end of life.  If updating is a chore, you might as well target v1.x from the get go.

No follow-up, closing.


Border and Bossbar does not work

Also the Team Markers disappear after 64 blocks (server's player render distance)

Also the Team Markers disappear after 64 blocks (server's player render distance)

Honestly not sure if Lunar Client has support for Borders or Bossbars. Team markers will disappear after the server's render distance due to the client not being able to get their location. Not sure if there's a workaround for this.
Let me know if you experience any other issues, or have any other questions.

Callum // ProPractice

Honestly not sure if Lunar Client has support for Borders or Bossbars. Team markers will disappear after the server's render distance due to the client not being able to get their location. Not sure if there's a workaround for this.
Let me know if you experience any other issues, or have any other questions.

Callum // ProPractice

There is a way around. The lastMs input, is put into use when the player is super far way, so it updates in ticks. Do you think it has to do with the posMap you did in TeamHandler, its just 0.0D.

There is a way around. The lastMs input, is put into use when the player is super far way, so it updates in ticks. Do you think it has to do with the posMap you did in TeamHandler, its just 0.0D.

I know what the problem is. In the posMap, when the first packet is sent, it keeps that location and doesn't up anything else. I did a runnable to keep updating the HashMap with the players' newest coordinates.

I know what the problem is. In the posMap, when the first packet is sent, it keeps that location and doesn't up anything else. I did a runnable to keep updating the HashMap with the players' newest coordinates.

I don't know much Java but if you find a better way of updating the Coordinates(Location) in the HashMap. I found out that TeamPackets has to be sent every second or something. I don't know if its optimized that way but its the only method that i found that works.

I don't know much Java but if you find a better way of updating the Coordinates(Location) in the HashMap. I found out that TeamPackets has to be sent every second or something. I don't know if its optimized that way but its the only method that i found that works.

I may make the API do this automatically at some point. But for now the best way to achieve this is to make a runnable. Reuse the same Teammates variable. Each time the task runs, make it send the players that Teammates using LunarBreakerAPI.getInstance.getTeammateHandler().sendTeammates(Player player, Teammates teammates). Play around with it a bit, if you have any issues with this let me know. Sorry I don't have time at the moment to test this myself.

Callum // ProPractice

I may make the API do this automatically at some point. But for now the best way to achieve this is to make a runnable. Reuse the same Teammates variable. Each time the task runs, make it send the players that Teammates using LunarBreakerAPI.getInstance.getTeammateHandler().sendTeammates(Player player, Teammates teammates). Play around with it a bit, if you have any issues with this let me know. Sorry I don't have time at the moment to test this myself.

Callum // ProPractice


Improvement on location from gps ping efficiency

Shortens the time searching for the closest road segment with a smaller search radius, a smaller table, and a slight improvement to the sqlalchemy query

[Tried to resolve conflicts, now it's failing tests, so closing until I can fix]

[Tried to resolve conflicts, now it's failing tests, so closing until I can fix]


Add clearfix to tabs & accordions, in case of floating content

Currently, if there is content that floats inside the accordions, the padding on the container is not clearing the floats, so the content ends up too close to the bottom border:

This PR adds clearfixes on the container, so that the padding is always visible around the content

To test:

View the accordion page, scroll down to the "Content set with floating content"
https://deploy-preview-835--happy-galileo-ea79c4.netlify.app/elements/pfe-accordion/demo/
Open the first accordion and inspect the contents. Note that the blocks are floating, and that there is still padding at the bottom.
View the tabs page, scroll down to the "Content set with floating content"
https://deploy-preview-835--happy-galileo-ea79c4.netlify.app/elements/pfe-tabs/demo/ Open the first accordion and inspect the contents. Note that the blocks are floating, and that there is still padding at the bottom.
View the content set page, scroll down to the "Content set with floating content"
https://deploy-preview-835--happy-galileo-ea79c4.netlify.app/elements/pfe-content-set/demo/ Open the first accordion and inspect the contents. Note that the blocks are floating, and that there is still padding at the bottom.

Test case updates:

View the accordion page.  In the first section titled Accordion component, click on the 2nd accordion item titled "Panel with links & floating cards". Inspect the contents (you should see 2 cards). Note that the blocks are floating, and that there is still padding at the bottom.
View the tabs page. In the Style: Horizontal plain section, open the third tab and inspect the contents. Note that the blocks are floating, and that there is still padding at the bottom.
View the content-set page. In the first component, open the third accordion labeled "Heading 3" and inspect the contents. Note that the blocks are floating, and that there is still padding at the bottom.

[x] Latest version of Edge and Edge 18
[x] Internet Explorer 11 (should be useable, not pixel perfect)
[x] Latest 2 versions of Firefox (one on Mac OS, one of Windows OS)
[x] Firefox 60.7.2 (or latest version for Red Hat Enterprise Linux distribution)
[x] Latest 2 versions of Chrome (one on Mac OS, one of Windows OS)
[x] Latest 2 versions of Safari
[x] Galaxy S9 Firefox
[x] iPhone X Safari
[x] iPad Pro Safari
[x] Pixel 3 Chrome