QR Code being scanned twice (?)

I use your library to scan an URL and open it via WebView with Intent. When I tried scanning a QR, it's success but the WebView opened twice. Also sometimes, after pressing the back button the WebView was opened again. Is this QR Code being scanned twice? How to scan QR and open WebView only once, not twice?
My code:
scannableCamera.onScanned(object : ScannableCamera.OnScanned {
    @SuppressLint("ResourceType")
    override fun onScanned(barcodes: List<Barcode>) {
        if (barcodes.hasBarcodeType(Barcode.QR_CODE)) {
            barcodes.forEach { barcode -> // Toast all QRs
                if (barcode.isQr()) {
                    if (barcode.isUrl()){
                        val urlValue = barcode.displayValue //url scanned from the qr code
                        val i = Intent(context, ScanFloraActivity::class.java).apply {
                            putExtra("mUrl",urlValue)
                            startActivity(this)
                            flags = Intent.FLAG_ACTIVITY_NO_HISTORY
                        }
                    }
                    } else {
                        activity?.runOnUiThread {
                            Toast.makeText(requireContext(), barcode.displayValue, Toast.LENGTH_SHORT).show()
                        }
                    }
                }
            }
        }
    }
})

Hello!

Please give me QR code that you use, I will try this
ScanFloraActivity - is this activity with WebView?

QR that I used

Yes

Note that startActivity() is asynchronous. QR can be read again while the activity is starting.
You may try to invoke scannableCamera.stopScanning() in onScanned callback and invoke scannableCamera.resumeScanning() if barcode is incorrect. Or you may set a longer delay.
Please try it and tell me the results.

I hope your problem was solved. If not, try to take my advice and create new issue.

Yes, it's work when I set a delay. Thank you!


Invalid XDS/SDS UDS paths

Bootstrap is changed to {{ .config.ConfigPath }}/SDS, but the code is hardcoded to ./etc/istio/proxy/{XDS,SDS}.
We need to make them consistent or ConfigPath must equal /etc/istio/proxy which would be a regression.

Where in the code is it hardcoded? I just added a test that runs two agents on the same machine.

https://github.com/istio/istio/blob/d45e4d56addbd7474e0090b760ca3e6d5e781314/pilot/cmd/pilot-agent/options/agent.go#L35
I think the tests overrides it


Why I cant use FA in avalonia11

After I updated Avalonia to 11.0.2, I cant use FA controls any more.

I have already used FA styles

And I cant use the controls in C# files
This problem seems to be caused by avalonia generater, it cant generate FA comboboxes
or maybe my XAML code is wrong

use FAComboBox instead of ComboBox

how to use that?
(I am a noob)

change
<ui:ComboBox ...

to
<ui:FAComboBox ...

Thank you very much! I have succeeded in solving the problem!


unwrap_single_value, validate_per_array in SingleAxisTracker.get_irradiance

[x] Closes #1159
[x] I am familiar with the contributing guidelines
[x] Tests added
~Updates entries to docs/sphinx/source/api.rst for API changes.~
~Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).~
[x] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
[x] Pull request is nearly complete and ready for detailed review.
[x] Maintainer: Appropriate GitHub Labels and Milestone are assigned to the Pull Request and linked Issue.

This code would be removed in #1146 but I don't know if/when community will accept that. In the meantime we want this to work. And the test_modelchain additions will be useful for that refactor too.

@wfvining or @cwhanse can you give this a quick review?


docs: fix priority level algorithm in load balancing

Signed-off-by: crazyxy<EMAIL_ADDRESS>Description:
Risk Level: Low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A

/retest


PSA: fix for "Please attach a Wifi card that supports AP Mode"

THis is in hope someone else has this problem and finds this since after reading about 20 articles / how-tos not a single one mentions needing SUDO to run this!
If your WLAN0 reports as the wifi card using IFCONFIG and is also what is set in tuya-convert/config.txt you prob have a perms problem.
run...
SUDO ./start_flash.sh

sudo should not be used when calling start_flash.sh. sudo is already called by the scripts when and only when necessary.
If the AP set up process failed for you, we should attempt to determine the cause rather than forcing the process to run as root.

For me, there was a more pertinent error message immediately above this that shined more light onto the issue.
In my case the script could not find iw. This was an issue of iw being installed as root.  Shimming $PATH resolved my issue:
export PATH="$PATH:/sbin"

For me, there was a more pertinent error message immediately above this that shined more light onto the issue.
In my case the script could not find iw. This was an issue of iw being installed as root.  Shimming $PATH resolved my issue:
export PATH="$PATH:/sbin"


val doesn't work inside lambda

Runnable run = () -> { val str = ""; };
Compilation error: incompatible types: java.lang.String cannot be converted to lombok.val

This is a lombok limitation, not the IDEA lombok plugin. please report to the correct project: https://github.com/rzwitserloot/lombok
They have this issue reported already though: https://github.com/rzwitserloot/lombok/issues/911


