Do not correct URLs

Kind of a funny example:
Line 181: warning: corrected "https://github.com/broady/gogeohash" -> "https://github.com/broadly/gogeohash" (misspell)

Suggestion: should not correct urls, possibly by ignoring words with leading and/or trailing slashes.
Discovered at: http://goreportcard.com/report/paulmach/go.geo

great.. yeah I've seen this too and its annoying.
will investigate.
n

Hi @paulmach
misspell got fixed up so this and other long strings of no-white-space-text won't trigger a false positive like this.
I'll ping @shawnps to update goreportcard and you should get 100%
thanks!
n

long strings of no-white-space-text

How is "long" defined?

Im very happy to adjust this @shurcooL
// shouldUndo checks if a corrected string should be kept as original
func shouldUndo(s string) bool {
        // this is some blob of text that has no spaces for 20 characters!
        // Smells like programming or some base64 mess
        if len(s) > 20 {
                return true
	}


[Python docs feedback] issues in code snippet from 'Develop your app'

Problem description
There is 2 issues in the code snippet from 'Develop your app' in Python:

1/ There is no db password creation so it must be empty in the 3 connectors instantiations
2/ There is no way to save widgets (as mentioned bellow the snippet)

Problem location
I saw a problem on the following URL: https://docs.docker.com/language/python/develop/#connect-the-application-to-the-database
Project version(s) affected
It's about the code snippet.
Suggestions for a fix
1/ Fix the password issue
mydb = mysql.connector.connect(
   host="mysqldb",
   user="root",
   password="",  # TODO must be empty in each call
   database="inventory"
)

2/ Add a way to save widgets using get_widgets()
To keep it simple, I decided to:

add the request object from flask (from flask import request)
add the POST methods to the route decorator (methods=['POST'])
read the data contained in the POST request with the request object (request.form['name'])
insert the data in the database (before the fetch part)

Note: it breaks many best practices. In a REST API, it would be better to have 2 different routes, one to POST (create data) and the other one to GET (read data).
from flask import request

@app.route('/widgets',  methods=['POST'])
def get_widgets():
    mydb = mysql.connector.connect(
        host="mysqldb",
        user="root",
        password="",
        database="inventory"
    )
    cursor = mydb.cursor()

    # POST part
    name = request.form['name']
    description = request.form['description']
    cursor.execute(f"INSERT INTO widgets VALUES ('{name}', '{description}')")

    # GET part
    cursor.execute("SELECT * FROM widgets")

    row_headers = [x[0] for x in cursor.description]  # this will extract row headers

    results = cursor.fetchall()
    json_data = []
    for result in results:
        json_data.append(dict(zip(row_headers, result)))

    cursor.close()

Best Regards,
Guillaume Klimek

But,
The rest of tutorial will match with the current snippet (even if it's not very interactive).
Suggestion
Change the way of testing the mysqldb connector.
Another problem
Wrong port in the last curl command: curl --request GET --url http://localhost:8080/widgets. Port is 5000.

Thanks @guillaumeklimek, we're working on a fix in #12559.


BUG: Comments cannot be deleted

Attempting to delete a comment creates a confirmation dialogue to confirm the deletion. This dialogue closes itself after a few hundred milliseconds before the user has an opportunity to make a selection. Refreshing the page shows that the comment has not been deleted.
Using latest version of Firefox on Windows 10. Confirmed on all layouts (while using a few other extensions). Confirmed on the 2019 layout in a clean instance of Firefox with all other extensions disabled.

Can confirm. I was trying to pin a comment.

I am aware of the issue. I think I might know what's causing it but I'm not entirely sure yet. I'll look into it when I get the chance

Fixed in <IP_ADDRESS>.


Addition of multiple threads and proxy to directory buster

Aim
Following the discussion on https://github.com/dscciem/Pentesting-and-Hacking-Scripts/pull/77#issuecomment-800543786, the next steps are to add threads for parallelism and support for proxies.
Details

Parallelism
Proxied request
Support for more threads

Do I want to work on this:

[x]  Yes
[ ] No

Please assign me this issue :)

@chinmoy12c 👌

@avinashkranjan please don't close this issue as of now, since there are still feature such as parallel directory busting and proxies left to be integrated. I'll be submitting one/two more patches to address those features.
Thanks.

Reponed the Issue @chinmoy12c


TAG: G1-spin label

It is gadolinium complex based on 4-mercaptomethyl-dipicolinic acid (4MMDPA)-modified cysteine side chain. See  PMID:25438671
Reported by: lukasz99

Name: Gd3+-4MMDPA tag
Synonym/short label: g1-spin lable


Fix wrong path used for check bucket name script

@armab any concerns around;
set -x -> set -e -o pipefail


Added book reference with title "Building Serverless Python Web Services with Zappa"

Description
I wrote the book with the title Building Serverless Python Web Services with Zappa in association with Packt Publication. This book covers building serverless python web services using Zappa where I have demonstrated with Django, Flask, Bottel and Falcon framework. I covered almost every aspect in association with Zappa where I practically demonstrated Zappa's features. I hope this book will be very useful for anyone who is willing to use Zappa for python application deployment.
I have added book reference under the Zappa Guide section and would request you guys to review and approve this PR.

GitHub Issues

Coverage remained the same at 73.933% when pulling d60b11e69b10732998bd3708f2e8c5140e86d48b on abdulwahid24:guide-book into 4be07284c09c8658665ca5811249249fcc92e5c0 on Miserlou:master.

Hey... great initiative! However, I would suggest a sufficient sample on Amazon. Right now, the sample ends on the "Preface" page of the book. Right now you can only have a look at the table of index in the sample. No one can judge it until you add a chapter or two in the sample.

Hi @superappy,
Thank you for your suggestion. I have updated the link to Book's Github page created by Packt Publishing as It has detailed information along with sample chapters.
I hope it would suffice to understand the context of the book. Please do let me know in case of any queries.
Thank you.

Done and thanks for writing this!

Thank you @mcrowson.


enhancement request for .bindAll and .functions

Would you accept a pull request or would you like to implement the following idea:
My current usecase: in backbone views we often use .bindAll for event handlers. Currently there are 2 options, bind to all functions of the instance or to name functions explicitly.
My idea is to pass a second argument to bindAll, which is a regexp for functions selection.
At this way I could write _.bindAll(this, /^handler/)
I am using my personal convention and all event handlers a prefixed by 'handler', so all handlers will now have the conext of my view instance.
.bindAll and .functions have to be patched, the side effect .functions will also accept 2. param and one can filter the functions.
What do you think about it?
Best,
Oleg

As far as I'm aware, there aren't any other functions provided by Underscore that take "polymorphic" arguments like that.  To me, this sounds like a candidate for a mixin of separate functions, more than it sounds like a candidate to modify existing functionality of bindAll.
So here's a link to a gist I wrote which provides _.bindFiltered and _.bindMatching.  bindFiltered takes a function that should return something truthy depending on an argument of a single function name. bindMatching takes a regular expression, and it binds only the functions whose names match that regular expression.
Here's a jsFiddle link that runs the mixin's tests in your browser.

@mark-rushakoff

polymorphic arguments is actually very typical for js, to much APIs to learn is also not the best.
bindMatching implementation has too much function calls, one simple 'for' loop instead of 5-6 is enough :)

