Util method to get udfName

Created a util method to get the Udf name from callLocation

What is the purpose of the change
(For example: This pull request makes task deployment go through the blob server, rather than through RPC. That way we avoid re-transferring them on each deployment (during recovery).)
Brief change log
(for example:)

The TaskInfo is stored in the blob store on job creation time as a persistent artifact
Deployments RPC transmits only the blob storage reference
TaskManagers retrieve the TaskInfo from the blob cache

Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (100MB)
Extended integration test for recovery after master (JobManager) failure
Added test that validates that TaskInfo is transferred only once across recoveries
Manually verified the change by running a 4 node cluser with 2 JobManagers and 4 TaskManagers, a stateful streaming program, and killing one JobManager and two TaskManagers during the execution, verifying that recovery happens correctly.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? Javadocs

Hi, it's great that you want to contribute to Flink. However, please first take a look at how to contribute


Issue on page /notebooks/03-Git.html

Practicals
Instructions
Push your git repository
first bullet point, first .gitgnore should be .gitignore

fixed, thanks!


[WFRP4e System] The drawing tools are not displaying correctly or is hard to see in them

https://cdn.discordapp.com/attachments/514393724063580162/826581802436788224/unknown.png
https://cdn.discordapp.com/attachments/514393724063580162/826581992073592882/unknown.png
Is really hard to see and adjust things in the drawing toolsFrom: danil0wfrp4e: 3.4.1wfrp4e-core: 1.3.1wfrp4e-eis: 1.2.1wfrp4e-rnhd: 1.4.0wfrp4e-starter-set: 1.4.1wfrp4e-ua1: 1.0.1

Disable advanced drawing tools


Scanner API not working

HI, I face some problem on the Scanner API. Please help.
var jbScanner  = {};

function onQRCodeScanned(scannedText)
{
	var scannedTextMemo = document.getElementById("scannedTextMemo");
	if(scannedTextMemo)
	{
		scannedTextMemo.value = scannedText;
	}
}

//this function will be called when JsQRScanner is ready to use
function JsQRScannerReady()
{
    //create a new scanner passing to it a callback function that will be invoked when
    //the scanner succesfully scan a QR code
     jbScanner = new JsQRScanner(onQRCodeScanned);
    //reduce the size of analyzed images to increase performance on mobile devices
    jbScanner.setSnapImageMaxSize(300);
	var scannerParentElement = document.getElementById("scanner");
	if(scannerParentElement)
	{
	    //append the jbScanner to an existing DOM element
		jbScanner.appendTo(scannerParentElement);
	}
}

jbScanner.isScanning();
jbScanner.isActive();
This 2 api always return true even without camera permission.
jbScanner.stopScanning()
jbScanner.resumeScanning()
.stopScanning API not working so i assume that .resumeScanning also not working

Declare jbScanner ="";
Don't write "var"


Deploy shopping cart on centralpark2

building the docker image in maven fails on travis:
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.example.shoppingcart.impl.ShoppingCartEntityTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.908 sec
Results :
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ shopping-cart ---
[INFO] Building jar: /home/travis/build/lagom/lagom-samples/shopping-cart/shopping-cart-java/shopping-cart/target/shopping-cart-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- docker-maven-plugin:0.26.1:build (build-docker-image) @ shopping-cart ---
[ERROR] DOCKER> Unable to pull 'adoptopenjdk/openjdk8:latest' from registry 'docker-registry-default.centralpark2.lightbend.com' : unauthorized: authentication required (Internal Server Error: 500) [unauthorized: authentication required (Internal Server Error: 500)]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]

I've managed to reproduce locally by removing all images from the registries I was logged to:
docker images --format='{{println .ID}}'| xargs docker rmi -f  | wc -l

I think the problem is that fabric8's docker-maven-plugin reads the DOCKER_REGISTRY env var that we use on the scripts. Another cause for the problem could be that centralpark's registry is set to not fetch images it doesn't contain.

This will resolve #16, right?

This will resolve #16, right?

yes, I've updated the description

Me not pressing send to published the https://github.com/lagom/lagom-samples/pull/40#issuecomment-493672554 and also me squashing commits left the history on this PR a bit confusing:

This PR already solves the Unable to pull 'adoptopenjdk/openjdk8:latest' from registry issue. The bug was caused by our scripts declaring the DOCKER_REGISTRY ENV_VAR which causes docker-maven-plugin to behave differently.

At this point, the only issue pending solution is the installation of Kafka/Strimzi on CentralPark2.


How set Drawer open from right ?

thnak for your greate jobs
and my question is how change direction of  drawer and where i can find drawer props?

You can find the props here: https://github.com/GeekyAnts/NativeBase/blob/master/src/basic/Drawer/index.js and here https://github.com/root-two/react-native-drawer.

There's a side prop that takes "left" or "right" values, e.g:
<Drawer
  side="right"
  ref={ref => {
    this.drawer = ref;
  }}
  content={<SideBar navigator={this.navigator} />}
  onClose={() => this.closeDrawer()}
/>


fix(build): ngrx-store-freeze is a dependency also in production

As other dev tools like ngrx-store-logger and @ngrx/store-log-monitor, ngrx-store-freeze is imported and referenced in code whether its a development or production environment

Thanks!


Fix: stats chart color change on dark mode toggle

Resolves #5134

@danharrin, this is throwing Alpine errors, so we might want to revert for now.


x/text: ianaindex returns no encoding for gb2312

Using the golang.org/x/text/encoding/ianaindex package.
        encoding, err := ianaindex.MIME.Encoding("gb2312")
        fmt.Println(encoding, err) // prints <nil> <nil>

I believe it should be returning simplifiedchinese.HZBG2312.
cc @mpvl

This specific behavior has been around since Encoding was added.
To fix this particular example, would probably just need an entry:
enc2025: simplifiedchinese.HZGB2312,
Though I wonder if there's a way to generate the encodings from a public source.
The code has this:
// TODO: the coverage of this index is rather spotty. Allowing users to set
// encodings would allow:
// - users to increase coverage
// - allow a partially loaded set of encodings in case the user doesn't need to
//   them all.
// - write an OS-specific wrapper for supported encodings and set them.

Having this problem in 2021.


Pint is painful to use in large projects

Pint Version
1.18.1
PHP Version
8.3.4
Description
I know that Pint's lack of parallelization has been discussed before in #93, #275 and #299 - but I would like to provide an example of how just how big this problem can be.
My team works on a very large modularized monolith Laravel app. Pint has to process 4698 php files.
On a new Macbook Pro with top specs, this takes at least 12 minutes, and that's when there's nothing it has to fix. When we used php-cs-fixer it took only a fraction of that time.
Of course it only takes this long when there are no cached results, but there are a lot of things that will cause the cache to be busted:

If the php-cs-fixer dependency is updated to a newer version.
Every time you rebuild your docker container, unless you configure Pint to store the cache inside the project folder.
If php is updated to a newer version, even a patch release. This happens rather frequently, especially if run in a docker container using a :latest base image.
If you run pint on your host machine and the existing cache was created in docker (or vice versa), because the results are cached using absolute paths.

Every time one of these things happen, we have to sit and wait for at least 12 minutes. That is more than just a minor annoyance, and I hope you'll agree that it's worth looking into.
Steps To Reproduce

Have a Laravel project containing several thousand files.
Run pint.
Go for a walk.

12 minutes for 4698 files seems high. For reference, I have a project with 2993 files, and it only takes 56 seconds without using cache on a Macbook Pro with an M3 Pro CPU. I'm using the Laravel preset. Maybe running pint within Docker is causing it to run slower?


Indentation for enum entries with multi-line initializers is wrong

Example code, formatted as we would like it to be:
enum class Color(val displayName: String, val value: Int) {
  RED(
    displayName = "Red",
    value = 1
  ),
  BLUE(
    displayName = "Blue",
    value = 2
  );
}

In this case, we get "Unexpected indentation" errors on every line from 3 to 9 (expecting 2 less indentation).  We are using 2-space indentation here.
If formatted instead so that the initializer arguments are on one line there are no errors:
enum class Color(val displayName: String, val value: Int) {
  RED(displayName = "Red", value = 1),
  BLUE(displayName = "Blue", value = 2);
}

Slightly wrong in my previous comment, there is no error on line 6 (the "BLUE" entry).  If formatted like this, there are no errors:
enum class Color(val displayName: String, val value: Int) {
  RED(
  displayName = "Red",
  value = 1
),
  BLUE(
  displayName = "Blue",
  value = 2
);
}

Has this been released yet? I updated to "0.34.2" but I'm still seeing KtLint format everything back one indentation: https://gist.github.com/AdamMc331/8c6a9ea40ba36803aef3993acfb1e7ce

@AdamMc331 according to changelog it was released: https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md#0342---2019-07-22

I have experimental rules on. I tried changing the KtLint verison number in the gradle plugin, but I wonder if I made a mistake there. I will double check, but I can also just upgrade to the fancy new 9.0.0 which targets the latest KtLint and maybe that will resolve my issue. :D

You can check used ktlint version by running:
$ ./gradlew dependencies --configuration ktlint

Can confirm this was user error, I made a mistake in my gradle file. So sorry! Thanks for checking in though.


please update website

hi,
the docs at http://www.impa.br/~diego/software/luasocket are out of date.
one idea to avoid having to sync the site with github every time is to make it redirect to this url:
https://rawgithub.com/diegonehab/luasocket/master/doc/index.html
thanks.

Yup yup. Very out of date. Documentation contributions welcome!
I'm closing this as  a duplicate of a newer issue (#357), but same idea...


Implement random shuffle of a table

will see whether it is possible to replace Spark Implementation of DLRM preprocessing

Does it need to have equal/balanced data splits at the end of the shuffle?