Migrate Elyra extensions to support JupyterLab 4.x

What changes were proposed in this pull request?
Migrate Elyra extensions to support JupyterLab 4.x
Fixes #3137
How was this pull request tested?
Building and running on JupyterLab 4.x
Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

I have made some progress here, but I would appreciate if I could get some help on the UI pieces, in particular on UI-components... @marthacryan @karlaspuldaro @ajbozarth and others feel free to send prs to this branch as time permits... I completely understand if you are not able to.

hello! is this pull request still being worked on? it would be amazing to have support for JL4 now that JL3 has an official sunset date. Is there any support required from the community? Thank you!

thanks for the quick response!

hi @lresende, thank you so much for this work! Where are these 'remaining items' located? I would love to figure out ways to help! (at least testing it)

thank you so much for this work! Where are these 'remaining items' located? I would love to figure out ways to help! (at least testing it)

@ederign they are opened as PR to the branch, here: https://github.com/lresende/elyra/pull/1

Hi @lresende, this migration still being worked on? should we expect changes in the near future?

@Ekzz0 we need to resolve some of these conflicts, but, at a high level, the branch is working with JupyterLab 4.2.5

@lresende I've sent two PRs targeting your branch to make it green on the CI.
Please take a look at them when you have some time.

https://github.com/lresende/elyra/pull/3
https://github.com/lresende/elyra/pull/4

I think we should make the CI for this PR green first, and then work on details (for instance reverting those unrelated changes and/or fixing bugs).

Ah, yes, that is the failed yarn cypress integration test again, the one that is flaky.

@caponetto It seems like the last test issue is related to some properties not being saved on the pipeline files, which fail to match the existing snapshot. I noticed you made some changes in that area recently. Would you have some time to help identify what's going on?

@lresende please see https://github.com/lresende/elyra/pull/5

Thank you @caponetto , so are you saying that the empty fields are not being saved to pipelines anymore and it's ok to remove them?

Thank you @caponetto , so are you saying that the empty fields are not being saved to pipelines anymore and it's ok to remove them? Particularly as it is working on main branch.

Never mind, I see the difference in the duplicate/different block.


Add Oura API 2 endpoint

@dvargas92495
relevant docs:
https://cloud.ouraring.com/v2/docs
https://partnersupport.ouraring.com/hc/en-us/articles/19907726838163-Oura-API-V2-Upgrade-Guide
for: https://github.com/RoamJS/oura-ring/pull/6

don't worry about the test failure - i need to make it more resilient to other's prs

I do not have permissions to merge, so if it looks good, go ahead 👍


ReadTimeout: HTTPConnectionPool(host='localhost', port=36469): Read timed out. (read timeout=60.0)

Description of the bug:
When I tried to use python code to call the gemin model on colab to generate a long article, it timed out. I couldn't find an option to extend the timeout.Is there any solution?
Actual vs expected behavior:
response = model.generate_content(prompt_parts, stream=True)

TimeoutError                              Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
536         try:
--> 537             response = conn.getresponse()
538         except (BaseSSLError, OSError) as e:
25 frames
TimeoutError: timed out
The above exception was the direct cause of the following exception:
ReadTimeoutError                          Traceback (most recent call last)
ReadTimeoutError: HTTPConnectionPool(host='localhost', port=36469): Read timed out. (read timeout=60.0)
During handling of the above exception, another exception occurred:
ReadTimeout                               Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
530                 raise SSLError(e, request=request)
531             elif isinstance(e, ReadTimeoutError):
--> 532                 raise ReadTimeout(e, request=request)
533             elif isinstance(e, _InvalidHeader):
534                 raise InvalidHeader(e, request=request)
ReadTimeout: HTTPConnectionPool(host='localhost', port=36469): Read timed out. (read timeout=60.0)
Any other information you'd like to share?
No response

I solved the problem directly using the requests library.

Hi @G-TTYg, Could you please share exactly what you did? I am facing the same issue.
Thanks


stacktrace dump on brig build list with no builds

I have a project that had an errored out build. brig run -f brigade.js bacongobbler/brigade-charts never started a worker pod for some reason. However, because of this, when I run brig build list bacongobbler/brigage-charts now, I see this:

><> brig project list
NAME                            ID                                                              REPO
bacongobbler/brigade-charts     brigade-90e598a16b77cbcff628e99c6610d03a373602f144cf70ea3bf957  github.com/bacongobbler/brigade-charts
><> brig build list bacongobbler/brigade-charts
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x1a8acf9]

goroutine 1 [running]:
github.com/Azure/brigade/brig/cmd/brig/commands.listBuilds(0x1da12e0, 0xc4200d6008, 0x7ffeefbffb50, 0x1b, 0x1b1c560, 0x23cd640)
        /Users/bacongobbler/code/go/src/github.com/Azure/brigade/brig/cmd/brig/commands/build_list.go:73 +0x249
