Cannot find module 'pg-native'

I wanted to attach a sentry on the nodejs server that use the Express. So i looked at the manual and followed. but the following error occurred. What's the problem? I'm using the Express v4.13.4, node v4.4.2.

app.js:
const express = require('express');
const raven = require('raven');

const app = express();
const sentryDSN = 'myDSN';
const client = new raven.Client(sentryDSN);

app.use(raven.middleware.express.requestHandler(sentryDSN));

/*
my middlewares section
*/

app.use(raven.middleware.express.errorHandler(sentryDSN));

app.use(handleResponse); // fallthrough error handler

sorry. It's something by my mistake

Sorry. It's my mistake.

@ashnamuh can you let us know what was your mistake?
Thanks

For those coming from a google search and encountering this error, raven appears to be unable to handle a sequelize model as the request.user object. The simplest workaround is to use parseUser in the configuration (see https://docs.sentry.io/clients/node/config/) with a function to extract the parameters you want.


Add laikaStartPreview task

Or, another solution that lets us run mdoc --watch and laikaPreview simultaneously :) As proposed in https://github.com/typelevel/sbt-typelevel/pull/189.
Briefly: the idea is to define a task that starts the preview server and returns a hook () => () that should be used to shutdown the server. This enables the server preview to be composed/interleaved with other long-running tasks, such as mdoc.
Following up on a couple questions from https://github.com/typelevel/sbt-typelevel/pull/189#issuecomment-1052012722:

I'm also generally confused by the best way to create long-running tasks in sbt. When I had to evacuate to Windows for a MacBook repair I noticed I cannot use the same shortcut to stop the task (ctrl-D).

Yes, I am confused by this too. FWIW I like how you did it, and your approach seems more flexible than what mdoc does. I think instead of looking for a specific shortcut waiting enter seems fine. I think this is how it's currently configured in Laika (although the log message is outdated), and is also what mdoc does IIRC.

I also often get a bunch of error messages from http4s when stopping the preview server and I'm not sure whether there is any way to prevent that.

Yes, I got those too, and they weren't pleasant :) The easy solution is to switch from the blaze server to the ember server. It is the "blessed" backend going forward (see https://github.com/http4s/http4s/discussions/4140#discussioncomment-261676) and is overall lightweight/simpler codebase/easier to maintain.
Thanks again for all your help and time, it's been really fantastic and much appreciated!

Thanks for writing this up. Something along these lines will be part of 0.19. I might think about the exact means of supporting this, but the general goal is that integrators should be able to do something in 2 or 3 lines of code as opposed to the large chunk of copy-paste you had to do.

I think instead of looking for a specific shortcut waiting enter seems fine. I think this is how it's currently configured in Laika (although the log message is outdated)

I'm afraid I don't understand what you mean here. I still stop the server with ctrl-D. What do you mean with "waiting enter", I do not remember I configured anything like that, at least not consciously. 😄
And thanks for the nudge towards Ember, will try that for the next release. I assume using ServerSentEvent is supported there, too?

I might think about the exact means of supporting this, but the general goal is that integrators should be able to do something in 2 or 3 lines of code as opposed to the large chunk of copy-paste you had to do.

Yes, that sounds great, thanks! :)

I'm afraid I don't understand what you mean here. I still stop the server with ctrl-D.

Hmm, sorry, maybe I misread this snippet. But when I read it looks like it waits for any input, not specifically ctrl-D.
https://github.com/planet42/Laika/blob/9022f6f37c9017f7612fa59398f246c8e8c42c3e/sbt/src/main/scala/laika/sbt/Tasks.scala#L221-L229

I assume using ServerSentEvent is supported there, too?

I will double-check for you, but AFAICT this is supported as part of http4s core and is not specific to blaze. But I actually don't know anything about this :)

Ooh, I barely remember I changed that! I think I've stolen that snippet from some other plugin.
I've updated the log. Thanks for explaining my own code to me, appreciated. 😄


Update the WorldMap production server with the latest master branch code

e.g. where the APIs for geoconnect are active
\cc @spacemansteve

Done on 2/17.
Process now in place to do this more regularly


Stayed signed

When I found a page with a github repo I always have to sign up if the token as expired.
Why not using a token added in https://github.com/settings/tokens  to stay signed up ?

This is a great idea, the only issue I foresee is if a user doesn't enable the right permissions, however where the sign in page is now putting that in  as a screenshot could alleviate this.
I haven't had to sign in multiple times yet ( #6 ), do you by chance know how long the tokens are valid for? I wasn't able to find this in the documentation

No I'm not sure about how long a token expire but I've to sign in once a day.
I know it's possible to open a page to add a token with the correct permission pre selected.
It's already done by Github Notifier (https://github.com/sindresorhus/github-notifier-chrome)

Ok cool,
I noticed you forked it, if you plan on working on this let me know, if not I will have time to this weekend :)

I'll try but it's the first time I work on a chrome extension so I'm not sure to do it very well

I don't know what permissions are needed

The scope as is is blank, so I would try no permissions first to match
that. If that didn't work I would guess public_repo. Let me know how it
goes, will have a chance to look at it tomorrow
On Fri, Jun 12, 2015, 6:47 PM Johann<EMAIL_ADDRESS>wrote:

I don't know what permissions are needed
[image: edit personal access token - google chrome]
https://cloud.githubusercontent.com/assets/1689750/8140598/5160003a-115d-11e5-88a4-166a62d75b62.jpg
—
Reply to this email directly or view it on GitHub
https://github.com/Frozenfire92/Pages2Repo/issues/12#issuecomment-111626887
.

I've implemented this, looking into #9 then will release a new version later today. Thanks for the feedback / idea!

It is published, could take an hour before the chrome webstore updates. Thanks!

Nice work !
Sorry I hadn't time this weekend to work on it.
Do you have interest about using GruntJS with JSCS and using Travis for you futur release ?

I've implemented Gruntjs for the release in #9 I don't think I will be implementing Travis as I don't really think there is a good way to test extensions from the command line

Sure but you can add JSCS to your GruntJS to check for each contribution the contributor respect your code style

It works very well thank you !


Improve Algolia search

Description
Currently, our search bar searches the entire website without filtering or formatting to group or clearly indicate in which section of the site the results are found (e.g., docs, handbook, blog).
We need at least some styling as a visual cue to help identify if the result would be useful to the user.
Epic/Story
No response
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate

https://github.com/FlowFuse/website/issues/2630

https://github.com/FlowFuse/website/issues/2630


Table column width changes as filtering is applied

Issue
Description

Noticed that the table's column widths change as users start filtering their search. This is in reference to the PR Add organisation index page in the GOV.UK Design System.

Why it's a problem

Appears glitchy as width changes as end-users start entering into the filter text-field.
Could be a bad experience for those require the use of screen magnifiers

Reference

Direct link to the comment with screen captures in the link below

https://github.com/alphagov/whitehall/pull/7367#issuecomment-1441423072

Screen captures
Instance 1 - Control

Instance 2 - Note the change of width of each column in comparison to Control

Proposal

Be neat to have a property to define the width of individual columns, ideally in percentage, to ensure that the column width doesn't change as end-users enter a response within the filter textfield.

For now we can override this in the stylesheets like this (.app-view-organisation-index__table is a wrapper)
.app-view-organisation-index__table .govuk-table {
  table-layout: fixed;
}

And can manually set columns width with something like

.app-view-organisation-index__table .govuk-table__row .govuk-table__header:nth-child(1),
.app-view-organisation-index__table .govuk-table__row .govuk-table__cell:nth-child(1) {
  width: 10%;
}

.app-view-organisation-index__table .govuk-table__row .govuk-table__header:nth-child(2),
.app-view-organisation-index__table .govuk-table__row .govuk-table__cell:nth-child(2) {
  width: 30%;
}

.app-view-organisation-index__table .govuk-table__row .govuk-table__header:nth-child(3),
.app-view-organisation-index__table .govuk-table__row .govuk-table__cell:nth-child(3) {

  width: 30%;
}

.app-view-organisation-index__table .govuk-table__row .govuk-table__header:nth-child(4),
.app-view-organisation-index__table .govuk-table__row .govuk-table__cell:nth-child(4) {
  width: 10%;
}

.app-view-organisation-index__table .govuk-table__row .govuk-table__header:nth-child(5),
.app-view-organisation-index__table .govuk-table__row .govuk-table__cell:nth-child(5) {
  width: 20%;
}

It would def be a nice to have though if we could configure column width and the filter didn't dynamically adjust column size


Run failing on mac: no main class detected

After following the setup process on mac, sbt gui/run is failing:
[error] java.lang.RuntimeException: No main class detected.
[error] 	at scala.sys.package$.error(package.scala:30)

However, sbt gui/compile succeeds.
Should mainClass be defined in the build file to resolve this?

Yeah, there is no gui currently built

Oh yeah my bad. I can help build the frontend if you're looking for help.


moving all stream tests to hypercore-streams

Companion PR to https://github.com/hypercore-protocol/hypercore-streams/pull/5 that removes the stream specific test to run these only in the hypercore-streams repo.

thank you for your contribution.

Closing cause old and lots have changed


fix(plugin-markdown-math): incorrect import css path

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Provide a description in this PR that addresses what the PR is solving. If this PR is going to solve an existing issue, please reference the issue (e.g. close #123).

What is the purpose of this pull request?

[x] Bug fix
[ ] New feature
[ ] Other

Description

Screenshots

Before
After

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 58.636%

Totals

Change from base Build<PHONE_NUMBER>3:
0.0%

Covered Lines:
1168

Relevant Lines:
1794

💛  - Coveralls


Feedback: Missing Plugins

This thread is used for discussing what should go in the Extensions Request wiki

Wow, cool feedback loop!

Don't know how I missed Align and Document This. Thanks for the tips!
"doxy commenting" would be the same as "docblockr". So that can be checked off as well.
highlight-line is already there. But it doesn't highlight when using Find*, but it does using Go To Line.
"todo-show" is the plugin I'm lacking. "native perf" was more a appreciation of VSCode itself.

Oh, OK I see now. Document This was released yesterday. Same day I tweeted :)
Just coming back to "atom-alignment". The plugin Align is the same as Atom Alignment which tried to do smart things where is looks for the same delimiter (e.g. =) in the selected rows of text.
What I was referring to was atom-alignment (in turn inspired by sublime_alignment) which aligns multiple cursors to the same indent. Allowing for much more powerful usage where e.g. ctrl+d can be used to select multiple instances of a letter or text before aligning. Great for multi-column structs for instance.

@csholmq just curious you use Code primary for C/C++ development?

@egamma Correct. Mostly embedded. Been using VS for one C# project but not overly fond of it. Might try to use Code on that project eventually.

Created a wiki to capture these. Also will migrate other requests from User Voice.
It would be great if that is a living document for adding extension requests and checking them off. We can pick some off for iteration planning and encourage the community (both in and outside of Microsoft) to pick from that list.

@waderyan And how does the community give feedback to that Wiki? E.g. when a plugin exists or has had its behavior altered.

@csholmq good question. Wiki is limited in its discussion support. We could switch to an issue. My worry is that it will become too difficult to see the list of extensions with a lot of comments. Perhaps we'll keep the list at the top of the issue... Open to your feedback.