Merge abci-rs in tendermint-rs repository

Merging abci-rs crate in tendermint-rs repository as suggested by @tomtau here. Also, continuing discussion on https://github.com/informalsystems/tendermint-rs/issues/29.

That's great. Quick early feedback, as we this becomes part of the tendermint workspace we can safely drop the -rs suffix in the crate name.

Done.

@xla it'll also be needed for @zramsay to transfer https://crates.io/crates/abci ownership

@xla it'll also be needed that @zramsay transfers https://crates.io/crates/abci ownership

Good point, maybe @ebuchman can follow up on this.

This PR may need some reworking around the generated proto files after: https://github.com/informalsystems/tendermint-rs/pull/508 lands.

https://github.com/informalsystems/tendermint-rs/pull/510

#508 is merged -- @marbar3778 I guess the natural thing here will be to remove abci-rs's types + build.rs and just use the "tendermint-proto" crate?

#508 is merged -- @marbar3778 I guess the natural thing here will be to remove abci-rs's types + build.rs and just use the "tendermint-proto" crate?

tendermint-proto is not yet released on crates.io

#508 is merged -- @marbar3778 I guess the natural thing here will be to remove abci-rs's types + build.rs and just use the "tendermint-proto" crate?

tendermint-proto is not yet released on crates.io

#508 is merged -- @marbar3778 I guess the natural thing here will be to remove abci-rs's types + build.rs and just use the "tendermint-proto" crate?

tendermint-proto is not yet released on crates.io

since this will be in the same repo, the dependency can be specified with path = "....."?

@xla it'll also be needed that @zramsay transfers https://crates.io/crates/abci ownership

Good point, maybe @ebuchman can follow up on this.

invites sent to @xla and @liamsi

#508 is merged -- @marbar3778 I guess the natural thing here will be to remove abci-rs's types + build.rs and just use the "tendermint-proto" crate?

Pushed the changes. Also included changes for tendermint StateSync.

@devashishdxt, after much discussion the team decided to go with #794. We still, however, think that abci-rs is a great alternative option to that in #794, and look forward to seeing people use whichever framework they feel is better suited to their particular use case (we think it's a great thing for people to have multiple options).


Yeeted old stuffs

Removed BSQI as it hasn't been updated in a while.

Does BSQI not work anymore?

The last update for it was to work on 1.6.x nearly 3 months ago, I'm not entirely sure if it works on 1.7 but regardless it uses an older BMBF that has some bugs so I thought it should probably get removed just in case. Although now that I think about it I could try to ask NyanBlade if they're still working on it.

Did you ask NyanBlade about this?
If not, I'm fine with merging this as is

ah sorry about the wait i forgot about this i couldnt find a way to ask him

Alright, fair enough.
Going to go ahead and merge then.


Fix Python xDS k8s Interop

Make server listen on an IPv4 address to avoid TD issue.
Turn up core logging for debuggability
Add CSDS to Python interop client

@sergiitk PTALA


Get robotgo failed

It's failed when I run go get github.com/go-vgo/robotgo. The message is as follows:

But I can install it by running go get github.com/otiai10/gosseract/v2

I change GOPROXY


Add a new cron function

Problem description

When I used core.st2.CronTimer to create a scheduled task, I found that I could not specify the start time and end time
Solution
As can be seen from the source code, the scheduled task is implemented by aspscheduler and the parameters of the scheduled task are transparently transmitted. aspscheduler has this function. In use, parameters can be specified as start_date and end_date. You only need to change CRON_PARAMETERS_SCHEMA to add these two parameters

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

set the milestone

Thanks for looking into this enhancement, and working out how it can be achieved. It's great to get new contributions.
The CronTrigger is really supposed to be mimicing the functionality of a cron job, and with a cron job you don't really get start and end times. However, as you mention https://apscheduler.readthedocs.io/en/3.x/modules/triggers/cron.html does support start and end dates.
It would be useful to do a post on the StackStorm development slack channels to see what people think of this enhancement request, as I'm not sure if its best to start a new timer type rather than extend the cron timer. We can extend the crontimer as you have mentioned, but that's not something that is in cron itself, and ties ourself to using apscheduler. So, I'd like to get the view of some others in the TSC about whether this is the right place to put it. But, as this functionality is not available anywhere else it would be good functionality to extend StackStorm, and this would be the simplest way of adding it.
If we do go the route you've coded, then the only addition I think this needs is some unit-tests added. There are a variety of tests on CronTimer with invalid formats etc in ./st2api/tests/unit/controllers/v1/test_rules.py, so it would be good to get these extended with some valid and invalid examples that use the start_date and end_date parameters.

Thanks for looking into this enhancement, and working out how it can be achieved. It's great to get new contributions.
The CronTrigger is really supposed to be mimicing the functionality of a cron job, and with a cron job you don't really get start and end times. However, as you mention https://apscheduler.readthedocs.io/en/3.x/modules/triggers/cron.html does support start and end dates.
It would be useful to do a post on the StackStorm development slack channels to see what people think of this enhancement request, as I'm not sure if its best to start a new timer type rather than extend the cron timer. We can extend the crontimer as you have mentioned, but that's not something that is in cron itself, and ties ourself to using apscheduler.

I agree with @amanda11 here. It might make sense for it to be a new timer type (core.st2.ScheduledCronTimer?), so that
the new functionality can be kept separate and minimize changes, if any, for other users.
With that said, I would love to have this included and can try to get this rolling for the next release.

Thanks for looking into this enhancement, and working out how it can be achieved. It's great to get new contributions.
The CronTrigger is really supposed to be mimicing the functionality of a cron job, and with a cron job you don't really get start and end times. However, as you mention https://apscheduler.readthedocs.io/en/3.x/modules/triggers/cron.html does support start and end dates.
It would be useful to do a post on the StackStorm development slack channels to see what people think of this enhancement request, as I'm not sure if its best to start a new timer type rather than extend the cron timer. We can extend the crontimer as you have mentioned, but that's not something that is in cron itself, and ties ourself to using apscheduler.

I agree with @amanda11 here. It might make sense for it to be a new timer type (core.st2.ScheduledCronTimer?), so that the new functionality can be kept separate and minimize changes, if any, for other users.
With that said, I would love to have this included and can try to get this rolling for the next release.

@rush-skills I posted a discussion of this feature in my slack channel, but no one talked to me about it. This feature can be used to start a scheduled task at a certain time of day. For example, I started a vulnerability scan task after 12 o 'clock on January 12. I also think we could add a new type of trigger.

Thanks for looking into this enhancement, and working out how it can be achieved. It's great to get new contributions.
The CronTrigger is really supposed to be mimicing the functionality of a cron job, and with a cron job you don't really get start and end times. However, as you mention https://apscheduler.readthedocs.io/en/3.x/modules/triggers/cron.html does support start and end dates.
It would be useful to do a post on the StackStorm development slack channels to see what people think of this enhancement request, as I'm not sure if its best to start a new timer type rather than extend the cron timer. We can extend the crontimer as you have mentioned, but that's not something that is in cron itself, and ties ourself to using apscheduler.

I agree with @amanda11 here. It might make sense for it to be a new timer type (core.st2.ScheduledCronTimer?), so that the new functionality can be kept separate and minimize changes, if any, for other users.
With that said, I would love to have this included and can try to get this rolling for the next release.

@rush-skills I saw the problem and thought we could create a trigger that exposed all the aspscheduler parametersst2 cron timer was missed

@rush-skills I saw the problem and thought we could create a trigger that exposed all the aspscheduler parametersst2 cron timer was missed

What is the default behaviour when the start_date or end_date is not specified? Does it work like the old version and thus retains backward compatibility? In that case, I would be happy to merge this.
But I think some tests should be added if possible to check the above. @amanda11 Do you know if there is a way to test this?

st2common/unit/test_trigger_services.py is where there are some unit-tests for the crontimer, so if keeping as the same trigger and to prove backwards compatiblity. We should have some tests in there with and without the start/end time. It uses test rules that are setup in: st2tests/st2tests/fixtures/generic/rules, so those could be expanded.
I couldn't find any integration tests that check times actually go off when you expect...


fix(lint): add support for prettier config for sanity

:tada: This PR is included in version 1.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


main.py uses global youtube_dl package

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Note: This is using release 2021.12.17, but --version still prints 2021.06.06.
Verbose log

python3 youtube_dl-2021.12.17/youtube_dl -v 'https://www.youtube.com/watch?v=ZPpKrG1Pp5M'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=ZPpKrG1Pp5M']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.6.5 (CPython) - Linux-5.15.15-pclos1-x86_64-with-mandrake-2022-PCLinuxOS
[debug] exe versions: ffmpeg 4.4.1, ffprobe 4.4.1
[debug] Proxy map: {}
[youtube] ZPpKrG1Pp5M: Downloading webpage
[youtube] ZPpKrG1Pp5M: Downloading player 0c665041
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1349, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1265, in _extract_signature_function
    cache_res = res(test_string)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1332, in <lambda>
    return lambda s: initial_function([s])
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 258, in resf
    res, abort = self.interpret_statement(stmt, local_vars)
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 150, in interpret_expression
    return obj[member]
