Drag in works; out not so much

Hi Craig :-)
Dragging & dropping from the Win10 shell (or other apps) INTO WinFile works fine.
But I get the universal-no cursor when trying to D&D from WinFile elsewhere.
Copy/Paste works both ways.
I couldn't find any drop-source code (e.g. no impl of IDropSource). So I'm guessing you didn't get to this side of the equation?

Hey there  Charlie, nice to hear from you again.
And leave it to you to find the missing features in my OLE drag/drop implementation!  You are correct, the drag/drop support is limited right now.  Fire up VS and send me a PR!

I've been itching for something to un-rustify my C/C++ skills. We shall see. Hugs.

I look forward to your PR.

I've been itching for something to un-rustify my C/C++ skills. We shall see. Hugs.

I realize this is a bit old now, but... any updates on this? 😃


pythonPackages.pyfirmata: init at 1.1.0

pyFirmata is a python library for Firmata, a microcontroller protocol.
Firmata can be used to drive arduino boards with python, using standard
firmata firmware.
Signed-off-by: William Casarin<EMAIL_ADDRESS>Reviewed-by: Matthias Beyer<EMAIL_ADDRESS>Link<EMAIL_ADDRESS>Things done

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

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

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

On Mon, May 17, 2021 at 10:04:33AM -0700, legendofmiracles wrote:
@.*** commented on this pull request.

   description = "A Python interface for the Firmata protocol";

done

   homepage = "https://github.com/tino/pyFirmata";

done, thx

Result of nixpkgs-review pr 123386 at b3f8d92a run on aarch64-linux 1

2 packages built successfully:

python38Packages.pyfirmata
python39Packages.pyfirmata

2 suggestions:

warning: no-python-tests
Test runner could not discover any test cases: ‘Ran 0 tests in 0.000s’
Near pkgs/development/python-modules/pyfirmata/default.nix:17:0:
   |
17 |     description = "A Python interface for the Firmata protocol";
   | ^

warning: unused-argument
Unused argument: stdenv.
Near pkgs/development/python-modules/pyfirmata/default.nix:1:8:
  |
1 | { lib, stdenv, pyserial, buildPythonPackage, fetchPypi  }:
  |        ^

Bump. Please see jonringer's comment - looks like there are tests in the upstream repo (https://github.com/tino/pyFirmata/blob/master/tests.py)

On Sun, May 23, 2021 at 07:01:43AM -0700, Luke Granger-Brown wrote:

Bump. Please see jonringer's comment - looks like there are tests in the upstream repo (https://github.com/tino/pyFirmata/blob/master/tests.py)

thx I have been offline for about a week, will get to this soon.

don't have time for this one right now :(


updated double-commander (0.7.8-7400)

Welcome, @rajivnarayan.
In the future, please do not delete the template. It’s there for a reason.

@vitorgalvao not sure I follow your comment on deleting the template, this was submitted using cask-repair.


[entropy_src] Move ENTROPY_SRC version 2.0.0 verification_stage to V2S

This resolves lowRISC/OpenTitan#22469.

CHANGE AUTHORIZED: hw/ip/entropy_src/data/entropy_src.hjson

We're currently fixing the last items for M5. Once those final PRs are merged, we can sign-off V2S.

CHANGE AUTHORIZED: hw/ip/entropy_src/data/entropy_src.hjson


EDU-247 Edit control panel

Closes https://educandu.atlassian.net/browse/EDU-247
Added restriction for room owner.

The DocView used here on the page has not been updated yet to also handle lessons, but we can do this later when we can test this without manually updating the db.

The DocView used here on the page has not been updated yet to also handle lessons, but we can do this later when we can test this without manually updating the db.

👍 Gladly removed! Was just thinking you might want to keep it there for the next step.


⚠ Guya.moe Proxied has degraded performance

In a6ea11c, Guya.moe Proxied (https://ice.guya.moe/) experienced degraded performance:

HTTP code: 200
Response time: 11709 ms

Resolved: Guya.moe Proxied performance has improved in ebe21e2.


CDI Injector for Entity View provider classes

Currently we have custom instantiators for provider classes. We could add another for instantiating with CDI and thus have support for injection.

I could have a look at this as part of #502, but I am not entirely sure which classes you're targeting at?

Subquery and correlation providers are candidates


Upgrade jp.skypencil.errorprone.slf4j:errorprone-slf4j 0.1.18 -> 0.1.20

This PR contains the following updates:

Package
Type
Update
Change

jp.skypencil.errorprone.slf4j:errorprone-slf4j

patch
0.1.18 -> 0.1.20

jp.skypencil.errorprone.slf4j:errorprone-slf4j
compile
patch
0.1.18 -> 0.1.20

Release Notes

KengoTODA/errorprone-slf4j (jp.skypencil.errorprone.slf4j:errorprone-slf4j)
v0.1.20
Compare Source
Bug Fixes

deps: update errorprone to v2.21.1 (41a519a)

v0.1.19
Compare Source
Bug Fixes

deps: update errorprone to v2.21.0 (5f1b5b1)

[ ] If you want to rebase/retry this PR, check this box

Warning
Renovate's suggested commit message is being replaced with improved initial commits to enable automerging. As a side effect, these suggested commit messages might have changed. Consider comparing the initial commit message and this message to determine the most suitable one. Please leave feedback in #sys-renovate.

Thanks :)


OptimizationOptions::debug_info isn't functional

I am trying out OptimizationOptions::debug_info on 0.0.1-preview.3. However, no matter whether I set it to true or false the name section is always removed.

I suspect this is fixed on master. We have fixed many bugs since that
preview release and I expect to publish a finished create packaging
binaryen 110 within days.
On Thu, Sep 29, 2022, 11:02 AM Alexander Theißen @.***>
wrote:

I am trying out OptimizationOptions::debug_info
https://docs.rs/wasm-opt/0.0.1-preview.3/wasm_opt/struct.OptimizationOptions.html#method.debug_info
on 0.0.1-preview.3. However, no matter whether I set it to true or false
the debug section is always removed.
—
Reply to this email directly, view it on GitHub
https://github.com/brson/wasm-opt-rs/issues/81, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABD6DW7VVOKOQEORNSPQQTWAWVORANCNFSM6AAAAAAQY3XRDY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

A new release is published. This should be fixed.

Fixed.


Fix "Lunix" typo

Sorry, I know this is an old project, but it was just driving me mad.

Thanks, Mario. It made me laugh how long this typo has been around. :)


I hope the source code of DirectML can be open source

Why doesn't DirectML have source code? Let’s work together to improve open source HLSL, or modify it to suit your own scenarios

I wish it too. There is no support for directML in any other frontend even for onnx on WSL.


Feature/fastapi

Switching app to FastAPI architecture, adding endpoints to request topic modeling
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

Change Status

[x] Complete, tested, ready to review and merge
[ ] Complete, but not tested (may need new tests)
[ ] Incomplete/work-in-progress, PR is for discussion/feedback

How Has This Been Tested?

[x] Running locally through Docker and testing endpoints with Postman
[x] Already deployed on AWS Elastic Beanstalk

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] My code has been reviewed by at least one peer
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] There are no merge conflicts

good work


Use VM uuid if the VM name can't be got locally.

Use the VM uuid if the VM name can't be got on the local ESX host. The VM could be on a different ESX host in that case. Its possible that the VM doesn't exist even, but the volume KV may still record the fact. In which case a subsequent attach of the volume on the other ESX host will clear the stale attached-to entry in the volume KV. From a remote node there's nothing much that can be done in this case except use the data thats in the KV.

Fixes #934.

@msterin the vm name isn't known because the vm isn't on the host. we can
invoke handle_stale_attach() from vmdk_ops.py to check and reset the
attached vm state. But it's not correct if the VM had migrated out of the
host and still using the volume on a shared data store.
On Feb 21, 2017 4:02 AM, "Mark Sterin"<EMAIL_ADDRESS>wrote:

@msterin commented on this pull request.
In esx_service/cli/vmdkops_admin.py
https://github.com/vmware/docker-volume-vsphere/pull/939#discussion_r102102348
:

 try:

     vm_name = vmdk_ops.vm_uuid2name(metadata[kv.ATTACHED_VM_UUID])
     if not vm_name:

       if metadata[kv.ATTACHED_VM_UUID]:

           return metadata[kv.ATTACHED_VM_UUID]

i think logging bitgh vmname and uuid and resetting vmname to "" if it's
not avail is a way to go since it adds predictibility.
On ESX name - I am not sure which ESX ? where it's attached ? Where it was
created ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vmware/docker-volume-vsphere/pull/939#discussion_r102102348,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APHseBYil4IpnzHmuBSm-plo6Q-tjPZvks5rehRhgaJpZM4MF-Gq
.

This is what the new header looks like,
/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls
Volume                       Datastore  Created By VM  Created                   Attached To VM (name/uuid)  Policy  Capacity  Used  Disk Format  Filesystem Type  Access      Attach As

60635dd205d5067be93aaeade..  bigone     2              Wed Feb 15 10:36:11 2017  detached                    N/A     100MB     13MB  thin         ext4             read-write  independent_persistent
newvol                       bigone     2              Wed Feb 15 10:36:43 2017  detached                    N/A     100MB     13MB  thin         ext4             read-write  independent_persistent
newvol1                      bigone     1              Wed Feb 15 11:40:52 2017  detached                    N/A     100MB     13MB  thin         ext4             read-write  independent_persistent
newvol2                      bigone     1              Wed Feb 15 11:55:02 2017  detached                    N/A     100MB     13MB  thin         ext4             read-write  independent_persistent
newvol3                      bigone     2              Wed Feb 15 11:55:18 2017  detached                    N/A     100MB     13MB  thin         ext4             read-write  independent_persistent
I'm not sure we want to have separate vm-name and vm-uuid columns as mostly the vm-uuid column would be empty save the occasional case where the VM is missing on the local host


Clean expire package not clean all

