[Bug]: Stake/Staking pending

Issue description
The send transaction to confirm staking a wallet will not move from pending status.
Expected behaviour
If an incorrect private key was used to confirm a transaction, I expect the transaction to show as invalid or denied, not pending.
Actual behaviour
When I went to confirm the staking transaction on my Ledger, I had opened it from the screen saver which wiped the temporary pass phrase from the private key resulting in the transaction to attempt confirmation with the wrong private key.  I assume this is why the staking transaction is stuck in pending status.
Can the issue reliably be reproduced?
Yes
Steps to reproduce the issue
Request to stake transaction from Fire Fly wallet.
Confirm transaction with Ledger, using the incorrect private key.
Transaction shows as pending and will not change.
Staking unconfirmed as well as air drop participation unconfirmed.
Diagnostics
Firefly v1.3.2
Language: en
Currency: USD
Node selection: Automatic
Platform: win32
Platform Version: 10.0.22000
Platform Architecture: x64
CPU Count: 8
Total Memory: 32665.5 MB
Free Memory: 26228.7 MB

Errors
Mon, 17 Jan 2022 16:21:13 GMT
LedgerMnemonicMismatch: ledger mnemonic is mismatched

Duplicate declaration

[X] I have searched the issues tracker this issue and there is none

Code of Conduct

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

Staking events have finished


Manpages with lang

This series of patch introduces the localization of manpages