TypeError: string indices must be integers
 (caused by TypeError('string indices must be integers',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1349, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1265, in _extract_signature_function
    cache_res = res(test_string)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1332, in <lambda>
    return lambda s: initial_function([s])
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 258, in resf
    res, abort = self.interpret_statement(stmt, local_vars)
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 150, in interpret_expression
    return obj[member]
TypeError: string indices must be integers
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1349, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1265, in _extract_signature_function
    cache_res = res(test_string)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1332, in <lambda>
    return lambda s: initial_function([s])
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 258, in resf
    res, abort = self.interpret_statement(stmt, local_vars)
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 150, in interpret_expression
    return obj[member]
TypeError: string indices must be integers

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1623, in _real_extract
    signature = self._decrypt_signature(sc['s'][0], video_id, player_url)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1359, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1349, in _decrypt_signature
    video_id, player_url, s
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1265, in _extract_signature_function
    cache_res = res(test_string)
  File "/usr/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1332, in <lambda>
    return lambda s: initial_function([s])
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 258, in resf
    res, abort = self.interpret_statement(stmt, local_vars)
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 56, in interpret_statement
    v = self.interpret_expression(expr, local_vars, allow_recursion)
  File "/usr/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 150, in interpret_expression
    return obj[member]
TypeError: string indices must be integers
 (caused by TypeError('string indices must be integers',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

When attempting to download that paticular video, I get the above error. Other videos (e.g. 'https://www.youtube.com/watch?v=SwUBOyrxioI') still work for me.

I just noticed that this seems to be using the version of youtube-dl I installed with pip some time ago, as the files listed are in my python package directory, even though I explicitly invoked a version of the package located elsewhere. Apparently, the import youtube_dl in __main__.py finds the directory youtube_dl it is contained in only if the current directory is the parent directory of youtube_dl; otherwise the import silently falls back to the globally installed package. The download works with the correct current directory. Closing.

Nope, it wasn’t the current directory (that doesn’t change anything), it was invoking youtube-dl instead of youtube_dl. import always searches relative to the file that the statement appears in, so __main__.py couldn’t possibly find the local youtube_dl. This is a bug.

Seems to work fine:
PS D:\Desktop> pip install youtube-dl
PS D:\Desktop> youtube-dl.exe ZPpKrG1Pp5M
[youtube] ZPpKrG1Pp5M: Downloading webpage
[youtube] ZPpKrG1Pp5M: Downloading player 0c665041
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: BC3!!!! 2-ZPpKrG1Pp5M.f137.mp4
[download]   3.5% of 19.80MiB at 73.48KiB/s ETA 04:26

PS D:\Desktop> pip install https://github.com/ytdl-org/youtube-dl/archive/refs/heads/master.zip
PS D:\Desktop> youtube-dl.exe ZPpKrG1Pp5M
[youtube] ZPpKrG1Pp5M: Downloading webpage
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Resuming download at byte 733079
[download] Destination: BC3!!!! 2-ZPpKrG1Pp5M.f137.mp4
[download]  72.5% of 19.80MiB at  8.26MiB/s ETA 00:00

There is no problem if you are using the precompiled youtube-dl or the standalone youtube-dl.exe. But if you have version A installed via pip and then try to run version B by calling its youtube_dl directory (which will invoke __main__.py), you will get version A instead of the version B you are expecting.

Even if the version installed via pip is the most recent one, a developer might want to test a change by running python3 youtube_dl in their working directory. This will opaquely run the version installed via pip, however.

Use -m path/to/desired/youtube_dl.

It still doesn’t seem like intended (or tolerable) behavior to me that omitting the -m will just run the global module opaquely. The least we could do is exit with an error and tell the user how to do it correctly. I am so dissatisfied with this because it has already bitten me some time ago when I tried to contribute to this project.
Luckily, there is an easy fix:
if __package__ is None and not hasattr(sys, 'frozen'):
    # direct call of __main__.py

in __main__.py should become
if not __package__ and not hasattr(sys, 'frozen'):
    # call of the youtube_dl dir ('') or direct call of __main__.py (None)

For some reason, there is code (under the if) that fixes this for python youtube_dl/__main__.py (in which case __package__ is None) by putting the directory that contains the youtube_dl directory at the beginning of sys.path but that is written in such a way that it won’t do the same thing for python youtube_dl (in which case __package__ is ''). The above change enables the fix for the second case.
So how does this work? Do I create a pull request for two lines of code?

I believe the current behaviour is by design (https://github.com/ytdl-org/youtube-dl/commit/743b28ce1155df348bbb828fcb316d57c8704328)
# Execute with
# $ python youtube_dl/__main__.py (2.6+)
# $ python -m youtube_dl          (2.7+)
...

As the change from __package__is not None to not __package__ is very small, I'd be happy to make it once we're sure it works on all the supported platforms.

I believe the current behaviour is by design

In that case it would be very poor design: As you pointed out, __main__.py will be run if its containing directory is passed to the Python interpreter. So a programmer will naturally assume that invoking the program by passing the directory is intended. But turns out it isn’t – and doing so might not fail, but silently run a version of youtube-dl installed elsewhere. Had the name simply been main.py, passing the directory would have led to an error, and there would have been no reason to assume that that was an option in the first place.
I just came back here to vent about how strange and misleading this is. It really frustrated me that the name makes no sense and I needed to point it out.


cast DataArray name to string if not None

closes #533

You mentioned in the bug report:

Another way is just to raise an error if a not string variable name is used.

Raising a TypeError seems like the way to go here, since str works on anything. Relevant line in 'Zen':

In the face of ambiguity, refuse the temptation to guess.

Also, are there other places to implement this? Say the keys of a dataset?

I'm happy to raise an error instead.  I may have misunderstood @shoyer's comment in #533.

Indeed, I think it's better to raise than silently convert -- that's much more Pythonic.
The keys of a dataset would be the other place to enforce this.
Maybe the only place to silently convert is in the to_dataset method of DataArray, when splitting an existing dimension to create a dataset with new variables? Otherwise that method is not guaranteed to succeed, which seems like a Bad Thing.

@shoyer -

Maybe the only place to silently convert is in the to_dataset method of DataArray, when splitting an existing dimension to create a dataset with new variables? Otherwise that method is not guaranteed to succeed, which seems like a Bad Thing.

If you are splitting a dataset along a dimension, we don't use the name argument: https://github.com/xray/xray/blob/master/xray/core/dataarray.py#L243-L273. So I don't think any changes are needed in that case.  In fact, in _to_dataset_split(), the labels are cast to strings.
I'm going to close this PR and open a new one with errors raised instead of silently converting.


localhost discovery

right now dat supports DNS, DHS, and mDNS (LAN) discovery
however, when i run dat share and then try to visit the resulting dat in Beaker on the same computer, it doesn't load
does dat have a mechanism to talk to another instance of dat running on localhost?
@mafintosh

Same here. I cannot dat clone from localhost.

Same here. I cannot dat clone from localhost dat share.

@buckle2000 hmm, can you give us some more details on your setup? What OS are you on? What node version (node -v), dat version (dat -v)?
A few other things to help debug, if you have time:

Run dat doctor in one window, it'll print out a key at the end. Run that in another window, dat doctor <key>. Does that connect?
Run DEBUG=dat* dat share and DEBUG=dat* dat clone for a bit and then share the logs.

OS: Windows 10 (version 1511; 10586.104)
node version: 8.2.1
dat version: 13.10.0
dat doctor works fine.
dat clone.log
dat share.log
For some reasons, dat share prints out incorrect file paths / append C: to any path. For instance ./.dat -> C:\\.dat.

Awesome thanks! Looks like maybe they are getting connected (since doctor works and the streams try to start) but there is some other underlying issue.

For some reasons, dat share prints out incorrect file paths / append C: to any path. For instance ./.dat -> C:\.dat.

I was probably just lazy and didn't use path.sep.

This should be fixed in 14.0.1, please let us know


object spread should not be preferred when Object.assign's first argument is a class instance

Bug Report

TSLint version: 5.3

TypeScript code being linted
value = Object.assign(new Model(), value)

with prefer-object-spread enabled
Actual behavior
lint failure, auto-fix to use object spread
Expected behavior
nothing. this rule should ignore cases where the first argument to Object.assign is a class instance.

if --project is supplied, we can check if the type of the first argument is class-like
if no project is supplied and we're only doing syntactic checks, the best we can do is check for new ... and ignore the expression

as reported in https://github.com/palantir/tslint/issues/2618#issuecomment-303879255

Since Object.assign has side effects on its first argument, the rule should probably activate only if the first argument is a fresh object literal. That's why TypeScript transpiles { ...x, ...y } to Object.assign({}, x, y).

The rule should only activate if the first argument is a fresh object literal.

Well, technically, you're right. But I often see mistakes where programmers are not careful about the side effects on the first argument and they provide a non-literal value anyway when they actually meant to do the same thing as object spread. So I would still want this rule to catch that. Maybe it could be opt-in...

If the first argument is not an object literal, the rule only produces an error if the result is assigned to something.
Assigning the return value of Object.assign only makes sense if the first argument is a CallExpression, NewExpression or similar. Everything else, e.g. an Identifier or PropertyAccessExpression should still be an error.
And that doesn't require the type checker.


Update Password Reset Email Subject

Subject Line for password reset: UNO Community Partnership Initiative - Password Reset

Test document: https://docs.google.com/spreadsheets/d/1Tbztb0SDv2ptQoWLUorgaY-GPr5JmVGzAiOpt7c13ks/edit#gid=547627265


to_json loses float precision

Godot version: 3.1.2.stable.official
OS/device including version: Linux (Ubuntu 18.04)
Issue description:
Storing floating point values with to_json loses precision.
I would have expected to_json to always store full information, so that a serialization/deserialization round-trip is guaranteed to be lossless. If lossy representation is desired for size reduction, it could be passed as a flag lossy_flots like to_json(data, true).
Note: The problem applies to recursive application of to_json as well, which makes manual work-arounds on user side difficult, e.g. in a situation where a high level object is to be serialized, but a deeply nested float must be stored in full precision.
Steps to reproduce:
# To check actual precision of floats:
print("%.16f" % PI)
print("%.16f" % (1.0 / 3.0))

# Results after going through `to_json`
print(to_json(PI))
print(to_json(1.0 / 3.0))

# Round-trip test
print("%.16f" % (PI - parse_json(to_json(PI))))

Outputs:
3.1415926535897931
0.3333333333333333
3.141593
0.333333
-0.0000003464102067

Minimal reproduction project: Let me know if needed...

I'm not completely sure but this issue may also be resolved by #33241 as it likely has to do with how floats are "stringified" vs "being written with VariantWriter" (aka var2str).


2848 write e2e tests for volunteer stories

Ticket(s)

Airtable ticket: 2848 Write tests for volunteer user stories

Type of change

Added test cases and implemented tests for user stories relating to volunteer, donations, and getting involved page.
Update README with cypress links and description
Added configuration options to

Please delete any options that are not relevant

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] Documentation or testing

Description
Include a summary of the change or which issue was is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Wrote tests that cover user stories relating the the 'Get-Involved page' and 'Donate page' on clearviction dotcom. Tests will be covering all of clearviction's core user stories that are taken from this user story board. Config file has been updated to allow for specific tests to run and to test for pages including donor box and airtable links.

Checklist:

[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation (if applicable)
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works (if applicable)
[ ] New and existing unit tests pass locally with my changes
[X] I have filled this PR out fully, and cleaned up any extraneous items so that it is clear and easy to understand.

Closing due to inactivity


Updated Bonfire: Where art thou description

Description updated to clarrify the problem properly.
Close FreeCodeCamp/FreeCodeCamp#1756

Hey @abhisekp I think you forgot to pull before making the modification. Can you pull for re and commit to the pr so that the merge conflicts will go away


Bugfix

Line 684, column 25 reads "value" instead of "liquid", causing a bug that prevents compilation.
I presented this bug on ifMUD.

You should also increment the version number, maybe to version 6/201125 instead of 7 because it's such a small change.

I fixed that, a squash will be better. Is that enabled?


E-mails sent by ohm-website say OpenStreetMap at the top

If you create a new account, you get an e-mail from OpenHistoricalMap that has the OpenHistoricalMap logo at the top next to the name “OpenStreetMap”. It should say “OpenHistoricalMap”.

Fixed and will be in next website deploy

staging is doing the right thing.


Ability to drag product image to reorder them in bagisto admin dashboard.

Hi,
How can I achieve the ability to drag product images to reorder them?
Where:- In Bagisto admin panel -> catalog -> create / edit any product -> Go to images accordian
Problem Statement:-  If I have uploaded 7 images for the specific product and now if want to add another image(8th image) which I want at the start of the images. Then I have to delete 7 images and upload (8th image) which I want first and then upload the remaining 7 images.
Thanks in advance

Hi,
Can anyone give me an hint how can I do this?

Hi @akshaypitale,
There are several ways, you can do this. Either you can create your own or you can use several third  party libraries to minimize the development time,
For Vue JS,
https://www.npmjs.com/package/vuedraggable
https://www.npmjs.com/package/vue-drag-sortable
If you want jQuery, you can also try this,
https://jqueryui.com/sortable/

Hi @Azanul,
Are you working on this?

Yes

Hi @ghermans,
I have started working on this.


Each Flux/Mono.subscribeOn() Flux/Mono.publishOn() produces async Span

@GetMapping
Mono<String> test() {
	return Mono.just("ok")
			.subscribeOn(Schedulers.single())
			.publishOn(Schedulers.parallel())
			.publishOn(Schedulers.elastic())
			.publishOn(Schedulers.parallel());
}

Due to Sleuth instrumentation of Reactor Schedulers this code (every Mono.subscribeOn(), Mono.publishOn() switch) produces async Span.
From my point of view this spans are not very useful as they just "pollute" whole tracing picture.
And it is not clear what is the function of this instrumentation as Span is propagated by Reactor Context
https://github.com/spring-cloud/spring-cloud-sleuth/blob/c5b3b38b09182c6435f3949e56124dbe1a7f49ac/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/reactor/TraceReactorAutoConfiguration.java#L117:L120
Is it possible to make Schedulers instrumentation optional by property?
https://github.com/spring-cloud/spring-cloud-sleuth/blob/c5b3b38b09182c6435f3949e56124dbe1a7f49ac/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/reactor/TraceReactorAutoConfiguration.java#L121:L125
example https://github.com/robotmrv/async-span-on-each-scheduler-change
Test Case:

start zipkin
start application
curl http://localhost:8080/

Expected Result:
Only one span was created
Actual Result
Five spans were created. One for the web request and one for each Mono.subscribeOn(), Mono.publishOn() (there are 4)
Zipkin output

[
  {
    "traceId": "47f9e42180743ba8",
    "parentId": "47f9e42180743ba8",
    "id": "000d90be78278f4c",
    "name": "async",
    "timestamp":<PHONE_NUMBER>048458,
    "duration": 10632,
    "localEndpoint": {
      "serviceName": "async-span",
      "ipv4": "<IP_ADDRESS>"
    }
  },
  {
    "traceId": "47f9e42180743ba8",
    "parentId": "47f9e42180743ba8",
    "id": "e1cd31561a3578dd",
    "name": "async",
    "timestamp":<PHONE_NUMBER>059121,
    "duration": 10631,
    "localEndpoint": {
      "serviceName": "async-span",
      "ipv4": "<IP_ADDRESS>"
    }
  },
  {
    "traceId": "47f9e42180743ba8",
    "parentId": "47f9e42180743ba8",
    "id": "aca3caf889fd694a",
    "name": "async",
    "timestamp":<PHONE_NUMBER>069966,
    "duration": 11159,
    "localEndpoint": {
      "serviceName": "async-span",
      "ipv4": "<IP_ADDRESS>"
    }
  },
  {
    "traceId": "47f9e42180743ba8",
    "parentId": "47f9e42180743ba8",
    "id": "c7b4941f6264297b",
    "name": "async",
    "timestamp":<PHONE_NUMBER>080822,
    "duration": 12677,
    "localEndpoint": {
      "serviceName": "async-span",
      "ipv4": "<IP_ADDRESS>"
    }
  },
  {
    "traceId": "47f9e42180743ba8",
    "id": "47f9e42180743ba8",
    "kind": "SERVER",
    "name": "get /",
    "timestamp":<PHONE_NUMBER>001342,
    "duration": 99940,
    "localEndpoint": {
      "serviceName": "async-span",
      "ipv4": "<IP_ADDRESS>"
    },
    "tags": {
      "http.method": "GET",
      "http.path": "/",
      "mvc.controller.class": "Endpoint",
      "mvc.controller.method": "test"
    }
  }
]

Correct, we needed to add it back since we were losing the thread context propagation. As a side effect we have this beautiful async-span.
As a workaround, you could, theoretically, drop those spans by creating a FinishedSpanHandler and dropping all async-spans with no tags ?

Thanks @marcingrzejszczak, WA works.

Closing since there's a workaround in case someone wants to remove those


Transformer function(s) for Kinesis Firehose

Allow running transformations as part of Kinesis Firehose delivery streams.
Considerations
Many AWS services still will only deliver logs to CloudWatch Logs. Some can send directly to Kinesis Firehose.
Anything sent to CloudWatch Logs can be streamed from there to Kinesis Firehose.
The transformation features of Firehose are quite nice to work with, and they would allow skipping the data batcher logic required for processing files from S3. Firehose also manages retries and other logic, and it adds a number of additional points of observability.
This will require planning and design work. I'm not sure if we'd want to make the current transformer Lambda more generic so it can process more triggers, or if we'd want to implement something slightly different for the Firehose use case. My guess is it'd be better to support more triggers / sources for the current transformer.
Tasks

[ ] Research, planning, and design

After discussion, the consensus is that we don't want to add this complexity to the current transformer logic, especially for a use-case that is specific to AWS.
Instead, we can use Firehose to deliver directly to S3 without transformation. That will keep things simple and still allow us to achieve the goal of ingesting data from Firehose.
Any sources coming from Firehose will need to handle decoding from base64, which is straightforward to do with VRL.


Discussion: Comparing Emily Dickinson XML Projects

The short poems of Emily Dickinson have generated lots of excitement and serious digital humanities projects in our time. Web technology lets more people than ever before view "photo facsimiles" of the tiny scraps of paper on which she wrote, and text encoding has transformed and remixed and circulated the poems to give them a digital rebirth. Let's review and discuss some of these projects to see what text encoding can do with the way we read a poet. This should also get you used to writing in markdown on GitHub Issues!
Browse the following projects and choose two to discuss together in your post. You'll need to be patient and "dig around" some of these sites to get to the poems. I'll provide a little guidance to get you in to each one:

Radical Scatters: Emily Dickinson's Late Fragments and Related Texts, 1870-1886

Skim around the introductions to get a sense of what this site is archiving.
Then wander about in the Browse documents: dig into a collection and select some poems: look at each reading view and look at the XML code.

Emily Dickinson Project (fascicles 16 and 6) (made/remade by my students from 2015/16!) :-)

Try interacting with some specific poems posted on this site, such as Poem 1605, and look at the Dash Reduction Analysis. What can you learn about how Dickinson a) wrote variations on her own wording, and b) how publications of her poems altered her work? How are you able to learn about this?

Emily Dickinson Archive: An open-access website for the manuscripts of Emily Dickinson

There are three ways to explore this site from the front page: either by Searching the text of the poems for a word or phrase, by browsing by library collection, or by Lexicon: looking up words and definitions pulled from Dickinson's poems. Try exploring some of each.
For the Search box, try plugging in some words that jump out at you from the Lexicon.

In your posts, comment on how any two of these sites compare with each other for
a) how you interact with Dickinson's poems: how are they represented and what is the reading experience like?
b) what you can see of the text encoding: How easily can you find the markup, and what kinds of things can you see in the markup? How does the markup compare between the two projects you're looking at?
This is a discussion! Since each of you is responding here, you can reply to each other, help each other out (it's tricky to to get a view of the code in the Emily Dickinson Archive but it is there!), and also feature examples. Please feature some markdown code blockss in your posts! (You may also include some screen captures to comment the website navigation, but please use code blocks if you're talking about code!)
<feature>
         <example type="codeBlock">XML code block</example>
