feat: AU-2017: Implemented application draft validation

AU-2017
What was done
This pull request implements application draft validation. For now, the validation is only implemented for the following forms:

29 (registered community)
48 (all roles)
51 (registered community)
53 (registered community)
56 (registered community)
63 (registered community)
64 (registered community)

The validation is done by visiting a forms "View" page, (e.g. "/hakemus/LOCALT-048-0033996/katso"), and verifying that the submitted form data is present on said page.
Implemented changes

Some basic profile data is now derived from profile_input_data.ts. This data is used when setting up user profiles for private users, registered communities and unregistered communities. The same data is also used in the application_data_X files. This change was implemented so that we can verify that the user data correctly ends up on an applications "View" page after an application has either been saved as a draft or submitted.

The FormFieldWithRemove interface has been extended with three (3) new keys: viewPageSelector, viewPageFormatter and viewPageSkipValidation.

viewPageSelector: Allows a FormField to define a class by which its content can be located on an applications "View" page. Note that this only needs to be used if a class can't be constructed from the items key itself (more information further down).

viewPageFormatter: Allows a FormField to define a callback function to format its data before it is compared against the results on the "View" page (more on these callback functions further down).

viewPageSkipValidation: Allows a FormField to define if the field should be skipped when performing validation.

The file view_page_formatters.ts contains callback functions that can be set to the previously mentioned viewPageFormatter key. These callback functions format a form fields input data so that it match the output on an applications "View" page. For example, an input date of "2023-11-01" can be formatted to "01.11.2023" with the help of the viewPageFormatDate function.

The file view_page_helpers.ts contains helper functions for the "View" page. For now, it only contains the viewPageBuildSelectorForItem functions, which attempts to formulate a class by which to target a specific form field on an applications "View" page. Note that class constructed by this function will always be used to target a form item as long as the form item has not specified its own class with the viewPageSelector key.

A new "type" has been added to the fillInputField function: data-drupal-selector-sequential. The new type is similar to the data-drupal-selector, the only difference being that it fills a form field with the help of the pressSequentially() method instead of the fill() method. This change was needed in order to get formatted number fields on our forms to work correctly. When using the normal fill() method, entering the number "1023" into, for example, a "budget" field, will produce the output "1".

The validation itself has been implemented inside the validateDraft() function in the validation_helpers.ts file. If you want a more detailed output of the validation, you can remove the comments in the logDraftValidationResults() function.

Many of the tests had hard-coded data in them. These have been changed to use the input data instead.

Things I've noticed

When performing validation, I would some times run into issues where two strings that seemed identical did not match according to Playwright. The problem turned out to be different kinds of space characters in the input text and the output text (one used ASCII Code 32 for the space and the other ASCII Code 160). If you run into similar issues, this might be worth looking into.

This seems to happen randomly, but some times attachments fail to upload when the tests are being run, which obviously causes the validation to fail. Just know that you are not the first one experiencing this problem if it ever happens to you.

How to install
Make sure your instance is up and running on the correct branch.

git checkout feature/AU-2017-verify-form-submission-e2e
make fresh
make drush-cr

How to test

Edit fetchLatestProfileByType() and make it return false. This will force new profile creation, and the usage of the data in PROFILE_INPUT_DATA.

Now you can run the tests:

make test-pw-p PROJECT=forms-48.
make test-pw registered_community_29 .
make test-pw registered_community_51 .
make test-pw registered_community_53 .
make test-pw registered_community_56 .
make test-pw registered_community_63 .
make test-pw registered_community_64 .

NOTE!: The validation of registered_community_64 is probably going to fail, since there is a bug on the form (correct information not showing on the draft page for registered communities). This has been reported on the 26.1.2024.
The output should look similar to this when validation succeeds:

The output should look similar to this when validation fails:

Joudutaan ehkä vähän jumppaa tätä vielä. En ihan saa kii mitä täs tapahtuu.


Random refactorings based on coverage report

Description of the pull request:
This is just trying to increase test coverage and slim down the code a bit outside of the legacy stuff. I'm also seriously considering shortening some of the largish property names to see if it makes any impact on minified size. More to come...
Fixes the following issues:
None, but additional coverage may turn up a few new ones...
Is breaking:
Nope.

Looking at it, it looks like there's at least 10k of minification shrinkage available just by dropping the relatively large names that are constantly used throughout the code base back to a few characters - parentFragment, fragment, and template are common offenders everywhere, children and childByKey are common in models, and allowWhitespace, matchString, and matchPattern in the parser. It would affect code readability a little bit, but I think parentFragment -> pf, fragment -> f, template -> t, children -> ks, childByKey -> k, allowWhitespace -> sp, and joining matchString and matchPattern into a single match function would not be awful. I know size isn't everything, but 5% of the code being just a handful of common references seems high. Any opinions?
I'd like to find 40k to shave off the minified file size, and I'd like to do so before 0.10, which will largely be an adaptor refactor where, hopefully, the magic and array adaptors will get pulled out into their own plugins. 0.11 is tentatively scheduled as a transition refactor, which may drop a bit of weight because the transition code is a bit... mysterious :smile:. IE8 no longer being a consideration may help too. I'd like to get the minified file size back down below 140k (that's 72k less than 0.8 and 25k less than 0.7.3 for those who are counting) before 1.0, which I think is doable.

I'm ok with name changes as long as they still represent what they mean. Reading through code yesterday, and without looking at the README that came with it, I was like... "What is an 'Item' again?". 😄

I'm going to punt on changing names for minification purposes for now. I keep going back and forth between shortening some of the members in source and adding a sigil to them to allow replacing them safely in a build step.


Make it so ANC, SMD labels only show up once on a map

It's sort of visually confusing to have repeats of the same label. See, e.g.:

Closing because this needs to be re-done in mapbox for v2


add backwards-compatibility for azure snapshot ID

Signed-off-by: Steve Kriss<EMAIL_ADDRESS>Add support for reading the old Azure snapshot name format to make transition to v0.8 smoother.

Looks good, thanks! Had a chance to test it out on a real cluster yet?

Yep - used an AKS cluster, took a backup using Ark v0.7.0, upgraded server to v0.8.0, ensured I could delete the old backup, take a new backup, and delete the new backup.

LGTM


meal by time of day - missing supper