github.com/Azure/brigade/brig/cmd/brig/commands.glob..func2(0x2419860, 0xc42028d280, 0x1, 0x1, 0x0, 0x0)
        /Users/bacongobbler/code/go/src/github.com/Azure/brigade/brig/cmd/brig/commands/build_list.go:35 +0x7b
github.com/Azure/brigade/vendor/github.com/spf13/cobra.(*Command).execute(0x2419860, 0xc42028d250, 0x1, 0x1, 0x2419860, 0xc42028d250)
        /Users/bacongobbler/code/go/src/github.com/Azure/brigade/vendor/github.com/spf13/cobra/command.go:599 +0x3db
github.com/Azure/brigade/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2419200, 0x1, 0xc42017ff40, 0x1a9389e)
        /Users/bacongobbler/code/go/src/github.com/Azure/brigade/vendor/github.com/spf13/cobra/command.go:689 +0x2d4
github.com/Azure/brigade/vendor/github.com/spf13/cobra.(*Command).Execute(0x2419200, 0xc4200b4058, 0x0)
        /Users/bacongobbler/code/go/src/github.com/Azure/brigade/vendor/github.com/spf13/cobra/command.go:648 +0x2b
main.main()
        /Users/bacongobbler/code/go/src/github.com/Azure/brigade/brig/cmd/brig/main.go:11 +0x31

Re-running a new job with brig run seemed to have resolved this. Perhaps it was just an intermittent scheduling error for the cluster?

I see where that error seems to come from. There's a status field that is not nil-checked, but will be nil if a build pod is not yet initialized.


Make interaction with CLI more frictionless

[ ] Make CLI by default not ask any questions
Users are sometimes confused by the questions asked by the initial wizard, so we should make the first interaction as frictional as possible and don't ask any questions at all and just default to using the web-recommended configuration. However, we should display a message linking to a documentation page that informs them how things can be customized/configured.

[ ] Make CLI run even if a valid configuration is not found
Here, again, we should display a message informing the user that a valid configuration is not found, and we are using a default one.

[ ] Other?

Make CLI run even if a valid configuration is not found
Here, again, we should display a message informing the user that a valid configuration is not found, and we are using a default one.

Are we sure we want to do that? IMO, if you have a wrong config we should fail or ask if they want to create a new config or run the default one.

IMO, if you have a wrong config we should fail or ask if they want to create a new config or run the default one.

Well, the idea was to ask less questions. However, I'm open to different opinions.
@sonarwhal/core ?

Well, the idea was to ask less questions. However, I'm open to different opinions.
@sonarwhal/core ?

Ok, meantime I'm going to work on the first point.

I think we should have something like:

Couldn't find any valid configuration. Want to use the default one? Learn more about the default config in https://something

We still have the problem with packages that are outdated or missing though. I think it will be nice to have a diagram flow so we can decide what is best on each case. It should probably start with "is sonarwhal installed globally? Yes/No"

@molant That's for the point 1, 2 or both?

For the whole CLI. We need to capture somewhere what happens since the moment someone types sonarwhal https://example.com and what could happen

This is the diagram with the two points in the description + what we already have. @sonarwhal/core do you thing something should be different?

I have just updated the diagram.

Task to do to match the diagram:

[ ] Run web-recommended configuration if no configuration file is found.
[ ] Ask to use web-recommended if the configuration file is not valid.
[ ] Choose formaters has to ask for one or more formatters
[ ] Change how to detect if sonarwhal is installed locally or not.


Update TFLu (micro) to use AmbiqSuite SDK Release 2.2.0 for Apollo3

We can update to the latest SDK release from Ambiq to stay current. This will make it easier to build/maintain additional functionality in the future if needed.

@gbaned Should I be concerned about the Linux GPU, Windows Bazel, and Windows Bazel GPU checks failing? If you can advise me on next steps to land this PR I would appreciate it much.
Thanks!

@gbaned Should I be concerned about the Linux GPU, Windows Bazel, and Windows Bazel GPU checks failing? If you can advise me on next steps to land this PR I would appreciate it much.
Thanks!

@oclyke Sorry for the delay, it is waiting for an internal approval. We will let you know if anything requires from you for this PR. Thank you!


Windows file path problem in watch

Hello,
There is problem with mju --watch  on windows machne. It is caused by different path separators than on Linux machines. Problem is in watcher/index.js
this is ugly solution how to solve the problem on windows :
function onChange(filePath, outputDir) {   build(filePath.replace(/\\/g,"/"), outputDir); }

Merged PR!

Hi, this issue is different than this in PR ;)

Thanks ! Cheers!

Could You also release it on npm ?

Released 0.3.1 on NPM with this fix. Good luck!


TLS Bridging Failure on Unity 2018.1.0 x64 Il2Cpp

I'm having an error while opening a game with melon loader 0.5.2 when it tries to initialize and contact the remote API. Seems to be a TLS connection problem, as said in the title I'm on Windows 7.
Following this page, I added the registry keys and have the KB update installed, but it still gives the same error.
Log: [REDACTED]