</feature>

With the Emily Dickinson Archive, you can digitally interact with her work fairly easily. You're given a central view of a facsimile of the poem (the site's primary representation of the poems), which can be scaled and maneuvered as needed. In addition, the version of the poem can be changed at any moment. The reading experience is good (especially with the tag-searching ability to find other poems), but given that the facsimiles are in the middle, I'm usually looking off to the side tab.

In this site's xml, poems are measured by lines, line groups, and stanzas. However, other things are tracked as well, including quotation marks written in by Dickinson herself (seen with "&quot" tags), and Dickinson's practice of using a smaller, truncated line to conclude a line group (marked as "divisions").
<lg type="stanza">
                    <l>To ponder little workmanships</l>
                    <l>In Crayon - or in wool - </l>
                    <l>With "This was last Her<app type="division"><lem><lb/></lem></app> fingers did" - </l>
                    <l>Industrious until - </l>
                </lg>

The Radical Scatters site also features smooth digital interaction with Dickinson's poems. You're able to quickly tab through different views of the poems (reading, facsimile, transcribed, code), and also flip into the poem's various historical information off to the side. This site does miss the feature of searching specific words/phrases and linking them to other similarly-tagged poems, but because of the more straightforward ability to select different views of the poems, I prefer this site to the first one mentioned.

