Fix revert_to_default_in_memory

I tried out the revert on deserialization error feature, but it doesn't handle reverting in memory completely resulting in the builder returning None.
The problem appears to be that default is being serialized as Option<R> instead of R, so deserialization fails with something like the following:
2024-01-10T09:22:01.462719Z ERROR bevy_persistent::format: failed to parse settings as pretty RON

1:5: Expected struct `Settings` but found `Some`
2024-01-10T09:22:01.462724Z ERROR bevy_persistent::persistent: failed to revert settings to default in memory due to a deserialization error
2024-01-10T09:22:01.462725Z ERROR bevy_persistent::persistent: failed to revert settings to default in memory

Also removed the last log statement since it seems redundant.

Thanks for the PR @sgodwincs!
Indeed there was a bug, kinda embarrassing considering the rest of the library is well tested. It'd be perfect if you can add some tests to tests/persistent.rs, but if you don't have time, no worries, I can add them later.
Also, could you change the commit message to:
fix: serialize to R instead of Option<R> when reverting to default in memory

and maybe split the removed log to it's own commit with the message:
fix: stop logging the error twice when reverting to default in memory during initialization

Lastly, if you're not available, I can create another PR that solves this problem and make you the primary author of the relevant commits.
Let me know what do you want to do, and thanks again for reporting the issue and even fixing it :raised_hands:

I've updated the commits and added some tests for revert_on_error.

