Connecting to the sum up reader Air (AIRE000)

Hello,
Is it possible to connect to the new Air reader?
When we try to connect to a reader, it always looks for the pin+ devices, but we would like to use the new model. Any advice?
Thanks

Hi asa47,
Please find our SDK version in Beta, including AIR support here.
Let us know how this works for you, any feedback would be much appreciated.
Best regards
Konrad

Hello, I tested the new beta SDK, and we managed to connect with the sumUp reader Air. Thanks!
Additionally I would like to know if you could add additional features to the current SDK.

Currently once the payment screen appear (checkout page), there is no way to cancel/close the page, we have to manually insert a card and cancel, or wait for the timeout function. Could you add a button to allow the user to close the page?

The SumUp reader seem to be a bit slow, would it be possible to update the firmware of the device?

Would it be possible to hide the send receipt features?

Please let me know, and thanks again for the support! :)

@asa47
Hi there.

early on in the checkout process there should be a cancel button top left. As soon as the transaction is in progress cancellation is handled by the reader only. Once you've read a card and don't want to proceed you should be able to tap the red x on the reader and cancel the transactions. There are scenarios where cancellation is not straight forward and we'll try to resolve these in upcoming versions.

Transaction speed depends on a whole lot of different factors. Network latency being one of them. You can try to re-run the reader setup and see if there's a firmware update available.

This will be configurable in an upcoming SDK version. If you happen to have more specific requirements feel free to get in touch at<EMAIL_ADDRESS>


Timestamp issue

When running api_demo, I get an error on the following line (line 39):
print(client.account_orders(account_hash, datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=30), datetime.datetime.now(datetime.timezone.utc)).json())
I get the error message that fromEnteredTime, toEnteredTime, and maxResults fields are missing.
When changing the line to the following:
print(client.account_orders(account_hash, maxResults=3000, fromEnteredTime=datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=30), toEnteredTime=datetime.datetime.now(datetime.timezone.utc)).json())
That error goes away but a new:
{'message': "'2024-10-08T16:30:31.469502+00Z' is not a valid value for fromEnteredTime"}
The following line (line):
print(client.account_orders_all(datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=30),
datetime.datetime.now(datetime.timezone.utc)).json())
I get the error message that fromEnteredTime, toEnteredTime, and maxResults fields are missing.
When changing it to
print(client.account_orders_all(maxResults=3000, fromEnteredTime=datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=30), toEnteredTime=datetime.datetime.now(datetime.timezone.utc)).json())
That error goes away but a new message comes back:
{'message': "'2024-10-08T16:38:56.530628+00Z' is not a valid value for fromEnteredTime"}
and line 90
print(client.transactions(account_hash, datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=30),
datetime.datetime.now(datetime.timezone.utc), "TRADE").json())
A similar error is printed
{'message': "'2024-10-08T16:38:59.825833+00Z' is not a valid value for startDate"}
I did open a PR to fix this issue.

What python version are you on?
When I run this code here on Python 3.12 , 3.11, or 3.8  it works:
import datetime

dt = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=30)

print(f"{dt.isoformat().split('+')[0][:-3]}Z")
print(dt.strftime("%Y-%m-%dT%H:%M:%S.000Z"))

dt = datetime.datetime.now(datetime.timezone.utc)

print(f"{dt.isoformat().split('+')[0][:-3]}Z")
print(dt.strftime("%Y-%m-%dT%H:%M:%S.000Z"))

Then I get this output:
2024-10-08T21:26:28.262Z 2024-10-08T21:26:28.000Z 2024-11-07T21:26:28.262Z 2024-11-07T21:26:28.000Z
Your fix removes accuracy from the datetime, the correct format is already in place.
For whatever reason yours is not spliting at the + sign and grabbing the first index.
Additionally the parameter maxResults is not a required parameter and it defaults to 3000 if not sent.
It is possible that you are using an old version of the code where this was fixed in a later patch.

AH okay , that makes sense, I will check and let you know.
On Thu, Nov 7, 2024 at 3:33 PM Tyler Bowers @.***>
wrote:

What python version are you on?
When I run this code here on Python 3.12 , 3.11, or 3.8 it works:
import datetime
dt = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=30)
print(f"{dt.isoformat().split('+')[0][:-3]}Z")print(dt.strftime("%Y-%m-%dT%H:%M:%S.000Z"))
dt = datetime.datetime.now(datetime.timezone.utc)
print(f"{dt.isoformat().split('+')[0][:-3]}Z")print(dt.strftime("%Y-%m-%dT%H:%M:%S.000Z"))
Then I get this output:
2024-10-08T21:26:28.262Z 2024-10-08T21:26:28.000Z 2024-11-07T21:26:28.262Z
2024-11-07T21:26:28.000Z
Your fix removes accuracy from the datetime, the correct format is already
in place.
For whatever reason yours is not spliting at the + sign and grabbing the
first index.
Additionally the parameter maxResults is not a required parameter and it
defaults to 3000 if not sent.
It is possible that you are using an old version of the code where this
was fixed in a later patch.
—
Reply to this email directly, view it on GitHub
https://github.com/tylerebowers/Schwab-API-Python/issues/35#issuecomment-2463263123,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG6QAHJ4TZWQSOSICOWHSRDZ7PMCJAVCNFSM6AAAAABRLVJJQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRTGI3DGMJSGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

turns out i am on an old version 3.9 , apologies about that. i have tried
I did update and try 3.13 , 3.12 , 3.11 , and am getting the following
error , probably user error , but wanted to let you know
\tokens.py", line 171, in update_tokens
rt_delta = self._refresh_token_timeout -
(datetime.datetime.now(datetime.timezone.utc) -
self._refresh_token_issued).total_seconds()
TypeError: can't subtract offset-naive and offset-aware datetimes

On Fri, Nov 8, 2024 at 10:26 AM Adam Furrer<EMAIL_ADDRESS>wrote:

> AH okay , that makes sense, I will check and let you know.
>
> On Thu, Nov 7, 2024 at 3:33 PM Tyler Bowers<EMAIL_ADDRESS>> wrote:
>
>> What python version are you on?
>>
>> When I run this code here on Python 3.12 , 3.11, or 3.8 it works:
>>
>> import datetime
>> dt = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=30)
>> print(f"{dt.isoformat().split('+')[0][:-3]}Z")print(dt.strftime("%Y-%m-%dT%H:%M:%S.000Z"))
>> dt = datetime.datetime.now(datetime.timezone.utc)
>> print(f"{dt.isoformat().split('+')[0][:-3]}Z")print(dt.strftime("%Y-%m-%dT%H:%M:%S.000Z"))
>>
>> Then I get this output:
>> 2024-10-08T21:26:28.262Z 2024-10-08T21:26:28.000Z
>> 2024-11-07T21:26:28.262Z 2024-11-07T21:26:28.000Z
>>
>> Your fix removes accuracy from the datetime, the correct format is
>> already in place.
>> For whatever reason yours is not spliting at the + sign and grabbing the
>> first index.
>> Additionally the parameter maxResults is not a required parameter and it
>> defaults to 3000 if not sent.
>>
>> It is possible that you are using an old version of the code where this
>> was fixed in a later patch.
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <https://github.com/tylerebowers/Schwab-API-Python/issues/35#issuecomment-2463263123>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AG6QAHJ4TZWQSOSICOWHSRDZ7PMCJAVCNFSM6AAAAABRLVJJQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRTGI3DGMJSGM>
>> .
>> You are receiving this because you authored the thread.Message ID:
>><EMAIL_ADDRESS>>>
>

Update Schwabdev package first pip install schwabdev --upgrade
And then delete the tokens.json file. I changed to a new format midway through.

That did it , thanks!
On Fri, Nov 8, 2024 at 11:37 AM Tyler Bowers @.***>
wrote:

Update Schwabdev package first pip install schwabdev --upgrade
And then delete the tokens.json file. I changed to a new format midway
through.
—
Reply to this email directly, view it on GitHub
https://github.com/tylerebowers/Schwab-API-Python/issues/35#issuecomment-2465404558,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG6QAHJPYGUNADYNL4GOBX3Z7TZGPAVCNFSM6AAAAABRLVJJQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRVGQYDINJVHA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Bug: renaming of multiple images appends suffix the wrong way

Given this setting:

Current result when pasting 4 images:
![[Lorem Ipsum_image.webp]]
![[Lorem Ipsum_image-1.webp]]
![[Lorem Ipsum_image-1-2.webp]]
![[Lorem Ipsum_image-1-2-3.webp]]

expected result:
![[Lorem Ipsum_image-1.webp]]
![[Lorem Ipsum_image-2.webp]]
![[Lorem Ipsum_image-3.webp]]
![[Lorem Ipsum_image-4.webp]]

1.2.2 should handle it now as expected.
Thanks for reporting ❤

Thanks for the quick fix!


PHP Debugger not working

Issue Type
Bug
Description

Open a PHP file.
Add breakpoint
Run debugger

Expected results
Debugger stops at breakpoint.
Additional info
My OS has Insiders and stable, stable works perfectly, I've tried to re-install Insiders and it didn't work, I've tried to re-install the extension, it didn't work either, has been about two weeks since the last time debugger worked in Insiders.


Add -no-color flag to readme cmds

I hate to admit it but not having the -no-color flag has caught me out a couple of times.

@eversC agree.... any chance you can update https://github.com/cloudposse/tfmask/blob/master/README.yaml instead? =)

Just one thing... The README.md is generated from the README.yaml. Make all your changes to the README.yaml, then rebuild.
Please rebuild the README.md by running the following commands:
make init
make readme

There might be a lot of changes in the README.md as a result. That's okay!
Sorry for the inconvenience!

Nice, I wasn't aware of the build_harness! Had me stumped for a while as I didn't have gomplate on my path

Hrmm... it should install it automatically if it's not discovered (as packages/install/gomplate is a dependency). You're not the first to say it, just I can't reproduce it! =)


Tag stable version

Would you mind tagging a stable version? Homebrew's been running into some trouble with Ninja since changes can break our build formula, e.g. the recent move to a Python bootstrap. See https://github.com/mxcl/homebrew/pull/9309

I've been considering making a release, but I don't have the time to maintain multiple branches so it's unlikely that making a release is significantly different than you picking a revision and just sticking to that.
What do you think?

Could you suggest a stable revision to use? I'm not overly familiar with ninja.

Hm, that's a good point. I suppose the best way to mark a revision as a good one is to... make a release. :)
I'll look into doing that.
For now, if trunk works, just pin it at that: the top commit off of https://github.com/martine/ninja/commits/master .