[00:45:47.204] Failed to Bridge Mono TLS! Web Connection based C# Methods may not work as intended.

This isn't an issue with Windows 7 so much as an issue with that build of Il2Cpp missing the TLS Adapter Export needed to bridge it.

Changing these to Planned until further work can be done.


[TIR] Simplify indices in InjectVirtualThread

If the injected index expressions can be simplified to Ramp nodes (e.g. Ramp(0,1,4) resulting in Ramp(vthread*4, 1, 4) instead of Ramp(0,1,4) + Broadcast(vthread*4, 4)), these can be identified as vector access in later passes.  Simplifying at the time of substitution avoids requiring all downstream passes to perform the simplification.

No problem!  Corrected a typo that the CI caught, and marking the PR as ready for review.

@tvm-bot rerun

@tvm-bot rerun

@tvm-bot rerun

@csullivan Ready to be merged!


Add TM Tab screenshot

I'll add a screenshot when the feature actually lands and the Upload .TMX button is enabled.

Actually there is no reason to wait for the Upload .TMX button to ship, given we already have the Upload action documented.

Updated the team page header screenshot (I assumed you meant that one).


[Question] HOG/SVM for OpenCV C-SVC model (non-linear) with kernel RBF

Hi ACL,
ACL 19.02, built for CL, aarch64, FriendlyArm nanopi NEO4.
I have learned model with OpenCV HOG/SVM. There are 2500 support vectors and decision functions. I am using RBF(non-linear) kernel, 2 classes.
How i can use model with ACL HOG/SVM?
Best regards, Viktor.

Hi @vswdigitall
We have no HOG examples in ACL.
For a general idea on how to use HOG in ACL I'd suggest you take a look at the fixtures in the validation tests.
https://github.com/ARM-software/ComputeLibrary/blob/master/tests/validation/fixtures/HOGDescriptorFixture.h
https://github.com/ARM-software/ComputeLibrary/blob/master/tests/validation/fixtures/HOGDetectorFixture.h
https://github.com/ARM-software/ComputeLibrary/blob/master/tests/validation/fixtures/HOGMultiDetectionFixture.h
This might help you to understand how to use these functions and configure them properly.
Hope this helps.

Thanks. Will try.


Not able to install PDK on Mac M1

Describe the bug
chmod a+x /Users/gursimransodhi/Documents/OpenLane/openlane/pdk/skywater-pdk/env/downloads/Miniconda3-latest-MacOSX-arm64.sh
/Users/gursimransodhi/Documents/OpenLane/openlane/pdk/skywater-pdk/env/downloads/Miniconda3-latest-MacOSX-arm64.sh -p /Users/gursimransodhi/Documents/OpenLane/openlane/pdk/skywater-pdk/env/conda -b -f
touch "/Users/gursimransodhi/Documents/OpenLane/openlane/pdk/skywater-pdk/env/conda/bin/python"
touch: /Users/gursimransodhi/Documents/OpenLane/openlane/pdk/skywater-pdk/env/conda/bin/python: No such file or directory
make[1]: *** [/Users/gursimransodhi/Documents/OpenLane/openlane/pdk/skywater-pdk/env/conda/bin/python] Error 1
make: *** [skywater-library] Error 2
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/efabless/openlane.git
cd openlane/
make openlane
make pdk

--> Getting Error
Expected behavior
Should have installed PDK
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Mac M1 chip
Openlane Version Latest
open_pdks Version: Latest
skywater-pdk Version: Latest

Additional context
Add any other context about the problem here.

Hi Guris, we're going to need a full log so we can help you here. The last 5 lines are not sufficient.

hello donn, is there any log file which is generated ? I am not able to find it , could you please point me  to the right place

Just copy & paste more lines from the terminal.

Or alternatively, run:
make pdk 2>&1 > ./make_pdk.log
Then find a file called make_pdk.log.

4may_error.log
please find the error.lo attached

…Might be me, but I don't see any errors in this log. Have you added the 2>&1?

Dumping a new file with above command

please find the new log file
make_pdk.log


Add landing page

See deploy preview at https://deploy-preview-857--cursorless.netlify.app/
Checklist

[x] Add SEO / social header stuff
[x] Tweak hover colors
[x] Add favicon
[x] Fix white side bars on horizontal mobile layout
[x] Fix my desktop layout
[x] Fix iPad horizontal layout (video should be vertically centred?)
[x] Add title
[x] Add arrow to indicate to scroll down / make it so clicking anywhere scrolls down
[x] Support playing video full screen
[x] Center logo within its svg by tweaking viewport
[x] Support light player
[x] Check horizontal mobile layout
[x] Use YouTube cookie-free
[x] Use css to set body bg color and remove helmet; it's too slow
[x] Figure out why styling was lost on docs site; prob want to avoid tailwind outside landing page
[x] File follow-up issues for follow-up work

Remove unnecessary .gitkeep