A very common name for a time specific meal period is "supper", usually a meal occasion after dinner or instead of dinner after 10pm/ 22:00, then if folks go for some food much later after midnight (such as after bars/dancing/drinking) it can still be called supper, and if at home more  referred to as "midnight snack" (this within Northeast and Southeast Asian context since in much or Europe such as Spain a majority of full service/fine dinning restaurants don't even open for dinner until 9pm)

Thanks for this.  Finally addressing this - it has been added to FoodOn via NCIT term import for Breakfast, Lunch and Supper!  Revised diagram is at bottom of https://github.com/FoodOntology/foodon/issues/236


ERR command 'mesonbuild.targets-refresh' not found

Hey,
Im getting this error in the VSCode DevTools. It may be related to this issue: https://github.com/asabil/vscode-meson/issues/8
workbench.main.js:238 [Extension Host] stack trace: Error: command 'mesonbuild.targets-refresh' not found
    at Proxy._tryExecuteCommand (file:///opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.js:3034:836)
    at r.then.i (file:///opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.js:3034:717)
    at process._tickCallback (internal/process/next_tick.js:68:7)
t.log @ workbench.main.js:238
workbench.main.js:1406   ERR command 'mesonbuild.targets-refresh' not found: Error: command 'mesonbuild.targets-refresh' not found
    at Proxy._tryExecuteCommand (file:///opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.js:3034:836)
    at r.then.i (file:///opt/visual-studio-code/resources/app/out/vs/workbench/workbench.main.js:3034:717)
    at process._tickCallback (internal/process/next_tick.js:68:7)

This has been fixed for a couple months and the version has been released I think. Should this be closed?


[Help]: Problems with PRM creation

Hello everyone,
I'm trying to do a pygmtsar processing in Portugal, i'm using python 3.11.6 and pygmtsar 2024.8.2.post3. When I run the compute_align function, it gives me this error and I can't understand why:
---------------------------------------------------------------------------
_RemoteTraceback                          Traceback (most recent call last)
_RemoteTraceback:
"""
Traceback (most recent call last):
  File "/opt/conda/lib/python3.11/site-packages/joblib/externals/loky/process_executor.py", line 463, in _process_worker
    r = call_item()
        ^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/joblib/externals/loky/process_executor.py", line 291, in __call__
    return self.fn(*self.args, **self.kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/joblib/parallel.py", line 589, in __call__
    return [func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/joblib/parallel.py", line 589, in <listcomp>
    return [func(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^
  File "/home/jovyan/.local/lib/python3.11/site-packages/pygmtsar/Stack_align.py", line 295, in _align_rep_subswath
    PRM.from_file(mstem_prm).set(PRM.fitoffset(3, 3, par_tmp)).update()
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jovyan/.local/lib/python3.11/site-packages/pygmtsar/PRM.py", line 691, in fitoffset
    raise Exception(f'FAILED - not enough points to estimate parameters, try lower SNR ({rng.shape[0]} < 8)')
Exception: FAILED - not enough points to estimate parameters, try lower SNR (0 < 8)
"""

The above exception was the direct cause of the following exception:

Exception                                 Traceback (most recent call last)
Cell In[25], line 1
----> 1 sbas.compute_align()

File ~/.local/lib/python3.11/site-packages/pygmtsar/Stack_align.py:869, in Stack_align.compute_align(self, geometry, dates, n_jobs, degrees, joblib_aligning_backend, debug)
    866 # prepare secondary images
    867 with self.tqdm_joblib(tqdm(desc='Aligning Repeat', total=len(dates_rep)*len(subswaths))) as progress_bar:
    868     # threading backend is the only one working inside Docker container to run multiple binaries in parallel
--> 869     joblib.Parallel(n_jobs=n_jobs, backend=joblib_aligning_backend)(joblib.delayed(self._align_rep_subswath)(subswath, date, degrees=degrees, debug=debug) \
    870                                    for date in dates_rep for subswath in subswaths)
    872 if len(subswaths) > 1:
    873     # calculate the offsets and also create merged reference PRM
    874     offsets = self.get_subswaths_offsets(self.reference, debug=debug)

File /opt/conda/lib/python3.11/site-packages/joblib/parallel.py:1952, in Parallel.__call__(self, iterable)
   1946 # The first item from the output is blank, but it makes the interpreter
   1947 # progress until it enters the Try/Except block of the generator and
   1948 # reach the first `yield` statement. This starts the aynchronous
   1949 # dispatch of the tasks to the workers.
   1950 next(output)
-> 1952 return output if self.return_generator else list(output)

File /opt/conda/lib/python3.11/site-packages/joblib/parallel.py:1595, in Parallel._get_outputs(self, iterator, pre_dispatch)
   1592     yield
   1594     with self._backend.retrieval_context():
-> 1595         yield from self._retrieve()
   1597 except GeneratorExit:
   1598     # The generator has been garbage collected before being fully
   1599     # consumed. This aborts the remaining tasks if possible and warn
   1600     # the user if necessary.
   1601     self._exception = True

File /opt/conda/lib/python3.11/site-packages/joblib/parallel.py:1699, in Parallel._retrieve(self)
   1692 while self._wait_retrieval():
   1693
   1694     # If the callback thread of a worker has signaled that its task
   1695     # triggered an exception, or if the retrieval loop has raised an
   1696     # exception (e.g. `GeneratorExit`), exit the loop and surface the
   1697     # worker traceback.
   1698     if self._aborting:
-> 1699         self._raise_error_fast()
   1700         break
   1702     # If the next job is not ready for retrieval yet, we just wait for
   1703     # async callbacks to progress.

File /opt/conda/lib/python3.11/site-packages/joblib/parallel.py:1734, in Parallel._raise_error_fast(self)
   1730 # If this error job exists, immediatly raise the error by
   1731 # calling get_result. This job might not exists if abort has been
   1732 # called directly or if the generator is gc'ed.
   1733 if error_job is not None:
-> 1734     error_job.get_result(self.timeout)

File /opt/conda/lib/python3.11/site-packages/joblib/parallel.py:736, in BatchCompletionCallBack.get_result(self, timeout)
    730 backend = self.parallel._backend
    732 if backend.supports_retrieve_callback:
    733     # We assume that the result has already been retrieved by the
    734     # callback thread, and is stored internally. It's just waiting to
    735     # be returned.
--> 736     return self._return_or_raise()
    738 # For other backends, the main thread needs to run the retrieval step.
    739 try:

File /opt/conda/lib/python3.11/site-packages/joblib/parallel.py:754, in BatchCompletionCallBack._return_or_raise(self)
    752 try:
    753     if self.status == TASK_ERROR:
--> 754         raise self._result
    755     return self._result
    756 finally:

Exception: FAILED - not enough points to estimate parameters, try lower SNR (0 < 8)

I've tried a larger area and it still gives me the same error, can anyone help me?

The key lines are:
  File "/home/jovyan/.local/lib/python3.11/site-packages/pygmtsar/PRM.py", line 691, in fitoffset
    raise Exception(f'FAILED - not enough points to estimate parameters, try lower SNR ({rng.shape[0]} < 8)')
Exception: FAILED - not enough points to estimate parameters, try lower SNR (0 < 8)

This suggests that your DEM is incomplete or that the images are too noisy to successfully align.

The DEM is being downloaded automatically, so how can we modify that?

You can check how well it is covering the area. Some tiles may not have been downloaded or might be completely missing. In such cases, you can use another DEM source.


Problem reading DD 3.5" disks, only one hole (write protection) Amiga/mac

Hi, first of all great work!!
I was almost buying one of the standard USB floppy drives, but came across you project that is way much more powerful and universal!
I am able to properly read ibm 1440 HD 3.5" disks with no errors at all, so I suppose the hardware and the PC sw are working properly. The drive I am using is a quite good quality Sony original. If it matters the OS is Debian buster.
I have problems in reading some disks.
The first comes from a magazine, and is labeled "L'Agorà software". I started by reading it as ibm: it completes properly ("good" sound, no reties, no error reported), but at the end I get:
Autodetecting output geometry
H.SS Tracks --->
No sectors in output; skipping analysis
writing 0 tracks, 0 heads, 0 sectors, 0 bytes per sector, 0 kB total

The I tried fluxengine read amiga --write-flux try1.flux and I end up with:
H.SS Tracks --->
0. 0 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0. 1 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0. 2 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0. 3 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0. 4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0. 5 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0. 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0. 7 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0. 8 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0. 9 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.10 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1. 0 ................................................................................
1. 1 ................................................................................
1. 2 ................................................................................
1. 3 ................................................................................
1. 4 ................................................................................
1. 5 ................................................................................
1. 6 ................................................................................
1. 7 ................................................................................
1. 8 ................................................................................
1. 9 ................................................................................
1.10 ................................................................................
Good sectors: 880/1760 (50%)
Missing sectors: 880/1760 (50%)
Bad sectors: 0/1760 (0%)
writing 80 tracks, 2 heads, 11 sectors, 512 bytes per sector, 880 kB total

From the resulting .adf I can't extract files with unadf and I can't open it in Workbench (inside fs-uae). So I tried looking inside text and I found among other readable text "AmigaUser  Disk  è  una  raccolta  su  dischetti  dimostrativa..." so it's definitely an Amiga disk.
What I find also strange is that (if I understand correctly) it's single sided, and furthermore on side 1, not 0!
I tried on another personal disk where I saved some "programs" (too much time..really don't remember, but the label was definitely written by me). The result was the same, so I used fluxengine amiga --write-flux try2.flux -s ":s=1" that gets the exact same result, but in much shorter time.
I am wondering if for some reason the reading of side 0 has problems from a logical point of view...
Is there anything else I can try? Do you want some .flux files to inspect? (in this case please tell me where/how to send them and how I should create them)

On the other side I have disks labeled as Mc Paint 400k (private copy) and MacProject-Multiplan (original).
By reading with fluxengine read mac --write-flux McPaint400k.flux I get:
Autodetecting output geometry
H.SS Tracks --->
0. 0 ???XB?B?X???XBX?BBBBBBXB??B?BB?B................BBBBBBBBBBBBBBXB................
0. 1 X.?X?XXXBBB??XX?BBB?BBBBBBBB?X?B................BXBBBBBBBBBBBBBB................
0. 2 X?X?BBB?BBX????BBBBBBBB?B?BB??BB................BBBBBBBBBBBBBBBB................
0. 3 ?X?XBB?B??XBB????BB?BBBB?BBBBB?B................BBBBBBBBBBBBXBBB................
0. 4 ?B????BB?X?B??BBBBBBBBXBBBBBBBBX................BBBBBBBBBBBBBBBB................
0. 5 ????X?B?BXB??XX?BBXBB?BBBBBBB?BB................BBBBBBBBBBBBBBBB................
0. 6 XB?B?X?BBBB?BBB?B?BBBB?BBBBBB??B................BBBBBBBBXBBBBBBB................
0. 7 ?BBB??X?XXXX?X??BBBB?BXBB?BXBB?B................BBBBBXBBBBBB.XBB................
0. 8 XB?B?????BXBB?B?BBXBBBXBBBBB?BBB................BBBBBXBBBBBBBBBBXXXXXXXXXXXXXXXX
0. 9 BX??BX?X?X???B??BBBX?BBBBBBBX??B................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.10 .???XB??BXX???XBBBBBBBBXBBXBBX??XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.11 B?X??B?XXXXXXBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Good sectors: 409/960 (42%)
Missing sectors: 230/960 (23%)
Bad sectors: 321/960 (33%)
writing 80 tracks, 1 heads, 12 sectors, 524 bytes per sector, 491 kB total

fluxengine read ibm --write-flux McPaint400k_ibm.flux:
Autodetecting output geometry
H.SS Tracks --->
No sectors in output; skipping analysis
writing 0 tracks, 0 heads, 0 sectors, 0 bytes per sector, 0 kB total

So badly damaged disk or some parameter is not right? (opening the image does not reveal a single meaningful human word).
The second disk: fluxengine read mac --write-flux MacProjectMultiplan.flux
Autodetecting output geometry
H.SS Tracks --->
0. 0 XXXXXXBXXX???XXX???B????B???B?B?................BBBBBBBBBBBBBXBB................
0. 1 XXXXX?BXX?XXXXB???B?????B???B?B?................BBBBBBXBBBBBBBBB................
0. 2 ?XBXXX?BXXXXXXB?B??BBBBBBB?BX???................BBBBBBBBBBBBBBBB................
0. 3 ?X?XXXX?XXXXXX?X??X???B???B?XB?X................BBBBBBBBBBBBBBBB................
0. 4 ?XX?XX?X?XXXXX??BBX??B?B??BBX???................BBBBBBBBBBBBBBBB................
0. 5 XXXB???X??XX?XX?BBBB????????X??B................BBBBBBBBBBBBXBBB................
0. 6 ??B?BXX?XX?XXXXXB?B??B???B?BX?BB................XBBBBBBBBBXBXBBB................
0. 7 XXX?X?BXXXXXXX?X?BBXBBB??????XBB................BBBBBBBBXBBBBBBB................
0. 8 XXXXXXXX?XXXXX?X?BBB??????B?B?BB................BBBBBBXBBBBBBBXBXXXXXXXXXXXXXXXX
0. 9 ?BBX?X?X?XXXXX???B???B???BBB??B?................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.10 X?XB?X??XX?BXXXX????BB?????BBBB?XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.11 B?XXBX??X?XXXXX?XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Good sectors: 442/960 (46%)
Missing sectors: 303/960 (31%)
Bad sectors: 215/960 (22%)
writing 80 tracks, 1 heads, 12 sectors, 524 bytes per sector, 491 kB total

In this I can find some text inside the image "Picture is too large to display here.BSorry, this disk is full"
Suggestions?
I can look around in my house and find further disks, but before proceeding I'd like to wait for your advice.
Update: I found a 720 DD ibm floppy and I was able to read properly, so the problem is not with 720 DD format, but with non-ibm formats.

Hi there!
Your trouble with the Mac disks looks a lot like the problem I was having. I made a change to the Verilog code for the sampler, and had a radical improvement in behavior. You can try my modified firmware and see if it helps.
As for the "L'Agorà software", I'm a little unclear of the situation. Is it a commercially-manufactured disk? Does the disk have the HD hole in it? If it reads as an Amiga disk, it's most likely written at double-density (DD). But if the disk itself has the second hole, the media itself is high density (HD). And I've learned recently that double-density formatting on an HD disk usually doesn't read well on an HD drive unless you cover the HD hole.

Re Amiga disks: that's really weird. It may be that they're some exotic chimera format where side 1 is Amiga and side 0 is something else --- I've seen a IBM PC/Amiga/Atari ST chimera format before, although it didn't work like that --- but the most likely candidate is IBM, and you've tried that. The other most likely explanation is a drive fault, but you've tried that too and rules it out. I suppose it's possible that one side of the disks have gone bad, but two disks producing completely clean reads on the other side? That's seems very implausible.
If it's a magazine disk, there should be nothing confidential in it --- can you upload the flux file somewhere for me to have a look?
Re the Mac disk: yes, the sampler's bad. I'm currently looking at Jared's fixed sampler so you might want to give that a try. There should be a proper fix out shortly. Sorry about that.

I recorded the flux of "L'Agorà software" with the command:
fluxengine read amiga --write-flux LAgora.flux -o LAgora.adf
and uploaded to:
https://luca.dreamhosters.com/fluxengine/LAgora.flux
To clarify, and answer the questions of jboone, here is how the disk looks like:
https://luca.dreamhosters.com/fluxengine/LAgora.jpg
In the meantime I found other amiga disks at home and I was able to correctly extract adf images from one of the 11 disks of Atlantis and also from the save-game disk. At the end they were properly readable with unadf.
The puzzle remains with the disk called "Programmi" that still (tried again now, just to be sure) gives the same result of good data only on side 1, same as "L'Agorà software", so maybe if we fiund something to fix the first also on the second will be fixed.

I updated the firmware with FluxEngine-sampler_hax.hex and tried again on the same MacProjectMultiplan with the following result:
H.SS Tracks --->
0. 0 B...............................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................XXXXXXXXXXXXXXXX
0. 9 ................................................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.10 ................................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.11 ................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

On another mac floppy I get:
H.SS Tracks --->
0. 0 ................................................................................
0. 1 ................................................................................
0. 2 ................................................................................
0. 3 ................................................................................
0. 4 ................................................................................
0. 5 ................................................................................
0. 6 ................................................................................
0. 7 ................................................................................
0. 8 ................................................................XXXXXXXXXXXXXXXX
0. 9 ................................................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.10 ................................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.11 ................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Good sectors: 800/960 (83%)
Missing sectors: 160/960 (16%)
Bad sectors: 0/960 (0%)
writing 80 tracks, 1 heads, 12 sectors, 524 bytes per sector, 491 kB total

While reading I got a lot of
  3.1: 399 ms in 103424 bytes
       0 records, 0 sectors;
       Required sector 0 missing;
       Required sector 1 missing;
       Required sector 2 missing;
       Required sector 3 missing;
       Required sector 4 missing;
       Required sector 5 missing;
       Required sector 6 missing;
       Required sector 7 missing;
       Required sector

But I end up with a 490K .img file. Now it's time for me to find a way to read it. With standard mount -t hfs no luck, hmount complains "volume is smaller than 800K (Invalid argument)". I'll keep investigating on this...
Another (silly, forgive me) question: do I really need windows to upload the firmware or is there some way to do it with linux? At the beginning I was thinking to upload the firmware once and then forget (so I used a friend's PC, since my home is linux-only since years :) ). I was supposing that further development would come from the PC sw, but now I'm realizing that maybe it's necessary to change also the firmware.

Belatedly --- sorry about the delay --- hurray that it works! The sampler change has been merged to trunk, so that should now be available in the latest release.
I think your second disk is a single-sided 400kB disk. These are exactly the same as 800kB disks except side 1 is unused. You're lucky that yours is blank, things can get very confused if a disk is formatted 800kB and then 400kB, as side 1 still contains the data from the old disk... To use an image in an emulator, you'll have to convert it to (probably) DiskCopy format. Writing this directly is on my list of things to do (#85). You might be able to tell FluxEngine to write a .ldbs file and then use libdsk to convert this into something your emulator can handle but I haven't found a way to do that yet.
Sadly, yes, Windows is required. Cypress haven't produced a firmware uploader for Linux.

Duplicate of #85

Belatedly --- sorry about the delay --- hurray that it works! The sampler change has been merged to trunk, so that should now be available in the latest release.

Good, I just set up a Virtuabox WinXp to reprogram without going to friends PCs, and updated now the firmware to the last github version.

I think your second disk is a single-sided 400kB disk. These are exactly the same as 800kB disks except side 1 is unused. You're lucky that yours is blank, things can get very confused if a disk is formatted 800kB and then 400kB, as side 1 still contains the data from the old disk... To use an image in an emulator, you'll have to convert it to (probably) DiskCopy format. Writing this directly is on my list of things to do (#85). You might be able to tell FluxEngine to write a .ldbs file and then use libdsk to convert this into something your emulator can handle but I haven't found a way to do that yet.

Ok, I'll have a look to it and if I'll find something useful (unlikely) I'll write again here. Glad to hear that it's on your todo list :)

Sadly, yes, Windows is required. Cypress haven't produced a firmware uploader for Linux.

Thanks for clarifying explicitly so that I decided what to do (see Virtualbox etc..above)

Concerning the "L'Agorà software" and the flux file that I provided, are there any news/ideas?
As said I am not so eager to read specifically that disk, in that case it's just curiosity, but I am very curious to be able to read the other floppy that is behaving similarly, called "Programmi", that maybe contains something personal, from my childhood ;)
(just to be sure I retried with updated firmware and client and I got the exact result)


Host volumes are not supported

Description
Levant does not currently support the volume or volume_mount stanzas necessary for host volumes.
Relevant Nomad job specification file
job "test" {
  region = "global"
  datacenters = ["srnd"]
  type = "service"

  group "test" {

    volume "test" {
      type      = "host"
      read_only = false
      source    = "test"
    }

    count = 1
    task "test" {
      driver = "docker"
      config {
        image = "hello-world"
      }

      volume_mount {
        volume      = "test"
        destination = "/test"
        read_only   = false
      }
    }
  }
}

Output of levant version:
Levant v0.2.9
Date: 2019-12-27T09:43:30Z
Commit: 0f1913ea3d77584ddd0696da429dcf05572a73a0
Branch: 0.2.9
State: 0.2.9
Summary: 0f1913ea3d77584ddd0696da429dcf05572a73a0

Output of consul version:
Consul v1.6.2
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)

Output of nomad version:
Nomad v0.10.2 (0d2d6e3dc5a171c21f8f31fa117c8a765eb4fc02)

Debug log outputs from Levant:
$ levant plan test.nomad                                                                                1 master?
[ERROR] levant/command: error parsing 'job': 1 error occurred:
	* group: 'test' -> invalid key: volume

... and if I comment that stanza out...
$ levant plan test.nomad                                                                                master?
[ERROR] levant/command: error parsing 'job': 1 error occurred:
	* group: 'test', task: 'test' -> invalid key: volume_mount

... nomad works fine with the same file...
$ nomad plan test.nomad                                                                                master?
+ Job: "test"
+ Task Group: "test" (1 create)
  + Task: "test" (forces create)

(I'm not really sure where the config validation is taking place, but if you can point me in the right direction I'm happy to try to do a PR for this, although I'm not much of a Go dev.)

@tylermenezes
There are 2 pull requests that fix this issue, so if you sync to one of those specific pull requests (or their parent repos), you should have a functional levant binary that supports the new jobspec keys:

https://github.com/jrasell/levant/pull/327
https://github.com/jrasell/levant/pull/328

Then, you can build levant for your platform by doing the following:

install go (latest version)
make sure your gopath environment variable is set
go get github.com/jrasell/levant
look in either of the following for the built binary (levant, or levant.exe):
$gopath/go/bin/
$gopath/go/src/github.com/jrasell/levant/
in the root of the repo you synced, run "GOOS=windows go build" to build for windows (as an example)... or just "go build" to build for your current OS


NSG Flow Logs to Event Hub no Messages are Being Received

Message count in Event Hubs is zero, where as requests are being received. I am not sure whats wrong, Flow logs are being dumped to a Storage account, I have added its connection string to the functions app, I have defined connection sting for the EventHub namespace and EventHub name in the function. I am using consumption plan.

All set. I was entering incorrect value for "outputBinding"


@mzikherman => Run danger and CI on Travis

          1 Warning

:warning:
Please include a PR summary

  Generated by :no_entry_sign: Danger

Thanks for this PR! It helped me integrate it on a non-ruby project when the documentation didn't work for me :)


1.29 support (Graph API)

This PR adds support for Beat Saber 1.29 where classic master servers are dead:

Targets the proposed new MultiplayerCore version with Graph URL patching rather than master server patching
Server configs are now based on an ApiUrl e.g. http://master.beattogether.systems:8989
Assumes an arbitrary default API port of 8989 and automatically migrates previous server configs
Bumps BeatTogether version to 2.1.0 and target Beat Saber 1.29.0

Cross-dependent related PRs

https://github.com/Goobwabber/MultiplayerCore/pull/41
https://github.com/BeatTogether/BeatTogether.MasterServer/pull/63

@rcelyte Just wanted to tag you in here - this PR would automatically migrate previous BT configs. For BT servers we can assume that they will run their API on `http://<previous_hostname>:<new_arbitrary_api_port>".
If there's something different we should do/assume for BeatUpServers when migrating configs it'd be good to put that in now so we can reduce end user headaches

BeatUpServer will use the existing status URL for graph requests.

If there's something different we should do/assume for BeatUpServers when migrating configs it'd be good to put that in now so we can reduce end user headaches

Guess that fell through? This'll be a rough time explaining to my users why their configs spontaneously broke x_x


[#359] further tests to validate reference to existing config and spl…

…it console realm

I am getting an error in make test-mk that I need to track down.

Dom found the problem with the tests, the mad naming of crs fell down when replaced chars left a nothing between dashes... and that was an invalid field in the jolokia policy. Time to name the test crs after their line numbers!

@gtully I created the #477 PR to improve the suite test output and change the resources names.


feat: implement gha caching for client download

Add support for caching client download.
Also did a cleanup on linter issues and some missing comments.
Closes https://github.com/mercedes-benz/sechub/issues/3199

@tvcsantos the workflow is running now :)

Hello @tvcsantos !
I noticed that there are some merge conflicts in the pull request you opened. When you have a moment, could you please take a look and resolve these conflicts?
Thank you for your contribution!

Meanwhile we have added caching of the SecHub client ourselves.
(Action will be released soon)
Anyway: Thanks for your contribution.

Meanwhile we have added caching of the SecHub client ourselves. (Action will be released soon)
Anyway: Thanks for your contribution.

okay thanks :+1:


Fix spacing typo

Docs Build status updates of commit 365c00f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-edge/webview2/get-started/winui2.md
:white_check_mark:Succeeded
View

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


Allow styling of line segments

Closes #7139
Closes #5956
Closes #4895
Closes #4434
TODO

[x] slope styling
[x] gap styling
[x] x/y range styling
[ ] documentation
[ ] samples
[ ] types

Filename
Size
Change

dist/chart.esm.js
68.4 kB
+177 B (0%)

dist/chart.js
87 kB
+726 B (+1%)

dist/chart.min.js
62 kB
+484 B (+1%)

dist/chunks/helpers.segment.js
19.6 kB
+521 B (+3%)


Resolution on time axis should not show for non-regular axis

When the "regular ?" on Time Axis is unchecked, the resolution should not show or require to be set, because resolution on irregular axis is not a fixed value.
For irregular axis what could be added is an "area of validity" or "footprint" for each coordinate that is added that defines the lower and upper bounds of that point. For example if I add a coordinate "2015-01-01", the area of validity might be

lower "2014-01-01"
upper "2016-01-01

cc @KathiSchleidt

@baloola think there's something backwards here, when I deselect regular, the Resolution fields stay while the Lower/Upper Bounds go away. To my understanding its the Resolution  fields should go away while the bounds should always be there.

The Resolution should go away when selecting irregular time dimensions, this bug will be fixed.
As for the lower/upper bounds  - which corresponds to time's extent-  irregular time dimension according to specs should be represented as values ( extent set to null), therefor lower/upper bounds  are removed and users should add individual values ( by clicking the + button)
@misev I don't know if there is a way to represent irregular time slots with areas of validity,  do you have an example ?

@baloola yes I think there's no standardized way currently of representing this concept, you can ignore my suggestion for areas of validity.

The Resolution should go away when selecting irregular time dimensions, this bug will be fixed.

This should be fixed now


[FEATURE REQ] Show multiple version for reference doc in MS doc

Is your feature request related to a problem? Please describe.

Since the multiple major versions reference doc of Spring Cloud Azure has been published on the GitHub IO site, but the MS doc website can only display one version 4.x reference doc of Spring Cloud Azure, we would like to keep two or more major versions(4.x and 6.x) in the MS reference doc of Spring Cloud Azure.
Describe the solution you'd like

The customers can select a special reference doc version of Spring Cloud Azure on MS doc. Customers should have the same experience on this website Rerenence doc of Spring Security, they can change the reference doc version of the Spring Cloud Azure, and do not need to change the whole URL for a special version.
Sach as below:

Describe alternatives you've considered
N/A
Additional context

Information Checklist

[x] Description Added
[x] Expected solution specified

is this resolved or not?
And, you should make the issue more specific to the problem you're trying to resolve.
I don't think you're trying to add show multi version feature to ms doc, that's can't be your goal, unless you work for ms doc team and me in the same time

Not resolved.
Currently, our needs have been informed to the doc team, and we and the doc team have already agreed to implement a transition plan to support viewing the reference documentation for both major versions(4.x and 6.x), this achievement will not be the final goal for this issue, we should keep pushing the MS doc team to deliver this feature.

@chenrujun  I'm assigning this to you, please consider this requirement when designing our ms doc toc

@stliu

@chenrujun I'm assigning this to you, please consider this requirement when designing our ms doc toc

OK, will do.

@stliu

keep it simple first, the goal is to explain how to use our product for spring boot 3 / spring cloud azure 6 customers.
I can think two options here:

we don't have two version of doc, but one doc only, if any chapter in the doc has difference between 4.x and 6.x, we doc that in the doc explicitly, I don't think there are too many places of differences
we just use different level of toc for that, one for 4.x and one for 6.x

I agree with you.
@moarychan told me that except migration guide and what's new, there is no difference between 4.x and 6.x.
If you agree, I'll move the 2 files from this PR: https://github.com/MicrosoftDocs/azure-dev-docs-pr/pull/3847 to current MS doc, then close this PR: https://github.com/MicrosoftDocs/azure-dev-docs-pr/pull/3847

@chenrujun  please note the PR description about other deleted files.
I understand this is still a transition plan for us.
The new solution should be simple and clear for the two major versions, but from a long time perspective, assume the SCA has already released versions 4.10.0 and 6.6.0, the customer will be confused about how to see the reference doc for the previous version, such as 4.5.0 and 6.5.0, no entry for them to view the reference doc versioned by SCA, we will couple multiple versions together, and it will become bloated.

Here is current plan:
Use this method to display document for multiple versions:

This article applies to Version 4.x Version 5.x

Refs: https://learn.microsoft.com/en-us/azure/spring-apps/tutorial-alerts-action-groups

@hui1110 could you pls help to do this? thanks.

The changes have been merged, close it now.


don't dump xargo output onto users of 'cargo miri test'

The xargo invocation prints a lot of details users probably won't care about, so let's hide them (unless the user did cargo miri setup, then we still print everything).

@bors r+

:pushpin: Commit 0e833e4f32d6e1e03b9f7cf16c44797e4865747f has been approved by RalfJung
It is now in the queue for this repository.

:hourglass: Testing commit 0e833e4f32d6e1e03b9f7cf16c44797e4865747f with merge c770d2acb4c051356b9d34c7f8ff6097f8d5e339...

:broken_heart: Test failed - checks-actions

@bors r+

:pushpin: Commit 0c5392f4354ba06028155c318fca1d3b287f83ea has been approved by RalfJung
It is now in the queue for this repository.

:hourglass: Testing commit 0c5392f4354ba06028155c318fca1d3b287f83ea with merge b2418e82d3375c5c49b097d01bea97e06239918d...

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing b2418e82d3375c5c49b097d01bea97e06239918d to master...


docs: fix glossary anchor links

Description:
As I was reading the docs, I found out that the anchor links in the Glossary and Semantics page were not working.
After a bit of research, I realized that the anchor links were not in the correct way. So I have opened this PR to fix this problem 😁
Before

After

Awesome thank you!


Add support of start/stop marker and KEEP keyword in linkerscript fragments (IDFGH-2524)

Is your feature request related to a problem? Please describe.
I would like to be able to put some struct in a special section in the linker script and put start and stop marker to be able to loop on them. When trying to do this with linkerfragments, I cannot put marker and I cannot force some section to be kept (with the KEEP keyword).
Describe the solution you'd like
A modification to be able to put start / stop marker in linkerscript fragments.
Describe alternatives you've considered
At the moment, the only way to do this, is to patch est-idf linkerscript.
Linkerscript extract example:
 _s_custom_section = ABSOLUTE(.);
KEEP(*(.custom.section))
_e_custom_section = ABSOLUTE(.);

I found on esp32 forum a similar request: https://esp32.com/viewtopic.php?t=13102

@chapipo Thanks for raising the feature request.

Hi @chapipo, this is also a desirable feature for us internally, so we definitely take this into consideration. However, this is a non-trivial feature so I may not be able to give an exact timeline when this feature will be implemented.


🧑💻(frontend) add Formik + Yup and use in all forms

Purpose
Add Formik and Yup to make form management easier. Integrate it into all the forms needed for a V1

You have committed Mac system files.DS_Store. It seems this file is missing from the .gitignore. You should update this file.

@jbpenrath our best practice is to let developpers add this to their personal ~/.gitignore file.


fix: firstItem-related issues

Signed-off-by: KingMario<EMAIL_ADDRESS>PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)
[ ] If applicable, have a visual design approval

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[x] Documentation content changes
[ ] clarity.design website / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

The value description of firstItem and lastItem is not complete.
The offset for API call is not accurate for server-driven datagrid.
Issue Number: N/A
What is the new behavior?
The desciption is updated.
The offset is updated for server-driven datagrid.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
This PR is for V3 to merge.

Thanks for moving this PR (from #4517) to v3. I need some time to run the code and confirm that all is fine, then I will merge it to master. ETA, end of this week.


Answer+Play audio+Hang Up

Play audio file after answer, end of audio Hang Up
I can record a audio warning to scammers.

It's not possible, playing a sound during a call is restricted by Android, cause scammers would do that too.


update signature of PathBuf::parse

This is what it should've always been. It's technically a breaking change, but I think it's ok because most types that implement AsRef<str> would also implement Into<String>.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.9%. Comparing base (73ce4ac) to head (47ad6f6).

Additional details and impacted files

Files with missing lines
Coverage Δ

src/pointer.rs
97.7% <100.0%> (-0.5%)
:arrow_down:

Yep, this is definitely what it should have been all along - oops!
Even though it is almost certainly a non-breaking change for the vast majority of codebases, we still need a minor/breaking version bump here, right?

Even though it is almost certainly a non-breaking change for the vast majority of codebases, we still need a minor/breaking version bump here, right?

Yep, that's the responsible thing to do.

I just realized the version bump is going to need a minor as well. It sounds like we should just wrap all 3 PRs into one minor release.


How to parse a struct it may be a string ? The official documentation seems can't solve my probelm

I'm reading documentation from https://serde.rs/string-or-struct.html.

I follow the documentation directly, it throw error.

I'm trying to impl Deserialize manually and remove Deserialize from derive it thows stack overflow.
impl<'de> Deserialize<'de> for Build {
    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
    where
        D: serde::Deserializer<'de>,
    {
        string_or_struct::<'de, Build, D>(deserializer)
    }
}

It seems missing default implementation for Build after I remove Deserialize from Build's derive.

How to call default Deserialize implementation, If it failed, then try string_or_struct.

You presumably want string_or_struct to apply to the Build, not the Option<Vec<Build>>. Try
struct Service {
    build: Option<Vec<BuildWrapper>>,
}

struct BuildWrapper(#[deserialize_with = "string_or_struct")] Build);

I'm trying to impl Deserialize manually and remove Deserialize from derive it thows stack overflow.

This code has infinite recursion. Build's deserialize impl calls string_or_struct(), which deserializes using Build's Deserialize impl, which calls string_or_struct(), ad infinitum.

Here is an implementation of what you (and I) want: https://github.com/emk/compose_yml/blob/7e8e0f47dcc41cf08e15fe082ef4c40b5f0475eb/src/v2/string_or_struct.rs
Came this to ask why such a feature isn't upstream. It seems generic enough to be part of serde, instead of creating functions that, if I may, look scary for newcomers like me.

Another implementation I found is this one: https://stackoverflow.com/questions/69565056/can-you-deserialize-a-struct-from-a-map-or-a-string#comment122967478_69567195
It's much more simpler and doesn't need to take care of any possible container (Option, Vec, Result...) as it deserializes the interested type only.

Another implementation I found is this one: https://stackoverflow.com/questions/69565056/can-you-deserialize-a-struct-from-a-map-or-a-string#comment122967478_69567195
It's much more simpler and doesn't need to take care of any possible container (Option, Vec, Result...) as it deserializes the interested type only.

Looks nice and simpler.


nonstd::ring with a fixed array type as the container

ring type here being the owning buffer that wraps a container and a ring_span. Right now the ring type is unable to use a fixed size array as the backing container because the only constructor requires a capacity argument
https://github.com/martinmoene/ring-span-lite/blob/master/include/nonstd/ring.hpp#L51-L54
all that is required to support ring<std::array<T, N>> is conditionally adding a default ctor (I've made it conditional on not having a with_capacity ctor here)
https://github.com/Crzyrndm/ring-span-lite/blob/array-ctor/include/nonstd/ring.hpp#L52-L56`
Built in / C array support would probably only require changing .begin()/end() to std::begin/end
Not sure if that's the right condition to use but it's working for the moment

I have no meaningful opinion on the actual feature request, but I'll just leave this here: std::is_constructible_v<int[10], size_t> is true in C++20, because of paren-agg-init. https://quuxplusone.github.io/blog/2022/06/03/aggregate-parens-init-considered-kinda-bad/

@Crzyrndm Thanks for the heads-up.
Enabling the use of a C-array as template parameters requires some more work.

@Crzyrndm C-array and std::array are now supported as the backing container.
So now one can write:
nonstd::ring< int[3] > r;
nonstd::ring< std::array<int, 3 >> s;

Completed.


ES5 strict doesn't like function declarations inside inner blocks.

(review changes with github's whitespace-ignoring view to reduce the solid-green diff line-ending fight)

This came up with some code that compiled everything down to one 'use strict' file, and jscompiler becomes quite unhappy in that case.

to be clear the error here is that because there was not var, fn was being defined in the global scope.
I wonder if integrating a tool like jshint or jscs or eslint or (whatever tool here) could prevent these kind of issues in the future.

The function declaration wasn't pulled up to global scope, but in non-strict code it's hoisted to the top of the containing function, whereas in strict code it's only defined in its containing block.
Closure compiler probably throws the error here because this behavior can be confusing. The original code here isn't wrong, in strict mode or in lax mode.

hmm interesting! there must be another fn defined somewhere I guess

Try:
function lax() {if (true) { function g() {return 'yes';}} return g()}
function strict() {'use strict'; if (true) { function g() {return 'yes';}}
return g()}
lax(); // "yes"
strict(); // throws ReferenceError
On Mon, Nov 23, 2015 at 12:54 PM, Sam Saccone<EMAIL_ADDRESS>wrote:

[image: screenshot from 2015-11-23 12 50 07]
https://cloud.githubusercontent.com/assets/883126/11349378/c5b979a8-91e0-11e5-8670-8a51f8365b6e.png
hmm interesting! there must be another fn defined somewhere I guess
—
Reply to this email directly or view it on GitHub
https://github.com/Polymer/polymer/pull/3068#issuecomment-159061188.

LGTM


ConnectionResetError: Cannot write to closing transport

Home Assistant release with the issue:
0.91
Last working Home Assistant release (if known):
0.90.2
Operating environment (Hass.io/Docker/Windows/etc.):
venv
Component/platform:
aiohttp
Description of problem:
every few seconds I get thi error.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):
2019-04-05 14:36:20 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
  File "/home/hass/homeassistant/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 447, in start
    await resp.prepare(request)
  File "/home/hass/homeassistant/lib/python3.6/site-packages/aiohttp/web_response.py", line 353, in prepare
    return await self._start(request)
  File "/home/hass/homeassistant/lib/python3.6/site-packages/aiohttp/web_response.py", line 667, in _start
    return await super()._start(request)
  File "/home/hass/homeassistant/lib/python3.6/site-packages/aiohttp/web_response.py", line 410, in _start
    await writer.write_headers(status_line, headers)
  File "/home/hass/homeassistant/lib/python3.6/site-packages/aiohttp/http_writer.py", line 112, in write_headers
    self._write(buf)
  File "/home/hass/homeassistant/lib/python3.6/site-packages/aiohttp/http_writer.py", line 67, in _write
    raise ConnectionResetError('Cannot write to closing transport')
ConnectionResetError: Cannot write to closing transport

Additional information:

I am now getting very similar errors going from 0.90 to 0.91.  My setup is using a RP3B+ with Hass.io 2.11.


chore: remove logic to upgrade az

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Remove arm64 special logic to upgrade cli. The azcli used in VHD build pipeline now is new enough to support --architecture input, this IF block is not required anymore.
Which issue(s) this PR fixes:

Fixes #
Requirements:

[x] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2627

Relevant Lines:
3458

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2627

Relevant Lines:
3458

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2627

Relevant Lines:
3458

💛  - Coveralls


feat: add eslint/no-obj-calls

Adds support for no-obj-calls. Provides progress towards completing #479.

@Boshen thanks for the review, I'll address your comments. I just updated my PR to support references to global objects, e.g.
// Bad
let a = JSON;
let b = a;
let c = b;
c();
let m = Math
function foo() {
  new m();
}

// Good
let m = Math
function foo() {
  let m = x => x;
  m();
}

I'd appreciate a second look if you can.

I don't want #510 blocking this PR so I merged it.
Thank you so much for the contribution!

I know this is already merged and closed but I don't want to open a new issue when it's so recent.
When running the current main branch against the eslint codebase I get the following panic!:
     Running `/home/maneren/.cache/cargo/target/debug/oxc_cli lint /home/maneren/git-repos/eslint/lib/`
thread '<unnamed>' panicked at 'No binding id found, but this IdentifierReference is not a global', crates/oxc_linter/src/rules/eslint/no_obj_calls.rs:94:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Rayon: detected unexpected panic; aborting
[1]    17749 IOT instruction (core dumped)  cargo r --bin oxc_cli -- lint /home/maneren/git-repos/eslint/lib/

That doesn't seem like it's supposed to happen.

@Maneren Thank you for testing! I'll fix this in #510. And if you interested: https://github.com/Boshen/oxc/issues/511 😁

@Boshen would you like me to look into this separately or will you cover this in one of your following PRs?

@Boshen would you like me to look into this separately or will you cover this in one of your following PRs?

A quick removal of that panic would be nice.


In consistency in Ruby symbol with TreeSitter

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description

Steps to Reproduce

Open a ruby file, e.g. test.rb
write:
%i[a b c]
:abc

Expected behavior:
The 2 lines of code are both symbols, so they should be the same color.
Actual behavior:
The first line is orange/yellow. But if I turn off the TreeSitter, they are in the same color.
Reproduces how often:
Always
Versions
C:\Windows\System32>atom --version
Atom    : 1.40.1
Electron: 3.1.10
Chrome  : 66.0.3359.181
Node    : 10.2.0
Additional Information
C:\Windows\System32>apm --version
apm  2.4.3
npm  6.2.0
node 10.2.1 x64
atom 1.40.1
python 3.7.0
git 2.18.0.windows.1
visual studio

Expected color:

The actual color


Error: Request entity too large

First many thanks for this software, but I'm having a "Request entity too large" problem when trying to use it. Is there anything I can do to solve it? The screenshot is attached. Many thanks in advance!!

Hmm. What's the size of the image you're trying to translate ? also, do you have this error every time you try to translate ?

@ogkalu2 I have tried diferent cbr files with the size around 30/40mb but unfortunately the error is coming every time I try to translate


Update default.html

It was a mistake, sorry!
On Wed, 31 Aug 2022 at 15:38, request-info[bot] @.***>
wrote:

Thanks for this. Do you mind providing a bit more information about what
problem you're trying to solve?
—
Reply to this email directly, view it on GitHub
https://github.com/pages-themes/cayman/pull/166#issuecomment-1233026808,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AS7U37UKHI3VEJ7BJQYNNWTV35U7RANCNFSM6AAAAAAQBOF5PU
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Dr Alex Best
Lecturer, School of Mathematics & Statistics, University of Sheffield
Please note I am working part-time, with nominal short working days on
Tuesdays, Wednesdays and Fridays. You may get emails from me outside of
your normal working hours. Please be assured that I respect your working
pattern and I look forward to your response when you are next in work.


Add CERES_NODE_CACHING_BEHAVIOR setting.

Utilizes a new configurable in Ceres, which can reduce memory consumption of
carbon-caches.  With the side effect of maybe saturating the disk, reducing
the overall throughput of persisting metrics.
As per comment, the only reason to do this is if the storage devices are fast
enough, or all in memory (in which case, you wouldn't want it cached twice).
See https://github.com/graphite-project/ceres/pull/40

LGTM


Not able to connect to database using pgcat

**Trying to configure pgcat in my postgres database cluster but not working working properly i am getting bellow error **
To Reproduce
I am running this command to connect database using pgcat setup
psql -U pulp -h pgcat.pgcat.svc.cluster.local -p 6432 -d pulp
Expected behavior
it should connect to  pulp database
Error message
psql: error: connection to server at "pgcat.pgcat.svc.cluster.local" (<IP_ADDRESS>), port 6432 failed: FATAL:  No pool configured for database: "pulp", user: "pulp"
This us my configuration
#
# PgCat config example.
#

#
# General pooler settings
[general]
# What IP to run on, <IP_ADDRESS> means accessible from everywhere.
host = "<IP_ADDRESS>"

# Port to run on, same as PgBouncer used in this example.
port = 6432

# Whether to enable prometheus exporter or not.
enable_prometheus_exporter = true

# Port at which prometheus exporter listens on.
prometheus_exporter_port = 9930

# How long to wait before aborting a server connection (ms).
connect_timeout = 5000

# How much time to give `SELECT 1` health check query to return with a result (ms).
healthcheck_timeout = 1000

# How long to keep connection available for immediate re-use, without running a healthcheck query on it
healthcheck_delay = 30000

# How much time to give clients during shutdown before forcibly killing client connections (ms).
shutdown_timeout = 60000

# For how long to ban a server if it fails a health check (seconds).
ban_time = 60 # seconds

# If we should log client connections
log_client_connections = true

# If we should log client disconnections
log_client_disconnections = true

# Reload config automatically if it changes.
autoreload = false

# TLS
# tls_certificate = "server.cert"
# tls_private_key = "server.key"

# Credentials to access the virtual administrative database (pgbouncer or pgcat)
# Connecting to that database allows running commands like `SHOW POOLS`, `SHOW DATABASES`, etc..
admin_username = "postgres"
admin_password = "test}"

# pool
# configs are structured as pool.<pool_name>
# the pool_name is what clients use as database name when connecting
# For the example below a client can connect using "postgres://sharding_user:sharding_user@pgcat_host:pgcat_port/sharded"
[pools.postgres]
# Pool mode (see PgBouncer docs for more).
# session: one server connection per connected client
# transaction: one server connection per client transaction
pool_mode = "session"

# If the client doesn't specify, route traffic to
# this role by default.
#
# any: round-robin between primary and replicas,
# replica: round-robin between replicas only without touching the primary,
# primary: all queries go to the primary unless otherwise specified.
default_role = "any"

# Query parser. If enabled, we'll attempt to parse
# every incoming query to determine if it's a read or a write.
# If it's a read query, we'll direct it to a replica. Otherwise, if it's a write,
# we'll direct it to the primary.
query_parser_enabled = true

# If the query parser is enabled and this setting is enabled, the primary will be part of the pool of databases used for
# load balancing of read queries. Otherwise, the primary will only be used for write
# queries. The primary can always be explicitely selected with our custom protocol.
primary_reads_enabled = true

# So what if you wanted to implement a different hashing function,
# or you've already built one and you want this pooler to use it?
#
# Current options:
#
# pg_bigint_hash: PARTITION BY HASH (Postgres hashing function)
# sha1: A hashing function based on SHA1
#
sharding_function = "pg_bigint_hash"

# Credentials for users that may connect to this cluster
[pools.postgres.users.0]
username = "pulp"
password = "test"
# Maximum number of server connections that can be established for this user
# The maximum number of connection from a single Pgcat process to any database in the cluster
# is the sum of pool_size across all users.
pool_size = 9

# Maximum query duration. Dangerous, but protects against DBs that died in a non-obvious way.
statement_timeout = 0

# Shard 0
[pools.postgres.shards.0]
# [ host, port, role ]
servers = [
    [ "db-cluster-ha.postgresql.svc.cluster.local", 5432, "Primary" ]
]
# Database name (e.g. "postgres")
database = "pulp"

Did you manage to get it working? If so how?


Camel, sentence, and title casing do not work correctly for acronyms

I fixed this in the commits above with a new strcase package.


[docs/] Some minor README updates (readability/selinux)

a couple of minor updates ive been wanting to make to readme files i've been using

lgtm.
this bugs me too.


Persist won't update on already existing key

System.ArgumentException: Cannot insert duplicate keys in the tree.
  at MarcelloDB.Index.BTree.BTree`1[TK].Insert (TK newKey, System.Int64 newPointer) [0x00010] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Index.RecordIndex`1[TNodeKey].Register (TNodeKey keyValue, System.Int64 recordAddress) [0x00007] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Collections.IndexedIDValue`2[TObj,TID].RegisterKey (System.Object key, System.Int64 address, MarcelloDB.Session session, MarcelloDB.Records.RecordManager recordManager, System.String indexName) [0x00021] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Collections.BaseIndexedValue`2[TObj,TAttribute].Register (System.Object o, System.Int64 address) [0x0005f] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Collections.Collection`2[T,TID].RegisterInIndexes (T o, MarcelloDB.Records.Record record, System.Int64 originalAddress, T originalObject) [0x0004a] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Collections.Collection`2[T,TID].PersistInternal (T obj) [0x00042] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Collections.Collection`2+<>c__DisplayClass25_0[T,TID].<Persist>b__0 () [0x0000d] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Collections.Collection`2+<>c__DisplayClass27_0[T,TID].<Transacted>b__0 () [0x0000d] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Session.Transaction (System.Action action) [0x00053] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Collections.Collection`2[T,TID].Transacted (System.Action action) [0x0001b] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at MarcelloDB.Collections.Collection`2[T,TID].Persist (T obj) [0x00015] in <3abc36bba9ad4d0285c768edd3341f87>:0
  at ProMama.Data.ConfigDatabaseController.SaveConfig (ProMama.Model.Config cfg) [0x00002] in D:\ProMama\ProMama\ProMama\Data\ConfigDatabaseController.cs:25

Docs say (http://www.marcellodb.org/persisting.html):

Persist inserts if there is no object associated with the ID. Otherwise it will perform an update.

What I'm doing wrong here?.. I know that I could just check if the object exists, delete it and insert it again (right now i'm just using a try-catch to bypass this issue), but it would be nice to use the lib's native tool.
This is my controller:
Session session = App.DB;

private CollectionFile ConfigFile { get; set; }
private Collection<Config, int> ConfigCollection { get; set; }

public ConfigDatabaseController()
{
    ConfigFile = session["configs.dat"];
    ConfigCollection = ConfigFile.Collection<Config, int>("configs", cfg => cfg.config_id);
}

public void SaveConfig(Config cfg)
{
    try
    {
        ConfigCollection.Persist(cfg);
    } catch (System.ArgumentException ex)
    {
        System.Diagnostics.Debug.WriteLine(ex);
    }
}

Aaaand this is my model:
public class Config
{
    public int config_id { get; private set; }
    public Usuario config_usuario { get; set; }
    public Crianca config_crianca { get; set; }

    public Config(Usuario usuario, Crianca crianca)
    {
        config_id = 1;
        config_usuario = usuario;
        config_crianca = crianca;
    }

    public Config() {}
}

Great job on the database, btw. I'm using it on Xamarin cross-platform and I'm loving it so far, man (had so many annoying issues with SQLite and Realm, and none of those issues showed up with MarcelloDB).
EDIT: Added my classes code, grammar fix and syntax highlighting.

Thanks for the compliment :-)
I think your problem is related to your config_id property having a private set
You see, internally, MarcelloDB needs the values of all indexed fields (the id is the main index) to remove existing indexes before updating them.
In order to do this it loads the existing object from the data file.
In your case, deserializing (MarcelloDB use json.net) the object uses the default constructor, and internally we end up with an object with an config_id value of 0 ;
You could solve this by setting the id to 1 in the default constructor, allow a set, or even hardcode the id property.
public int config_id{ get { return 1; } set {}}

public int config_id{ get { return 1; } set {}}

This snippet worked like a charm! Thank you for the explanation!
Hey, I got some code examples of setting the dependency managament for Xamarin Cross Platform
(code in Android and iOS projects + getting it together on PCL) if you want to add it to docs. I saw a guy asking for that on the closed issues...

Great!
If you want you can create a PR with the docs?
I'm using couscous, and the docs are in the docs folder.
With cousous preview you can preview your docs.


GEODE-6730: optimize check for sender id differences

This is exactly the same as #3544 except that now the check method logs a warning instead of throwing an exception. If you look at the commit history only the revisions since the merge on June 12th changed since the previous review some of you did.
Throwing an exception led to inconsistency because the operation made it into the region but not into the gateway sender or async event queue.
Once the warning is logged for a region it will not be logged again until a check is done that finds that the ids are consistent.
I had both the initial message (that the ids differ) and the subsequent message (that they are now consistent) both be logged as warnings so that if you see the first message you will also see the second.
If we logged the "everything is ok" at info level, then it is possible that they would only see the warning.
I thought it was best to at least have this log message instead of completely removing the check. It may help diagnose a case in the future when someone dynamically adds a gateway sender inconsistently.
I am still trying to figure out how to validate that the new warning log messages are in the logs.

I don't think we need to validate log messages.


todos_list example perference planel size

I've been trying to read through the code and make sense of it all. The todos example is great as it touches a lot of topics.
Unfortunately I can't figure out why the preference panel size is borked. It seems to be missing a min content area perhaps? Where would I find more docs for this? Are there other things LayoutConstraint::activate takes than is in the code?
I'd appreciate any sort of docs here you may have. (I don't know much about C# and being able to build macos apps with rust is a dream. This is a fantastic crate!
Using trunk as of c739479
With rust 1.64.0

Ah, good catch. That could be solved with a window min size setting, yeah - in examples/todos_list/preferences/mod.rs, did_load(...):
window.set_minimum_content_size(300., 100.);

That said I tend to prefer a different solution: add a layout constraint to the ToggleOptionView like so, which means that any extra options added to the preferences view won't need to contend with the window trying to push a size.
(in ToggleOptionView's layout constraints)
subtitle.width.constraint_greater_than_or_equal_to_constant(100.),

The docs are tricky because it's ultimately just AppKit AutoLayout and/or NSWindow functions, just from the Rust side. There should be docs built on crates.io though, and someone did a pass recently to bump them up a bit.
(Feel free to PR the code change above for the example, otherwise I'll get it at some point here)

I added a PR to add the fix. Thanks for the pointer.
(This issue should close automatically when the PR is merged.)


Git, user-local installation, binaries inside the repo

I'm not going to get to this for a few days at least. I suggest we merge, and we already have people testing the result, so just go with it. I'll take a look and evaluate where we are when I get a chance. Reverting patches isn't too hard, and it's not like anyone other than us builds from scratch!

Sounds good, and I realize this is a pretty significant overhaul to ask for a review on. Hopefully testing (including from myself) goes well.

Hard to complain about progress and improvements!


[MNOE-117] Generate stub font-faces.less

Since main.less imports font-faces.less, creates this file when
generating a new project.

LGTM


Incorrectly Detecting Intents

rasa NLU version (e.g. 0.7.3): 0.9.0a1
Used backend / pipeline (mitie, spacy_sklearn, ...): spacy_sklearn
Operating system (windows, osx, ...): osx
Issue:
i am facing a problem with detecting intents. i am importing my data from wit (i am also using the default wit/number entity) and using the latest version of rasa to train (spacy and duckling). However, when i want to detect numbers, an intent is detected (which is not what i need). For example:
[
  {
    "_text":"230",
    "confidence":0.7114206075436571,
    "entities":{
      "number":{
        "confidence":null,
        "end":3,
        "start":0,
        "type":"value",
        "value":230
      },
      "time":{
        "confidence":null,
        "end":3,
        "start":0,
        "type":"value",
        "value":"0230-01-01T00:00:00.000+02:22"
      }
    },
    "intent":"transfer"
  }
]

note that when a user types 230, this means he does not want to do a transfer.
I believe rasa's response must be the following:
{
  "text":"230",
  "confidence":0.83553937041636217,
  "intent":"None",
  "entities":[
    {
      "start":0,
      "end":3,
      "value":"230",
      "entity":"number"
    }
  ]
}

(the intent field must be empty or has the word None as it used to be in version 0.5).
The training data for a number (example 1) as imported from wit is the following:
{
  "text":"1",
  "entities":[
    {
      "entity":"number",
      "value":"1",
      "start":0,
      "end":1
    }
  ]
}

Content of configuration file (if used & relevant):
{
  "name": null,
  "pipeline": ["nlp_spacy", "ner_crf", "ner_synonyms", "intent_featurizer_spacy",
  "intent_classifier_sklearn", "ner_duckling"],
  "language": "en",
  "num_threads": 1,
  "path": "server_models",
  "response_log": "logs",
  "config": "config.json",
  "log_level": "DEBUG",
  "port": 6000,
  "data": "./data/rasawit/expressions.json",
  "emulate": "wit",
  "log_file": null,
  "mitie_file": "data/total_word_feature_extractor.dat",
  "spacy_model_name": null,
  "server_model_dirs": null,
  "token": null,
  "max_number_of_ngrams": 7,
  "duckling_dimensions": ["duration", "email", "number", "time", "timezone"],
  "luis_data_tokenizer": null,
  "entity_crf_BILOU_flag": false,
  "entity_crf_features": [
    [
      "low",
      "title",
      "upper",
      "pos",
      "pos2"
    ],
    [
      "bias",
      "low",
      "word3",
      "word2",
      "upper",
      "title",
      "digit",
      "pos",
      "pos2"
    ],
    [
      "low",
      "title",
      "upper",
      "pos",
      "pos2"
    ]
  ]
}

The model will always assign one of the existing intents. The current model isn't able to return None as the intent - in its world every message belongs to one of the intents it knows.
To circumvent that, you can create an intent, e.g. out_of_scope and create training examples for this reflecting sentences that should not get any of the other intents assigned.
I opened a more general feature request #387.


ng serve giving errors

Hi,
ng serve is always giving these errors
ERROR in multi main
Module not found: Error: Can't resolve 'webpack-dev-server/client?http://localhost:4200/' in '/usr/local/lib/node_modules/angular-cli/models'
@ multi main
ERROR in [default] /Users/z001mss/bnsf/src/app/app.component.ts:5:12
Cannot find name 'require'.
ERROR in [default] /Users/z001mss/bnsf/src/app/app.component.ts:6:11
Cannot find name 'require'.
going to localhost:4200, just says loading

Please provide us with the following information:

OS?

Mac OSX (Yosemite)

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.18
node: 7.0.0
os: darwin x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
none

The log given by the failure.

Normally this include a stack trace and some more information.
ERROR in multi main
Module not found: Error: Can't resolve 'webpack-dev-server/client?http://localhost:4200/' in '/usr/local/lib/node_modules/angular-cli/models'
@ multi main

ERROR in [default] /Users/z001mss/bnsf/src/app/app.component.ts:5:12
Cannot find name 'require'.
ERROR in [default] /Users/z001mss/bnsf/src/app/app.component.ts:6:11
Cannot find name 'require'.

try: npm install webpack-dev-server

@rahulbats can you try nuking node_modules, clearing the npm cache, and installing the latest version of the cli and see if the issue persists?

npm install webpack && npm install webpack-dev-server resolved the problem for me.

The only thing you should need to do is npm install @types/node. It should be included in the latest package.json of generated projects, but if you've been updating your project from older versions it might not be there.

Hi,
I've got the same error:
ERROR in multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
In my case the solution was deleting the spaces/special characters fom the folder's name:
"d:! Oszkar !\Prog\angular-test"
After changing it was fine:
"d:\Oz\Prog\teszt-zzz"
I hope it helps if you have the same problem... :)

hi,
@OszkarOlah 's solution helps me.
Thanks.

npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app
ng serve
NOT WORKING
An unhandled exception occurred: argument fn must be a function
See "C:\Users...." for further details.
And http://localhost:4200 not found .
How can i solve ?


Could you please provide some details on how you implement the baseline methods on these datasets?

Could you please provide some details on how you implement the baseline methods on these datasets( such as AAV)? such as Adalead, DyNAPPO, etc.

Please refer to samsinai/FLEXS for an open-source implementation of these baseline methods.
Our code base uses almost the same interface as the FLEXS benchmark.


Simulation speed too fast

Tried to look but could not see anyone else talking about this issue.
So I have noticed that at least in Chrome 77/78 and Firefox 70 Mater js simulation runs roughly double the speed than in older browsers. If I run same code in Chrome 74 (happened to be the version OBS Browser uses atm) it runs like normal.
So I don't know what, but something has changed in newer browsers that make Mater js run faster.
But I have come up with an temporary fix, at least for Chrome.
In setup I put
function setup(){
	engine = Engine.create();
	// Checks version and adjust timeScale
	if (navigator.version > 74) {
		engine.timing.timeScale = 0.55;
	}
	Engine.run(engine);
}

and use these functions to get browser version
// Returns browser name and version, found it from here https://stackoverflow.com/questions/5916900/how-can-you-detect-the-version-of-a-browser
navigator.sayswho = (function(){
    var ua= navigator.userAgent, tem,
    M= ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
    if(/trident/i.test(M[1])){
        tem=  /\brv[ :]+(\d+)/g.exec(ua) || [];
        return 'IE '+(tem[1] || '');
    }
    if(M[1]=== 'Chrome'){
        tem= ua.match(/\b(OPR|Edge)\/(\d+)/);
        if(tem!= null) return tem.slice(1).join(' ').replace('OPR', 'Opera');
    }
    M= M[2]? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?'];
    if((tem= ua.match(/version\/(\d+)/i))!= null) M.splice(1, 1, tem[1]);
    return M.join(' ');
})();

// Returns just version as a number
navigator.version = (function(){
	var v = navigator.sayswho.split(" ")[1];
	return parseInt(v);
})();

Would not take much adjustment to make temporary fix for other browsers but I mainly need/use chrome.
Biggest problem I see with this issue is that when people update to newer versions of browsers (at least Chrome 77 and newer) is that games on the web that use Mater js is going to run too fast.
EDIT:
Forgot to mention that I don't use the render part of Matter js in case that could affect the speed?
I have built my own system to "attach" html elements to Matter js object body. Just reads the body position and move the element with js/css.

Or am I the only one experiencing this vierd issue?

A little update:
So got the chance to test run my website on another system and it seems like it's just my computer that is affected somehow so I guess I must have screwed up some settings on my computer or something, but I'm not sure what it is since both Chrome and Firefox are affect the same way.
If I find out what it is I will put it here.

Last time I used it, Matter was bad at dealing with monitors > 60Hz. Observed behaviour was a very fast simulation on 144Hz monitors. Is your monitor refresh rate higher than 60Hz?

Last time I used it, Matter was bad at dealing with monitors > 60Hz. Observed behaviour was a very fast simulation on 144Hz monitors. Is your monitor refresh rate higher than 60Hz?

Sorry for late response!
Yes, I recently bought a 144hz monitor, so that must be the problem. (Also have 2x 60hz monitors.)
Even though I like Matter I might have to consider another physics engine then.
Did check so you can apparently use window.requestAnimationFrame together with some code to get fps. Found the information here on stackoverflow. I'll try at some point if this would work.
Thank you for the info @nfernand !

Exactly, the issue is that the built in runner is pretty simplistic and assumes a 60hz monitor, but now that monitors are coming with higher refresh rates this is becoming a problem.
I've actually already been working on some improvements to the runner which will solve this, but for now go with a fixed timestep or a custom runner. Thanks for reporting but closing this one as it's a known issue.


Remove doggie xfail

Pull Request Description
Doggie was fixed with https://github.com/apple/swift/commit/0a4b0a8da764d8bc09625f093e4151b58e5e890e

@swift-ci test


ImportError: No module named events

Seeing this occasionally:
Traceback (most recent call last):
  File "releases/latest/env/bin/my_cli_tool", line 9, in <module>
    load_entry_point('my_cli_tool==0.0.0', 'console_scripts', 'my_cli_tool')()
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/my_cli_tool/__init__.py", line 675, in my_cli_tool
    run_tool()
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/raven/base.py", line 686, in wrapper
    self.captureException(**kwargs)
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/raven/base.py", line 658, in captureException
    'raven.events.Exception', exc_info=exc_info, **kwargs)
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/raven/base.py", line 508, in capture
    **kwargs)
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/raven/base.py", line 286, in build_msg
    handler = self.get_handler(event_type)
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/raven/base.py", line 237, in get_handler
    return self.module_cache[name](self)
  File "releases/28c91ce31a76d547dab93767dc7a208f8ddd7a10/env/local/lib/python2.7/site-packages/raven/base.py", line 49, in __missing__
    module, {}, {}, [class_name]), class_name)
ImportError: No module named events

seemingly with no cause.
I can import raven.events, so I'm not sure why this message is popping up.

Do you have a module named raven elsewhere in your projects?

Closing this as we can't investigate further. Feel free to reopen if you have more informations about this.

Getting this error:
File "/usr/local/lib/python2.7/dist-packages/raven/base.py", line 679, in captureException
  File "/usr/local/lib/python2.7/dist-packages/raven/base.py", line 524, in capture
  File "/usr/local/lib/python2.7/dist-packages/raven/base.py", line 302, in build_msg
  File "/usr/local/lib/python2.7/dist-packages/raven/base.py", line 253, in get_handler
  File "/usr/local/lib/python2.7/dist-packages/raven/base.py", line 49, in __missing__
ImportError: No module named events


response.plainCookie

adds new plain cookie to response without decrypting or unsigning it.
I have to read a plain cookie in the client js

Coverage decreased (-0.1%) to 98.027% when pulling aaa7268dc79c280183eaa37c3afd14cb8840c00a on balmacefa:responseCookiePlain into ad73415c89530cd2e522c3d5cdddae4015b44ad4 on adonisjs:develop.

Coverage decreased (-0.1%) to 98.027% when pulling aaa7268dc79c280183eaa37c3afd14cb8840c00a on balmacefa:responseCookiePlain into ad73415c89530cd2e522c3d5cdddae4015b44ad4 on adonisjs:develop.

Implemented


Verify stacking of reconcile loops

I am not sure if it's an issue, but unless someone has definitive  answer it should be looked into it.
At the moment  we use the requeue interval in order to deal with refreshes and it kind of works. My concern is about stacking. Let's say that we have a highly dynamic secret which is being refreshed every 5 min, and we set our refresh interval to 5 min as well. On the second run, we update values on configmap which we own, and our own status, that will trigger 2 different reconcile event, every one of which will be requeued.
The question is: are we sure that these requeue events are merged together? Or do we look into potentially exponential growth of calls against kube api?
https://github.com/external-secrets/external-secrets/issues/353 should help with reducing number of overall loops, but if they are not merged, we probably need to think about overall logic and leverage jobs to trigger updates (or something similar).
Proposed test
It should be easiesh to test out, if we print something on every reconcile loop, it will be sufficient to edit child config maps several times and see if the interval is observed or not.

ok Cool, so the only issue remaining then is the logical one.
From what I got on those docs (and please bear with me, it's morning and I didn't take my coffee yet), let say we have created a externalsecret which has been synced to the kind=secret, refresh time is 24h.
Then 23 h later another event happens (i.e. kind=secret annotation change or whatever).
	case result.RequeueAfter > 0:
		// The result.RequeueAfter request will be lost, if it is returned
		// along with a non-nil error. But this is intended as
		// We need to drive to stable reconcile loops before queuing due
		// to result.RequestAfter
		c.Queue.Forget(obj)
		c.Queue.AddAfter(req, result.RequeueAfter)
		ctrlmetrics.ReconcileTotal.WithLabelValues(c.Name, labelRequeueAfter).Inc()

means that we will loose our refresh target, as it will be pushed 24h down the line isn't it? It's a minor issue in most scenarious, but unexpected one for the customer. It might be better to think about using something like https://github.com/robfig/cron in a separate go routine for precise handling of externalsecret object's refresh (any change to them will trigger the reconcile and propagation)

Like you say, this is a minor issue in most scenarios, even though it is unexpected for the user. I would personally think that keeping it simple would be better (following KISS approach). A Cron in a separate go routine sounds like unneeded complexity tbh.
I think it would make sense to tackle this if we have recurrent reports of problems in that regard, and I assume that we would not. I could be wrong. What do you think?

Yes, as I said it's a minor. For now we can deal with this by adding a mention in docs against refresh interval, something along the lines Note: any change against the externalSecret object or the dependent configMap (in case of ownership set to Owner) will cause the drift in the next refresh date  (native speaker can express it much better probably :p)

I'd say this is a bug and i think we can quite easily fix it when we return the time duration from now until the desired refresh time instead od the static refresh interval here:
https://github.com/external-secrets/external-secrets/blob/8258509c0eb5c9098da0adabf7e58895d70cb38c/pkg/controllers/externalsecret/externalsecret_controller.go#L167

Yes, that probably would do it, although a bit of consideration for the errors should be involved as well.
Also, just fiy, that particular bit of code is potentially going to be affected by https://github.com/external-secrets/external-secrets/pull/349 depending on the route I am going to take on that ticket

Yeah, makes sense. And it is simple enough.
A colleague added sonar Cube to the project and it revealed very high numbers for cognitive complexity of the controller. Just wanted to make sure we try to keep things simple 😅
But yeah, makes sense


Move smoke tests and documentation to eng

cc @kaerm
Following on a previous conversation this change moves the documentation folder from the root to the eng folder as it is documentation for contributing engineers and might confuse someone who lands in the repo and wants to consume it.

/azp run js - smoke-tests

@KarishmaGhiya -- This is the the PR to move the documentation folder that we were talking about.

/azp run js - smoke-tests

/azp run js - smoke-tests

/azp run js - smoke-tests

/azp run js - smoke-tests


MM-15322 Change PostList.checkBottom to use onScroll

The previous version of this used onItemsRendered to trigger checkBottom, but that only triggers when the rendered posts changes, so it couldn't be as accurate as the versions before it. It also has some issues because it only allows us to check when the second post from the bottom became visible (visibleStopIndex would be 0 as long as the second post was visible). Changing it to onScroll lets us tell more accurately when the list is at the bottom.
The other change here is that this.state.lastViewedBottom is now updated when you reach the bottom and then again when you leave it. This also caused a bug where you'd scroll to the bottom, receive some posts, and then you'd scroll back up and the "New Messages" would appear.
Ticket Link
https://mattermost.atlassian.net/browse/MM-15322

. My only question would be if there is a performance overhead to inspecting elements during a scroll handler

@lieut-data Yes, it will have a minor impact from my guess as the call here can cause layout trash but it should not be something we should be concerned about.
This func is not called as often as a scroll handler. This is a callback from virt list. The scroll handler inside virt list is batched as it is based on an setState. So few scroll calls are batched anyway till a setState is triggered.
I will definitely check this as part of another perf ticket to see if this causes any considerable impact and pass the necessary values from the virt list if needed.
My idea is to use onScroll(event) the event object as it will have event.target.valuesWeNeed for deducing the atBottom here. This way we don't ask create a layout trash.
For now i am good with this.

(visibleStopIndex would be 0 as long as the second post was visible). Changing it to onScroll lets us tell more accurately when the list is at the bottom.

@hmhealey Sounds like something i should check. It was working fine as far i remember before the recent changes to the virt list and postsInchannel refactor.


Github Actions & CCache

Switch to Github Actions from Azure Pipelines for a nicer, better embedded interface
Make use of third-party actions for installing Nix and MSYS2 to reduce maintenance burden and setup time (by ~50%)
While we're at it, use CCache to bring build time down from 30min to 2min (if no C/C++ code has changed). CI build is now dominated by the test run of Linux Debug (18min).

This probably would have worked on Pipelines as well, but now seemed like a good time to do it
Also tries to use CCache outside of CI unless -DCCACHE=OFF is used.

(It probably has to be merged first before it runs on PRs)

merged


Chat interface

The chat interface has not been optimzed. Comming message would split the inputing message, and cannot recover it unless a Ctrl+R signal is sent.

We did search research on terminal, and discovered that maybe the input and print method is some simple implementation of basic termial api. And there exits difference between *ix and windows.  Maybe we could implement our own sytle terminal with unblocked buffer mode.


Removed identifier passing from uploadVideo()

This PR removes the identifier argument from uploadVideo as that functionality is no longer supported. See our SantosCloud PR for the accompanying server side fix.

I added another functionality addition that decides to stream the data if it is over 100MB instead of loading it into memory and then sending it. The PR should be re-reviewed before merging.

I tried to rebase on dev :(

I used a force push and now it looks clean

Thank you!


fix: unref asyncTimeout; fixes open handle issue in jest

Checklist

[x] yarn run dist:ci passes on my machine
[x] I have followed the commit message guidelines, with messages suitable for appearing in the changelog

Description
When running our jest unit tests, they always end with this "Jest did not exit one second after the test run has completed" message:

Adding .unref() to the setTimeout() fixes this issue.
Jest recommends calling .unref() on any timers used in your tests to fix open handles like this.
Note: This is a similar fix to the following pull request: https://github.com/pactflow/pact-msw-adapter/pull/123
So only one of them should be merged.

@tsemerad @vietanhtran16
Thanks for both your changes, do you between you both want to consider the best approach each between you and let me know, rather than me needing to pick one over the other 👍🏾

@tsemerad @vietanhtran16
Thanks for both your changes, do you between you both want to consider the best approach each between you and let me know, rather than me needing to pick one over the other 👍🏾

Hey @tsemerad, that looks like a reasonable fix. I am good with this too if it works. Could you also share the documentation from jest on this fix please? I couldnt find it. Thanks

For sure. Yeah @vietanhtran16 I got this .unref() idea from jest itself sometimes when it reported an open handle issue. I couldn't find it in the actual jest docs, but you can see it here in jest's cleanup code, it says:

Active timers can also cause this, ensure that .unref() was called on them.

For sure. Yeah @vietanhtran16 I got this .unref() idea from jest itself sometimes when it reported an open handle issue. I couldn't find it in the actual jest docs, but you can see it here in jest's cleanup code, it says:

Active timers can also cause this, ensure that .unref() was called on them.

Ah cool good find. Thanks for sharing that. I am happy with this too @YOU54F

great stuff thanks team. i'll look to get this merged and released tomorrow


"Get new stream thumbnails" button can be spammed to create a lot of thumbnails

A bug or a feature? I was able to make like 50 rows.

Whoops haha. Call it a bit of both; I'll fix that later this evening. Thanks for the catch and report!


Update to Parquet 1.8.2

Hi guys,
Since Spark 2.x uses Parquet 1.8.2, we would like to update Druid's parquet library from 1.8.1 to 1.8.2 as well. It includes a lot of patches, performance improvements and better compatibility:
https://github.com/apache/parquet-mr/compare/4aba4da...c652278
Cheers, Fokko

👍


docs: alternative ways to present tokens

Adds

a page showing all tokens, inferring their presenter
a dashboard grouping tokens into the categories globals & aliases (all others, in fact)

Beef moved into #54


everything-alpha: Update manifest

fix persist
move install-context.reg generate script to post_install then the path replaced with current instead of $version

Closes #485

[x] I have read the Contributing Guide.

Everything-1.5a.ini does not appear to "survive" an upgrade.

if you installed the app before this PR merged, then this fix has not yet effect. scoop executes uninstaller(script) inside <appdir>\manifest.json,

Nope, still forced to manually copy over Everything-1.5a.ini from backup