This site's xml tracks the poems a little differently, where instead of groups/stanzas, it instead measures with segments and line-breaks. This xml also seems to be a lot more concerned with accurately describing the physical traits of the poem in question (as in the case of this particular poem, it's explicitly stating in the code where the text is located on the page, how it's oriented, where surrounding text is, etc.).
<div2 type="poem" xml:id="a514.txt.1" rend="rough-copy draft, with alternatives">

place="composed_in_the_right_hand_sector_of_the_envelope_separated_from_the_body_of_the_text_by_a_vertical_line"
               type="variant">+ were <lb/>listening <lb/>to the<lb/>
               <milestone unit="absent" type="horizontal_line"/>
            </add>
         </seg>
         <seg corresp="a514.3" xml:id="a514.4">
            <add
            place="composed_in_the_right_hand_sector_of_the_envelope_separated_from_the_body_of_the_text_by_a_vertical_line"
               type="variant">+Foundering <lb/>Faces<lb/>
            </add>
            <milestone unit="absent" type="horizontal_line"/>
         </seg>
         <seg corresp="a514.5" xml:id="a514.6">
            <add

The first source I looked through was the Radical Scatters site. Upon opening the link, one is greeted with a summarization of the selected texts and how they are displayed on the site.

When browsing through the catalogue, one can view the selected texts and see they are organized through the original file location, the current location, the composition date, the media type, and the type of paper used. I randomly clicked on one from Harvard's Houghton Library.

The poem itself is easy to read on the site. One also has the choice of reading it, viewing the facsimile, the transcription, and the encoded version, seen below.

The second site I looked through was the Emily Dickinson Project. The site is very finely done and easy to access. One is greeted with a summarization of the purpose of the project when first opening the site.

When viewing the Fascicle 16 link, the poem is broken down in a simple way that is easy to follow and understand.

The different variations of how the poem was originally written and the subsequent changes is easy to navigate and understand depending on what the reader wants to know. It is possible to view only the Fascicle 16 version, as well as only the 1896 Poem, Centenary Edition, and the Final Harvest. It is also easy to access the original XML version.

The Dash Reduction Analysis is also easy to read, and easy to access through the Analysis, Dash Usage, Network Analysis, and Conclusion tabs.

It is easy to see Emily Dickinson's poems on the site as well and how differently the poems are organized.

The first source I took a peek at was the Radical Scatters site. The site was easy enough to navigate, and there seems to be lots of information here.

I was a big fan of this site. There's numerous different ways to view the poem. There's also several tabs on the left with additional information on the poem.
<seg type="var" corresp="a175.5" xml:id="a175.4"> Affluence <lb/> of time <lb/> </seg> <seg type="var" corresp="a175.4" xml:id="a175.5"> Ecstasy <lb/> of time <lb/> </seg> <seg type="var" corresp="a175.1 a175.3" xml:id="a175.2"> But that <lb/> <seg type="subvar" corresp="a175.20" xml:id="a175.19">suspended</seg> <seg type="subvar" corresp="a175.19" xml:id="a175.20"> <add rend="smaller hand" place="supralinear" type="variant"> arrested</add> </seg>
The XML here put a bit more emphasis on the physical attributes of the document, taking note of how things were written and physically marked up on the paper.
I also took a look at the Emily Dickinson Project site.

This site seems to be more focused on transcribing the poems as opposed to the markup thats on the physical paper. There's options on the left that reveal different variations of the poems, which is super neat to see! They're also color-coded accordingly, which is a small thing, but super helpful.

The first site is the better of the two in my opinion in terms of navigation and ease of use, and more aesthetically pleasing and easy on the eyes. It uses a soft brown and yellow color scheme that sort of fits that old paper look.

The site has a lot of selections available for how to view the poem and other important information including tags, publication history and more. Having options like this even while not necessary add a lot to a website for those who want to dig deeper into information outside of this website.
<div2 type="poem" xml:id="a462.txt.1" rend="rough-copy draft, with alternatives">

<ab type="line_s_verse">
There is
<seg type="trace" corresp="a463.trace.1" xml:id="a462.trace.1">
no Frigate
<lb/>
like
</seg>
a Book
<lb/>
To take
<app>
<rdg corresp="a462.one" xml:id="a462.us">us</rdg>
<rdg corresp="a462.us" xml:id="a462.one">
<add rend="smaller hand" place="infralinear" type="variant"> one </add>
</rdg>
</app>

The code here is separated very frequently with occasional attributes and elements in chunks. The code also describes the way that the poem was written, either with pencil or if the author wrote it differently.

The third website uses very bright white colors, but does offer a newer looking menu albeit similar in terms of usage.

This website also allows for toggling of highlighting for different publishings and transcriptions of the poem (unless I am understanding this wrong).

<title>Poem 8 (J 242: 1861/1945)</title>

<lg>
<l n="1">
When we stand on tops of
<app>
<rdg wit="#df16">Things</rdg>
<rdg wit="#bm">things</rdg>
</app>
<app>
<rdg wit="#df16">—</rdg>
<rdg wit="#bm"/>
</app>
</l>
<l n="2">
And like the
<app>
<rdg wit="#df16">Trees</rdg>
<rdg wit="#bm">trees</rdg>
</app>
<app>
<rdg wit="#df16">,</rdg>
<rdg wit="#bm"/>
</app>
look down
<app>
<rdg wit="#df16">—</rdg>
<rdg wit="#bm">,</rdg>
</app>
</l>
<l n="3">
The smoke all cleared away from it
<app>
<rdg wit="#df16">—</rdg>
<rdg wit="#bm"/>
</app>
</l>

This website has more going on in the code but is still separated frequently with not much being on one line. This is likely due to make it easier to read in code form because of the inclusion of different transcriptions and publications of the poems.

The first source I dove into was Emily Dickinson Project (fascicles 16 and 6). This source was really easy to use and pleasing to the eyes other than the bright colors. I like that the typed poem, the broken down poem are side by side, and the hand written version are all side by side.

The second source I dove into was the Emily Dickinson Archive: An open-access website for the manuscripts of Emily Dickinson. This website was a little softer on the eyes with the browns and yellows but it was slightly more hard to use than the first source even though it was still easy to use. I like that you can just look up any word and it will bring up poems related to the word used. The fact that the typed version of the poem and the written version of the poem side by side.

`

Love -- thou art high --

The Poems of Emily Dickinson, Johnson, 1955

Emily Dickinson Archive

Love -- thou art high --
I cannot climb thee --
But, were it Two
Who knows but we --
Taking turns -- at the Chimborazo --
Ducal -- at last -- stand up by thee --

Love -- thou art deep --
I cannot cross thee --
But, were there Two
Instead of One --
Rower, and Yacht -- some sovreign Summer --
Who knows -- but we'd reach the Sun?

Love -- thou art Vailed --
A few -- behold thee --
Smile -- and alter -- and prattle -- and die --
Bliss -- were an Oddity -- without thee --
Nicknamed by God --
Eternity --

</text>

`