just found out, that backbone already doing .bind to view instance on event handlers, also learned today, that .bindAll(this) without explicite method names could be pretty evil, because it will bind also methods inherited from the parent class and you probably doesn't expect this and while trying to .call a n overwritten parent method getting weird results because passed context is just ignored without errors ...

Yep -- we don't want to have a regex selector as part of the public API, but this is a great candidate for a mixin function.


Instrument Exemplar Storage and Scraping

It would be amazing to know more about what is happening with exemplars in Promethus based on metrics.
AC:

Prometheus exposes metrics on:

how many exemplars were scraped
how many we hold in queue
the oldest exemplar in queue etc

cc @cstyan   (Unless I missed something and we have those already - could not find though)

Fixing attempt: https://github.com/prometheus/prometheus/pull/8712

Just spotted this issue. Does this mean that scraping of exemplars currently does not work?

It means that we could have more metrics to get more insights, but yes examplars do work in Prometheus 2.26.


Fixed type annotations and a variable name

This fixes the only issues I ran into trying to run the pipeline end-to-end (not counting the known issues with the vizapp, and not counting the MDC project). Just a couple of bugs that got introduced during my documentation PRs.

Everything here was addressed in #393


[csrng/dv] Test CS_MAIN_SM_ALERT

This tests the functionality of the CS_MAIN_SM_ALERT in the
RECOV_ALERT_STS control status register. The tests works as follows:

Send an illegal command (INS, GENB or GENU).
Spin wait for the alert to show up in the CSR.
Disable and enable the block to clear the alert.
Check that the alert has really cleared.

Contributes to issue: https://github.com/lowRISC/opentitan/issues/15743

Added missing sign-off line.


Make a new workshop release

It's been 5 months since the last push to the workshop branch - we should start preparing for the next one.
Please add any issues or PRs you'd like to be in the next release to the 'Next Workshop release' milestone.

This probably won't happen for a few days because there are quite a few bugs and and PRs I was planning on working on over the weekend, but I'm now busy this weekend and will be back on Monday.

Does the workshop branch automatically update the workshop via some build process, or do you have to find Faron again?

@immibis hypothetically it happens automagically, but I'm not sure if that actually works in practice.

I hear it usually does, but sometimes Faron needs to be poked to restart the contraption.

Going to hold on this until we reach a resolution to #965, which I probably shouldn't have pulled.

This can be closed as well


When ListTil‘s subtitle content is too much, using TextOverflow.ellipsis is invalid

sorry，that was my question，When I added a new description field to json, the failure to reinstall apk caused this error. Please close the issue.
ListTile(                 leading: CircleAvatar(                   backgroundImage: NetworkImage(value["imagesrc"]),                 ),                 title: Text(value["title"],overflow: TextOverflow.ellipsis,),                 subtitle: Text(value["description"],maxLines: 1,overflow: TextOverflow.ellipsis,),               )
json content:
 {           "title": 'Flutter Demo',           "author": 'Eason',           "imagesrc": 'https://www.cnblogs.com/images/logo_small.gif',           "description": 'Flutter is Google’s mobile UI framework for crafting high-quality native experiences on iOS and Android in record time. Flutter works with existing',       }

Hi @icodeing
I'm not sure if what you are describing is an issue with Flutter itself
or if you are asking for assistance within your code.
If you believe it's an issue with flutter,
please provide your updated  flutter doctor -v, your flutter run --verbose
and a minimal code sample to reproduce the problem.
If you need help with your app,
please be aware that this platform is not met for assistance on personal code.
Please see https://flutter.dev/community for resources for asking questions like this,
you may also get some help if you post it on Stack Overflow.
Thank you

Closing the issue per icoding's comment to close the issue.

I believe filer meant "please fix", rather than "please close"; reopening.

Aha! No, keeping closed after reviewing with @hixie; @icodeing please reopen if you meant "please fix" rather than "please close". :) Thanks!

Hi again @icodeing
I'm trying to reproduce the issue you are describing with this code

code sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) => MaterialApp(
    home: MyHomePage(),
  );
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  // from https://github.com/flutter/flutter/issues/47083
  static const String _imagesrc ='https://www.cnblogs.com/images/logo_small.gif';
  static const String _title = 'Flutter Demo';
  static const String _description = 'Flutter is Google’s mobile UI framework for crafting high-quality native experiences on iOS and Android in record time. Flutter works with existing';

  @override
  Widget build(BuildContext context)=> Scaffold(
    body: Center(
      child: ListTile(
        leading: CircleAvatar(
          backgroundImage: NetworkImage(_imagesrc),),
        title: Text(
          _title,
          overflow: TextOverflow.ellipsis,),
        subtitle: Text(
          _description,
          maxLines: 1,
          overflow: TextOverflow.ellipsis,),
  ),),);
}