That's wonderful! I've started the CI, and I'll merge right away when it's green :+1:
I'd love to add you to the list of authors before I release after merging this, could you give me your name and email address in this format:
authors = [
    "Umut Şahin<EMAIL_ADDRESS>    "Shane Lillie<EMAIL_ADDRESS>    "Eri Pazos<EMAIL_ADDRESS>]

Thanks!

I've used "Scott Godwin<EMAIL_ADDRESS>from your other projects.
And v0.4.3 is up on crates.io.
Thanks for the lovely contribution!

Yes, that works, thanks!


MM-17060: Jira Plugin: OAuth error on API calls to Jira (#229)

Summary

cherry-picked #229 to jira2
tested it briefly -- jira2 branch is indeed broken; this fixes it.
probably should do another testing run, to make sure (sorry Dylan)

Links
MM-17060

@levb @cpoile Let's do a version bump in a separate PR. Makes the history cleaner.

@crspeller @levb whoops, too fast. will revert.


Backup Issue - Not all sent messages are recognized

When backing up messages, only a seemingly random collection of my responses are saved, though it seems that all received text messages are saved. I love your app and am so sad to find that this is happening, are you able to fix it?
I'm restoring from an LG Phoenix 3 to the Samsung Galaxy S8

What version are you running? f-droid has a much newer version https://f-droid.org/packages/com.zegoggles.smssync/

I downloaded the play store version a couple days ago, I'd have to reboot my LG to check for sure. Is the link yoiu sent different? I'm not great at github haha

Not the Play store version, the sms-backup-plus version.
Yes, you can try 1.5.11-beta7 - you'll have to f-droid first.

I've seen comments suggesting advanced messaging is the issue, but I can't seem to find where that exists in my settings. Do you think that could be my issue? I'll try the f-droid version too

The 1.5.11-beta7 still has the same issue unfortunately.

@jberkel fyi

@sec89 do you use some other apps to send messages? e.g. Signal / Hangouts?

@jberkel for sms messages I've only used the default message app. I don't remember having trouble with the samsung default app, though its been a while since I've backed up my messages onto a new phone. I noticed this issue when transferring from my LG Phoenix 3, on which I used the default app. I cannot find any setting to turn off "advanced messaging," either, as other threads have suggested to do, so I'm not sure that issue is applicable here.

@jberkel @jcrben As a clarification, I just saw your note, ben. I see this issue during backup. Before restoring, I confirmed the contents of the gmail backup, and the gmail backup itself was missing my replies. However, all messages that were backed up, restored correctly on the phone.

You say it's a "seemingly random collection" of messages missing. That is quite weird. See if you can find some sort of pattern for the missing messages (length, multiple recipients, etc.)

I can't seem to find a pattern. There are a variety of lengths of the
texts, some work with emojis, some days have one reply backed up, other
days have a couple. There aren't recipients that seem more affected than
others. I did try backing up multiple time with different labels in my
gmail, and the same replies are getting backed up each time, so there is
something specific about the backed up replies that allow them to get
saved, I'd assume. Are there any patterns I should be looking for
specifically?
On Wed, Mar 28, 2018 at 5:01 PM, Jan Berkel<EMAIL_ADDRESS>wrote:

You say it's a "seemingly random collection" of messages missing. That is
quite weird. See if you can find some sort of pattern for the missing
messages (length, multiple recipients, etc.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjberkel%2Fsms-backup-plus%2Fissues%2F850%23issuecomment-377034999&data=02|01|sec89%40drexel.edu|082f7cff9db44ab872de08d594ef0407|3664e6fa47bd45a696708c4f080f8ca6|0|0|636578676652354336&sdata=XrPJCRKcyb2yMDYJaNL3p3ZsFRHG8jRvRmAj4VHTb64%3D&reserved=0,
or mute the thread
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALsKMl9XvzJM879maiV9lXLIDq0ZwsZBks5ti_oOgaJpZM4Soo8V&data=02|01|sec89%40drexel.edu|082f7cff9db44ab872de08d594ef0407|3664e6fa47bd45a696708c4f080f8ca6|0|0|636578676652354336&sdata=lzotoUEvBBrefghJ3WUCGOgCImkxMa2YJL3qvRd4uZ8%3D&reserved=0
.

--
Samantha Cassel, M.S.
PhD Student, University of Delaware
Department of Chemical and Biomolecular Engineering
<EMAIL_ADDRESS>|<EMAIL_ADDRESS>

What I sometimes observed is that Gmail's threading was out of control and messages got re-grouped in a totally different thread. So all the messages were there, just hidden somewhere.
What I then recommended was to check your email with a "normal" IMAP client, just as a sanity check. Have you tried this?

What do you mean by a "normal" IMAP client? How can I do that?
The only trend I "may" have uncovered is that it seems more rampant with
iPhone recipients. Like maybe the messages that were saved weren't received
as iMessage?
I agree that the gmail threading is a little insane, I'm not sure how to
sort through all of it, as I did (in segments) attempt to back up a large
volume of texts.
On Wed, Mar 28, 2018 at 5:20 PM, Jan Berkel<EMAIL_ADDRESS>wrote:

What I sometimes observed is that Gmail's threading was out of control and
messages got re-grouped in a totally different thread. So all the messages
were there, just hidden somewhere.
What I then recommended was to check your email with a "normal" IMAP
client, just as a sanity check. Have you tried this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjberkel%2Fsms-backup-plus%2Fissues%2F850%23issuecomment-377040810&data=02|01|sec89%40drexel.edu|f64b12f27fc7414db74208d594f1b96e|3664e6fa47bd45a696708c4f080f8ca6|0|0|636578688281418532&sdata=T2Ory5t45viDir9hTjUHm3UUQSBxZcgjw%2BODehltsUk%3D&reserved=0,
or mute the thread
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALsKMgYwUSaiLAbjohMkr1HDkH2exKG_ks5ti_6YgaJpZM4Soo8V&data=02|01|sec89%40drexel.edu|f64b12f27fc7414db74208d594f1b96e|3664e6fa47bd45a696708c4f080f8ca6|0|0|636578688281418532&sdata=lIeBniNHkHlTdHtz2HVeBEPgxZ9M4r8gX6lxCrcPK1k%3D&reserved=0
.

--
Samantha Cassel, M.S.
PhD Student, University of Delaware
Department of Chemical and Biomolecular Engineering
<EMAIL_ADDRESS>|<EMAIL_ADDRESS>

What do you mean by a "normal" IMAP client? How can I do that?

A normal IMAP client you install on your desktop, e.g. https://www.mozilla.org/en/thunderbird/ With the rise of the web clients these have fallen a bit out of fashion.

When restored on the phone, the messages missing on gmail reflected the missing messages on my phone after restore.

OK, then it's probably not threading. Not sure what to suggest else at this point.

Thank you for trying.
On Wed, Mar 28, 2018 at 5:28 PM, Jan Berkel<EMAIL_ADDRESS>wrote:

What do you mean by a "normal" IMAP client? How can I do that?
A normal IMAP client you install on your desktop, e.g.
https://www.mozilla.org/en/thunderbird/
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mozilla.org%2Fen%2Fthunderbird%2F&data=02|01|sec89%40drexel.edu|d233239489d54f32e48308d594f2e238|3664e6fa47bd45a696708c4f080f8ca6|0|0|636578693266461768&sdata=gOvUr4EpKUzateuMTWImcyD6ajsV4Hi6lHfaKdoTe2Q%3D&reserved=0
With the rise of the web clients these have fallen a bit out of fashion.
When restored on the phone, the messages missing on gmail reflected the
missing messages on my phone after restore.
OK, then it's probably not threading. Not sure what to suggest else at
this point.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjberkel%2Fsms-backup-plus%2Fissues%2F850%23issuecomment-377043210&data=02|01|sec89%40drexel.edu|d233239489d54f32e48308d594f2e238|3664e6fa47bd45a696708c4f080f8ca6|0|0|636578693266461768&sdata=orIRXp4LBtjIQaetzMOZR6B1uweJ17odhmOFL21Ajyw%3D&reserved=0,
or mute the thread
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALsKMuZPthE1WANP2PJkPwwZgoDQTUrWks5tjACIgaJpZM4Soo8V&data=02|01|sec89%40drexel.edu|d233239489d54f32e48308d594f2e238|3664e6fa47bd45a696708c4f080f8ca6|0|0|636578693266461768&sdata=GZvk1SoJc8Lx%2FtBsWHKeluLFR2J2OuHGIUWB%2Fp0QcwQ%3D&reserved=0
.

--
Samantha Cassel, M.S.
PhD Student, University of Delaware
Department of Chemical and Biomolecular Engineering
<EMAIL_ADDRESS>|<EMAIL_ADDRESS>

No problem! I'm leaving this issue open, maybe somebody else has an idea.


[3.2] Fixed Container sorting not working when overriding _sort_children in gdscript

Removed undocumented bound method Container::_sort_children, which can prevent sorting to work correctly if it's overridden in gdscript by mistake.
It's replaced with sending NOTIFICATION_SORT_CHILDREN directly:

to any attached script instance for custom behavior
to any inherited class for sorting implementations
to the Container class to emit sort_children signal and reset pending_sort member

It's meant to be in this order to avoid triggering the sorting a second time if an inherited class or a script changes some properties that cause sorting while doing the sorting (like the control's size).
Before this change, it was already notifying the inherited classes before emitting the signal and resetting pending_sort in the Container class, so the only change is the script is now called first.
In case it's needed, it's still possible for a script to handle sorting after inherited classes by reacting to sort_children signal rather than NOTIFICATION_SORT_CHILDREN.
Changes on Object class:
Added support for notification to send notifications to the attached script first and updated the corresponding documentation.
Fixes #31408

Isn't it intended behavior that if you're going to override the sort method then it doesn't call the original sort? If you override it and it still sorts it the previous way then it makes the override kind of pointless.

Shouldn't p_script_first be assumed to equal p_reversed in all cases, since you can treat the script as being a child class?

@bojidar-bg That would make sense, but wouldn't it be a bit risky for existing scripts expecting a certain order of execution?

Closing this PR as it addresses an edge case and it has a better solution for 4.0 in #38396


[ignore] Testing CI change

Testing CI due to change in https://github.com/JCSDA-internal/jedi-bundle/pull/76
run-ci-on-draft=true
debug-ci=false
jedi-ci-test-select=clang
Most of the tests are running in this pull request https://github.com/JCSDA-internal/oops/pull/2483, in order to not over-stress the CI system I am only testing one environment at a time here. If any tests pass here and all tests pass in oops, it is safe to assume the migration worked.

I cancelled the first run and re-started with debug disabled.


Use eventfd_read to close EpollEventLoop shutdown/wakeup race

Motivation
@carl-mastrangelo discovered a non-hypothetical race condition during EpollEventLoop shutdown where wakeup writes can complete after the eventfd has been closed and subsequently reassigned by the kernel.
This fix is an alternative to #9388, using eventfd_read to hopefully close the gap completely, and without involving an additional CAS during wakeup.
Modification
After waking from epollWait, CAS the wakenUp atomic from 0 to 1. The times that a value of 1 is encountered here (CAS fail) correspond 1-1 with prior CAS wins by other threads in the wakeup(...) method, which correspond 1-1 with eventfd_write(1) calls (even if the most recent write is yet to happen).
Thus we can locally maintain a precise total count of those writes (eventFdWriteCount) which will be constant while the EL is awake - no further writes can happen until we reset wakenUp back to 0.
Since eventfd is a counter, when shutting down we just need to read from it until the sum of read values equals the known total write count. At this point all the writes must have completed and no more can happen.
Result
Race condition eliminated. Fixes #9362

@netty-bot test this please

@netty-bot test this please

@netty-bot test this please

@ejona86 can you have a look as well ?

I think I expected more to poll on the eventfd once since it is in edge-triggered mode (IIRC). I honestly don't know how painful that is.

@ejona86 thanks a lot for the review/comments.

I think I expected more to poll on the eventfd once since it is in edge-triggered mode (IIRC). I honestly don't know how painful that is.

Could you elaborate a little on what you're proposing here? I can't see how that could avoid the race in a robust way but I may be missing or misunderstanding something.

Closing in favour of #9535 (see comment thread above)


feat(ui): Project creation modal

#1536

Because project creation is mostly just a name, can we also have the default creation UI simply be a text field of the project name? We can still keep this YAML editor as a second tab/option.
Other resources like Warehouse, AnalysisTemplate, can just be YAML create wizard.

@rpelczar this works great, except that I notice the list of projects isn't refreshed after the modal closes.
It's also not surfacing an error on an attempt to create a new project with a project name that already exists... but I've discovered that is a back end issue and I'll fix that right away.

It's also not surfacing an error on an attempt to create a new project with a project name that already exists... but I've discovered that is a back end issue and I'll fix that right away.

I have fixed this in #1649, but when I test this PR on top of #1649, I notice that even though I can see the error being returned now, it still isn't being surfaced in the UI.


ECHO REQ/RESP HANDLING

This activity deals with :

s11 handler for Echo Request/Response.
GtpV2Codec Support for the Echo Request/Response Messages.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

add to whitelist


feat: syntax linter for #-commands

A Lean-linter implementation of the #-command linter introduced in #10809.
This linter produces a warning whenever a non-whitelisted #-commands is used.  The whitelist consists of #align, #align_import, #noalign.
This PR is accompanied by #11028, which places the linter in Tactic.Basic, to make sure that (most of) Mathlib passes the #-command linter.

I like this much more than the sed version!

Thomas, thank you very much for your comments!  The new withSetOptionIn' command works great, thanks!  I added it and also put some tests in to ensure that it does what it should!

@thorimur I thought that I had written this already somewhere, but maybe it got lost.
I am going to change the behaviour of the linter: it will emit a message if and only if the #-command emits no message.
This means that by leaving it always on, you can still try out a #-command and see its output without clutter from the linter.  However, every #-command now emits a message: either because the command itself does, or because the linter does (but not both!).  This means that CI will pick up in the #-command no matter what.

Hmm, I'm not totally sure about only linting the silent commands, because it's nice to have an error telling you explicitly what's wrong! But it definitely works. (The "noisy stdout" section of build tells you where the noise is happening, right?) I'd like someone else to sign off on that specific choice, since I'm not sure what the best option is there. (Is there a discussion somewhere I might have missed?)

I asked on Zulip about emitting an extra warning in CI, but I feel like I failed to communicate properly what the issue was.

@grunweg I should have fixed all the issues.  Since your review, the changes have been to

allow #adaptation_note and
fix a syntax bug with handling nested set_option ... in commands.

I also extended the list of tests and went ahead to lint most of mathlib!

Thanks for the quick response. I was wondering about #guard_msg; good catch!
Looking at the past logs, it seems #guard (in test/vec_notation) might also need to be allowed.
From my side, once CI passes, it's ready to be merged.

Michael, thank you for the reviews!
Re #guard_msgs: I simply silenced it, since it was quick and I do not expect lots of them to show up in Mathlib.  Probably a better solution would be to allow them only in test files, but I would leave this discussion for later.
Re #guard: I am happy not allowing it in Mathlib.  If I remember correctly, I actually removed some #guards in Mathlib that were picked up by the linter and moved them to test files.

Ok, after yet another failed test, I decided to make the #guards not allowed, except in test other than test.HashCommandLinter.  I hope that this time the tests pass!

Tests pass; I took one last look and pushed a few tiny tweaks. (@adomani Feel free to revert those if you prefer!)
I think this lint is ready to go: performance is good, mathlib passes, no bad test changes or anything that looks questionable. Thank you for your work on this, this one took a while - but I'm glad it lands!
maintainer merge
(A follow-up PR could remove the sed-based linter this replaces. Imho, this doesn't have to happen in this PR.)

Filed #13142 for the follow-up.

Thanks :tada:
bors merge


Feature wrapper

wow, another large PR. This will merge the "wrapper" feature into dev, which looks like a big deal, but it really just wraps all of EPANET's global variables into a couple of structs that get passed around. This ends up duplicating the API, giving you an additional thread safe function for each original function. For instance:
ENgetnodevalue(....
becomes:
EN_getnodevalue(EN_Project *p, ...

feel free to review - although as @michaeltryby has commented, we should also focus on fixing the regression tests. I am working through that, and will push fixes to this PR, prior to merging into dev.

I'm getting many compile errors. I think some are due to variables not being declared at the headers of the function
input2.c(399) : error C2065: 'curve' : undeclared identifier
input2.c(400) : error C2065: 'curve' : undeclared identifier
input2.c(400) : error C2223: left of '->Npts' must point to struct/union
input2.c(403) : error C2065: 'curve' : undeclared identifier
input2.c(403) : error C2223: left of '->X' must point to struct/union
input2.c(404) : error C2065: 'curve' : undeclared identifier
input2.c(404) : error C2223: left of '->Y' must point to struct/union
input2.c(408) : error C2065: 'curve' : undeclared identifier
input2.c(408) : error C2223: left of '->X' must point to struct/union
input2.c(411) : error C2065: 'curve' : undeclared identifier
input2.c(411) : error C2223: left of '->Y' must point to struct/union
input2.c(412) : error C2065: 'curve' : undeclared identifier
input2.c(412) : error C2223: left of '->X' must point to struct/union
input2.c(413) : error C2065: 'curve' : undeclared identifier
input2.c(413) : error C2223: left of '->Y' must point to struct/union
input2.c(414) : error C2065: 'curve' : undeclared identifier
input2.c(414) : error C2223: left of '->X' must point to struct/union
input2.c(415) : error C2065: 'curve' : undeclared identifier
input2.c(415) : error C2223: left of '->Y' must point to struct/union
input2.c(427) : error C2065: 'link' : undeclared identifier
input2.c(427) : error C2223: left of '->ID' must point to struct/union
input2.c(448) : error C2065: 'link' : undeclared identifier
input2.c(448) : error C2223: left of '->ID' must point to struct/union
input2.c(622) : error C2143: syntax error : missing ';' before 'type'
input2.c(623) : error C2065: 'errMsg' : undeclared identifier
input2.c(623) : warning C4047: 'function' : 'char *' differs in levels of indire
ction from 'int'
input2.c(623) : warning C4024: 'EN_geterror' : different types for formal and ac
tual parameter 2
input2.c(624) : error C2065: 'errMsg' : undeclared identifier
input3.c
input3.c(73) : error C2143: syntax error : missing ';' before 'const'
input3.c(93) : error C2275: 'Snode' : illegal use of this type as an expression

@eladsal  what is your compiler?

Microsoft cl
I think this is reacquired by C89 compilers which the current code base follows.

can you turn on C99 support or use the C++ compiler? Suppose we could change the code, but this variable declaration stuff is not really that uncommon. Boo.

can you turn on C99 support or use the C++ compiler?
Well, not currently with the procedures I have and know. Also not sure that the other errors are related.

What is the M_PI replacement for PI in types.h? Currently it is not defined as PI and raising an error

looks like that's another C89 issue:
#ifndef M_PI
  #define M_PI 3.14159265358979323846
#endif

oh, that should be an ifdef, not an ifndef:
#ifdef M_PI
  #define PI M_PI
#else
  #define   PI        3.141592654
#endif

I think in getTmpName (epanet.c) TmpDir is not declared well. Should be something like p->out->TmpDir. Probably the function should get the project as a input.


HACBS Commits List

Fixes

https://issues.redhat.com/browse/HACBS-824
https://issues.redhat.com/browse/HACBS-819
Description

Adds commits table in application commits tab and recent commits in overview tab. The table is populated with mock data as we don't have sufficient live data as of today.
Type of change

[x] Feature
[ ] Bugfix
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Screen shots / Gifs for design review

How to test or reproduce?

Browser conformance:

[x] Chrome
[x] Firefox
[ ] Safari
[ ] Edge

@abhinandan13jan Thank you for putting this together, looks good so far!
Some missing things:

Tab title
Tab description
In the name column, adding the Github logo to jump to that commit on github
Statuses within the status column, and their interactions (I gather those will be added later after we have a commit details page?)
Search bar, that search by commit or ID name (toggle or direct search)
Empty state

See this image in the deliverables doc
Many thanks!

@Ranelim Updated please have a look.

Status part will have to update later when we have a clear util/definition for a commit status

Thank you @abhinandan13jan
This looks really good!
Can the search bar search the name of the commit and the commit id?
If so, can we reflect that in the search bar placeholder text, and drop the "name" filter?
If not, and that functionality changes with the filter, the dropdown that switches between commit id and commits name should be a dropdown.
Lastly, is there an empty state?
Many thanks

@karthikjeeyar  I've updated the screenshots as per latest discussion. Merged the two use cases of Recent and regular commits into a single component rendered as per recentOnly props. Updated to use a defined empty state rather than default Table empty state.
@Ranelim I've dropped the name dropdown and am using a SearchInput(refer to the screenshots) as per patterfly Toolbar guidelines. let me know if we need to update it. The commitid is actually the commit Name. The annotation only provides two things sha_id(commitid) & sha_url (github url for the commit ). Let me know what placeholder value is to be used.
P.S: I've left the Status unpopulated as we dont have an definition/understanding of commit status as of today. I am storing all the PLR status corresponding to a commit. Once we have the status definition as per the commits details story we can apply the same function here.

@abhinandan13jan Looks excellent! Thank you!
From the overview tab, we don't need the search box for the recent commits. It is 5 tops.
Thank you for all the excellent work!

Brackets around a value is used as placeholders in the designs,  I think the branch name should be displayed as it is without square brackets [main]  ---> main. @Ranelim could you please confirm this?

Clicking on commitID and Component links takes us to non-existing routes,   @christianvogt shall we link this later once we have the details page for  commit and components, wdyt?

Yes; remove the links for now until we have a valid page to go to.

@karthikjeeyar removed links for commit & component & fixed the branch link

@karthikjeeyar Updated PR, now looks like

Additional tests to be handled in this ticket - https://issues.redhat.com/browse/HACBS-1052
/lgtm

/approve

/retest

E2e cypress

/lgtm


Update code based on the AzureIotHub 1.0.34

Remove AzureIoTHubClient class

@SLdragon,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Documentation for Fixtures

I can't find any documentation on what uses the fixtures/ directory that sails-test-helper init generates.
Some things I'd expect would be:

what format do the files need to be written in?
how are they used?
some examples

It's just part of the directory structure that you can use for your test requirements. You can put anything in there usually assets such as images, static data, etc that you use in your test cases. There's no strict guidelines on how to use it. It's just there for convenience :)

So say I put static data in there, how does that integrate with Sails? Or is it literally just a folder?

No direct relation to Sails. It's basically for your tests use.

Say you have a controller that accepts a file or image to be uploaded, you can put a sample image in the fixture directory so you can use in your upload tests.

Righto, thank you!


Create doc on customer pre-reqs to be able to deploy the TRE solution

Create documentation on what's needed from a customer side to be able to deploy and run the Azure TRE solution. Also provide high-level guidance on user roles.

Describe the technology requirements

Azure Subscription
Azure Active Directory
...

Describe the roles in the solution

Cloud admin / ops
Workspace owner
Workspace contributor
...

User roles described here
https://github.com/microsoft/AzureTRE/blob/main/docs/user-roles.md

See Deployment Quickstart and User Roles. Additional content to be developed continuously.


API key don't work

If the API key is placed, the program closes immediately and does not work until I delete a file  Settings.dat
from %appdata%  > Wallomizer

Check the latest version of Wallomizer (1.1.0). It changes the way the API Key is stored so it may help.
If it does then report success here.
If it doesn't then I'll need some more info on that issue.

The app no longer closes
But the key still doesn't work
here is what is inside the file Settings.dat
  à“ T e s t                                                                                z U s Y s r B 6 N a M H 5 p 8 I 3 R u 8 9 T t H i U L 5 9 R Q e
The key is not real
Ask me if you want more information ☺

Ok, so let's go through some troubleshooting steps:

Try to regenerate your API Key in your account settings and paste the new key into Wallomizer settings. Make sure to paste just the key itself, without spaces, etc. It should be 32 black dots in that field. Try to access the data you need key to. If this doesn't work proceed to the next step.
Open your web browser and paste into address bar next line: https://wallhaven.cc/api/v1/collections?apikey=
after this line paste your actual API Key and hit Enter.
If you get {"error":"Unauthorized"} or other error message then Wallhaven's API doesn't want to work with your API Key for some reason.
If you get the list of all your collections then something is wrong on app's side. And we will continue the troubleshooting.

The three steps did not work
But the key seemed to be at work  an  user collection But it does not work in search collection
here more info

What Windows version do you use?

Windows 10 Home
21H2

Do you use 86-bit or 64-bit application version?

64-bit

Send me whole Settings.dat file. Copy-pasting won't work with binary files.
[

](https://mega.nz/file/doFxyKTI#aC4d-Qu9zMLzbP4IoQ2zZOPw2CcPu67f9RgtLj7D9Do)
"The key is not real"

Does non API Key-related functions work properly?
yes

When I add the API Key, all non API Key-related functions stops working in search collection
Ask me if you want more information

I checked your Settings.dat file and it appears to be intact.
So it seems that issue is not in the way API key is stored or loaded.
Also it's confirmed by the fact, that you can use API key in User collections.
My assumption is that something goes wrong in Search collection algorithm during compositing of the URL query to the Wallhaven API, or during parsing stage of API's response. To check those stages I made another pre-release that will write detailed logs during that stages.
So I want you to:

Download new pre-release and run it.
Enter your real API Key into Wallomizer.
Create only one Search collection that will use API Key. Enable only 'NSFW' purity, leave the tag field empty so it will search for all wallpapers.
Close the app completely.
Run it again.
After it starts find in %AppData%/Roaming/Wallomizer/Logs file SearchCollection_loadSettings.log.
Open that file and:

If you will see some error messages then report it to me.
If there are no errors then grab the last possible URL and paste it into your web browser. Report to me what you see on that web page. Some error message or list of some data.

Send me that log file. It will contain your API Key, so you can regenerate it in Wallhaven account settings before sending.

I hope that will be enough to locate the issue, but we will see.

SearchCollection_loadSettings.log
I enter the last possible URL and I see a list of some data.
(({"data":[{"id":"x8rvwo","url":"https://wallhaven.cc/w/x8rvwo","short_url":"https://whvn.cc/x8rvwo",))

Ok. Log tells that URL formed correctly, but parsing of 'meta' failed.
That's narrowing the area of where the bug could be.
I hope this isn't too tiring for you, but I want you to go through another set of instructions:

Download yet another pre-release with even more logging enabled.
Do steps 2-5 from previous step list.
This time in %AppData%/Roaming/Wallomizer/Logs you will find 4 .log files. Send all of them to me and regenerate API Key if you want.

Internet_DownloadToBuffer.log
Internet_m_pBuffer.log
Internet_parse.log
SearchCollection_loadSettings.log

Ok. I think I found the root of all problems.
When an app downloads data list from URL it prepares buffer for download. Most of the time it has sufficient size. But in your case it's too small. So the data, that needs to be parsed placed after the end of buffer, and it's never found.
I think your 'items per page' is higher than usual API returns.
Good thing is that I can fix it now. I think update with the fix will be available in 2-3 days. I'll remove all pre-releases. You can use 1.1.0 version without API Key until then.
Thank you for your time contribution!

It's connected to Wallhaven's Browsing settings - Thumbs Per Page.
You can set it to the value 24. So you can use Wallomizer with API Key until the update.
After update you can return Thumbs Per Page to your original value.

Thank you very much. ❤


feat: use gpu if available

Codecov Report
Attention: Patch coverage is 71.42857% with 4 lines in your changes missing coverage. Please review.

Project coverage is 96.0%. Comparing base (1ca787e) to head (a4c98ab).

Files with missing lines
Patch %
Lines

...x_sentence_sentiment_kb_sent/sentiment_analyzer.py
71.4%
4 Missing :warning:

Additional details and impacted files

Files with missing lines
Coverage Δ

...x_sentence_sentiment_kb_sent/sentiment_analyzer.py
94.5% <71.4%> (-5.5%)
:arrow_down:

----
🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


Streaming: TPC-H Q2

create materialized view tpch_q2 as
select
        s_acctbal,
        s_name,
        n_name,
        p_partkey,
        p_mfgr,
        s_address,
        s_phone,
        s_comment
from
        part,
        supplier,
        partsupp,
        nation,
        region
where
        p_partkey = ps_partkey
        and s_suppkey = ps_suppkey
  and p_size = 4
  and p_type like '%TIN'
        and s_nationkey = n_nationkey
        and n_regionkey = r_regionkey
        and r_name = 'AFRICA'
        and ps_supplycost = (
                select
                        min(ps_supplycost)
                from
                        partsupp,
                        supplier,
                        nation,
                        region
                where
                        p_partkey = ps_partkey
                        and s_suppkey = ps_suppkey
                        and s_nationkey = n_nationkey
                        and n_regionkey = r_regionkey
                        and r_name = 'AFRICA'
        )
order by
      s_acctbal desc,
      n_name,
      s_name,
      p_partkey
limit 100;

Needs query unnest

Needs query unnest

#1897 is working on unnest subquery.

Can this be closed?

Checked that it is running on CI.


CMake/Build OUTPUT view does NOT have hyperlinks

Brief Issue Summary
the CMake/Build Output view will show compiler output. it is black/white text WITHOUT any hyperlinks to the file/line# that is a error/warning
Expected:

hit the build button
the CMake/Build Output view would have hyperlinks of file/line# where there are errors/warnings. so if those are clicked then a file would load in the editor window at the associated line#

Apparent Behavior:

hit the build button
the Output view is filled with compiler output. (see the attached screenshot). there is NO link (file/line#) recognition. so it's NOT possible to click in the CMake/Build Output view to load the file that has the associated error/warning

Platform and Versions

Operating System: windows 10 (Windows_NT x64 10.0.19042)
CMake Version: 3.18.20081302-MSVC_2
VSCode Version: 5.6.0
CMake Tools Extension Version: 1.7.2
Compiler/Toolchain: NOT working on both compilers - clang 11 / gcc 10.3.0

Other Notes/Information
issue #1237  advises to open a new issue if experiencing similar problems. there are NO other extensions being used except for the microsoft C/C++ plugin here
in the attached screen shot, the files shown are relative - does that matter?
ONE other consideration is that i'm using my own custom Cmake build setup for cross platform but also for different compilers where there are also a number of other defines (or Cmake setting variables) that could be changed. so that's all done through my own CMakeLists.txt file - NOT through the ### BUGGY GUI of the - Cmake Tools extension.
i have got both ECLIPSE IDE & clion ide  (cmake output) to work using my custom cmake configuration. maybe my custom cmake configuration is the problem? i DON'T know but the Cmake Tools extension GUI kinda seems to be getting in the way (because i control everything through my CMakeLists.txt file NOT ### BUGGY GUI)

You closed the issue right after opening it, probably meaning that you sorted out. It would be nice if you pointed out what was the problem and how you dealt with it.

i have some living situation issues. i DON'T know if this is also the
regular ide developers (or only the vscode-cmake-tools). but, i'm hoping
it's also just the vscode ide developers & NOT the cmake_tools ONES.
so i dumped the cmake plugin because all wizards are completely inadequate
okay anyways. my code base is now wired up to just the regular vscode
ide (with NO plugins that i remember right now except for NON microsoft
stuff to get stuff working - but i'd have to look)
so i just use CMAKE variables dude & it controls compiling (an automated
build system) ... tested over linux, windows & mac machines [but only
controlled through the windows ONE].
it also switches between using whatever compilers are installed on those
operating systems. like on windows i can compile using the visual studio
compiler or gcc or clang or intel compiler on windows
so yeah your cmake plugin totally sucks I.M.O..
On 10/8/2021 1:11 AM, Francesco Pretto wrote:

You closed the issue right after opening it, probably meaning that you
sorted out. It would be nice if you pointed out what was the problem
and how you dealt with it.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-cmake-tools/issues/1858#issuecomment-938437157,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APPE4K74UVSKFKXBCKJ6QNLUF2RRJANCNFSM44ON4N3A.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

& here's my fucking resume assholes
On 11/25/2021 3:53 AM, @.*** wrote:

i have some living situation issues. i DON'T know if this is also the
regular ide developers (or only the vscode-cmake-tools). but, i'm
hoping it's also just the vscode ide developers & NOT the cmake_tools
ONES.
so i dumped the cmake plugin because all wizards are completely inadequate
okay anyways. my code base is now wired up to just the regular vscode
ide (with NO plugins that i remember right now except for NON
microsoft stuff to get stuff working - but i'd have to look)
so i just use CMAKE variables dude & it controls compiling (an
automated build system) ... tested over linux, windows & mac machines
[but only controlled through the windows ONE].
it also switches between using whatever compilers are installed on
those operating systems. like on windows i can compile using the
visual studio compiler or gcc or clang or intel compiler on windows
so yeah your cmake plugin totally sucks I.M.O..
On 10/8/2021 1:11 AM, Francesco Pretto wrote:

You closed the issue right after opening it, probably meaning that
you sorted out. It would be nice if you pointed out what was the
problem and how you dealt with it.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-cmake-tools/issues/1858#issuecomment-938437157,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APPE4K74UVSKFKXBCKJ6QNLUF2RRJANCNFSM44ON4N3A.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Moderating some comments above.  We intend for this repo to be a safe place for developers to collaborate.  Please keep it kind in here.
Microsoft Open Source Code of Conduct

For what it's worth, the CMake extension is not responsible for hyperlinks in the Output panel. VS Code has an algorithm to intercept the output and present hyperlinks in that panel.   VS Code has an algorithm to intercept
the output and present hyperlinks in that panel. Any issues with the
hyperlinks should be opened in the VS Code repo though I suspect the
challenge here is that relative paths are going to be assumed to be
rooted by the |${workspaceFolder}|, not the build directory.
https://github.com/microsoft/vscode/issues/new/choose
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-cmake-tools/issues/1858#issuecomment-981789769,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APPE4K4XUAIEEWE3DOPFAEDUOORS5ANCNFSM44ON4N3A.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Sorry @messedup-loser, but if you can't play nice here, you will be blocked.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-cmake-tools/issues/1858#issuecomment-981823315,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APPE4K5L5X3CRTR7F3TU2Y3UOOWDRANCNFSM44ON4N3A.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I'm sorry that there is so much pain and hurt in your life, but the way you express it here will not be tolerated.  I hope that you can find good resources to help you deal with it.  You have officially been blocked.


Upgrade to Polkadot 0.9.23

https://github.com/paritytech/substrate/compare/polkadot-v0.9.22...polkadot-v0.9.23
According to https://github.com/paritytech/polkadot/releases/tag/v0.9.23 there's no pending migrations
Some notable changes:

https://github.com/paritytech/substrate/pull/10719
https://github.com/paritytech/substrate/pull/11389

CI pass, I'll merge this
@tolak @h4x3rotab since I change some code relate to you, please double check

@jasl If the into_account_truncating returns the same result with old into_account, everything should be fine.

Explicitly note that existing AccountIdConversion is truncating and add fallible try_into... paritytech/substrate#10719

according to https://github.com/paritytech/substrate/pull/10719/files#diff-514e38151fb6c7e95145e3cc8bf65af2d7e48fc0b7a7325fe5b0be8f714c896b
yes


Set apply button to disabled even if all  are untouched/pristine?

Is your feature request related to a problem? Please describe.
First, thanks for creating such a great open-source project!
Consider a dialog with two input with required validator:
input(type="text" name="title" v-validate="required" v-model="title")
input(type="text" name="desc" v-validate="required" v-model="desc")
button(:disabled="$validator.errors.any()") Save

which is used to create a new item like this:
{ title: "Hello", desc: "World" }

When I open this dialog, all properties should be empty:
{ title: "", desc: "" }

At this moment of untouched form, I wish the button should be disabled.
However, $validator.errors.any() becomes true after one of following ways:

User input something AND backspace to empty.
Or, after calling $validator.validateAll()

Describe the solution you'd like
Is it possible to implement a getter, for example, $validator.summary:
{
  "untouched": true,
  "touched": false,
  "dirty": false,
  "pristine": true,
  "valid": false,
  "invalid": true,
  "validated": false,
  "pending": false,
  "changed": false
}

, which can be used without $validator.validateAll() or touching?
Describe alternatives you've considered
(I don't sure what should I input in here)
Additional context
No.

You might need to read about mapFields helper which can be used to generate flags for your forms.

You can generate flags for the entire VM:
export default {
  computed: {
    ...mapFields({
      flags: '*'
    })
  }
};

Just realized this isn't mentioned in the documentation, will add it. On the other note of tedious code, you could always create your own helpers and re-use it.


Feature request: Show output for running, in-progress tests

The output window that would show the output of the test runner won't be available until the test has completed running. Therefore we cannot see outputs for a test that is running (for quite a long time): "No output for test_xxxxx".
It'd be great if there is a way to see the progress, or some intermediate outputs streamed in the terminal for tests that are still running and in progress.

Use :h neotest.run.attach()to see the output of the process as it runs

I see! If I want to dispatch to either neotest.run.attach or neotest.summary.open depending the status of a test case (whether it's running or status), I'll need to have a programmatic API. How to get the (current) test object on the cursor or access its status (or other fields) programatically?

You'll have to create a custom consumer. I've just added some small docs neotest.consumers but the best examples will be the existing consumers. It'll also require using the plenary async library.

Closing this as the plugin allows for the desired behaviour

I still think this is worth adding as a built-in component because it would be universally useful (either show the progress if in progress, or open the result if completed).
This is how I ended up adding my own custom consumers, following the suggestion:

neotest.setup {
  ...
  -- Add custom consumers on your own
  consumers = {
    attach_or_output = M.custom_consumers.attach_or_output(),
  },
}

function M.custom_consumers.attach_or_output()
  local self = { name = "attach_or_output" }
  local neotest = require("neotest")

  ---@type neotest.Client
  local client = nil

  self = setmetatable(self, {
    __call = function(_, client_)
      client = client_
      return self
    end,
  })

  -- neotest.attach_or_run.open()
  function self.open(args)
    args = args or {}
    local pos = neotest.run.get_tree_from_args(args)
    if pos and client:is_running(pos:data().id) then
      neotest.run.attach()
    else
      neotest.output.open()
    end
  end

  return self
end

Usage example:
command! -nargs=0 NeotestOutput    lua require("neotest").attach_or_output.open()


Compile error on code that it seems should compile

When I try to compile this sample program using scala meta and the latest macro paradise I get a compilation error that "package scala.meta is not a value"
import scala.meta._

/**
	* Created by mhammons on 6/21/16.
	*/
object Test extends App {

	inline def macroThing = meta { q"x < y" }

	val x = 5
	val y = 6

	macroThing
}

this is my build.sbt for the file:
scalaVersion := "2.11.8"

addCompilerPlugin("org.scalamacros" % "paradise" % "3.0.0-M3" cross CrossVersion.full)

libraryDependencies += "org.scalameta" %% "scalameta" % "1.0.0"

resolvers += Resolver.sonatypeRepo("releases")

Any ideas why I'm hitting this error? It seems like it would be able to compile given the examples for scala meta.

Current prototype only supports macro annotations. An analogue of def macros will be implemented later.

Ok, thanks a ton.


delete,create,ask

create asset
delete asset
ask about a code

https://drive.google.com/file/d/1_7geW4MSUVKagqv_FAe98vwtxwtxvwn2/view?usp=drivesdk
https://drive.google.com/file/d/1XOpsE7SGnZRv-Zu1aTo693Y1a4bhw2ny/view?usp=drivesdk

https://github.com/Bishoy-at-pieces/plugin_sublime/tree/promptpipeline
Here is the code until the sdks gets updated


Add patch for macro redefined warning

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender


Update dockerfile_best-practices.md

Proposed changes
Without this line, it is not fully clear how the postgres is passed by the first parameter

Well spotted. Let's ship it 🚀


Tegola v0.13.0 not running on Windows Server 2019

Everything is in the same folder. It runs fine on my Windows 10 workstation but won't run on Windows Server 2019.

Config.toml
[webserver]
port = ":9090"              # port to bind the web server to. defaults ":8080"

	[webserver.headers]
	Access-Control-Allow-Origin = "*"
	Cache-Control = "no-cache, no-store, must-revalidate"

[[providers]]
name = "PhotoPointsGeoPkg"
type = "gpkg"
filepath = "photopoints.gpkg"

[[providers.layers]]
name = "photopoints"
tablename = "PhotoPoints"
id_fieldname = "fid"
fields = ["Id"]

# maps are made up of layers
[[maps]]
name = "sussex_photopoints"                  # used in the URL to reference this map (/maps/zoning)

	[[maps.layers]]
	name = "photopoints"
	provider_layer = "PhotoPointsGeoPkg.photopoints"  # must match a data provider layer

@donnyv Interesting that this is working on your Windows 10 box but not Windows server. Looking at the panic, it appears to originate from this line:
https://github.com/go-spatial/tegola/blob/671145575009ce69728c1f1b0551bbb6d40911f2/provider/gpkg/gpkg_register.go#L323
That line is assuming that it was able to get a bounding box for the table PhotoPoints. The metadata call was made ealier in this file at:
https://github.com/go-spatial/tegola/blob/671145575009ce69728c1f1b0551bbb6d40911f2/provider/gpkg/gpkg_register.go#L244
The query for the metadata can be found at:
https://github.com/go-spatial/tegola/blob/671145575009ce69728c1f1b0551bbb6d40911f2/provider/gpkg/gpkg_register.go#L162-L168
Could you try running the query and posting the results? I think that will give us some insight into what's going on.

I ran the query on my desktop and server. Got the same result.

I downloaded version 0.12.1 and tried that but still same error.

Its the geopackage file, somethings wrong with it. I tried an older version and it works fine.
Sorry for the scare.

@donnyv all good! I wonder if there's an extra check we could put in place to avoid the panic in the future. If you figure out the source of the issue, please report back as it would be great to harden the data provider.

The layer name was a different case then what was in the config file. The one that didn't work was all lowercase and one that did had title casing.
The naming of maps and layers should be case in-sensitive.

@donnyv excllent! Thank you for the report. I'm going to spin up a new issue as a bug that can be addressed.


Exception in thread "Thread-0" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 741562 path $

Good morning, I tried to run the demo project and generate AL-objects from the seminar.management.mdal file. I used the latest BC version and installed JRE8 as mentioned.
But when I click to "Generate AL File" I get following error:
Exception in thread "Thread-0" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 741562 path $
Attached the full Error Output
Error.txt
Can somebody help?
BR

Just released version 0.3.1 of mdAL and its corresponding VS Code extension. Please update your extension installation. The exception should not be thrown anymore.
I am closing this issue. If you encounter further issues please reopen.


Remove host details

In the current release, the host variable in invenio.cfg is already set to <IP_ADDRESS>, so these instructions are no longer needed.

Thanks a lot @tmorrell !

Thanks a lot @tmorrell !


[Feature Request] Customization

Any possibility that there can be customization of the app such as font size?

This would a good feature for those people such as myself with higher definition screens and poor eyesight.

Totally agree - larger font would be AWESOME


5x swifter CPython bindings and first NodeJS bindings

So why would anyone replace the easy-to-use PyBind11 with almost 2,000 lines of pure CPython bindings?! Of course, to lower the latency! PyBind11 wraps every C++ object with a smart pointer, puts a hash table next to it, and addresses function pointers with std::string key lookups 🤯
Let's see where it gets us if benchmarking with the "Leipzig1M" dataset. The bandwidth-oriented functions are just as fast as in the past:

Hashing the dataset: 77 ms vs 16 ms. 4.5x faster
Counting the number of "the": 151 ms vs 45 ms. 3.3x faster
Split all whitespace-delimited words: 782 ms vs 338 ms. 2.3x faster
Split around every "the": 240 ms vs 48 ms. 5x faster

What about the latency-oriented ones?

Find the first whitespace: 1ns vs 3ns 3x slower
Partition around the first whitespace: 73ms vs 33ns. 2212x faster

:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Expose indexer opts

Pull Request
Expose indexer options in order to manage the consumed memory and threads during indexing.
--max-memory (env: MEILI_MAX_MEMORY): Humanized maximum memory used by the indexer.
--indexing-jobs (env: MEILI_INDEXING_JOBS): number of threads used by the indexer.

Thanks, @ManyTheFish 💪, we might decide to explain that in the documentation, it will go through a specification for each newly exposed env var and CLI option anyway.
We may want to keep by default the values that we have chosen at the engine level and to replace it with the user values as soon as they are filled in. What do you think about it?

@gmourier, this draft PR is not meant to be merged for now; I want to know if it fits the need of the  @meilisearch/saas-team before. 🤓
The default behavior is not changed, these new options will override it. 🙂

bors try

Closing this since v0.27.0 is out!


Some ES6 syntax

Just changed some functions implementation, using arrow functions now (and assigning them to consts).

Thanks for the contribution! :+1:


Conformal Training examples

Add examples for

[ ] MNIST
[ ] German Credit

and cross-check results in paper

Which paper should we refer to?

Sorry, somehow missed this comment @ceferisbarov
Here's the paper: https://arxiv.org/abs/2110.09192.


Add the basic structure of documenter

For awareness this PR creates the basic Documenter.jl structure (inspired heavily by their approach to their own docs) and will also manage deployment. @SamuelBrand1 good to hear if you think this is going in the right direction and if there is anything we should do differently to the Documenter.jl approach (as I am just implementing that currently).

At a glance this looks good.
This is (IMO) an important feature (beautiful docs); I'll do a PR from this branch and try adding some pages using the .jl script -> Documenter flavoured markdown (using Literate) and see what happens when I try and render locally.
The typical environment management is to have a docs environment (iirc), this might just end up being the same as the test env but with Documenter.

I'll do a PR from this branch and try adding some pages using the .jl script -> Documenter flavoured markdown (using Literate) and see what happens when I try and render locally.

Is this actually the workflow we want or do we want to write these in some quite of true literate format (i.e quarto or similar?). My instinct was that these should be in the docs file and easier to read than interact with as code (i.e favouring having text not as fancy comment strings) but perhaps that isn't where Julia is?

I'll do a PR from this branch and try adding some pages using the .jl script -> Documenter flavoured markdown (using Literate) and see what happens when I try and render locally.

Is this actually the workflow we want or do we want to write these in some quite of true literate format (i.e quarto or similar?). My instinct was that these should be in the docs file and easier to read than interact with as code (i.e favouring having text not as fancy comment strings) but perhaps that isn't where Julia is?

Documenter is looking for documenter flavour markdown (I'll call is dfm) to run when you render your documentation (but obviously gfm works too but won't run and then generate plots/output in your documentation) so upstream from that we've got options.
Some options

My typical workflow: Fancy comment strings in a usual .jl file.

Upside: you can just run it from julia from within the doc env to check if it works before rendering to dfm.
Downside: You have to be able to read markdown script in your head pretty well.

Quarto: .qmd file with nice visual mode for rendering markdown along side code chunks.

Upside: Nice format, lots of options to render to.
Downside: Have to set up Quarto with jupyter to run code blocks. Outputs to gfm so then you'd need to change it to dfm to get the nice documenter features you want.

Others... Haven't tried so much.

I don't think we need to all do the same workflow to generate the dfm files we want so long as it works?

Okay for simplicity lets stick with Literate. To get this to be automated though we would need to add a call to Literate.jl in make.jl rather than committing the rendered docs?

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

Project coverage is 97.74%. Comparing base (f55cd6f) to head (67a4d96).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #93   +/-   ##
=======================================
  Coverage   97.74%   97.74%
=======================================
  Files           6        6
  Lines         133      133
=======================================
  Hits          130      130
  Misses          3        3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Crashes when trying to remove folder under Singularity container

this change causes an issue running the sct install while building a singularity container. More details here.
Issue likely related to:

https://stackoverflow.com/questions/42392600/oserror-errno-18-invalid-cross-device-link/42400063
https://github.com/pypa/pip/issues/103
https://github.com/pypa/pip/issues/6943

A possible solution would be to copy the folder/file instead of moving it.

When replacing shutils.move by shutils.copytree, i get the error below when the unzipped folder is a collection of files, instead of a single folder:
julien-macbook:~ $ sct_download_data -d binaries_centos

--
Spinal Cord Toolbox (git-jca/2472-shutils-move-91beb0badf165195caf63abb978a2902059884bc*)

Trying URL: https://osf.io/8kpt4/?action=download
Downloading 20190930_sct_binaries_linux_centos6.tar.gz...
Status: 100%|##################################################################################################| 98.1M/98.1M [00:03<00:00, 29.3MB/s]

Create temporary folder (/var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20191003145532.534740-x41qam0z)...

Unzip data to: /var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20191003145532.534740-x41qam0z

Check if files or folder already exists on the destination path...
Traceback (most recent call last):
  File "/Users/julien/code/sct/scripts/sct_download_data.py", line 247, in <module>
    res = main()
  File "/Users/julien/code/sct/scripts/sct_download_data.py", line 160, in main
    copytree(source_path, os.path.join(dest_folder, extracted_files[extracted_files_paths.index(source_path)]))
  File "/Users/julien/code/sct/python/envs/venv_sct/lib/python3.6/shutil.py", line 315, in copytree
    names = os.listdir(src)
NotADirectoryError: [Errno 20] Not a directory: '/var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20191003145532.534740-x41qam0z/isct_propseg'

For code clarity and lower maintenance, I suggest to enforce that every files downloaded using sct_download_data points to a zip files, and that the unzipped file only generates a single folder.


upgrade SQLAlchemy and pyright

Based on https://github.com/pandas-dev/pandas/issues/50558#issuecomment-1537477148, we could upgrade SqlAlchemy to 2.0.  Doing that revealed an issue in those tests and some of the typing.
Also bumped pyright to 1.1.306, but the default value for useLibraryCodeForTypes changed in that version, so added that in pyproject.toml.  Without that, some of the plotting tests fail because matplotlib doesn't have typing yet.

Thanks @Dr-Irv !


How can i change !game and !title

Hi,
I'm using tmi js and making my own bot for my channel. I was looking at events and commands. I just want to change stream title and stream game names. But i couldn't see anything. Can you please help me.
And one more things.
Can i add shortcut to !game.
For example:
When i write !game pubg, then set the game playerunknown's battlegrounds. Something like that.
Thanks.

Actual behaviour:
Expected behaviour:
Error log:
Insert your error log here

Server configuration

Operating system:
Node version (if applicable):
NPM version (if applicable):
tmi.js version:

You may be better off asking at the official Twitch third-party forum as this isn't an issue with tmi.js. You can also find all of the information you want by looking at the official Twitch docs.
The "Update Channel" endpoint will let you update a channel's title and game. Requires the channel_editor scope.
You could keep a list of "shortcut" names like this:
const gameAliases = [
		{
			name: 'PLAYERUNKNOWN\'S BATTLEGROUNDS',
			aliases: [
				'playerunknowns battlegrounds',
				'pubg'
			]
		}, {
			name: 'Fortnite',
			aliases: [
				'fn',
				'fort'
			]
		}, {
			name: 'Call of Duty: Black Ops 4',
			aliases: [
				'bo4',
				'black ops 4',
				'blackops 4',
				'call of duty: black ops 4'
			]
		}
	];

function findGameName(input_) {
	let input = input_.toLowerCase();
	let game = gameAliases.find(n =>
			input === n.name.toLowerCase() || n.aliases.find(a => a === input)
		);
	return game ? game.name : input_;
}

All "aliases" values should be lower cased already. Could also use a fuzzy string matching package in this case.
Usage:
findGameName('fortnite'); // Fortnite
findGameName('fn'); // Fortnite
findGameName('playerunknown\'s battlegrounds'); // PLAYERUNKNOWN\'S BATTLEGROUNDS
findGameName('pubg'); // PLAYERUNKNOWN\'S BATTLEGROUNDS

You could also use the "Search Games" endpoint.


Add support for Dreame D9 / dreame.vacuum.p2009

Hi,
any chance you could implement support for the Dreame D9 (dreame.vacuum.p2009) vacuum cleaner robot?
Current behavior on 0.9.2 is same as #24 - configured as fan switch, but switches off after 1-2 seconds. When the robot is actually running, the switch is on. There is also only one switch present in HomeKit.
Thanks! Filip

Yes, this should be straightforward :) I will add support for that vacuum in the next update. Will let you know when it is ready!

Awesome, can’t wait for it 👍

Perfect, thanks can't wait anymore ;)

Support for the vacuum cleaner is now added in version 0.9.3. Could you please try it out and let me know if it works?

Works like a charm!
All switches are present and working as expected, thank you so much!!!

Hi Guys,
Please I have an issue with my Dreame Vacuum D9 (dreame.vacuum.p2009) which is dead!! (No interaction, no light, no reaction, ...) before that I have switched my Mi Home account from Singapore to French ( because I wanted to link it with my Alexa :( )
It was fully charged and it have requested me to update the firmeware but after that I disovered that the robot is dead and I tried to reset it but no reaction. from that moment I can't do anything as it is fully Off and no signe of reactvitiy, is like the systeme has been erased or its Soft have been broken due to the firmeware update.
Can you please help me to resolve this issue?
For information, I installed the token extractor and I can see the Vaccum linked in my account Singapore and I can see also its token.
Many thanks for your help and support


S K

9172649583 I'd
I'd

Plz send hackar apps yalla ludo
On Wed, Dec 25, 2024, 9:23 PM SK-ai28 @.***> wrote:

9172649583 I'd
I'd
—
Reply to this email directly, view it on GitHub
https://github.com/Hacker1hassan/Hack-Yalla-ludo/issues/2, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BKDLCJ5ZLVIYCA5ED4Y4PK32HLZYXAVCNFSM6AAAAABUGHHRZCVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42TSMBUHEZDIMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


5.0.x

Material Table (mat-table)
Help me to display a row with message "No records to display" if data is empty.
Thanks,
Roop.

Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.
(this is a canned response)


api hard to find in docs overview

 Issue by timsuchanek
Saturday Jun 10, 2017 at 10:29 GMT
Originally opened as https://github.com/graphcool/ui-feedback/issues/46

@timsuchanek Can you add some more context and assign the correct component/ label. Alternatively close the issue :-)

I assume this is resolved in the new docs design.


[cudamapper] Parser upgrade, overlapper perf and accuracy improvements

Switch to kseqpp parser
Switch to index sizes defined in MB not number of reads (more stable)
Parser performs read name updating in parallel on host using omp
Solved two memory leaks - one by adding clear() method to overlap (temporary solution) and the other by switching from async tasks to std::threads
Added distance_difference metric to checking equality of overlaps during fusing - this makes fusing anchors more stable and accurate.
Using thrust pinned allocator for std::vector<Overlap> to improve D2H bandwidth

@mimaric @akkamesh  apologies for the size of this PR

@vellamike
Do we really need pinned memory? I'd be careful with using pinned memory for large arrays because it often hurts the performance if it is not implemented correctly. We should avoid allocating/deallocating/re-allocating the pinned memory like we are doing in this PR, it is an expensive operation.
If memcpy is not a primary bottleneck then we should avoid using pinned memory. But if using pinned memory seems to give substantial performance benefit on all the benchmarks and all the systems then let's get that in a separate PR. Its easier and cleaner to implement this using a custom host_buffer which I'm currently working on as a part of Issue-#227.

After benchmarking, the pinned memory doesn't give a big perf boost. I have removed the pinned memory allocator.


ValidableContract, CleansAttributes fails save when used inside job.

I have been stuck on this annoying bug in a long time and finally realised it was caused by validable.
The problem is when trying to create an model inside a job the eloquence Hookable save() returns false.
If I however set skipValidation = true then it passes the save, but saves an empty model, because CleansAttributes just removes everything.
If I however removes the implementation of CleansAttributes and has skipValidation = true, then I saves the model as intended.
Running Laravel 5.2

I have the same problem. If CleansAttributes interface is used, then nothing is saved on model.

What was exactly the problem here?

As said in the bug description, When creating a model inside a job, then the save function fails.
It looks like a bug with CleansAttributes.


cant select model

When I have more than one model on the buildplate, I am unable to select certain Models. I am only able to select the first model that I added.
System: Ipad Pro 11” 2020 (2nd gen)
How to reproduce:
Put more than 1 model on the build plate -> Try to select second model -> Nothing happens…
Expected behaviour:
Model is selected manipulation menu(move rotate mirror…) opens

yes, it works now.
Thanks for the fast fix :)
this issue can be closed now


Unicode in report name not supported

In MvcReportViewer/AlanJuden.MvcReportViewer.ExampleWebsite/Views/Report/ReportViewer.cshtml line 123 you need to use @HttpContext.Current.Server.UrlEncode(Model.ReportPath) to support Unicode in report names. I got in to trouble when my report with name 'G01-Åldersfördelning av revisionspatienter per organisation' was rendered.
I also changed:
protected virtual System.Text.Encoding Encoding { get { return System.Text.Encoding.ASCII; } }
to:
protected virtual System.Text.Encoding Encoding { get { return System.Text.Encoding.Unicode; } }
I don't know if it has any impact though but in general I think you should use Unicode if support for other languages other than English is desirable.

@martindlarsson: I've checked in a fix for this. However in my testing, changing the override for the Encoding property to Unicode from ASCII on the ReportController made bad things happen! I did modify the logic to pass in the appropriate encoding into the SSRS server and it spits out some crazy stuff! I have however changed the .cshtml file to include .UrlEncode() anywhere that I'm using the Model.ReportPath.


Doesn't work on full screen.

When tibia is in fullscreen mode, tibialyzer dont show any of it's informations. There is a way to solve this?

This might be hard without hooking the process and drawing the overlay using DirectX or something like that. This would mean actual manipulation of the process, which is probably against the rules.

There is no legal way to solve this. When you play in fullscreen mode, you are giving Tibia exclusive access to that monitor, meaning no other windows can render on that screen. The only way to then render onto that screen is to render onto the Tibia Client window directly, which is against the rules as you would be directly altering the Tibia client.

I'm closing this because I don't see any possible way of solving this issue without violating the Tibia rules. If anyone has any suggestions on how this could be done, you can reopen this issue.


Add Android testing to Travis

This PR adds Android testing for Travis.
There's not much to Android for Travis. First the Android SDK and NDK are installed for Android builds.
Second, setenv-android.sh is called to set CC, CXX, AR, AS, RANLIB, CPPFLAGS, CFLAGS, CXXFLAGS. setenv-android.sh also sets the $PATH so the toolchain is on path. CFLAGS and CXXFLAGS were taken from an Android sample project provided by the Android folks. They are the same flags used by ndk-build.
Third, the four Android platforms are configured, built and installed - android-arm, android-aarch64, android-x64 and android-x86_64. The installation directory is ANDROID_PREFIX="$HOME/android$ANDROID_API-$ANDROID_CPU".
15-android.conf was gutted and replaced with a streamlined version. Because setenv-android.sh sets the entire cross-compile environment the extra cruft could be removed.
.travis.yml was also gutted. Travis only needs to perform the Android builds so everything else was removed. Travis does perform two native Linux/amd64 builds to ensure things are working as expected.
I think there are two outstanding issues. First, android-arm has ASM disabled. Be careful if your enable it with, say, perlasm_scheme => "linux32". The code will compile, but it segfaults on ARM devices in general (like a Beagleboard or a CubieTruck). It appears there is (or was) some bad code generation with Clang. Also see Clang miscompiles ARMv7-a assembly module in the LLVM bug tracker (it uses the Cryptogams code to demonstrate the problem).
The second issue is, android-x86_64 has ASM disabled. Despite the choice of bn_ops, Clang uses 32-bit registers for crypto/bn/asm/x86_64-gcc.c. x86_64-gcc.c uses 64-bit inline asm, so it results in a compile error (like addq %eax, %esi).
setenv-android.sh is rooted in an old script Tim Hudson provided about 10 or 12 years ago. It was usurped and modified throughout the years. Now it has come full circle and made its way back to the project.
I looked at integrating into the existing .travis.yml, but the file is too busy. I did not feel comfortable changing it because the Android tests meant moving away from matrix expansion.
If OpenSSL does not want to add this PR to Master, then please consider keeping it in a separate branch and setting up a Travis CRON job to build the branch once a week or so. Also see GitHub Help: Checking out pull requests locally.
Checklist

[ ] documentation is added or updated
[X] tests are added or updated

I'm not sure why demos/pkcs12/pkread.c and demos/pkcs12/pkwrite.c are in this PR. I did not touch them, and I rebased off master before the PR.
More Git goodness...

If OpenSSL does not want to add this PR to Master

I think the right answer is to get this PR up to a state where we can merge it into master. This will mean we see android issues at the same time as other issues and the dev team can see that it needs fixing if we break it. Having it in a separate branch is less than ideal - the branch will inevitably fall behind or break with merge conflicts and lose its usefulness - and will get less attention from the dev team.
In order for that to happen we can't just replace all the existing travis jobs with android ones - so we would need to integrate the two sets of jobs together into one travis.yml file.
I also wonder whether the work that setenv_android.sh is doing might be better done by the Configure script. Ideally - and as much as is possible - we don't want to have different build steps for different platforms. Perhaps @levitte might have some thoughts on this.

Thanks @mattcaswell,

In order for that to happen we can't just replace all the existing travis jobs with android ones

Lol... I know. I side-stepped it once I got a good look at the existing .travis.yml.
I started to update .travis.yml on a separate branch. Let me get back on it and see how things go.. Once the .travis.yml updates are done, integrating Android will be as easy as copy/paste from this PR.

I also wonder whether the work that setenv_android.sh is doing might be better done by the Configure script...

OK, thanks. That may be a difference in philosophy. In my mind's eye, it is the user's responsibility to set the tools for configure and make. Once the tools are set, it is configure's job to build a working configuration to be made (like adding armv4_aes.s).

Sorry Matt. I tried to sync with upstream and rebase but Git blew away my changes.  It cannot perform the simplest of workflows developers need.
This PR is now dead.

Sorry Matt. I tried to sync with upstream and rebase but Git blew away my changes.  It cannot perform the simplest of workflows developers need.
This PR is now dead.

Ah. That is a great shame.

The commit(s) might still be in your local repo.  Perhaps @mspncp can offer some git wizard tips to find them, and then "git show {commitid}" would work.

The commit(s) might still be in your local repo. Perhaps @mspncp can offer some git wizard tips to find them, and then "git show {commitid}" would work.

I guess the magic could be related to some reflog stuffs...

@noloader it seems like you deleted your openssl repository clone? Normally, this would be no problem, because the openssl/openssl repository has references pointing to the heads of all pull requests, so you would be able to recover your branch using the following commands:
~/src/openssl$ git fetch https://github.com/openssl/openssl.git  refs/pull/11323/head
From https://github.com/openssl/openssl
 * branch                  refs/pull/11323/head -> FETCH_HEAD

~/src/openssl$ git checkout -b pr-11323-reloaded FETCH_HEAD
Switched to a new branch 'pr-11323-reloaded'

~/src/openssl$ git show --oneline --no-patch HEAD
c08dea30d4 (HEAD -> pr-11323-reloaded) doc: Update the reference from draft to RFC

Unfortunately, force-pushed to commit c08dea30d4d127412097b39d9974ba6090041a7c, which is a commit on the master branch. That's the reason why GitHub does not show any diffs anymore.
I looked in all my local working copies, but did not find an older version of your branch. But if you still have the local working copy which contained your branch, you might be able to recover the lost branch yourself using the git reflog. You find some instructions how to do it in Section 10.7: Git Internals - Maintenance and Data Recovery of the Pro Git book  (scroll down to 'Data Recovery').
HTH


Updated dock_win.handle()

Description
.hide()
.set_shape(Some(win_shape))
Resetting the window using this method caused issues with ScrollGroup's
Children disappearing on Window re-open, after second re-open it crashes the application
Removing these two lines fixed the underlying issue.
Also added hiding of the main window when taskbar item is unfocused from being pressed.

Thank you


The first tag was not being split correctly resulting in all unpaired

reads.
@loeblab I think this is a fairly serious bug if I understand it correctly.  Here are some SAM records on which to test.  Prior to this fix, an unpaired consensus is made.  After this fix, a proper double-strand consensus sequence is made.
TGGCGGGAAATGAACAAATCTCTT:1:4	99	1	115250972	255	108M	=	115251247	383	AATCAAATGTTTTAAACACTTTAGACCTCAGTACTTTCAGAAAGGGTGTCATATGGAAAATGTGCAGAAGAGGATAGGCAGAAACTCAAAAAACATATAGACAATAAC	JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ
AACAAATCTCTTTGGCGGGAAATG:2:3	163	1	115250972	255	108M	=	115251247	383	AATCAAATGTTTTAAACACTTTAGACCTCAGTACTTTCAGAAAGGGTGTCATATGGAAAATGTGCAGAAGAGGATAGGCAGAAACTCAAAAAACATATAGACAATAAC	JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ
TGGCGGGAAATGAACAAATCTCTT:2:4	147	1	115251247	255	108M	=	115250972	-383	ACCAGTGTGTAAAAAGCATCTTCAACACCCTATAAAAGGAAAAAATGAAAAAAAATGAGAGAGCTAGCTCAACGGACACAATCCAAATTATAAGCTCTCTTGCATTTG	JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ
AACAAATCTCTTTGGCGGGAAATG:1:3	83	1	115251247	255	108M	=	115250972	-383	ACCAGTGTGTAAAAAGCATCTTCAACACCCTATAAAAGGAAAAAATGAAAAAAAATGAGAGAGCTAGCTCAACGGACACAATCCAAATTATAAGCTCTCTTGCATTTG	JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ

I think this also underscores the idea that we should not be modifying and parsing the read name, but instead using the SAM tags to store metadata about a read, as is the purpose of SAM tags.

I'm open to doing this. What would you propose to put in as the read
name? I'm open to suggestions.
On 4/13/16 12:38 PM, Nils Homer wrote:

I think this also underscores the idea that we should not be modifying
and parsing the read name, but instead using the SAM tags to store
metadata about a read, as is the purpose of SAM tags.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/loeblab/Duplex-Sequencing/pull/27#issuecomment-209616037


Enable PVS-Studio

Fixed #37 , using right codestyle

Please revise BPU code one more time, the duplicated lines still exist here.

Sorry, but I dont see. Git says, that it is "already up-to-date", when I try to merge22.10.2017, 14:10, "Pavel I. Kryukov" notifications@github.com:Please revise BPU code one more time, the duplicated lines still exist here.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

It is up-to-date with your fork, but not with th upstream. To see differences vs. upstream, use this command: git diff master..upstream/master | vim -

уберите меня из этой переписки, пожалуйста!
2017-10-22 16:43 GMT+03:00 Pavel I. Kryukov<EMAIL_ADDRESS>
It is up-to-date with your fork, but not with th upstream. To see
differences vs. upstream, use this command: git diff
master..upstream/master | vim -
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MIPT-ILab/mipt-mips/pull/205#issuecomment-338478424,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOMxtbZYf7H6qUIjovbYEd-NB_W7ON_1ks5su0aLgaJpZM4QBhUu
.

@diana-kiseljova Диана, прошу прощения за то, что вас каким-то образом сюда добавили.
Чтобы отписаться, воспользуйтесь ссылкой внизу письма («or mute the thread...») или зайдите на страницу https://github.com/MIPT-ILab/mipt-mips/pull/205 и нажмите кнопку «Unsubscribe» в правой части экрана.


Potential wiki entry? - Guide for successful setup on the Raspberry Pi 5(+)

This guide is intended to help (new) users find all the information in one place, to get the miner running on their Raspberry Pi 5 (with Raspberry Pi OS).
Background:
I recently received a Raspberry Pi 5 and tried to realize various projects on it. Unfortunately, I am still a newcomer to the Linux ecosystem, which is why I had problems getting the Twitch Drops Miner to work. Especially because the display server and thus the entire PI hung up during execution (as discussed here and described by @TeddJohnson here).
That's why I decided to create a short beginner-friendly step-by-step tutorial based on the information and experience I've gathered to help others facing this or similar problems.

Note:

I am neither a developer nor do I have in-depth experience with Linux and/or bash scripting. Therefore, suggestions for improvement are welcome and appreciated.
If you are an experienced user, here is the “simple solution” for you: change the display server on your Pi (5 and newer) from Wayland (Wayfire) to X11. Done!

Beginner-friendly step-by-step guide
Part 1: Basic setup (special thanks again to @TeddJohnson for his original post).
The navigation can of course also be done completely via the terminal (using cd), but for beginners or newcomers the navigation via the file browser, which is used here, might be easier.

First, we make sure that the operating system is up-to-date. To do this, we use the two commands sudo apt update and sudo apt upgrade in the terminal and reboot if necessary.
Install the packages required for the Drops Miner with sudo apt install libcairo2-dev libgirepository1.0-dev ttf-ancient-fonts-symbola
Use the file manager to navigate to the area (/folder) where you want to save the Twitch Drops Miner. This could look like this: “/home/username/scripts/”, where 'username' stands for your current user name.
Press F4 to open the terminal in this folder and clone the Twitch Drops Miner with the command git clone https://github.com/DevilXD/TwitchDropsMiner
Now navigate to the newly created Drops Miner folder with the command cd /home/username/Scripts/TwitchDropsMiner
To install the dependencies and not risk our system integrity, we create a virtual Python environment with the command python -m venv .env
Activate the virtual environment with the command source .env/bin/activate.

Note: This virtual environment must be started each time before the Twitch Drops Miner is executed. This can also be done automatically by executing a script, see below.

Now we install the dependencies from the requirements.txt into this virtual environment with the command pip install -r requirements.txt

At this point, the Twitch Drops Miner would in principle be fully installed and ready for use and could be started with the command PYSTRAY_BACKEND=gtk python3 main.py. Well, unless you’re logged in with your Twitch account.
To ensure that the system does not hang up after you log in, we need to take care of the display server. According to my research, there are various display servers, whereby X11 was used on older Raspberry models, but has since been replaced (on the Pi 5) by Wayland. Wayland seems to be more efficient and faster, but is still buggy here and there.
Part 2: Changing the display server
First, we check via the terminal with the command echo $XDG_SESSION_TYPE which display server is currently being used. If the output is 'X11', we do not need to do anything else. By default, however, 'Wayland' is set on the Pi 5, and we need to change it.

Open the Raspberry Config with the command sudo raspi-config and navigate to point 6: 'Advanced Options'.
Navigate to A6 'Wayland' and press Enter. By default, 'W2 Wayfire' is used here.
Select 'W1 X11' and confirm with Enter.
Restart your Raspberry.

Note: After the first restart, the system may feel a little slower for a short time - don't panic, it will settle!

Now, everything is set up and the Twitch Drops Miner should run properly on your Raspberry Pi 5(+)!
So, navigate to your Twitch Drops Miner folder (for example /home/username/Scripts/TwitchDropsMiner/), press F4 to open the terminal here. Activate the virtual Python environment with source .env/bin/activate and start the miner PYSTRAY_BACKEND=gtk python3 main.py and set it up. Happy mining!
Addendum:
To make starting and maintaining the miner noticeably easier, I have created a simple but effective script.

Please note that you have to change the folder path for your own purposes!!

What does the script do? Quite simply: It takes care of the navigation and activates the virtual Python environment for us. It then downloads the latest changes of Twitch Drops Miner from github (using only fast-forward merges) and checks whether the requirements.txt has been changed. If so, it installs the new requirements for us. Then it asks us if we want to check for updates for the existing dependencies (yes or no) - this does not have to be done every time, but should be done regularly to stay up to date.
After all this has been processed, the miner will finally be started and begin its work.
Script:
#!/bin/bash

echo "Going to the miner directory"
cd /home/username/Scripts/TwitchDropsMiner || exit 1

echo "Activating the virtual environment..."
source .env/bin/activate

echo "Checking for Twitch Drops Miner updates and install..."
# Save the current hash of the requirements.txt
OLD_REQUIREMENTS_HASH=$(md5sum requirements.txt)

# Use git pull with --ff-only to allow only fast-forward merges
git pull --ff-only || { echo "Fast-forward merge not possible. Please check your local changes."; exit 1; }

# Save the new hash of the requirements.txt
NEW_REQUIREMENTS_HASH=$(md5sum requirements.txt)

# Compare the hashes and only install if there are changes
if [ "$OLD_REQUIREMENTS_HASH" != "$NEW_REQUIREMENTS_HASH" ]; then
    echo "requirements.txt has changed. Installing dependencies..."
    pip install --quiet -r requirements.txt
else
    echo "requirements.txt unchanged. No new dependencies installed."
fi

# Ask user whether to check for updates
read -p "Do you want to check for dependency updates? (Yes/No): " choice
case "$choice" in
  [Yy]* )
    echo "Checking and installing dependency updates..."
    # Use --upgrade and --quiet to show output only when something is updated
    pip install --upgrade --quiet -r requirements.txt
    ;;
  [Nn]* )
    echo "Skip installing dependency updates."
    ;;
  * )
    echo "Invalid input. Skip the installation of dependency updates."
    ;;
esac

echo "Starting the Twitch Drops Miner and begin..."
PYSTRAY_BACKEND=gtk python3 main.py

echo "The script has been executed. Miner will start now."

To use the script, save it to the location of your choice, as 'runminer.sh', for example. Don't forget to make the script executable! When you are in the file browser in the folder with the script, press F4 and enter 'chmod +x runminer.sh' in the terminal. It can then be executed without any problems.
Again: I am not an expert. The script is probably neither particularly elegant nor “pretty”. But it fulfills its intended purpose. Feel free to use your own script, or modify and improve mine to your liking!

Looks good!
Following the thread in case anyone has issues and I could be of assistance


DNS cache and re-try

Please use the following questions as a guideline to help me answer
your issue/question without further inquiry. Thank you.
Which version of Elastic are you using?
[ x] elastic.v7 (for Elasticsearch 7.x)
[ ] elastic.v6 (for Elasticsearch 6.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v2 (for Elasticsearch 1.x)
Please describe the expected behavior
Connection should be reset in case of DNS IP change.
Please describe the actual behavior
Some times we see continuous timeouts for 10 minutes, and then it fixes by itself after DNS TTL expires. Is it possible to detect DNS IP change, re-create the connection & retry the request?
Any steps to reproduce the behavior?

It's out of scope for an ES client library to handle DNS issues. I think there is a Go issue related to that (can't find it now). And I'm pretty sure you can somehow build it into a custom http.Transport, or even replace the net.DefaultResolver with one that does what you want it to do.


feat(support): Parity SCALE Codec

Motivation
Implement SCALE codec for Uint along with the compact types.
Solution
Most of the compact encoding implementation is from https://github.com/paritytech/parity-scale-codec/blob/ca03f7fd981855b7cd6348fe32a9831e8e142813/src/compact.rs, but adapted to work with bits number other than power of 2 and up to 536 (according to the spec) instead of 128.
PR Checklist

[x] Added Tests
[x] Added Documentation
[x] Updated the changelog

@recmo fyi it's ready for review


intial release

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/73663
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.0 -m "<description of version>" 5bc9c995c4b21fef5c0015734f0c93dc632a3210
git push origin v0.1.0

Registration pull request updated: JuliaRegistries/General/73663
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.0 -m "<description of version>" b6a55b6d5cb9b1be47bac32271f64b074b57c873
git push origin v0.1.0