@waderyan Perhaps this issue could be used as discussion on what the Wiki should contain? Because I do believe that the Wiki is better at summarizing the discussion.

Yeah I like it. I'll put a link to this in the wiki and clean up the top of the issue to explain what this thread should be used for.

Looks like someone beat me to it :)

@waderyan Yeah, it was already there when you closed the issue. I was just against you closing for the sake of discussion :)

I've started to move a few highly requested items from User Voice that are good candidates for extensions. Lots of language support extensions. I also added a list of popular atom extensions that some of our users have given us feedback on.

The link for the Python request is incorrectly pointing back to the wiki page (probably meant to be https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7752336-wider-python-support).

Yep thank you @brettcannon

Xamarin is supported in Visual Studio. Would be sweet to have it in VSCode!

Yep definitely. Added to the wiki.

[ ] atom-alignment. Aligning multi-line, multi-cursor and multiple selections.

is now included in the

[x] atom alignment -> VS Code Align

already checked off.

[ ] todo-show. Show todo, fixme, and changed.

is found in vscode-todo

Excellent. Updated.

Porting Hydrogen would be awesome. I find myself developing a lot in Python for data science and Hydrogen allows me to build scripts with the simplicity of a Jupyter notebook without replicating my work.
It seems the extension works by simply attaching to the Jupyter kernel's socket using ZeroMQ. Users are having a hard time on Windows because of ZMQ binaries requiring VS 2013, and because of Atom being terribly slow (in general, and on Windows). Would be awesome to have this for VS code coming with a precompiled ZMQ.

Sublime-Style-Column-Selection won't be needed if/when https://github.com/Microsoft/vscode/issues/5402 is implemented.

Document This it's pretty cool; however I woudn't eliminate DocBlockr from the list since DocBlockr supports many more languages, such as Apex, Java, Objective-C, PHP and others including the ones Document This does. *Document This only seem to support Javascript and Typescript.

@waderyan Hex dumps (and even editing them) are nowadays pretty well covered by this one: https://marketplace.visualstudio.com/items?itemName=slevesque.vscode-hexdump

Document This just supports the .js and .ts file, DocBlockr is better, how can I install that in VSC?

Yes, Document This is not a total replacement for Dockblockr.
We need more supported language until we can mark tgat one as complete.

What do you think about jupyter notebooks inside vscode?
I am not thinking about something like Hydrogen but the whole notebook, similar to https://github.com/jupyter/atom-notebook
Currently, people from the nteract team are extracting a lot of modules to implement it (see https://github.com/jupyter/atom-notebook/issues/58).
This would be nice to implement for two reasons:

The implementation in Atom is slow and not maintained, while nteract lacks the capability of editing different files than Jupyter notebooks
Jupyter notebooks could be shared across developer with different environments (e.g. Jupyter, nteract..)

What do you think about UI for tasks inside vscode?
Something like another side panel (like the source control, not sure if those panel has a name).
It can show tasks from multiple sources (npm, gulp, grunt, etc...)
Those task sources can be extended with custom extensions (angular-cli, webpack, etc...)
The panel would look like a tree view with all the detected tasks grouped by task source.
This would be an alternative to >Tasks: Run Task

Closing - this issue has served its purpose but it is now no longer used.


Partial application of comparisons and projections

Yet another fancy idea that could be thrown into the library: some kind of automatic partial application for comparison and projection functions. Let's say we always want to sort a collection of wrapper objects on their value field in descending order. We could acquire a sorter object that already knows about these comparison and projection functions by the time it's given the collection to sort:
auto sorter = cool_sorter(std::greater<>{}, &wrapper::value);
sorter(collection);
sorter(begin, end);

It sounds cool on the paper, but it actually means that there would be different sorter templates and that we need factory functions everywhere, that can hardly be generated simply (maybe some help from P0091 if it ever gets accepted?). It also means even more SFINAE madness and probably no conversions to function pointers anymore if we decide to store the comparison and projection functions into the sorter. Probably too many problems to solve at once for a little added benefit. I may start to work on such an issue when I really don't have anything else to do.
Update: On second thoughts, it could be one step among the ones required to handle mutable sorters. In its current state, the library only has explicit support for non-mutable sorters, which seems fine, but there are probably valid examples of mutable sorters somewhere, and the library might want to make them first-class citizens too (but not today, we're already busy).

Thinking back about it, it doesn't sound like the coolest idea in the world. It's expensive to correctly implement (huge and scary sorter_facade changes...) for very little benefit, and having specific parameters at construction depending on the sorter (min/max for counting_sorter, buffers for buffered sorters, etc...) sounds like a more interesting idea. Cluttering this design space with comparison and projection functions doesn't seem to be the smartest idea in the world.
I'm closing the issue.


APPS-1332 Add max parallel scans parameter

I'm thinking about default value?
Take a look at parameter description

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

Project coverage is 80.47%. Comparing base (0deeec9) to head (d456713).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #173      +/-   ##
==========================================
+ Coverage   80.32%   80.47%   +0.14%
==========================================
  Files          96       96
  Lines        7238     7251      +13
==========================================
+ Hits         5814     5835      +21
+ Misses       1064     1057       -7
+ Partials      360      359       -1

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


Fixing this might also mean that I can get rid of the explicit use of routerComponent.

I'm working on this right now because it's low-hanging fruit and something likely to be pointed out by early adopters.


Button says "Play Offline" even when logged in

note that multiplayer still works when the launcher runs the game in this state

I believe this was fixed in 50ec28cfd74922e3112b211cf7920221467b5660 but needs more testing

the launcher starts for me like this and then it switches to play a minute or two later, so be patient. I am on launcher v1.7.3

yeah it normally takes some time to log in, but there is also a bug with the device code flow that doesn't save your refresh token. It's fixed in 50ec28cfd74922e3112b211cf7920221467b5660, which will be included in the next hotfix.


Added logarithm functions for floats to std::math

Thanks to marijn for helping with #[link_name]

This is odd that unsafe blocks discard impurity. We have 'unchecked' for that.

has been fixed in the new pull req


Class 'WAQI' not found

Hi,
When trying out your module, I get: Fatal error: Uncaught Error: Class 'WAQI' not found in /var/www/html/waqi/beijing.php:10 Stack trace: #0 {main} thrown in /var/www/html/waqi/beijing.php on line 10
`<?php
error_reporting(E_ALL);
ini_set('display_errors',1);
echo "test";
require 'vendor/autoload.php';
$waqi = new WAQI('00000000000000000000000000000000000000000');
$waqi->getObservationByStation('beijing');
$waqi->getAQI();
?>`
Using PHP Version 7.1.12-1
Any ideas on what could cause this issue?
Thx

Yes, the WAQI class is held in it's own namespace. You instantiate a WAQI object in the user land space, which doesn't exist there :). Use use Azuyalabs\WAQI\WAQI; in your code.

I see. I understand. This indeed solved the problem.
Not related to WAQI, but maybe you know: I always get the results for Barrie, Ontario - regardless of what city I choose? Thx!

I also get the results for "Barrie, Ontario". My guess is that if their API can't find your city or monitoring station it defaults to this city (I don't know why).
My experience with this API is that picking the right monitoring station is kind of finicky. You might need to check their main website what the best monitoring station is nearby you (and what the exact name is).

It looks like you must use the station id (idx) in the API call and you cannot use the name of the station. For example: the idx for beijing is 1451, using this in the API call: https://api.waqi.info/feed/@1451/?token= works.
To find the idx i used http://api.waqi.info/search/?token=&keyword=
It seems to me you cannot use the station name directly. I tried many cities and none of them worked. Always default to Barrie. However, if a station does not exists you get unknown station.
So I think you are correct that there is an issue with their API.... I tried contacting them, but no response yet.

