Error on connect(): Can't convert 'bytes' object to str implicitly

Setup:
Python 3.5.2 on Ubuntu 16.04
flask-sqlalchemy==2.3.2
sqlalchemy==1.1.15
flask==0.12
pymysql==0.7.11

Connection string:
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://<username>:<pswd>@localhost::3306/<db>'

Increasingly, I see a bunch of errors pop up on Sentry with the error message
Error on connect(): Can't convert 'bytes' object to str implicitly
The traceback threw me off for a bit, but it appears it is due to the database connection. I'm not 100% sure this is on flask-sqlalchemy (most likely sqlalchemy itself or pymysql), but I thought I would see if anyone else has seen this issue pop up?
An example traceback can be seen here.

Given that all of the traceback occurs in SQLAlchemy code, not Flask-SQLAlchemy, closing this.


Performance for fetching a file from nexus very poor

When downloading a 100 MB file through the nexus SDK using files.fetch the performance is very weak. It takes almost 3 minutes to download the file, as opposed to 1 second(!) using curl.
Actual command:
nexus.files.fetch(org_label=config.ORG, project_label=config.PROJECT, file_id = file_id,out_filepath = "out.dat")

with ORG/PROJECT = gpfs_tests, file_id="http://dev.nexus.ocp.bbp.epfl.ch/v1/resources/gpfs_tests/gpfs_tests/_/e16577f8-9f64-45e0-9623-cca82bed8644"
Version used of nexussdk: commit 8c8516f1c7d53eea89754ab0ffe2bd9f9e6f07c9
curl command:
curl -H 'Cache-Control: no-cache'  -H "Authorization: Bearer ${TOKEN}"  -XGET "$FILEID"  -o data.dat

This issue seems to be back in the staging environment.
100MB file with ID: https://staging.nexus.ocp.bbp.epfl.ch/v1/resources/gpfs_tests/gpfs_tests/_/8b071a0d-8223-4153-9b96-b7a2ba5cf5c3

using SDK it takes about 3 minutes to download the file
with curl it is about 2 seconds: curl -H 'Cache-Control: no-cache' -H "Authorization: Bearer ${TOKEN}" -XGET "https://staging.nexus.ocp.bbp.epfl.ch/v1/resources/gpfs_tests/gpfs_tests/_/8b071a0d-8223-4153-9b96-b7a2ba5cf5c3" -o test.dat

@alex4200 I've published a new version 0.3.2 on PyPI that should fix the issue.


how to use this tool ???

1、down the geoprocessing-tools-for-hadoop-master.zip and unzip;
2、add the HadoopTools.pyt to the box;
but all of the tools show a problem: and not to use?
the python error
Traceback (most recent call last):
File "", line 205, in getParameterInfo
File "d:\arcgis\arcgisinfo10.2\desktop10.2\arcpy\arcpy\arcobjects\mixins.py", line 286, in init
setattr(self, attrib, attribvalue)
File "d:\arcgis\arcgisinfo10.2\desktop10.2\arcpy\arcpy\arcobjects_base.py", line 89, in _set
return setattr(self._arc_object, attr_name, cval(val))
ValueError: ParameterObject: DataType \u5c5e\u6027\u7684\u8f93\u5165\u503c\u65e0\u6548

Hi @GISerCAU - thanks for your feedback.
Are you able to give a screen shot of the tool box?
Were you able to follow either of these steps? Method 1 and Method 2
Lastly, are you using a Hadoop cluster or a VM?


Add TTS notify support

Add notify platform with support for TTS messages.

+1 on this - would make things simpler for notifications.

+1 on this - would make things simpler for notifications.

+1 ❗


Ignore HTML and PY files in Linguist

It will make the repository be better classified in the expected languages
on GitHub.
I expect to change the classification for something better describes the contents of the repo, making it a project made of Jupyter Notebooks.

Docs:
https://github.com/github/linguist/tree/b94e018c3af1ca5b3858f2249253d076b26df6a0#generated-code

Wow! That's new for me. Merged and waiting for caches to go away or for background tasks to see the results ; )

https://github.com/datasciencebr/serenata-de-amor
Now Serenata de Amor is a Jupyter Notebook repository. ❤❤


Running Core 2.0 Self-Containing App on Linux fails

Running a Net Core 2.0 Self-Containing App on Linux fails
Running a published self-containing app on linux results in an error regarding the assemblys manifest.
Worked well with Core 1.1.
Investigations so far and how to reproduce
I recently converted a Net Core app 1.1 which worked fine to Net Core 2.0 and ran into an issue after publish and run at linux.
I am using Linux Pepermint8 and Ubuntu 16.04. Both showing the same errors.
"Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Console, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Aborted "
Then I decided to create a simple project on Visual Studio 2017.3 using the C# Net Core Console template with Net Core 2.0.
To make the sample self-containing, I've modified the Porject which now looks like:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <RuntimeIdentifiers>win10-x64;linux-x64</RuntimeIdentifiers>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
  </ItemGroup>
</Project>

The main moutine is the default hello world to console output.
Nothing else changed from the default template.
Called Publish form the Solution Explorer and selected "linux-x64" as target platform.
Copied the output to my linux machines and got the same error again.
"Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Console, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Aborted "
The deps file only references System.Console 4.3.0.

I have also run into a similar issue which may be related whilst building a self-contained app for target framework ubuntu.16.04-x64 which previously worked fine with 1.1.
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.Extensions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Through investigation I have found that a brand new console app works fine, but as soon as I reference something (in my case Newtonsoft.Json), the version of System.Runtime.Extensions in the published output becomes the signed v4.6.25519.3. Not sure where the dependency is coming from as everything seems to reference 4.3.0.
I suspect your issue is a result of dependencies introduced by the inclusion of Microsoft.AspNetCore.All.
P.S: I can get the app to work by overwriting all system dlls with those from the blank app.

Removing the include of Microsoft.AspNetCore.All resolved it for me too.
Thank you!
Supposing that there is a reference issue in the metapackage since this was recommended in the migration description here Migrating from ASP.NET Core 1.x to ASP.NET Core 2.0.