Description
I want to clean up the expired packages, but run once only clean a little.
Gitea Version
1.9.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots

Git Version
No response
Operating System
No response
How are you running Gitea?
Kube deolpy
Database
PostgreSQL

Please change the language to English before taking the screenshot...

@KN4CK3R The problem is I run clean expire package, every click/run will delete some packages, that means, the clean not delete all in once.

Because only unreferenced blobs are deleted which are older then 24h at the time of the click.

We close issues that need feedback from the author if there were no new comments for a month. :tea:

Problem still exists, 1.20.3

#25307 is only in 1.21


Update step size dtypes

In #86, I updated the step size dtypes to int64, but I imagine it would be better to perform that conversion somewhere within AeHMC; however, I don't know the best place for that at the moment.
@rlouf, if you get a minute, tell me where you think an astype could be performed so that users can specify int32 and avoid those Scan casting issues.
Originally posted by @brandonwillard in https://github.com/aesara-devs/aehmc/issues/86#issuecomment-1370220761

As far as I understand, you cast the number of steps  to int64. The high-level entry points of the library, and that you might want to use in a Scan are here:

https://github.com/aesara-devs/aehmc/blob/d54e2d05512d8d3d4aea92b8732854e6794296e8/aehmc/window_adaptation.py#L85
https://github.com/aesara-devs/aehmc/blob/d54e2d05512d8d3d4aea92b8732854e6794296e8/aehmc/hmc.py#L73

It seems that you've covered the internal ones already.


lxml ValueError exception in process_slo()

SP is using python3-saml version 1.2.6
IdP is Shibboleth Identity Provider version 3.3.0
When calling process_slo() the following exception is thrown:
    logout_response = OneLogin_Saml2_Logout_Response(self.__settings, get_data['SAMLResponse'])
  File "/opt/env/lib/python3.6/site-packages/onelogin/saml2/logout_response.py", line 41, in __init__
    self.document = OneLogin_Saml2_XML.to_etree(self.__logout_response)
  File "/opt/env/lib/python3.6/site-packages/onelogin/saml2/xml_utils.py", line 66, in to_etree
    return OneLogin_Saml2_XML._parse_etree(xml)
  File "/opt/env/lib/python3.6/site-packages/defusedxml/lxml.py", line 143, in fromstring
    rootelement = _etree.fromstring(text, parser, base_url=base_url)
  File "src/lxml/lxml.etree.pyx", line 3228, in lxml.etree.fromstring (src/lxml/lxml.etree.c:79609)
  File "src/lxml/parser.pxi", line 1843, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:119069)
ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.

As the exception says the SLO SAMLResponse contain an encoding tag, i.e. <?xml version="1.0" encoding="UTF-8"?> which isn't allowed when feeding etree.fromstring with a unicode string.
Not sure what the best solution would be in this case, but changing compat.to_string()
to compat.to_bytes() seem to work:
https://github.com/onelogin/python3-saml/blob/16cd67c0efa329ac016abdb8471cb0d654a68825/src/onelogin/saml2/logout_response.py#L40

If I change to_string by to_bytes, tests executed in python2 fail.

@pitbulk I noticed that a couple of tests failed so I changed it to this instead:
diff --git a/src/onelogin/saml2/logout_response.py b/src/onelogin/saml2/logout_response.py
index 7a27af8..3d1d5e4 100644
--- a/src/onelogin/saml2/logout_response.py
+++ b/src/onelogin/saml2/logout_response.py
@@ -39,7 +39,7 @@ class OneLogin_Saml2_Logout_Response(object):

         if response is not None:
             self.__logout_response = compat.to_string(OneLogin_Saml2_Utils.decode_base64_and_inflate(response))
-            self.document = OneLogin_Saml2_XML.to_etree(self.__logout_response)
+            self.document = OneLogin_Saml2_XML.to_etree(compat.to_bytes(self.__logout_response))
             self.id = self.document.get('ID', None)

     def get_issuer(self):

All tests pass and it also works in my production environment with Shibboleth 3.3.x.

Same problem here, are you thinking to fix it soon @pitbulk?
It would be great! Thanks!

Yes I need to fix that and generate a new release. I hope to be able to do it soon (this or next week)

Looks like the parser also doesn't like the encoding declaration. Since it passes in unicode strings here: https://github.com/onelogin/python3-saml/blob/b3968330d5c39dbc1c805b4863dd183870d5f43c/src/onelogin/saml2/idp_metadata_parser.py#L127
Any plans to fix that?

Any news about this issue @pitbulk?

Have you tested if SLO IdP initiaited, where a LogoutRequest is sent to the SP also experience this issue?

No, only SLO SP-initiated.

Does #77 fix the issue?
Can you guys provide tests with examples of LogoutResponse and IdP Metadata XMLs so we prevent to revert this fix?

#77 fix the issue!!
I'll try to develop some test, but I'm not sure when.

@kitab15 if you don't have time, simple send me the XML examples and I can build unit test myself.

I think that the examples you are testing right now could be fine, if you add the encoding tag at the beginning of the XMLs files.
<?xml version="1.0" encoding="UTF-8"?>

Hi @pitbulk , I have tested SLO IdP-initiaited and just like was described in #81 , the problem is also there.
Replacing in logout_request.py:115
self.__logout_request = compat.to_string(logout_request)
with
self.__logout_request = logout_request
works for me.
I couldn't help you with some tests yet, but I will do it as soon as I can.

@cbouvier15 @Ratler can you guys check if #127 solves your issue?


[FR] Add last 24 hour summary to Summary page

How about the same little skinny block like Expected Time to Win that is at the very top, we add a 24 Hour Summary: at the bottom (right above the version text)? Or maybe even right below the expected time to win section? Same small footprint ideally (not new line for every item like in Alerts page)
The same info from the Alerts page, but just showing the last 24 hours. This way your one-stop visit for last 24 hours will be the Summary page for quick glancing of all info.

Sorry, I've been busy around official Chia pool support.  This is a great idea.  I'll try to get this going soon!

Hi, I've taken a run at displaying the change over the past day on the Summary page.  Please provide your feedback:

On first glance it looks very busy. I appreciate some of the padding and empty space of the current design. But if it's a choice between the two of these, I'd still choose the newer one since it does have all the info right on front screen. Good job!

Looks nice to me, too. Great job!
Is there any way to also have the "Points found in the last 24 hours" and "Points successful in the last 24 hours" much like in the official GUI?

@toto99303 Good suggestion!  Try the latest :test image:

Thanks! I forced upgrade on the :test image, but there's no Pooling tab on the left. Manyally browsing it also returns non existing page. Am I doing something wrong?

Hi, test release is still building. Adding arm64 support recently pushed builds from 10 mins to well over 2 hours. Sorry!
https://github.com/guydavis/machinaris/actions/runs/1080884043

Now it's fine. Thanks again for doing all this!!

How are points for last 24 hours calculated? Is this value coming from the pool, or it's calculated locally? It looks like my values are wrong. For every 100 k32 plots we should have roughly 1000 points for 24 hours. I have 997 plots currently, but points for the last 24 hours are way lower than 9000.

Interesting.  Machinaris is simply calling the Chia RPC endpoint for pool state and returning the values it provides.
Thanks for the feedback on the :test version of Machinaris.  I'll see what others report too.

I am not proficient in Java, but It looks like they calculate the 24 hour points in the GUI here:
https://github.com/Chia-Network/chia-blockchain-gui/blob/d697b48f9a1324672802fd9e6fd93b079cc0f063/src/components/plotNFT/PlotNFTCard.tsx#L104

I'm not seeing any other reports related to this in latest versions of Machinaris.  If this concern about points is still an issue for you, please open a new issue, with all the specifics listed.  I'm going to close out this original issue from late June.


Required angular version

I'm currently using angular 1.3.17 due to some issues of angular 1.4.x with ngAnimate. Which is an angular version supported by ngTable? Are there some older tags which support 1.3.17?

What issues are you having with using ngtable with that version of angular?

The issue was, that if I simply added the js file to my index.html angular had errors and so I thought, that there is perhaps a version mismatch, because the errors itself, didn't say much. I was trying to reproduce it again, but for some reason it didn't occur again. Good for me, but sorry for wasting your time.
But I'm a bit curious, are there some lists of which versions are supported?

Ok glad you don't have an issue. Not 100% sure which versions of angular is supported. I would hope 1.2.x but it might need 1.3.x

Thanks, good to know. I will close this issue then, as it works.


ProxyPass URL must be absolute /api

Docker API container is reachable at http://localhost:8080/api/ping

Built UI image without issue but get this error when running it:

No documentation or GitHub issues helped.
Thanks.

Hey were you able to find a solution for the issue?


Package demo data

Can we bundle our “gold standard” data for demoing?

@JingMing623 took care of this on 2017-02-02.


$[0,-1:].name returns the whole list

using the path $[0,-1:].name on
[
  { "name": "name1" },
  { "name": "name2" },
  { "name": "name3" },
  { "name": "name4" },
]

returns the 4 names.
Compared with an online evaluator which validates this syntax

In this case we match the evaluator at https://jsonpath.curiousconcept.com/ where the first index is used, and any other indexes are ignored, and then the colon is interpreted as a range extending to the end of the array.
I'm not sure how we should actually handle it (either make it an error or ignore the trailing colon) because I don't think the existing behavior is the most intuitive. I need to think more on that.