[Builtins]  Disallow builtins with type arguments appearing last

Don't look here yet.

/benchmark plutus-benchmark:validation

Same -8% as with Lazy living in the Runtime module, so I don't see why we'd want to limit expressiveness with more code for nothing.


file prefix results in inconsistent naming

-rw-r--r-- 1 scarf562 cseg  32K May  4 06:12 SiO2+B2O3-T3000.0-p2000.0-res-4000.xyz
-rw-r--r-- 1 scarf562 cseg  32K May  4 06:13 SiO2+B2O3-T3000.0-p2000.0-res-5000.xyz
-rw-r--r-- 1 scarf562 cseg  32K May  4 06:13 SiO2+B2O3-T3000.0-p2000.0-res-6000.xyz
-rw-r--r-- 1 scarf562 cseg  32K May  4 06:14 SiO2+B2O3-T3000.0-p2000.0-res-7000.xyz
-rw-r--r-- 1 scarf562 cseg  13K May  4 06:14 SiO2+B2O3-stats.dat
-rw-r--r-- 1 scarf562 cseg 2.2M May  4 06:14 SiO2+B2O3-traj.xyz

expected same scheme fileprefix-ensemble-t-[pressure]-[stats|traj|res]

What was the command that you used for this output? If I run something like
janus md --ensemble npt --struct tests/data/NaCl.cif --temp-start 20 --temp-end 30 --temp-step 10 --temp-time 100 --stats-every 100  --steps 20

then the stats and traj files are
NaCl-npt-T20.0-T30.0-T300.0-p0.0-stats.dat
NaCl-npt-T20.0-T30.0-T300.0-p0.0-traj.xyz

which looks fine?
To me, if a user sets the file file-prefix, I consider that to be everything other than what is necessary to separate the different files, so could be as minimalistic as possible.
Otherwise you're basically just setting the structure name, which admittedly can't be done currently via janus md, but can be done by setting struct_name when calling SinglePoint, so could be added.

What was the command that you used for this output? If I run something like
janus md --ensemble npt --struct tests/data/NaCl.cif --temp-start 20 --temp-end 30 --temp-step 10 --temp-time 100 --stats-every 100  --steps 20

then the stats and traj files are
NaCl-npt-T20.0-T30.0-T300.0-p0.0-stats.dat
NaCl-npt-T20.0-T30.0-T300.0-p0.0-traj.xyz

which looks fine?
To me, if a user sets the file file-prefix, I consider that to be everything other than what is necessary to separate the different files, so could be as minimalistic as possible.
Otherwise you're basically just setting the structure name, which admittedly can't be done currently via janus md, but can in general be done by setting struct_name when calling SinglePoint, so could be added.

had file prefix in it.

What was the command that you used for this output? If I run something like
janus md --ensemble npt --struct tests/data/NaCl.cif --temp-start 20 --temp-end 30 --temp-step 10 --temp-time 100 --stats-every 100  --steps 20

then the stats and traj files are
NaCl-npt-T20.0-T30.0-T300.0-p0.0-stats.dat
NaCl-npt-T20.0-T30.0-T300.0-p0.0-traj.xyz

which looks fine?
To me, if a user sets the file file-prefix, I consider that to be everything other than what is necessary to separate the different files, so could be as minimalistic as possible.
Otherwise you're basically just setting the structure name, which admittedly can't be done currently via janus md, but can in general be done by setting struct_name when calling SinglePoint, so could be added.

had file prefix in it.

Cool yes, so that's sort of my point. I'd argue the traj and stats files are what I expect if your prefix is SiO2+B2O3.
If you always want file names to include the ensemble, temperatures, pressure etc. and only want to change the chemical formula at the start, we should just add an option to set the structure name, and there'd be no need to set the file prefix.
In fact, if we never want to be able to have simple file names without npt-T300..., we probably don't need the file prefix at all.
I think the results files are what are wrong, certainly in terms of my intent.

What was the command that you used for this output? If I run something like
janus md --ensemble npt --struct tests/data/NaCl.cif --temp-start 20 --temp-end 30 --temp-step 10 --temp-time 100 --stats-every 100  --steps 20

then the stats and traj files are
NaCl-npt-T20.0-T30.0-T300.0-p0.0-stats.dat
NaCl-npt-T20.0-T30.0-T300.0-p0.0-traj.xyz

which looks fine?
To me, if a user sets the file file-prefix, I consider that to be everything other than what is necessary to separate the different files, so could be as minimalistic as possible.
Otherwise you're basically just setting the structure name, which admittedly can't be done currently via janus md, but can in general be done by setting struct_name when calling SinglePoint, so could be added.

had file prefix in it.

Cool yes, so that's sort of my point. I'd argue the traj and stats files are what I expect if your prefix is SiO2+B2O3.
If you always want file names to include the ensemble, temperatures, pressure etc. and only want to change the chemical formula at the start, we should just add an option to set the structure name, and there'd be no need to set the file prefix.
In fact, if we never want to be able to have simple file names without npt-T300..., we probably don't need the file prefix at all.
I think the results files are what are wrong, certainly in terms of my intent.