@TimoBohl, FYI, after further investigation (i.e. discussion with far more knowledgeable folk), it seems that this issue actually lies with msbuild not correctly running the conflict resolution logic (see https://github.com/dotnet/corefx/issues/23436#issuecomment-324694287 and comments below it). IN case you do need to reference libraries like Microsoft.AspNetCore.All or any others that result in this issue then you can workaround the issue by using the native dotnet publish command instead of publishing from within VS.

@onematchfox Thank you, I've reported this already in the developer network - VS2017 15.3 Net Core 2.0 publish a self-contained app for Linux fails in VS.
Hope they can fix it.

👍  You can also follow https://github.com/dotnet/sdk/issues/1502 for progress on the issue.


Direction is wrong

This is hard to reproduce, but sometimes direction is [0, 0] although the mouse had moved. Here is a video of that: https://youtu.be/YfDXwAw9mr4
react-with-gesture v4.0.2
<Wrapper>
  {children.map((child, index) => (
    <Gesture key={index}>
      {(props) => (
        ...
      )
    <Gesture key={index}>
</Wrapper>

const Wrapper = styled.div`
  position: relative;
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
`;

(if this is useful at all)

@arvigeus we've just released a beta of v5.0.0<EMAIL_ADDRESS>that might correct your problem.
However, there's quite a few api changes that are mentioned here, dropping render-props and relying solely on hooks might affect you I'm afraid.
const bind = useGesture({ onDrag: () => {} }, {...config})

If you have a codesandbox with the old code I'd be happy to migrate it to hooks to see if it's solved.

Thank you for your kindness! The code is too convoluted.

Haha fair enough. Well if you use this lib again with hooks and stumble upon the same problem let me know!


Support the "Code" Authorization flow

Currently, only the token authorization flow is working, which is fine for front end frameworks, but using nodejs, it is way more secure to use the code authorization flow so that the access token is not exposed to users or browser extensions.
I am guessing two things need to be supported here: the clientSecret parameter and a new method for converting a code to an access token.

Thanks! We'll consider it a feature request.

I need this functionality as well.
But in the meantime I created an "extension" package that does the trick for me. Maybe it could be useful for others too.
It can be found here: https://www.npmjs.com/package/dropbox-client-oauth2

@greg-db any news on this?

No, I don't have an update on this.

@b-dur your module works well for me. Why don't you submit a PR to this one to add the functionality here? 😄

You'll need application authentication
https://www.dropbox.com/developers/reference/auth-types
On 29 May 2018 at 22:32, Eliot Lash<EMAIL_ADDRESS>wrote:

@greg-db https://github.com/greg-db This is great, but what if you
don't have a server to redirect to (i.e. running from a CLI script?)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dropbox/dropbox-sdk-js/issues/64#issuecomment-392952417,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACpQ2f0pw3qbr6NgfLd60-DW0GJW84unks5t3b6DgaJpZM4Jrlbl
.

@fadookie It looks like getAccessTokenFromCode method wasn't written to properly support the case where no redirect URI was used. I'll ask the team to update that to support that.

Hi @greg-db any alternatives you might wanna suggest here? I have the same requirement as @fadookie. TIA

@xeektech No, I don't have an update on this yet unfortunately.

@fadookie @xeektech The getAccessTokenFromCode method has been updated to support a null redirectUri as of v5.0.0.


Clarify options for open(), addTiledImage(), and the tileSources option

Those three are so flexible it can be confusing to figure out what to do. See #894 for an example.
One possibility is that we focus on narrowing down the flexibility, i.e. only document the most advanced version. I'm not a huge fan of that, since:
var viewer = OpenSeadragon({
  tileSources: [{
    tileSource: url
  }]
});

... seems a bit much if all you need is:
var viewer = OpenSeadragon({
  tileSources: url
});

Another possibility would be to write a page on the website that walks you through the various possibilities, with examples.
I suppose another possibility might be to add some sugar to the creation options, so in addition to tileSources (an array of tileSources), we could have tileSource (just one tileSource) and open (the full set of options).
Anyway, thoughts?

I think a new page on the website would be helpful.
Adding sugar could help but might also confused the users if there are too many different ways to do the same thing.

Cool... well, let's start with a page and see how that treats us.


Add NEW_RELIC_K8S_OPERATOR_ENABLED

Overview
Add a configuration setting to indicate that the agent is being injected by the Kubernetes Agent Operator and that we should skip the python version safety check in sitecustomize.
See agent spec for details (open PR).

Codecov Report
Attention: Patch coverage is 75.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 81.57%. Comparing base (3b46fad) to head (01bd62a).

Files
Patch %
Lines

newrelic/bootstrap/sitecustomize.py
0.00%
2 Missing :warning:

Additional details and impacted files
@@                      Coverage Diff                       @@
##           develop-k8s-agent-operator    #1127      +/-   ##
==============================================================
- Coverage                       81.76%   81.57%   -0.20%
==============================================================
  Files                             192      192
  Lines                           21303    21309       +6
  Branches                         3707     3707
==============================================================
- Hits                            17419    17383      -36
- Misses                           2806     2840      +34
- Partials                         1078     1086       +8

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

I preemptively marked this as approved, but there's some test failures (mostly timeouts for some reason)


Fix code scanning alert no. 3: Clear-text logging of sensitive information

Fixes https://github.com/Vin205/Enyanjyoti/security/code-scanning/3
To fix the problem, we need to remove the logging of sensitive information, specifically the password. Instead of logging the entire object containing both the username and password, we can log only the username or a generic message indicating that a login attempt is being made. This way, we avoid exposing sensitive information in the logs.

Remove the logging of the password on line 22.
Replace it with a safer logging statement that does not include sensitive information.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

@Vin205 please review the changes!


RMSE or MAE

May I ask the author, why is the RMSE written in the evaluation index in the paper, but the MAE is calculated on the evaluation code?

May I ask the author, why is the RMSE written in the evaluation index in the paper, but the MAE is calculated on the evaluation code?

I have the same question. Note that in SID the paper mentioned this in README.md. (https://github.com/cvlab-stonybrook/SID)

Note on the shadow removal evaluation code: We recently figured that the RMSE evaluation code that many papers have been using (including ours) is actually calculating Mean Absolute Error. We will retrospectively fix this in all our papers and suggest everyone to do the same.

Is the RMSE in this paper the same?


Content collection loader examples are inconsistent

📚 Subject area/topic
Content collections
📋 Page(s) affected (or suggested, for new content)

https://docs.astro.build/en/guides/content-collections/
https://docs.astro.build/en/guides/upgrade-to/v5/
https://docs.astro.build/en/tutorial/6-islands/4/
https://docs.astro.build/en/guides/integrations-guide/mdx/
https://docs.astro.build/en/reference/modules/astro-content/

📋 Description of content that is out-of-date or incorrect
The Astro v5 loader examples have a different file pattern depending on the page. The different examples are confusing, and it's not sure which pattern is the recommended default.
For example, the upgrade guide shows a loader pattern that excludes underscore:
loader: glob({ pattern: '**/[^_]*.md', base: "./src/data/blog" }),

The astro:content reference removes the underscore check:
loader: glob({ pattern: '**/*.md', base: './src/data/blog' }),

The MDX integration guide adds a backslash:
loader: glob({ pattern: "**\/*.{md,mdx}", base: "./src/blog" }),

I am willing to submit a PR if I know the recommended format.
🖥 Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response

Hi, thanks for reporting this and volunteering to fix the docs!
Regarding the backslash:
It's an escape character which is not needed in this case. We tried to clean them in #10209 and #10213 but apparently we forgot some patterns... (well, I say we but I mean I 😅 ). So, yes, we should remove it to be consistent!
Regarding the consistency between the patterns:
Which one to use depends on your needs and I don't think we have a recommended default. There is not one more just than the other and you could even use another one in your project.
As you can see in the "Content collections" page, we also use pattern: ['*.md', '!voyager-*'] to illustrate that a pattern could be something else.
And the base property is not always the same because there too, it is customizable, you can put your files in the folder of your choice.
So I don't know what should be done here...
However, I agree, the pattern is something that should be better documented to reduce confusion and it's related to #10147.

Does the router exclude files with underscores even if the pattern is '**/*.md'?
If so, this may be the simplest pattern to suggest.
I could change most instances to this (except where you need to illustrate the pattern is different).
If the router behavior depends on this pattern, that complicates the issue.

I don't think so, and that's probably why this pattern is used in the upgrade guide. So I think it's best to leave it there!
If patterns were to be standardized, it would probably be safer to use '**/[^_]*.md'. But I'm not sure it's necessary... because as you said the other pattern is simpler and it's maybe better to stay simple in some examples.
But you can wait for other opinions!

I think I know a way to make it clearer.

Edit the upgrade guide to make it clear that underscores _ in front of files are no longer excluded automatically. This is a behavior change that is good to signal.
Add both examples in the upgrade guide ("if you want to keep the old behavior", set this pattern or something).
Edit the Content Collections page to explain the pattern, instead of mentioning an automatic underscore behavior.

I can see if anyone else has a different thought as well.

underscores _ in front of files are no longer excluded automatically

Just a precision: It is still the case, but this applies to files in src/pages. When I was saying I don't think so I meant for files coming from content collections. I don't know if they were excluded before, I never used this pattern outside of src/pages. When your content comes from a content collection, your page template uses something like src/pages/posts/[id].astro: no underscore! So it seems to me that files with an underscore in your content collection are not excluded.
Regarding your suggestions:

I think a comment above the pattern in the upgrade guide explaining that this pattern allows you to exclude files starting with an underscore could make sense and could help clear the confusion.
I'm not sure adding two examples will help... Which one to put first? I think that could add another kind of confusion.
I think what would make sense here is that once the pattern is better documented (still #10147), we add a ReadMore targeting that page.

I suggested to wait for another opinion because I am not a maintainer here, just a contributor so my opinion doesn't count more than yours and like I said I don't know what's best here! I just wanted to point out that standardization may not be that simple. It's still the weekend, I'm sure other people will be able to chime in later. 😉
In any case, a PR to remove the unnecessary escape character is very welcomed! And, thanks for your ideas! Let's see what others think!

Firstly, thanks for catching the \ that we missed!
Just chiming in here that Armand has given a great summary of the position and why "consistent" examples are problematic:

if we show the same thing all the time then it can be interpreted as "the" pattern, when really, the pattern is meant to be extremely flexible, and showing it slightly different in places helps get that idea across. Removing the unnecessary character is helpful, but it's not super important that every example look the same, and in fact, it's probably more helpful if it doesn't so people realize that this is entirely custom!

If you compare v4 docs to the current content colletions docs, you'll see that the part about using an underscore to prevent pages has been removed for current docs. The previous Content Collections API had the benefit of only working with local entries, so using our underscore trick that matches our src/pages behaviour was built in at some point for convenience. With the new API, we can't know what your files look like as stored in some other source, nor that that system expects/supports file names working that way since it is our own convention. (Maybe that underscore is meaningful to a CMS you're using, for example, but doesn't mean "exclude from build.")

I'll take a peek at the upgrade guide and see where a very quick mention of this change might make sense. The part about excluding draft posts by filtering queries was present even in the old content collections docs, so I don't think we need to have an example of going back to old behavior. It's merely that the shortcut convenience no longer works, and in fact was possible to control more finely with the suggested filtering method anyway. But you're right, if this is a behaviour people were relying on previously, it makes sense to point it out in the upgrade guide! And, we could additionally maybe make it even more explicit on the routing page that this pattern is for only page/endpoint/route files within src/pages/.
I can see the PR for excluding the backslash, and I'll get that merged in shortly!

Yes, I think those are great changes! It is probably also still worth a shout out in the upgrade guide that the analogous behaviour that had been built in to the old collections API for local content files has been removed, and you can either update your pattern accordingly or filter your results after fetching.

Sounds good. Shall I have a go at some of these updates?

@anaxite I would love that! I think incorporating Armand's suggestions and running with those make sense. We can edit/polish final details in the PR. Once you start, I'll add something to the PR on the upgrade guide branch. (That one I'll probably want to word myself, since there's already so much info on that page I'll want to fit this in as compactly as I can.)

@sarah11918 Alright, PR is started! I'm leaving it in draft mode until I've had more of a look.
I started in the routing page with Armand's suggestion, and updated the file tree block at the bottom to make it look a bit more different to content collections.


Reload keyword in speech input handler

As it is, when the speech input source keywords are changed, the changes are not reflected in the speech input handler, as the list is updated only once in OnEnable(). One simple solution is to just create a button to reload them as needed.
I did that and it looks like the screenshot bellow. It works ok. If there is no better solution I could create a pull request with the changes.

@cybergoulion please submit a PR, thanks.

Yes, probably. I will try this tomorrow and submit a PR with a solution either way.

@StephenHodgson I moved the code in OnIspectorGUI after all. Seems to work fine and needs no extra action to update now.

Awesome!


Make the latest production release sort first on DockerHub

Motivation
Currently, the docker image for the latest production release is the 5th entry on DockerHub:
https://hub.docker.com/r/zfnd/zebra/tags
But we want people to use that image, so it should be listed first to avoid confusion. This is a usability issue.
Potential Solution
This might be fixed by adding a latest tag, which should sort first in alphabetical order.
Testing
Do a release, and check what appears here:
https://hub.docker.com/r/zfnd/zebra/tags

@mpguerra this is something we probably want to start doing in a release candidate at least two releases before the stable release.

This should be done automatically when we release v1.0.0 without -rc.0. For Docker, latest is only the last stable release. https://github.com/ZcashFoundation/zebra/blob/main/.github/workflows/build-docker-image.yml#L99
This can be closed, or we can wait until we release to confirm.

It would be nice to check this happens how we expect after the stable release.

Confirmed https://hub.docker.com/r/zfnd/zebra/tags


bullet: 3.17 -> 3.21

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/bulletphysics/bullet3/releases.
meta.description for bullet is: "A professional free 3D Game Multiphysics Library"
meta.homepage for bullet is: "http://bulletphysics.org"
meta.changelog for bullet is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.21 with grep in /nix/store/as6i4xq3mcj3xmvk4pnjs874fppgj1ah-bullet-3.21

found 3.21 in filename of file in /nix/store/as6i4xq3mcj3xmvk4pnjs874fppgj1ah-bullet-3.21

Rebuild report (if merged into master) (click to expand)

21 total rebuild path(s)

17 package rebuild(s)

17 x86_64-linux rebuild(s)
4 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
bullet
docbookrx
enlightenment.econnman
enlightenment.efl
enlightenment.enlightenment
enlightenment.ephoto
enlightenment.evisum
enlightenment.rage
enlightenment.terminology
openmw
openmw-tes3mp
openrw
portmod
python38Packages.pythonefl
python39Packages.pythonefl
stuntrally
vdrift-bin

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/as6i4xq3mcj3xmvk4pnjs874fppgj1ah-bullet-3.21 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A bullet https://github.com/r-ryantm/nixpkgs/archive/b4f38f4ec4ec0de081980a0af4f29b0fbb913204.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/as6i4xq3mcj3xmvk4pnjs874fppgj1ah-bullet-3.21
ls -la /nix/store/as6i4xq3mcj3xmvk4pnjs874fppgj1ah-bullet-3.21/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

17 packages built:

bullet
enlightenment.econnman
enlightenment.efl
enlightenment.enlightenment
enlightenment.ephoto
enlightenment.evisum
enlightenment.rage
enlightenment.terminology
openmw
openmw-tes3mp
openrw
portmod
python38Packages.pythonefl
python39Packages.pythonefl
stuntrally
vdrift
vdrift-bin

Maintainer pings
cc @aforemny for testing.

Compiles fine on linux-amd64
I rebuilt openmw using this update and I didn't notice any regression.

Trusting existing review, if anyone finds regressions feel free to revert this.

Trusting existing review, if anyone finds regressions feel free to revert this.


Finish packaging/availability for npm

Without main: setting - Babel/ES6 import, Browserify require() etc will look for ./index.js in the package.

Sry i missed this... Thanks for the pull request


How to access Session variable

Hi,
For testing purposes , I need to access session and set a value to it .
The class Browser has marked session as protected . I could not find in documentation any reference to session in any method
Thanks

hello @cooldude77
by "session", do you mean "http session"? Browser does not deal with http session. And the method Browser::session() refers do the "mink session" which is a different concept

Hey @nikophil ,
Sorry for not explaining it fully.
I wish to test how controller logic behave when I set a session variable ( for eg. a filled cart in a web shop or an empty cart).
Here I would like to set the session variable which I access in controller using RequestStack getRequest() method in my controller method and then getting the session from it. Based on values in session, controller performs a logic.
I understand that the browser does not have session because it is handled by Mink. Will that be the same session as I explained above and can I manipulate it somewhere in test case ?
Thanks.

currently, browser does not provide a way to manipulate the session. Maybe this could be a nice addition to this lib? ping @kbond
For now, maybe you could use this trick: https://github.com/symfony/symfony/discussions/45662#discussioncomment-4352880

Yes, this would be a nice addition.
You can currently access the "cookie jar":
$browser->use(CookieJar $cookies) {
    // ...
})

I use it successfully to expire the current session:
$browser->use(function(CookieJar $cookieJar) {
    $cookieJar->expire('MOCKSESSID');
})

It would be nice if we could do the following:
$browser->use(SessionInterface $session) {
    // ...
})

Maybe you can create correct session variables "one step before". This is integration tests...
For example CartControllerTest
`    public function test_list_items(): void
{
$user = UserFactory::createOne();
$product = ProductFactory::randomOrCreate();
$product2 = ProductFactory::randomOrCreate();
$productPageUrl = '/product/' . $product->id();
$productPageUrl2 = '/product/' . $product->id();
    $this->browser()
        ->actingAs($user)
        ->interceptRedirects()
        ->visit($productPageUrl)
        ->assertSuccessful()
        ->click('Add to cart')
        ->visit($productPageUrl2)
        ->assertSuccessful()
        ->click('Add to cart'')
        ->assertRedirectedTo('/cart')
        ->assertSuccessful()
        ->assertSee($product->_real()->getName())
        ->assertSee($product2->_real()->getName())
        ->assertSee('Product added to cart')
        ->assertSeeIn('btn-primary', 'Order')
    ;
}`


[Twitter] Unable to use long filenames in 64-bit W10 Pro.

Checklist

[x] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2021.06.06
[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 bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

C:\Users\ant\Downloads\videos>c:\winstuff\youtube-dl -v https://twitter.com/NASAPersevere/status/1408468279669051407
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://twitter.com/NASAPersevere/status/1408468279669051407']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[twitter]<PHONE_NUMBER>669051407: Downloading guest token
[twitter]<PHONE_NUMBER>669051407: Downloading JSON metadata
[twitter]<PHONE_NUMBER>669051407: Downloading m3u8 information
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://video.twimg.com/amplify_video/1408458180644937732/vid/1280x720/YM-nO8ySdKBFdwXZ.mp4?tag=14'
ERROR: unable to open for writing: [Errno 2] No such file or directory: "NASA's Perseverance Mars Rover - Lots of people ask - how do rovers like me and @MarsCuriosity take our own selfies It’s not as easy as a quick smartphone snap. See how it’s done with the help of my team back on Earth --1408468279669051407.mp4.part"
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\downloader\http.py", line 260, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\utils.py", line 2055, in sanitize_open
FileNotFoundError: [Errno 2] No such file or directory: "NASA's Perseverance Mars Rover - Lots of people ask - how do rovers like me and @MarsCuriosity take our own selfies It’s not as easy as a quick smartphone snap. See how it’s done with the help of my team back on Earth --1408468279669051407.mp4.part"

Description

WRITE DESCRIPTION HERE
I was unable to download this Twitter video in my 64-bit W10 PC, but I had no problems in my friend's Fedora v33 PC.  Thank you for reading and hopefully answering. :)

Maybe generated filename is too long for your system. Try setting short output filename like -o "%(id)s.%(ext)s" or -o "%(title).100s.%(ext)s" and rename the file after download.

-o "%(id)s.%(ext)s" worked. Maybe youtube-dl needs to check for this and tell user?

Also, thanks. :)

The Twitter extractor uses the same text for description and the same (or longer) text for title. This seems unsatisfactory: shouldn't the title be abbreviated if it exceeds some length? Eg,
    title_max = 68
    if len(title) > title_max:
        title, changed = re.subn(r'(^.{%d,}?)(\s?.*$)' % (title_max-4), r'\1 ...', title)
        if changed == 0:
            title = re.sub(r'(^.{%d,}?)(.*$)' % (title_max-3), r'\1...', title)

>>> title = "NASA's Perseverance Mars Rover - Lots of people ask - how do rovers like me and @MarsCuriosity take our own selfies It’s not as easy as a quick smartphone snap. See how it’s done with the help of my team back on Earth"
>>> re.sub(r'(^.{%d,}?)(\s.*$)' % (68-4), r'\1 ...', title)
"NASA's Perseverance Mars Rover - Lots of people ask - how do rovers ..."
>>>

Or with the textwrap library class: Python 2 lacks the shorten() method, so:
    import textwrap
    title_max = 68
    if len(title) > title_max:
        title = textwrap.wrap(title, title_max)[0] + ' ...'

>>> import textwrap
>>> textwrap.wrap(title, 68)[0]+' ...'
"NASA's Perseverance Mars Rover - Lots of people ask - how do rovers ..."
>>>

I use an ext4 filesystem and having this problem. This looks odd: using a tweet text as a filename although tweet length is limited to 280 which exceeds the POSIX max filename of 255 characters. Maybe we should shrink that to 255 bytes or generate an UUID or something?

It is odd that I'm having the same issue, but copying the file to the same destination with the same name works just fine.

Maybe the .part temporarily added during download takes the filename over the limit?
Also, see PR #29989.

Continued in #30361.


"I'm a experienced Security practicioner and want to learn to code, where do I start"

James just asked me this

Add more detail on where to start

These kind of questions (and other flavours) are posted regularly on Reddit and Stackoverflow. The answers vary from use source X to just do it. In my opinion you should take your curiosity take you on the road that suits you best.
For example; I'm training myself python by converting a ruby based cheat framework for a game I play into python. :)

If you need to give at least 1 source I'd go with tutorialspoint; they cover a lot of languages with an online testing sandbox.

yeah, but we need to create a better road-map on how to become an appsec professional.
One path that I think is really good is to start by being a Security Champion

in https://twitter.com/colindomoney/status/792830598729596928

Interesting. How do you start a ‘non-programmer’ in grokking programming? CBT, Coursera, a project to hack ?
Depends, if you want to go into a security path, I would say start to exploit vuln-by-design apps and build websites


Can drawing be done as file loads?

Would it be possible to draw the waves as the file is loading? This would not only show loading progress, but would also open the door for rendering streaming requests where the app doesn't want the entire file to load unless the user listens to the whole thing.

No.

Added this question to FAQ: https://github.com/katspaugh/wavesurfer.js#faq
Thanks for the nice formulation.

Can you add something that discusses how to create the wave form that you would use to preload?

I'll add some tips to the MediaElement example page.
In short, if it's a one-off thing, you can generate the waveform data through wavesurfer.js in the browser by running wavesurfer.exportPCM() in the console and saving it's result into a file.
If you need to generate the data in batch, I don't have a ready-to-use recipe, but various programs can do that: bbcrd/audiowaveform, jhurliman/node-pcm, ffmpeg etc.

Yea we would need to do it on the backend, probably using ffmpeg. Would the resulting image be mapped the same way as the rendered image on the canvas, and zoom would still work? If so, what would be the point of re-rendering?

It takes the pre-decoded (which in my ling is the same as pre-rendered–not the image, the data) array of data and renders an image, the same as it woud do with data decoded on-the-fly in the browser.
If zoom would work depends on how dense your data would be (how many data-points aka peaks).

If a project needs to support large files, and considering that there are memory problems with large files, and you would need to pre-render anyway, is there a reason why you would use this library if you only needed to support zooming and drag selection? Seems like I could do that using an image file.

Sure, why not.


Adds binary to use with command line

Adds binary file to use validator from command line.
Example
$ validate-uc-number 10637419
=> true

Improvements
Maybe we should print a more user-friendly message, for instance:
$ validate-uc-number 10637419
=> 10637419 is a valid UC student number.

Que buena wachu 👌


Hash of windows installer for 1.15.2 appeared to change

Between the release of https://github.com/newrelic/infrastructure-agent/releases/tag/1.15.2, an initial upload of a build to download.newrelic.com, and the current version (modified 11 Mar 2021) at https://download.newrelic.com/infrastructure_agent/windows/newrelic-infra.1.15.2.msi the sha256 hash appeared to have changed. This has caused several ripple issues, such as https://github.com/ripclawffb/chocolatey-newrelic-infra/issues/1. Given recent incidents such as the SolarWinds breach, such changes should require some scrutiny.
Is there a way to verify the shasum of the downloaded file with a signing key owned by New Relic? I believe this is already done for other New Relic downloadable assets, such as the .NET Agent.

FYI @bhardister


Live file watching with ui

Add live file watch ⚡  option as default for dat sync (if user is owner). Issue #7. Currently looks like:

Lists the last 7(?) files that have finished importing and the number of files currently being imported (not included in list).
TODO:

[ ] bug on importing many big files 📚
[ ] UI improvements 🎁

[ ] Importing UI - do we need a progress bar or is Importing X files enough?
[ ] Make sure UI on top part makes sense

[ ] Documentation 📖
[ ] Tests!
[ ] hyperdrive-import-files PR

https://github.com/juliangruber/hyperdrive-import-files/pull/41 should fix the bug!

Okay, this is all set! :eye:  📁

Wow awesome joe!


separate entity version to a separate column and add unique constrain

sorry, created by accident

That's alright. I think you've got a good idea, and I think the timestamp ID and the version number are perhaps alternative ways of constructing the sequence. I'm still not sure which is best. I would kinda prefer to use the version numbers because they create a logical sequence in themselves. And making sure the event stream doesn't become inconsistent, by using with a version number constraint in the database, does make sense. The only trouble is that technique isn't really possible in a database such as Cassandra. At the same time, perhaps if a distributed application needs to be such that an entity could become inconsistent, the it would be possible to deal with the inconsistency within the entity effectively by merging the branched sequence of events. On the other hand, although the timestamps depend on the system clock, they allow events to be created in an entity that has an ID but doesn't have version numbers, such as a message logged events in an indefinitely long log of messages. Events from versioned entities also happen at a particular time, and we're interested in that too. Since some domain events don't have a meaningful (or unique) entity version number, whilst all events do have a timestamp, the common format and mechanism for storing all domain events can't really make the entity version figure too strongly, but it can depend on there being a timestamp. I think that's why it has ended up working the way it does. It would be nice to make it support using version numbers to generate the sequence, and if you want to do that, I would suggest going a bit further up the stack, add something to the stored event, and the functions that do stuff with stored events, so you don't have to deserialise the stored event to get the entity version. If you aren't using Cassandra, then you don't need to worry about breaking that bit of the code. Anyway, it's great to see you are having fun with it :-)

Thank you John! 👍 I will keep your advice in mind. :)

By the way, I realised recently I was wrong when I said, "The only trouble is that technique isn't really possible in a database such as Cassandra." I learned how to use the "if not exists" feature and was thinking to maybe create an alternative implementations of the stored event repositories that have a schema that uses the version ID.

nice!


Do not throw error on failed fetchComponentDataAsync

I have found out that Este is throwing error on server side when any of fetchActions return error
My point is that application should know what to do with action which ends up with _ERROR action.
For example I am calling api for some data on client side, I will get error so I will display error message so client know something went wrong.
On server side I will get same error and instead of rendering normal page with error message I am showing Internal server error 500?
Please correct me If my thinking is wrong but from my perspective would be nice to just remove those lines: https://github.com/este/este/blob/master/src/server/frontend/render.js#L73-L76

It's intented. I added it because from my perpective middleware swallows promises. I suppose app should handle all unhandled rejections. Some rejections are context specific, like validation, and should be handled in place, eg. in action. Another rejections are app specific, like no connection or http error status etc., and these rejections should be handled globally, probably in app.react. Does it makes sense?

http://bluebirdjs.com/docs/api/error-management-configuration.html#global-rejection-events

Well, I do not handle global errors. In every catch I throw original error and dispatch it through the app. Then reducers can update their state to reflect failure (whether it's network error type or request specific - in second case only eg list reducer will update its error property so we display nice message to user). I only use global handler for some debugging, that's all.

@grabbou promise middleware works fine, it does what it intends to do.
If promise fails then it dispatch XXX_ERROR action which should process failed outcome.

Closing for inactivity. Feel free to reopen.


⚠ Bofrost.be has degraded performance

In e1c7d33, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2077 ms

Resolved: Bofrost.be performance has improved in ac91e38 after 6 minutes.


[workspace] publish=false is not respected

On latest master, a workspace release publishes members, even though publish = false is set.

That's not good.  I don't have a minute right now to look into this but I'll try to get to this today.

So it does not actually get published, but the version bumping commits happens and the git tagging, which is quite confusing

Oh, publish = false only impacts the ability to publish to crates.io, it does not impact whether something is released or not (ie whether any of the other steps run).
So you are wanting to permanently exclude a workspace member from being released?  A configuration version of --exclude?  I'd be curious to know what the use case is for not releasing one of the workspace members.

Yeah. The use case is that it is a benchmarking tool, which only gets run on CI, where the whole source code is present, and is tailored to the other crates in the workspace.

Makes sense.  I assume cargo release's process isn't harmful, it just creates unnecessary noise.
What more do you need than if, in $CRATE/release.toml, you have
disable-push = true
disable-publish = true
disable-tag = true
no-dev-version = true

That still leaves the version bump.  Is that good enough?  This seems like a less-often use case that if the existing flags work then it probably doesn't need to be made easier with a single flag.

that should be enough yes 👍

For all the config fields, see https://github.com/sunng87/cargo-release/blob/master/docs/reference.md#config-fields

Thanks a bunch for all the help! I finally managed to release my crates :tada:


sentence permutation in mBART pretraining

❓ Questions and Help
According to the paper, it only does sentence permutation and span masking (ignoring the other noises that BART is pretrained with). I found something about BART's pretraining, but nothing for mBART. In the code, there is a  token in between different sentences. My immediate question is: is this also the case in mBART's pretraining, so that I could slightly modify the code in the link for my use case? Do I have to do it manually (adding the pad token in between them in the raw text)?
It is very weird how there's nothing about mBART's pretraining out there, one would think for an important paper they'd care more about the reproducibility. I know there are open issues about mBART pretraining, but I thought this is a bit more specific. Any help would be appreacited!

Hey @BramVanroy , I think you were also looking for some script for mBART pretraining. Did you have any luck finding anything?


set_paper_trail_whodunnit runs before current_user is set

I'm using devise-token_authenticatable to authenticate users. I have a before_action in the ApplicationController that runs sign_in. This authenticates our user, setting the current_user variable in the controller. paper_trail's set_paper_trail_whodunnit method seems to be run before this before_action gets run, causing the whodunnit column to be blank in our versions table. What are my options to work around this issue?
Edit
I worked around this issue by adding the following lines after my before_action:
before_action :set_paper_trail_enabled_for_controller
before_action :set_paper_trail_whodunnit, :set_paper_trail_controller_info

Now I just wonder if this is something I can configure such that my authentication will be called before these methods by default.

There is a PR open for trying to address this very issue: #556.  This has been a longstanding concern, so if you want to help contribute / review that PR that would be beneficial to all.

Ah, thanks for the heads up. I'm not a paper_trail expert, but the changes in the pr look like they'll get the job done.

Fixed in master via https://github.com/airblade/paper_trail/pull/556, scheduled for release 5.0.


upgrade TypeScript compiler to 4.1 and enable --noPropertyAccessFromIndexSignature

cf. https://devblogs.microsoft.com/typescript/announcing-typescript-4-2/#no-property-access-index-signature

Codecov Report

Merging #162 (12d9738) into main (1892264) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #162   +/-   ##
=======================================
  Coverage   98.10%   98.10%
=======================================
  Files          15       15
  Lines         952      952
  Branches      206      206
=======================================
  Hits          934      934
  Misses         18       18

Impacted Files
Coverage Δ

src/utils/utf8.ts
95.14% <100.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 1892264...a370ca7. Read the comment docs.


Release gate doesn't support TaskCompleteEvent for "Invoke REST API" task

Environment
VSTS:
https://msasg.visualstudio.com/Bing_and_IPG/Official Account Team/_releaseProgress?releaseId=72307&_a=release-pipeline-progress
Issue Description
I created a pre-deployment release gate, with one task "Invoke REST API", and set the success method to "Callback". Then my service receive a call with projectID, jobID, taskID, auth, etc.
When my service done it's work and trying to update the status using the following code:
taskClient.RaisePlanEventAsync(projectid, hubName, planid, new TaskCompletedEvent(jobid, taskid, TaskResult.Canceled)).SyncResult();

BTW: set taskid = jobid, or set jobid = lastHttpTaskTimeId wouldn't work
it has an exception saying "'The orchestration session 0040fec8fc7d45a98b9f45242d5bdeda_f09026d860b74579ae21f0891d4f16f9_36642e1dbdbd4ffeaa3388277731454d not found for hub Gates."
I used the same code to update an agentless phase sucessfullly, looks like their are some differences between agentless phase and release gate, even with the same kind of task.

The async mode does not work with gates. Can you please share more details about your gate?

Thanks @bansalaseem for confirm, so maybe we should restrict the options of complete criteria for a REST API task result.
Our gate is just simple running some heavy performance test after we deploy our code to INT env, by calling an API to our own testing service, when the testing service is done, report the result back to gate. Then gate passed, then deploy to PROD.

I recieve this error after using this several months already in production.. Has something changed to VSTS? My release pipeline is broken now...
taskClient.RaisePlanEventAsync(command.ProjectId, hubName, command.PlanId, new TaskCompletedEvent(command.JobId, taskInstanceId, TaskResult.Succeeded)).SyncResult();

@brechtvan What error are you observing?

Hi,
@bansalaseem

I have the above deployment process. I deploy to deployment slot, start an Azure function that executes tests against the deployment slot and reports back to VSTS. If all good swap the slot to production. Then execute the same tests on the production slot. This has worked for quite some time, but on 2018-07-05 this stopped working. Without any changes on my side. The error I recieve is the following:
Exception while executing function: TestLiveEnvironment The orchestration session f08f2868a06b418e83d1ac3d65759bd2_f2677e0ee2344bf29cc3077d0c7e58ea_f2677e0ee2344bf29cc3077d0c7e58ea not found for hub Release.
Failing code: taskClient.RaisePlanEventAsync(command.ProjectId, hubName, command.PlanId, new TaskCompletedEvent(command.JobId, taskInstanceId, TaskResult.Succeeded)).SyncResult();

@boydc2014 Please try change jobId = taskId and taskId = Guid.Empty, for Gates only.

@boydc2014 would you check @sureshtadisetty suggestion?

Resolving this issue because of no response.

Hi @sureshtadisetty I do not think this is working. Just got this error when trying to setup a gate
https://orgName.vsrm.visualstudio.com/0743fde1-7465-47b2-8226-0c3b84142d6e/_apis/distributedtask/hubs/gates/plans/44eea82e-db9c-44b1-a46b-3bd1820b9296/events?api-version=2.0-preview.1
{"name":"TaskCompleted","result":"succeeded","jobId":"7031c3e2-1099-4464-982a-5e6c5ca776d2","taskId":"1f9ce5cc-fab2-4a62-a756-f3d36b11bb6c"}
The error
{"$id":"1","innerException":null,"message":"The orchestration session 44eea82edb9c44b1a46b3bd1820b9296_7031c3e210994464982a5e6c5ca776d2_1f9ce5ccfab24a62a756f3d36b11bb6c not found for hub Gates.","typeName":"Microsoft.VisualStudio.Services.Orchestration.Server.OrchestrationSessionNotFoundException, Microsoft.VisualStudio.Services.Orchestration.Server, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a","typeKey":"OrchestrationSessionNotFoundException","errorCode":0,"eventId":3000}


Ally Turret carries hostile ECM, enemy vehicle carries friendly ECM

Reported in #ticket-1732

Harkonnen notes:
there is bunch of NREs at LowVisibility.Patch.CombatHUDTargetingComputer_RefreshActorInfo.Postfix
maybe related to the issue
low_visibility (2).log


Feature Request: Support mocking an API that makes a HTTP request after some delay

I'm opening this issue as a feature request because it'd be really useful, would appreciate feedback on whether this could be an appropriate extension.
I'd like to use mmock to mock an API where the contract is:

Respond with HTTP 202 Accepted
At some point later, make an API request to a given URL

The specific use case here is around APIs orchestrated by AWS step functions. Without giving too much specific detail, part of the request to my API includes a 'token', and my API eventually calls some URL with its response and that token.
In order to integration test the entire step function, it'd be ideal to mock that API using mmock, so that when the step function calls it, it will after a short time receive a mocked response with the token it passed in.
The flow I'm proposing is something like:
Request (includes token=XYZ header) -> mmock
mmock -> Mocked 202 response
(some short delay)
Mocked response (includes token=XYZ) -> some URL

As a speculative design proposal, I'd like to be able to define a request like:
---
request:
  method: POST
  path: "/hello"
response:
  statusCode: 202
  headers:
    Content-Type:
    - application/json
  body: '{}'
callback:
  url: http://callbackApi:3000
  delay: 500 // (milliseconds)
  headers:
    Content-Type:
    - application/json
  body: '{"token": "{{request.header.token}}", "success": true, "response": "{{fake.Digits}}"}'

When mmock receives a POST to /hello, it'd respond with the 202, and then after 500ms make an API request to http://callbackApi:3000 with the headers + body I specified (which importantly can include request variables).
Do you think this would potentially be an appropriate use case to extend mmock to support?

I like the idea, let me think how to implement it.
Feel free to create a PR if you have something in mind.


git checkout -- <file_name> is incorrect

Currently:
Undo local changes with the last content in head
git checkout -- <file_name>
Should be:
Undo local changes with the content in index(staging)
git checkout -- <file_name>
Reference: https://git-scm.com/docs/git-checkout
Examples: git checkout hello.c
restore hello.c from the index

is this issue is open ..I want to contribute on this

no clue
Regards,
Ed

From: akanksharai001 @.>
Sent: Wednesday, June 30, 2021 2:16 AM
To: git-tips/tips @.>
Cc: Edward Croft @.>; Author @.>
Subject: Re: [git-tips/tips] git checkout -- <file_name> is incorrect (#177)
is this issue is open ..I want to contribute on this
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/git-tips/tips/issues/177#issuecomment-871126847, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACEBERBDMRZVLADO3NBQECTTVKZDPANCNFSM4IJ3XDJA.
[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon    Virus-free. www.avast.comhttps://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link

Added a PR for this
https://github.com/git-tips/tips/pull/215
@ediso74 kindly validate


fix: e2ee and upgrade webrtc

https://github.com/livekit/client-sdk-rust/releases/tag/webrtc-6af5bfd

waiting for a fix for RATCHET_WINDOW_SIZE >0 blocking the thread cc @cloudwebrtc


add parsing hook (close #2)

Pull Request Test Coverage Report for Build 373727062

0 of 0   changed or added relevant lines in 0 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.2%) to 96.4%

Files with Coverage Reduction
New Missed Lines
%

src/GeminiLab.Core2.CommandLineParser/CommandLineParser.cs
3
95.97%

Totals

Change from base Build 372346604:
0.2%

Covered Lines:
348

Relevant Lines:
360

💛  - Coveralls


Not supported 10.0.17763.4644 Help

termsrv.zip

Duplicate of https://github.com/stascorp/rdpwrap/issues/2274


ENH: update package version

Hi! This is the friendly automated conda-forge-webservice.
I've started a version update as instructed in #17.
I'm currently searching for new versions and will update this PR shortly if I find one! Thank you for waiting!
Fixes #17

Superceded by #19.


PWS handling URL

I am setting up a beacon with the URL - http://m.grandcentralmotors.mercedes-benz.co.za.
The URL when typed directly goes to the mobile site, however when putting this URL in the beacon it is returning the desktop site via the PWS.
I don't know what is happening here, could someone please provide some insight and a possible resolution?

Chrome only supports https URLs with a valid certificate.  Today the standalone Physical Web app will work, but we may be adjusting that soon.
Unfortunately, it looks like your https endpoint does not have a valid certificate, so even after I switch to https it doesn't work.  I suggest you contact your webmaster and look into the situation.

Hi @mmocny
Was wondering if you could help me. I can't get Physical Web Services  to recognise URLS from shorteners like bit.ly or goo.gl on Android. Diagnostics say unresolved but it works on ios. Our URLs are too long so wecneed to go via a shortener.
Cheers

And you are sure that the endpoint URL is an https URL?

It goes Goo.gl then to our platform as an http then to an https endpoint.
Ie it goes through our redirector platform. Works on PWS IOS but not
android.
On 14 Apr 2016 9:26 am, "Conley Owens"<EMAIL_ADDRESS>wrote:

And you are sure that the endpoint URL is an https URL?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/google/physical-web/issues/623#issuecomment-209688238


how to show  js log

hi, how can we show the js log  to the command windows via console.log('hello world');

I have try the ClearScriptConsole project and it is the result

Hi @heartacker,
The console object is part of the large Web API that's provided by browsers. As you can see here, it isn't part of the standard JavaScript library.
Surprisingly, as you've discovered, V8 does provide a console object – and this is the first V8 extension to the JavaScript standard that we've encountered – but it doesn't work as you'd expect.
You can use the standard .NET Console class to implement console. Here's a simple example:
engine.AddHostType(typeof(Console));
engine.Execute(@"
    console = {
        log: value => Console.WriteLine(value),
        warn: value => Console.WriteLine('WARNING: {0}', value),
        error: value => Console.WriteLine('ERROR: {0}', value)
    };
");

Good luck!

Feel free to reopen this issue if you have additional questions on this topic. Thanks!


Space/swap issues?

I've just started monitoring my pi in Zabbix and was wondering if these indicate problems with my installation that should be addressed:
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/mmcblk0p3  59229116 56190760         0 100% /backingfiles
              total        used        free      shared  buff/cache   available
Mem:         443844       27776      236024        6228      180044      360544
Swap:             0           0           0

By default teslausb will use all available space in the backingfiles partition for recordings and music, so it's expected to be full (there will be one or two large files in there, cam_disk.bin and optionally music_disk.bin that together take up all available space).
If you want to keep some space available, you can use my branch (therealmarcone/main-dev) and specify the exact size you want for camera and recordings, leaving unused space if desired.
I don't think swap is enabled by default (and I'm not sure you'd want to swap to an sd card), so that seems OK too.


Use ActiveStorage’s DirectUpload API directly

DirectUpload has been declared public API, so let’s use it directly. There’s much less complexity compared to making a virtual form and relying on Rails UJS. This also has the benefit of letting us be more flexible with the types we accept: now we can accept File[] in addition to FileList.
Closes #5

Thank you, Cameron!  When's the release coming up?


Improve ResourceController

make deleteResource a default method
update the doc to reflect the actual code

Can you please use the conventional commit format for the commit message? Thanks in advance!


Pixel notes don't work in 1.1.3

Describe your bug here.
Songs: example: prey from sonic.exe, week 6, or any other mods, pixel notes don't loads and it crash or simply notes are buged
Crash Log or logcat logs (if existing)
No response
Are you modding a build from source or with Lua?
I am not modding
Have you open preload state?
No
What is your build target?
Android
Did you edit anything in this build? If so, mention or summarize your changes.
Nope

Since 1.1.2 pixel notes do not work

Look, let me send you a screenshot

Well, here is a video
https://github.com/beihu235/FNF-NovaFlare-Engine/assets/109389983/e13a188e-d98b-45f6-a502-c7f6c3a51973

Can you show me where the image are so I can fix them

This?

try this version if work well close this issue
https://github.com/beihu235/FNF-NovaFlare-Engine/actions/runs/9147106875

Thanks, let me test it

The Bug remains, when I press a note it crashes

try again
https://github.com/beihu235/FNF-NovaFlare-Engine/actions/runs/9148785607

Now it works perfectly!, the only issue but It's not serious It's pixel notes in week 6 when a note make a hit, anyway, thanks you so much

In fact, I don't understand why pixel cut head problems, but just restart can solve this problem

Restart don't solve week 6 pixel notes :[ but hey now it works and don't crash i'm other songs with pixel playstate


Update syn and dev dependencies

Update syn and a few dev dependencies. clap and image require newer Rust versions than 1.60 so they will have to wait for a later time.

bors r+


CVE-2023-0464 fix exponential growth of policy tree for master

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

Approved in security repo, merged.

thank you for fast fixing, any plans for a quick release? thanks

thank you for fast fixing, any plans for a quick release? thanks

No, Low CVEs do not trigger a release.


tabNavigator doesn't show listView or flatList in ios

@cielu hey! I had the same issue. Check out this comment.

@kanzitelli Thanks , I solve the problem


nnx.vmap use the same random key rngs inside nnx.Module across vectorization.

Hi,
If I run something like:
def inference_fn(model, x):
	y = model(input)
	return y

ys = nnx.vmap(inference_fn, in_axes=(None, 0))(model, xs)

the random key that is used across the vectorization is unique. It means that stochastic functions will have the same behavior across the batch.

Is this the intended behavior for nnx.vmap when dealing with stochastic models?
If yes, is there a recommended way to ensure independent random keys are used for each batch element when using nnx.vmap?

Thanks!

Hey, in NNX model random state is just a regular type of state, Rngs internally holds RngKey and RngCount which are subtypes of RngState(Variable).  After flax>=0.9.0 NNX doesn't treat random state in a special way (see (JAX-style NNX Transforms)[https://github.com/google/flax/issues/4107]), implement rng state handling you can either split the rng keys passed to Rngs or use the new nnx.split_rngs API (easier):
state_axes = nnx.StateAxes({RngState: 0, ...: None}) # vectorize RngState, broadcast the rest

@nnx.split_rngs(splits=<num_splits>)
@nnx.vmap(in_axes=(state_axes, 0))
def inference_fn(model, x):
	y = model(input)
	return y

split_rngs will temporarily lift/split the RngState and lower it afterwards. Note that instead of using None to broadcast the model state, you have to use StateAxes to specify that you want to vectorize the RngState on axis 0 and broadcast  all other state.

On that note, is it possible to allow splitting for some rngs and prevent it for others? For instance, the following snippet contains two examples. In one, I split all rngs of the group for the vectorized version; in the other example, I only split one rng and want the other rng to be broadcast. However, only the first example seems to work.
from flax import nnx; import jax.random as jr
rngs = nnx.Rngs(a=0, b=1)

# define a function that uses both rngs
def f(rngs):
  rng_a, rng_b = rngs.a(), rngs.b()
  return jr.normal(rng_a), jr.normal(rng_b)

# example 1: evaluate `f` multiple times
with nnx.split_rngs(rngs, splits=3):
  state_axes = nnx.StateAxes({
    (nnx.RngState, "a"): 0, (nnx.RngState, "b"): 0
  })
  out = nnx.vmap(f, in_axes=(state_axes,))(rngs)

# out:
# (Array([ 1.1072572 , -1.0923512 ,  0.08159245], dtype=float32),
#  Array([-0.40851325,  0.01932763,  0.63024133], dtype=float32))

# example 2: split "a" but not "b", this horribly fails
with nnx.split_rngs(rngs, splits=3, only="a"):
  state_axes = nnx.StateAxes({
    (nnx.RngState, "a"): 0, (nnx.RngState, "b"): None
  })
  out = nnx.vmap(f, in_axes=(state_axes,))(rngs)

# error message:
# ValueError: vmap was requested to map its argument along axis 0, which implies that its rank should be at least 1, but is only 0 (its shape is ())

Is this behavior intended and I am missing something? In my opinion, it should be possible to only split one rng and leave the other rng as-is. The following JAX code shows my intended behavior.
import jax, jax.random as jr
rng_a, rng_b = jr.key(0), jr.key(1)
f = lambda rng_a, rng_b: (jr.normal(rng_a), jr.normal(rng_b))
out = jax.vmap(f, in_axes=(0, None))(jr.split(rng_a, 3), rng_b)

# out:
# (Array([1.1188384, 0.5781488, 0.8535516], dtype=float32),
#  Array([-1.1842843, -1.1842843, -1.1842843], dtype=float32))

Note that the second array always contains the same value since the same rng has been used for all of them.
flax==0.10.0
jax==0.4.34
jaxlib==0.4.34


NH-81286 Remove TypeLayer and SampleSourceLayer

Removes TypeLayer and SampleSourceLayer because APM Go does not support layer-based setting.
Keeping SampleSourceFile because used by mergeLocalSetting.

Ok cool thanks! I've changed base branch, @cheempz may I please have a fresh review?
@swi-jared is it ok if I merge main into lambda after this?


Add support-rulesengine to snap

Re-opening of #710
Fixes #552

This branch currently suffers from #715
We need to install the application.properties file into $SNAP_DATA/config/config-seed/res/properties/edgex-support-rulesengine rather than $SNAP_DATA/config/config-seed/res/properties/support-rulesengine (note the edgex- prefix) because otherwise support-rulesengine fails to read it's configuration from consul properly. This is likely a bug with support-rulesengine and I can file one there if requested.
The application.properties file has to be processed using sed to use the runtime value of $SNAP_DATA, etc.
Renaming the support-notifications log to be support-notifications.log rather than edgex-support-notifications.log which is inconsistent with the other services
Also inserting $SNAP_COMMON verbatim in the support-notifications configuration.toml when building edgex-go so that this value gets replaced during the install hook properly.

Closing until tests are setup for Delhi...


How to use test-server 0.3.0 with lfs 1.0.2 ?

I am trying to use lfs-test-server 0.3 with lfs 1.0.2.
My repository is hosted on a locally installed Gerrit server listening at http://localhost:8084, my lfs-test-server listens on http://localhost:9999/.
I cloned the repository and ran
$ git lfs init
$ git track "*.bin"
here my .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = http://localhost:8084/lfs
fetch = +refs/heads/:refs/remotes/origin/
[branch "master"]
remote = origin
merge = refs/heads/master
rebase = true
[lfs "http://localhost:9999/"]
[lfs]
batch = false
after adding and committing a file "1.bin" when trying to push this to Gerrit / local lfs-test-server I hit the following error:
$ git push origin HEAD:refs/heads/master
(0 of 1 files) 0 B / 6 B
Repository or object not found: http://localhost:8084/lfs.git/info/lfs/objects
Check that it exists and that you have proper access to it
error: failed to push some refs to 'http://localhost:8084/lfs'
what's wrong here ?

I found I missed to define a user in the lfs-test-server, after creating a user everything works fine :-)


Planning session to add additional functionality to AFJ

We want to add some additional functionality to AFJ so that it supports v2 credentials. We'll do this with Timo and Ontario as they both have interested in this also. Initial work will be planning to see who will be doing what.

Scheduled meeting with Timo and Tim to see what's what.


union query support implementation 1

This pull introduces/changes:

adds specs which for union query implementation
add support for doing union in subquery

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.44 :tada:

Comparison is base (6b8ef21) 93.46% compared to head (2ecb5e0) 93.90%.

:exclamation: Current head 2ecb5e0 differs from pull request most recent head 1636f11. Consider uploading reports for the commit 1636f11 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1692      +/-   ##
==========================================
+ Coverage   93.46%   93.90%   +0.44%
==========================================
  Files         128      128
  Lines        5830     5681     -149
==========================================
- Hits         5449     5335     -114
+ Misses        381      346      -35

Impacted Files
Coverage Δ

lib/active_graph/core/query.rb
98.93% <100.00%> (-0.04%)
:arrow_down:

lib/active_graph/core/query_clauses.rb
96.00% <100.00%> (+0.12%)
:arrow_up:

lib/active_graph/node/query/query_proxy.rb
96.29% <100.00%> (+1.17%)
:arrow_up:

lib/active_graph/node/query/query_proxy_link.rb
100.00% <100.00%> (+1.28%)
:arrow_up:

... and 47 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[C++][Python] Support start == stop in list_slice kernel

[GitHub PR 14395 | https://github.com/apache/arrow/pull/14395] adds the list_slice kernel, but does not implement the case where stop == stop, which should return empty lists.
Reporter: Miles Granger / @milesgranger
Assignee: Miles Granger / @milesgranger
Related issues:

[C++] Add kernel for slicing list values (relates to)

PRs and other links:

GitHub Pull Request #14836

Note: This issue was originally created as ARROW-18281. Please see the migration documentation for further details.

take


[Critical Bug]: Waiting for MicroOS to become available...

Was -o IdentitiesOnly yes instead of -o IdentitiesOnly=yes.
This resulted in the error message
command-line line 0: no argument after keyword "identitiesonly"

when used with OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022
I was debugging an issue with cluster creation and manually ran the SSH command that gets used to wait for MicroOS ("Waiting for MicroOS to become available...") when I noticed the error message. I'm not sure if this broke anything because I had also forgotten to load the SSH key in to the agent.

I'm testing this now, THANK YOU!

LGTM.

I'm still experiencing "Waiting for MicroOS to become available..."
@mysticaltech

Using manual commant works without issues and I can ssh into the node, idk why the script hangs and can't ssh into the node

Oh my god... I was running inside a container which doesn't have openssh installed... now it's working.


Remove unused fields in method store structure.

The random bit caching was a residue of earlier code and isn't used any more.

Merged, thanks.


Suggest： block detail add copy function

Suggest： block detail add copy function

I think this function is not necessary, you can just select the detail text and ctrl+c, thank you for your advice.


[Slider] TickMark and Thumb are not correctly aligned if the trackHeight is increased

Steps to Reproduce

I have created a dartpad to reproduce this issue, but it can also be reproduced on iOS and Android.
https://dartpad.dev/?id=b91a1c5345cd41b16156ebdae036618e
Expected results:
The thumb and the tick marks are perfectly aligned, like it is if the trackHeight is not changed.
Actual results:

Code sample

class CustomSlider extends StatefulWidget {
  const CustomSlider({Key? key}) : super(key: key);

  @override
  State<CustomSlider> createState() => _CustomSliderState();
}

class _CustomSliderState extends State<CustomSlider> {
  double _value = .5;

  @override
  Widget build(BuildContext context) => SliderTheme(
        data: const SliderThemeData(
          trackHeight: 40,
        ),
        child: Slider(
          value: _value,
          onChanged: (value) => setState(() {
            _value = value;
          }),
          min: 0,
          max: 10,
          divisions: 10,
        ),
      );
}

Logs

duplicate of https://github.com/flutter/flutter/issues/62567


Add the capability to execute a custom script before page initialization scripts

Are you requesting a feature or reporting a bug?
feature suggestion
What is the current behavior?
TestCafe executes a ClientFunction when the page is fully loaded.
What is the expected behavior?
Add ability to execute any client script in the browser before other page scripts.
Here are some use cases:
Catch JS errors and console output
Executing code in the browser before the page code evaluates
Proposed API:
import fs from 'fs';

const initializationScript = fs.readFileSync('./script.js').toString()

fixture `My fixture`
    .addScriptToEachPage(initializationScript);

test
    .addScriptToEachPage(initializationScript);

Feel free to vote for the feature if you consider it useful and please let us know about your use case for it.

This feature is useful e.g. if you want to override console.log to spy on console output in your tests.

Yes. This feature is good

@AlexanderMoskovkin
I think that ClientFunction support will be useful for this feature:
test.addScriptToEachPage(ClientFunction(...));

I would suggest to extend the proposal with several points made in #2234:

Multiple asset types (scripts, styles, fonts), useful for UI/visual regression testing or any cases that would require to apply test-related changes to application code otherwise

Multiple asset insertion positions (start and end of head and body), with end of document body as default value

'Here and now' asset insertion position for fixture/test assets, a shortcut for t.eval () => { document.createElement... }, also accepts a ClientFunction

Local assets that are resolved from NPM module name or relative path, a shortcut for fs.readFileSync('require.resolve('module'), 'utf8') (currently included as is, no bundling or transpilation)

Remote CDN assets identified by URL

Fixture assets

Test assets

Global assets for entire test run (similar to Karma files) as runner and CLI options

Currently the framework has undocumented embeddingOptions runner method, it makes an asset  *script or style( served by TestCafe server, is available only on runner init but not in CLI. Another part of the process is internal testRun.injectable property that allows to push served script/style to <head>, it seems to be reachable in specs as t.testRun.injectable but is unavailable on runner init.

This would also be helpful if certain local storage keys need to be set before the page loads.

Note: we already have build-in support for accessing console messages

any update for this enhancement?

Hi @juliusgonawan
Would you please describe a real life case for which you need this functionality?

@miherlosev
A real world escenario i've found is avoiding a service worker registration. If a service worker is registered without using https, chrome logs a console error which forces you to run testcafe with the -e flag. I'd like to run testcafe without ignoring Js Error messages.
Service worker are usually registered with an inline script:
<script>
if ('serviceWorker' in navigator) {
  navigator.serviceWorker.register('/service-worker.js');
}
</script>

So if i try to mock navigator.serviceWorker in the test, it will be mocked after the script has run.

@miherlosev
A real world scenario is mine. I want to use PollyJS to record/mock some xhr or fetch requests. But to do so, I have to inject it into the page early. I tried it with ClientFunction, but it injects too late, so it missed some requests. An option to inject code as early as possible would be fine.

@NickCis, @bitjoo - thank you for providing additional details. You can solve these issues by using RequestMock to handle specific page requests. Take a look at the following topics in the documentation:

Mocking HTTP responses
Attaching hooks to tests and fixtures

For example, you can mock a service worker script for browsers that don't support this feature using the following code:
import { ClientFunction, RequestMock } from 'testcafe';

const supportsServiceWorkers = ClientFunction(() => 'serviceWorker' in navigator);

fixture `ServiceWorker`
    .page('http://my-site.com')
    .beforeEach(async t => {
         const canUseServiceWorkers = await supportsServiceWorkers();

         if (canUseServiceWorkers)
             return;

         await t.addRequestMocks(
             RequestMock()
                 .onRequest('http://my-site.com/service-worker.js')
                 .respond('');
         );
     });

I think this issue fits in my case as well, as I would like to use axe-core within my tests - and as this requires the library to be run within browser client, i think it fits. I can see that it's now in the roadmap which is great, but perhaps there could be some neat workaround to achieve it? I wouldn't like to hack in a way that I'll store the dist of the axe-core somewhere, then load it in the runtime, hope it loads and then run a test 🤔

@Worie, I guess you can use axe-core with TestCafe without the suggested feature. Please check a demo project made by @helen-dikareva, which integrates axe with TestCafe: https://github.com/helen-dikareva/axe-testcafe

I would also love to have this ability, especially to be able to use normal npm modules that use module.exports' or export` to expose functions etc.

Also should be possible to specify initialization script on the test run level (see https://github.com/DevExpress/testcafe/issues/3857).
const runner = testcafe.createRunner();
        return runner
            .src(['tests/fixture1.js', 'tests/func/fixture3.js'])
            .browsers(['chrome', 'safari'])
            .addScriptToEachPage(initializationScript)
            .run();

Don't you think we should be able to do this without having to create a custom runner script?

Could you please describe your test case in greater detail? We need this information to design our API as much flexible as possible.

@helen-dikareva if you look at @miherlosev's example above, the other options (src, browser, etc) are all options you can set in the testcafe config file.  What I'm saying, is that we should also be able to specify the addScriptToEachPage in the config as well, so we can continue using the config file (which is lovely).
-Ben

@benmonro
Thank you for the description. If we decide to implement @miherlosev's suggestion we will consider your suggestion as well.

@AlexKamaev would you guys accept a PR if I implement it?

@benmonro, you are welcome to submit your PR. We will be happy to review it.

hey all, started this PR w/ the changes: https://github.com/DevExpress/testcafe/pull/3880
a bit unclear about where the tests for this should go, but hopefully the PR makes sense.

@benmonro
We are discussing the API with the team. We'll prepare our full vision of the issue within a few days.
In addition, I want to mention that we'd like to support this feature not only for a configuration file, but for runner (as @miherlosev suggested in the https://github.com/DevExpress/testcafe/issues/1739#issuecomment-498249475),  and fixture/test (as @AlexanderMoskovkin  suggested in https://github.com/DevExpress/testcafe/issues/1739#issue-253686497)

After discussing with team we introduce the following API principles for adding a custom script to the tested page:

should be possible to add a custom script on several framework levels: Test API, Command line, Configuration and Runner
should be possible to specify one, list or array of the added custom scripts
should be possible to add a custom script to all or separate pages

Examples:
Test API
fixture `My fixture`.clientScripts(['assets/jquery.js', mockDate]);
test.clientScripts(mockGetLocation);
test.clientScripts({page: 'https://example.com/login', content: './assets/mock-date.js'})

Command line
testcafe chrome /tests --client-scripts=asserts/jquery.js,mockDate.js

Configuration
{
    "clientScripts": ['wait-for-react-helper.js']
}

Runner
const runner = testcafe.createRunner();
        return runner
            .src(['tests/fixture1.js', 'tests/func/fixture3.js'])
            .browsers(['chrome', 'safari'])
            .clientScripts(['/assets/jquery.js'])
            .run();

Would you also please consider a separate configuration for "beforeEach" that doesn't need to be set in each fixture?  I had originally requested that and that issue was closed in favor of this one.  Jest and mocha and other test runners have this feature as well for things like testing library add ons (like testcafe-testing-library) and it adds a nice way to centrally configure those things

Would you also please consider a separate configuration for "beforeEach" that doesn't need to be set in each fixture?

If you want to add a custom script for each fixture, use the clientScripts method/property at the Configuration, Command line and Runner levels.
For example, the following code will add /assets/jquery.js content to the tested page in each fixture.
const runner = testcafe.createRunner();
        return runner
            .src(['tests/fixture1.js', 'tests/func/fixture3.js'])
            .browsers(['chrome', 'safari'])
            .clientScripts(['/assets/jquery.js'])
            .run();

Yes but what if it's not a client script?  Ie something I just want to set
up in the test side
On Thu, Jun 13, 2019 at 5:30 AM Mikhail Losev<EMAIL_ADDRESS>wrote:

Would you also please consider a separate configuration for "beforeEach"
that doesn't need to be set in each fixture?
If you want to add a custom script for each fixture, use the clientScripts
method/property at the Configuration, Command line and Runner levels.
For example, the following code will add /assets/jquery.js content to the
tested page in each fixture.
const runner = testcafe.createRunner();
return runner
.src(['tests/fixture1.js', 'tests/func/fixture3.js'])
.browsers(['chrome', 'safari'])
.clientScripts(['/assets/jquery.js'])
.run();
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DevExpress/testcafe/issues/1739?email_source=notifications&email_token=AADBPBAQ757VIVZ7IWO7B6DP2I4WDA5CNFSM4DYYFYX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXTQ66Q#issuecomment-501682042,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADBPBF5O7F6FA3TWAE6QFDP2I4WDANCNFSM4DYYFYXQ
.

--
Ben Monro
Software Developer

@benmonro
In this issue, we are discussing the capability to execute a custom script on the client side before page initialization scripts.
If you want to set up something on the server side, use the fixture.before hook.
If you have other questions that are not connected with the issue's subject, please create a separate thread regarding them. It will allow us to work on the problems more efficient.

@miherlosev yes I did that but you closed that issue in favor of this one.  https://github.com/DevExpress/testcafe/issues/3857
fixture.before would still require a modification in each test figure file.  I would like a way to globally set fixture.before I'm the way they jest or mocha let you set that as well.

@benmonro
We already have a suggestion to implement similar functionality. Please refer to it https://github.com/DevExpress/testcafe/issues/745.
You are also welcome to share your thoughts there. I'd like to note that we do not know when we will be able to start working on that feature.
As for this ticket, let's continue discussing only the custom client script feature here.


EMFILE: too many open files, open

How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
v20.8.0
Amplify CLI Version
12.8.2
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
When I run amplify push I am getting error
🛑 EMFILE: too many open files, open '/Users/XXXXX/Technology_Works/XXXXXX/amplify/backend/api/allstarbackend/build/states/initial-stack/resolvers/Subscription.onUpdateUser.auth.1.req.vtl'
Expected behavior
pushing the app
Reproduction steps
amplify push
Project Identifier
bcba48597721297b52afcb62d9794b69
Log output

# Put your logs below this line

Additional information
No response
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Hey @fistofzen, thank you for reaching out. The issue appears to similar to https://github.com/aws-amplify/amplify-category-api/issues/1854, when building resolvers on a large schema.
Transferring the issue to API repository for further assistance.


unable to remove style

richTextEditor.setBold() once it's set i would like to remove it with richTextEditor.setBold(false) or something which only removes bold instead of removeFormat() which clears all style

Just call .setBold() again. it will reset to normal.

Just call .setBold() again. it will reset to normal.

it didn't work

Just call .setBold() again. it will reset to normal.

And what if I want to disable sub/superscript? when I call the method twice, it applies twice. For example, if I call the method to apply subscript, it applies n number of the method call.


Add triggeredBy message to build request

@bparees This adds a message reading: Triggered by Jenkins job at https://jenkins.wherever.com/job/myproject-sample-pipeline/ so at least it's linked properly. Sound OK?
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1400002

works for me, thanks @jimmidyson


Update mutator.cpp

Don't check the variable res twice.
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Thank you!
BTW, it should not make any difference, because compiler is smart enough to figure out that res variable is not modified in first branch (because res and pos have different types and C++ has "strict aliasing" rule, that is turned on in our build (we use -O3 option)) and consequently, first and second branches cannot be true simultaneously.
PS. If you are interested in data obfuscation, I've developed much more powerful data obfuscator. You can compile ClickHouse and run it with clickhouse obfuscator --help.

@alexey-milovidov, Yes, maybe the compiler does it this way. I didn´t check it too :)


Hello supercrafter100

Hello bro, my name is Humberto and I wanted to see if I could create the Nequi Bancolombia payment method or something like that, it would be great, I hope your prompt response.

Or just like other web pages that put payments are cards, that option would also be super good :)

Stripe (a built-in gateway) already supports card payments?

I have no idea bro here in Colombia Stripe is not used sorry if maybe I don't make myself understand what happens is that he speaks Spanish and I'm using the translator


fix: updated the text as per the ux diagram

followed: https://marvelapp.com/prototype/2e221bb6/screen/85673714

/assign @SanjalKatiyar

/lgtm

/approve

/test mcg-ms-console-e2e-aws

/approve

@debjyoti-pandit add screenshots of all the pages which are updated...

updated the description after the latest push

looks good, just 2 things:

In create button, we don't use "new". So for example: it will be "Create data source" not "Create new data source", similarly at all places.
Use: https://github.com/red-hat-storage/odf-console/blob/3f183a12d878136f5f240e1c7879b73ec3cb44b0/packages/odf/components/odf-dashboard/status-card/status-card.tsx#L153 to pluralize strings. I can at places we are mentioning for example "1 OBCs" etc.

/test mcg-ms-console-e2e-aws

/test mcg-ms-console-e2e-aws

/approve
/lgtm


Remove uneeded wide rule for variables.

This is what i'm talking about in #17.
Please check it out.

@krvajal Any coments on this?

This is how it looks on master when you type something on a clean file:

This PR makes it come back to what it was some versions ago:

@pedro-ricardo can I close this one?


fix: license validation

Main changes

:bug: (bug solved)

To solve the problems related to #21 #20 I've added a new function checkIfLicenseAreCorrect, to check if the licenses inserted with --failOn flag are valid.
To check whether a license is a good one or not, I've created a list of correct licensesin ./utils, if the license insert by users is included in the list can pass, otherwise it will be tested with a regex, with insesitive case,  to check if a good license could be found.
Ex.
A user run npx @guidesmiths/license-checker --failOn  apache, apache is not a good license, so when getAllCorrectLicenses it's executed it will return apache,Apache-1.0,Apache-2.0 which are 2 correct licenses.
If user execute npx @guidesmiths/license-checker --failOn  Apache-1.0, Apache-1.0 is a good license, so the algorithm will return Apache-1.0
What happens if a good license is missing from the array?
checkIfLicenseAreCorrect  don't remove licenses added by users, it just adds those who are correct.
Context

#21  :ticket:
#20  :ticket:

@inigomarquinez  Is there a way to use RegExp yet?

@s1mrankaur you need to run npx @guidesmiths/license-checker --failOn LICENSE-TO-CHECK

@Girgetto Thanks for your prompt response. Any plans to make this an npm package?

But
npx @guidesmiths/license-checker --summary --failOn Apache-2.0
Found license defined by the --failOn flag: "Apache-2.0". Exiting.
so unless the license name is EXACT, it does not seem to be failing


xplr: 0.20.2 -> 0.21.1

https://github.com/sayanarijit/xplr/releases/tag/v0.21.1
Originally authored by @mimame (in #223450).

Disable one specific failing test
Move from pkgs/applications/misc/ to pkgs/applications/file-managers/
Add @mimame as maintainer.

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Didn't see that before. Updated anyway.
I think sorting should be automated.


Add thingsvision.version

I have used a few various versions of THINGSvision and had to update code a fair bit, from model_class days to Extractor and now with the get_extractor style of usage. I don't want to update all my previous code in case I want to run it again, so I want to add in a version check but I noticed nothing is set up to access version information the 'traditional' way, i.e.
>> thingsvision.__version__
AttributeError: module 'thingsvision' has no attribute '__version__'

Since there are a few different ways to go about implementing this, I wanted to raise an issue and see what could be defined as the way to implement this and then I don't mind submitting a PR to enact the change. Or if it was going to be updated in a future release, great, whatever. It'd just be useful to have access to version info in a Pythonic way.

@Alxmrphi could you take a stab at this and submit a PR?

Sure thing :)

@Alxmrphi Thanks!


Ambari Shell exit status.

Ambari shell is a great tool to automate the creation of clusters. However as far as automation is concerned there is an issue with knowing whether the cluster was provisioned successfully or not.
For instance if I execute the following sequence of shell commands:
java -jar /tmp/ambari-shell.jar --ambari.host=$HOSTNAME << EOF
blueprint add --file /tmp/blueprint.json
cluster build --blueprint my-blueprint
cluster assign --hostGroup host_group_1 --host $HOSTNAME
cluster create --exitOnFinish true
EOF

I have no idea if the cluster provisioned successfully unless I look at the output.
Is it possible to have ambari-shell return a status code of 0 only when the cluster create command completed successfully when the --exitOnFinish flag is supplied?

Any thoughts on this?

Yes, it's a valid scenario, we'll look into this.


Feature Request - generate static constants of property names

I work a lot with the IContent models, I would like to see something like this added to move the string constants out of my code and into something that can be generated.
For example, in the Image document type, the following is currently generated
	///<summary>
	/// Height
	///</summary>
	[ImplementPropertyType("umbracoHeight")]
	public string umbracoHeight
	{
		get { return this.GetPropertyValue<string>("umbracoHeight"); }
	}

I propose that this be added, and used inside the objects appropriately.
public const string umbracoHeight="umbracoheight";

Totally makes sense. Idea we have is to have more "meta" data about models such as these constants, a way to get all content types, their model types, their properties, aliases, etc. Won't do immediately but keeping the issue open - definitively on the radar.

Does this change only need to be in TextBuilder?  Seems pretty straightforward... perhaps I'll have a go at it and do a pull request.

Yes, the other "builders" were a nice idea, and eventually we'll allow ppl to write their own builders, but for the time being, there's only TextBuilder really. Quite happy if you want to have a go at it. We discussed it a while ago with few ppl and I have this notes file here that contains:
// modelsbuilder meta:

var modelTypes = Models.ContentTypes();
var contentType = Models.ContentType<Seo>();
  Models.ContentType(typeof(Seo));
  Models.For.Seo.ContentType;
var contentTypeAlias = Models.Alias<Seo>();
  Models.For.Seo.Alias;
var propertyTypes = Models.PropertyTypes<Seo>()
  Models.PropertyTypes(typeof(Seo));
var propertyType = Models.PropertyType<Seo>(x => x.Keywords);
  Models.For.Seo.For.Keywords.PropertyType;
var propertyAlias = Models.Alias<Seo>(x => x.Keywords);
  Models.For.Seo.For.Keywords.Alias;

var fields = "nodeName, " + Models.Alias<TypeMenu>(x => x.MenuTitle) + ", ...";

var propertyAlias = Models.Seo.Keywords.Alias; // conflict on Seo.
var propreryAlias = Models.Types.Seo.Properties.Keywords.Alias
Models.Alias(x => x.Seo.Alias)
Models.TypeAlias<Seo>()
Models.PropAlias<Seo>().
Models.T.Seo.P.Keywords.Alias

Models.For.Seo.For.Keywords.Alias

Just copy/pasted without re-reading, this is in no way "the right way to do it", but IIRC the idea was to have some sort of meta, static class that would provide all sorts of infos about models. Syntax was highly work-in-progress, we'd want it to be as friendly as possible, I guess.
Feel free to ping me if you want to discuss it further!

Are you thinking we should add a second nested static class that contains all of the metadata constants, etc, or add all of the metadata as constants inside the currently generated class?

Not 100% sure but I am afraid that adding more and more meta-data, models get bloated. So I'd really like considering moving all the meta-data stuff (including what's already generated in model classes) to some other static class eg the Models class above. Or, at least, yes, to a nested class.
The problem we have with adding stuff into models is collisions. If there's a nested class named Meta, then we cannot have a model property named Meta too. Reason why I'd love to move as much as we can outside of models.
Making sense?

Just discussed this with Stephan at UK Fest Hackathon. I added PR #122 almost a year ago to do just this. However, the above approach makes much more sense. Happy to chip in on the most appropriate way to move forward on this issue.

@zpqrtbnk any update on this feature request?
I like the idea of having the metadata structured so that it doesn't conflict with potential properties on the model classes.
I'd enjoy the opportunity to help implement this feature although it looks like @tompipe and @JohnBergman have already volunteered as well.
Either way, I think this would be a much-needed addition to the ModelsBuilder because I constantly have to add a Constants static class to store the Aliases of the properties of the document types I end up needing to create using IContent interfaces.  Having these generated and available would be a great step in the right direction.

Honest update: after a looong time of it being low priority, Umbraco v8 development is resuming and getting traction = basically using all my time at the moment and I cannot find enough time per day to work on this feature. That being said, it's part of some general improvements I want to see in MB.

Closing this issue, gathering the metadata discussion in #215