Hi, I was expecting an array of $[0].name and $[-1:].name (which works with your lib) but I can do with this syntax $[0,-1].name (I hadn't tried this one until now). Thanks

The result is the first and the last in spec 0.8.3


Work out Admin API authentication and authorization

With the basic authentication in place, we can start building out the rest which gives us some time to work on a longer-term solution.
Let's start by completing the items below and then use this issue as a checklist for things to implement and test.
Authentication sources

[x] Username and Password
[x] Social Login (GitHub/Google)
[ ] (Future) Solana Wallet

Permissions

[ ] Global

[x] User can log in to Mogami Admin API
[x] User has a Admin or User role
[ ] Admin users can manage any content in the API (apps/users/etc)

[ ] Per App (tenant)

[ ] User can create a new App
[ ] When creating the App, it will create an AppTeam with the user as Owner
[ ] An Owner of an App can add new Members to the App

Related #426 #428


drivers: adc: stm32: support multiple channels

Support sequencing multiple channels into a single read.
Split off from #52965
Signed-off-by: Hein Wessels<EMAIL_ADDRESS>

@erwango @xyzzy42 @FRASTM ready for re-review.
Sorry if a double ping, I can't seem to trigger it for all three at the same time. Also lost some other review requests again. Github is being weird with the Reviewers pane.

I also corrected samples/drivers/adc/src/main.c to correctly read and print a sequence of channels. Previously if a sequence was supplied it would read it all correctly, but repeat the entire sequence-read redundently for each channel.

@heinwessels We've launched a test session on our bench and tests/drivers/adc/adc_api/drivers.adc is failed on all boards. Can you have a check ?

@heinwessels We've launched a test session on our bench and tests/drivers/adc/adc_api/drivers.adc is failed on all boards. Can you have a check ?

@erwango Ah, sorry about that. This was caused by a problem with the sequencer/ranks as specified in a comment, and incorrect handling of extra_samples. I've fixed both issues, and added a ADC_2ND_CHANNEL_ID for the nucleo_h743zi to correctly do the unit tests (in a separate commit ;) ). The unit test shows all passing.

Is the sample still going to work on devices that do not support multiple channels in one read?

Is the sample still going to work on devices that do not support multiple channels in one read?

@fabiobaltieri  Yes, it should. The driver acts exactly the same as before when only one channel is selected. So to the LL drivers and the user there will be no difference.
And it's only possible to selected multiple channels if the board has an sequencer, which I used a previously existing check's logic (where it creates table_seq_len).

@fabiobaltieri Yes, it should. The driver acts exactly the same as before when only one channel is selected. So to the LL drivers and the user there will be no difference.
And it's only possible to selected multiple channels if the board has an sequencer, which I used a previously existing check's logic (where it creates table_seq_len).

Right but isn't the sample always trying to select multiple channels if multiple channels are defined now? Thinking of a board with no sequencer and multiple channel defined, before they were going to be used one at a time, now it would try to do all at once. (Sorry not sure it's a problem and admittedly not very familiar with the API)

@fabiobaltieri Yes, it should. The driver acts exactly the same as before when only one channel is selected. So to the LL drivers and the user there will be no difference.
And it's only possible to selected multiple channels if the board has an sequencer, which I used a previously existing check's logic (where it creates table_seq_len).

Right but isn't the sample always trying to select multiple channels if multiple channels are defined now? Thinking of a board with no sequencer and multiple channel defined, before they were going to be used one at a time, now it would try to do all at once. (Sorry not sure it's a problem and admittedly not very familiar with the API)

No problem, it's good to make sure. There's this piece of code that will return an error if more than one channel is specified in sequence->channels and the board doesn't support a sequencer. If it has only one channel defined, then it will configure that channel in the same way as before this PR. Here is a snippet of the relevant code:
#if !defined(CONFIG_SOC_SERIES_STM32F0X) && \
	!defined(CONFIG_SOC_SERIES_STM32G0X) && \
	!defined(CONFIG_SOC_SERIES_STM32L0X) && \
	!defined(CONFIG_SOC_SERIES_STM32WLX)
	if (data->channel_count > ARRAY_SIZE(table_seq_len)) {
		LOG_ERR("Too many channels for sequencer. Max: %d", ARRAY_SIZE(table_seq_len));
		return -EINVAL;
	}
#else
	if (data->channel_count > 1) {
		LOG_ERR("This device only supports single channel sampling");
		return -EINVAL;
	}
#endif

So basically:

Sampling a single channel will setup the low-level drivers in the exact same way as before, regardless of if board supports multiple channels or not.
If a board doesn't support sampling multiple channels, it will not allow the user to specify multiple channels.

I think that's secure enough :)

Is the sample still going to work on devices that do not support multiple channels in one read?

@fabiobaltieri Yes, it should. The driver acts exactly the same as before when only one channel is selected. So to the LL drivers and the user there will be no difference.
And it's only possible to selected multiple channels if the board has an sequencer, which I used a previously existing check's logic (where it creates table_seq_len).

No, the sample won't work in this form for example for ESP32 boards, where two channels are selected, like here: https://github.com/zephyrproject-rtos/zephyr/blob/7941a88121083c43eb500ca2a9a4dd82838b07dc/samples/drivers/adc/boards/esp32c3_devkitm.overlay#L11-L13 but the driver does not support multichannel sequences: https://github.com/zephyrproject-rtos/zephyr/blob/7941a88121083c43eb500ca2a9a4dd82838b07dc/drivers/adc/adc_esp32.c#L150-L153

* If a board doesn't support sampling multiple channels, it will not allow the user to specify multiple channels.

Right so a sample could potentially break? Like in the case that @anangl pointed out? (I have ~that hardware, can give it a try) If that's the case then I think we should either have two tests or two modes for the test.

No, the sample won't work in this form for example for ESP32 boards, where two channels are selected, like here:
https://github.com/zephyrproject-rtos/zephyr/blob/7941a88121083c43eb500ca2a9a4dd82838b07dc/samples/drivers/adc/boards/esp32c3_devkitm.overlay#L11-L13
but the driver does not support multichannel sequences:
https://github.com/zephyrproject-rtos/zephyr/blob/7941a88121083c43eb500ca2a9a4dd82838b07dc/drivers/adc/adc_esp32.c#L150-L153

Right so a sample could potentially break? Like in the case that @anangl pointed out? (I have ~that hardware, can give it a try) If that's the case then I think we should either have two tests or two modes for the test.

That's for a different family though? This PR only address multiple channel sampling to the STM32 family, not ESP32. And all ADC drivers are built using adc_context which inherently supports multi-channel-sampling. It's up to the specific driver to implement it or protect against its accidental use if not.
So, honestly I'm a little lost with where this conversation went :)

That's for a different family though? This PR only address multiple channel sampling to the STM32 family, not ESP32. And all ADC drivers are built using adc_context which inherently supports multi-channel-sampling. It's up to the specific driver to implement it or protect against its accidental use if not.
So, honestly I'm a little lost with where this conversation went :)

Yeah but the sample is generic, it lives in samples/drivers/adc. Not to say it has to support every option, but it makes sense to have samples for bot modes. If it was stm32 specific it could go under sapmle/boards but in this case it's just a subsystem functionality not supported by all drivers, so I'd say that either the sample supports both configs you could copy it to a new sample and have only few controlled platforms it can run off. (just to be clear, @anangl is the ADC maintainer and has the last word about this for what I'm concerned)

Yeah but the sample is generic, it lives in samples/drivers/adc. Not to say it has to support every option, but it makes sense to have samples for bot modes.

Ah, now I understand :)
If @anangl wants some extra protection in the sample app then I can add it, but IMO it's up to the driver to validate it's input. If the driver receives multiple channels and it can't support it then it should return -ENOTSUP;  as mentioned, which the sample app will still gracefully handle.

Codecov Report

Merging #53534 (7941a88) into main (50446af) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 7941a88 differs from pull request most recent head 6ecc946. Consider uploading reports for the commit 6ecc946 to get more accurate results

@@           Coverage Diff           @@
##             main   #53534   +/-   ##
=======================================
  Coverage   45.59%   45.59%
=======================================
  Files         544      544
  Lines       68315    68315
  Branches    16691    16691
=======================================
  Hits        31149    31149
  Misses      31612    31612
  Partials     5554     5554

Impacted Files
Coverage Δ

subsys/mgmt/mcumgr/grp/fs_mgmt/src/fs_mgmt.c
6.81% <ø> (ø)

subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c
73.71% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50446af...6ecc946. Read the comment docs.


New Error

This is a weird one because the only time a click function is used in the script, is just clicking play on the loading page. And there are checks to make sure the button exists before clicking it. When does this error occur for you?

Hi !
So, always when I refresh the page, as soon as I click on "play", the errors in the image appears.