at the moment, if you add file_prefix you get inconsistent results, as per list, some get decorations of ensemble|T|p some do not... and a suffix this just brings the things in line.
if we want full flexibility we shall have have an option for each file to overwrite it.
the use case for file_prefix in my mind is to overwrite structure name. eg. I do a geometry optimisation of some heating and end up with aname-opt.xyz or aname-T200-final.xyz if I start an md from that file I want aname-{ensemble}-{T}-[{p}]-suffix.ext

What was the command that you used for this output? If I run something like
janus md --ensemble npt --struct tests/data/NaCl.cif --temp-start 20 --temp-end 30 --temp-step 10 --temp-time 100 --stats-every 100  --steps 20

then the stats and traj files are
NaCl-npt-T20.0-T30.0-T300.0-p0.0-stats.dat
NaCl-npt-T20.0-T30.0-T300.0-p0.0-traj.xyz

which looks fine?
To me, if a user sets the file file-prefix, I consider that to be everything other than what is necessary to separate the different files, so could be as minimalistic as possible.
Otherwise you're basically just setting the structure name, which admittedly can't be done currently via janus md, but can in general be done by setting struct_name when calling SinglePoint, so could be added.

had file prefix in it.

Cool yes, so that's sort of my point. I'd argue the traj and stats files are what I expect if your prefix is SiO2+B2O3.
If you always want file names to include the ensemble, temperatures, pressure etc. and only want to change the chemical formula at the start, we should just add an option to set the structure name, and there'd be no need to set the file prefix.
In fact, if we never want to be able to have simple file names without npt-T300..., we probably don't need the file prefix at all.
I think the results files are what are wrong, certainly in terms of my intent.

at the moment, if you add file_prefix you get inconsistent results, as per list, some get decorations of ensemble|T|p some do not... and a suffix this just brings the things in line.
if we want full flexibility we shall have have an option for each file to overwrite it.
the use case for file_prefix in my mind is to overwrite structure name. eg. I do a geometry optimisation of some heating and end up with aname-opt.xyz or aname-T200-final.xyz if I start an md from that file I want aname-{ensemble}-{T}-[{p}]-suffix.ext

I agree the results are inconsistent, which needs fixing, I'm just disagreeing about which files are the problem.
We do have individual options for each file e.g. --traj-file,  --stats-file etc. already, but at least when I'm testing things, I find it useful to be able to say I want (MOF1-traj, MOF1-stats, MOF1-res...) or (test-traj, test-stats, test-res...), without all the extra information that can actually make it harder to distinguish between files at a glance.
If we really don't want that, and only want to be able to name the structure, that's fine, but I don't think the approach in #136 is necessary. I think we just need to add a structure name option to the CLI, which MD can already take, and I think everything should work as you described.

We can use --struct-name as described above, but when using --file-prefix, the files remain inconsistent.


Set an executable page at the top of the stack

When this feature is enabled, the top of the stack will be marked as an executable memory page. If the heap or stack attempts to write data to this area, ckb-vm will return an error due to the wxorx rules.
The purpose of this feature is to use it in dapp's testcase, which can reduce the occurrence of overlap.
Note that we have several test cases that use too much heap, which will trigger overlap checks.

The position should be at symbol "_end": https://man7.org/linux/man-pages/man3/end.3.html
Since we don't use brk the "_end" can be treated as end of stack.

The method you mentioned is the same as the ckb-vm-pprof https://github.com/nervosnetwork/ckb-standalone-debugger/blob/develop/ckb-vm-pprof/src/lib.rs#L217-L221
You can use PProfMachine directly without adding the same functionality to the ckb-vm project.


Add a travel website , with animated text.

Project description
made using HTML- CSS
HERE IS HOW IT LOOKS
I'm a GSSOC 22 contributor.

i want to contribute in this issue under gsscoc'22

I have already worked on this issue


Type is wrongly inferenced

Describe the bug
Not sure how to exactly explain it, but if I use a union, mapped and cast together, there is something wrong.
Expected behavior
No mypy error
To Reproduce
from typing import Optional, Type, cast, Union
from sqlalchemy.orm import declarative_base, Mapped
from sqlalchemy import Column, Unicode

Base = declarative_base()

class DummyTable(Base):
    __tablename__ = "user"
    col1:Mapped[Optional[str]] = Column(Unicode, primary_key=True)

class DummyTable2(Base):
    __tablename__ = "user2"
    col1:Mapped[Optional[str]] = Column(Unicode, primary_key=True)

def x(arg: Type[Base]) -> None:
    arg = cast(Type[Union[DummyTable, DummyTable2]], arg)
    arg.col1.int_(1,2)

Error
x.py:17:5: error: Item "str" of "Optional[str]" has no attribute "int_"  [union-attr]
        arg.col1.int_(1,2)
        ^