with this result sample
could you please describe the issue you are experiencing more in details_
thank you

Use the following code to install the APP：
` // from https://github.com/flutter/flutter/issues/47083
static const String _imagesrc ='https://www.cnblogs.com/images/logo_small.gif';
static const String _title = 'Flutter Demo';
static const String _description = 'Flutter is Google’s mobile UI framework for crafting high-quality native experiences on iOS and Android in record time. Flutter works with existing';
@override
Widget build(BuildContext context)=> Scaffold(
body: Center(
child: ListTile(
leading: CircleAvatar(
backgroundImage: NetworkImage(_imagesrc),),
title: Text(
_title,
overflow: TextOverflow.ellipsis,),
),),);`
Once you've installed the APP, then add _description to the subtitle of the ListTitle：
` // from https://github.com/flutter/flutter/issues/47083
static const String _imagesrc ='https://www.cnblogs.com/images/logo_small.gif';
static const String _title = 'Flutter Demo';
static const String _description = 'Flutter is Google’s mobile UI framework for crafting high-quality native experiences on iOS and Android in record time. Flutter works with existing';
@override
Widget build(BuildContext context)=> Scaffold(
body: Center(
child: ListTile(
leading: CircleAvatar(
backgroundImage: NetworkImage(_imagesrc),),
title: Text(
_title,
overflow: TextOverflow.ellipsis,),
subtitle: Text(
_description,
maxLines: 1,
overflow: TextOverflow.ellipsis,),
),),);`
At this point, the APP that you've installed can't find the _description field。

Hi @icodeing
is the issue not about ellipsis? what do you mean by this?

At this point, the APP that you've installed can't find the _description field

I can't see what can be wrong

Without additional information we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Changing default file name and log rotation

Hi,
The default behaviour of the logback logger is to append .json to the default log file name, I want change this, and remove .json from the file name,
also i want to add rotation policy, what can be done for that? I can not find any documentation for these two changes.

Ok, looking at the default ecs-file-appender.xml file, got to know its defined as RollingFileAppender, removing the default ECS include, and making new appender with ecs encoder works.
It would be a good idea to add this in docs


Unarchive response, which is archived with RLE

Moya version - 9.0.0
Backend is Express (NodeJs) and sends responds archived with RLE.  Is there any implementation of unarchivation for this case.

This would be a good question for Alamofire, I'm not sure

This is out of scope for Moya, so I'm going to mark this is wontfix and close the issue. If you'd like to help other people who run into the same issue, you should post your findings here once you've solved the issue


Mentions returned from history API is empty

Not really shocking:
public class MessageMention {
}

I may add support for this sooner or later and wanted to get notified if this got fixed.

This feature will be included in the next release.
Commit 7a8341a includes the updated MessageMention class.

Hi @ppearcy :)
We've released a new beta version of our hipchat-api. This release includes the solution of your created issue. If something isn't how it should be, don't hesitate to write us. We are happy to see people using our api.
Cheers, Nikola


Balder/let document database provide vsm config too

Reverts vespa-engine/vespa#30487
@geirst PR

Are there any changes between this PR and https://github.com/vespa-engine/vespa/pull/30477 ?

The change is in #b706db42b706a16993b0c62531b329bc45862ce1


Change the example text on the new course form

A few people have created courses with the offering cal/cs61a/sp16 and a name of CS 61A  since that's what the example text uses
I've been manually changing these - and no one else can make a cal/cs61a/sp16 course now.

I'd like to work on this, if that's okay! Is it just a matter of changing the example text to something more generic on the forms.py file, or is there more to it?

That's it.


Abnormal prediction results

This code:
const data = [1, 2, 3];
const net = new brain.recurrent.LSTMTimeStep();
net.train([data]);

const output = net.forecast([1, 2, 3], 1);

console.log(output); // [3.4478390216827393]

gives 3.4478390216827393 as the output but I want to forcast it properly and the expected output should be 4, how can I fix it?