De: Cory Shaw<EMAIL_ADDRESS>Enviado: sexta-feira, 22 de junho de 2018 08:42
Para: coryshaw1/saliens-hack
Cc: zBrunoCG; Author
Assunto: Re: [coryshaw1/saliens-hack] New Error (#15)
This is a weird one because the only time a click function is used in the script, is just clicking play on the loading page. And there are checks to make sure the button exists before clicking it. When does this error occur for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/coryshaw1/saliens-hack/issues/15#issuecomment-399414635, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Amm6ISItO6JaNQT1JmF7d3IcpTpite0wks5t_Ng0gaJpZM4UzLFZ.

You shouldn't need to click play, the script should do it automatically. Maybe you are clicking play before the script gets to it, which destroys the button. Since the button doesn't exist, this is why the error is showing. I'll add an extra check for the button before clicking it, just in case.


changed broken link

Signed-off-by: AnshumanDhiman<EMAIL_ADDRESS>Description
Removed the broken link at docs/section1/overview
This PR fixes #156
Signed commits

[X] Yes, I signed my commits.

@AnshumanDhiman Nice first Contribution!
Changes Look good to me

@vinayaksh42 could you please tell me what is changed in cache/Jekyll file?

@vinayaksh42 could you please tell me what is changed in cache/Jekyll file? Can't seem to recall seeing that change before 🤔

by looking at the file https://github.com/layer5io/getnighthawk/blob/master/.jekyll-cache/Jekyll/Cache/Jekyll--Cache/b7/9606fb3afea5bd1609ed40b622142f1c98125abcfe89a76a661b0e8e343910, I think it's related to jekyll setting.
It isn't effecting the website but we can remove it.

I love seeing a PR from @AnshumanDhiman. 🥳

I love seeing a PR from @AnshumanDhiman. 🥳

Thank you @leecalcote


Modifications to 143v

[ ] Have you followed the contributing guidelines?
[ ] Have you explained what your changes do, and why they add value to the Guides?

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

#766


Fixed test class fail method not set status property

Fixed
fail method is not set status property

Hello @anshooarora
check please,


Support Date Parquet Data Page Statistics

Which issue does this PR close?
Closes #11113
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Covered by existing test cases
cargo test

Are there any user-facing changes?
No

hello @alamb can you please help me with a review.

Thank you both @efredine & @alamb  for your time reviewing the PR


Fix: Android permission check

WRITE_EXTERNAL_STORAGE is not required for all cases. More info https://developer.android.com/training/data-storage

Are you sure we don't need any additional permissions.  I'm busy updating the example to show permission requests and I needed to add permissions.

See:

Here's the draft pr for the above example app

Pull this change and try the example (stash all of your changes). It will work without any permissions.

To confirm, Android 9 and lower requires permissions, anything newer doesn't?

To confirm, Android 9 and lower requires permissions, anything newer doesn't?

No it does not require. New changes you can find it here  https://developer.android.com/training/data-storage

LGTM.

Lets release a version

:tada: This PR is included in version 2.4.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Keyboard Manager: support toggling "maximize" and "restore down"

Description of the new feature / enhancement
I want to toggle maximizing a window and going back to a floating window. It is not about already mentioned features #279, #422 nor #24263 which were usually about fancyzone. I am talking about native Windows' window maximize/reduce-down behavior when you click a button at the top right corner of every window, or double-clicking window bar.
It would be nice that I could define a shortcut to toggle them and that this option exists under "Mapped to" list.
Scenario when this would be used?
You have multiple windows open. You would like to focus one in a maximized mode. You press a custom shortcut to maximize it. Once you are done with it, press the same shortcut to put the window back to floating where it was positioned.
This behavior is the same as double clicking the window bar to maximize/reduce down a window. I just want to define a shortcut for it.
Supporting information
I know there is native shortcuts to "maximize" and "reduce down" a window, something like "win+arrow{up|down}". But I cannot use them because I am using FancyZonex wth "Override Windows Snap" on. Also, this is not exactly what I want because I need to bind two shortcuts separately.

While there are ways to toggle a window between Maximised and Restored, Keyboard Manager doesn't seem particularly well suited to accomplishing it.
That's the sort of thing you'd need a macro or a script or an executable for I believe, where all Keyboard Manager is doing is remapping keys (or keycombos), and as you said there's not one key or keycombo in Windows that will do it as a toggle.
If you can create a macro, you can tie a shortcut to doing Alt+Space, slight pause, n to accomplish the toggling.
If you can run a script (like AutoHotkey) you can see if that script has a method call into the API that represents toggling the window state like that (for AutoHotkey you'd have to use a combination of WinGet to find out if it's currently maximised or restored, and then either  WinRestore or WinMaximize respectively, eg: https://www.autohotkey.com/board/topic/16755-help-toggle-maximizerestore-with-same-hotkey/)

/dup https://github.com/microsoft/PowerToys/issues/5668


Support for minidump_stackwalk command arguments

@zcbenz removed it

Can this be merged soon so I can change package.json to point to your repo again?

Great. Now minidump_stackwalk can accept "-m" as argument and can generate machine readable output which can be easily used for parsing.


Difficulty reproducing results; information seems out of date.

I am attempting to reproduce the results outlined in this article on an Azure VM. When I run testpmd, I get the following results:
user@azurevm$ sudo ./testpmd -w 0001:00:02.0 --vdev="net_vdev_netvsc0,iface=enP1p0s2" -- -i --port-topology=chained
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
net_vdev_netvsc: Cannot find the specified netvsc device
testpmd: No probed ethernet devices
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Done

One of the things I've noticed is that the Azure virtual PMD is not enabled by default; from dpdk/config/common_base:
#
# Compile native PMD for Hyper-V/Azure
#
CONFIG_RTE_LIBRTE_NETVSC_PMD=n
CONFIG_RTE_LIBRTE_NETVSC_DEBUG_RX=n
CONFIG_RTE_LIBRTE_NETVSC_DEBUG_TX=n
CONFIG_RTE_LIBRTE_NETVSC_DEBUG_DUMP=n

#
# Compile virtual device driver for NetVSC on Hyper-V/Azure
#
CONFIG_RTE_LIBRTE_VDEV_NETVSC_PMD=n

This leads me to believe that the instructions might be out of date.
What can I do to debug this issue and get results consistent with what's presented in the documentation?
I am using DPDK 18.11 on Azure Ubuntu 16.04 (kernel version 4.15.0-1035-azure).
Thanks in advance.

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

ID: c9ba71b2-2d05-f463-740d-fd96c2a2220b
Version Independent ID: 4b38f105-4791-fa76-b738-b0039837b180
Content: DPDK in an Azure Linux VM
Content Source: articles/virtual-network/setup-dpdk.md
Service: virtual-network
GitHub Login: @laxmanrb
Microsoft Alias: labattul

@mlr-msft Thanks for the feedback! We are currently investigating and will update you shortly.

After some assistance from the Azure team, I am up and running. Here's the upshot:

I had the VF and NETVSC interfaces backwards in my mind.
The VM needs two NICs to function-- one for logging in (i.e. ssh) and one configured with advanced networking. I had to use the CLI to create this second NIC because the portal didn't ask me if I wanted advanced networking.
The virtual NETVSC PMD for Azure should be enabled.
All of the MLX PMDs need to be enabled (I only had the MLX5 enabled).

Thanks for the assistance! 😄


Login error

[14-12-2015 8:23] System.Exception: Downloading stash for Standard, details logged to DebugInfo.log, please open a ticket at https://github.com/Stickymaddness/Procurement/issues
w POEApi.Model.POEModel.GetStash(String league, String accountName)
w Procurement.ViewModel.LoginWindowViewModel.LoadStashItems(Character character)
w Procurement.ViewModel.LoginWindowViewModel.d__6.MoveNext()
w System.Collections.Generic.List1..ctor(IEnumerable1 collection)
w System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
w Procurement.ViewModel.LoginWindowViewModel.<>c__DisplayClass2.b__1()
w System.Threading.Tasks.Task.Execute()

Procurement 1.9.7 has been released, please retest and open a new issue if you still have a problem.
https://github.com/Stickymaddness/Procurement/releases/tag/1.9.7


Cannot change default password

I installed phpredmin by adding your instruction to my docker-compose.yml file.  However -PHPREDMIN_AUTH_PASSWORD = mypassword does not set the password. Is there something I can do about this?

@aconital please beware that you will need to set PHPREDMIN_AUTH_PASSWORD = password_hash('mypassword') with password_hash is the php function. So it's going to be like PHPREDMIN_AUTH_PASSWORD = ACXOWMEO@

thank you!


Question about Pool Selection (9.8 Nature of Code)

Sorry, I haven't used GitHub a lot, so this might be the wrong place, but I had a question about the pool selection algorithm in 9.8: Genetic Algorithm: Improved Pool Selection - The Nature of Code. I understand the basic concept, but wouldn't this give preference to earlier items in the list? It doesn't really matter with what I am doing (I'm just playing around with genetic algorithms), but I was just wondering.

I'm not entirely sure but you might have better luck asking on The Coding Train's discord. Here's a link to that: https://discord.gg/hPuGy2g


footnote numbers aren't increment correctly when placed in section headers

In the following example the footnotes should be numbered 1 & 2. Instead it shows 1 & 1 only.

= Level 1 footnote:[first footnote]
some text

== Level 2 footnote:[second footnote]
more text

sorry wrong place


Pre-rendered dynamic routes (static host deployment)

Currently, as explained at https://vike.dev/pre-rendering, parameterized routes (e.g. /movie/@movieId) need to use onBeforePrerenderStart() to be able to be pre-rendered.
Instead, it would be great if Vike supports resolving the route dynamically at runtime on the client-side. (E.g. /todos/@todoId which is inherently dynamic, since new To-Do items can be added at any time.)
In the meantime, as a workaround, the user can use React Router / Vue Router / Solid Router (in addition to using Vike's router) for such dynamic routes.

Learn more

I want to handle routes like /todos/@todoId. I’m looking to keep absolutely everything client side but still have the dynamic routes.

Quoting a user who wants to deploy to a static host.
Basically: instead of one HTML file per URL, having one HTML file for multiple URLs while Vike's client-side takes care of the routing.
// vike.config.js

export default {
  prerender: {
    // Like SPA: all parameterized (i.e. dynamic) routes fallback to / (i.e. index.html)
    fallback: '/'
  }
}

// /pages/admin-panel/+config.js

export default {
  prerender: {
    // All parameterized (i.e. dynamic) routes inside /pages/admin-panel/ fallback to /admin-panel
    fallback: '/admin-panel'
  }
}

// /pages/todos/+config.js

export default {
  prerender: {
    // All parameterized (i.e. dynamic) routes inside /pages/todos/ fallback to /todos
    fallback: '/todos'
  }
}

Conversation & design how we can support that: https://github.com/vikejs/vike/discussions/1475.
How to set up URL rewrites:

You normally handle this behavior of always serving index.html with a _rewrites file on Netlify.
Is _rewrites somewhat standard?
they all have their own methods
from some googling, Vercel will set the rewrites automatically if you select React as the framework, or you can set manually I think like this
// vercel.json
{
  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}

In Render you can set the rewrites using their GUI, in a similar vein cloudflare does this automatically as well

Hi yall, I'm looking into using vike with react, and I was wondering if this use case was possible... I want to have some pages as SPA and others as SSG, and deploy to static hosting like Netlify.
Now this is in general very simple, I just prerender every page, including all SPA pages. But here's the twist, would it be possible to generate only one index file for all the SPA pages and use a Netlify config to redirect all of those pages to that file? This is exactly what you'd do with a normal Vite setup, but I just want to add some SSG files to the mix

I'm de-prioritizing this. While I personally think that this is a great feature, I still think the other v1-release tickets to be more important. That said, I'm happy to revisit prioritization if it's a blocker for someone and if no other framework supports this. I really wonder: is there any framework out there that supports this?

this would be huge -- I know at least solid-router is able to do this. currently cannot use Vike on one of my Solid projects because of this.

this would be huge

Agreed.

solid-router is able to do this

That isn't an SSR/SSG framework. It's definitely possible to implement, but it isn't trivial either. Thus I'm genuinely curious if there is an SSR/SSG framework out there that supports this.

currently cannot use Vike on one of my Solid projects because of this

I've added a workaround to my original post. Would that work for you?

perf, I'll head that route (get it) until Vike's router gets support for this 👌

We'd appreciate this feature as well. 🙌
Is there an example of how to set up the workaround with react-router?

That isn't an SSR/SSG framework. It's definitely possible to implement, but it isn't trivial either. Thus I'm genuinely curious if there is an SSR/SSG framework out there that supports this.

If I understand this issue correctly, I believe NextJS supports this kind of routing. Note the new app router in nextjs does not yet support this, but they are working on it. Notably, the "old" pages router supports this as other users mention; although I haven't used that, I'm guessing they're referring to the use of code like this:
const router = useRouter()
return
Post: {router.query.slug}

from this page.
I also just noticed another user in that issue thread said that Gatsby also supports dynamic routers in static pages.

Hm, I'm not sure. From quickly glazing over the links you posted, it still doesn't seem to me that Next.js supports this (both App Router and Pages Router).
An easy way to test is this: can you create a Next.js app that defines a parameterized route but outputs only one .html file (for multiple URLs)?

Gatsby allows you to use dynamic routers in static exports without configuring server-side redirects.

Vike can do that as well. The question is whether you always need to provide a list of URLs for parameterized routes.
Same test: can you create a Gatsby app that defines a parameterized route but outputs only one .html file (for multiple URLs)?

An easy way to test is this: can you create a Next.js app that defines a parameterized route but outputs only one .html file (for multiple URLs)?

Yes I believe so. Here is a test repo that demonstrates this (you can look at the pages/product folder for the dynamic route, the other stuff is nextjs scaffolding defaults etc). When you build it, it will output a single html file for the parameterized route ([id].html) and the routing is done client side. Let me know if this differs from what you were asking, seems like "dynamic routes" is an overloaded term so trying to make sure we match up on what we mean.
For Gatbsy, I haven't used it before so not sure.

But if you are already on the index page and click the Link to the dynamic route, it does work.
If you reroute a request from say /product/54387 to [id].html, does [id].html route on load? or is client routing only done on navigation from within?

Hello, by reroute do you mean if I go to /product/54387 directly in the address bar and have the server rewrite it to the [id].html file does it load that [id].html file?

but cloudflare and others do or your own express server can

Sure, but the question here (I think) is whether or not the pre-rendered dynamic route page (in this case [id].html) routes to say /product/54387 when you serve [id].html.

Yeah it will still show /product/54387 in the address bar when cloudflare serves [id].html

I'm labeling this ticket as high-prio and v1-release. The fact that Next.js's Pages Router (and soon also its App Router) support this makes this a Vike-specific blocker.
Thanks @ConnorLanglois for the example.

As always: feel free to add a comment here if this a blocker specifically for your app.

Personally I have switched from vike to nuxt (which is a bit overkill for my project) due to this feature lacking. I would really love to see this come to vike.

I'm not sure if the following is a GOOD approach, but it's working for us so far, so wanted to share it, and also ask whether it's supported or not. We use Vue, Vike, and vike-vue. The site is hosted as a static site from a Google Cloud bucket, uses SSG pages in a hybrid (SPA-like) fashion, and gets all runtime data from a separate API.
We want both client-side routing and deep linking, while still hosting from a static site. For instance, users will often want to deep link to their custom road trips (e.g. https://epicroadtripplanner.com/roadtrips/d9cc2d68-09d0-4d9e-bd0a-258936c2be65), but the fetched content (and the route itself) for roadtrips are dynamic.
We use file system routing in this project, and all of the following are in the file system at /src/pages/roadtrips/@roadtripId:
"+onBeforePrerenderStart.ts" pre-renders an "all" page:
export async function onBeforePrerenderStart() {
  return ["/roadtrips/all"]
}

Importantly, we use Google Cloud Load Balancer's url map functionality to re-write the incoming request urls, so that it serves this 'all/index.html' page for any requests to /roadtrips/{roadtripid=*}, regardless of the value of roadtripId in the actual request:
pathMatchers:
- defaultService: <redacted>
  name: static
  routeRules:
  - matchRules:
    - pathTemplateMatch: /roadtrips/{roadtripid=*}
    priority: 2100
    routeAction:
      urlRewrite:
        pathTemplateRewrite: /roadtrips/all/index.html

Here's the part I'm not sure about - specifically, whether is supported/documented to use resolveRoute, especially in the data hook, outside of a route function:
In the client-only data hook "+data.client.ts", "pageContext.routeParams" still returns "all" for pageContext.routeParams["roadtripId"], so instead we use resolveRoute there, to (re)parse urlPathname:
export async function data(pageContext: PageContext) {
  const { routeParams } = resolveRoute('/roadtrips/@roadtripId', pageContext.urlPathname);
  const roadtripId = routeParams["roadtripId"];

// <snip> Call a separate backend API w/roadtripId, to get the user's roadtrip data, and return the roadtrip so that it is rendered in +Page.vue
...

@TimJohns Yes LGTM, I don't see any issues with your appraoch. As for pageContext.routeParams it's because it comes from the "server-side" (which is pre-rendered thus resolved to all) — what you're doing makes sense. Btw. would your company be up for sponsoring? It would be a lovely excuse for implementing this feature before the highest-priority tickets :slightly_smiling_face:

There is also another approach to dynamic URLs, at least on Github Pages: using 404.html redirection. When users go to e.g. /todos/{todoID}, the HTML page is not found, so the 404.html is loaded instead with the following


DBC crashes with more than 64k constants per function

The DBC (Dart bytecode) uses a constant pool per compiled function to pass constants from bytecode generation to the bytecode interpreter. The bytecode uses 16 bits to address values in the constant pool. When DBC tries to address >65k it hits an assert in debug mode and crashes in release mode.
Problem
These constants are used for passing a variety of data from bytecode generation to the bytecode interpreter:

argument descriptor arrays
function references (e.g. instance call targets)
field references (for loads and stores)
class references (for allocation)
type references
type argument arrays
ICData references
numbers / bit patters which don't fit in the 32bit bytecode instructions (for example the header bits for objects allocated)

When DBC tries to address >65k it hits an assert in debug mode and crashes in release mode. See https://github.com/dart-lang/sdk/issues/35242 and https://github.com/dart-lang/sdk/issues/36588.
This is unlikely to happen in user code, both crashes are contrived tests containing massive functions.
Possible Solutions

Don't support this use case.
a. Write a descriptive RELEASE_ASSERT when adding constant 65536.
b. Report an error through the DBC interpreter naming the function that is too large to be compiled.
Support this use case. This would involve changing the bytecode to always use 24 bits for addressing the constant pool. This would also mean that bytecodes that do not have 8 spare bits (for example LoadConstant) would be split up in two instructions, increasing the code size.

@aartbik @mkustermann @mraleph any preferences?

My two cents. This is not always as contrived as it seems. For example, program generators may emit massive functions/data (think parse table generators, endgame tablebases, etc.). So I would vote for supporting this use case, although we can of course further debate how.

@alexmarkov

On a similar note, DBC has a one-byte limit on the number of arguments. The machine code architectures allow much more, but we either need to ensure that the maximum number of arguments doesn't occupy more space than the stack overflow check headroom, or functions need to factor their maximum stack depth into their overflow checks.

DBC is no longer tested with the fuzzer; the underlying issue remains, and supporting the requested improvements is not planned.


Update sinon, mocha and livereload dependencies

What is the context of this PR?
Fixes #1132.
Updates versions of mocha and sinon to newer versions.
Updates gulp-livereload to gulp-refresh. Refresh is a fork of livereload which is actively maintained. Livereload is now considered unmaintained.
Adds a new feature flag to enable livereload. When this flag is enabled the CSP policy is altered to allow livereloading and the browsersync script is added to the base template.
How to review
All functional tests should pass
To test live reloading:

Run the app locally
Also run yarn start
Start a questionnaire
A message should say "Browsersync: connected"
Make a change to a JS, SCSS or HTML file
The browser should refresh and reflect the change

@nealedj while we are here updating versions of packages, should we update our selenium driver version in the chimp.js folder to 2.37?

@shahi645 I tried that but the functional tests fail on travis on the newer version.

@nealedj For travis we'd have to update the chrome version too, but i thought they were both pinned in the travis config anyways

@shahi645  Ah okay. Let's keep that separate anyway. Beyond the scope of this job.

@nealedj trying to refresh browser, cmd line says its refreshing, but actual browser page doesn't reload 😕

@nealedj Same thing as @shahi645

@shahi645 Its a port conflict.

@shahi645 Must be something else for you. Fixing port, fixed the issue for me.

@nealedj I don't know what the convention regarding ports is by 5075 is free and most around it.

It's sensible to try and avoid well-known ports but since that's neither complete nor static it's always a bit of a guess.
Browsersync is using dynamic ports but we're referencing the script it hosts using a static port. I can't think of any easy way to dynamically hook up the script.
Let's try 5075.


Changing Translation Directory On-the-Fly

I am using ionic 2 and have the translations working fine, using the following bootstrap:
ionicBootstrap(CogicApp,
    [
        ROUTER_PROVIDERS,
        HTTP_PROVIDERS,
        new Provider(Window, {useValue: window}),
        new Provider(TranslateLoader, {
            useFactory: (http: Http) => new TranslateStaticLoader(http, '/site/default/translations', '.json'),
            deps: [Http]
        }),
        {provide: PLATFORM_PIPES, useValue: TranslatePipe, multi: true},
        Config,
        MemberData,
        ResourceData,
        UserData,
        TranslateService
    ],
    {
        tabbarPlacement: 'bottom'
    });

Unfortunately, the Config object needs to change the directory of the translations based on parsing the domain name.  I can't figure out how to either pass the Config variable name to the TranslateLoader or to tell it to reload using a different directory somehow in the Config service.  I realize this is partly due to my not fully understanding I2/A2 yet, but I'm hoping there might be an easy fix for this that other people might find helpful as well.

Hello, for now it isn't possible to change the prefix/suffix of the loader, but you could make a PR to change this :)

This should be possible by using a custom TranslateLoader


[BUG] Application doesn't work at linux mint 21.3

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
After loading application it shows interface about 10 sec, then it clears and show empty window. Nothing works, just reload menu item, but after reloat it shows interface again 10 sec and then screen is cleared. Before update i had version 5.0.3, and all  worked fine.
Expected Behavior
No response
Steps To Reproduce
OS: Linux Mint 21.3 64 bit
Browser: Google Chrome Version 128.0.6613.84 (Official Build) (64-bit)
Platform: ???
Version
Environment
- OS:
- Browser:
- Platform:
- Version: 7.3.4

Additional context

Same on Xubuntu 22.04 Appimage 7.3.4

What do you see in the CLI if you run the application from there? Also what do you see in the developer tools (View > Toggle Developer Tools)?

What do you see in the CLI if you run the application from there? Also what do you see in the developer tools (View > Toggle Developer Tools)?

when start from CLI have this output and same behavior
alexius@server:/opt/Altair GraphQL Client$ altair undefined index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/ file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/styles.css index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/assets/img/logo_350.svg index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/runtime.js index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/polyfills.js index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/main.js index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/assets/i18n/default.json index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/assets/i18n/en-US.json index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/jetbrains-mono-latin-400-normal.woff2 index path /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/index.html file.. /opt/Altair GraphQL Client/resources/app.asar/node_modules/altair-static/build/dist/assets/img/altair_logo.svg
Dev tools screenshot here. It shows for 10 sec, then clears screen.

Any errors in the dev tools console?

It also crashes for me. If I open DevTools before is goes blank, there are no errors, then the DevTools disconnect and there are still no errors in the console (actually there are no logs at all).
CLI output:
undefined
22:46:37.798 › Checking for update
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/styles.css
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/assets/img/logo_350.svg
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/runtime.js
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/polyfills.js
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/main.js
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/assets/i18n/default.json
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/assets/i18n/en-US.json
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/jetbrains-mono-latin-400-normal.woff2
index path /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /nix/store/c42h5z6lbpkrk7l7w7b8k34vnazy2rxd-altair-7.3.5-extracted/resources/app.asar/node_modules/altair-static/build/dist/assets/img/altair_logo.svg
22:46:39.134 › Found version 7.3.6 (url: altair_7.3.6_x86_64_linux.AppImage)
[43062:0915/224643.288735:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[43062:0915/224648.730098:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[43062:0915/224652.885128:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
[32953:0915/224727.369940:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
[32953:0915/224727.388498:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
[32953:0915/224727.388522:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
[32953:0915/224727.388528:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
[32953:0915/224727.391645:ERROR:check.cc(298)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!

I am using version 7.3.5 on NixOS unstable.

Looks like a known electron issue https://github.com/electron/electron/issues/32760
Unfortunately there doesn't seem to be anything we can do. Only solution appears to be disabling hardware acceleration which will likely degrade the app experience. I can add a menu item to disable hardware acceleration.
In the meantime, you can try some of the CLI arguments mentioned in that issue to see if any of them works for you when starting Altair from the CLI

@imolorhe

I can add a menu item to disable hardware acceleration.

The toggle doesn't work for me:
Error: app.disableHardwareAcceleration() can only be called before app is ready
    at click (/tmp/.mount_altairpKQ1tb/resources/app.asar/dist/app/menu.js:115:44)
    at MenuItem.click (node:electron/js2c/browser_init:2:30958)
    at Menu._executeCommand (node:electron/js2c/browser_init:2:36354)

In the meantime, you can try some of the CLI arguments mentioned in that issue to see if any of them works for you when starting Altair from the CLI

Also doesn't work for me, it seems AppImages don't support NODE_OPTIONS:
$ NODE_OPTIONS='--disable-gpu --disable-gpu-rendering' ./altair_8.0.2_x86_64_linux.AppImage
[3098107:1114/120601.856901:ERROR:node_bindings.cc(294)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
[3098107:1114/120601.858295:ERROR:node_bindings.cc(294)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.

https://github.com/altair-graphql/altair/pull/2708

@imolorhe when I disable the hardware acceleration, Altair disppears and a few seconds later I get a segmentation fault:
$ ./altair_8.0.4_x86_64_linux.AppImage
{ proxy_setting: 'none' }
DIRECT { mode: 'direct' }
11:20:14.497 › Checking for update
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
[483238:1125/112014.672530:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/styles.css
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/assets/img/logo_350.svg
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/runtime.js
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/polyfills.js
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/main.js
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/assets/i18n/default.json
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/assets/i18n/en-US.json
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/jetbrains-mono-latin-400-normal.woff2
11:20:15.755 › Update for version 8.0.4 is not available (latest version: 8.0.4, downgrade is disallowed).
index path /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/index.html
file.. /tmp/.mount_altairZpoRdm/resources/app.asar/node_modules/altair-static/build/dist/assets/img/altair_logo.svg
Segmentation fault (core dumped)

If I relaunch Altair, in the Window menu I now get a "Enable hardware acceleration" option, but the GUI still blanks out after a few seconds. Nothing appears in the terminal when that happens.
I can do Edit>Reload and the GUI will re-appear for a few seconds and disappear again.

Yeah that means disabling the hardware acceleration didn't help either. Nothing much else I can do then. We have to wait for the fix upstream in electron.

I’m using Ubuntu 24.04.1, and the same issue occurs with the .AppImage. Switching to the version from Snap store (snap install altair) solved the problem.


training error

I will ask you a new question.
Is there a problem with torch? Is there a problem with EDSR source code?
I am returning 0 to num_samples when preparing dataset.
Windows 10
pytorch1.0.0
python3.6
D: EDSR \ src> python main.py --model EDSR --scale 2 --save edsr_x2 - n_resblocks 32 - n_feats 256 - res_scale 0.1 - reset
'rm' is an internal or external command,
It is not recognized as an operable program or batch file.
 De dataset are located correctly but they the PSNR reported for each epoch is NaN.

The same problem, I also have faced.

My dataset is:

and src/option.py is:

Thanks for any suggestions.

@ZhengCai024, your --dir_data should be "/d/EDSR/EDSR-PyTorch-master/dataset/DIV2K". See if that works for you.

@kevinisbest @kikiki1121, I was able to resolve the issue by combining my training and testing sets. The way that the code works is that you specify a split with the --data_range flag that operates on a single folder containing both training and testing data. The assumption is that train data comes before test data, for example 1 - 800 are train and 801 - 810 are test. This implementation is confusing because it differs from how DIV2K is actually laid out.

I will ask you a new question.
Is there a problem with torch? Is there a problem with EDSR source code?
I am returning 0 to num_samples when preparing dataset.
Windows 10
pytorch1.0.0
python3.6
D: EDSR \ src> python main.py --model EDSR --scale 2 --save edsr_x2 - n_resblocks 32 - n_feats 256 - res_scale 0.1 - reset
'rm' is an internal or external command,
It is not recognized as an operable program or batch file.

Still not able to evaluate the models. De dataset are located correctly but they the PSNR reported for each epoch is NaN.

Have you solved this NaN problem

The same problem, I also have faced.

My dataset is:

and src/option.py is:

Thanks for any suggestions.

@kikiki1121 hello,i meet the same problem,could you please give some advise for it?

@ZhengCai024  hello,i meet the same problem,could you please give some advise for it?

The same problem, I also have faced.

My dataset is:

and src/option.py is:

Thanks for any suggestions.

@ZhengCai024 hello,i meet the same problem,could you please give some advise for it?

The same problem, I also have faced.

My dataset is:

and src/option.py is:

Thanks for any suggestions.

I  solve the probelm by putting the DIV2K under the dir named dataset, and modify the argument as
parser.add_argument('--dir_data', type=str, default='../dataset',
help='dataset directory')

@kevinisbest Sorry，i don‘t know where your fault is.I hope that my reply may help you.
My dataset looks like this:
/home/jason/Documents/jason/EDSR-PyTorch-master/DIV2K/...
└──DIV2K
├──DIV2K_train_HR
│ ├──0000.png
│ ├──0001.png
│ └──...
├──DIV2K_train_LR_bicubic
│ ├──X2
│ │ ├──0000x2.png
│ │ ├──0001x2.png
│ │ └──...
│ ├──X3
│ └──...
└──...
My option.py looks like this :

follow this structure and change my own dataset, then I can run the code successfully! Thank you very much!

Traceback (most recent call last):
File "/Users/a58/super_resolution/EDSR-PyTorch/src/main.py", line 33, in
main()
File "/Users/a58/super_resolution/EDSR-PyTorch/src/main.py", line 22, in main
loader = data.Data(args)
^^^^^^^^^^^^^^^
File "/Users/a58/super_resolution/EDSR-PyTorch/src/data/init.py", line 26, in init
self.loader_train = dataloader.DataLoader(
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/a58/super_resolution/EDSR-PyTorch/.venv/lib/python3.12/site-packages/torch/utils/data/dataloader.py", line 350, in init
sampler = RandomSampler(dataset, generator=generator)  # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/a58/super_resolution/EDSR-PyTorch/.venv/lib/python3.12/site-packages/torch/utils/data/sampler.py", line 143, in init
raise ValueError(f"num_samples should be a positive integer value, but got num_samples={self.num_samples}")
ValueError: num_samples should be a positive integer value, but got num_samples=0


Editor inserts tabs instead of spaces for indentation

I don't have a preference setting about spaces vs tabs. When I open .travis.yml, VSCode always uses tabs instead of spaces to create new indentation. This is very problematic since YAML files forbid tabs.

I thought the editor would automatically figure out the indentation to use?

@joaomoreno
Our project settings force the insertion of tabs:
.vscode/settings.json
// Place your settings in this file to overwrite default and user settings.
{
	"editor.insertSpaces": false, // <---- THIS IS THE ONE
	"files.trimTrailingWhitespace": true,
...
}

Should this only act on when there is no definite hint about the file's indentation? E.g.: new files.

The settings get applied by the workbench to each editor regardless the model being for an empty file or not. If this setting is left out, then the model is used for guessing. If the guessing code is not confident, it falls back to insertSpaces:false, tabSize:4. The fallback values have no configuration story.
I think our intent here is to say: "all TypeScript, CSS and JS files should use tabs". This sounds to me as a great usecase for .editorconfig

Is there any mode specific configuration instead? YAML actually banned tabs, so our editor putting one in there is just wrong. That is true for our project as it is for every user out there writing YAML.

I've run into this too, I want the behavior of auto but fallback to space, not tab. Not sure if atom does anything special here or just falls back to space by default.

For those wondering, Atom also falls back, but to spaces.
Spaces is a better option because almost all compilers support spaces.

I'm ok with changing the fallback values, I especially like the reasoning that all compilers support spaces.
So the action out of this issue is to change the fallback defaults to insertSpaces: true, tabSize: 4


feat(modeling): reworked vectorChar and vectorText to return segments as path2 objects

These change rework both vectorChar and vectorText to convert font segments into path2 objects. This allows the font outlines to be used directly in other functions.
Actually, the results are not lists of path2 objects, but rather lists of vectorChar and vectorText objects (anonymous), and the vectorChar object has a list of path2 objects.
Some subtle bugs were corrected as well, which included the use of letterSpacing and lineSpacing.
All Submissions:

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Does your submission pass tests?

@platypii @hrgdavor please look over these changes.
the vectorChar and vectorText functions return anonymous objects still, as there's some useful information provided about height and width. if not useful then just list of path2 objects can be produced.

useful information provided about height and width.
I am for keeping that info. I am guessing it is needed to place them correctly ?

@rozek You may be interested in these changes. If you have time then please take a look. All comments are welcome.


[MINOR] fix the example in the quick start doc

What changes were proposed in this pull request?

fix the example code in the quick start doc
Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

Thanks for your contribution!

merging to master.


java.lang.IllegalArgumentException: ByteBuffer is not a valid flatbuffer model

Please, in desperate need for help, has been trying to solve for 10 days. the tensorflow lite model I trained is here  here. I ran python inference test and it worked. However, no way it is working on Android sample object detection app here https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/android
by debugging the issue this  long modelHandle = createModelWithBuffer(this.modelByteBuffer, errorHandle); specifically this part in  NativeInterpreterWrapper.class
NativeInterpreterWrapper(ByteBuffer buffer, Options options) {
this.inferenceDurationNanoseconds = -1L;
this.isMemoryAllocated = false;
this.delegates = new ArrayList();
this.ownedDelegates = new ArrayList();
TensorFlowLite.init();
if (buffer != null && (buffer instanceof MappedByteBuffer || buffer.isDirect() && buffer.order() == ByteOrder.nativeOrder())) {
this.modelByteBuffer = buffer;
long errorHandle = createErrorReporter(512);
long modelHandle = createModelWithBuffer(this.modelByteBuffer, errorHandle);
this.init(errorHandle, modelHandle, options);
} else {
throw new IllegalArgumentException("Model ByteBuffer should be either a MappedByteBuffer of the model file, or a direct ByteBuffer using ByteOrder.nativeOrder() which contains bytes of model content.");
}
}
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform MACOS sieera 10.13
Android studio 4
I have tried every possible solution and updated the NDK
I used in the gradle

buildscript {
repositories {
google()
jcenter()
mavenLocal()
}
aaptOptions {
noCompress "tflite"
noCompress "lite"
}
implementation 'org.tensorflow:tensorflow-lite-metadata:0.0.0-nightly'
implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.0.0-nightly'
also tried
implementation 'org.tensorflow:tensorflow-lite-metadata:0.1.2-nightly'  and no difference
please help me I don't know if it is the file it self or the android libraries

Hi, please describe error in detail.

Hello, I have solved it. I tried the following
comment the
//apply from:'download_model.gradle'
in app gridle. Don't try to download the model from a link.
Also, I removed that part from TFLiteObjectDetectionAPIModel
try (BufferedReader br =
new BufferedReader(
new InputStreamReader(
metadata.getAssociatedFile(labelFilename), Charset.defaultCharset()))) {
String line;
while ((line = br.readLine()) != null) {
Log.w(TAG, line);
d.labels.add(line);
}
}
instead I added labels to the "d" directly and those labels are the classes of the custom trained model
d.labels.add("driver");
d.labels.add("passenger");


Self host and error handling

I'm integrating a SignalR server inside a WPF application.
My problem is that whenever an error occurs on a hub I can't handle it in a global way.
See this line:
https://github.com/aspnet/SignalR/blob/defbadb26b4224d5025549992fc5ae4e95e0d288/src/Microsoft.AspNetCore.SignalR.Core/HubConnectionHandler.cs#L113
As you can see it's handled internally so I can't handle it myself.

We periodically close 'discussion' issues that have not been updated in a long period of time.
We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate.


[Event Request] Codeunit 5780 "Whse. Cross-Dock Management" – Changed Event  “OnBeforeCrossDockOppInsert”

Could we please have the existing publisher “OnBeforeCrossDockOppInsert” in Function “InsertCrossDockLine”, Codeunit 5780 "Whse. Cross-Dock Management” be expanded by new parameter?
    local procedure InsertCrossDockLine(var CrossDockOpp: Record "Whse. Cross-Dock Opportunity"; SourceType: Integer; SourceSubType: Integer; SourceNo: Code[20]; SourceLineNo: Integer; SourceSubLineNo: Integer; QtyOutstanding: Decimal; QtyOutstandingBase: Decimal; QtyOnPick: Decimal; QtyOnPickBase: Decimal; QtyPicked: Decimal; QtyPickedBase: Decimal; UOMCode: Code[10]; QtyPerUOM: Decimal; DueDate: Date; ItemNo: Code[20]; VariantCode: Code[10]; LineNo: Integer)
    begin
        if HasSpecialOrder and (SourceType <> DATABASE::"Sales Line") then
            exit;
…
            "Picked Qty. (Base)" := Maximum("Picked Qty. (Base)" + QtyPickedBase, 0);
            "Picked Qty." := Maximum("Picked Qty." + QtyPicked, 0);
*** start old code ***
            //OnBeforeCrossDockOppInsert(CrossDockOpp);
*** stop old code ***
*** start new code ***
            OnBeforeCrossDockOppInsert(CrossDockOpp, QtyPerUOM, NameNo, LineNo);
*** stop new code ***

            Insert;
…
    [IntegrationEvent(false, false)]
*** start old code ***
    //local procedure OnBeforeCrossDockOppInsert(var WhseCrossDockOpportunity: Record "Whse. Cross-Dock Opportunity")
*** stop old code ***
*** start new code ***
    local procedure OnBeforeCrossDockOppInsert(var WhseCrossDockOpportunity: Record "Whse. Cross-Dock Opportunity"; QtyPerUOM: decimal; NameNo: code[20]; LineNo: integer)
*** stop new code ***
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Update SUMO to 1.12

SUMO was upgraded to 1.12.0 in PR #1751 to fix compatibility with macOS. Versions after 1.12.0 appear to break some of the tests. This should be investigated when we decide to upgrade SUMO again.


Typo in Help

Bug
The [Basic Commands] listing on the help page of rtv shows wrong information regarding moving the cursor up and down in rtv. Currently, it says the following:
 j     : Move the cursor up
 k     : Move the cursor down

This is a clear typo, since rtv actually uses vim bindings for moving the cursor up and down (j for cursor down, k for cursor up). This is even more evident when looking at the following binding
m     : Move the cursor up one page

Which moves the cursor to the top of rtw, or in the same direction as pressing k.
This bug is present in both CONTROLS.md and docs.py.
How to reproduce

Start rtv
Press "?"

Proposed fix
 j     : Move the cursor down
 k     : Move the cursor up

Yup I definitely got them mixed up, nice catch


Remove bullets from advanced finder

Bullets started appearing in the advanced search finder results list, I think as a result of this change adding the finder-results class to the wrong ul element.
Before

After

Links to test:

https://finder-frontend-pr-908.herokuapp.com/search/advanced?group=guidance_and_regulation&topic=%2Feducation
https://finder-frontend-pr-908.herokuapp.com/news-and-communications
https://finder-frontend-pr-908.herokuapp.com/aaib-reports
https://finder-frontend-pr-908.herokuapp.com/find-eu-exit-guidance-business

@vanitabarrett sorry, that was me... 🤕


search: Show category-wise suggestions for has operator.

Commit 1:
Default suggestion e.g messages with one or more abc as a suggestion for has:abc is not shown in a new suggestion. But if the has operator is already present before any other operator, the default message text will be used. e.g has:abc<EMAIL_ADDRESS>will have all the suggestions with the prefix messages with one or more abc, sent by<EMAIL_ADDRESS>

Commit 2:
has operator uses predefined categories. This commit displays an invalid operand message if the operand does not fall in to any of these categories and the has operator is not at the last.
e.g. has:abc<EMAIL_ADDRESS>will have invalid abc operand for has operator, sent by<EMAIL_ADDRESS>as a prefix for all its suggestions.

Commit 3:
Another issue was getting the default suggestion messages with one or more when getting the suggestions for chosing the operator as shown below:

This commit takes care of that issue.
Results:

Note: categories exist for the is operator, removal of default suggestion needs to be done.

Merged, thanks @shubham-padia!  I think there's a clear follow-up here, though, that we should do the same fix for limiting to just valid operators the is: filters as well.  Can you take care of that?


Landing page

User Story:
As a user, I want a landing page so that I understand what website I'm on.
Acceptance Criteria:

A landing page is present

Why is the feature required?
To greet any incoming users.
Describe the solution you'd like
A landing page
Additional Context:

We might want to consider,
Header,
Title
Brief description of the offered product
Link button to Login
Description of functionality of the product
Footer:

x Site-map (not needed yet)
copyrights?

Login Page is going to be acting as the landing page


Folderpluginupdates

Updates to folder plugin:

tidy up the code.
small refactoring (for example create result for folder in the same way).
changed mechanisim to use windows pattern search instead of using contains - now can use put at the end of the folder name an expression and it will work, for example:
query -> c:\temp*.log -> will search the folder for log files.
added support for the ability to search all folders under a specific folder (when using '>'), example:
query -> c:\temp>*.log -> will search all the subfolders under temp for log files

next steps -

add support for share folders.
update context menus to give the same feedback like everything plugin.

Great feature, thank you


Shawn Stewart

Great job with this sprint! I liked how you implemented a static method within your Main class to print customer and snack information. This definitely saves time is writing multiple System.out.println() statements. Have you thought about fool proofing your code in such a way to prevent Customers from buying too many snacks that are not in the vending machine or buying a certain amount of snacks when they do not have enough money? Here is my code that implements that logic. Let me know what you think.
Snacks Class
// Snack has id, name, quantiy, cost, vending machine id
// Snack can set name, get quantity, add quantity given quantity, buy snack given quantity, get total cost given a quantity.

package snackBar;

public class Snacks {
    private static int maxId = 0;
    private int id;
    private String name;
    private int quantity;
    private double cost;
    private int vendingMachineId;

    public Snacks (String name, int quantity, double cost, int vendingMachineId) {
        maxId++;
        id = maxId;
        this.name = name;
        this.quantity = quantity;
        this.cost = cost;
        this.vendingMachineId = vendingMachineId;
    }

    // Get Id
    public int getId() {
        return id;
    }

    // Get Snack Name
    public String getName() {
        return name;
    }

    // Set Snack Name
    public void setName(String name) {
        this.name = name;
    }

    // Get Quantity
    public int getQuantity() {
        return quantity;
    }

    // Add Quantity
    public void addQuantity(int quantity) {
        this.quantity += quantity;
    }

    // Buy Snack
    public void buySnack(int quantity) {
        this.quantity -= quantity;
    }

    // Get Total Cost
    public double getTotal(int quantity) {
        return cost * quantity;
    }
}

Vending Machines Class
// Vending machine has id, name
// Vending Machine set and return name

package snackBar;

public class VendingMachines {
    private static int maxId = 0;
    private int id;
    private String name;

    public VendingMachines(String name) {
        maxId++;
        id = maxId;
        this.name = name;
    }

    // Get Id
    public int getId() {
        return id;
    }

    // Get Name
    public String getName() {
        return name;
    }

    // Set Name
    public void setName(String name) {
        this.name = name;
    }
}

Customers Class
// Customer has id, name, cash on hand
// Customer can add cash, buy given total cash used in purchase, get and set name, get cash on hand.

package snackBar;

public class Customers {
    private static int maxId = 0;
    private int id;
    private String name;
    private double cash;

    public Customers (String name, double cash) {
        maxId++;
        id = maxId;
        this.name = name;
        this.cash = cash;
    }

    // Get Id
    public int getId() {
        return id;
    }

    // Add Cash
    public void addCash(double cash) {
        this.cash += cash;
    }

    // Get Name
    public String getName() {
        return name;
    }

    // Set Name
    public void setName(String name) {
        this.name = name;
    }

    // Purchase Snack
    public String purchase(Snacks snack, int quantity) {
        int snackQuantity = snack.getQuantity();

        if (snackQuantity >= quantity && snackQuantity != 0) {
            double totalCost = snack.getTotal(quantity);
            if (totalCost <= cash) {
                this.cash -= totalCost;
                snack.buySnack(quantity);
                return name + " purchased " + quantity + " " + snack.getName() + ".";
            } else {
                return "You do not have enough money.";
            }
        } else {
            return "There are " + snackQuantity + " " + snack.getName() + " in the vending machine.";
        }
    }

    // Get Cash
    public double getCash() {
        return cash;
    }
}

Main Class
package snackBar;

public class Main {
    private static void snackBar() {
        // Instantiate 2 customers

        //i. Jane with $45.25
        // ii. Bob with $33.14

        Customers Jane = new Customers("Jane", 45.25);
        Customers Bob = new Customers("Bob", 33.14);

        // Instantiate 3 Vending Machines

        // i. Food
        // ii. Drink
        // iii. Office

        VendingMachines Food = new VendingMachines("Food");
        VendingMachines Drink = new VendingMachines("Drink");
        VendingMachines Office = new VendingMachines("Office");

        // Instantiate 5 snacks

        // In Vending Machine Food

        // i. 36 Chips at $1.75
        // ii. 36 Chocolate Bar at $1.00
        // iii. 30 Pretzel at $2.00

        // In Vending Machine Drink

        // i. 24 Soda at $2.50
        // ii. 20 Water at $2.75

        Snacks Chips = new Snacks("Chips", 36, 1.75, Food.getId());
        Snacks ChocolateBar = new Snacks("Chocolate Bar", 36, 1.00, Food.getId());
        Snacks Pretzel = new Snacks("Pretzel", 30, 2.00, Food.getId());
        Snacks Soda = new Snacks("Soda", 24, 2.50, Drink.getId());
        Snacks Water = new Snacks("Water", 20, 2.75, Drink.getId());

        // Customer 1 buys 3 of snack 4.
        System.out.println(Jane.purchase(Soda, 4));

        // Print Customer 1 Cash on hand.
        System.out.println("Jane has $" + Jane.getCash() + ".");

        // Print quantity of snack 4.
        System.out.println("There are " + Soda.getQuantity() + " " +  Soda.getName() + ".");

        // Customer 1 buys 1 of snack 3.
        System.out.println(Jane.purchase(Pretzel, 1));

        // Print Customer 1 Cash on hand.
        System.out.println("Jane has $" + Jane.getCash() + ".");

        // Print quantity of snack 3.
        System.out.println("There are " + Pretzel.getQuantity() + " " +  Pretzel.getName() + ".");

        // Customer 2 buys 2 of snack 4.
        System.out.println(Bob.purchase(Soda, 2));

        // Print Customer 2 Cash on Hand.
        System.out.println("Bob has $" + Bob.getCash() + ".");

        // Print quantity of snack 4.
        System.out.println("There are " + Soda.getQuantity() + " " +  Soda.getName() + ".");

        // Customer 1 finds $10.
        Jane.addCash(10);

        // Print Customer 1 Cash on Hand.
        System.out.println("Jane has $" + Jane.getCash() + ".");

        // Customer 1 buys 1 of snack 2.
        System.out.println(Jane.purchase(ChocolateBar, 1));

        // Print Customer 1 Cash on Hand.
        System.out.println("Jane has $" + Jane.getCash() + ".");

        // Print quantity of snack 2.
        System.out.println("There are " + ChocolateBar.getQuantity() + " " +  ChocolateBar.getName() + ".");

        // Snack 3 gets 12 more.
        Pretzel.addQuantity(12);

        // Print quantity of snack 3.
        System.out.println("There are " + Pretzel.getQuantity() + " " +  Pretzel.getName() + ".");

        // Customer 2 buys 3 of snack 3.
        System.out.println(Bob.purchase(Pretzel, 3));

        // Print Customer 2 Cash on hand.
        System.out.println("Bob has $" + Bob.getCash() + ".");

        // Print quantity of snack 3.
        System.out.println("There are " + Pretzel.getQuantity() + " " +  Pretzel.getName() + ".");

        // Test Safeguard Code

        // Customer 1 buys 50 of snack 3.
        // It Will return a string that displays the amount of Pretzel's in vending machine.
        System.out.println(Jane.purchase(Pretzel, 50));

        // Customer 2 buys 30 of snack 1
        // It will return a string that displays "You do not have enough money."
        System.out.println(Bob.purchase(Chips, 30));

        // Customer 1 buys 20 of snack 4
        // It will return a string that displays "You do not have enough money."
        System.out.println(Jane.purchase(Water, 20));
    }

    public static void main(String[] args) {
        snackBar();
    }
}


feat: prompt for a new port when a port is occupied

Description
This PR fixes #557

@VishnuSanal , would you want to have a look at this PR ? :D


[stable/sysdig] New upstream sysdig version 0.90.1

What this PR does / why we need it:
This PR updates the agent version to 0.90.1 and adds the os release information to the agent container.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @bencer

/lgtm
/approve


VDP 1.03 RC1 Keyboard Issue

Hi,
Just installed VDP 1.03 on my Agon Light 2 (Olimex) via Aurdino. All went fine but upon powering on Agon, each key were duplicated when a single was pressed. That is key stroke 'A' reflected as 'AA'
The only way I could install the new MOS 1.03 RC1 was to create an autoexec.txt file with the corresponding FLASH command in it. After that all was fine and able to run the BBC BASIC 1.04 Pre-release version.
Keep up the good work.
P.S. This may not be an issue if MOS 1.03 installed before VDP 1.03. Not sure what is the order.

@leventp I had an issue with MOS 1.3 RC1 and VDP 1.03 RC1 that is similar.  However mine is where I have to hit enter twice after a command. From there my sample programs do not appear to run correctly as I get a blank screen and no output.
I can post a video if needed.  I would try and move to 1.04 but I do not have the Zlog cable.