The sites Radical Scatters: Emily Dickinson's Late Fragments and Related Texts, 1870-1886 and Emily Dickinson Archive: An open-access website for the manuscripts of Emily Dickinson each take a different approach to archiving Dickinson's work.
[Radical Scatters: Emily Dickinson's Late Fragments and Related Texts, 1870-1886] is about achiving Dickinson's works based on where they were written and where they are now.

The image shows how they are organized on the front page.
However, the XML appears to be documenting the state of the document, as shown in the XML below:
<ab type="lines"> <delSpan rend="diagonal line" spanTo="delend175"/> for Light would <lb/> certainly find it <lb/> <seg corresp="a175.9 a175.10" xml:id="a175.8"> <seg type="subvar" corresp="a175.12" xml:id="a175.11"> and I think </seg> <seg type="subvar" corresp="a175.11" xml:id="a175.12"> <add place="infralinear" type="variant"> and believe </add>  I </seg> <lb/> did <lb/> </seg> <seg type="var" corresp="a175.8 a175.10" xml:id="a175.9"> <add place="supralinear" type="addition">so</add> perchance I did - </seg> <seg type="var" corresp="a175.8 a175.9" xml:id="a175.10"> <add place="composed sideways along the left edge of the manuscript" type="variant"> x possibly I did</add> <lb/> </seg> </ab>
Intrestingly there are also various variables with correspondences listed in the code shown and through the rest of the document. I couldn't make sense of it, but I'm sure it has more internal meaning.
The second site (Emily Dickinson Archive: An open-access website for the manuscripts of Emily Dickinson) appears to be transcribing Dickinson's handwritten scripts into a readable translation with added bits. The image below shows the edits shown in the text (seen in brackets).

The website also contains a dictionary of sorts that showcases all kinds of meanings to words. The image below shows the various definitions of 'Friend', which still continues out of the bounds of the page.

While I couldn't find any place to access markup, but as the first image shows, there is still forms of markup just not in XML. The first site is defininetly easier to find the XML, but each site has a use depending on what the user would need.

I picked the first and second websites, Radical Scatters and The Emily Dickinson Project, to compare to each other, and I think the first one is overall better. Navigating from poem to poem is a bit easier on Radical Scatters, but in terms of actually reading the poems in reading view, both websites are easy and simple enough. When looking at the xml files for both websites, that's what made me pick the the first website over the second.

This first screenshot shows the xml file for a poem on Radical Scatters. I feel like if you're a beginner or more advanced at coding, the xml markup in this isn't too difficult to understand. It looks to be "pretty printed" so that it's easier to follow, and there's enough tags to show all the markup that's needed, but there's not an absurd amount. Most people would likely still be able to read the poem itself while looking at this xml file.

This is the xml file for a poem on the Emily Dickinson Project. I've been using xml and oxygen for a while now, so I can read the markup relatively fine, but a beginner would probably look at this and have no clue what's going on. There's significantly more tags, and the file isn't lined up as nicely as the other one. The poem itself is also broken up a lot more, so trying to read it this way while looking at the xml file would be pretty annoying if you ask me.

The first project I chose to review was[]( Radical Scatters: Emily Dickinson's Late Fragments and Related Texts, 1870-1886). Right off the bat, you are introduced to the individual that this project aims to document the final decades of her life by compiling letters, poems, scraps of paper, and more into a well crafted and visually pleasing website.

Looking closer at some of the poems that the site documents, we get several options in how we get to view the poem from the regular reading view to pictures of the original paper. Alongside both of those we also have the option to download these poems in the form of an XML document.

Overall I enjoyed this project from how simplistic yet detailed it all was.                                                                                The second project I looked at was the one done by our fellow Behrend students. [](Emily Dickinson Project (fascicles 16 and 6)) took the opposite approach from a calmer and older theme to a much brighter color scheme. This project in comparison to the prior is interesting in the sense that although the first has more information and more text to go off of, this project instead focuses on the comparison between original text and publications of them.

An example of such can be found in the Dash Analysis Graph

The graph above shows the rate at which published works reduced the amount of dashes in comparison to the original works by Dickinson.                                                                                Although I feel like I should compare these two projects I don't believe that they are similar enough to do so. Yes, they both document works by Emily Dickinson but they focus on two distinct parts of her and her work. On one hand you have the full library of Dickinson with letters and poems included but on the other you have the documented changes from original work to published. Having that said, both are amazing in terms of what purpose these projects serve in the first place.

For my analysis I compared Faciles 16 to Radical Scatters A 93-7
Here is a screenshot of each page in order

First I will cover the  Dickinson Newtfire site. From first glance I can already say I like the UI of this one much more than the Radical Scatters.  It's much more modern and user friendly. I also really like how it does a side by side comparison of the original text to the transcript. I also really liked how when you click on part of the written text it hops to it in the transcript. For the markup in the xml I thought it was very well structured and although I am not advanced to this level in XML, I feel for anyone who is, the structure and markup would be really easy to follow. The only comment I have about the Emily Dickinson page is that I wish there was a prompt/disclaimer that explained that you need to right click and download file for the markup as when you click it you just get the text and I had to google how to get the actual markup.
Here's an example of the markup for the Emily Dickinson poem:
  <l n="1">I felt a <app>                     <rdg wit="#df16 #fh">Funeral</rdg>                     <rdg wit="#ce #poems3">funeral</rdg>                 </app><app>                     <rdg wit="#df16 #fh">,</rdg>                     <rdg wit="#ce #poems3"></rdg>                 </app> in my <app>                     <rdg wit="#df16 #fh">Brain</rdg>                     <rdg wit="#ce #poems3">brain</rdg>                 </app>,</l>                 <l n="2">And <app>                     <rdg wit="#df16 #fh">Mourners</rdg>                     <rdg wit="#ce #poems3">mourners</rdg>                 </app><app>                     <rdg wit="#df16 #fh"></rdg>                     <rdg wit="#ce #poems3">,</rdg>                 </app> to and fro<app>                     <rdg wit="#df16 #fh"></rdg>                     <rdg wit="#ce">.</rdg>                     <rdg wit="#poems3">,</rdg>                 </app></l>                 <l n="3">Kept treading<app>                     <rdg wit="#df16 #fh">—</rdg>                     <rdg wit="#ce #poems3">, </rdg>                 </app>treading<app>                     <rdg wit="#df16 #fh">—</rdg>                     <rdg wit="#ce #poems3">, </rdg>                 </app>till it seemed</l>                 <l n="4">That <app>                     <rdg wit="#df16 #fh">Sense</rdg>                     <rdg wit="#ce #poems3">sense</rdg>                 </app> was breaking through<app>                     <rdg wit="#df16 #fh">—</rdg>                     <rdg wit="#ce #poems3">.</rdg>                 </app></l>             </lg>
Next I will cover the Radical Scatters site. For my analysis I looked at the A 93-7 document. From first glance I can say the UI on this site looks not dated, but very traditionally done. Very similar to just about any scholarly site. Although this is not a bad thing I do very much enjoy the interactive structure used in the Emily Dickinson site much more. Since this is a much shorter piece, the xml markup was much shorter too so I will include the whole markup below. This markup was much easier to follow as a xml beginner, but this is just because the page author didn't do as much as the Emily Dickinson page author did. I honestly wish the Radical Scatters author tried to make the page more interactive because I think it just adds so much more depth and engagement for the reader and helps them to learn much more about the document and its history.
The Radical Scatters A93-7 code is below:
<?xml version="1.0" encoding="ISO-8859-1"?><div1 type="electronictranscription">                <div2 type="poem" xml:id="a93-7.txt.1" rend="fair-copy draft">                                      <ab type="stanza">"Remember me"<lb/>implored the Thief!<lb/>                      <seg type="trace" corresp="a314.trace.1" xml:id="a93-7.trace.1">Oh                         Hospitality!<lb/>My Guest "Today<lb/>in Paradise"<lb/>                      </seg>I give thee<lb/>guaranty.<lb/>                   </ab>                   <ab type="stanza">That Courtesy<lb/>will fair remain<lb/>When the Delight<lb/>is                      Dust<lb/>With which we<lb/>cite this mightiest<lb/>case<lb/>Of                      compensated<lb/>trust -<lb/>                   </ab>                   <ab type="stanza">Of all we are<lb/>allowed to hope<lb/>                      <pb rend="verso, first leaf (A 93-7a)"/>But Affidavit <lb/>stands<lb/>That this                      was<lb/>due where most<lb/>we fear<lb/>Be unexpected<lb/>Friends.<lb/>                   </ab>                </div2>             </div1>

Although I found all the websites provided insightful of Dickinson's poetic works, I was particularly drawn to the website that previous DIGIT students have created: https://dickinson.newtfire.org/16/1605.html#fs1605Map

As I begun to navigate the site, I found that each version of Dickinson's poem were different than each other in the most subtle ways.

 The user flexibility of the website was very cool, I quite enjoyed how interactive it was, and therefore had to check out the XML myself.

I used this bit of code to really understand the XML markup,
<l n="9"> And then I heard them lift a <app> <rdg wit="#df16 #fh">Box</rdg> <rdg wit="#ce #poems3">box</rdg> </app> <app> <rdg wit="#df16 #fh"/> <rdg wit="#ce #poems3">,</rdg> </app> </l>
I noticed that this attribute focuses on the 9th verse if this particular poem, and each version is tagged in a "reading' or "rdg" tag. Then within each tag, a
"witness" attribute is included that holds each version of the poem.
After looking at this website, I could not help myself and had to look at the open source Emily Dickinson website. https://www.edickinson.org/

(Looks kind of cool)
Following the instructions from #3 to help navigate the site, I found that the versions from the previous website I looked into were quite similar to the student website.

Although this website had one less version than the student made website, I found the consistencies within how the poems were archived quite neat.

The first site I visited was (Radical Scatters: Emily Dickinson's Late Fragments and Related Texts, 1870-1886) How I found my poem was clicking the "all documents carrying fragments" link. I click around each one seeing which one I liked the most. The original was little hard to read so I went to the reading view tab.

I liked the poem even though it was hard to read. I found it easy to mark it up. While reading, I could see ways I would mark it up in XML

With thanks
for my health
I send you
Antony's
Orchard,
who paid his
Heart for
what his
Eyes ate,
only -

The second site I visited was (Emily Dickinson Project (fascicles 16 and 6)) First, I read the introduction. After, I clicked on the fascicle tab and went to fascicle 16. I read poem 8.

I found it intriguing to read. Like the first poem I read, I could easily see what I would mark up on the poem.

Just laying light—no Soul will wink
Except it have a flaw—
The H Sound ones, like the Hills— shall stand   stand up —
No Lightning,  scares away   drives  —

The Perfect, nowhere be afraid—
They bear their  dauntless   fearless—   tranquil—  Heads,
When others, dare not go at Noon,  walk at noon—
Protected by their deeds—

For my analysis, I compared Radical Scatters and the Emily Dickinson Archive. Below is a screenshot of each webpage in the order stated.

One thing that stuck out to me with the Radical Scatters site was the organization of the files. There were categories based on original file location, current location of the manuscript, and composition date. I also liked the addition of the media, hand, paper types, features, etc. The poems were easy to read on the site and it was very easy to navigate to other poems. I also liked the theme of this webpage; the colors and design choice made it seem kinda old fashioned like the poems.
The markup in this website is very simple and easy to follow, as a beginner coder in XML.

For the Emily Dickinson Archive, I liked the word search feature so you can see how many poems have certain keywords, or if you only know a few words of the poem, you can easily search it up and find the poem. I also really loved the photo of the original document alongside the text directly in the website, making it easy to read. I personally like this project better due to the photos of the original transcripts and the easy word search. I could not find a way to access the XML code for this site.

The "Radical Scatters" website was very interesting to me. Finding content is very straightforward. It provides four different versions of the text which cater to varying levels of interest and involvement with the text. The metadata is very thorough.

The site on newtfire.org had some slightly confusing navigation, specifically that it changed after selecting one of the fascicles, and at first glance, I was confused. But, once I got to a specific poem, I appreciated the ability to compare the small details between versions.

On both sites, the XML was easy to access and understand. This snippet from Radical Scatters, poem A 540, includes one of my favorite simple but effective ways of marking something about the writing rather than the text itself:
<rdg corresp="a540.2" xml:id="a540.1">
   were better
   <lb/>
   <unclear rend="illegible" reason="ill-formed handwriting">nay</unclear>
</rdg>

First site I looked at was the newtfire along with Poem 5. I thought it was easy to get around on the site to see the different sections and subcatagories.

Second site was the Radical Scatters site along with a Poem I found titled "Orient". This site was very user friendly and easy to navigate to the different poems.

The following code was in the second poem I looked at and disclose an issue with the document itself:
`<damage, document torn>
<reverse (A 760a), paper flipped over right and rotated one-quarter turn left>
< a760.txt.2; fragment_extrageneric >`


CSCFAIRMETA-779: [FIX] Restrict IDA project check to "IDA01:"

Better to check for "IDA01:" instead of "IDA", since there might be cases where projects are named "IDA...".
"IDA01" separates IDA projects from IDM groups

Obviously better with ':'
Thanks @tahme


Returning TTL of record

In future IPNS caching might be written and TTL of records will be required. It would be great to be prepared for it.

indeed!


"Configuration for WSO2 API Manager" page under "Install and Setup" section has 3.1.0 content

Description:
Configuration for WSO2 API Manager has 3.1.0 content and has not been updated for 3.2.0 content.
Steps to reproduce:
Content Positioning in Documentation:

Link:
https://mg.docs.wso2.com/en/latest/install-and-setup/configuration-for-wso2-api-manager/#configuring-the-microgateway-31x-toolkit

Heading (& Step):
Install and Setup

Priority changed as the docs is referenced from training materials

Fixed with https://github.com/wso2/docs-mg/pull/40/


[CI][Hexagon] Forward gtest tests into pytest as separate tests

Prior to this commit, all Hexagon test cases in tests/cpp-runtime/hexagon were executed as part of a single unit test in pytest.  This can take a significant portion of the total timeout in CI (~50 minutes out of a 2-hour timeout).  While the hexagon tests are split out onto 8 separate runners, having a single large test can cause timeouts on whichever runner happens to receive it.
This commit exposes each unit test from tests/cpp-runtime/hexagon into a separate unit test in pytest, to avoid these timeouts.

Thank you!  It looks like the hexagon tests now have a narrower spread in runtimes across the shards, though there's still some variation (about 1h20m to 1h50m), probably depending on which shard happens to get the long runtime test cases.
For now, hopefully this will help avoid having timeouts during CI.


[Snyk] Security upgrade io.undertow:undertow-core from 2.2.24.Final to 2.2.30.Final

Snyk has created this PR to fix 1 vulnerabilities in the maven dependencies of this project.
Snyk changed the following file(s):

tools/log4shellserver/pom.xml

Vulnerabilities that will be fixed with an upgrade:

Issue
Score
Upgrade

HTTP Request Smuggling SNYK-JAVA-IOUNDERTOW-8383402
  741
io.undertow:undertow-core:  2.2.24.Final -> 2.2.30.Final  No Known Exploit

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

 Following are detected SECRETS!! To be fixed !

{
"filename": "src/main/resources/application.properties",
"failure_list": [
{
"type": "filecontent",
"message": "Expected file to not contain base64 encoded texts such as: spring.datasource.password=eyJhbGciOiJIUzI1NiIs...",
"commits": [],
"severity": "high"
},
{
"type": "filecontent",
"message": "Potential secret pattern : #spring.datasource.password="hwgeytfwqefjweqhfwef"",
"commits": [
"89f62df96738b5e47862214e71ef1a516dfafc13"
],
"severity": "low"
},
{
"type": "filecontent",
"message": "Potential secret pattern : spring.datasource.password=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"commits": [
"89f62df96738b5e47862214e71ef1a516dfafc13"
],
"severity": "low"
}
],
"warning_list": [],
"ignore_list": []
}


The URL should update if the request hits a 301/302 redirect.

What use case do you have in mind?

We experince the same problem in a app right now. The use case is:
User clicks a "+" button to create a vehicle. while vehicle creation we don't show all possible options to the user because for some we the a vehicle-id first. This is the reason why after validation + submit we redirect the user to the detail-view again which brings up all available features for this car.
Form submit is handled using pjax, therefore we need the redirect functionality their. will try the X-PJAX-URL way now.

Well the concrete problem for me is for example, we have a list of devices:
Appe Iphone 5s
Samsung Galaxy S5
While the Samsung Galaxy S5 should go straight to /device-name/ the Apple Iphone 5s might have operating systems, so therefore if the Apple iPhone 5s have operatingsystems it will redirect 301 to a url /device-name/select-os/.
Of course this could be solved by printing the correct links in the first place, but there could be other use cases where some content has been permanently moved. Then it would only make sense that the url updated because the content shown is actually not the content corresponding to the url.
I get that this problem might not be pjax's to solve but I personally think you should consider it. Becuase people use this plugin because it's the perfect tool for a backend developer. And they just want their backend reflected in the frontend with a neet little 5-10 line jquery plugin like this.

I'm not sure that we're all on the same page here, but just to reiterate what the general problem with ajax and redirects is:

ajax requests /foo URL
server processes /foo and 30x-redirects to /bar
ajax automatically follows redirects, receives HTML response for /bar
from ajax response, it's impossible to detect that a 30x redirect happened or what was the final URL

Since pjax is implemented using ajax, we are left with this same problem with redirects. The only solution we can propose right now, and this is suggested in the README, is that the server sets X-PJAX-URL response header so that this value gets read by pjax and updates the URL accordingly. So, when you do a redirect, have the final endpoint send the HTML response as well as the current URL as X-PJAX-URL header and you should be fine.
Any other questions?

(Download this jQuery plugin. This is not an advertisement.
https://github.com/carhartl/jquery-cookie/blob/master/src/jquery.cookie.js )
JS:
$(document).on('pjax:end', function(event, xhr, options){
	Redirect();
});

function Redirect(){
	let redirect = $.cookie('redirect');
	if(redirect){
		history.pushState(null, null, redirect);
		$.cookie('redirect',null,{expires:-99999})
	}
}

PHP:
setcookie('redirect', '/link/to/redirect', 0, '/', null, false, false);

Add to your template file in #pjax-container block

<?php print $_SERVER['REQUEST_URI'] ?>

and jQuery:

$(document).on('pjax:end', function(event, xhr, options){
	let current_url = $('#current-url').text();
	if(current_url){
		history.pushState(null, null, current_url);
	}
});


raft engine: Update raft-engine dependency (not panic when no disk space)

What is changed and how it works?

Issue Number: Ref #15755

What's Changed:
Update raft-engine dependency, to include the fix that makes raft-engine not panic when no disk space

Related changes
n/a
Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects
Release note

Update raft-engine dependency, to include the fix that makes raft-engine not panic when no disk space.

Update raft-engine requires rustc > 1.67.1.

2 depecrating package warnings requires updating dependencies
1 unstable feature change of behavior requires a little bit code change.

As https://github.com/tikv/tikv/pull/16294 has contained this work, it can be closed.


Long factorial

Added the code for Long Factorials in C++.
This PR closes the issue #362

resolve the conflict.


Dependency Conflict Warnings

The following was observed running the dependency installation with Node v18.18.0, npm v9.8.1
There is a conflict between dependencies resulting in warnings during npm ci/install. The following didn't appear to affect the successful running of the checkout (the root React dependency overrode the conflicting dependency), but the formik dependency might need a review. The issue is a conflict between the root-level React version and a React version declared as a peerDependency later in the chain.

Root package.json declares "@types/react": "^17.0.2".

Consequently, we find ourselves currently constrained at Formik 1.5.8.

formik v2 introduced several breaking changes that have yet to be resolved.
Consequently, we find ourselves currently constrained at formik 1.5.8.


List all node projects in need of an upgrade

Following sprint planning we discussed tracking all repositories in need of an upgrade, in order that we don't miss any!
This can be a spreadsheet of repositories that need updating.

I just remembered this that came very handy last year when we upgraded all the python lambdas
https://github.com/wellcomecollection/aws-account-infrastructure/tree/main/scripts#running-a-script-across-every-aws-account

To find lambdas with runtimes < 20 in all account
from config import get_all_aws_accounts

def isEarlierThanNode20(runtimeString):
    return int(''.join(filter(str.isdigit, runtimeString))) < 20

if __name__ == "__main__":
    for account_id, account_name, sess in get_all_aws_accounts():
        print(f"\n# {account_name} ({account_id})\n")

        lambda_client = sess.client("lambda")

        for page in lambda_client.get_paginator("list_functions").paginate():
            for function in page["Functions"]:
                runtime = function.get("Runtime")
                if runtime != None and runtime.startswith('nodejs') and isEarlierThanNode20(runtime):
                  print(function["FunctionName"])
                  print(runtime)

workflow<PHONE_NUMBER>33)
digitisation<PHONE_NUMBER>21)
platform<PHONE_NUMBER>05)
elasticsearch-log-forwarder
nodejs18.x
iiif-test-cloudfront_invalidation
nodejs12.x
api-prod-cloudfront_invalidation
nodejs12.x
iiif-prod-cloudfront_invalidation
nodejs12.x
api-stage-cloudfront_invalidation
nodejs12.x
iiif-stage-cloudfront_invalidation
nodejs12.x
example-lambda
nodejs16.x
iiif-stage-new-cloudfront_invalidation
nodejs12.x
send_slack_alert_for_5xx_errors
nodejs16.x
catalogue<PHONE_NUMBER>03)
data<PHONE_NUMBER>20)
digirati<PHONE_NUMBER>53)
experience<PHONE_NUMBER>01)
search_logger_kinesis_to_es_lambda
nodejs12.x
identity<PHONE_NUMBER>53)
identity-authorizer-prod
nodejs18.x
patron-deletion-tracker-prod
nodejs18.x
identity-authorizer-stage
nodejs18.x
patron-deletion-tracker-stage
nodejs18.x
identity-api-stage
nodejs18.x
identity-api-prod
nodejs18.x
reporting<PHONE_NUMBER>53)
storage<PHONE_NUMBER>36)
microsites<PHONE_NUMBER>33)