x.py:17:5: error: Item "None" of "Optional[str]" has no attribute "int_"  [union-attr]
        arg.col1.int_(1,2)
        ^

Versions.
OS: Linux
Python: 3.7.1
SQLAlchemy: 1.4.22
mypy: 0.910
SQLAlchemy2-stubs: 0.0.2a6
Have a nice day!

I've come across the same issue, and it seems to be related to Union. It is also reproducible by using a Union with the type itself:
from typing import Type, Union

from sqlalchemy import Column, String
from sqlalchemy.orm import declarative_base, Mapped

Base = declarative_base()

class Foo(Base):
    id = Column(String, primary_key=True)
    data: Mapped[str] = Column(String, nullable=False)

class Bar(Base):
    id = Column(String, primary_key=True)
    data: Mapped[str] = Column(String, nullable=False)

def do_something(mapped: Type[Union[Foo, Foo]]) -> None:
    mapped.data.in_(["a", "b"])

Result is:
 error: "str" has no attribute "in_"

Using any of the mapped classes outside of Union works fine.

I think I'm noticing similar issue when trying to get column name via .key....since Column is typed as string, .key can't be called on it resulting
class UserModel(Base):
    __tablename__ = "users"
    username = Column(String, unique=True, index=True)

self.get_user_by_username = load_by_foreign_key(
    UserModel, UserModel.username.key
)

Pycharm is complaining: Unresolved attribute reference 'key' for class 'str'


[Issue 14693][Offloader] JCloud Offloader Now Removes S3 Objects

Fixes #14693
Motivation
Offloaded S3 Blob Objects should be removed from the S3 Bucket when the retention period has expired or the topic is deleted.
Modifications
Modified BlobStoreManagedLedgerOffloader.deleteOffloaded to use BlobStore.removeBlob instead of BlobStore.removeBlobs which no longer works as epxected.
Verifying this change

[x] Make sure that the change passes the CI checks.

This change is a small rework without any test coverage.
CI currently cannot test this long running scenario.
The fix was tested using OMB and ./pulsar-admin topics delete
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

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

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

[X] no-need-doc
This change simply fixes a bug.

I think that this is needed anyway.
Because if removeBlobs fails silently without returning a error then nobody will know and Pulsar will proceed and consider the object to be deleted
@codelipenghui @merlimat WDYT?

@eolivelli - based on reading through the JClouds code, removeBlob will also fail silently if the object does not exist.


Rewrite the test cases to use rest instead of CLI

Since the Go CLI starts to leave the openwhisk repo, we need to rewrite the test cases for openwhisk by using rest interface to call openwhisk services instead of using CLI.

why?  won't openwhisk pull the binary as part of deploy?  if not then this breaks a lot of tests in many repos.

As long as the binaries are copied to the place we specified, there should be no effect on the tests in openwhisk. I will close this issue here. The CLI in the new repo may need tests.

I liked the original thought. The cli tests should move to the cli repo in near future. The tests in this repo should be API based and in fact we should use that as a way of cleaning up and enforcing our swagger compliance.

I won't reopen this issue though because we have another issue for the above which I'll cross link.


Garnix -> Hercules CI

Garnix has been suffering from various issues over time.
Depends on https://github.com/srid/haskell-flake/issues/21#issuecomment-1364154220

https://github.com/srid/haskell-template/pull/78


i2c: use open drain outputs.

The code appeared to be forcing the outputs high rather than using an open drain to let them float high and this attempts to correct this.
Initialize the pins when the driver is initialized.
Enable the internal pull-ups to prevent them floating too high if not connected and damaging the circuit.

Hi,
Thanks for getting involved in this project and sending the change! Looks good to me.
I think the reason for the behaviour you were seeing is that GPIO_OUT_OPEN_DRAIN was only added after the i2c driver. A push/pull output driven low is functionally the same as an open drain output driven low, hence the swapping between OUTPUT/LOW and INPUT. But I think this is a good change - it makes the intention clearer, and removes the possibility of accidentally driving the output high.
Have you tested this with any i2c devices?
Fwiw,  I think it may be possible to never set the pin mode to GPIO_INPUT and have the code still work. Reading gpio_input() on an open drain pin should read the state of the input buffer, so it will register if the pin is pulled low from the other end. I think. So if you feel like tweaking the driver some more, you could explore that. :)
@kanflo, as the original i2c driver author do you have any comments on this?

@projectgus Thank you for explaining this, and I had misunderstood how it was working and the patch has been updated adding some comments. It still might be a useful to initialize the pins in i2c_init and it seems unnecessary to be writing a 0 to the output each time the clear_s* functions are called because the output state should always be 0. The revised patch proposes some changes for these points.
Also tried a different approach of leaving the pins as open-drain outputs and just reading the inputs without re-configuring them as inputs and that worked too, but shall leave it as-is switching the pin configuration.
Tested on the bmp180 and also sht21.
Have some reservations about the approach used in the bmp180 driver, of creating a separate task, as the i2c driver does not appear the be task-safe so it might not support multiple drivers using this approach. The bmp180 driver also seems to support only one device as it keeps state in global variables. The i2c driver also appears to only supports one set of pins. Issues for another PR!
Some code for the sht2x is available at https://github.com/ourairquality/oaq-esp-open-rtos which might be possible to refactor out into the esp-open-rtos extras and a simple example.