Train it showing 4.  You aren't providing enough training data.
On Sun, May 15, 2022, 3:21 AM Arya Anish @.***> wrote:

This code:
const data = [1, 2, 3];
const net = new brain.recurrent.LSTMTimeStep();
net.train([data]);
const output = net.forecast([1, 2, 3], 1);
console.log(output); // [3.4478390216827393]
gives 3.4478390216827393 as the output but I want to forcast it properly
and the expected output should be 4, how can I fix it?
—
Reply to this email directly, view it on GitHub
https://github.com/BrainJS/brain.js/issues/796, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFFZO522JTGXLAWCDGT3OLVKCQW7ANCNFSM5V6WABQQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I mean I want to build a stock prediction app and there I can provide the current data and it will need to predict itself, how can I achieve this?


Document that the Secrets Manager code supports ARNs

Type: Bug?
The Secrets Manager Integration specifies that you can supply a secret name to load configuration from that secret in https://docs.awspring.io/spring-cloud-aws/docs/3.2.0/reference/html/index.html#loading-external-configuration. It also supports passing an ARN. This isn't documented in spring cloud aws but works well. The underlying request in the AWS API https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html supports it.
Using an ARN is useful for cross account requests, but also for linking up secrets in cloudformation as the secret name isn't exposed as a return value when creating a secret: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secret.html

Hey @buckett , thanks on submitting the issue. Are you willing to make a PR to solve this issue?

Fixed in #1302


wltests/wa_collector: add support for color bands to plot_comparisons

The plot_comparision is the most useful plot to get an overall view on
what are the relative changes in power/performances among different
kernels. However, to make more easy to have a fast check if a
certain kernel is ok or not, it can be useful to define a fixes set of
thresholds which allows to easily identify what's considered:
ok, suspicious or definitively not good.
Let's add the possibility to define these three thresholds and use them
to generate some color bands which allows to easily see where each
configuration stands.
Signed-off-by: Patrick Bellasi<EMAIL_ADDRESS>

That should still apply cleanly onto lisa/next, wanna give that a try?


CustomModelData texture pack override compatibility

CustomModelData
I dont use durability for custom models anymore so i would love to see the new CustomModelData used in this great plugin
I suggest you add a way to add the CustomModelData NBT into rpgitems.

good idea.
added to wishlist.

+1

You can try this version if you are using 1.15.2
https://ci.nyaacat.com/job/RPGItems-reloaded/job/1.15/74/artifact/build/libs/RPGItems-mc1.15-3.8-74-release.jar

Try also ROTA plugin.
ROTA (Resource pack Over The Air) plugin is our Resource pack distribution solution.
Our server is already been using CustomModelData for a week. And it's GREAT!


Migration doc between LTS versions

It would be tremendously helpful if documentation was provided to migrate between LTS versions without having to migrate to each interim version (especially since all those workloads are optional/additional installs we otherwise don't need). For example, "Migrate from ASP.NET Core 3.1 to 6.0" in this case. Thanks for consideration.

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

ID: 5bec61f9-7298-170d-5e12-abb27cde584e
Version Independent ID: 27a43e3f-149d-9058-f937-0eda1d6dd4f2
Content: Migrate from ASP.NET Core 5.0 to 6.0
Content Source: aspnetcore/migration/50-to-60.md
Product: aspnet-core
Technology: aspnetcore-migration
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@k3davis thanks for the suggestion. Hopefully we can get lots of 👍🏿 so we can increase the priority of this request.


[SPARK-38611][TESTS] Replace intercept with assertThrows in CatalogLoadingSuite

What changes were proposed in this pull request?
The intercept method implemented in CatalogLoadingSuite has same semantics with Assert.assertThrows, so this pr replaces the handwritten implementation with the standard Junit4 Api.
Why are the changes needed?
Use standard Junit4 Api.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA

Sure, are there any other similar cases?

For this scenario, that's all.

Merged to master


removed the testing of getLevel Method of p5.SoundFile

solves
#422
removed the unnessary tests of getLevel Method of p5.SoundFile

@therewasaguy
please review this!