NOTE: The script above only lists lambdas in the eu-west-1 region
Here are the us-east-1 ones
** platform<PHONE_NUMBER>05) **
cf_edge_wellcome_library_catalogue_redirect
nodejs16.x
cf_edge_dlcs_path_rewrite
nodejs16.x
cf_edge_wellcome_library_archive_redirect
nodejs16.x
cf_edge_wellcome_library_encore_redirect
nodejs16.x
cf_edge_wellcome_library_passthru
nodejs16.x
cf_edge_wellcome_library_blog_redirect
nodejs16.x
cf_edge_wellcome_library_redirect
nodejs16.x
** experience<PHONE_NUMBER>01) **
send_slack_alert_for_5xx_errors
nodejs16.x


No way to determine if PickerIOS wheel is moving

[X] I have reviewed the documentation
[X] I have searched existing issues
[X] I am using the latest React Native version

PickerIOS supports onValueChange. This fires after the iOS picker stops rotating and settles on an index. There are cases where the picker can be almost done rotating, but onValueChange hasn't fired yet. The easing into a new value is slow enough to where a user can click "Done" for a button that takes the selectedValue from PickerIOS and stores it (somewhere), yet the wheel is still rotating. This causes cases where the user expects selectedValue+1 to be set, but selectedValue is instead set.
Ideally, we could hook into this animation and listen for an event that tells us the iOS picker has started "rotating" and stopped "rotating". Then, we could wait for animations to complete (and thus the correct selectedValue) when saving PickerIOS's state. Currently this is not possible.
Environment