Thanks for the PR @ourairquality and welcome to the project. I think this PR is a fine improvement of the initial i2c driver so I will go ahead and merge it. Adding the possibility to use several instances of the driver on different pins is a great idea.


Finish DB migration, add new session classes

Coverage increased (+9.03%) to 48.953% when pulling 9730b6af85b6c3e4dc109eedfa19a101ca9ab645 on maxhq:db-and-session into dba2239a9599aeec9a790f36d4d3b83f3933fd66 on openxpki:develop.


libamqpcpp: 4.3.26 -> 4.3.27

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/CopernicaMarketingSoftware/AMQP-CPP/releases.
meta.description for libamqpcpp is: Library for communicating with a RabbitMQ server
meta.homepage for libamqpcpp is: https://github.com/CopernicaMarketingSoftware/AMQP-CPP
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 4.3.27 with grep in /nix/store/488a0jia72ccr2fphdrx9rxirn0pimaq-libamqpcpp-4.3.27
found 4.3.27 in filename of file in /nix/store/488a0jia72ccr2fphdrx9rxirn0pimaq-libamqpcpp-4.3.27

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

libamqpcpp

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/488a0jia72ccr2fphdrx9rxirn0pimaq-libamqpcpp-4.3.27 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A libamqpcpp https://github.com/r-ryantm/nixpkgs/archive/a7875ca3ed56694e10cf2eda5875e6b12c6e2aaf.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/a7875ca3ed56694e10cf2eda5875e6b12c6e2aaf#libamqpcpp

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/488a0jia72ccr2fphdrx9rxirn0pimaq-libamqpcpp-4.3.27
ls -la /nix/store/488a0jia72ccr2fphdrx9rxirn0pimaq-libamqpcpp-4.3.27/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

libamqpcpp

Maintainer pings
cc @MikePlayle for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 351185

aarch64-darwin

:white_check_mark: 1 package built:

libamqpcpp


HacktoberFest19

Name the program which you are adding
infix to prefix using stack
Programming Language you will code
C
YOU ARE
Student
GITHUB USERNAME
vrn25

You can add but update index in readme also. Moreover pr merge will take time because we have to review the code we are merging.

Alright


Create PR Templates

As a part of GSSoC 23, I would like someone to create a PR Template that takes up following options.

New Feature (Landing Page)
New Feature (App)
Bug (Landing Page)
Bug (App)
New Component (App)
Your Idea for Level (GSSoC)
Which Issue it Solves?

And it should automatically give the default GSSoC Label. Please explain how you're planning to do it while you wanna grab this issue.

Assign this to me under GSSoC'23

As a part of GSSoC 23, I would like someone to create a PR Template that takes up the following options.

New Feature (Landing Page)
New Feature (App)
Bug (Landing Page)
Bug (App)
New Component (App)
Your Idea for Level (GSSoC)
Which Issue does it solve?

And it should automatically give the default GSSoC Label. Please explain how you're planning to do it while you wanna grab this issue.

Hey @praveenscience, I want to work on this issue.
I am thinking of creating a pr template with the following fields

Issue it closes/fixes.
Changes made
Options for the type of issues it solves (option mentioned in issue)
Screenshot (if any)
Additional information.

For automatically adding an Gssoc label, I am thinking of using GitHub issue-labeller. I don't know much about it but want to work on it and learn more about it.

Amazing, let's go @Isha988! 💪🏻

Amazing, let's go @Isha988! 💪🏻 Also check with GitHub, they can do forms right now. Let's use that. 😁 Check out: Syntax for issue forms - GitHub Docs

@praveenscience as per my knowledge form feature can be used in the .yml file but the pr template is created in the .md file.
Please correct me if I am wrong.

I believe so... 💪🏻

Hi, @praveenscience I am done with creating the PR template and configuring the labeler but I don't know how to check whether it is working all right or not.
Do you have any way of checking it  or should I create a PR for merging changes?

What's the source? Just raise the PR, we'll see if that works or not... Don't worry...

What's the source? Just raise the PR, we'll see if that works or not... Don't worry...

Okay

This doesn't seem to create a form buddy?

Can you try this once again for me please? Syntax for issue forms - GitHub Docs

This doesn't seem to create a form buddy?

Ya, because It is a md file.
I checked for pr template of repo, all of them are similar to this.

Can you try this once again for me please? Syntax for issue forms - GitHub Docs

Ok wait, I will

Can you try this once again for me please? Syntax for issue forms - GitHub Docs

😑