Review load validation report function's implementation

Description
This issue is addressing  #340 comment  related to function _load_validation_report.
Tasks:

[ ] Optimize query. The suggested solution is to filter the query  by dataset_id, avoiding loading all validation reports
[ ] Review  load_validation_report implementation and make sure that API returns a validation report with totals set to zeros if a report exists with no notices and is null when there is no report.

Tasks:

[ ] Review/enhance the current validation report loading function
[ ] Add validation report's test data for local use
[ ] Add integration and unit tests


(sub)separator value mathing against lists

(This is a feature request to improve the configurability of this otherwise very flexible project)
It would be very nice if both the 'separator' and the 'subseparator' keys' 'left' and 'right'  values in g:lightline would match againt lists instead of single values.
Eg.
let g:ligthline = {
    \ 'active': {
    \     'left': [
    \         ['mode', 'paste'],
    \         ['relativepath', 'modified']
    \         ]
    \     },
    \ 'subseparator': {
    \     'left': ['>', '']
    \     }
    \ }

This would put '>' between 'mode' and 'paste', but nothing between 'relativepath' and 'modified'

I don't think it is such useful and I'm afraid it is not worth implementing at the sacrifice of performance regression checking the type of subseparator, due to a function most of people would not use.  Keep up the good work, lightline is more than awesome ;)

Thanks.


Linker command failed error when trying to build