Environment:
OS: macOS High Sierra 10.13.3
Node: 9.5.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.53.3 => 0.53.3
Steps to Reproduce

Try binding a selectedValue to PickerIOS, spin the wheel and click on a button that saves selectedValue just before the wheel stops rotating. You will not get the proper value (or you will get no value if selectedValue was initially undefined)
Expected Behavior

To prevent the above, listening to animation events could be used to wait for animations to complete to ensure we get the proper selectedValue. You could even disable such a button until animation is complete to help guide a user to set the right value.
Actual Behavior

Yes

Yes still requires triage


IndexError: list index out of range

Describe the bug
Getting "IndexError: list index out of range"
in "devika\src\agents\feature\feature.py"
on line "response = response.split("~~~", 1)[1]"
To Reproduce
Steps to reproduce the behavior:
I asked to finish a index.html for a onepager, not sure if this will be reproduced on every onepager.
Background: it first made just a list with tasks, I asked to  complete the tasks by itself and create the index.html.
Expected behavior
Not give an error and finish the code.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: Win11
Search Engine: DuckDuckGo
Model: Mistral using Ollama

Additional context
This keeps happening in this project when I ask something around finishing the code.

mistral llm is asked to send the code in ~~~~ sign. However, if mistral is not trained with such a character, it sends the code without these signs. This is why this error is returned. If there is another way to separate code and text, it can be solved by trying

A new format and code block specific to programming language models should be added, it is not right to integrate them in this way


[Enhance] Add MMGen citation

Codecov Report

Merging #109 (78540da) into master (f8d6f2e) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #109      +/-   ##
==========================================
- Coverage   76.06%   76.03%   -0.03%
==========================================
  Files         118      118
  Lines        8089     8092       +3
  Branches     1519     1520       +1
==========================================
  Hits         6153     6153
- Misses       1546     1549       +3
  Partials      390      390

Flag
Coverage Δ

unittests
76.03% <ø> (-0.03%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

mmgen/utils/collect_env.py
20.00% <0.00%> (-1.16%)
:arrow_down:

mmgen/models/architectures/stylegan/mspie.py
91.58% <0.00%> (ø)

...chitectures/stylegan/generator_discriminator_v1.py
89.83% <0.00%> (ø)

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 f8d6f2e...78540da. Read the comment docs.


[libpq] build failure

Operating system
Linux
Compiler
gcc
Steps to reproduce the behavior
{
  "name": "lib",
  "version-semver": "0.0.0",
  "dependencies": ["fmt", "qt"],
  "default-features": []
  },
  "builtin-baseline": "80d54ff62d528339c626a6fbc3489a7f25956ade"
}

Failure logs
In file included from ../../src/include/postgres.h:46,
                 from hashfn.c:24:
../../src/include/utils/elog.h:79:10: fatal error: utils/errcodes.h: No such file or directory
   79 | #include "utils/errcodes.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
relpath.c:21:10: fatal error: catalog/pg_tablespace_d.h: No such file or directory
   21 | #include "catalog/pg_tablespace_d.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [<builtin>: hashfn.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [<builtin>: relpath.o] Error 1
make[1]: *** [Makefile:19: all] Error 2

Additional context
The error is caused by an additional folder in src that contains the contents expected within src itself: /opt/vcpkg/buildtrees/libpq/src/tgresql-16-b00fbb6ff2.clean.

Same issue as https://github.com/microsoft/vcpkg/issues/39752. Due to running vcpkg install in a makefile command.


Fire Importer

Hi,
I have deployed azuredeploy-importer.json for fhir importer for our Azure API for fhir.  I have an issue that bundles are not getting loaded failing with the error.
"AADSTS50059: No tenant-identifying information found in either the request or implied by any provided credentials.
I found this error message in fhirBundleBlobTriger monitor. Can you please tell me what went wrong.
Thanks and Regards!

I had skipped the default values in the JSON deployment file earlier, after entering the values and deployed again. Now the issue is different:
File read
Information
2021-01-14 15:16:16.130
Request failed with Forbidden. Waiting 00:00:02.0240000 before next retry. Retry attempt 1
There is not much information on why it is failing. Or is there a different log/error file that I need to look in. Sorry, I am a newbie for this. Can you please help in this.
Regards,
VH

I had skipped the default values in the JSON deployment file earlier, after entering the values and deployed again. Now the issue is different:
File read
Information
2021-01-14 15:16:16.130
Request failed with Forbidden. Waiting 00:00:02.0240000 before next retry. Retry attempt 1
There is not much information on why it is failing. Or is there a different log/error file that I need to look in. Sorry, I am a newbie for this. Can you please help in this.
Regards,
VH

What are the steps (i.e. commands you are running in order, including your subscription details and environment details) you are taking to produce this error?
Please re-open this issue with more information so that I can reproduce the error message - I'll keep it closed for now.

What are the steps (i.e. commands you are running in order, including your subscription details and environment details) you are taking to produce this error?
Please re-open this issue with more information so that I can reproduce the error message - I'll keep it closed for now.


Implement Role#getTags and add CacheFlag#ROLE_TAGS

Pull Request Etiquette

[ ] I have checked the PRs for upcoming features/bug fixes.
[ ] I have read the contributing guidelines.

Changes

[ ] Internal code
[ ] Library interface (affecting end-user code)
[ ] Documentation
[ ] Other: _____

Closes Issue: NaN
Description
Replace this sentence with general description of what your Pull Request does.

This feature hasn't been fully deployed yet and is not yet documented. I will keep this on freezer in the meantime.

If needed could I make a PR targeting this branch, to implement comments.

Feel free to add me as reviewer once its ready to be merged. BTW: the last 2 changed files don't seem to be related to the tags at all. Do you want to implement them in some different branch, if not already planned?


modifed wrong key names in pocket.py

There is a wrong name of the social auth key. I think, 'POCKET_CONSUMER_KEY' shoud be a 'SOCIAL_AUTH_POCKET_KEY'. 'POCKET_CONSUMER_KEY' makes a ''400 Client Error".

Actually the value should be POCKET_KEY as it's documented here, but the code wasn't reflecting that value properly.


pull request for e2e test at 12/19/2016 12:56:22

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.