According to their API documentation (http://aqicn.org/json-api/doc/) the feed endpoint can use the station index or city name for the parameter. Based on this documentation, I've coded this class.
Looks like their documentation is not inline with the actual API behavior then.... :(

Indeed. I had the same problem. Thought I did something wrong, so I ended up using yours. Anyway, I found a way to make it work.


Update vcf.py to work on joint freq release Table

Changes:

Add an option in make_hist_bin_edges_expr so it can access histograms as a row or nested under a row. Why? In exomes or genomes release HT, histograms is a row, but in the joint releast HT, it's under the row of exomes, genomes, or joint.
Add prefix, suffix and description_text options in make_hist_dict. Also in order to work on joint Table.
Add REGION_FLAGS_JOINT_INFO_DICT for joint-specific region_flags;
Update make_info_dict to include CTT & CMH annotations;

I restructured make_hist_bin_edges_expr to implement our thinking, I wanted to simplify it more but it didn't work, let me know if this version can still be improved.


Silky doesn't work when django.middleware.gzip.GZipMiddleware is enabled

When the  'django.middleware.gzip.GZipMiddleware' is enabled the following error happens:
File "...r/lib/python2.7/site-packages/silk/sql.py", line 39, in execute_sql
sql_query = q % params
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)

Closing this as can be solved by middleware placement. Let me know if you're still havin issues tho @melbic


Add cleanse warning to 5.2 docs

See https://www.openmicroscopy.org/community/viewtopic.php?f=11&t=8060
Staged at https://www.openmicroscopy.org/site/support/omero5.2-staging/developers/Modules/Delete.html and https://www.openmicroscopy.org/site/support/omero5.2-staging/sysadmins/server-backup-and-restore.html

Good to merge.


Introspector pod fails initialisation

Context
I am using the Model In Image deployment strategy, with auxiliary images, in order to deploy a sample application on k8s via the Oracle WebLogic Operator (v3.3.7).
The auxiliary image currently uses ubuntu bionic as a base image, which default shell is dash as in /bin/sh -> dash.
The latter does only support POSIX compliant instructions.
Problem
When the introspector pod kicks in, the init containers fails to initialise the pod with the following error:
./auxImage.sh: 25: [: 1: unexpected operator
./auxImage.sh: 27: ./auxImage.sh: source: not found
[SEVERE] Missing file /weblogic-operator/scripts/utils_base.sh

The source of the problem seems to be related to the auxImage script shebang setup, currently equal to #!/bin/sh.
The script currently uses a non portable set of instructions, i.e. non-POSIX compliant, hence if the default shell in the OS is strictly supporting only POSIX instructions (like dash) the script does not work as expected.
Potential solutions

Replace the shebang with #!/bin/bash, leaving the code as is
Replace script instructions with portable POSIX compliant ones, e.g. use . instead of source, etc

This issue should be addressed and available in the upcoming 3.4.0 release.


GH-761 Use new ClassDB methods to fetch property getter/setter

Fixes #761
Without the fix

With the fix

As this is guarded by GODOT_VERSION, this logic will be enabled when we bump to Godot 4.4 as baseline.


[API][Web][SIMS #1466] Remove date only transformer for date only columns

Remove date only transformer for all date only columns in entity model

[x] Remove dateOnlyTransformer from all the date-only properties in entity model and change the data type to string.
[x] Ensure that fields mapped as date-only on DB have the type declared as type: "date" in the entity model, as per the screenshot above.
[x] Remove the getISODateOnlyString conversion as needed usually used when the API is converting the data-time to a date-only string to be sent to the API.
[x] Test the student application data to have selectedOfferingDate as date-only string.

There are one scenario where the date fields are read as date objects and converted to ISO date only string and vice-versa.

File integrations

File integration conversions
During the file integration process all the date only fields obtained by reading a file or while creating a file is not in ISO date only format. For this reason, the date fields when read from file(s) during the integration are converted to date object and then converted to ISO date only string to be saved in database.

LGTM. There's just a code smell.


HtmlElement not calling attached()

Originally opened as dart-lang/sdk#20491
This issue was originally filed by<EMAIL_ADDRESS>
What steps will reproduce the problem?

Make new Dart class and extend with HtmlElement
Overwrite attached() function
register HtmlElement to Class with registerDartType(...)

What is the expected output? What do you see instead?
The attached function is not called when the related Html Element is attached to the DOM.
Please include the following information:

Dart SDK version: 1.6.0-dev.5.0_r38487
polymer package version: 0.11.0 +5
Operating system: Windows 7 Enterprise SP 1
Browser (if any): Dartium 36.0.1985.97

 Comment by anders-sandholm

Added C7 label.

This comment was originally written by<EMAIL_ADDRESS>
I'm referring to the registerDartType in web_components/interop.dart.
So i tried to extend a custom Polymer element with the paper-tab element to expand the functionality of the paper-tab. As far as I know, thats not possible because of an open issue regarding the 'extends' mechanism in Polymer. Correct me if I'm wrong. To avoid this I copied the paper-tab wrapper from the source of the paper-elements and tried to build an own paper-tab element based on this dart wrapper. At this point I encountered the described problem.

 Comment by sigmundch

This was done by design, but I can see how it can be confusing. (just to be sure, I assume you are referring to registerDartType in web_components/interop.dart and not document.registerElement).
The reason this is by design is that registerDartType is just registering a Dart type for an HtmlElement written in Javascript. The 'attached' function will be called on the Javascript implementation of the element. We had no intention of attaching additional behavior on the Dart API as well.
Would you mind sharing under what scenario you intend to use this?
If you really need this, the good news is that it can be implemented on your element directly. When the created method is invoked you could patch the 'attached' method on the underlying javascript object instance, and replace it with a new function that calls the original method and additionally let's you run your extra logic.

Removed Priority-Unassigned label.
Added Priority-Medium, PolymerMilestone-Later, NeedsInfo labels.

 Comment by sigmundch

I see - thanks for the details.
This is something that by design we did not intend to support directly. I'll reply to your questions in more detail inline:

So i tried to extend a custom Polymer element with the paper-tab element to expand the functionality of the paper-tab. As far as I know, that's not possible because of an open issue regarding the 'extends' mechanism in Polymer.

Correct - today we don't allow extending custom-elements that were written in Javascript from Dart and viceversa. I'd like to explore if one day we can remove this restriction, but this is not in our radar at this moment.

Correct me if I'm wrong. To avoid this I copied the paper-tab wrapper from the source of the paper-elements and tried to build an own paper-tab element based on this dart wrapper. At this point I encountered the described problem.

Replacing the call to registerDartType is a bit dangerous. There can only be one call to that function with a specific tag name. If somewhere else in the app you transitively end up including the paper_tab.html from the paper_elements package (which also registers the type for 'paper-tab'), then you might end up with an error in your application. Some of the core and paper elements are imported from other core/paper elements, so it can be hard to guarantee that you never load the second wrapper.
Note that these "wrappers" are just a Dart API for the existing JS object, they are not overriding behavior or redefining how the custom element works. If you want that, you need to actually wrap it with a new custom element. For example, you could do:
<polymer-element name="my-paper-tab">
  <template><paper-tab></paper-tab></template>
</polymer-element>
And include the new features in my-paper-tab.
Hope this helps!

Added AsDesigned label.


Update the description of new inputs

These new inputs will not work on pull requests from forks.

API limit failures. Feel free to merge if you like.

Sorry for the delay, it's merged. If you need anything else, please feel free to tag me


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 402

Questions ?
Please refer to the Backport tool documentation


Style code area

Need to update syntax highlighting and code area background:
Brown is not in design specs

Right now the site is using two kinds of syntax highlighting themes.
One is customized, the other one is polarized-light.
The customized one only covers part of JavaScript syntax tho...

This reminded me that we should check color contrast of the syntax highlighting (see #12).

Looks great!


Can not access unity with vnc

I was successfully run unity-service, but I can not access unity with vnc. Could you give me some advice on how to access it correctly? Thx a lot.

step 1: git clone https://github.com/nenadg/docker-unity3d.git
step 2: cd docker-unity3d
step 3: docker-compose up -d
step 4: use vnc to access it
then failed

AFAIK, you should connect to <IP_ADDRESS> with password pass123 (as configured in docker-compose.yml), if that fails connect to container docker exec -it unity-service bash and check if vnc is started with ps aux.
Sorry I don't have this container built on current computer so this is as much help as I can give right now.

I success access it with vnc right now. I connect to localhost with the password, not the IP <IP_ADDRESS>.
But I don' t know why.
I execute docker ps -a in the terminal. It show
PORTS <IP_ADDRESS>:5555->5555/tcp, <IP_ADDRESS>:5900->5900/tcp

Okay, you can access by localhost as well. Which OS do you use?

Thx.
The OS I use is macOS high sierra.

Yeah, I though that my be the case. I wrote the README with Linux on my mind, Docker on MacOS behaves somewhat different (ie. you can't map internal IP, but can map port to localhost/<IP_ADDRESS>).
I'm glad we solved this :)

✌👍

I am having the same issue. Could you clarify that what is the user name?

@alchemz I'm using VNC client that doesn't prompt me for username. As you can see from configuration files I also set none.
You can try root since it's default docker's user.


Set up log groups for PaaS apps

Trello: https://trello.com/c/FtoKj86m
When the apps are running in the PaaS, they'll produce application logs and nginx logs. We need to capture these in CloudWatch in separate log groups to aide in processing them.
This sets up the log groups in Terraform. Prod logs need to be kept for at least 10 years.

 Configuring PaaS environments


Add better typing to Queue

Motivation
Improve types for Queue

Test plan

See included automated tests.

I should have looked a bit closer at this before merging, do you need the Elem type argument to be covariant?  Could it be left invariant instead?


fix: fix bug in FindAllRoutes

Description
There was a bug in FindAllRoutes - when there's two markets for same base/quote coin pair(e.g. bCRE/CRE and CRE/bCRE at the same time), FindAllRoutes would include only one of those markets in the result.
This PR fixes the bug by making the denomMap to have arrays of market ids instead of single market ids.

@crypin Yes I was facing the same problem. I think it's related to market orders, so I'll resolve it in a separate PR.


Nodecast doesn't appear as a casting device.

I am running nodecast and it says "ready to cast" yet neither my android or Chrome on Windows can detect it. I have a real Chromecast which works fine. I have noticed with the Google Cast extension, if I go to options then I can see nodecast listed under available cast devices, but I can't select it from that screen. Google cast says "No Cast devices found." when my real Chromecast is off.

+1
Maybe we need to unblock some ports or something?

+1 here too

Same

Same.  It's listening on port 8008.  However, not shown in the list of Casting devices on LAN; even with all ports open (no firewall) on a PC.  Is there something I'm missing?

Closing this because it's 5 years old. I don't think this project is even still going.


Use a linearly independent basis in DIIS

Closes #1000 which may often cause convergence problems for molecules with linearly dependent basis sets.

It appears some further changes are necessary to make the fix work for unrestricted calculations; maybe symmetry too.

With the current changes, calculations at RHF, UHF, and ROHF level of theory work without problem.
from pyscf import gto, scf

mol_singlet = gto.Mole()
mol_singlet.verbose = 4
mol_singlet.atom = '''
Ne 0 0 5e-4
ghost 0 0 0
Ne 0 0 -5e-4'''
mol_singlet.basis = {'Ne' : 'unc-cc-pvtz', 'ghost' : gto.uncontract(gto.basis.load('cc-pvtz','Ca')) }
mol_singlet.spin = 0
mol_singlet.symmetry = 0
mol_singlet.build()

rhf = scf.RHF(mol_singlet)
rhf = scf.addons.remove_linear_dep_(rhf, threshold=1e-5, cholesky_threshold=1e-6)
rhf.init_guess = '1e'
rhf.kernel()

mol_triplet = gto.Mole()
mol_triplet.verbose = 4
mol_triplet.atom = '''
Ne 0 0 5e-4
ghost 0 0 0
Ne 0 0 -5e-4'''
mol_triplet.basis = {'Ne' : 'unc-cc-pvtz', 'ghost' : gto.uncontract(gto.basis.load('cc-pvtz','Ca')) }
mol_triplet.spin = 2
mol_triplet.symmetry = 0
mol_triplet.build()

uhf = scf.UHF(mol_triplet)
uhf = scf.addons.remove_linear_dep_(uhf, threshold=1e-5, cholesky_threshold=1e-6)
uhf.init_guess = '1e'
uhf.kernel()

rohf = scf.ROHF(mol_triplet)
rohf = scf.addons.remove_linear_dep_(rohf, threshold=1e-5, cholesky_threshold=1e-6)
rohf.init_guess = '1e'
rohf.kernel()

Except in certain extreme systems, I didn't see too many adavantage to use custom basis than the default AO basis in DIIS.  Numerically, extra transformations would potentially bring more round off errors.
Does it make sense to create a child class of CDIIS that allows to run DIIS on custom basis? It can be assigned to scf object when calling the remove_linear_dep_ function around https://github.com/pyscf/pyscf/blob/master/pyscf/scf/addons.py#L484 .

Except in certain extreme systems, I didn't see too many adavantage to use custom basis than the default AO basis in DIIS. Numerically, extra transformations would potentially bring more round off errors.

Is that really a concern? The change only affects the computation of DIIS error, not the extrapolation itself, and the benefits of using the orthogonal basis were noted already 40 years ago by Pulay. There are plenty of systems that don't converge without the elimination of the linearly dependent functions; this is why the removal is the default in all programs (and the rest just fail to converge!).

Does it make sense to create a child class of CDIIS that allows to run DIIS on custom basis? It can be assigned to scf object when calling the remove_linear_dep_ function around https://github.com/pyscf/pyscf/blob/master/pyscf/scf/addons.py#L484 .

Or one could complicate the code so that the transform is only executed if Corth is not None but per the point above I don't see why. Making the customization in remove_linear_dep_ would also prevent the code from working when mf.eig is customized in another manner, as e.g. in the pyscf examples that many users are still probably using to eliminate linear dependencies in their calculations... the current implementation is fool proof in that sense.

There can be a DIIS class with sophisticated treatment. Other choices of DIIS or convergence technique, like EDIIS, ADIIS, the linear dependence function are needed but they should work as backup plan. The simplest CDIIS should be there and working as the default choice IMO.

Another two things to be updated in the orthogonal basis DIIS:

the complex conjugations of Corth in the general sense
in the case of "f.ndim == 3", f contains several fock matrices. They are different fock matrices in different subspace, e.g. different k-points, different symmetry blocks (although not utilized in current version). Corth basis may need to be different for each fock matrices

Hi Susi,
Would these changes help:

diff --git a/pyscf/scf/diis.py b/pyscf/scf/diis.py
index 9c2527c3f..2a555fbe6 100644
--- a/pyscf/scf/diis.py
+++ b/pyscf/scf/diis.py
@@ -64,19 +64,19 @@ def get_err_vec(s, d, f, Corth):
'''error vector = SDF - FDS'''
if isinstance(f, numpy.ndarray) and f.ndim == 2:
sdf = reduce(numpy.dot, (s,d,f))

   errvec = numpy.dot(Corth.T, numpy.dot(sdf.T.conj() - sdf, Corth))

   errvec = numpy.dot(Corth.T.conj(), numpy.dot(sdf.T.conj() - sdf, Corth))

elif isinstance(f, numpy.ndarray) and f.ndim == 3 and s.ndim == 3:
errvec = []
for i in range(f.shape[0]):
sdf = reduce(numpy.dot, (s[i], d[i], f[i]))

       errvec.append(numpy.dot(Corth.T, numpy.dot((sdf.T.conj() - sdf), Corth)))

       errvec.append(numpy.dot(Corth[i].T.conj(), numpy.dot((sdf.T.conj() - sdf), Corth[i])))
   errvec = numpy.vstack(errvec)

elif f.ndim == s.ndim+1 and f.shape[0] == 2:  # for UHF
nao = s.shape[-1]
s = lib.asarray((s,s)).reshape(-1,nao,nao)

   return get_err_vec(s, d.reshape(s.shape), f.reshape(s.shape), Corth)

   return get_err_vec(s, d.reshape(s.shape), f.reshape(s.shape), Corth.reshape(s.shape))

else:
raise RuntimeError('Unknown SCF DIIS type')
return errvec
diff --git a/pyscf/scf/hf.py b/pyscf/scf/hf.py
index d4191043e..2493693d8 100644
--- a/pyscf/scf/hf.py
+++ b/pyscf/scf/hf.py
@@ -152,16 +152,12 @@ Keyword argument "init_dm" is replaced by "dm0"''')
mf_diis = mf.DIIS(mf, mf.diis_file)
mf_diis.space = mf.diis_space
mf_diis.rollback = mf.diis_space_rollback
# We get the used orthonormalized AO basis from any old eigendecomposition.
# Since the ingredients for the Fock matrix has already been built, we can
# just go ahead and use it to determine the orthonormal basis vectors.
fock = mf.get_fock(h1e, s1e, vhf, dm)

   mo_energy, mo_coeff = mf.eig(fock, s1e)

   if isinstance(mo_coeff, numpy.ndarray) and mo_coeff.ndim == 2:

       mf_diis.Corth = mo_coeff

   else:

       mf_diis.Corth = mo_coeff[0]

   _, mf_diis.Corth = mf.eig(fock, s1e)

else:
mf_diis = None

@verena-neufeld please file a PR.

Ok, sure. I have noticed that in kUHF, mo_coeff is a tuple, so Corth needs to be converted to np.array there before reshaping. Also, Corth is only evaluated once. Is this to save time or is there another reason? I think it should also be stored in the DIIS file for restarting to ensure consistency.

Ok, sure. I have noticed that in kUHF, mo_coeff is a tuple, so Corth needs to be converted to np.array there before reshaping. Also, Corth is only evaluated once. Is this to save time or is there another reason?

The B matrix in DIIS is built from dot products of error vectors. Corth is used to calculate the error vector in the linearly independent basis; typically one uses the X matrix i.e. S^-1/2 but, as this is not used in PySCF, taking in the first set of MO coefficients works just as well.
For the crystalline case, one needs to have a k-point dependent Corth as well, since the number of linearly independent vectors depends on k.

I think it should also be stored in the DIIS file for restarting to ensure consistency (restoring test is failing).

Good point.

Thanks! Is using the first set of mo coeffs more suitable to represent the X or is it a convenience thing that Corth is evaluated once and then kept?

Thanks! Is using the first set of mo coeffs more suitable to represent the X or is it a convenience thing that Corth is evaluated once and then kept?

Like I wrote above, since Corth is used to build the error vector in the linearly independent basis, it needs to be the same from one iteration to the next. This is why I set it to the first set of MO coeffs.

Would this DIIS improve the convergence of periodic calculations (SCF and CCSD)? The condition number is typically over 1e10, and I'm doing calculations on pretty large systems (256 atoms) where each cycle of SCF takes 2-3 hours.

Would this DIIS improve the convergence of periodic calculations (SCF and CCSD)? The condition number is typically over 1e10, and I'm doing calculations on pretty large systems (256 atoms) where each cycle of SCF takes 2-3 hours.

It's possible. If you throw away linearly dependent eigenvectors and you don't do the same in DIIS, you may need unnecessarily many iterations. Many quantum chemistry codes have had issues in implementing DIIS properly for this reason...

So, in the pyscf/pbc/cc/test/test_eom_kuccsd_diag.py test, for instance, the F, D, and S matrices are all (6, 4, 4), but Corth (as the second return argument of eig) is a [2 x 3] x (4, 4) double list... Does this make sense?

Something has happened in PySCF though since the example above doesn't work anymore...

Hi Susi, thanks for making updates here. One reason why I hadn't opened a PR to your repo was that I realised that when which orbital is occ and which orbital is virt varies from k point to k point, and sometimes this changes from iteration to iteration of the SCF cycle, this can cause issues if I remember correctly. Not sure whether this DIIS works with padding in pbc calcs where orbitals get frozen. Maybe you solved this issue?

Could it be that when occupancies varies from one k point to the next and this changes from one iteration to the next, some parts of Corth belonging to k point "a" will be used for k point "b" (if "b" has more occ orbitals than initially thought for example)? I haven't tested this for a while.

The same thing also happens in molecular calculations; the occupied orbitals can change symmetry. This should not be a problem.


Wrong data 0W

Hi, I'm using the APSystems ECU-R integration version 1.4.0 running on home assistant:
My details
ECU 2160
Firmware: ECU_R_1.3.10
8 DS3-L invertors
Core 2024.2.1
Supervisor 2024.01.1
Operating System 11.5
Frontend 20240207.1
Home assistant is runing as a VM on my Qnap nas.
Since, I think this update(not totally sure), the separate inverters show 0W power pretty often. Sometimes one inverter sometimes all of them. I also feel the current power is way off because of this.
There are no records in the log and earlier everything worked fine. I already restarted home assistant, the ECU R and all inverters but this only makes a difference for a short time.
What can I do to fix this? The values in official the EMA App/web UI  from Apsystems are showing up fine.

I don't think this is due to the update, my 2160 is at firmware ECU_R_1.2.27 so I'll keep an eye on that. Receiving 0 watts is strange when the EMA site doesn't show this, though I know EMA does it's own calculations and the ECU will validate values against EMA later in the evening when the inverters are down. If the integration receives 0 this can't be misinterpreted unless  other data is also showing strange values. Might also be the firmware... Also try to position the ECU elsewhere just to see if that helps.

Thank you for your reply. I will keep an eye on this hopefully it will solve itself as it appeared, it was just that it seems to be at the same moment the update of the integration went live. But it can also be a firmware update. I didn't keep an eye on when the ecu R updated as yours got an older firmware.

Hi, today I have issues again. Now it seems to not report 0W but all entities are "stuck" at other values. In the logging it now shows an error:
Logger: custom_components.apsystems_ecur
Source: custom_components/apsystems_ecur/__init__.py:135
Integration: APSystems PV solar ECU ([documentation](https://github.com/ksheumaker/homeassistant-apsystems_ecur), [issues](https://github.com/ksheumaker/homeassistant-apsystems_ecur/issues))
First occurred: 10:25:46 (4 occurrences)
Last logged: 10:46:46

Using cached data from last successful communication from ECU. Invalid data error: Result on 'Inverter data' incorrect end signature '202' != END data=b'4150533131303031353030303230320a'

After this no results in home assistant anymore.
But when I run:
nc -v <IP_ADDRESS> 8899
Connection to <IP_ADDRESS> port 8899 [tcp/*] succeeded!
APS1100160001END
APS110094000121600009696701��K	������10012ECU_R_1.3.10009Etc/GMT-8��`�END

It seems to work fine, also the EMA platform of APsystems is updated fine.

Weird, seems like other data is put through the port. Can you enable debug logging and post them form me? Have you allready powercycled the ECU?

I have enabled debug logging now and power-cycled the device. Will keep you posted.

Today two of the invertors showed the 0W values again(time: 10:35) when they were working fine on the apsystems app. I think it will be in this debug log, another thing I noticed is that the "download diagnostics" button for this integration throws an error(also in this log available, time 10:42). @HAEdwin  you check my log please?
ha_log_14022024.txt

It appears that the protocol has not changed, data is read from the ECU and displayed accordingly. The integration only reads what is in the ECU in terms of data at that moment. If the APSystems app (is that the EMA app?) shows different than it might be still showing old data, ignoring the issue or somewhat else like lagging real time issues and might fall into error when the issue continues for a longer time period. From what I see in the log, the integration does function ok, it does not read or interpret data wrong - try to determen how you can really tell that they are down.

Thank you, this is really helpful, I didn't think about the other parameters from the integration. It seems the frequency is rock solid between 49,9 and 50hz. The voltage also seems to be fine between 230 and 235. However the signal seems to have an issue since 4th of februari. Before that date there was never a signal drop(only some fluctuations) however after that date it seems that randomly the connection with one or multiple investors break down. Seems something is wrong with the ecu or  interference as you describe. Will try to check if I can do anything about that. Did you see such issue before?

Yes, some even remove the WiFi antenna from the ECU.

Would it help to connect the ecu wired instead of using wifi and will the integration still work? Based on the readme I thought that wouldn't work for this integration and the version of my ecu.

No that will not work, on the 2160 series the port cannot be queried when the ECU is ethernet connected.

APSystems did the right move with their EZ- inverter series.

Yes if wifi would work better. I positioned my antennas the same as you did now let's see if it will help tomorrow.
Thank you for all the help.

Hi together, I can confirm that since the 4th Februar e.g. the values ecu_current_power and ecu_today_energy at minimum are not correct. As I have ioBroker still in place and there this is still working fine I have to say that this is a bug in the Home Assistant integration. There was an update of the integration that I have taken, not sure when but before 2-3 days, if I remember right.

Weird,... in 1.4.0 there was no change that could have caused this. I will also look into it.

For me Today Energy in HA was 1,22kWh on the APSysems EMA website 1,21kWh. The integration can't be wrong, this data is just being read from the ECU which holds the data. There is no extra calculation of some sort. Was the ECU-B firmware updated recently? Since the latest 2024.2.2 release of HA, you are able to export data from the ECU Current Power graph and compare it with the exported data from the EMA website. Can you show this data?

@HAEdwin : No, it was really a problem on HA side as ioBroker had at the same point of time the correct values. Therefore technically it cannot be on ECU side and ioBroker was matching with it.
Now, after the restart of HA yesterday it seems to work fine till now. Might be also a problem which is caused by the integration update?

@RkcCorian  Could be. Most of the times I am unable to reproduce the issues. There are 450+ installations of this integration, expecting that not all of them work for some reason can be expected. I can't always put my finger on why this might be.

I think i found the initial reason where this issue was opened for. It seems to be wifi inference, as turning of the near wifi ap(netgear orbi mesh) solved the signal drops. However when I connect it again it starts again. Earlier this wasn't the case so i tried a bit more and it seems to be because of the powerstrip the ecu and the wifi ap are connected to. Once removing the powerstrip and connecting it right to the wallsocket the connection is almost stable(one signal drop today and one yesterday since I made the change). Not really sure what the exact reason for this is and will try with some other powerstrip(as I don't have enough power socktes now) but it seems to create huge inference between the zigbee of the ecu and wifi somehow.
Atleast this issue is not related to the integration at all

@HAEdwin : I can understand. Currently it is working fine 🙂

I'll close this issue, great that it is solved!


Add an index on organisation_id to content_item_organisations

This makes a query which is currently taking around 20 seconds to run, complete in 320ms.
Found by looking in the Postgres logs for slow running queries.
Trello Card

@barrucadu I've sadly removed the commit which changes it to a schema.rb.


update chinese chess

Description

Related Issue

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

[ ] I have read the Code of Conduct
[ ] I have updated the documentation accordingly.
[ ] All commits are GPG signed

Hello @2lambda123! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file examples/chinese_chess/agent/mcts_async.py:

Line 35:69: W291 trailing whitespace
Line 41:80: E501 line too long (83 > 79 characters)
Line 53:80: E501 line too long (98 > 79 characters)
Line 55:80: E501 line too long (98 > 79 characters)
Line 59:80: E501 line too long (101 > 79 characters)
Line 134:1: W293 blank line contains whitespace
Line 138:1: W293 blank line contains whitespace
Line 167:1: W293 blank line contains whitespace
Line 173:80: E501 line too long (118 > 79 characters)
Line 182:23: W291 trailing whitespace
Line 243:80: E501 line too long (90 > 79 characters)
Line 262:80: E501 line too long (106 > 79 characters)

In the file examples/chinese_chess/agent/players.py:

Line 41:1: W293 blank line contains whitespace
Line 45:1: W293 blank line contains whitespace
Line 96:1: W293 blank line contains whitespace
Line 104:80: E501 line too long (80 > 79 characters)
Line 111:80: E501 line too long (83 > 79 characters)
Line 113:80: E501 line too long (111 > 79 characters)
Line 120:80: E501 line too long (96 > 79 characters)
Line 127:80: E501 line too long (94 > 79 characters)
Line 129:80: E501 line too long (96 > 79 characters)
Line 153:1: W293 blank line contains whitespace
Line 154:80: E501 line too long (100 > 79 characters)
Line 156:80: E501 line too long (94 > 79 characters)
Line 198:80: E501 line too long (85 > 79 characters)
Line 203:1: W293 blank line contains whitespace
Line 205:80: E501 line too long (81 > 79 characters)

In the file examples/chinese_chess/agent/resnet.py:

Line 5:80: E501 line too long (84 > 79 characters)
Line 16:80: E501 line too long (103 > 79 characters)
Line 23:80: E501 line too long (83 > 79 characters)
Line 34:80: E501 line too long (109 > 79 characters)
Line 45:80: E501 line too long (88 > 79 characters)
Line 65:80: E501 line too long (95 > 79 characters)
Line 68:80: E501 line too long (104 > 79 characters)
Line 80:80: E501 line too long (81 > 79 characters)
Line 157:80: E501 line too long (96 > 79 characters)
Line 158:80: E501 line too long (95 > 79 characters)
Line 159:80: E501 line too long (99 > 79 characters)
Line 161:80: E501 line too long (93 > 79 characters)
Line 172:80: E501 line too long (90 > 79 characters)
Line 177:80: E501 line too long (111 > 79 characters)
Line 185:80: E501 line too long (82 > 79 characters)
Line 195:80: E501 line too long (117 > 79 characters)
Line 200:80: E501 line too long (81 > 79 characters)
Line 210:80: E501 line too long (113 > 79 characters)
Line 211:80: E501 line too long (111 > 79 characters)
Line 216:80: E501 line too long (93 > 79 characters)
Line 217:80: E501 line too long (80 > 79 characters)
Line 218:80: E501 line too long (87 > 79 characters)
Line 221:80: E501 line too long (120 > 79 characters)
Line 224:80: E501 line too long (82 > 79 characters)
Line 226:80: E501 line too long (104 > 79 characters)
Line 236:80: E501 line too long (126 > 79 characters)
Line 241:80: E501 line too long (97 > 79 characters)
Line 245:80: E501 line too long (93 > 79 characters)
Line 246:80: E501 line too long (93 > 79 characters)
Line 248:80: E501 line too long (102 > 79 characters)
Line 249:80: E501 line too long (98 > 79 characters)
Line 250:80: E501 line too long (120 > 79 characters)
Line 254:80: E501 line too long (95 > 79 characters)
Line 255:80: E501 line too long (92 > 79 characters)
Line 256:80: E501 line too long (104 > 79 characters)
Line 284:80: E501 line too long (109 > 79 characters)
Line 285:80: E501 line too long (117 > 79 characters)
Line 289:80: E501 line too long (109 > 79 characters)
Line 290:80: E501 line too long (91 > 79 characters)

In the file examples/chinese_chess/config/conf.py:

Line 20:80: E501 line too long (82 > 79 characters)
Line 30:80: E501 line too long (85 > 79 characters)

In the file examples/chinese_chess/env/cchess_env.py:

Line 16:80: E501 line too long (87 > 79 characters)
Line 27:80: E501 line too long (85 > 79 characters)
Line 188:80: E501 line too long (85 > 79 characters)
Line 189:80: E501 line too long (85 > 79 characters)
Line 190:80: E501 line too long (84 > 79 characters)
Line 191:80: E501 line too long (84 > 79 characters)
Line 192:80: E501 line too long (84 > 79 characters)
Line 193:80: E501 line too long (84 > 79 characters)
Line 200:80: E501 line too long (108 > 79 characters)
Line 203:80: E501 line too long (80 > 79 characters)
Line 278:80: E501 line too long (82 > 79 characters)
Line 311:80: E501 line too long (90 > 79 characters)
Line 472:80: E501 line too long (101 > 79 characters)
Line 481:80: E501 line too long (101 > 79 characters)
Line 492:80: E501 line too long (101 > 79 characters)
Line 501:80: E501 line too long (101 > 79 characters)
Line 510:80: E501 line too long (80 > 79 characters)
Line 513:80: E501 line too long (101 > 79 characters)
Line 522:80: E501 line too long (101 > 79 characters)
Line 532:80: E501 line too long (101 > 79 characters)
Line 541:80: E501 line too long (101 > 79 characters)
Line 550:80: E501 line too long (114 > 79 characters)
Line 556:80: E501 line too long (111 > 79 characters)
Line 557:80: E501 line too long (88 > 79 characters)
Line 558:80: E501 line too long (119 > 79 characters)
Line 562:80: E501 line too long (111 > 79 characters)
Line 563:80: E501 line too long (88 > 79 characters)
Line 564:80: E501 line too long (119 > 79 characters)
Line 565:80: E501 line too long (114 > 79 characters)
Line 571:80: E501 line too long (110 > 79 characters)
Line 572:80: E501 line too long (88 > 79 characters)
Line 573:80: E501 line too long (119 > 79 characters)
Line 577:80: E501 line too long (110 > 79 characters)
Line 578:80: E501 line too long (88 > 79 characters)
Line 579:80: E501 line too long (119 > 79 characters)
Line 581:80: E501 line too long (114 > 79 characters)
Line 586:80: E501 line too long (107 > 79 characters)
Line 587:80: E501 line too long (109 > 79 characters)
Line 588:80: E501 line too long (115 > 79 characters)
Line 593:80: E501 line too long (107 > 79 characters)
Line 594:80: E501 line too long (109 > 79 characters)
Line 595:80: E501 line too long (115 > 79 characters)
Line 596:80: E501 line too long (114 > 79 characters)
Line 601:80: E501 line too long (106 > 79 characters)
Line 602:80: E501 line too long (109 > 79 characters)
Line 603:80: E501 line too long (115 > 79 characters)
Line 608:80: E501 line too long (106 > 79 characters)
Line 609:80: E501 line too long (109 > 79 characters)
Line 610:80: E501 line too long (115 > 79 characters)
Line 612:80: E501 line too long (80 > 79 characters)
Line 617:80: E501 line too long (107 > 79 characters)
Line 619:80: E501 line too long (115 > 79 characters)
Line 624:80: E501 line too long (107 > 79 characters)
Line 626:80: E501 line too long (115 > 79 characters)
Line 627:80: E501 line too long (80 > 79 characters)
Line 632:80: E501 line too long (102 > 79 characters)
Line 634:80: E501 line too long (115 > 79 characters)
Line 639:80: E501 line too long (102 > 79 characters)
Line 641:80: E501 line too long (115 > 79 characters)
Line 654:80: E501 line too long (111 > 79 characters)
Line 657:80: E501 line too long (113 > 79 characters)
Line 670:80: E501 line too long (114 > 79 characters)
Line 673:80: E501 line too long (113 > 79 characters)
Line 676:80: E501 line too long (80 > 79 characters)
Line 680:80: E501 line too long (101 > 79 characters)
Line 694:80: E501 line too long (101 > 79 characters)
Line 709:80: E501 line too long (101 > 79 characters)
Line 723:80: E501 line too long (101 > 79 characters)
Line 734:80: E501 line too long (80 > 79 characters)
Line 738:80: E501 line too long (101 > 79 characters)
Line 752:80: E501 line too long (101 > 79 characters)
Line 767:80: E501 line too long (101 > 79 characters)
Line 781:80: E501 line too long (101 > 79 characters)
Line 793:80: E501 line too long (80 > 79 characters)
Line 798:80: E501 line too long (99 > 79 characters)
Line 799:80: E501 line too long (111 > 79 characters)
Line 805:80: E501 line too long (103 > 79 characters)
Line 806:80: E501 line too long (115 > 79 characters)
Line 810:80: E501 line too long (103 > 79 characters)
Line 811:80: E501 line too long (115 > 79 characters)
Line 813:80: E501 line too long (80 > 79 characters)
Line 818:80: E501 line too long (98 > 79 characters)
Line 819:80: E501 line too long (111 > 79 characters)
Line 825:80: E501 line too long (102 > 79 characters)
Line 826:80: E501 line too long (115 > 79 characters)
Line 830:80: E501 line too long (102 > 79 characters)
Line 831:80: E501 line too long (115 > 79 characters)
Line 841:80: E501 line too long (101 > 79 characters)
Line 843:80: E501 line too long (101 > 79 characters)
Line 850:80: E501 line too long (84 > 79 characters)

In the file examples/chinese_chess/env/cchess_env_c.py:

Line 17:80: E501 line too long (87 > 79 characters)

In the file examples/chinese_chess/env/game_state.py:

Line 8:80: E501 line too long (85 > 79 characters)
Line 36:80: E501 line too long (82 > 79 characters)
Line 53:80: E501 line too long (82 > 79 characters)
Line 65:80: E501 line too long (81 > 79 characters)
Line 71:80: E501 line too long (81 > 79 characters)
Line 72:80: E501 line too long (81 > 79 characters)

In the file examples/chinese_chess/lib/cbf.py:

Line 39:80: E501 line too long (82 > 79 characters)
Line 59:80: E501 line too long (106 > 79 characters)
Line 62:80: E501 line too long (98 > 79 characters)

In the file examples/chinese_chess/lib/game_convert.py:

Line 29:1: W293 blank line contains whitespace
Line 38:43: E231 missing whitespace after ','
Line 42:80: E501 line too long (110 > 79 characters)
Line 64:80: E501 line too long (80 > 79 characters)
Line 66:80: E501 line too long (80 > 79 characters)
Line 69:80: E501 line too long (80 > 79 characters)
Line 71:80: E501 line too long (80 > 79 characters)

In the file examples/chinese_chess/lib/utils.py:

Line 36:80: E501 line too long (84 > 79 characters)
Line 43:80: E501 line too long (94 > 79 characters)
Line 55:9: E722 do not use bare 'except'
Line 74:80: E501 line too long (93 > 79 characters)
Line 129:80: E501 line too long (116 > 79 characters)
Line 164:80: E501 line too long (101 > 79 characters)
Line 168:80: E501 line too long (95 > 79 characters)
Line 169:80: E501 line too long (90 > 79 characters)
Line 212:80: E501 line too long (89 > 79 characters)
Line 215:80: E501 line too long (108 > 79 characters)
Line 224:80: E501 line too long (107 > 79 characters)
Line 229:80: E501 line too long (80 > 79 characters)
Line 230:80: E501 line too long (83 > 79 characters)

In the file examples/chinese_chess/nash/cal_nash_eq.py:

Line 91:80: E501 line too long (119 > 79 characters)
Line 93:80: E501 line too long (117 > 79 characters)
Line 94:80: E501 line too long (94 > 79 characters)
Line 96:80: E501 line too long (117 > 79 characters)
Line 97:80: E501 line too long (94 > 79 characters)
Line 110:80: E501 line too long (91 > 79 characters)
Line 119:80: E501 line too long (97 > 79 characters)
Line 136:80: E501 line too long (83 > 79 characters)
Line 142:80: E501 line too long (91 > 79 characters)
Line 154:80: E501 line too long (97 > 79 characters)
Line 162:80: E501 line too long (90 > 79 characters)
Line 220:80: E501 line too long (87 > 79 characters)
Line 228:80: E501 line too long (97 > 79 characters)
Line 254:80: E501 line too long (83 > 79 characters)
Line 255:80: E501 line too long (82 > 79 characters)
Line 256:80: E501 line too long (83 > 79 characters)
Line 257:80: E501 line too long (86 > 79 characters)
Line 258:80: E501 line too long (86 > 79 characters)
Line 261:80: E501 line too long (106 > 79 characters)
Line 269:80: E501 line too long (95 > 79 characters)
Line 270:80: E501 line too long (82 > 79 characters)
Line 278:80: E501 line too long (104 > 79 characters)

In the file examples/chinese_chess/nash_evaluate.py:

Line 19:80: E501 line too long (118 > 79 characters)
Line 42:80: E501 line too long (115 > 79 characters)
Line 43:80: E501 line too long (92 > 79 characters)
Line 68:80: E501 line too long (107 > 79 characters)
Line 70:80: E501 line too long (85 > 79 characters)
Line 74:80: E501 line too long (85 > 79 characters)
Line 78:80: E501 line too long (85 > 79 characters)
Line 82:80: E501 line too long (85 > 79 characters)
Line 83:80: E501 line too long (84 > 79 characters)
Line 86:80: E501 line too long (85 > 79 characters)
Line 87:80: E501 line too long (84 > 79 characters)
Line 90:80: E501 line too long (85 > 79 characters)
Line 91:80: E501 line too long (84 > 79 characters)
Line 94:80: E501 line too long (83 > 79 characters)
Line 105:80: E501 line too long (115 > 79 characters)
Line 106:80: E501 line too long (92 > 79 characters)
Line 131:80: E501 line too long (107 > 79 characters)
Line 133:80: E501 line too long (85 > 79 characters)
Line 137:80: E501 line too long (85 > 79 characters)
Line 141:80: E501 line too long (85 > 79 characters)
Line 145:80: E501 line too long (83 > 79 characters)
Line 154:80: E501 line too long (82 > 79 characters)
Line 155:80: E501 line too long (99 > 79 characters)
Line 157:80: E501 line too long (83 > 79 characters)
Line 158:80: E501 line too long (117 > 79 characters)
Line 159:5: E722 do not use bare 'except'
Line 165:80: E501 line too long (102 > 79 characters)
Line 168:80: E501 line too long (82 > 79 characters)
Line 185:80: E501 line too long (112 > 79 characters)
Line 187:80: E501 line too long (120 > 79 characters)
Line 196:80: E501 line too long (94 > 79 characters)
Line 197:80: E501 line too long (110 > 79 characters)
Line 201:80: E501 line too long (96 > 79 characters)
Line 202:80: E501 line too long (110 > 79 characters)
Line 209:80: E501 line too long (108 > 79 characters)
Line 242:80: E501 line too long (81 > 79 characters)
Line 259:80: E501 line too long (120 > 79 characters)
Line 330:80: E501 line too long (90 > 79 characters)
Line 352:80: E501 line too long (111 > 79 characters)
Line 399:80: E501 line too long (102 > 79 characters)
Line 406:80: E501 line too long (106 > 79 characters)
Line 413:80: E501 line too long (95 > 79 characters)
Line 421:80: E501 line too long (83 > 79 characters)
Line 446:80: E501 line too long (114 > 79 characters)
Line 468:80: E501 line too long (100 > 79 characters)
Line 469:80: E501 line too long (102 > 79 characters)
Line 479:80: E501 line too long (93 > 79 characters)
Line 481:80: E501 line too long (92 > 79 characters)
Line 483:9: E722 do not use bare 'except'
Line 490:80: E501 line too long (94 > 79 characters)
Line 492:80: E501 line too long (93 > 79 characters)
Line 494:9: E722 do not use bare 'except'
Line 500:80: E501 line too long (102 > 79 characters)
Line 507:80: E501 line too long (117 > 79 characters)
Line 522:9: E722 do not use bare 'except'
Line 548:80: E501 line too long (90 > 79 characters)

In the file examples/chinese_chess/nash_evaluate_worker.py:

Line 25:80: E501 line too long (108 > 79 characters)
Line 44:80: E501 line too long (81 > 79 characters)
Line 46:80: E501 line too long (123 > 79 characters)
Line 48:80: E501 line too long (86 > 79 characters)
Line 54:80: E501 line too long (98 > 79 characters)
Line 58:80: E501 line too long (93 > 79 characters)
Line 65:80: E501 line too long (93 > 79 characters)
Line 78:80: E501 line too long (108 > 79 characters)
Line 82:80: E501 line too long (82 > 79 characters)
Line 149:80: E501 line too long (98 > 79 characters)
Line 161:80: E501 line too long (91 > 79 characters)
Line 241:80: E501 line too long (86 > 79 characters)
Line 247:80: E501 line too long (116 > 79 characters)
Line 260:80: E501 line too long (90 > 79 characters)
Line 266:80: E501 line too long (117 > 79 characters)
Line 274:80: E501 line too long (95 > 79 characters)
Line 280:80: E501 line too long (94 > 79 characters)
Line 282:80: E501 line too long (107 > 79 characters)
Line 296:80: E501 line too long (115 > 79 characters)
Line 299:80: E501 line too long (113 > 79 characters)
Line 302:80: E501 line too long (113 > 79 characters)
Line 305:80: E501 line too long (95 > 79 characters)
Line 307:80: E501 line too long (87 > 79 characters)
Line 324:80: E501 line too long (93 > 79 characters)
Line 329:80: E501 line too long (101 > 79 characters)
Line 330:9: E722 do not use bare 'except'
Line 355:80: E501 line too long (107 > 79 characters)

In the file examples/chinese_chess/optimizer.py:

Line 31:9: E722 do not use bare 'except'
Line 35:80: E501 line too long (84 > 79 characters)
Line 36:80: E501 line too long (85 > 79 characters)

In the file examples/chinese_chess/self_play.py:

Line 31:80: E501 line too long (80 > 79 characters)
Line 32:80: E501 line too long (98 > 79 characters)
Line 33:80: E501 line too long (126 > 79 characters)
Line 44:80: E501 line too long (94 > 79 characters)
Line 49:80: E501 line too long (94 > 79 characters)
Line 53:80: E501 line too long (87 > 79 characters)
Line 57:80: E501 line too long (87 > 79 characters)
Line 73:80: E501 line too long (94 > 79 characters)
Line 125:9: E722 do not use bare 'except'
Line 137:80: E501 line too long (85 > 79 characters)
Line 179:9: E722 do not use bare 'except'
Line 193:80: E501 line too long (94 > 79 characters)
Line 196:80: E501 line too long (90 > 79 characters)
Line 205:80: E501 line too long (81 > 79 characters)
Line 206:1: W293 blank line contains whitespace
Line 207:80: E501 line too long (110 > 79 characters)
Line 216:9: E722 do not use bare 'except'

In the file examples/chinese_chess/self_play_worker.py:

Line 49:80: E501 line too long (83 > 79 characters)
Line 85:80: E501 line too long (81 > 79 characters)
Line 86:80: E501 line too long (112 > 79 characters)
Line 89:80: E501 line too long (99 > 79 characters)
Line 110:80: E501 line too long (92 > 79 characters)
Line 111:80: E501 line too long (89 > 79 characters)
Line 150:80: E501 line too long (88 > 79 characters)
Line 192:80: E501 line too long (87 > 79 characters)
Line 193:80: E501 line too long (91 > 79 characters)
Line 195:80: E501 line too long (134 > 79 characters)
Line 195:87: E231 missing whitespace after ','
Line 198:80: E501 line too long (91 > 79 characters)
Line 199:80: E501 line too long (81 > 79 characters)
Line 215:80: E501 line too long (83 > 79 characters)
Line 228:80: E501 line too long (88 > 79 characters)
Line 260:80: E501 line too long (112 > 79 characters)
Line 267:80: E501 line too long (116 > 79 characters)
Line 275:80: E501 line too long (87 > 79 characters)
Line 280:80: E501 line too long (101 > 79 characters)
Line 285:80: E501 line too long (88 > 79 characters)
Line 297:80: E501 line too long (94 > 79 characters)

In the file examples/chinese_chess/server/data_loader.py:

Line 44:80: E501 line too long (96 > 79 characters)
Line 57:16: E127 continuation line over-indented for visual indent
Line 57:80: E501 line too long (94 > 79 characters)
Line 64:80: E501 line too long (85 > 79 characters)

In the file examples/chinese_chess/server/exchanger.py:

Line 19:80: E501 line too long (92 > 79 characters)
Line 24:80: E501 line too long (87 > 79 characters)
Line 26:80: E501 line too long (93 > 79 characters)
Line 32:80: E501 line too long (108 > 79 characters)
Line 33:80: E501 line too long (107 > 79 characters)
Line 34:80: E501 line too long (80 > 79 characters)
Line 35:80: E501 line too long (85 > 79 characters)
Line 37:80: E501 line too long (89 > 79 characters)
Line 38:80: E501 line too long (90 > 79 characters)
Line 39:13: E722 do not use bare 'except'
Line 48:80: E501 line too long (86 > 79 characters)
Line 50:80: E501 line too long (107 > 79 characters)
Line 53:80: E501 line too long (105 > 79 characters)
Line 56:80: E501 line too long (81 > 79 characters)
Line 63:80: E501 line too long (84 > 79 characters)
Line 65:13: E722 do not use bare 'except'
Line 75:80: E501 line too long (109 > 79 characters)
Line 76:13: E722 do not use bare 'except'
Line 82:80: E501 line too long (89 > 79 characters)

In the file examples/chinese_chess/server/trainer.py:

Line 39:80: E501 line too long (122 > 79 characters)
Line 40:80: E501 line too long (104 > 79 characters)
Line 50:80: E501 line too long (90 > 79 characters)
Line 52:80: E501 line too long (80 > 79 characters)
Line 54:80: E501 line too long (93 > 79 characters)
Line 57:25: E117 over-indented
Line 59:80: E501 line too long (104 > 79 characters)
Line 64:80: E501 line too long (82 > 79 characters)
Line 68:80: E501 line too long (109 > 79 characters)
Line 73:80: E501 line too long (139 > 79 characters)
Line 75:80: E501 line too long (118 > 79 characters)
Line 91:80: E501 line too long (95 > 79 characters)
Line 94:80: E501 line too long (86 > 79 characters)
Line 95:80: E501 line too long (106 > 79 characters)
Line 96:80: E501 line too long (89 > 79 characters)

In the file examples/chinese_chess/worker/chess_selfplay.py:

Line 7:1: E402 module level import not at top of file
Line 8:1: E402 module level import not at top of file
Line 9:1: E402 module level import not at top of file
Line 12:80: E501 line too long (89 > 79 characters)
Line 23:1: W293 blank line contains whitespace
Line 27:80: E501 line too long (80 > 79 characters)

In the file examples/chinese_chess/worker/game.py:

Line 43:80: E501 line too long (83 > 79 characters)
Line 54:1: W293 blank line contains whitespace
Line 73:1: W293 blank line contains whitespace
Line 87:80: E501 line too long (89 > 79 characters)
Line 88:80: E501 line too long (87 > 79 characters)
Line 101:1: W293 blank line contains whitespace
Line 146:1: W293 blank line contains whitespace
Line 149:1: W293 blank line contains whitespace
Line 152:1: W293 blank line contains whitespace
Line 161:80: E501 line too long (83 > 79 characters)
Line 162:1: W293 blank line contains whitespace
Line 163:80: E501 line too long (93 > 79 characters)
Line 165:1: W293 blank line contains whitespace
Line 166:80: E501 line too long (83 > 79 characters)
Line 180:1: W293 blank line contains whitespace
Line 193:80: E501 line too long (87 > 79 characters)
Line 228:80: E501 line too long (90 > 79 characters)
Line 235:80: E501 line too long (80 > 79 characters)
Line 236:80: E501 line too long (95 > 79 characters)

In the file examples/chinese_chess/worker/initize_weight.py:

Line 8:1: E402 module level import not at top of file
Line 10:1: E402 module level import not at top of file
Line 11:1: E402 module level import not at top of file
Line 12:1: E402 module level import not at top of file


Mailpit is not working with php 8.3

OS type
Docker Desktop on Windows 11
Drupal version
10
Mailpit is working fine with PHP 8.1 and PHP 8.2.
But when I change to PHP 8.3.2 (without any other changes) mailpit is not working anymore. No emails arrive in the Mailpit inbox!
What can we do to solve this problem?
Thank you.

Problem solved.
There was a problem with Drupal.
Mailpit also works with PHP 8.3.

It was a mistake.


Impact of existing pods and services during the upgrade process

There is no information on what happens to pods and services during the upgrade process. When I upgrade cluster from 1.7.x to 1.8.x pods are restarted. Is there a way I can upgrade without service disruption ?

Can you provide the link to the document you are referring to?

https://docs.microsoft.com/en-us/azure/aks/upgrade-cluster

Thanks for that. Upgrading the cluster will cause the nodes to restart to apply the update. You cannot update the cluster without a reboot. Hence, if you are not able to handle a service interruption you should only update during non business hours or schedule a time window when a reboot will not impact your business.

Thanks @MicahMcKittrick-MSFT. It helps and will do during the non business hours.


std.range.package: Fix DDoc syntax

https://github.com/dlang/dlang.org/pull/1526#issuecomment-309263501

From the Jenkins log, while testing vibe.d:

2017-06-18T08:27:52.493:threads.d:destroyAsyncThreads:34 Failed to terminate worker threads: core.thread.ThreadException@src/core/thread.d(773): Unable to join thread

(https://ci.dlang.io/blue/organizations/jenkins/dlang-org%2Fphobos/detail/PR-5494/1/pipeline#step-787-log-33)
I think this is a transient failure, but perhaps @MartinNowak may want to investigate.


Updated for Laravel 9 compatibility

Updated for Laravel 9 compatibility now that it has been released

Is this project still being maintained?

Thank you for your effort. I am not on GitHub frequently.


Blosc silently fails with 2GB buffer

>>> import numcodecs
>>> import numpy as np
>>> a = np.ones(1024**3, dtype=np.int8)
>>> a.nbytes
1073741824
>>> codec = numcodecs.Blosc()
>>> x = codec.encode(a)
>>> len(x)
4505616
>>> a = np.ones(2 * 1024**3, dtype=np.int8)
>>> x = codec.encode(a)
Input buffer size cannot exceed<PHONE_NUMBER> bytes
>>> codec.decode(x)
# Freezes interpreter

It looks like Blosc is raising this error and it's not being caught here because csize is declared as size_t, and so cannot be negative.
Any thoughts @alimanfoo? Should be an easy fix, but it's not entirely clear how to test this. Do you know of any other ways we can provoke errors in blosc which don't involve mallocing 2GB?

You could try corrupting a compressed buffer. I.e., create some compressed bytes via encode(), then remove some leading or trailing bytes then try to decode().


Dedicated Reports landing page to view reports not in Edit context

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1832
Originally created by @derek-knox on 2020-03-02 22:32:34

As mentioned in https://gitlab.com/meltano/meltano/issues/1601#note_296143046 we'll want to have a dedicated Reports page so that reports can be viewed without being forced in the context of the Report Builder or solely via a Dashboard.

View 6 previous comments from the original issue on GitLab


NO-JIRA: Switch integration tests to ordered to save time

On my machine, this reduces the runtime of the integration tests from about 28m to 6m.
The change here is that we install/uninstall the CRD file once per suite file, rather than once per test case.
We lose randomness of tests within each test suite file, but, the time saving is probably worth that.
Each suite file we have will still be randomised.

In terms of risk do we have/need a periodic test that would be randomized to gate nightly? The time saving is a big deal though :+1:

To be honest, I think we don't need it no. The tests should all be isolated. After each test case we issue a DeleteAll to delete all resources of the kind we are working on. We are also using generateName. So in theory, every resource we create/attempt to create should have a clean slate and a unique name anyway, theoretically meaning every test is independent.
I think we are probably ok without the randomisation, I added it originally because it's a force of habit for normal testing that is more likely to have side effects from hangovers from other tests

/lgtm

/label acknowledge-critical-fixes-only


[Feature] Support for client-caching requests

A middleware to be used with static that would support for if-modified-since header with a 304 response
This middleware should also support the use of E-Tags
This should be based on a non-pre-compressed file's details.

Hmmm could you please show anything like this for Express / Koa / Fastify?
Want to explore how other folks implemented this
Also, PRs welcome 👍

@talentlessguy Don't think this should be a new middleware, IMO this needs to be baked in the static package.

@Arnovsky interesting, we could add an option caching that defaults to true and sets all proper headers

@talentlessguy is there any scenario where you don't want to cache static files?

@Arnovsky probably while doing site development when u want the cache to be turned off completely

@talentlessguy I don't think that's a valid use-case (since you could just force refresh the browser), but I have looked into other framework implementations, and they allow it to be optionally disabled.

@Arnovsky hmmm ok then better have it as an option just in case
feel free to PR to add a new property :D

yo, I decided to remove the static package because it requires too much work outside of the framework,
and alternatives are shown here


Add additionnal unit tests to csharp wrapper

Not integrated to the CI yet.

Unit tests are now integrated into the CI.


Signatorio

Hi

Hey - not sure what the idea was here?

Yes ,I'm sorry
I try to learn more realistic how to work here.
در تاریخ سه‌شنبه ۲۶ آوریل ۲۰۲۲، ۰۱:۵۵ Adam Fuller @.***>
نوشت:

Hey - not sure what the idea was here?
—
Reply to this email directly, view it on GitHub
https://github.com/scaffold-eth/scaffold-eth/pull/754#issuecomment-1109055663,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVFEERUR2ZF43P4PS4GKURLVG4ESXANCNFSM5UJZO44Q
.
You are receiving this because you authored the thread.Message ID:
@.***>


Deleting Items from your basket?

What happens if you come to check on your basket of eggs, and find it half full and then decide to remove one of the eggs from your basket?  Can you do that?  Should we allow that?  Seems like maybe.
The context with news-batcher is:
I find two news articles that I add to the basket.  Then I find a third, add it, and I go back to the website and delete the second article.  I know my basket isn't full so the perform hasn't run.  The on_add has already run.  But there is now a reference to something from the database that is no longer there and it's in the basket.  Gulp.
egg = Egg.create(color: blue)
Basket.add('QuicheBasket', egg)

egg = Egg.create(color: brown)
Basket.add('QuicheBasket', egg)

# 10 hours later... wait, what the heck am i doing using a blue egg for my quiche, i should save that one for the state fair!
Basket.delete('QuicheBasket', ???)

Or, for news batcher:
news_article = NewsArticle.create(url: 'https://www.theguardian.com/uk-news/ng-interactive/2023/apr/05/revealed-royals-took-more-than-1bn-income-from-controversial-estates-king-charles-queen-duchies-cornwall-lancaster')
Basket.add('NewsBasket', news_article)

#10 hours later
news_article = NewsArticle.last.destroy
Basket.delete('NewsBasket', news_article)

Done!  Closed by #57 and #53


"No title found" as title in generated e-mail [Android]

The title in the generated email is empty and I cannot find the right string to modify when making an Android build. The result is "No title found" as the title in the email (see attachment).

Hi,
Please upgrade to the latest version of this step (Deploy to Bitrise.io - 1.2.4 - https://github.com/bitrise-io/steps-deploy-to-bitrise-io/releases/tag/1.2.4) that should fix the issue.
I'll close this ticket, but if you have this issue with the latest version please let us know and we'll reopen it!

Yes, it is fixed in version 1.2.4.
Thank you.

Thanks for reporting!


Fixed the rendering of 2 toolbar buttons

'table'  now renders the table toolbar button (previous: unordered list)
'redo'  now renders the redo button (previous: undo)
Commits are self-explanatory I think.
I found this functionality by looking through the code, maybe it's nice to add toolbar buttons configuration to the documentation?

Thanks!


[WIP] - Deprecate Copy Behavior to support Quantities 16.0

I want to do this in a couple parts. First remove copy. Then ensure tests are passing (currently I've commented out the tests, but my plan is to delete the copy=True tests). Just so people can monitor progress I'll just have this open as a PR.
Fixes #1534
Fixes #1529

Things I found for us to discus:

we can't change the units or dtype during construction since we only get a view of the array. I deleted all tests changing units/dtype

time_shift required a different strategy so I implemented it

deleted all tests checking for copy vs view

I need help with the pickle tests. Reading from pickle just returns a None instead of the appropriate array. Someone who knows pickle better should check this for me. Currently they are commented out.

IO tests failing due to a CI issue right now.... We can check that later.

Try flushing the conda cashes just to see if the dependency issue goes away.

So now we have an issue in nix that I have propagated the fix for quantities here.
I just have pickleio that is broken and I don't know why. @samuelgarcia or @apdavison can either of you walk me through the pickling story a bit more.

@apdavison, if you have the brain power to look over this. We are running into one stumbling block with pickleio not working. Sam and I looked at it and we aren't quite sure why. The nix test failure needs to be fixed with my PR at quantities level.

@zm711 : I fixes the pickleio tsuff it was on the copy=True was still here in the __reduce__ (used by pickle)

Perfect thanks for the pickleio. I'll uncomment the core pickle and then we have the nix fix that needs to happen in quantities.

@apdavison, I convinced Sam to help with the pickle a bit more. So last thing we need for tests to pass is for a release of quantities with https://github.com/python-quantities/python-quantities/pull/242 merged in. Tests have passed there. Then you can do the final review for this!

https://pypi.org/project/quantities/0.16.1/


Correction for raw affiliation CIRAD, UMR TETIS, Montpellier; IRSTEA, UMR TETIS LIRMM, University of Montpellier, Montpellier; IRSTEA, UMR TETIS, Montpellier

Correction needed for raw affiliation CIRAD, UMR TETIS, Montpellier; IRSTEA, UMR TETIS LIRMM, University of Montpellier, Montpellier; IRSTEA, UMR TETIS, Montpellier
raw_affiliation_name: CIRAD, UMR TETIS, Montpellier; IRSTEA, UMR TETIS LIRMM, University of Montpellier, Montpellier; IRSTEA, UMR TETIS, Montpellier
new_rors: 013yean28;051escj72;05kpkpg04;0458hw939
previous_rors: 013yean28;051escj72;05kpkpg04
works_examples: W2951987422
contact: dbf26acd186be8242690dec83a312000:5cfdca5e4128f92d71da0a8054e9c71f059f @ inrae.fr

This issue was accepted and ingested by the OpenAlex team on 2024-12-19. The new affiliations should be visible within the next 7 days.


[UI] Unable to edit Environment Variables on imported k3s cluster

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):

import cluster with environment variables
wait for cluster to become active
edit cluster and navigate to environment variables section

Result:

environment variables are not listed on the import cluster edit page

Other details that may be helpful:

other cluster types do have this UI option (i.e. custom cluster)
We are able to update the agentEnvVars for import clusters through the API

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): v2.5.6-rc6
Installation option (single install/HA): single

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): imported k3s

Kubernetes version (use kubectl version): 1.20 (any)

Docker version (use docker version): 20.04 (any)

@kinarashah should we be able to edit these environment variables on an imported cluster?

@deniseschannon this is allowed through API for all cluster types

Just as a note. I left the order as Advanced then K3s options because the change involved is actually risky to change the order right now. If we want to switch it please open a ticket for a future release.


Manage many customers

This issue is linked to the Discussion #82
Features to implement:

Manage projects by company
The responsible of a company can manage access to projects for it's employees

PR #123


chore(python): place codegen in workspace

Makes it easier to manage, and brings back codegen's tests into CI.
Includes dependency updates.

@jedevc, I added this to the milestone because of the included updates.

Is this one ready to review?

Is this one ready to review?

Just need to fix one problem. Looking into it now.

I've split the update and put that PR in the milestone instead.

Resolved in https://github.com/dagger/dagger/pull/8311


[Add Project]: Objective-C Casper Client SDK

Name
Objective-C Casper Client SDK
Website
https://github.com/tqhuy2018/Casper-ObjectiveC-sdk
Twitter
No response
Tag
SDK
Contact
<EMAIL_ADDRESS>Project's Contract Hashes on Casper Mainnet
No response
Project's Contract Hashes on Casper Testnet
No response
Project Description
Implement a Casper Objective-C SDK to interact with the Casper network.

Hi @tqhuy2018
Could you let me know if the SDK is in line with the latest casper-node that went in and whether they are in alignment with upcoming casper-node releases, please?

This version of Objective-C SDK is in line with the latest casper-node that went in. You can see the test result in the picture.
Whether it is compatible with casper-node in the future or not, it is necessary to consider whether you change the sending Json data structure (for put_deploy RPC method) and returned Json data structure (for other RPC methods) or not. If the upcoming version changes, we will need to update the SDK.


rkt list|status: app state info (i.e. exit codes) in --format=json

Make rkt list|status --format=json compatible with the default k=v format and include state info (exit codes in particular).
Also deprecate App.AppNames in the json output, but keep it there for backwards compatibility.
Before the change:
$ rkt status --format=json f4ef2301-511f-4ab0-9ce9-fdd02a76798e | jq "."
{
  "name": "f4ef2301-511f-4ab0-9ce9-fdd02a76798e",
  "state": "exited",
  "app_names": [
    "busybox"
  ],
  "started_at":<PHONE_NUMBER>
}

After the change:
$ rkt status --format=json f4ef2301-511f-4ab0-9ce9-fdd02a76798e | jq "."
{
  "name": "f4ef2301-511f-4ab0-9ce9-fdd02a76798e",
  "state": "exited",
  "app_names": [
    "busybox"
  ],
  "apps": [
    {
      "name": "busybox",
      "state": "exited",
      "created_at":<PHONE_NUMBER>323730200,
      "exit_code": 12,
      "image_id": "sha512-4014cef722fd0105ad0b90a95d403a6a236f6c3fa1e45fc8b0deb319d493d524"
    }
  ],
  "started_at":<PHONE_NUMBER>
}

Signed-off-by: Fabio Kung<EMAIL_ADDRESS>

ok to test

This looks fine in general, however I'm wondering if we should tackle https://github.com/rkt/rkt/issues/3551 first so that this JSON is properly typed+versioned and we can then touch it with a bit more freedom in future.

@fabiokung also related, in case you want to tackle them at once: https://github.com/rkt/rkt/issues/3550.

#3551 is a noble cause, but I don't think it should block this. I think this is a necessary baby step just to get some parity with the default tabbed/plain format.
#3550 is new information, and in that case it may make sense to start versioning these JSONs before.

@s-urbaniak I made (and amended) the suggested changes, thanks!
@lucab I moved existing json models to a versioned package, mirroring what is being done for the gRPC API. Is that the right design? Is api/v1 the right home for them?

@fabiokung I'm fine with your answers and cleanup, I'm just worried that people should not rely on this JSON output until we stick some versioning on top of it.
To be explicit, I'd like to see:
$ rkt status --format=json f4ef2301-511f-4ab0-9ce9-fdd02a76798e | jq "."
{
  "kind": "rkt-status-v0",
  "value": {
    "name": "f4ef2301-511f-4ab0-9ce9-fdd02a76798e",
    "state": "exited",
    "app_names": [
      "busybox"
    ],
    "apps": [
      {
        "name": "busybox",
        "state": "exited",
        "created_at":<PHONE_NUMBER>323730200,
        "exit_code": 12,
        "image_id": "sha512-4014cef722fd0105ad0b90a95d403a6a236f6c3fa1e45fc8b0deb319d493d524"
      }
    ],
    "started_at":<PHONE_NUMBER>
  }
}

before touching JSON output and pointing people to it. If your usecase to expose those info is to parse them externally, I fear we are already at that point.

I don't think we need to couple getting versioning right with including this change.
There's no semantic changes to the current fields, and adding new fields to a json document can generally be considered backwards compatible.

This PR has already enough LGTM and I have been persuaded by the above thread that my stance of coupling this with output-versioning is not the best course of action, so I'm merging this while keeping #3551 open. @fabiokung sorry for the back and forth and thanks for your contribution!


main to live

Docs Build status updates of commit 97c1fd3:
:clock10: Pending: waiting for processors (8 builds ahead of you)
:warning: Docs Build is busy, currently there are 8 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 97c1fd3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Advertising/bingads-13/guides/release-notes.md
:white_check_mark:Succeeded

Advertising/bingads-13/guides/report-attributes-performance-statistics.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/accountperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/addynamictextperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/adgroupperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/adperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/audienceperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/campaignperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/destinationurlperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/dsaautotargetperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/dsacategoryperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/dsasearchqueryperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/geographicperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/keywordperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/professionaldemographicsaudiencereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/publisherusageperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/searchqueryperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/bingads-13/reporting-service/userlocationperformancereportcolumn.md
:white_check_mark:Succeeded

Advertising/hotel-service/reporting.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


feat!: Updating versions of CUDA, cuDNN, TensorRT and PyTorch

Description
Updates dependency library versions:

PyTorch version has been bumped to 1.8.0
Default CUDA version is CUDA 11.1
TensorRT version is TensorRT <IP_ADDRESS>
cuDNN version is now cuDNN 8.1

Type of change
Please delete options that are not relevant and/or add your own.

New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] My code follows the style guidelines of this project (You can use the linters)
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas and hacks
[x] I have made corresponding changes to the documentation
[x] I have added tests to verify my fix or my feature
[x] New and existing unit tests pass locally with my changes

@peri044 can you take a look. make sure to delete and redownload all the modules from hub.py.


Can't use libopenh264-2.0.0-android.so for my android app because of 32-bit support

Hi everyone,
In my video editing android app, I had to download libopenh264-2.0.0-android.so.bz2 dynamically from this site https://github.com/cisco/openh264/releases to use with ffmpeg.
However, if I disable 64-bit for the app, I can't publish the app on Google Play. The store requires 64-bit support.
If I enable 64-bit,  I can't use thi openh264-android.so library
Here is the way I disabled 64-bit in build.gradle
ndk {
abiFilters "armeabi","armeabi-v7a","x86"
}
Anyone can help on this issue please? thanks

Yap - same here. All compiled binaries are 32-bit it seems.

Noone can help even this repos is from cisco?

Just compiled for Android 64-bit ourselves.
You may grab the compiled 64-bit versions of libopenh264.so here: https://github.com/HippotecLTD/openh264-lib-android-64-bit/releases/tag/2.0

thanks a lot. We may provide that in next release. (do not have ETA due to low in resource)

some new binaries are available now at https://github.com/cisco/openh264/releases/tag/v2.0.0 , would you kindly help us to verify if it works? Thx
Find ‘android-arm64’ in names.

It worked now @sijchen , thank for your help!


Fix typo in Elliptic-Curve-DLP Pollard-Rho algorithm

Hi,
I spotted a small typo in the EC Pollard-Rho algorithm pseudocode.

Hey, yes you are right. Thanks a lot for pointing this out!