I keep getting this error when following your tutorial or using rnpm.
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_Mixpanel", referenced from:
      objc-class-ref in libRNMixpanel.a(RNMixpanel.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

You need to link the mixpanel into your application's binary
Follow the instructions at https://mixpanel.com/help/reference/ios or https://blog.mixpanel.com/2014/09/30/integrating-the-mixpanel-ios-sdk-without-cocoapods/

Can you explain more what this means?

I am guessing you are referring to this missing libMixpanel.a right? But where do I get that?!
https://i.imgur.com/hzBWwc6.png

I'm getting same issue

For future people coming here. react-native link added libRNMixpanel-tvOS.a as well. I removed it from the Build Phase / Link binary with libraries, and the build was successful :) (I don't have a tvOS target, could be why?)


PASS: check-xxber.sh
============================================================================
Testsuite summary for asn1c 0.9.29
============================================================================
# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
Making check in asn1c
. . . . .
make[2]: `libasn1cskeletons.la' is up to date.
make[2]: `libasn1cskeletons_c89.la' is up to date.
Making check in tests
Making check in tests-asn1c-compiler
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-parsing.sh
make[3]: Nothing to be done for `check-parsing.sh'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
FAIL: check-parsing.sh
============================================================================
Testsuite summary for asn1c 0.9.29
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/tests-asn1c-compiler/test-suite.log
Please report to<EMAIL_ADDRESS>
Complete tests/tests-asn1c-compiler/test-suite.log is here:
test-suite.log.txt
@velichkov I have the same problem in my fork (that's how I discovered it ;). It would be great if we could find and fix this problem. Also, I can reproduce this problem reliably on all machines except one (can't figure what's different about it).

As the tests now pass, I think I can close this issue. Thanks!


DBZ-3522 Ensure that there is an active session on the replica set mongo clien…

https://issues.redhat.com/browse/DBZ-3522
…t before using clusterDescription and ServerDescriptions to determine primary node.

@ccollingwood ok, it seems there is an compatibility issue with MongoDB 3.2

@jpechane MongoUtilIT.testGetPrimaryAddress:34 » MongoClient Sessions are not supported. Looks simple enough of a fix, so I'll try to find some time to resolve the issue. Unfortunately it seems that getting a session was the easiest way to provoke the client into retrieving accurate clusterDescription information. Might have to resort to listing DBs or something similar.

@ccollingwood I am not sure it is really necessary to do anything complex. It is already EOLed so it would be enough - when this error happens for it just to resort to the old method. WDYT?

@jpechane I think it's necessary to fix this bc this issue is not simply restricted to 3.2 compatibility. Rather, it revolves around the issue of being session compatible. While 3.2 doesn't have sessions, and therein lies the problem with my original code, it's possible to configure 3.4+ with sessions turned off, thus creating the same issue for more recent versions of mongo.
Please see my latest code. Instead of creating a session, the code now invokes a function that forces the client to connect to mongo and wait for the results. The code simply requests an arbitrary database name and does nothing with it. Hopefully a relatively lightweight operation.

@ccollingwood Applied, thanks a lot!

You're welcome @jpechane . I hopefully can contribute again in the near future.


Create requirements.txt file

Generate a requirements.txt file listing all project dependencies for easy setup.

Thank's for mentioning. I have tried updating the requirements.txt file to include all necessary dependencies. Please check the latest version and let me know if there are any additional dependencies required.

Thanks for mentioning. I have tried updating the requirements.txt file to include all necessary dependencies. Please check the latest version and let me know if there are any additional dependencies required.


missing all spaces on page 1 (text selection)

Link to PDF file (or attach file here):
Configuration:

Web browser and its version: Chrome 51.0.2704.36 beta (64-bit)
Operating system and its version: Mac OS X El Capitan 10.11.3 (15D21)
PDF.js version: online viewer (May 10, 2016)
Is an extension:

Steps to reproduce the problem:

copy text from page 1
paste somewhere else: all words touch, without any space

What is the expected behavior? (add screenshot)
need to add spaces between words.
jansen_public_queries.pdf
What went wrong? (add screenshot)
no spaces were found between words.
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

I think there's a fix for this problem.
On the attached image rendering the first page of this PDF, you can notice that the bounding boxes of the text items seem wider than the last printed character, e.g. "g " of searching has an extra empty space after. It means that the widths are computed correctly (textMatrix is properly updated in the code), but it doesn't add a space when it should. And it should depending on the current value of charSpacing.
So in https://github.com/mozilla/pdf.js/blob/070f2d32ada10bd877bdfd6cae2a2179a20a9930/src/core/evaluator.js#L1334  after the line textChunk.str.push(glyphUnicode); we should see if the current charSpacing is greater than textChunk.spaceWidth * SPACE_FACTOR.
If so, we should add a space to the str array of characters, as follows:
if (charSpacing >= textChunk.spaceWidth * SPACE_FACTOR) {
textChunk.str.push(' ');
}
Laurent.

We have quite a lot of text layer spacing issues open now. Perhaps it's indeed time to revisit the SPACE_FACTOR constant handling.

PDF is shown as html page.Each sentence is a div , so when we copy a text  actually we copy divs and between each div and other  there is no space and that's why the past contain missing spaces.

Confirm the problem with spaces.
This is my sample pdf.
And no spaces in pdfjs viewer / renderer
Copy/paste like one big word.
Testpdfsandwich.pdf

Hey @timvandermeij any update on this, I am facing this issue too.

also search works incorrect with this issue

any improvements about it @timvandermeij
I have issues with hebrew

Encountering this with https://www.ncsc.gov.uk/files/NCSC advisory - CNI Supply Chain.pdf page 13
Firefox 71

the spaces appear to be there but aren't even selectable in the span section, hence it only selects the text

I have the same problem, spaces are missing in copied text pdf.js Firefox 75.0, Ubuntu 18.04. Copying works correctly with Evince on Ubuntu and Edge 44 on Windows 10. The document is produced by ABBYY Fine Reader.
http://klevas.mif.vu.lt/~valentas/pdf_js_spaces.pdf.

https://github.com/mozilla/pdf.js/blob/070f2d32ada10bd877bdfd6cae2a2179a20a9930/src/core/evaluator.js#L1247-L1248
By fixing someone replace all space character in chunk, so repair to
str: (normalizeWhitespace ? replaceWhitespace(bidiResult.str) + ' ' : bidiResult.str),
Actually, it work for me

But the chunk division is not proper. The complete word is placed into multiple span tags

Encountering this with https://www.ncsc.gov.uk/files/NCSC advisory - CNI Supply Chain.pdf page 13
Firefox 71

the spaces appear to be there but aren't even selectable in the span section, hence it only selects the text
Chrome's viewer has spaces, as expected

No even the chrome viewer is facing the issue

We are running into this problem using ABBYY, as reported elsewhere in this issue.
I have noticed the following difference when using PDF.js on a PDF that was OCRd by both ABBYY and Acrobat Pro:

I'm not sure what "composite" means but it seems related to font encoding, PDF.js ends up on different code paths when composite is true vs false. Does this suggest a possible workaround for using PDF.js on ABBYY OCR output? (I'm also asking ABBYY the same question.)

any update on this issue? Thanks :)

+1 would like to see a solution to this issue

+1 would like to see a solution to this issue

I think I understand the problem. The first line of text in the pdf is:
(Searchin)Tj 0.3328 Tc 4.204 0 Td (g)Tj 0 Tc 0.9438 0 Td (th)
The width of "Searchin" is exactly 4.204 so moving here (with Td) will put the "g" at the right place but because of the Tc a "space" is added after the "g".
The width of g+space is exactly 0.9438.
So I think we shouldn't add a charSpacing for the last char here to have the exact string size:
https://github.com/mozilla/pdf.js/blob/f45ba02fd3b8b4cf54cec21579873d12926b640f/src/core/evaluator.js#L2190.
And here I think the way to compute advance is not correct:
https://github.com/mozilla/pdf.js/blob/f45ba02fd3b8b4cf54cec21579873d12926b640f/src/core/evaluator.js#L2320
For example, because of Tc 4.204 we don't enter in the next if and we got a flush which is wrong.
So I think the advance should be computed: advance = args[0] - args[1] - textContentItem.lastAdvanceWidth to take into account the string we've before.
I tried this and ctrl+a+ctrl+c on the first page looks pretty good (except maybe an issue eol).
I need to test that everything is fine but it could be a fix.

I think I understand the problem. The first line of text in the pdf is:
(Searchin)Tj 0.3328 Tc 4.204 0 Td (g)Tj 0 Tc 0.9438 0 Td (th)
The width of "Searchin" is exactly 4.204 so moving here (with Td) will put the "g" at the right place but because of the Tc a "space" is added after the "g".
The width of g+space is exactly 0.9438.
So I think we shouldn't add a charSpacing for the last char here to have the exact string size:
https://github.com/mozilla/pdf.js/blob/f45ba02fd3b8b4cf54cec21579873d12926b640f/src/core/evaluator.js#L2190.
And here I think the way to compute advance is not correct:
https://github.com/mozilla/pdf.js/blob/f45ba02fd3b8b4cf54cec21579873d12926b640f/src/core/evaluator.js#L2320
For example, because of Tc 4.204 we don't enter in the next if and we got a flush which is wrong.
So I think the advance should be computed: advance = args[0] - args[1] - textContentItem.lastAdvanceWidth to take into account the string we've before.
I tried this and ctrl+a+ctrl+c on the first page looks pretty good (except maybe an issue eol).
I need to test that everything is fine but it could be a fix.

1- you need to normalize your css ,in my case I was using materialUI (mui) and this code worked as a charm :
 <ScopedCssBaseline>       {/* The div the print*/}       <div> ***** </div>     </ScopedCssBaseline>
2- make sure jspdf support the font family you are using, otherwise try to add the font to the jspdf call.


It doesn't work when the className string has line breaks.

description
It doesn't work when the className string has line breaks in strings and string templates.

Sorry for this match bug, please try v0.0.6


Create the directory mkdir jenkins cd jenkins ,vagrant box add bento/ubuntu16.04, vagrant init bento/ubuntu16.04

when run the command vagrant vagrant up .
getting the below message.
Bringing machine 'default' up with 'hyperv' provider...
==> default: Verifying Hyper-V is enabled...
==> default: Verifying Hyper-V is accessible...
An error occurred while executing a PowerShell script. This error
is shown below. Please read the error message and see if this is
a configuration error with your system. If it is not, then please
report a bug.
Script: check_hyperv_access.ps1
Error:
where : Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At C:\HashiCorp\Vagrant\embedded\gems\2.2.4\gems\vagrant-2.2.4\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1:721 char:32
$systemACL = $acl.Access | where {
~~~~~~~
CategoryInfo : NotSpecified: (:) [Where-Object], MethodInvocationException
FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand
is the above error ignorable or any corrections need to be done, i am working on windows 10 non home edition

Please check you vt is enabled
Please tell us how you creating then only we can resolve

i think image that we need to use was bento/ubuntu-16.04

when run the command vagrant vagrant up .
getting the below message.
Bringing machine 'default' up with 'hyperv' provider...
==> default: Verifying Hyper-V is enabled...
==> default: Verifying Hyper-V is accessible...
An error occurred while executing a PowerShell script. This error
is shown below. Please read the error message and see if this is
a configuration error with your system. If it is not, then please
report a bug.
Script: check_hyperv_access.ps1
Error:
where : Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
At C:\HashiCorp\Vagrant\embedded\gems\2.2.4\gems\vagrant-2.2.4\plugins\providers\hyperv\scripts\utils\VagrantVM\VagrantVM.psm1:721 char:32
$systemACL = $acl.Access | where {
CategoryInfo : NotSpecified: (:) [Where-Object], MethodInvocationException
FullyQualifiedErrorId : IdentityNotMappedException,Microsoft.PowerShell.Commands.WhereObjectCommand
is the above error ignorable or any corrections need to be done, i am working on windows 10 non home edition

once try  hyper-v box other than bento/ubuntu-16.04( like geniric ubuntu etc..)
because i faced some issue with hyper-v with box bento/ubuntu-16.04  then i tried another one its working.


English syntax suggestions

Thanks for the suggestions. This feels a bit stylistic rather than wrong to me, and so while I grateful for the suggestions I am not going to merge this request.


getSize method/callback support

Is your feature request related to a problem? Please describe.
I am currently using react-native Image component. In the project we are using Image.getSize method. This is being used to render images coming where we only have the url and not the width and height. We use this to get the current aspect ratio, we are using Image.getsize currently to appropriately render the image. This causes a content shift but that is a tradeoff we are ok with.
Describe the solution you'd like
A callback which triggers when we get the actual width and height of the image
Describe alternatives you've considered
I haven't't found this in any other library
Additional context
Add any other context or screenshots about the feature request here.

Thanks for raising this. According to the docs, does prefetch work? Currently, getSize() is not in high priority.


InMemoryRandomAccessMemory data is not right?

Describe the bug
I do not know where to report this but and I report it here.
I am working on get stream using StartRecordToStreamAsync and will read this to another stream. but the data is different.
means the data I get is different from the data I write to the another stream.
Steps to reproduce the bug
1.create new winUI3 project.
2.
await capture.InitializeAsync(new MediaCaptureInitializationSettings
{
    SourceGroup = sourceGroup,
    SharingMode = MediaCaptureSharingMode.SharedReadOnly,
        MemoryPreference = MediaCaptureMemoryPreference.Auto
});
RandomAccessStream ms = new InMemoryRandomAccessStream();
var profile = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.Auto);
await capture.StartRecordToStreamAsync(profile, ms);

3.read the ms and write to another stream.
private IRandomAccessStream ms1 = new InMemoryRandomAccessStream();
var buffer = new byte[4096];
var t = ms.CloneStream();
t.AsStreamForRead().Read(buffer, 0, buffer.Length);
ms1.AsStreamForWrite().Write(buffer, 0, bytesRead);

4.then read data from ms1 you will find that it is different from data in ms
Expected behavior
the two data in two stream is not different.
Screenshots
No response
NuGet package version
None
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 22H2 (19045, 2022 Update)
IDE
Visual Studio 2022
Additional context
for this problem(may be bug or not)
I tried that:
var stream1 = new InMemoryRandomAccessStream();
var stream0 = new InMemoryRandomAccessStream();
var buffer = new byte[510];
for (var i = 0; i < buffer.Length; i++)
{
    buffer[i] = (byte)i;
}
stream1.AsStreamForWrite().Write(buffer, 0, buffer.Length);
var buf = new byte[510];
stream1.AsStreamForRead().Read(buf, 0, buf.Length);
stream0.AsStreamForWrite().Write(buf, 0, buf.Length);
var buffer_ = new byte[510];
var buf_ = new byte[510];
stream1.AsStreamForRead().Read(buffer_, 0, buffer.Length);
stream0.AsStreamForRead().Read(buf_, 0, buf.Length);

the buffer_ is different from buf_

When a stream is written to, the position within the stream is incremented. When you then read from it, the read occurs from that position. If you replace all stream reads
stream1.AsStreamForRead().Read(buf, 0, buf.Length);

with
Stream stream = stream1.AsStreamForRead();
stream.Position = 0;
int bytesRead = stream.Read(buf, 0, buf.Length);

it will work as expected.

@DHancock  thank you for your answer.
but StartRecordToStreamAsync is writing data to the stream.
If I set the postion of the stream it can not write data. right?
you mean what I want to do can not came true?

I just implied you need to take the stream position into account when reading and writing.
I should also have mentioned that AsStreamForRead() and AsStreamForWrite() are not simple casts and may return completely diffrent stream objects from the original streams.

not simple casts and may return completely diffrent stream objects from the original streams.

why?
and If I use stream.CloneStream I get the wrong result too.

why?

To convert from a windows WinRt stream into a .Net managed stream.

and If I use stream.CloneStream I get the wrong result too.

Clones seem to work for me:
    // initialize stream "ms" with test media data
    var ms = new Windows.Storage.Streams.InMemoryRandomAccessStream();
    byte[] data = Enumerable.Range(0, 4096).Select(x => (byte)x).ToArray();
    await ms.WriteAsync(data.AsBuffer());

    // create ms1, it's stream position is reset to 0
    var ms1 = ms.CloneStream();

    // check ms and ms1 streams contain the same data
    var buffer = new byte[data.Length];
    ms1.AsStreamForRead().Read(buffer, 0, buffer.Length);
    Debug.Assert(Enumerable.SequenceEqual(data, buffer));

To use the extension method AsBuffer() you need to include:
using System.Runtime.InteropServices.WindowsRuntime;

you mean CloneStream will reset the position? I think I know why my data is not equal.
is there way to clone stream or read data with out change the position? or cast Stream to unmanaged code?
@DHancock

is there way to clone stream or read data with out change the position?

Not directly, but managing the position within any stream from your code is a very common task. For an InMemoryRandomAccessStream (or any stream that implements IRandomAccessStream) the Position property gets it and a call to Seek(position) method will set it.
For a managed System.IO.Stream the Position property is read/write.

or cast Stream to unmanaged code?

There isn't a cast as such, but another extension method will convert a managed stream into an suitable WinRt IRandomAccessStream i.e.
 mediaPlayer.SetStreamSource(stream.AsRandomAccessStream());

(the extension method is defined in the same place as AsBuffer())

but now what I want to do is to send the stream to socket.
let me explain
I will use StartRecordToStreamAsync to get the data to the stream. and send to socket.
but If I read the stream I will read the wrong data. because no matter cloneStream or GetStreamAt will reset the position and will rewrite the data.
@DHancock

I don't have any experience of MediaCapture or streaming media to sockets. I cannot help you. I don't think this is a bug with WindowsAppSdk, it may be better to close this issue and start a discussion instead where somebody may be able to help you.


class Generator is only used by behavior clone?

class Generator in line 533 of model.py is only used by behavior clone?

And how do get all of these pre-trained model params for fine-tuning?

And why you put the posterior predict as part of the TRPO reward? That is different from the original GAIL. In GAIL, the output_d is added to the reward with log. But here it is not.

class Generator in line 533 of model.py will be used by behavior_clone.py and drive.py
I have released one set of trained weights. Weights during the training process can be obtained using the released code & data.
Posterior prediction is the key to identify the latent structure, thus is needed as part of the reward. Here I used WGAN instead of regular GAN, thus output_d is added without log. Please refer to our paper for more details.

Thanks for your reply.
Then a quick question: there is a bias in the reward (2 every step). Is this what you call reward augmentation or just a bias? If this is the reward augmentation, should it be related to the collision condition?

Thanks, nice work!


🐛 Bug Report — workerd https fetch request failing

A fetch request to https://firestore.googleapis.com is failing when using<EMAIL_ADDRESS>in local mode,
It works fine in remote mode, failing locally with the following error:
workerd/jsg/util.c++:276: error: e = kj/compat/tls.c++:215: failed: TLS peer's certificate is not trusted; reason = unable to get local issuer certificate
stack: 7ff7139d8a6f 7ff713a1c9dd 0 0 0 0 0 0 0 0 0 0; sentryErrorContext = jsgInternalError

Turns out, this is a known issue being tracked in the workers-sdk repository.
https://github.com/cloudflare/workers-sdk/issues/3264
Sorry for the white noise!


remove 2.13 patches

Remove the repo/revision patches in the 2.13 examples to align with the rest of the clusters.

@carlmes Can you take a quick look at this when you have the chance?


Blank WinUI 3 App not working - wrong WinRT version

This issue has been moved from a ticket on Developer Community.

[severity:I'm unable to use this version]
I've just done a clean install, I believe I've got the latest 'everything'. But when I run a Blank WinUI app (Non-UWP) I get the following error:
This version of Project Reunion requires WinRT.Runtim.dll version 1.2 or greater.

Original Comments
Feedback Bot on 5/6/2021, 01:35 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Original Solutions
Gavin Williams solved on 5/5/2021, 11:08 PM, 0 votes:
Somebody on the UWP Community Discord helped me by suggesting…
update cswinrt
Which works, because it’s not even installed in the template even though it’s required.

Duplicate of #4894


Support for BBcode, emoticons, censorship, auto-link-parsing and quote-reply in forum-posts

hi there!
first of all: many thanks for your great forum-package! :)
i took the liberty of forking it and adding support for BBcode, emoticons, censorship, auto-link-parsing and quote-replies for forum-posts. everything is fully configurable via the settings.
i used the following external libraries for it:

the composer-package "mjohnson/decoda" to decode BBcode, emoticons, censorship and (email, and url-)links into HTML-code. it is simply required in the composer.json
WysiBB (JS as well as a CSS) for frontend-editing is directly included in the package. (it is under the MIT-license; see http://www.wysibb.com/getting-started/index.html#license).
emoticon-images from http://simplesmileys.org/ (these are released under public domain).

feel free to add the changes to your base fork, if you like them! i guess you'd have to include license information on the external libraries though (especially WysiBB).
also, don't hesitate to contact me, if you have any questions, comments or find any bugs in my code.
i'm also planning on adding a search-functionality as well as email-notifications. i'll also make a pull-request for those, when finished.
best wishes,
gerald

Hey,
Thanks for your contribution. This is some really good work.
However, I'll have to decline as I don't want to include these features in the main repo; none of them exist yet because it's designed to serve as a "clean slate" for developers wanting to integrate a forum solution in their apps. The rewrite goes some way towards realising that concept and making the package more of a framework for forum building, much like Laravel itself.
That said, I certainly don't want to discourage work like this and I do want to support it in some capacity. My suggestion would be to make it available in a new package that depends on laravel-forum - maybe even split the features up into individual packages. With the rewrite on the horizon, you might want to wait until that's stable since it already differs drastically from v2, but I'll leave that up to you based on your needs.
As an idea for the future, I might set up a list of laravel-forum "extensions" somewhere, be that in a new repo or somewhere on teamteatime.net (which is where the docs for the rewrite will ultimately be available).
Thanks again and I hope you understand :)

hi riari!
many thanks for your feedback! :)
of course it's no problem at all, if you don't want to merge the changes. i can fully understand, if you want to keep your package as basic as possible.
the suggestion regarding implementing additional features via seperate extension-packages sounds great. i'll wait, till you are finished with your rewrite, and then check on how i can add the features as an extension-package.
best wishes,
gerald


Can't bundle Helm OCI artifacts

What steps did you take:
I'd like to use imgpkg to ship helm charts by tar, when they are stored as OCI images.
Create a helm chart and push it to an OCI registry.
helm create foo
helm package foo
helm push .\foo-0.1.0.tgz oci://localhost:5000

Create a small bundle:
.imgpkg/bundle.yaml:
apiVersion: imgpkg.carvel.dev/v1alpha1
kind: Bundle
metadata:
  name: bar
authors:
- name: bar Team
  email<EMAIL_ADDRESS>websites:
- url: carvel.dev/imgpkg

File: helm-charts.yaml
helm-charts:
  - image: localhost:5000/foo:0.1.0

Create imgpkg lock using kbld:
kbld -f . --imgpkg-lock-output .imgpkg/images.yml

Image SHA is correctly resolved, everything fine until here.
Push and copy imgpkg bundle
imgpkg push -b localhost:5000/foo/bar:v0.0.1 -f .
imgpkg copy -b localhost:5000/foo/bar:v0.0.1 --to-tar ./bundle.tar

What happened:
I get the following error from imgpkg copy:
imgpkg copy -b localhost:5000/foo/bar:v0.0.1 --to-tar ./bundle.tar
copy | exporting 2 images...
copy | will export localhost:5000/foo/bar@sha256:ffa285af42d1011a89b4f719bc40acf76cb4be429592da7930249edbbe62ac20
copy | will export localhost:5000/foo@sha256:eb26401bbf547fd928f3ccdcda031c3aa99dda7198904a0be983abb5701d5647
copy | exported 2 images

imgpkg: Error: Collecting packaging metadata: mismatched fs layers (1) and diff ids (0)

What did you expect:
Bundle with Helm OCI image included.
Environment:

imgpkg version (use imgpkg --version): 0.34.1
Docker registry used (e.g. Docker HUB): https://hub.docker.com/_/registry
OS (e.g. from /etc/os-release): Ubuntu 22.04.1 LTS (but in WSL)

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

Hey @nbrns thanks for creating this issue.
I started to look into this issue and in fact imgpkg does work well with images that which the configuration is not equal to the OCI spec. In the case of Helm images, their configuration has the MediaType application/vnd.cncf.helm.config.v1+json and the configuration does not have any reference to the required field in the OCI spec called RootFS, which is used to calculate the diff ids. This is what is causing the issue.
Going to accept this bug, unfortunately, I am not 100% when the maintainers will have some time to pick this issue up. Can you tell us how impactful is this for you to see if we can bump the priority of this issue up? We are also happy to review PRs that might fix this issue.
Also some information for anyone that is interested in doing a PR to fix this issue.

The error is bubbling up in this line
Possible solution is to make sure we only retrieve the DiffIDS if the config of the image is OCI (application/vnd.oci.image.config.v1+json) or Docker (application/vnd.docker.container.image.v1+json). But in this case we should make sure that there is no unexpected impacts when we do not calculate and provide the diff ids

I just hit this issue as well. My use case is that I want to package and ship my k8s app as a single bundle. My app is composed of multiple helm charts and container images, all of them published in OCI registry.


icSideNavigation zIndex

Summary of the bug
Tell us, in a few words, what the problem is.
🪜 How to reproduce
Tell us the steps to reproduce the problem:

Have a page with IcSideNavigation and some MUI components (chips or data tables work) in the main content
Zoom in so that the icSideNavigation drawer overlays over the content
You will now see the MUI items appear above the drawer

🧐 Expected behaviour
All content is behind the expanded drawer
📸 Screenshots or code
If you can, add screenshots to show the problem. If you need to show a code example, you can include a snippet or link to a repository with an example.

🖥 Desktop

OS: Windows & Mac
Browser: Chrome
Version: 2.1.0-beta.0

Having looked at the code, I think the solution may be potentially giving the side-nav the same css variable as the ic-classification-banner (--ic-z-index-overlay)?.
It would also be useful if in the documentation somewhere the z-index of different components was defined and explained. An example of what this could look like and explain from MUI: https://mui.com/material-ui/customization/z-index/

Having looked at the code, I think the solution may be potentially giving the side-nav the same css variable as the ic-classification-banner (--ic-z-index-overlay)?.
It would also be useful if in the documentation somewhere the z-index of different components were defined and explained. An example of what this could look like and explain from MUI: https://mui.com/material-ui/customization/z-index/

Ticket created: https://github.com/mi6/ic-design-system/issues/313


Docker container for teos

Adds docker building for teos.
Instructions of how to run it can be found on the README.
Currently, I'm having issues trying to connect to teos from the host machine in OSX. Not sure if it's a local issue. The RPC and ZMQ connections from teos to the local node work though.

I'll take it from here!

Some testing would be appreciated if you have time (@aljazceru @yahgwai @bigspider @orbitalturtle):

Build from the Docker file
Create a block in regtest and check that the towers gets it
Try to send a request to the tower from outside the container (this one is currently not working for me)

Notice that the system build on mainnet by default, so you'll need to pass the proper ENV variables to change that. Feel free to ping me about it if you hit a wall.

It'll be also nice if you can also give it a try @stonecoldpat, since you have a Mac. That would help me figure out if the connection issue is local or not.

Fixed the issue w/ Docker on Mac regarding sending requests to the container.

Worked for me :+1:

Worked for me 👍
Only drawback compared to the instructions is that I had to not only specify that the network is "regtest", but also the port, despite it being the default one; one would expect that it defaults to the default port for that network, perhaps.

Should be fixed by the last set of commits.

@nicolasdorier new btcpayserver additional fragment? :)


Added pytables feartures

works now also for HDF5Tables and not only HDF5Matrix

Added a Tables feature to the h5py

Please explain the use case.

Hello fchollet,
h5py and tables are very similar but have couple of differences between. The main reason in my case was compressing a very sparse database.
source: http://www.pytables.org/FAQ.html#how-does-pytables-compare-with-the-h5py-project:
_Well, they are similar in that both packages are Python interfaces to the HDF5 [1] library, but there are some important differences to be noted. h5py [16] is an attempt to map the HDF5 [1] feature set to NumPy [3] as closely as possible. In addition, it also provides access to nearly all of the HDF5 [1] C API.
Instead, PyTables builds up an additional abstraction layer on top of HDF5 [1] and NumPy [3] where it implements things like an enhanced type system, an engine for enabling complex queries, an efficient computational kernel [17], advanced indexing capabilities [18] or an undo/redo feature, to name just a few. This additional layer also allows PyTables to be relatively independent of its underlying libraries (and their possible limitations). For example, PyTables can support HDF5 [1] data types like enumerated or time that are available in the HDF5 [1] library but not in the NumPy [3] package; or even perform powerful complex queries that are not implemented directly in neither HDF5 [1] nor NumPy [3].
Furthermore, PyTables also tries hard to be a high performance interface to HDF5/NumPy, implementing niceties like internal LRU caches for nodes and other data and metadata, automatic computation of optimal chunk sizes for the datasets, a variety of compressors, ranging from slow but efficient (bzip2 [19]) to extremely fast ones (Blosc [20]) in addition to the standard zlib [21]. Another difference is that PyTables makes use of numexpr [22] so as to accelerate internal computations (for example, in evaluating complex queries) to a maximum.
For contrasting with other opinions, you may want to check the PyTables/h5py comparison in a similar entry of the FAQ of h5py [23]._


Users/arjgupta/ps on target machine

Are variables not supported in the remote machine username and password fields ? For some reason using the format $(variablename) for username and password field seems not working

It would be a security concern to leave credentials in plain text.

Hi @vmaruhpe , no they are supported. Are you specifying the variables correctly ? And check if the username password are correct.

Hi Arjun, thanks for reaching out. Yes, just like variables in parameters, I use the format $(variable). It works fine when I use variables in parameters. I will try again and confirm.
Thanks,
Maruthi
From: Arjun Gupta<EMAIL_ADDRESS>Sent: Tuesday, February 19, 2019 12:30 AM
To: Microsoft/azure-pipelines-tasks<EMAIL_ADDRESS>Cc: Tumuluri, Venkata Maruthi<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Microsoft/azure-pipelines-tasks] Users/arjgupta/ps on target machine (#6789)
Hi @vmaruhpehttps://github.com/vmaruhpe , no they are supported. Are you specifying the variables correctly ? And check if the username password are correct.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/azure-pipelines-tasks/pull/6789#issuecomment-465035718, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ah5e8q8ZsZkT3MKgX2RNzU9K5P-P6X6Oks5vO7YcgaJpZM4S5nTq.


Service annotations missing, so not possible to use prometheus autodiscovery

As far as I understand, it's not possible to set e.g. prometheus.io/port and prometheus.io/scrape on the Service annotations currently, and prometheus autodiscovery would look for those. It's possible to set on the pod, but this is not ideal since it could cause metrics to be duplicated momentarily if two copies coexist, and since the pod port is not directly configurable as well, and could change in the future

Would you like to open a pull-request?

@danihodovic Sure! https://github.com/danihodovic/celery-exporter/pull/338


https://www.youtube.com/shorts/pQ_H_tcYGqs

view ples

This video has no comments. what is the issue?


Also render views

As it says in the title!

I imagine this one may be (slightly) more involved. Happy to take a look as time allows...

Ok, it might be as simple as passing views=True to MetaData.reflect:
https://github.com/endremborza/sqlmermaid/blob/8d099fcbd7ab11bda560c4207f0ec3c5fdeef460/sqlmermaid.py#L20

I'm actually passing in the metadata directly so that's on me to ensure the views are reflected.
If you pass in a connection string it might be nice to have the option to also render views.

my only possible issue with this is that I don't know what version of sqlalchemy the views kwarg was added to reflect, but apparently it has been there since at least before 1.0 so this should be fine.
I can add it directly or you can open a new PR if you'd like, I'll release this with the quite change as soon as it is done

Feel free to add this yourself as I might not get to it for a bit...

0.1.4 released with this

Awesome, thanks @endremborza! Sorry I didn't get around to it myself.
I really appreciate this library and think it'll be super handy with the new Mermaid support in JupyterLab


Update base64 decoding for Pharo 7

method mimeDecodeToBytes: is deprecated in Pharo7, used on line:
Base64MimeConverter mimeDecodeToBytes: self {1}Contents readStream
It should be changed to:
self {1}Contents base64Decoded readStream

Fixed in v2.2.0


"Pod not found" when using kubectl port-forward for dashboard access

I created a forum post, but also asking on here if someone has an idea what's going on. I will share the solution in both places if I am able to solve this.
:thinking: Issue description

I am attempting to use kubectl port-forward to access the Traefik dashboard
It says the pod doesnt exist, even though that name does

Command I am using
kubectl port-forward $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name -n traefik) 9000:9000

Error I am getting
Error from server (NotFound): pods "traefik-796d5fd8b9-rwxcd" not found

Screenshot showing the pod exists in the first command, but still getting an error

:earth_americas: Environment
Software versions

K3s Version: v1.20.4+k3s1
Traefik: v2 (installed via Helm)

Configurations

dashboard.yml (taken from Github)
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: dashboard
spec:
  entryPoints:
    - web
  routes:
    - match: Host(`traefik.localhost`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))
      kind: Rule
      services:
        - name: api@internal
          kind: TraefikService

helm-values.yml
#
# Advanced K8s settings
#
rbac:
  enabled: true
tolerations:
  - key: "CriticalAddonsOnly"
    operator: "Exists"
  - key: "node-role.kubernetes.io/master"
    operator: "Exists"
    effect: "NoSchedule"

#
# Configure providers
#
providers:
  kubernetesIngress:
    publishedService:
      enabled: true
#
# Create an IngressRoute for the dashboard
#
ingressRoute:
  dashboard:
    enabled: true
# #
# # Redirect to HTTPs
# #
# ports:
#   web:
#     redirectTo: websecure

# #
# # Options for the main traefik service, where the entrypoints traffic comes
# # from.
# service:
#   type: NodePort

# Configure ports
ports:
  # The name of this one can't be changed as it is used for the readiness and
  # liveness probes, but you can adjust its config to your liking
  traefik:
    port: 9000
    # Use hostPort if set.
    # hostPort: 9000
    #
    # Use hostIP if set. If not set, Kubernetes will default to <IP_ADDRESS>, which
    # means it's listening on all your interfaces and all your IPs. You may want
    # to set this value if you need traefik to listen on specific interface
    # only.
    # hostIP: <IP_ADDRESS>

    # Defines whether the port is exposed if service.type is LoadBalancer or
    # NodePort.
    #
    # You SHOULD NOT expose the traefik port on production deployments.
    # If you want to access it from outside of your cluster,
    # use `kubectl port-forward` or create a secure ingress
    expose: false
    # The exposed port for this service
    exposedPort: 9000
    # The port protocol (TCP/UDP)
    protocol: TCP
  web:
    port: 8000
    # hostPort: 8000
    expose: true
    exposedPort: 80
    # The port protocol (TCP/UDP)
    protocol: TCP
    # Use nodeport if set. This is useful if you have configured Traefik in a
    # LoadBalancer
    # nodePort: 32080
    # Port Redirections
    # Added in 2.2, you can make permanent redirects via entrypoints.
    # https://docs.traefik.io/routing/entrypoints/#redirection
    # redirectTo: websecure
  websecure:
    port: 8443
    # hostPort: 8443
    expose: true
    exposedPort: 443
    # The port protocol (TCP/UDP)
    protocol: TCP
    # nodePort: 32443
    # Set TLS at the entrypoint
    # https://doc.traefik.io/traefik/routing/entrypoints/#tls
    tls:
      enabled: true
      # this is the name of a TLSOption definition
      options: ""
      certResolver: ""
      domains: []
      # - main: example.com
      #   sans:
      #     - foo.example.com
      #     - bar.example.com

#
# Things that I felt more comfortable setting via the CLI
#
additionalArguments:
  -<EMAIL_ADDRESS>  - "--certificatesresolvers.letsencrypt.acme.storage=/data/acme.json"
  - "--certificatesresolvers.letsencrypt.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
  - "--api.insecure=true"
  - "--accesslog=true"
  - "--log.level=ERROR"

:sparkles: Additional details
Here is the output of kubectl get all --all-namespaces:

🙌 Thank you for your help!
If there is anything else that you would like to see, just let me know! Thanks!!!

Doesn't your port forward also need to reference the namespace?
kubectl port-forward -n traefik  $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name -n traefik) 9000:9000

You rock! Thanks so much!!!


errors after react-native link command

Following issue occurs after react-native link is executed
rnpm-install info Linking assets to ios project
rnpm-install ERR! Something went wrong while linking. Error: Cannot read property 'pbxprojPath' of null
Please file an issue here: https://github.com/facebook/react-native/issues

Cannot read property 'pbxprojPath' of null

TypeError: Cannot read property 'pbxprojPath' of null
    at Object.linkAssetsIOS [as copyAssets] (/Users/susmit/Desktop/MyMoneyApp/node_modules/react-native/local-cli/link/ios/copyAssets.js:24:47)
    at Object.keys.forEach.platform (/Users/susmit/Desktop/MyMoneyApp/node_modules/react-native/local-cli/link/link.js:104:16)
    at Array.forEach (<anonymous>)
    at linkAssets (/Users/susmit/Desktop/MyMoneyApp/node_modules/react-native/local-cli/link/link.js:94:32)
    at tasks.push (/Users/susmit/Desktop/MyMoneyApp/node_modules/react-native/local-cli/link/link.js:171:20)

sudo react-native upgrade will resolve the issue


Errors when setting noccb = 0

Hi,
When I set the number of spin down electrons noccb = 0, I'm encountering errors associated with arrays having zero-length along certain dimensions. This error occurs in the method trial_wavefunction.single_det.SingleDet.calculate_energy. I attach the python script run_afqmc_error.py which constructs the Hamiltonian and trial wave function using 1-body and 2-body integrals, MO coefficients, and Choleskies obtained from a previous HF calculation (HDF5 file too large to upload; can send in some other way?). I also attach the output from stderr and stdout. The develop branch was used.
There might be an error also due to noccb = 0 associated with undefined variables in estimators.utils.gab_spin.
error.zip

Thanks for raising this. I have a feeling everything worked for fully spin-polarised systems at some point in the past so I imagine it's a small fix.

Sure, I can take a look--thanks!
On Thu, Jun 1, 2023 at 1:11 PM Fionn Malone @.***>
wrote:

I won't have time to look for maybe a day or so, I think it shouldn't be
too hard to fix if you want to have a look.
—
Reply to this email directly, view it on GitHub
https://github.com/linusjoonho/ipie/issues/234#issuecomment-1572458805,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7AF4ZKQNCPL7K43D4ZZP3XJDEKVANCNFSM6AAAAAAYWHVBXY
.
You are receiving this because you authored the thread.Message ID:
@.***>

In particular, I think the main problem is with gab_spin. I think bypassing the green's function call and returning zero arrays with one of the dimensions as size zero then everything might work?

Just an update: I made some minor changes here to mitigate the errors. However, I'm now encountering errors associated with MPI:
energy = [-0.22051544+1.41330648e-18j -0.09321428+1.36815212e-18j
 -0.12730116+4.51543597e-20j]
# random seed is 59306159
# WARNING: skipping trial energy calculation is requested.
# Available memory on the node is 8.000 GB
            Block                   Weight            WeightFactor            HybridEnergy                  ENumer                  EDenom                  ETotal                  E1Body                  E2Body
                0   6.4000000000000000e+02  6.4000000000000000e+02  0.0000000000000000e+00 -1.4112988395608110e+02  6.4000000000000000e+02 -2.2051544368137674e-01 -9.3214281868849627e-02 -1.2730116181252707e-01
Traceback (most recent call last):
  File "/Users/shufay/Documents/in_prep/moire/ginsburg/ipie/run_afqmc.py", line 167, in <module>
    afqmc.run(comm=comm)
  File "/Users/shufay/Documents/ipie/ipie/qmc/afqmc.py", line 323, in run
    self.pcontrol.pop_control(self.walkers, comm)
  File "/Users/shufay/Documents/ipie/ipie/walkers/pop_controller.py", line 115, in pop_control
    pair_branch(walkers, comm, self.max_weight, self.min_weight, self.timer)
  File "/Users/shufay/Documents/ipie/ipie/walkers/pop_controller.py", line 329, in pair_branch
    comm.Gather(
  File "mpi4py/MPI/Comm.pyx", line 706, in mpi4py.MPI.Comm.Gather
mpi4py.MPI.Exception: MPI_ERR_TRUNCATE: message truncated

It's unclear to me at the moment if this is associated with arrays of size-zero along certain dimensions. I also added new test files here. To run,
python run_afqmc.py ints_ghf_nu=0.333333_V0=0.00055124_eps=7_nelec=3_rs=142.636_ecut=0.0012_nbsf=37_tri_2d.h5

Looks like @ankit76 found the additional issue here


[openssl] respect build configuration when building for unix

Is your feature request related to a problem? Please describe.
The port ignores custom flags specified in CMAKE_C_FLAGS_DEBUG and CMAKE_C_FLAGS_RELEASE.
Proposed solution
Teach ports/openssl/unix/CMakeLists.txt to pass the contents of CMAKE_C_FLAGS_$CONFIG to Configure:
string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILD_TYPE)
set(CFLAGS "${CFLAGS} ${CMAKE_C_FLAGS_${BUILD_TYPE}}")

Describe alternatives you've considered
Leave things as they are, and use Configure's defaults. However, I believe not passing configuration-dependent cflags is a bug of the port.
Additional context
I'll be happy to submit a pull request myself if the proposed change is acceptable.

@fealebenpae Thanks for posting this issue, It is true that not passing the correct parameters can cause a port bug. We are very happy for users to submit a pull request to solve the problems. :)


Vulnerability

I find it a bit weird im saying this on this repo of all places, but there's a vulnerability in this stemming from the way I handled the toJson method [](https://twitter.com/1lexxi/status/1582631132176461824#m)
I have acess to github rn but not a cli meaning I can't fully fix it rn but I felt it was worth noting it here just so yall would know

fixed in #3

My hubris has caught up to me


[EPIC] Improve usage for spot-price functionality as a module

Beyond using directly mapt as a provisioning tool, it can be used as module to expose the spot-price logic, being used in that way another existing pieces of code can benefit of the logic.

[x] #281
[ ] Review how to setup credentials to invoke the functions
[ ] Review types/func coding
[ ] Expose func as cli operation?

This is related to https://github.com/redhat-developer/mapt/issues/222 you can make use of it to get similar types once you get a type which matches the expectations.
If it does not apply just close as we will use this module instead.

This is related to #222 you can make use of it to get similar types once you get a type which matches the expectations.
If it does not apply just close as we will use this module instead.

i did not explore this, (difficulity trying out resource manager graph queries) so currently using the Azure SDK to fetch all the VM SKUS and then filter based on its capabilities to find out the desired machine. (https://learn.microsoft.com/en-us/rest/api/compute/resource-skus/list?view=rest-compute-2024-07-01&tabs=Go#lists-all-available-resource-skus)
but this needs the families of VMs that offer nested virtualization, as from the SKU capabilities there's no field which mentions about nested virt support

Closed by #284


multi label

Hello,
I appreciate your work... I would like to upgrade it from binary labels to multi labels.
class CelebaDataset(Dataset):
    """Custom Dataset for loading CelebA face images"""

    def __init__(self, csv_path, img_dir, transform=None):

        df = pd.read_csv(csv_path, index_col=0)
        self.img_dir = img_dir
        self.csv_path = csv_path
        self.img_names = df.index.values
        self.y = df['Male'].values # <-- this needs to be changed  with other labels...
        self.transform = transform

What to do if I want to change it  to several classes?

This is a column that was in the CSV file. You could create CSV column that contains all the classes of interest and that should do the trick.


[WIP] feat: add build option --docker-volume-basedir

Issue #, if available:
Description of changes:
enable to specify --docker-volume-basedir in the command build.
Checklist:

[ ] Write Design Document (Do I need to write a design document?)
[ ] Write unit tests
[ ] Write/update functional tests
[ ] Write/update integration tests
[ ] make pr passes
[ ] Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sanathkr Was there a reason why we dont pass docker volume dir to build but to invoke?

Reading https://github.com/awslabs/aws-sam-cli/pull/887#issuecomment-455757384, this is already handled by --base-dir.
Closing


Tab navigation

Create a screen with a BottomNavigationBar named tab_screen.
Also create widgets explore_tab, profile_tab and new_item_tab to navigate between. Put these widgets in lib/widgets/tabs.

Consider naming this feed_screen or items_screen instead.

I chose to have the tabs as screens with there individual Scaffolds.

Closed in #17


zephyrSerial: Fix misdetection arduino_serial1

DT_NODE_EXISTS value is true even if the status is disabled, so it caused misdetection.
Use DT_NODE_HAS_STATUS to detect the status of
the arduino_serial1 node is ok.
Fix #77

Hi, thanks for the quick fix @soburi , I'll test in sometime and merge this if it looks okay.


Allow for .nwb standard/file format  to be used for "micr"

See https://pynwb.readthedocs.io/en/stable/tutorials/domain/ophys.html for support of various microscopy modalities within NWB.  As NWB is already supported for other modalities, there is some support for microscopy in NWB in various tools, and as there are datasets with .nwb -- it makes sense to allow for .nwb to be used for microscopy data as well where appropriate.

this may be more of a question of physiology versus microscopy. in bids micr is focused on anatomy-based info not physiology. and i don't think nwb quite fits into that space. ophys doesn't fit into micr as far as i can tell. in bids ophys would go into func.

or phys if that was to become a new modality.

re "functional vs anatomical"
related discussions to tease apart those two notions of modality (MRI, micr, ...) and data type (anat vs func):

https://github.com/INCF/neuroscience-data-structure/issues/18
https://github.com/bids-standard/bids-2-devel/issues/55

Note that nothing in https://bids-specificabtrcitetcjtion.readthedocs.io/en/stable/04-modality-specific-files/10-microscopy.html explicitly restricts to anatomy (thcbhbnieljus allows for extra), although indeed lacks any annotation for temporal component and events (requires "extending").
Overall the fact that we have func/ ATM is an artifact of early days orientation toward MRI, and peculiarity that some modalities are purely functional (e.g. EEG, MEG) thus not even raising the question.  But then if we look at PET -- we can have a single volume PET, or "functional PET" for which _events.tsv is then required.
So I could argue about similarity to this case here
re phys vs micr
ATM microscopy is for the modality, and it already supports 2PE which I guess also falls into "phys" domain.
As all other "modality/" folders are really instrumentation modality, I would argue that we better not place microscopy data under electrophysiology folder.

has there been a request by a user / a particular group of users to make this happen?
If not, I would wait with introducing such a change, and remain "use case driven".
Especially when an argument of being "consistent" isn't entirely clear (as I get the impression, reading the discussion above)

has there been a request by a user / a particular group of users to make this happen?

it was brought up as a side-topic in discussion of BEP032 (@bep032) .

remain "use case driven".

LGTM. @bendichter, are you aware of any DANDI set with nwb microscopy data which we would run to while approaching conversion of DANDI dandisets to BIDS?

Yes, there are lots of ophys dandisets, including 1p, 2p, and more. Here are some good examples:

000037 - Allen Institute Openscope - Responses to inconsistent stimuli in somata and distal apical dendrites in primary visual cortex
000054 - Plitt & Giocomo (2021) Experience Dependent Contextual Codes in the Hippocampus. Nat Neuro
000711 - Allen Institute - Visual Behavior - Optical Physiology

Among others...

There is an ongoing effort of https://github.com/con/nwb2bids . Not yet sure how we would deal with multimodal nwb files like in https://dandiarchive.org/dandiset/000037/0.240209.1623/files?location=sub-408021&page=1 but I remain of opinion that NWB is a viable and used format for micr... I will rebase and take it out of the draft.

What benefits does micr/*.nwb have over micr/*.ome.zarr? There is a cost to tool writers to proliferating formats within a modality, hence why we do not support MINC.
That said, I know nothing of this space, and IMO this needs input from microscopy contributors. @jcohenadad do you have thoughts here?


Rich text editor

Feature request type
New component
Component name
MudRichEditor
Is your feature request related to a problem?
I am trying to implement a blog-like administration, but unfortunately, I struggle with a competent, customizable, mature, and Blazor-friendly rich text editor.
Describe the solution you'd like
What would be absolutely incredible is a rich (WYSIWYG) text editor with support for bold texts, italics, links, etc.
In addition, it would be factastic if the editor consisted of a series of blocks. For example:

Heading
Paragraph
Image
Divider
etc

(similar to https://editorjs.io, for example)
And if I could extend these blocks with my own blocks, I would be using this component 24/7.
I understand this may not be fit to be a Mud component; however, if the editor would have the same quality as other Mud components, it would probably be the single best rich text Blazor editor out there.
The output format of the editor could be a comprehensive C# data model or JSON for maximum interoperability.
Have you seen this feature anywhere else?
There are good libraries for JavaScript; however, they are rarely material designed and not very Blazor friendly. The ones I looked into and really like are:

https://editorjs.io/ - very visual demo on the index
https://quilljs.com/

They both output interoperable JSON data, are block-based, and custom blocks may be added. However, adding custom blocks and aligning the design would would be tedious (don't forget its JavaScript, uhhh)
Describe alternatives you've considered
Currently, I think I will make something myself and use a markdown library on a MudTextField. However, it is not the same as a quality block-based WYSIWYG editor.
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Have you tried TinyMCE? It integrates with Blazor well, we use it in our current project.

I used it years back, which usually resulted in ugly, unfriendly spaghetti HTML. However, it seems like it has been improved. I will check it out.

Closing as it's out of scope.
See comments: https://github.com/MudBlazor/MudBlazor/issues/5048#issuecomment-1214291076, https://github.com/MudBlazor/MudBlazor/issues/4361#issuecomment-1090607523


Using spark-druid-olap in an external project

I couldn't find documentation on how to use this custom DataSource implementation and optimizations in an external project.
(a) Is the jar file published to an external repo such that it can be referred to via the build.sbt file in my project?
OR
(b) Do I need to clone the repo and manually build the jar myself?
Thanks,
Jithin

Download jar from http://search.maven.org/remotecontent?filepath=com/sparklinedata/spl-accelerator_2.10/0.3.0/spl-accelerator_2.10-0.3.0-assembly.jar
To turn on the Sparkline Planner issue
org.apache.spark.sql.sources.druid.DruidPlanner(sqlContext)

in your Spark App.


Docker image: Illegal instruction (core dumped)

Version Number
1.21.0
What branch are you on?
master
Describe the Bug
The app won't run with the new 1.21.0 docker image.
If i try to run it with environment variable PMM_RUN=true or if i bash into the container and run python app/pmm/plex_meta_manager.py --run i'll always get the following error:
Illegal instruction (core dumped)
If i use 1.20.0 version, everything works just fine.
I'm using Ubuntu Server 22.04 on an amd64 cpu.
Thanks for any help in advance.
Relevant Collection/Overlay/Playlist Definition
No response
Logs
No response

Can you try running PMM on the nightly branch and seeing if that resolves your error?

I've already tried it and the same error occurs. 😕

Do you have Discord? may be easier to discuss and troubleshoot there.
https://metamanager.wiki/en/latest/discord/

Can you try running PMM on the nightly branch and seeing if that resolves your error?

I've already tried it and the same error occurs. 😕

Do you have Discord? may be easier to discuss and troubleshoot there.
https://metamanager.wiki/en/latest/discord/

Sure! I'll contact you over there


Refactor ExhaustiveSynthesis into smaller functions

The goto is still there, it looks cleaner than a while loop. :(

LGTM thanks


feat: update to swift 4.2

Updated project to swift 4.2
Fix errors in app delegate and view controller

Hello,
Thank you for your PR.
Besides the comments above, can you also please update the readme.md with the new Run Requirements?
Thanks,
Cosmin

Hello,
Thank you for your PR.
Besides the comments above, can you also please update the readme.md with the new Run Requirements?
Thanks,
Cosmin

Run requirements updated.


SAM build stopped working | AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

failing (was working a week ago)
Run sam build --use-container
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/bin/sam", line 8, in <module>
    sys.exit(cli())
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/click/core.py", line [1](https://github.com/oziva-in/oziva-functions/actions/runs/3820580200/jobs/6499156404#step:10:1)130, in __call__
    return self.main(*args, **kwargs)
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/click/core.py", line 16[51](https://github.com/oziva-in/oziva-functions/actions/runs/3820580200/jobs/6499156404#step:10:51), in invoke
    cmd_name, cmd, args = self.resolve_command(ctx, args)
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/click/core.py", line 1698, in resolve_command
    cmd = self.get_command(ctx, cmd_name)
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/samcli/cli/command.py", line 133, in get_command
    mod = importlib.import_module(pkg_name)
  File "/home/ubuntu/actions-runner/_work/_tool/Python/3.8.15/x[64](https://github.com/oziva-in/oziva-functions/actions/runs/3820580200/jobs/6499156404#step:10:65)/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line [67](https://github.com/oziva-in/oziva-functions/actions/runs/3820580200/jobs/6499156404#step:10:68)1, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/samcli/commands/build/__init__.py", line 6, in <module>
    from .command import cli  # noqa
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/samcli/commands/build/command.py", line 12, in <module>
    from samcli.commands._utils.options import (
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/samcli/commands/_utils/options.py", line 21, in <module>
    from samcli.commands._utils.template import get_template_data, TemplateNotFoundException
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/samcli/commands/_utils/template.py", line 10, in <module>
    from botocore.utils import set_value_from_jmespath
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/botocore/utils.py", line 37, in <module>
    import botocore.httpsession
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/botocore/httpsession.py", line 46, in <module>
    from urllib3.contrib.pyopenssl import (
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/urllib3/contrib/pyopenssl.py", line 50, in <module>
    import OpenSSL.crypto
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/home/ubuntu/actions-runner/_work/_temp/setup-sam-jpw4ru/.venv/lib/python3.8/site-packages/OpenSSL/crypto.py", line 32[68](https://github.com/oziva-in/oziva-functions/actions/runs/3820580200/jobs/6499156404#step:10:69), in <module>
    _lib.OpenSSL_add_all_algorithms()
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
Error: Process completed with exit code 1.

I have the same issue.
Run sam build --template ${SAM_TEMPLATE} --use-container
Traceback (most recent call last):
  File "/home/runner/work/_temp/setup-sam-xv34Es/bin/sam", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/click/core.py", line 1651, in invoke
    cmd_name, cmd, args = self.resolve_command(ctx, args)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/click/core.py", line 1698, in resolve_command
    cmd = self.get_command(ctx, cmd_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/samcli/cli/command.py", line 133, in get_command
    mod = importlib.import_module(pkg_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.1/x64/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/samcli/commands/build/__init__.py", line 6, in <module>
    from .command import cli  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/samcli/commands/build/command.py", line 12, in <module>
    from samcli.commands._utils.options import (
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/samcli/commands/_utils/options.py", line [21](https://github.com/MatthewCochrane/aws-sam-test/actions/runs/3820822995/jobs/6499410576#step:5:22), in <module>
    from samcli.commands._utils.template import get_template_data, TemplateNotFoundException
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/samcli/commands/_utils/template.py", line 10, in <module>
    from botocore.utils import set_value_from_jmespath
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/botocore/utils.py", line 37, in <module>
    import botocore.httpsession
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/botocore/httpsession.py", line 46, in <module>
    from urllib3.contrib.pyopenssl import (
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/urllib3/contrib/pyopenssl.py", line 50, in <module>
    import OpenSSL.crypto
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/home/runner/work/_temp/setup-sam-xv34Es/.venv/lib/python3.11/site-packages/OpenSSL/crypto.py", line 3[26](https://github.com/MatthewCochrane/aws-sam-test/actions/runs/3820822995/jobs/6499410576#step:5:27)8, in <module>
    _lib.OpenSSL_add_all_algorithms()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
Error: Process completed with exit code 1.

From what i can see while troubleshooting, the following package got an update on 01.01.2023:
cryptography-39.0.0
As of Saturday(31.12) it was working perfectly with:
cryptography-38.0.4
On the libry portal you can see the release notes:
https://cryptography.io/en/latest/changelog/
Is there a way to fix the version # for this action??
BR
Pedro

Relevant: https://github.com/aws/aws-sam-cli/issues/4527

Is there a way to fix the version # for this action??

You can change the version of SAM CLI that it installs using the version property, e.g.:
- uses: aws-actions/setup-sam@v2
  with:
    version: 1.67.0

Thanks hoffa I ended up asking chat.openai to fix and it worked with some tweaks:
    - name: Temp fix SAM crypto
       run: |
         # Find the directory using a wildcard pattern
         pwd
         cd /home/runner/work/_temp/
         ls
         setup_sam_dir=$(find . -type d -name "setup-sam-*" | head -n 1)

         # Check if the directory was found
         if [ -z "$setup_sam_dir" ]; then
           # No directory was found
           echo "Directory not found"
         else
           # Directory was found
           echo "Found directory: $setup_sam_dir"

           # Activate the virtual environment
           source "/home/runner/work/_temp/$setup_sam_dir/.venv/bin/activate"
           echo "Virtual environment activated"
           pip install cryptography==38.0.4
         fi

Hi @hoffa ,
Thanks, but the issues seems to be on the new cryptography-39.0.0 package. Even if I force to use a specific SAM version, it has a version constraint like this:
Collecting cryptography>=35.0
  Downloading cryptography-39.0.0-cp36-abi3-manylinux_2_28_x86_64.whl (4.2 MB)

At the moment I am trying to uninstall the 39 version and revert to the 38.04 but I must confess I am no python expert. :-)
I tried to run this after the aws-actions/setup-sam@v2:
pip uninstall cryptography
pip install 'cryptography==38.0.4'

To uninstall the 39 and install 38.0.4...
The issue is that I am getting:
WARNING: Skipping cryptography as it is not installed.
I am certainly missing something. Trying to figure out.
BR
Pedro

Hi @hoffa ,
Thanks, but the issues seems to be on the new cryptography-39.0.0 package. Even if I force to use a specific SAM version, it has a version constraint like this:
Collecting cryptography>=35.0
  Downloading cryptography-39.0.0-cp36-abi3-manylinux_2_28_x86_64.whl (4.2 MB)

At the moment I am trying to uninstall the 39 version and revert to the 38.04 but I must confess I am no python expert. :-)
I tried to run this after the aws-actions/setup-sam@v2:
pip uninstall cryptography
pip install 'cryptography==38.0.4'

To uninstall the 39 and install 38.0.4...
The issue is that I am getting: WARNING: Skipping cryptography as it is not installed.
I am certainly missing something. Trying to figure out.
BR Pedro

Have a look at my script, you have to change the venv not the machine default python

PERFECT @nszeitli !!! It worked!
That was the bit I was missing! :-) I had to set in the venv! :-)
Working for now!
Thanks
Pedro

@nszeitli Nice!
For posterity, you could also try:
- uses: aws-actions/setup-sam@v2
  with:
    version: 1.59.0

I haven't tested but IIRC cryptography is a transitive dependency of pyOpenSSL that was added along OIDC support in AWS SAM CLI 1.60.0.

having the same issue. any estimates on when will this be fixed?
I do not want to pin the version for all lambdas in our infrastructure
thanks

happy new year!

As I posted here, you can also fix with an additional step after aws-actions/setup-sam:
      - name: sam fix https://github.com/aws/aws-sam-cli/issues/4527
        run: $(dirname $(readlink $(which sam)))/pip install --force-reinstall "cryptography==38.0.4"

Fixed in SAM CLI v1.68.0

FYI you can now avoid issues such as these with use-installer:
- uses: aws-actions/setup-sam@v2
  with:
    use-installer: true

It uses the native installers directly, which is a lot faster and doesn't require to have Python installed.

FYI you can now avoid issues such as these with use-installer:
- uses: aws-actions/setup-sam@v2
  with:
    use-installer: true

It uses the native installers directly, which is a lot faster and doesn't require to have Python installed.

Can you clarify please @hoffa what is the native installer?

@altaurog They're self-contained packages of SAM CLI (i.e. includes everything needed to run it, including Python). They're the suggested installation method for Linux. Under the hood PyInstaller is used.


v1.4.1

Codecov Report

Merging #118 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #118   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          21     21
  Lines        1429   1430    +1
  Branches      193    193
=====================================
+ Hits         1429   1430    +1

Impacted Files
Coverage Δ

src/assets/TokenBalancesController.ts
100% <100%> (ø)
:arrow_up:

src/assets/TokenRatesController.ts
100% <100%> (ø)
:arrow_up:

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 089a4ce...6ce1b89. Read the comment docs.


Updates to #val_service_basics (DE)

This PR is linked to issue https://github.com/corona-warn-app/cwa-website/issues/2253 and to PR https://github.com/corona-warn-app/cwa-website/pull/2255.
It updates the German-language FAQ article https://www.coronawarn.app/de/faq/#val_service_basics "Fragen und Antworten zur Zertifikatsprüfung bei Ticketbuchungen" corresponding to the English-language FAQ article https://www.coronawarn.app/en/faq/#val_service_basics
It mainly addresses links and cross-references in the article.

see https://github.com/corona-warn-app/cwa-website/pull/2255#issuecomment-1002103880

@dsarkar
New Wikipedia links are dropped from this PR.

@MikeMcC399 Thanks!


Some code refactoring to support Roberta algorithm, they ids and merg…

…e ranks different

Thank you, Vishay!


UI elements showing on screenshots

Description of Bug
See related comment posted on April 17th, 2024: https://www.nexusmods.com/stardewvalley/mods/4779/?tab=posts
First step needed is to see if we can reproduce the issue. Does it happen even if the only mod is Daily Screenshot, or is it only under certain conditions that involve some other mod(s)?
Steps to Reproduce
Steps to reproduce the behavior:

Download the same set of mods
See if the elements appear on screenshot

Expected behavior
No unexpected UI elements should appear on screenshots.
Screenshots
See image from Nexus comment.

i have the same bug, its very annoying, i would love if the mod disabled the ui before taking the screenshot, like when you press F7


The difference between my idf1 and the paper is about 18

Hello, authors.
I successfully ran your program. However, idf1 index is still quite different from that in the paper. At present I
① The data of the S02 scene in the truth value is extracted separately and compared with the predicted results
② The truth value of the S02 scene is time-aligned according to the steps in run_mtmc.py
Is there anything I haven't done？

Hello.
In my case, I can get the proposed results as below.

Um... Is your GT file from the AIC19 dataset? If not, please give me your email address. I will send the GT file.
Or is your evaluation code from AIC dataset? If not, I can send the evaluation code also.
Thank you for your attention.

I am currently using AIC20_track3_MTMC because the request channel for AIC19 is closed. According to the official introduction, AIC20 just adds a test set based on AIC19.
But for the sake of rigor, it is better to use the GT file and eval code of AIC19. My email is<EMAIL_ADDRESS>thank you

I have send the emails.
Thank you.


Compilation

Not a issue, but can you tell me how to make a mod from a datapack. I know that I need to somehow use some code from git modrinth, but I don't know how. Thank you in advance

Hey of course! You actually can just upload your datapack normally into modrinth, then click on it, and then you can simply click "package as mod" and modrinth will automatically repackage your datapack into a jar! Hope this helps :)

Yes thank you. This is what you need


New release?

Hi,
Once #4 gets merged in, would you mind rolling a new release?

Absolutely!
I'm out of the office until tomorrow but will set a reminder to publish first thing.
Thanks for your work!

@mwisner FYI, Pushed this out to NPM so it should be good to go now.
Sorry for the delay!

Hey @joshuairl,
Sorry to be such a hassle... Was wondering if you'd mind rolling a 0.1.1 release? I finally have some free time after a few hectic weeks and I am hoping to finish up https://github.com/IvyApp/ivy-videojs/pull/28.

@mwisner I don't mind, not a hassle at all.
What would be going into the 0.1.1?

@joshuairl I think it's just this one bug fix: https://github.com/joshuairl/ember-cli-videojs-shim/pull/6

Done!


Introduce RemoveKnownDefinitions rewriter

Remove all definitions existing in the index from the current tree
Let's create an Index from two different Trees:
tree1 = Parse.parse_string(<<~RBI)
  class Foo
    def foo; end
  end
RBI

tree2 = Parse.parse_string(<<~RBI)
  FOO = 10
RBI

index = Index.index(tree1, tree2)

We can use RemoveKnownDefinitions  to remove the definitions found in the index from the Tree to clean:
tree_to_clean = Parser.parse_string(<<~RBI)
  class Foo
    def foo; end
    def bar; end
  end
  FOO = 10
  BAR = 42
RBI

cleaned_tree, operations = RemoveKnownDefinitions.clean(tree_to_clean)

assert_equal(<<~RBI, cleaned_tree)
  class Foo
    def bar; end
  end
  BAR = 42
RBI

assert_equal(<<~OPERATIONS, operations.join("\n"))
  Deleted ::Foo#foo at -:2:2-2-16 (duplicate from -:2:2-2:16)
  Deleted ::FOO at -:5:0-5:8 (duplicate from -:1:0-1:8)
OPERATIONS

We could also rename #clean method to #remove to be consistent if you want.

Done 👍


Failed to pixi add mini-racer --pypi, but pip install success

Checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example
pixi add mini-racer --pypi

Issue description
Failed to add this package, but can install it with pip,
it stucks on the Preparing distributi step, and fianlly it will raise exceptions
$ pixi add mini-racer --pypi -v
 INFO pixi::environment: verifying prefix location is unchanged, with prefix file: /root/luanqibazao/.pixi/envs/default/conda-meta/pixi_env_prefix
 INFO pixi::environment: Creating prefix file at: /root/luanqibazao/.pixi/envs/default/conda-meta/pixi_env_prefix
 INFO pixi::environment: No update needed for the prefix file.
 INFO pixi::environment: Checking if history file exists: /root/luanqibazao/.pixi/envs/default/conda-meta/history
 INFO pixi::lock_file::resolve::uv_resolution_context: uv keyring provider is disabled
 INFO pixi::install_pypi: resolved install plan: local=24, remote=1, reinstalls=0, extraneous=0
 INFO pixi::install_pypi: Install: ["python-dateutil", "six", "pytz", "et-xmlfile", "html5lib", "charset-normalizer", "requests", "soupsieve", "idna", "tabulate", "tqdm", "tzdata", "pandas", "beautifulsoup4", "certifi", "decorator", "lxml", "xlrd", "urllib3", "webencodings", "numpy", "openpyxl", "jsonpath", "akshare", "mini-racer"]
 INFO pixi::install_pypi: Re-install: []
 INFO pixi::install_pypi: Remove: []
⠈ updating pypi packages in 'default'
  ⠋ Preparing distributi [00:01:15] [────────────────────]    0/1    building mini-racer==0.12.4 (+1)

pip works
$ pip install mini-racer
Collecting mini-racer
  Downloading mini_racer-0.12.4-py3-none-manylinux_2_31_x86_64.whl.metadata (18 kB)
Downloading mini_racer-0.12.4-py3-none-manylinux_2_31_x86_64.whl (15.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.0/15.0 MB 21.1 MB/s eta 0:00:00
Installing collected packages: mini-racer
Successfully installed mini-racer-0.12.4

Expected behavior
Add success

We need to understand why pip chooses the wheel and pixi does not.
Do you have anything in your system-requirements table?

I just tried locally, and with the following system-requirements it works:
[system-requirements]
libc = { family = "glibc", version="2.31" }

The wheel has only been built for a very recent glibc version.

I just tried locally, and with the following system-requirements it works:
[system-requirements]
libc = { family = "glibc", version="2.31" }

The wheel has only been built for a very recent glibc version.

Thanks, @wolfv , it works.
Also I want to know how can I find similar root cause related to system-requirements, or there any doc that I can reference?
Thanks very much

It's a bit hard to say, when you would need to updated them for the pypi case. Here is some documentation on how it works: https://pixi.sh/dev/reference/project_configuration/#the-system-requirements-table
But the main idea is you tell what version of machine/os level requirements you want pixi to solve for.

Closing as fixed with system requirements


publish button reporting no files

For dandiset 8, the UI is reporting that the dandiset contains 0 bytes of data, but that is clearly not the case.

Hey @bendichter, sorry we never got back to you about this.
Can you check again and see if you're still getting that same error? Things have advanced since you filed this and it's possible that the specific problem has been fixed.

Thanks for following up, @waxlamp, I'm pretty sure this has been fixed now.


ustl::ostream do not accept char string

Hello !
The program bellow shows the problem (it works with std):
Cheers !
#define USE_STD2
#ifdef USE_STD
#include <iostream>
#include <sstream>
using namespace std;
#else
#include <ustl.h>
using namespace ustl;
#endif // USE_STD

ostream &addChar(ostream &os)
{
    os << "I'm a char string";
    return os;
}

int main()
{
    ostringstream ss;
    addChar(ss);
    return 0;
}

||=== Build: Release in test (compiler: GNU GCC Compiler) ===|
../../../../../../local/include/ustl/ulimits.h||In instantiation of ‘struct ustl::numeric_limits<char [18]>’:|
../../../../../../local/include/ustl/mostream.h|260|required from ‘ustl::ostream& ustl::operator<<(ustl::ostream&, const T&) [with T = char [18]]’|
main.cpp|13|required from here|
../../../../../../local/include/ustl/ulimits.h|25|error: function returning an array|
../../../../../../local/include/ustl/ulimits.h|26|error: function returning an array|
||=== Build failed: 2 error(s), 3 warning(s) (0 minute(s), 0 second(s)) ===|

This code is incorrect. uSTL ostream is a binary stream and the addChar's behavior is undefined. You can use os << string("") to write the data as a string. Or you could say os.write ("str", sizeof("str")) to write as a null-terminated string. Or you could write just the char array without the null-terminator.
The correct way to do the above is to use ostringstream argument to addChar. ostringstream& addchar (ostringstream& os).


[linuxkernel] Use git.kernel.org tags page to retrieve versions

Automation for the Linux Kernel was based on the mirror https://github.com/gregkh/linux, which is updated infrequently. The reason for that is documented on https://github.com/endoflife-date/talk/wiki/linux/2ecd6ee9df7647a8083cd4fc3bfd966278fb1122 (e.g. we need the git repository to support partial clone).
Using https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/refs/tags allows us to retrieve new versions much quicker.
Closes #94.

Corresponding endoflife.date PR : https://github.com/endoflife-date/endoflife.date/pull/2938.

Suggestion: Change this to a generic cgit method, similar to how we have for distrowatch. There's atleasst https://git.ruby-lang.org/ruby.git/, but probably more that would benefit from this.

Suggestion: Change this to a generic cgit method, similar to how we have for distrowatch. There's atleasst https://git.ruby-lang.org/ruby.git/, but probably more that would benefit from this.

@captn3m0, I do not have time to do it now, so just opened #97. Can we proceed with the merge if everything is OK in order to unblock https://github.com/endoflife-date/endoflife.date/pull/2918.