A field is added to the DB to manage languages
The feeding script `index.rb' is refactored to feed from the repo of translated manpages
The manpage page controller and view add a menu to select available translations.

I know next to nothing in RoR, so there may be better ways to do it. I tried to not add a lot of stuff.

Thanks for taking some time to review this PR. This is really needed.

BTW, while reloading the manpages in the db from scratch, I discovered a bug that UTF-8 is completely upset. Another point is that the branch is outdated (its base is too old), so I'll force push an updated version soon.

This renders like this:

This looks like a great start to me. I'm a little slow this week between the US holiday and traveling, so I haven't looked too closely at the code. But the things I care most about are:

it doesn't impact the non-translated pages in any way, which seems to be the case

it degrades gracefully when translated bits are missing (which looks OK; for example, in the pt_BR translation of cherry-pick, we are missing the inclusion of sequencer.txt, but we can still read the rest of the page)

So I'd be fine to see this merged, as it seems to be a strict improvement. A few niceties we might want in the long run:

some indication to the user that the translations are partial, and a pointer to how they can contribute or report bugs for particular translations

some placeholder (rather than an empty string) when include files are missing (actually, this goes for the non-translated text, too, but there it is probably an error we ought to be dealing with, whereas in the translations it is probably just that a file has not yet been translated).

it degrades gracefully when translated bits are missing (which looks OK; for example, in the pt_BR translation of cherry-pick, we are missing the inclusion of sequencer.txt, but we can still read the rest of the page)

I can add a warning indicating a piece is missing.

So I'd be fine to see this merged, as it seems to be a strict improvement. A few niceties we might want in the long run:

some indication to the user that the translations are partial, and a pointer to how they can contribute or report bugs for particular translations

Ah! In fact, pointing to the translation project should be a shorter term goal! Let me add this.

some placeholder (rather than an empty string) when include files are missing (actually, this goes for the non-translated text, too, but there it is probably an error we ought to be dealing with, whereas in the translations it is probably just that a file has not yet been translated).

A page can be accepted if the translation level reaches 80 % of translated strings.

A final note about deploying this PR:

An update the database schema is needed. I checked it once with my sqlite3 db. It was never run on a postgresql production db. Hic sunt dracones.
A good update scheme of translated manpages would be once every day. That means an additional crontab job.

cc @jasonlong FYI, to be aware of these changes while redesigning the website

ping @pedrorijo91 @peff
What's your opinion on this? Is it ready for merge?

ping @pedrorijo91 @peff
What's your opinion on this? Is it ready for merge?

sorry, I've been traveling. will have a final look tomorrow EOD, but otherwise looks good to me

:shipit: This all looks good to me. Thanks again for your work on this whole topic. Hopefully this is just the beginning, and we'll get more people participating in the translations!

Actually, I did just notice one funny thing right as I was closing my browser window. :wink: If you go to a translated page like .../docs/git-add/pt_BR, the "version" drop-down in the upper-left says "Version pt-BR". Which kind of makes sense because we're only ever translating the most recent documentation (and clicking v2.22.0 predictably takes us back to the English version). But maybe we should make that more clear somehow?

Replace the language by the word "Latest", for instance?

Replace the language by the word "Latest", for instance?

Yeah, that would probably work.

That's looking better. I'll know a little bit more about Ruby on Rails :construction_worker_man:

Nice! Regex-ing for \d+\.\d+\.\d+ everywhere isn't fantastic, but I think it should work pretty well in practice. I guess one way to clean it up would be to abstract it into a version_is_language? helper or something, but I'm OK merging this as-is and dealing with it later if necessary.

Ok. Unfortunately, I have no access to the instance of heroku running the site. So please, ship it :pray:

I think we just need to merge it right @peff ?

The db migration should happen automatically once it's deployed. But we'd need to manually run the rake job (and presumably set up a nightly job to pull updates). It's on my todo list, but I haven't gotten to it yet. If you want to try it in the meantime, @pedrorijo91, go for it!

I suppose you mean updates to the translated manpages right @peff ?

I suppose you mean updates to the translated manpages right @peff ?

Yes, exactly. We'd presumably want to pick them up nightly (and I expect they may get updated more frequently than Git itself releases new versions).

OK, this is merged and deployed to the main site, and I've run rake preindex_l10n. A few interesting hiccups:

in fact, I did need to run rake db:migrate manually (and until I did, manpages returned an HTTP 500!). So we need to be careful about merging changes that impact the schema. We probably need to be using the Release Phase feature of heroku, but it looks like we could probably stand to do some more work to put the migration into an atomic transaction. I'm not super concerned about this because of how infrequently we change the database (and because a moment of non-atomicity isn't generally a big deal for us).

after rake preindex_l10n failed due to db problems, running it again did nothing until I poked it with RERUN=1. We might need better error-handling (e.g., making sure the update happens in a transaction so it doesn't leave half-finished cruft).

after populating the db, some pages still didn't show the other languages (even on https://git-scm.herokuapp.com, which bypasses the Cloudflare cache). This is because they were cached by redis. Doing heroku redis:cli and issuing a flushall fixed this. But it means that we may need to revisit our caching setup so that any nightly update of the l10n repository actually gets reflected in the page (I don't know what our cache turnover is for redis, so it may be that it would eventually show the new page anyway; certainly the Cloudflare layer has a 4-hour delay there already).

I haven't yet added the nightly rake job. I'd like to let it run with the current data for a few days so that we feel good there are no problems there before introducing any new moving parts.

Thanks a lot for taking some time to make this work! Now, the translators can see that they worked for a result.

in fact, I did need to run rake db:migrate manually (and until I did, manpages returned an HTTP 500!). So we need to be careful about merging changes that impact the schema. We probably need to be using the Release Phase feature of heroku, but it looks like we could probably stand to do some more work to put the migration into an atomic transaction. I'm not super concerned about this because of how infrequently we change the database (and because a moment of non-atomicity isn't generally a big deal for us).

The site was already returning 500 on the branch deployment, which hinted me that the DB might be shared between the branches.

after rake preindex_l10n failed due to db problems, running it again did nothing until I poked it with RERUN=1. We might need better error-handling (e.g., making sure the update happens in a transaction so it doesn't leave half-finished cruft).

Will do. @tarebyte had started the rewrite with transactions, which will be of great help as an example.

after populating the db, some pages still didn't show the other languages (even on https://git-scm.herokuapp.com, which bypasses the Cloudflare cache). This is because they were cached by redis. Doing heroku redis:cli and issuing a flushall fixed this. But it means that we may need to revisit our caching setup so that any nightly update of the l10n repository actually gets reflected in the page (I don't know what our cache turnover is for redis, so it may be that it would eventually show the new page anyway; certainly the Cloudflare layer has a 4-hour delay there already).

One question on that matter: What's the redis cache worth if we are behind Cloudflare?

I haven't yet added the nightly rake job. I'd like to let it run with the current data for a few days so that we feel good there are no problems there before introducing any new moving parts.

There's an update awaiting, but I agree we should wait for any issue before exercising the script a second time to update the translations.

One question on that matter: What's the redis cache worth if we are behind Cloudflare?

I don't have good numbers on this. My vague recollection is that it's still important because Cloudflare still produces enough hits (my impression is that its edge caches fill independently from the source) and because some of our pages (the manpage "versions that touched this" dropdown especially) are expensive to generate. But if anybody is interested in figuring out how to collect and analyze actual data, I'm all for it.


Cannot import the plugin correctly

Hi, I am new to Sanity and also to React and Javascript frameworks, so I apologise in advance if my question is dumb.
I am trying to import the plugin, but keep receiving this message

As far as I understand, it seems like the process of importing the plugin is not occurring correctly.
This is what I wrote in my sanity.config.js:
import {vimeoVideo} from 'sanity-plugin-goth-vimeo-input'

export default defineConfig({
  name: 'default',
  title: 'myTitle',

  projectId: 'xxxxx',
  dataset: 'production',

  plugins: [
    deskTool(),
    visionTool(),
    vimeoVideo(),
  ],

  schema: {
    types: schemaTypes,
  },
})

And in the vimeo.js file, I have simply added the code provided in the repository of the plugin. Please let me know where can I fix the error,
Thanks a lot! 🙏🏼

Not the author but just looking over the codebase of this repo, it doesn't look like This is v3 ready at this current time (which is the version of Sanity you are currently trying to get it to work with).

Fair! Thanks CurtisChapman


Wait for a certain number of characters before making ajax call

Hi,
Thank you for this plugin.
I think it will be nice to have an option for us to set the number of characters the user should type before the ajax request is fired.
Thanks

minimumInputLength sounds like what you are looking for.


Filter items with a FK relation

I am having issues with adding some filters that have a foreign key relation, this only seems to be an issue with the filters and not the regular fields dict.
This works fine and correctly displays my product:
fields = [
'result__product',
]
But if I try to do the same thing in the filters I get the str method on that model class returned.
list_filter = ('date_timestamp', 'status__status', 'result__product',)
The report is built off this model:
class ResultDetail(models.Model):
"""
Test result detail record
"""
result = models.ForeignKey(Result)
status = models.ForeignKey(ResultStatus)
station = models.ForeignKey(TestSet, blank=True)
stage = models.ForeignKey(Stage, blank=True)
operator = models.ForeignKey(User, related_name='test_operator')
failstep = models.CharField(max_length=100, null=True, blank=True)
shift = models.IntegerField(null=True, blank=True)
date_added = models.DateField(auto_now_add=True, default=datetime.now())
date_timestamp = models.DateTimeField(auto_now_add=True, default=datetime.now())
date_time = models.TimeField(blank=False, null=False, auto_now_add=True, default=datetime.now())
class Meta:
    db_table = 'test_result_detail'
    verbose_name = 'Test Result Detail'
    verbose_name_plural = 'Test Result Details'

And the result field has a FK relation to this model:
class Result(models.Model):
"""
Parent test result record
"""
serial = models.CharField(max_length=50, null=False, blank=False)
sequence = models.ForeignKey(ProductStageSequence, null=True)
last_completed_stage = models.IntegerField(null=True, blank=True)
last_completed_sequence = models.IntegerField(null=True, blank=True)
workorder = models.CharField(max_length=10, blank=True, null=True)
product = models.CharField(max_length=50, blank=True, null=True)
is_complete = models.BooleanField(default=False, null=False, blank=False)
is_scrapped = models.BooleanField(default=False, null=False, blank=False)
value_stream = models.CharField(max_length=50, blank=True, null=True)
promise_date = models.DateField(blank=True, null=True)
sequence_rev = models.IntegerField(blank=True, null=True)
fail_lock = models.BooleanField(default=False, blank=False, null=False)
date_updated = models.DateTimeField()
date_added = models.DateTimeField(auto_created=True)
result_manager = ResultManager()

class Meta:
    db_table = 'test_result'
    verbose_name = 'Test Result'
    verbose_name_plural = 'Test Results'

def __str__(self):
    return '%s' % self.serial

Any ideas where I may be going wrong?
Thanks

Yep, is strange.
The example proyect does the same you need to do.
Which django version are you using?
If you debug the code at this line
https://github.com/juanpex/django-model-report/blob/master/model_report/report.py#L547
check the result variable "form_fields".
Maybe we have a bug.

i am not sure if it's the same issue, i think this was broken in commit f34eaee56ce90684842b4acd908439739f0e1725 "fix nested list_filter"
See image of example app before and after this commit:

Ok, got it. Commit f34eaee56ce90684842b4acd908439739f0e1725 did good. The example app must be updated. But the thing is you should use: "company" to use the select name and filter by the model.unicode (self.name), and company__name or company__size etc if you want to filter by any other value.  The thing is, django-model-report requires the filter fields to be part of the report fields, ending up with the numeric ID's (PK) of the foreign model which is somewhat ugly.  I think the best solution here would be accept filter fields even if they are not report fields.

Thanks Javier for the replies on this issue, trying to follow along are you finding that the issue is fixed now?

This actually was solved by the commit I mentioned, however the problem is the example and documentation have not been updated.  Also, right now, filter fields must be also report fields, but you can easily change this, I could create a pull request for this...


403 error when sending a file as attachment

I am trying to send a file as attachment using the directline js. Even if i try to send the attachment by url i believe directline js automatically converts it into blob and send the same attachment by upload. But this is failing. Its throwing 403 error.
Access to XMLHttpRequest at 'https://directline.botframework.com/v3/directline/conversations/C9hQ9cWJENY6YHW2kHAUtr/upload?userId=XXXXX' from origin 'https://xxxxxx.azurewebsites.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
curl "https://directline.botframework.com/v3/directline/conversations/C9hQ9cWJENY6YHW2kHAUtr/upload?userId=xxxx" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36" -H "Referer: https://xxxxx.azurewebsites.net/test/index.html" -H "Origin: https://xxxxxx.azurewebsites.net" -H "X-Requested-With: XMLHttpRequest" -H "Authorization: Bearer 5J6eDAGa7wY.dAA.QwA5AGgAUQA5AGMAVwBKAEUATgBZADYAWQBIAFcAMgBrAEgAQQBVAHQAcgA.40jFMiqD1AE.HTPhZyktSRY.Akh-9W9mXAvAmIJO6O2CZQJfbbpmePxjJnwb8sYH7xQ" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryVWvBKEwlVb0M85E9" --data-binary ^"------WebKitFormBoundaryVWvBKEwlVb0M85E9^

Content-Disposition: form-data; name=^\^"activity^\^"; filename=^\^"blob^\^"^

Content-Type: application/vnd.microsoft.activity^

^

^{^\^"from^\^":^{^\^"id^\^":^\^"XXXXXX^\^",^\^"name^\^":^\^"XYZ^\^"^},^\^"type^\^":^\^"message^\^",^\^"text^\^":^\^"msg^\^"^}^

------WebKitFormBoundaryVWvBKEwlVb0M85E9^

Content-Disposition: form-data; name=^\^"file^\^"; filename=^\^"test process.jpg^\^"^

Content-Type: image/png^

^

^PNG^

^^

^

Looks like there may have been a glitch on our platform. I have just verified it is working now.
Is the problem still persists right now?

I having the same issue which still persist. I'm using directline.js file got from<EMAIL_ADDRESS>Using the above js file,its throwing 403 error and CORS issue as above while sending attachments. Also when I'm trying to send OBJECT through activity property "value", its getting failed. Its not receiving at bot end. Is there any updated js file for directline.

This was caused due to intermittent service degradation in December 2018. Closing. Please re-open if the issue persists.

i can't attach files,when i am trying attach some file it always trigger 'retry' as response, can you help me to resolve this.


Automated cherry pick of #2727: fix snapshot policy filter

Cherry pick of #2727 on release/2.11.
#2727: fix snapshot policy filter

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.11@5be5f0f). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             release/2.11   #2740   +/-   ##
==============================================
  Coverage                ?   7.22%
==============================================
  Files                   ?     470
  Lines                   ?   74372
  Branches                ?       0
==============================================
  Hits                    ?    5374
  Misses                  ?   68546
  Partials                ?     452

Flag
Coverage Δ

#aFlag
7.22% <0%> (?)

Impacted Files
Coverage Δ

pkg/compute/models/disks.go
0.69% <0%> (ø)

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 5be5f0f...6957c7d. Read the comment docs.

/lgtm

/approve


Issue with crabs db_download with mitofish

Kia ora GJ mā, ngā mihi o te tau hou Pākehā! @bigdog-836 and I are trying to download the mitofish database using the crabs conda installation (as far as I know Docker does not play well on the NeSI infrastructure). We are getting the following error:
 crabs db_download --source mitofish --output mitofish.fasta --keep_original yes

downloading sequences from the MitoFish database
Traceback (most recent call last):
  File "/nesi/nobackup/uoo03004/alana_crabs/crabs/crabs_env/bin/crabs", line 1372, in <module>
    main()
  File "/nesi/nobackup/uoo03004/alana_crabs/crabs/crabs_env/bin/crabs", line 1369, in main
    args.func(args)
  File "/nesi/nobackup/uoo03004/alana_crabs/crabs/crabs_env/bin/crabs", line 96, in db_download
    dl_file = mitofish_download(url)
  File "/nesi/nobackup/uoo03004/alana_crabs/crabs/crabs_env/lib/python3.6/site-packages/function/module_db_download.py", line 139, in mitofish_download
    os.remove('complete_partial_mitogenomes.zip')
FileNotFoundError: [Errno 2] No such file or directory: 'complete_partial_mitogenomes.zip'

Thanks for the help!

Cool, thanks GJ. We'll start from scratch with the github version tomorrow.


Chaining methods

Instead of writing:
grow.emitEvent('dark');
grow.set('lightconditions', 'dark');
grow.call('turn_light_on');

It would be nice to support chaining so we can write things like this:
grow.emitEvent('dark')
    .set('lightconditions', 'dark')
    .call('turn_light_on');

Done on development

grow.get() is the odd one out because it returns a value and not this.


Performance improvements to SCIM Roles Patch groups and SCIM Roles GET

Description
Issue 01:
As mentioned in https://github.com/wso2/product-is/issues/15154, the same performance issue is there for the SCIM Roles GET request when there is a huge amount of users assigned for that role.
Issue 02:
Similar to https://github.com/wso2/product-is/issues/15154, there can be the same performance issue if there is a huge number of groups assigned to a Role. Eventhough this is a highly unlikely scenario, we can improve the performance in this flow as well.

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Refine meaning of "genomic material"

Is your feature request related to a problem? Please describe.
Our interpretation of DEL was "any sequence" so far, but reading the DUP rules, this appears wrong. What is meant is here functional content, such as regulatory elements and genes.
Describe the solution you'd like
Review this interpretation and adjust rules.
Describe alternatives you've considered
N/A
Additional context
N/A

Relevant sections are:
Loss / Deletion

1A/1B
Section 4 but we don't automate this (yet)

Gain Duplication

1A/1B
2C
Section 4 but we don't automate this (yet)


Revert "serve command missing"

I am sorry, I didn't read the documentation enough.
This package differs from the others by using npm start --production instead of yarn serve
Reverts xing/hops#566

I'm sorry for the confusion. The serve command was indeed missing.
Will close this now


[Proposal] Add the option to enable/disable the TextInputAction

I want to implement a function similar to the one described in the picture in Flutter

Hi @lazyee, what app are you seeing this feature in?

The app is Safari,The Go button is disabled if you enter nothing in the search bar.

Possibly related https://github.com/flutter/flutter/issues/30331

Will this feature be added in the near future, or at some point in the future? After all, it's only an iOS feature

Although it would be useful, I don't think you can have an option that can arbitrarily enable/disable the TextInputAction at will (e.g. with such an option, you could also check input validity after each keystroke and disable the button until the input becomes valid. But, I don't think such a general purpose option is possible.)
However, on iOS, your use case is achieved via a more specific API, enablesReturnKeyAutomatically. Rather than an option to enable/disable the TextInputAction, you could have an option to "automatically" enable the TextInputAction when the text field is not empty.

还没实现吗?


[NVIDIA TF] Preload Cudnn Sub Libraries for Frontend APIs

Before this PR, the cudnn sub libraries were only preloaded when the legacy APIs are used. This PR fixes this and ensures the preload for cudnn frontend APIs.
It would be difficult to create unit test for this, since it depends on the cudnn heuristics which differs among GPU architectures, cudnn versions, etc. We manually tested it using:
(1) Insert these lines in the XLA GpuConvAlgorithmPicker::PickBestAlgorithmNoCacheCuda to display the profiling time for each autotuned conv engine:
  for (auto& runner_cache : runners) {
    TF_ASSIGN_OR_RETURN(
        auto result, AutotuneOneConvRunner(
                         config, instr, allocator, &input_output_allocator,
                         stream, &runner_cache, operand_buffers, result_buffer,
                         &reference_result, disabled_algos));
    auto a = tensorflow::proto_utils::FromDurationProto(result.run_time());
    double a_sec = absl::ToDoubleSeconds(a);
    printf("Run time: %lf\n", a_sec);

    profile_results.emplace_back(std::move(result));
  }

(2) Rebuild TF and run the script with cudnn frontend api enabled:
import tensorflow as tf

x = tf.random.normal((512, 112, 112, 32), dtype=tf.float32)
p = tf.constant(0.)

conv2d = tf.keras.layers.Conv2D(filters=32, kernel_size=(3, 3), strides=(1, 1),
                                padding='same', use_bias=False, groups=32)

@tf.function(jit_compile=True)
def step(x):
  return conv2d(x)

y = step(x)
(p + 1.).numpy()  # Sync the GPU

On a V100 GPU, Before:
Run time: 0.541476 # This includes the overhead of loading cudnn lib.

Run time: 0.003250
Run time: 0.025338
Run time: 0.030755
Run time: 0.029313
Run time: 0.030758
Run time: 0.032752
Run time: 0.033699
Run time: 0.037834

After the PR, the overhead of loading cudnn sub libraries will not be included in the autotuning.
cc. @nluehr @pjannaty

Thanks for the suggestion. New changes are pushed. PTAL. @pjannaty

Thanks. This makes sense. Just pushed a new commit. PTAL. @pjannaty

Thanks, Kaixi! Looks great!

Great. Do you think it is ready for review? @pjannaty

Great. Do you think it is ready for review and should I squash the commits? @pjannaty

IMO it looks great! Please feel free to squash and be the first to try out the new process!

Heads up: maybe we can try the automatic assignment when 56704 lands as a test.

Hi @chsigg Can you please review this PR ? Thank you!


Indicate version strings of boundled bin files within notes for each release.

There has been re-occurring struggle for users to know what download versions should include resolution for specific analog or digital rx bugs. I suggest every release notes indicate the version strings for the supporting bin files bundled within.
Can this be automated?
9.1.0 example:
HDZero Receiver version rx: 73
Analog Decoder version va: 184
Is there any benefit to display:
boot version?
OS version?
Update: I have been informed my understanding of the service of rx and va firmwares was incorrect and incomplete. So a better user description would be required.
Maybe these example descriptions would work?
5680 chip, Digital Signal Decode firmware rx: 73
FPGA chip, Analog and digital signal processing firmware va: 184

sloved


SPIKE: Can auth0 be used with Andi UI?

As a data contributor or curator, I want to have one account to share and view my datasets so that I have an easy to use, streamlined experience.
ACs:

[ ] How does auth0 play with Andi UI?
[ ] Can a user have one account that works for both Andi and Discovery UI?
[ ] Write cards necessary for implementing auth0 for Andi

PR that will likely close for using Auth0 along with UberAuth https://github.com/smartcitiesdata/smartcitiesdata/pull/914
Main caveats:

Auth0's standard app config requires the URLs involved to be both TLS and a fqdn that is not localhost so the example has xip.io hostnames in it
Client secret has to be provided, which is something we don't have to do for SPA apps

Alternatives:

I'm 90% certain we can also just do a SPA auth through a LiveView hook, in which case, we wouldn't need TLS, the xip stuff for local or the client secret

Main example from Auth0 is here - https://auth0.com/blog/elixir-and-phoenix-tutorial-build-an-authenticated-app/

Otherwise, in summary:

how does it work with ANDI? It works via an auth code, but the more traditional server side way that requires a client secret to be injected (not a huge deal)
can a user have one account that works with both? yes
will write cards next week

It turns out that the above only handles authentication. As for authorizing each request - we would need to use Guardian still similar to how we do with Disco API
https://hexdocs.pm/ueberauth/Ueberauth.Auth.html#t:t/0
Basically, when we do finish the authentication we can get the JWT from auth_returned_by_auth0.credentials.token and then attach that to the conn via Guardian's standard functions. For a live view, this can then be attached to the socket on view mount so as to be attached as data on the socket. We can then examine the JWT with the key verifier on that socket just like we do with Guardian in Disco API, with the only major difference being that it's not a Plug at that point as LiveView doesn't utilize plugs.

The only major gotcha with using Guardian in this case, is that we need to store the JWT in both the LiveView sockets on mount AND in a session cookie (which would be reasonable for a server-side app, but we would want CSRF tokens, at a minimum for this).

Looks like our browser (server-side) pipeline is already set up for CSRF via hidden inputs on the forms
https://angelika.me/2019/12/31/csrf-protection-in-phoenix/

The example PR for this uses the Phoenix Session that we already have, as that meshes very easily with the LiveView mount. https://github.com/smartcitiesdata/smartcitiesdata/pull/914

Cards:

Set up Auth0 for ANDI as "REGULAR WEB APPLICATION" and then minimal wiring of ANDI to this (Ueberauth's auth/auth0 and auth/auth0/callback endpoints) https://auth0.com/blog/elixir-and-phoenix-tutorial-build-an-authenticated-app/ - tech note about an "andi" API/audience in addition to the current discovery_api one
Force authorization for all pages and views - AC: go to login if not logged in - tech notes about duplication between this and Discovery API - tech notes about LiveView + mount + redundancy
Do logout - tech note about revoke like in Disco API


Need help on learning to run MS2PIP

Hi,
I am new to mass spec analysis and would like to use MS2PIP to improve protein predictions. My main goal is to identify small proteins in a mass spec dataset.
Currently, what I have done is to search mgf files against a database of Uniprot annotated proteins (H. sapiens). I then searched the resulting unmatched spectra against a database of small proteins. This outputs a number of predictions of small proteins. All of the searches were performed on PeptideShaker. As the MS experiment was not optimised for small proteins, the small peptide predictions are naturally, of low/doubtful confidence. Hence, I would like to see if using MS2PIP could improve the prediction quality.
I am a little confused as to where to start, however. I understand MS2PIP requires a PEPREC file to run. I generated a PEPREC of small proteins that I am interested in (~40,000 small proteins). This was done using the fasta2PEPREC.py script in the conversion_tools folder. I am not sure if I did this correctly as the resulting PEPREC file does not contain any amino acid mods (e.g. oxidation of M, carbamidomethylatino of C). How do I generate a PEPREC file properly containing AA modifications?
Having generated the PEPREC file, I then ran ms2pip and this outputs a HCD_predictions.csv file. I am stuck here as I don't know how to proceed to get improved protein predictions. Am I using the right workflow i.e. should I be starting from the protein database in the first place or should I start from the output predictions from PeptideShaker?

Hi! You've come to the right place! MS2 spectrum predictions can give a boost in sensitivity to challenging identification workflows (see https://doi.org/10.1093/bioinformatics/btz383, and https://doi.org/10.1002/pmic.201900351). The easiest and most versatile way to make use of MS²PIP to improve your identification workflow is with MS²ReScore. I noticed your issue over there (https://github.com/compomics/ms2rescore/issues/11), so I'll help you out in that issue thread.
To clarify the use cases for our MS²PIP-related tools:

MS²PIP only predicts spectra, so for a given list of (modified) peptide sequences and a charge state, it will output a predicted spectrum. These spectra can be used directly for a number of use cases, for instance to manually compare with and inspect important peptide spectrum identifications (e.g. https://doi.org/10.1038/s41586-019-1555-y). This is, of course, not a very high throughput work method.
Fasta2SpecLib is a sort of wrapper around MS²PIP that takes not a peptide list as input, but a protein fasta file. It will then in silico digest those proteins and generate an MS²PIP-predicted spectral library to be used in spectral library searching, or as a reference library for DIA identifications (see https://doi.org/10.1002/pmic.201900306).
MS²ReScore enables you to use MS²PIP, and recently also DeepLC, to rescore peptide identifications by adding additional information to the Percolator input. This leads to a big boost in sensitivity, usually leading to more identifications at a more conservative false discovery rate threshold (https://doi.org/10.1093/bioinformatics/btz383).


As a .NET platform team member, I understand whether Java-style shading would be a useful feature

We need to collect customer evidence to understand whether shading/private dependencies is a useful feature for the .NET platform.
This involves:

Customer development to determine the scenarios this tooling would need to solve
A document describing the problems (such as "hiding dependencies" and "side-by-side loading")
Prototype(s) to verify that the intended solution is workable for .NET

Bulk closing .NET 6 epics and user stories. If you think this issue was closed in error, please reopen the issue and update it accordingly.


fix(client/python): new version with CREATED support

On-going work client part to (hopefully) fix timeouts, so that CI passes on branch avatar/#2219
(and additional Makefile cleanups)

Consider this as a title: feat: handle 201: CREATED from api


What kind of communities are these?

Some communities may be meetups or slack groups or clubs or learning programs - would be great to know which ones are what

Thanks for the feedback!

Updated with categories, after adding Product Design


Allow newer versions of cryptography library

For projects that use both signxml and pyopenssl, https://github.com/pyca/pyopenssl/pull/612 made an incompatible requirements change for the cryptography library; pyopenssl requires a version >= 1.9, while signxml requires <1.9. This PR increases the maximum allowed version for signxml to allow version 1.9 up to (but not including) 1.10/2.0.

Codecov Report

Merging #89 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #89   +/-   ##
=======================================
  Coverage   94.92%   94.92%
=======================================
  Files           3        3
  Lines         591      591
=======================================
  Hits          561      561
  Misses         30       30

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 7ee0fa5...8d8953c. Read the comment docs.

Released in v2.4.0.


Module not found: Can't resolve 'console'

Description
I set up my project using create-react-app and installed Galeforce, but when I try to import the package I get an error in the terminal: Module not found: Can't resolve 'console' in 'D:\Projects\LoLTest\node_modules\ts-node\dist'.
Reproduction Steps

Create a new project by running the command npx create-react-app LoLTest
In the project directory, install Galeforce by running npm i galeforce
In the App.js file, import Galeforce using the following code:
import GaleforceModule from 'galeforce';
Run npm start and the page will fail to display due to the compile error described above

Specifications (please complete the following information):

OS: Windows

JavaScript libraries like these are meant to be ran in the back end on node.js, not compiled into the front end like React.
If you were to use it on the front end you would be exposing your API key to everyone which is against Riot's developer policies as well as someone could get your key blacklisted.

Going to resolve this as I don't think this is a fixable issue at the moment. Will see what I can do about this in the future though.


Feature/arrondissement filter (#196)

see #196 for checklist

@rlskoeser this is failing for an interesting reason...when we try to load some sample data for pa11y to run on, the signal handlers are active, which is causing some weirdness. it might be able to be fixed by tweaking the sample_people.json fixture slightly? i don't quite understand the error

Codecov Report

Merging #436 into develop will decrease coverage by 0.16%.
The diff coverage is 89.8%.

@@             Coverage Diff             @@
##           develop     #436      +/-   ##
===========================================
- Coverage    98.48%   98.32%   -0.17%
===========================================
  Files          175      175
  Lines         8337     8476     +139
  Branches        26       26
===========================================
+ Hits          8211     8334     +123
- Misses         126      142      +16


Update de.json - Part 2

Corrected 2nd draft

I have raised a new issue #111 for the Dice naming problem.


net/http: fix reading cookie mistake if ";;" exists, most browsers like Chrome, Safari can handle such a cookie

If cookies is something like this: "a=xxx1;; b=xxx2", func readCookies just ignore "b=xxx2" because of this mistake. This PR can fix it.

In the source code, I find that readCookies funciton doesn't return any error, it handles some error cookie as excepted.
For example, if cookie is "a=1; ;b=2" (noticed that there is a space between two ';'), readCookies can recognize both a=1 and b=2 as expected. But if cookie is "a=1;;b=2", readCookies just ignored b=2. It's confusing.


Checkpoint and possible fine-tuning on a custom dataset

Hello Jong Wook,
I would like to experiment fine-tuning Onsets and Frames on a custom dataset with your PyTorch implementation.
For that I would ask, is there a pretrained model checkpoint available for your implementation please ?
Then I would format the custom dataset I would like to fine-tune on as the MAPS example:
_ one folder of .flac audio inputs at 16kHz mono
_ one folder of matched .tsv annotation targets (col 1. onset sec. / col 2. offset sec. / col 3. note / col 4. velocity)
So that it can be read with PianoRollAudioDataset and used for continuing training a previous checkpoint.
One more thing I would please ask for confirmation regarding the annotation files, the 3rd. note column should be midi pitch (in the range of the 88 piano keys) and the 4th. velocity column should be scaled in which range ? (it doesn't seem to go up to 127 like a midi velocity)
Thanks for sharing the model to Pytorch !

Hello, try this checkpoint which was trained for 500,000 iterations on the MAESTRO dataset.
I haven't tried fine-tuning on these models, but it should be theoretically possible. I expect that it'd require a careful hyperparameter search (epochs, learning rate and betas of Adam, etc.)
Regarding velocity, I believe it's the same as the MIDI scale; just that most MIDI files in the dataset don't have too high velocity. AFAIK the original paper tried some heuristic for normalizing the velocity but I didn't reimplement that. You can check out MIDI preprocessing code here.

Thank you very much.
Checkpoint is helpful as I want to compare retraining from scratch or fine-tuning from the maestro checkpoint !
And indeed, your midi code seems to follow the standard MIDI range.
Your data loader is nicely done too, I could easily adapt it to another dataset based on the MAPS class.

Hello, try this checkpoint which was trained for 500,000 iterations on the MAESTRO dataset.
I haven't tried fine-tuning on these models, but it should be theoretically possible. I expect that it'd require a careful hyperparameter search (epochs, learning rate and betas of Adam, etc.)
Regarding velocity, I believe it's the same as the MIDI scale; just that most MIDI files in the dataset don't have too high velocity. AFAIK the original paper tried some heuristic for normalizing the velocity but I didn't reimplement that. You can check out MIDI preprocessing code here.

Hi Jongwook,
May i know to use this checkpoint, is there any requirement on the torch version? I ran into issue when trying it out.
torch.nn.modules.module.ModuleAttributeError: 'LSTM' object has no attribute '_flat_weights'
My torch version is 1.7.1
Thanks

Hello, try this checkpoint which was trained for 500,000 iterations on the MAESTRO dataset.
I haven't tried fine-tuning on these models, but it should be theoretically possible. I expect that it'd require a careful hyperparameter search (epochs, learning rate and betas of Adam, etc.)
Regarding velocity, I believe it's the same as the MIDI scale; just that most MIDI files in the dataset don't have too high velocity. AFAIK the original paper tried some heuristic for normalizing the velocity but I didn't reimplement that. You can check out MIDI preprocessing code here.

Hi Jongwook,
May i know to use this checkpoint, is there any requirement on the torch version? I ran into issue when trying it out.
torch.nn.modules.module.ModuleAttributeError: 'LSTM' object has no attribute '_flat_weights'
My torch version is 1.7.1
Thanks

I am running the codes with torch==1.3.0
There would be some (minor) things to update for running on higher versions.

I am running the codes with torch==1.3.0
There would be some (minor) things to update for running on higher versions.

I am running the codes with torch==1.3.0
There would be some (minor) things to update for running on higher versions.

Thanks. I think torch==1.3.0 is not available in python3.7. I got much more error with python3.6 with torch==1.3.0
May i know what is the minor things that needs to update for running on higher version?

I am running the codes with torch==1.3.0
There would be some (minor) things to update for running on higher versions.

Thanks. I think torch==1.3.0 is not available in python3.7. I got much more error with python3.6 with torch==1.3.0
May i know what is the minor things that needs to update for running on higher version?

You'd have to update error by error, but it should not be a lot since Pytorch has not changed much in the basic functions that are used here. One more complicate issue you may have is to load the pretrained model weights in the updated class ..
I could install both 1.2.0 and 1.3.0 for python 3.7.9 ; I think pip still let installing older versions or you'd have to compile it yourself.

You'd have to update error by error, but it should not be a lot since Pytorch has not changed much in the basic functions that are used here. One more complicate issue you may have is to load the pretrained model weights in the updated class ..
I could install both 1.2.0 and 1.3.0 for python 3.7.9 ; I think pip still let installing older versions or you'd have to compile it yourself.

You'd have to update error by error, but it should not be a lot since Pytorch has not changed much in the basic functions that are used here. One more complicate issue you may have is to load the pretrained model weights in the updated class ..
I could install both 1.2.0 and 1.3.0 for python 3.7.9 ; I think pip still let installing older versions or you'd have to compile it yourself.

noted. Thanks for the info!

You'd have to update error by error, but it should not be a lot since Pytorch has not changed much in the basic functions that are used here. One more complicate issue you may have is to load the pretrained model weights in the updated class ..
I could install both 1.2.0 and 1.3.0 for python 3.7.9 ; I think pip still let installing older versions or you'd have to compile it yourself.

noted. Thanks for the info!

have you come across this error while loading the MAPS dataset during evaluation?
RuntimeError: data/MAPS/flac/MAPS_MUS-bk_xmas1_ENSTDkAm.pt is a zip archive (did you mean to use torch.jit.load()?)

have you come across this error while loading the MAPS dataset during evaluation?
RuntimeError: data/MAPS/flac/MAPS_MUS-bk_xmas1_ENSTDkAm.pt is a zip archive (did you mean to use torch.jit.load()?)

no, I did not use either MAESTRO or MAPS
I wanted to fine-tune on a custom dataset so I made a class similar to MAPS(PianoRollAudioDataset) which reads flac audio and tsv annotations put in the same format as the MAPS dataset.
tsv annotations are in the column format 'onset,offset,note,velocity' so it's easy to convert any dataset you'd get to train with that dataset class
if you cannot load the prepared MAPS data (which I did not use), you could download it from elsewhere, format it as flac/tsv and load it with the dataset class

no, I did not use either MAESTRO or MAPS
I wanted to fine-tune on a custom dataset so I made a class similar to MAPS(PianoRollAudioDataset) which reads flac audio and tsv annotations put in the same format as the MAPS dataset.
tsv annotations are in the column format 'onset,offset,note,velocity' so it's easy to convert any dataset you'd get to train with that dataset class
if you cannot load the prepared MAPS data (which I did not use), you could download it from elsewhere, format it as flac/tsv and load it with the dataset class

Thank @adrienchaton .

Thank @adrienchaton .

@jongwook Could you provide the checkpoint after 1 million steps as well?

the metrics of this model is not very good.
                            note precision                : 0.809 ± 0.111                             note recall                   : 0.760 ± 0.110                             note f1                       : 0.782 ± 0.106                             note overlap                  : 0.554 ± 0.105                note-with-offsets precision                : 0.378 ± 0.135                note-with-offsets recall                   : 0.356 ± 0.133                note-with-offsets f1                       : 0.366 ± 0.133                note-with-offsets overlap                  : 0.817 ± 0.084               note-with-velocity precision                : 0.738 ± 0.112               note-with-velocity recall                   : 0.694 ± 0.113               note-with-velocity f1                       : 0.714 ± 0.109               note-with-velocity overlap                  : 0.557 ± 0.107   note-with-offsets-and-velocity precision                : 0.350 ± 0.130   note-with-offsets-and-velocity recall                   : 0.329 ± 0.129   note-with-offsets-and-velocity f1                       : 0.339 ± 0.129   note-with-offsets-and-velocity overlap                  : 0.816 ± 0.084                            frame f1                       : 0.651 ± 0.112                            frame precision                : 0.639 ± 0.166                            frame recall                   : 0.694 ± 0.087                            frame accuracy                 : 0.492 ± 0.121                            frame substitution_error       : 0.102 ± 0.052                            frame miss_error               : 0.204 ± 0.085                            frame false_alarm_error        : 0.393 ± 0.386                            frame total_error              : 0.698 ± 0.386                            frame chroma_precision         : 0.673 ± 0.162                            frame chroma_recall            : 0.735 ± 0.083                            frame chroma_accuracy          : 0.532 ± 0.112                            frame chroma_substitution_error: 0.061 ± 0.029                            frame chroma_miss_error        : 0.204 ± 0.085                            frame chroma_false_alarm_error : 0.393 ± 0.386


js_unwrap_array! should assert that something is an array before unwrapping it

Right now we trust the only code using it, but if something is ever unexpectedly an object rather than an array, who knows what could happen.
It's there so that we can correctly unwrap arrays that aren't global.Array, so it'll need some other way to verify that something is an array, but I'm sure we can think of that.

Fixed in #43

Thanks- missed this.


(BE) Authentication

[ ] OAuth for Google Login or Email / Password login system
[ ] Set up a supabase for users
[ ] Validation of users account
[ ] Implement a way for users to reset their passwords (e.g. by sending a reset link to their email address)
[ ] Implement security measures to protect against potential vulnerabilities (e.g. password hashing, input validation).
[ ] Test the authentication page to ensure it is functioning correctly.

instead of hundred of headache-handling auth, why not use firebase auth?
https://firebase.google.com/docs/auth

we're using supabase, there will be OAuth too


Pretty-print auto-params

Auto-params (x : A := by ...) are not pretty-printed by default.
Example:
import Lean

macro "id_tac" : tactic =>
  `(tactic| (first | exact id))

def f (x : ℕ) (g : ℕ → ℕ := by id_tac) := g x = x

example (h : f 3) : f 3 (· + 5) := _
/-
don't know how to synthesize placeholder
context:
h: f 3
⊢ f 3
-/

However, auto-params are not implicit arguments, and important information is omitted when leaving them out. They should therefore always be printed.
Zulip thread
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

Closed by #3375
import Lean

def f (x : ℕ) (g : ℕ → ℕ := by id_tac) := g x = x

example (h : f 3) : f 3 (· + 5) := _
/-
don't know how to synthesize placeholder
context:
h: f 3 id
⊢ f 3 fun x => x + 5
-/


lxd/qmp: Ensure checkbuffer is called

VMs tend to have events every few seconds, as a result the timeout was
never hit and the agent never detected.
Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

Testsuite passed

@tomponline @brauner good to go


Converting to Go can cause errors when request headers contain "

To reproduce:
curl 'https://github.com/NickCarneiro/curlconverter' \
  -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="92"' \
  --compressed

Can easily be fixed by using ` instead of ".

Sorry, I reverted this because it seems like the backticks would have the same issue.
Is it possible to escape the double quotes?


chore: manually use stdout and stderr for deploy status, start cmds and new version notifications

@fieldju can we close this PR?

This PR needs to be merged, or the issue needs to be fix.
The spinnaker plugin cannot be updated again without these fixes (or fixes like it)


App version not displaying in OSX

I'm invoking electron-packager as such:
electron-packager ./pkg-tmp "My App Name" --platform=darwin --arch=x64 --version=0.33.6 --out="./output" --icon=./assets/icon.icns \
    --app-version="0.0.1" --app-bundle-id=com.my.org --prune --overwrite --asar

The build looks good except the app version doesn't show up when getting info on the .app file.  Looking at the Info.plist file inside the package contents shows that CFBundleShortVersionString is missing
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>BuildMachineOSBuild</key>
    <string>14D136</string>
    <key>CFBundleDisplayName</key>
    <string>My App Name</string>
    <key>CFBundleExecutable</key>
    <string>Electron</string>
    <key>CFBundleIconFile</key>
    <string>atom.icns</string>
    <key>CFBundleIdentifier</key>
    <string>com.my.org</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>My App Name</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleVersion</key>
    <string>0.0.1</string>
    <key>DTSDKBuild</key>
    <string>14D125</string>
    <key>DTSDKName</key>
    <string>macosx10.10</string>
    <key>DTXcode</key>
    <string>0632</string>
    <key>DTXcodeBuild</key>
    <string>6D2105</string>
    <key>LSMinimumSystemVersion</key>
    <string>10.8.0</string>
    <key>NSHighResolutionCapable</key>
    <true/>
    <key>NSMainNibFile</key>
    <string>MainMenu</string>
    <key>NSPrincipalClass</key>
    <string>AtomApplication</string>
    <key>NSSupportsAutomaticGraphicsSwitching</key>
    <true/>
    <key>CFBundleURLTypes</key>
    <array/>
  </dict>
</plist>

I'm using version 5.1.0 of electron-packager.  Is there another field I should be setting?  Looks to me in mac.js that app-version is all that's needed.

Odd. I wonder why the test passes.

That is strange since app-version should set the CFBundleVersionShortString. But in your case it sets the CFBundleVersion. Using electron-packager on a daily basis and it works fine. But i am not using it via command line.

Tried to reproduce it, but works fine in my case
<EMAIL_ADDRESS>...
electron-packager ./ VersionTest --platform=darwin --arch=x64 --version=0.33.9 --app-version=0.0.4

I figured out my problem.  electron-packager command had been set to use a previous version.  I removed older versions, set it to 5.1.0 and now everything is fine again.
I apologize for the waste of time here, and thank you for the responses!


documentation_security: N/A should be an option

This metric says:

The project MUST document what the user can and cannot expect in terms of security from the software produced by the project

Many projects produce no software at all, so for these projects, it should be N/A - but that's not an option.

I will add that I found the words "project produce software" very confusing - to me, the project IS software, and it only PRODUCES software if it's generating code. However, I've started to suspect that the way this is intended is that the project is conceptual, and the software it "produces" is whatever's released?

The intent was to be clear. The "software produced by the project" is whatever software the project produces. The ideas is that a software being produced is a thing; the project is the group of people, processes, etc., that produce the software. Does that help?

Yes, I think that clarifies the intent - I'd misunderstood it because to me, the project is the software, not the people.


Remove myget source from readme

Sounds unnecessary to expose MyGet feeds to end users

Why not just have both?

MyGet ones in current CI flow, might not ready to publish, it triggers everytime dev branch has commits. feels no need to add it to Readme, it might be misleading. We can add it back when later we change it to a more officially publish workflow, for example, only tagged ones are published.

I don't agree. I think it's fine to have both there. Github is where developers come to see the source code and use bleeding edge things. No need to hide it from them.

OK, sounds fair


an app it crash after launch

after launch an app and login the app crash .

check the "Getting Started"

you should go through these steps:

Open the QuickChat workspace in Xcode.
Change Bundle Identifier to match your domain.
Go to Firebase and create new project.
Select "Add Firebase to your iOS app" option, type bundle Identifier & click continue.
Download "GoogleService-Info.plist" file and add to the project. Make sure file name is "GoogleService-Info.plist".
Go to Firebase Console, select your project, choose "Authentication" from left menu, select "SIGN-IN METHOD" and enable "Email/Password" option.
Update all pods by running "pod update".

i went through all of those steps and app keep on crash when am trying to establish new chat

On Jan 18, 2017, at 7:16 PM, Haik Aslanyan<EMAIL_ADDRESS>wrote:
you should go through these steps:
Open the QuickChat workspace in Xcode.
Change Bundle Identifier to match your domain.
Go to Firebase and create new project.
Select "Add Firebase to your iOS app" option, type bundle Identifier & click continue.
Download "GoogleService-Info.plist" file and add to the project. Make sure file name is "GoogleService-Info.plist".
Go to Firebase Console, select your project, choose "Authentication" from left menu, select "SIGN-IN METHOD" and enable "Email/Password" option.
Update all pods by running "pod update".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Added Anagrams command

Added 2 files
anagram.py - Has the code for anagram command
anagram.json - Contains all the words for anagram command
Relevant Issues

Closes #730 , creation of Anagram minigame
Description

Added 2 files for anagrams game command
anagram.py - It has code for anagram game command. Users can play the game by using ".anagram" command, it will show an embed with scrambled letters which if rearranged can form words. It selects random choices from a json file which has all the anagrams possible from popular English words. After 60 seconds if anyone has provided a correct answer in channel, it will list out the winner's name and if nobody gets its correct then all the correct answers will be displayed after a minute.
anagrams.json - Contains all the anagrams and its scrambled letters, its is a key value dictionary where keys are scrambled letters and values are list which contains all valid words which can be formed by the letters in key
Did you:

[x] Join the Python Discord Community?
[x] Read all the comments in this template?
[x] Ensure there is an issue open, or link relevant discord discussions?
[x] Read and agree to the contributing guidelines?

What does the anagrams.json file consist of?
If it is English words, I heavily recommend nltk for getting English words.
This is quite a large list, rather it could use nltk, a library that stands for natural language toolkit
There is a module within that library that contains a list of words, nltk.corpus.words, where the function to get the list of english words is nltk.corpus.words.words()
Though, I cannot see the anagrams.json as the load diff is too big, so if you aren't using English words purely, and rather something else, there could possibly be another alternative.

nltk is an external library, and requires updating pyproject.toml, so let any of us know if you need help with that if you're not sure how to accomplish that

"conspue" means "to spurn with contempt as if by spitting upon", had to look it up online.
@TizzySaurus found a word file with all the words, we picked out words which had same letters which could be used as anagrams.
We used the words_dictionary.json file from this repo

I have cross referenced the file with most common words, so the anagrams should be easy to predict and file should now be reduced from 130k to 18k lines  also cleaned some bad words from the file

sir-lancebot  | 09/28/21 18:18:55 - bot.exts.core.error_handler ERROR: Unhandled command error: sleep() got an unexpected keyword argument 'seconds'
sir-lancebot  | Traceback (most recent call last):
sir-lancebot  |   File "/usr/local/lib/python3.9/site-packages/discord/ext/commands/core.py",
line 167, in wrapped
sir-lancebot  |     ret = await coro(*args, **kwargs)
sir-lancebot  |   File "/bot/bot/exts/fun/anagram.py", line 77, in anagram_command
sir-lancebot  |     await asyncio.sleep(seconds=TIME_LIMIT)
sir-lancebot  | TypeError: sleep() got an unexpected keyword argument 'seconds'

I got this error. Try just using await asyncio.sleep(TIME_LIMIT).

This is my fault, I had it in my suggestion.


Update bcbio_prepare_samples.py missing force_single in _get_samples_to_process function call.

Hi @lpantano.
Could you please update line 140 in bcbio_prepare_samples.py to also supply the needed force_single argument for _get_samples_to_process in the same file.
I now get the following error when trying to concatenate my input fastq files
bcbio_prepare_samples.py --out ./input_fastq/concat/ --csv ./my_fastq_samples.csv
Traceback (most recent call last):
  File "/tools/bcbio-1.0.0/bin/bcbio_prepare_samples.py", line 140, in <module>
    samples = _get_samples_to_process(args.csv, out_dir, config)
TypeError: _get_samples_to_process() takes exactly 4 arguments (3 given)

(I am running bcbio v1.0.0a0 development version so that I can run the freebayes v.1.1)
I thinks this line was by accident missed in this commit:
https://github.com/chapmanb/bcbio-nextgen/commit/dcb9b79d8f8b949a477f9114f7a5153092defb2c
https://github.com/chapmanb/bcbio-nextgen/blob/dcb9b79d8f8b949a477f9114f7a5153092defb2c/scripts/bcbio_prepare_samples.py#L140
https://github.com/chapmanb/bcbio-nextgen/blob/dcb9b79d8f8b949a477f9114f7a5153092defb2c/scripts/bcbio_prepare_samples.py#L40
Thank you!

Hi @NeillGibson
sorry about that. I pushed the fix here: https://github.com/chapmanb/bcbio-nextgen/commit/fb4a04b63638ba25af80557acab7e3ca1e6edfbd
thanks

Thank you Lorena.


Implement Themes along with corresponding URL parameter

A color accent theme, calculated from background color would be cool


S3 503 causes store API panic

Thanos, Prometheus and Golang version used: 0.28.0/go1.20.3
Object Storage Provider: Garage S3
What happened:
When my frontend HTTP servers are not able to forward requests to my S3 backend; they return a 503 to the Thanos store API component, and it immediately panics:
level=info ts=2023-07-13T21:34:26.333589634Z caller=http.go:84 service=http/server component=store msg="internal server is shutting down" err="bucket store initial sync: sync block: BaseFetcher: iter bucket: 503 Service Unavailable"
level=info ts=2023-07-13T21:34:26.333655093Z caller=intrumentation.go:56 msg="changing probe status" status=ready
level=info ts=2023-07-13T21:34:26.333821427Z caller=grpc.go:131 service=gRPC/server component=store msg="listening for serving gRPC" address=<IP_ADDRESS>:10901
level=info ts=2023-07-13T21:34:26.333967314Z caller=http.go:103 service=http/server component=store msg="internal server is shutdown gracefully" err="bucket store initial sync: sync block: BaseFetcher: iter bucket: 503 Service Unavailable"
level=info ts=2023-07-13T21:34:26.334032193Z caller=intrumentation.go:81 msg="changing probe status" status=not-healthy reason="bucket store initial sync: sync block: BaseFetcher: iter bucket: 503 Service Unavailable"
level=warn ts=2023-07-13T21:34:26.33424769Z caller=intrumentation.go:67 msg="changing probe status" status=not-ready reason="bucket store initial sync: sync block: BaseFetcher: iter bucket: 503 Service Unavailable"
level=info ts=2023-07-13T21:34:26.334301935Z caller=grpc.go:138 service=gRPC/server component=store msg="internal server is shutting down" err="bucket store initial sync: sync block: BaseFetcher: iter bucket: 503 Service Unavailable"
level=info ts=2023-07-13T21:34:26.334362008Z caller=grpc.go:151 service=gRPC/server component=store msg="gracefully stopping internal server"
level=info ts=2023-07-13T21:34:26.334490204Z caller=grpc.go:164 service=gRPC/server component=store msg="internal server is shutdown gracefully" err="bucket store initial sync: sync block: BaseFetcher: iter bucket: 503 Service Unavailable"
level=error ts=2023-07-13T21:34:26.335417606Z caller=main.go:158 err="503 Service Unavailable\nBaseFetcher: iter bucket\ngithub.com/thanos-io/thanos/pkg/block.(*BaseFetcher).fetchMetadata\n\tgithub.com/thanos-io/thanos/pkg/block/fetcher.go:375\ngithub.com/thanos-io/thanos/pkg/block.(*BaseFetcher).fetch.func2\n\tgithub.com/thanos-io/thanos/pkg/block/fetcher.go:439\ngithub.com/golang/groupcache/singleflight.(*Group).Do\n\tgithub.com/golang/groupcache@v0.0.0-20210331224755-41bb18bfe9da/singleflight/singleflight.go:56\ngithub.com/thanos-io/thanos/pkg/block.(*BaseFetcher).fetch\n\tgithub.com/thanos-io/thanos/pkg/block/fetcher.go:437\ngithub.com/thanos-io/thanos/pkg/block.(*MetaFetcher).Fetch\n\tgithub.com/thanos-io/thanos/pkg/block/fetcher.go:497\ngithub.com/thanos-io/thanos/pkg/store.(*BucketStore).SyncBlocks\n\tgithub.com/thanos-io/thanos/pkg/store/bucket.go:462\ngithub.com/thanos-io/thanos/pkg/store.(*BucketStore).InitialSync\n\tgithub.com/thanos-io/thanos/pkg/store/bucket.go:531\nmain.runStore.func3\n\tgithub.com/thanos-io/thanos/cmd/thanos/store.go:366\ngithub.com/oklog/run.(*Group).Run.func1\n\tgithub.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\truntime/asm_amd64.s:1598\nsync block\ngithub.com/thanos-io/thanos/pkg/store.(*BucketStore).InitialSync\n\tgithub.com/thanos-io/thanos/pkg/store/bucket.go:532\nmain.runStore.func3\n\tgithub.com/thanos-io/thanos/cmd/thanos/store.go:366\ngithub.com/oklog/run.(*Group).Run.func1\n\tgithub.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\truntime/asm_amd64.s:1598\nbucket store initial sync\nmain.runStore.func3\n\tgithub.com/thanos-io/thanos/cmd/thanos/store.go:368\ngithub.com/oklog/run.(*Group).Run.func1\n\tgithub.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\truntime/asm_amd64.s:1598\nstore command failed\nmain.main\n\tgithub.com/thanos-io/thanos/cmd/thanos/main.go:158\nruntime.main\n\truntime/proc.go:250\nruntime.goexit\n\truntime/asm_amd64.s:1598"

What you expected to happen:
Handle the error code, look up a different frontend HTTP IP address from DNS, and repeat with exponential backoff.

Since Minio does already retry; im not sure what we can do about this.

We also do retry the initial sync starting from 0.31.0 (see release notes), so I'd suggest you update your Thanos version.
Please let us know if that resolves your issue.


Ask user to insert a device name on first launch instead of generating a random one

Is your feature request related to a problem? Please describe.
Randomly-generated names are quite ugly
Describe the solution you'd like
A pop-up welcome screen asking the user to provide a name for the current device
Describe alternatives you've considered
No response
Additional context
No response

I disagree that randomly-generated names are quite ugly. Rather, they just appear somewhat informal and less professional. However, @Tienisto mentioned somewhere that in this regard, he's somewhat inspired by the approach of Snapdrop. ShareDrop, for example, uses animal icons. In general, in such cases, I recall Ubuntu, which, despite everything, remains the most popular Linux distribution and is used by many business clients. Their approach to release names, such as Disco Dingo 😂, reminds that it isn't necessary to always be so formal 😉
As for a pop-up welcome screen asking user to provide a name for the current device, it's certainly a great idea, though not a new one. The key isn't to greet the user immediately with a name input field 😄

I disagree that randomly-generated names are quite ugly. Rather, they just appear somewhat informal and less professional. However, @Tienisto mentioned somewhere that in this regard, he's somewhat inspired by the approach of Snapdrop. ShareDrop, for example, uses animal icons. In general, in such cases, I recall Ubuntu, which, despite everything, remains the most popular Linux distribution and is used by many business clients. Their approach to release names, such as Disco Dingo 😂, reminds that it isn't necessary to always be so formal 😉
As for a pop-up welcome screen asking user to provide a name for the current device, it's certainly a great idea, though not a new one. The key isn't to greet the user immediately with a name input field 😄

With "ugly", I meant unprofessional.
Ubuntu is not a tool that an average user might use, but rather it's designed for geeks who are used to these kinds of jokes.
While I agree that a pop-up window might not be the best UX, I would at least try to generate a good-enough name based on real device information.
On android, we could use the device name (the same that appears under Bluetooth settings for example)

I disagree that randomly-generated names are quite ugly. Rather, they just appear somewhat informal and less professional. However, @Tienisto mentioned somewhere that in this regard, he's somewhat inspired by the approach of Snapdrop. [ShareDrop](https://www.sharedrop.io/

These are browser-based apps and they are limited by javascript APIs, which does not return any kind of information about the device you are using.
This is a good this of course, otherwise it would be misused by every advertisment company to track you, but (I Think) a native app should have access to more accurate devide information

I don't think I mentioned the limitations in the JavaScript API anywhere. So, this doesn't relate to the essence of my response at all. I simply explained why the author chose such an implementation and what considerations guided him when assigning, as you noted, "quite ugly" names. That's all.

Actually, I am also fine if the device name is used in the first place.
I guess the random generated name commonly used in other file sharing apps is to ensure more privacy because your device might be called "Alice's iPhone".
An option would be to make the random generated name opt-in for privacy oriented users. There will be a button to generate a random name.

I also don't quite agree with such strict privacy measures, given that many of us don't even turn off Wi-Fi and Bluetooth because they are needed for connected wearable devices and many other applications. But as a developer, I believe you have a better perspective on this.
Considering the above-mentioned fact, the current implementation is probably the most optimal one. Certainly, for those who deploy an entire network for sharing based on LocalSend, it creates certain inconveniences. However, an input window for the name during the first launch of the application probably won't resolve the situation either. And, moreover, it would be a poor decision from a UX perspective.
As for a more formal generated names, currently, the application reads the label for the device itself, such as Windows, Linux, iPhone, Xiaomi, OnePlus, etc. In principle, names can be generated using this label, adding a number to them since there might be several devices with the same label in most cases. Then we would have: iPhone 5, Xiaomi 11, Windows 8, and so on. Since the number immediately after the device label may indicate the version of the device or system, we can separate the label and the number using some constant, like Device. So, the output would be: iPhone Device 5, Xiaomi Device 11, Windows Device 8. For more visual appeal, we could also add a # sign. iPhone Device # 5, Xiaomi Device # 11, Windows Device # 8 (certainly, without gaps between # and the number, which I added due to Markdown formatting). As for the numbers, we could take them from the IP address, although with reconnects, the IP address isn't static, so another device may eventually get the same numeric label. However, the same situation applies to a random names list that repeats. So, this aspect is debatable.
Therefore, the name formula would be: Label + *Device + **Number. *Device = a constant; **Number = random from the list or from the IP address. Of course, this won't help much in differentiating between devices when deploying the app on large networks, but it'll allow for more formal initial names, as I can see the current random names aren't to everyone's liking.

Since you've already provided an example with Bluetooth, when you first activate the device, you won't be prompted to enter a name for Bluetooth either. Instead, a default name is used, which you can simply change in the Bluetooth settings. Similarly, in the case of LocalSend. The default name is selected from a separately created list, not based on the device's name. As the author has already pointed out, this implementation is related to security.

I've updated the title, to better reflect the goal of this discussion.
Regarding your answer:

On iPhones, well, it kind of does, considering that usually they are called with your name.
While Android phones or windows devices don't show up with your name, they definitely don't generate a random funny name

Regarding your answer:

On iPhones, well, it kind of does, considering that usually they are called with your name.
While Android phones or windows devices don't show up with your name, they definitely don't generate a random funny name

Yes, most likely the name for Bluetooth is formed based on your name, but you don't set it directly. It's probably derived from the data you provide for the "Name and Birthdate" item. But, less on that, it's not important at all.
"They definitely don't generate a random funny name." Well, I explained where this idea came from, and as the author said, many other apps/services use a similar approach. Some people like it, some don't, and some are indifferent because you can always open the settings and set the desired name right away. I've a fairly neutral position on this because I know that many people like this option. Although personally, I prefer a more formal approach.

Yes, that's more or less what I had in mind. Free to agree or disagree. Thank you

This is the only feasible option to ensure a formal approach to the initial device name, which comes to my mind, considering that we cannot read the device name directly.


Divergence between docs and behavior for "replace" parameter

As of mkdocs 0.5.0, the documentation at https://allisonthackston.com/mkdocs-simple-plugin/mkdocs_simple_plugin/plugin/
states with respect to the "replace" parameter that "If none [of the replace patterns] match, the line is transcribed unchanged." However the code now has the behavior that if the "replace" parameter is specified and none of the patterns match, the line is dropped.
I would be happy to file a pull request to align the two, but would need direction as to whether the documentation should be changed to reflect the changed behavior, or the behavior should be restored to match the documentation.

Oh, and per a comment you made on some other issue a while back, I will also add a test verifying whichever behavior you deem to be the desired/official one going forward.

I think there's a bit of a conflict between the original way replace was implemented and what I was trying to use it for, which is more like a "match".
I'll open a PR that returns the replace parameter back to transcribing and adds a match parameter that drops lines that don't match the regex pattern.

Just want to point out that technically there is no need to add such a match parameter: currently a replace regex that has no associated expansion and no group drops all the lines it matches. And regular expressions are closed under complementation, so you can always find another regular expression that matches exactly the lines that a given regexp doesn't match. So for example if you want to drop all lines that don't start with optional whitespace and then a hash, i.e. whose first non-whitespace character is not a hash, just use '^\s*[^#\s]' as a replace regexp.

Sure, but (.*) is easier than that, so it seems like inclusion-based is an easier pattern.
If you just want to update the docs, I think that sounds good too.

OK, if that's the case, then is it OK if a pattern with no group and no associated expansion that matches causes the line to be transcribed unchanged? Since nothing matching now causes the line to be dropped, whereas before that's what would cause the line to be transcribed unchanged?  Thanks for letting me know, happy to resolve this once I hear back.

Looking back over, it looks like the real issue was that I didn't correctly port dropping lines in my refactor.
Returned to original implementation and updated the defaults for comment lines to drop non-commented lines.


Unable to install murmurhash 1.0.1

[x] I am on the latest Poetry version.
[x] I have searched the issues of this repo and believe that this is not a duplicate.
[x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

OS version and name: macOS
Poetry version:  12.3
Link of a Gist with the contents of your pyproject.toml file:

Issue
I'm having an issue installing murmurhash with Poetry. It seems like pip might need to be updated (see below) but I'm not clear how to do that. I'm reporting this here because right now it seems like the pip version might be locked with the Poetry release in which case this seems like it should be fixed there.
[EnvCommandError]
Command ['/root/.cache/pypoetry/virtualenvs/biblioteca-py3.7/bin/pip', 'inst
all', '--no-deps', 'murmurhash==1.0.1'] errored with the following output:
Collecting murmurhash==1.0.1
  Could not find a version that satisfies the requirement murmurhash==1.0.1
(from versions: 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23,
0.24, 0.25.0, 0.26.0, 0.26.1, 0.26.2, 0.26.3, 0.26.4, 0.28.0, 1.0.0.dev0, 1.
0.0)
No matching distribution found for murmurhash==1.0.1
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Seems like this is the underlying issue.


Package: try

Added config for try
I saw that there are different indentations in sections? In some source blocks there are 0/2/4 spaces. I like adding newlines before headlines and starting the content right after that, but that may not be the case with everybody.
It would be nice to have a explicit convention specified for contributors :smile:

@seshaljain thanks for the PR, I've merged it.
I've gotten much more response and engagement than I had imagined so I'll definitely spend some time soon to standardize and maybe even add a full contributing document, it'll be good practice if nothing else.
Thanks again.


Files that equal 0 bytes break this program

/cassandra_backups/data/cassandra/data/clearcore/transactions/clearcore-transactions-jb-15105-Summary.db => s3://cassandra-backups.us-east[Runtime Failure] Unable to read data from source: /cassandra_backups/data/cassandra/data/clearcore/transactions/clearcore-transactions-jb-17476-Statistics.db
[Runtime Failure] Unable to read data from source: /cassandra_backups/data/cassandra/data/clearcore/transactions/clearcore-transactions-jb-17476-Data.db
[Runtime Failure] Unable to read data from source: /cassandra_backups/data/cassandra/data/clearcore/transactions/clearcore-transactions-jb-17476-CompressionInfo.db
[Runtime Failure] Unable to read data from source: /cassandra_backups/data/cassandra/data/clearcore/transactions/clearcore-transactions-jb-17476-Index.db
[Runtime Failure] Unable to read data from source: /cassandra_backups/data/cassandra/data/clearcore/transactions/clearcore-transactions-jb-17476-Filter.db
The thing all of these files share is that they all (for whatever reason) were 0 bytes. After testing on a single 0 file created by dd sure enough this breaks the program.
Specific flags I am using
s4cmd dsync --verbose --recursive --delete-removed -c 7 $dir_src/ "$s3_url/$dir_target/"
I will look in the code tomorrow to see if anything pops out that I can help on in looking at this issue.

I'm assuming without looking that this may be relevant to some size operator that determines local file size before pushing to S3 to determine if the file needs to be chunked or not.
Maybe a divide by zero sort of thing?
haha.

Me too. I assume there's a test "can I read the file" that evaluates as a string .. if the string is empty, then you can not read the file ...

Yeah here we go:
  @log_calls
  def read_file_chunk(self, source, pos, chunk):
    '''Read local file cunks'''
    data = None
    with open(source, 'rb') as f:
      f.seek(pos)
      data = f.read(chunk)
    if not data:
      raise Failure('Unable to read data from source: %s' % source)
    return StringIO(data)

See: https://docs.python.org/2/tutorial/inputoutput.html#methods-of-file-objects
$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> if '':
...  print "true"
...
>>>

We need something other than if not data ... I think you really just to "try .. open .. except" ...

This appears to work:
  @log_calls
  def read_file_chunk(self, source, pos, chunk):
    '''Read local file cunks'''
    data = None
    with open(source, 'rb') as f:
      f.seek(pos)
      data = f.read(chunk)
    if not f:
      raise Failure('Unable to read data from source: %s' % source)
    return StringIO(data)

This code does'nt seem to work for me.
s4cmd dsync -r -t 1000 --ignore-empty-source --num-threads=4 forms/ s3://bucket/GJ/OM/
Error:
[Thread Failure] Unable to read data from source: /home/ubuntu/path to file

Never mind, it worked. I had to call the s4cmd.py file

this worked for me also, please commit this change

Duple of #66 .


bisaol / osongel

bisaol / osongel created by<EMAIL_ADDRESS>on 2017-01-08 14:18:41

<EMAIL_ADDRESS>replied, both are formed from OMES and have the same position (v.a.s.) in our DB. are they the same, or have some different meanings?

<EMAIL_ADDRESS>replied, Same meaning:Bisaol:bisongel:bisengelel:bisengelam:bisengeliu:bisengngelek:bisengelterir:Osongel:osengelel:osengelam:osengeliu:osengelterir.

<EMAIL_ADDRESS>replied, and what is that meaning? hard to understand BISENGELTERIR and OSENGELAM withou examples. greetings to you, Ulang!)

<EMAIL_ADDRESS>replied, Greetings Aleks!Both means showcase.Bisongelterir: their showcase: bisaol er tir.Osengelterir: their showcase: osongel er tir.

<EMAIL_ADDRESS>replied, these words we don't have at all. I meant verbs that sound like that.

<EMAIL_ADDRESS>replied, Oh dear...let's wait for Belauans.

<EMAIL_ADDRESS>replied, Look what we already have in tekinged.com) - osongel v.a.s. is to be seen or looked at.osongel a kirel el moes; mes a ngloik, omes a ruk, smecher a mo er a osongel; osengel.

<EMAIL_ADDRESS>replied, Yes. Something to be seen: bisaol or osongel, could be a personal thing or a something that needs to be shown widely to more than just a person.

<EMAIL_ADDRESS>replied, Example: A kabekel era Belias el Kesebekuu a bisaol /osongel er a chisel mea rretel.The famous war canoe of Belias is a show case item for its speed and performance. ðŸ˜€

<EMAIL_ADDRESS>replied, bisaol is something to be seen.    I don't see well at night.

<EMAIL_ADDRESS>replied, A cheldebechel a bisaol a nglikir era kebesengei era Bai 'ra Melengel.
Ngar ngii osongel era re meloik era Bai 'ra Melengel era kebesengei.Ngar ngii a osengelir a remeloik era kebesengei.


Crypto Currency

Describe the project you want to add with tech stack
The React app on cryptocurrency tracker is a powerful and user-friendly application built using the React JavaScript library. It is designed to provide real-time information and analysis of various cryptocurrencies, enabling users to track their favorite digital assets efficiently. Users can view detailed information about each cryptocurrency, such as current price, market capitalization, trading volume, and price charts over different timeframes.
Expected behavior
The app leverages APIs from reputable cryptocurrency exchanges and data providers to fetch real-time market data. This ensures that users receive accurate and up-to-date information on cryptocurrency prices and market trends. The app's integration with these APIs enables users to make informed decisions about buying, selling, or holding their cryptocurrencies.
Screenshots (optional)

please assign me this issue under GSSoC'23.


Add log if connecting to redis cluster failed

also a general comment, you should refactor the RedisModule to be side effect free and not create redis connections from the constructor. I know you have it lazily provided with a Provider, but it would be even better to move the connection logic to a start method. This will require a wrapper object, that delays constructing the Redis object until the start method is called.
https://github.com/google/guice/wiki/ModulesShouldBeFastAndSideEffectFree


Add graphql service doc plugin

Motivation:
Trying to utilize DocService to provide a service like GraphiQL.
Modifications:

Add GraphqlDocServicePlugin

Only provided by POST method

Add debug page like graphiql

Add graphql
Add codemirror
Add codemirror-graphql
etc...

Fix DocService

Apply auto decompress
Apply to serve compressed file

Result:

Closes #3706

@heowc Could you fix the merge conflict meanwhile? 🙇

@heowc Could you fix the merge conflict meanwhile? 🙇

Yes, I can ! :)


Dashboard filters

Add filters to the huskyCI dashboard, i.e. filter by language, vulnerability level and etc.

I can take this one, if no one already solved.

Hello, everyone! After discussing internally with the huskyCI team, we have decided that this feature may not provide us so much value at this moment. We are closing it for now as we are redesigning how our dashboard will be displayed to development teams. Thank you all so much for working on this though.


IPSec Support for Elliptical Curve DH Groups

While configuring IPSec VPN the EC DH Groups (19,20,21) are missing from the options.  StrongSWAN has been supporting these for some time now.  Since Groups 1, 2 & 5 are now considered as insecure and the ECC groups along with Group 24 (Already supported) are recommended to be used in VPNs, raising this ticket to get these enabled.  As per Franco in the  forums this should only needs a configuration change.
https://supportforums.cisco.com/t5/security-documents/diffie-hellman-groups/ta-p/3147010

this https://github.com/opnsense/core/commit/581b8b17bcd26ee3d97774efb6c8e65b6ee2ed85 should do the trick, changed the default for new entries to 24 in the process and there seemed to be some missing implementation for some of the types.


wait for graphql server

recreated the pull here: https://github.com/dolthub/dolt-workbench-desktop/pull/9
to get rid of the publish app changes, only includes the graphql server change


location.toString() returns an empty object

I'm using history.listen() to log route changes and I'm trying to get the pathname, search and hash (basically everything in the address bar after the domain name) and was hoping that calling location.toString() would give me that. Instead it appears to just return an empty object.

I kind of want to keep location objects as simple as possible so we don't have to treat them specially all over the place. That said, creating the string should never be more complex than location.pathname + location.search + location.hash.


Request: Automatically create unit test from command line

Issue
find . -type f -name “*.go” | while read -r x; do echo "Create unit test for file. Then run 'make test' and fix any errors." | aider --sonnet --dark-mode --no-cache-prompts --no-auto-commit --no-suggest-shell-commands --yes --file "$x"; done

I would love to be able to execute a command like this in a repo to recursively create unit tests for the entire repo. Running make test would give aider a chance to capture the output and iterate X number of times until the unit test is working. Is this within scope for aider?
Version and model info
latest

Thanks for trying aider and filing this issue. This doc may be helpful:
https://aider.chat/docs/scripting.html
Just use --message "do the thing" not stdin for the message.

Wow! thanks for the prompt response! Happy Thanksgiving!


Extract Kernel#Integer to a new crate, scolapasta-int-parse

Extract the parser and implementation of Kernel#Integer to its own crate, a new scolapasta crate.
This PR performs the extraction 1:1, ports kernel::trampoline to the new crate, and then does a v0.2.0 rewrite to better handle the vagaries of radix parsing. The signature for parse looks like:
pub fn parse<T>(subject: &T, radix: Option<i64>) -> Result<i64, Error<'_>>
where
    T: AsRef<[u8]> + ?Sized,
{
    // ...
}

scolapasta-int-parse is no_std + alloc, has 100% documentation and example coverage, and a boatload of tests.
This new implementation handles more radix edge cases, has proper exception messages, and throws RangeError instead of ArgumentError when the radix is outside of i32 range.
Examples of new radix behavior that is captured:

-1 parses to the None radix.
Negative invalid radixes are ignored when string input has 0x... style prefixes.
Radixes < i32::MIN and > i32::MAX are RangeErrors but have different error messages.
Negative radixes are rounded to positive and reported as positive in "invalid radix" error messages.

Some additional FIXMEs have been identified where Kernel#Integer in kernel::trampoline needs to handle i64 and f64 arguments.

markdown link check failure is expected since this is a new crate and the docs aren't pushed to GitHub Pages yet.

Some additional FIXMEs have been identified where Kernel#Integer in kernel::trampoline needs to handle i64 and f64 arguments.


Tracking issue platform support

Tracks the status and blocking issues for each platform

[x] Linux
[ ] MacOS

[x] icu symbols missing in dylib was reported by (@ea2973929)
[x] crash on button press in debug mode
[ ] fails to start in release mode
[ ] add packaging support to cargo-flutter

[ ] Android

[ ] handling redrawing and orientation changes it tricky (https://github.com/rust-windowing/winit/pull/1328)
[ ] jni is required for locating app.so. Attaching the javavm to a thread crashes (https://github.com/flutter-rs/flutter-app-template/pull/2)
[ ] x86_64-linux-android and i686-linux-android fail to link with engine on ci only

[ ] Windows

[x] building engine for windows (#98)
[x] building engine for windows regression (fixed by @csnewman)
[x] flutter-rs fails to link agains flutter_engine.lib (#106) (fixed by @csnewman)
[ ] winit windows darkmode bug (https://github.com/rust-windowing/winit/issues/1405)
[ ] add packaging support to cargo-flutter

[ ] iOS

[x] Creating bindings for flutter-engine-sys fails, possibly related to (https://github.com/rust-lang/rust-bindgen/issues/1211)
[x] copypasta needs to be ported to ios (https://github.com/jwilm/alacritty/issues/3179)
[ ] add packaging support to cargo-flutter

Could you explain a bit, which crate should I edit?
now code in flutter-app-template is
    let window = WindowBuilder::new().with_title("Flutter App Demo");
    let flutter = FlutterWindow::new(window, Path::new(&assets_dir).to_owned()).unwrap();
    let flutter = flutter.with_resource_context().unwrap();

Updated the template to the latest flutter-rs. Commenting let flutter = flutter.with_resource_context().unwrap(); should have the effect that @csnewman was trying to achieve.

How about adding tracking issue for supporting the Web? Probably via wasm and/or Yew @https://github.com/yewstack/yew


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 15:48:29 on 2023.05.22
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 2, errors out: 0
Original problem ID: 21599
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=21599

Problem has been resolved in 6m 0s at 15:54:29 on 2023.05.22
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 21599


fix() : no result error displayed in Sequence Search

Issue https://github.com/uw-ssec/codeuw/issues/35#issue-1995452635
Solved the issue discussed above using try-except block.
@carlosgjs

@Jinay01 , can you also rename the PR title to include the prefix "fix: "? This is to follow the Git conventional commit naming guidelines. Thanks!

I have made the changes that you have suggested.


React is peer dependency

Hi,
as React only 1 instance could be installed, your package was crashing our production as soon as badge was being instantiated.
We have to stay on "react": "~15.1.0", for now due to compatibility reasons and as your package have react as dependency, it pulls it's own version.
With peer dependency it will stay on the working 1.3.0 version or higher which does not need new react. But as there was no peer, it upgraded to new with its own bundled react.
Please link react and similar dependencies as peerDependency.
Regards
Robo

@ShockiTV
I updated package.json and v1.3.4 is released  on npm.
https://github.com/georgeOsdDev/react-notification-badge/commit/929590a9e95032c260194d1f6bebcf0d735c7f7c
Please try latest one.


Documentation to use spring cloud config in a non-spring boot application

Is there any documentation that could help with configuring spring cloud config server/client in a non-spring boot application?

Duplicate of #299


Better tracing support using the Open Telemetry APIs

Description
Feature Request: As a developer or integrator I'd like insights into where things are potentially bottlenecking and where in turn where performance can be gained. At present Besu has support for tracing on the JSON RPC APIs and would be nice to extend this to the rest of the codebase ie aspects of syncing, peering etc. Suggest maybe the use of Jaeger here?
Acceptance Criteria
Better visibility into the underlying processes

Jaeger is deprecated. You should use OpenTelemetry throughout.


readme edits / combo test / html builder / command-line

first pull request here. lmk if any changes are needed.
this one includes:

typo and addition for clarity to readme.md
addition of "combo test" that takes output from completion and sends to dall-e
combo test builds an html file and opens in default browser, makes it easier for user to see combined results (no copy/paste multiple urls)
takes prompt and number of images as command-line inputs, also added sample values to launchsettings.json

Hi, I think the readme updates are okay. But I am not sure about combo tests and arguments in the playground. They increase complexity, especially for beginners. As I mentioned earlier I think it is better to keep it simple.
My suggestion is to create a new repo and we can point your sample projects on the wiki page. What do you think?

up to u. imho, when trying to "take it for a test drive" it's nice to be able to have something that's easy to see the results.
also, nice to demonstrate the functionality of the tools working together.
but yeah i can roll on my own if that's preferable.
do i need to cancel and re-submit just those readme edits?

i mean dunno if it's even worth a pr for the readme edits, they are very minor. can prob make those just copy/paste.
just lmk.

so do u want me to re-submit and do a PR on just the readme edits?

I am sorry, I was busy a bit if it is not too much hassle for you, yes, please 🙏🏻 .

ok sure, i closed this PR and added new one --> https://github.com/betalgo/openai/pull/88


add remote percentage column (issue15)

#15 issue
add remote percentage column

I would like this approach more than #15 because it would allow sorting and give more detail while still being a simple filter option


Add short name of day to risk report notification

Current Implementation
If you get a notification about high risk encounters, the number of days since last encounter is shown - i.e. "8 days since last encounter". This is somewhat confusing, if the last update happened yesterday.
Suggested Enhancement
Could we add the short form of the day of week "8 days since last encounter" refers to?
So, that it's shown as "Wed, 8 days ago since last encounter"?
Expected Benefits
This would help destroy confusion about what day is meant.
If you were around with people on one specific day day that don't have a smartphone (i.e. kids), you could more or less safely determine, if they were at the same risk as you or not.

See also #188

Hi @lordgurke,
Thanks for contributing, see also https://github.com/corona-warn-app/cwa-documentation/issues/433.
Best wishes,
DS
Corona-Warn-App Open Source Team

Hey @lordgurke
With 1.8.0 the exact date of High-Risk Encounters will be shown, not the name of the day but I think this would solve this request, or? (see: corona-warn-app/cwa-app-ios#1550)

Perfect - Thanks!


[FEATURE]: Avoid forbidden characters in the search box

How can the project be improved?
Avoid forbidden characters in the search box in order to prevent security issues such as XSS through code injection
How can this be solved?
Given a shopper typing in the search-box component
when the shopper types forbidden characters like < or >
then the search box prevents the acceptance of this characters
and nothing changes in the search box.
Proposed solution
Add a config to the SearchBox module to pass the characters to be forbidden.
Customizations supported
No response
Additional information
This is the location of the search-box module

Code of Conduct

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

Hi @herrardo,
Can I take up this issue?

Sure @ritikBhandari! Ping us if you need any help. You can start by taking a look at the search-input component.

Sure. Thank you!

So what are the forbidden characters other than < and >? I guess majority the special characters right?

@ritikBhandari < and >  should be enough.

Ohkay!
You've made it easier :)

Ohkay! You've made it easier :)

Hey @ritikBhandari !! Are you still interested or faced any problems? Let us know, have a good weekend ;)

Can I give this issue a try?

Can I give this issue a try?

Sure @wannieman98 👍

I'm really sorry @herrardo I was involved in some unavoidable issues lately. I'll definitely do it ASAP or @wannieman98 can also try.

I'm really sorry for the inconvinience @herrardo. I was involved in some unavoidable issues lately. I'll definitely do it ASAP or @wannieman98 can also try.

Don't worry about it. If you both try we'll review both PR's 🙌

Hola! @herrardo I've been taking a look at this today to get familiar with this codebase. I have a PR ready implementing this new prop as a blacklist, but I just bumped into the following article that discusses the disadvantages of using blacklists (vs using whitelists):
https://research.nccgroup.com/wp-content/uploads/2020/07/ncc-group-whitepaper_the-disadvantages-of-a-blacklist-based-approach-to-input-validation.pdf
Have you guys considered using a whitelist instead (we would need to define what's the acceptable input)? Thank you!

@wannieman98 Thanks for the contribution! Your PR took a while to merge because we had issues to merge PR from outside the organization but everything got solved finally, thanks again ;)


Its currently defined as an optional dependency, in that it will try to install but if it fails then npm install will continue regardless.

Its currently defined as an optional dependency, in that it will try to install but if it fails then npm install will continue regardless.
Originally posted by @lloydwatkin in https://github.com/astro/node-stringprep/issues/16#issuecomment-29698451

mistake