Add new options in project financial details

Is your feature request related to a problem? Please describe.
In the portal, there are a few categories of projects like hourly billing, fixed budget, and AMC. Among these AMC projects are the projects where we are only responsible for the system maintenance and no new features or enhancement is covered in this.
The contract period for these AMC projects is of 1 year or more based on contract terms and the invoice for AMC projects goes quarterly i.e every 3 months.
We want to send invoices for AMC projects quarterly. For this we need to have options of Per Month, Per Quarter, Per Year in the project financial details

Describe the solution you'd like

[x] Read about Controller in Laravel. Share your understanding of why we use them in the task comment in your own language
[ ] Read about Model in Laravel. Share your understanding of why we use them in the task comment in your own language
[ ] Read about Views and blade files in Laravel. Share your understanding of why we use them in the task comment in your own language
[ ] Find the code for the project financial details section
[ ] Figure out how options are shown in dropdown
[ ] Add new options in the dropdown
[ ] Read how we can print a value in Laravel using dd()
[ ] Try printing hello world using dd function
[ ] Now read about Routes in Laravel. Share your understanding of why we use them in the task comment in your own language
[ ] Now read about how forms are submitted in Laravel. Share the data flow from form to backend using a rough diagram. Post the image in the comment.
[ ] Check how the data is getting stored in the database. Share the list of functions in a sequence that are being used while execution of the whole flow.

Additional context
Once this is implemented we can use this detail to generate invoice for AMC projects. For that we will create new tasks.
Point of Contact for Guidance
@GauravGusain98

Controller are class based php files . controller can group related request handling logic into a single class, Basically it acts as a intermediator between model and view. Controller call model and insert data into view.
types of controller laravel provide

Basic controller
Single action controller
Resource controller

Controller are class based php files . controller can group related request handling logic into a single class, Basically it acts as a intermediator between model and view. Controller call model and insert data into view. types of controller laravel provide

Basic controller
Single action controller
Resource controller

Can you tell me how we are using controller when we are submitting any form from Portal? If you're using any technical term in your language like model, views then please explain them as well.
Note: Just write in simple sentence what you understood. No need to write the language that you are finding on google.

1.Controller in Laravel
Controller is the central unit of laravel framework it connect the view and model. It interact with model component to fetch data from the database and then pass that data to the view component to get the output on the user browser

2.Model
Model handles the data used in application. It helps to fetch the data from database and perform some operation. Each database table has a corresponding model

3.View and Blade
View include frontend code . It contain the part of code which helps to display data on the user  browser.
Blade is a templating engine in laravel. It convert plain text into php text.

code for project finance details

New option is added successfully

printing hello world using dd function

printing hello world from dd funtion

Route is used for creating request URL for any application. It help us to map all request which are coming from associate controller. Routes have two parameters i.e data and function

Data Flow Diagram

Data Flow Diagram

Nice try. The flow diagram doesn't correctly represent the flow of data like we use in Portal.
Can you write down the steps in sequence of how data moves from a form to a database and then back to the view.

step 1 Make a form in view
step 2 Make a controller for submit data
step 3 Make routing for view and controller
step 4 Get form value in controller

step 1 Make a form in view step 2 Make a controller for submit data step 3 Make routing for view and controller step 4 Get form value in controller

This is not correct. Hint: The first step is the data moves from form to route. Please write further steps

Step2. data moves from route to controller
Step3. data moves from controller to model
Step4. data moves from model to database

Steps for data getting store in database
Step 1. Create a form
Step 2. Create a route for form
Step 3. Create a controller
Step 4. Create a route for Controller
Step 5. Create a model for the table
Step 6. Import model in controller
Step 7.In controller create a function for store data

Step2. data moves from route to controller Step3. data moves from controller to model Step4. data moves from model to database

Step 4: Once we get data from model we return it to controller
Step 5: Controller return that data back as a response or as a view

Three More options are Added to dropdown

Three More options are Added to dropdown

Please move Per Resource and Overall option to bottom.

Done with Changes


Implement alternating division schemes between adjacent hexahedra and wedges

Modifies the source mesh workflow to alternate the scheme by which hexahedra and wedges are split into tetrahedra. The alternating schemes ensure that the faces of adjacent tetrahedra, but not belonging to the same hexahedron or wedge, match one another. This avoids gaps and overlaps between adjacent non-planar hexahedron and wedge faces. This alignment is ensured for adjacent wedge-wedge, wedge-hexahedron, and hexahedron-hexahedron pairs. Code changes are as follows:

Introduces alternate_scheme, toroidal_alt_scheme, and cfs_alt_scheme boolean parameters to control whether an alternate division scheme should be used for a given element
Introduces an alternate division scheme, in the form of MOAB canonical indices defining the tetrahedral division of a given element, for both hexahedra and wedges

The alternate splitting schemes are illustrated below. Plots will follow to demonstrate expected behavior of total volume and total source strength as a function of mesh discretization.
(a)
(b)
Figure 1. Alternate schemes for adjacent hexahedra. (a) Original and (b) alternate.
(a)
(b)
Figure 2. Alternate schemes for adjacent wedges. (a) Original and (b) alternate.
Closes #168

Below are plots demonstrating that total source strength (in the form of fusion power, calculated for four periods even though only one period of the source mesh is modeled) and total mesh volume scale as expected with mesh discretization.
Expected behavior:

Total source strength converges to some value with increasing CFS discretization
Total volume remains constant with changing CFS discretization
Total source strength changes reflect changes in total volume with changing poloidal discretization
Total volume converges to some value with increasing poloidal discretization
Total source strength changes reflect changes in total volume with changing toroidal discretization
Total volume converges to some value with increasing toroidal discretization

(a)
(b)
Figure 1. Behavior of total source strength and volume as a function of CFS discretization. Numbers of poloidal and toroidal grid points are kept constant at 121 each. (a) Total source strength. (b) Total mesh volume.
(a)
(b)
Figure 2. Behavior of total source strength and volume as a function of poloidal discretization. Numbers of CFS and toroidal grid points are kept constant at 16 and 121, respectively. (a) Total source strength. (b) Total mesh volume.
(a)
(b)
Figure 3. Behavior of total source strength and volume as a function of toroidal discretization. Numbers of CFS and poloidal grid points are kept constant at 16 and 121, respectively. (a) Total source strength. (b) Total mesh volume.

I have another PR lined up once this is merged that will allow users to input their own grids, rather than us enforce uniformly spaced grids. I'd like to include checks on inputs (such as warnings for when grid sizes are not even) in that subsequent PR, since it touches a lot of that part of the code.

Can we just determine the meshing scheme from whether s_idx + theta_idx + phi_idx is even or odd?

Could then have canonical ordering indexed in a list with index 0 and 1 and directly use the one you want indexed by the alternate scheme variable.


Determine strategy for nested values in data dictionaries

Many data dictionaries are simple flat tables of field names and definitions. However, some have more complex schemas where certain fields have their own codebooks.
Here is an example: https://resources.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_co_rice/loc_addresses/metadata/metadata.html
How might we store a table like this?

This example does not include a data dictionary, but more of a codebook: https://resources.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_state_dnr/biota_landcover_landsat_tm_1990/metadata/metadata.html
What would our strategy be for this?

Hmmm... these examples are a bit complex. And an external distribution link of "Documentation (external)" type won't suffice here?
If that is indeed the case, I think we'd want to store/capture the webpage (HTML) here.
Options:

Have Wayback Machine archive it, using something like: https://github.com/buren/wayback_archiver
Add an optional "asset" uploader to the DataDictionary model for uploading (HTML file, or a zip file, maybe PDFs, etc.)

I think assigning this as Documentation link and/or saving the HTML page would work. I am kind of exploring the limits of what we can store in a structured way to provide users with more consistent ways to understand the data content.

For now, nested values can be described or accessed via a link from within the cell. We can also create a standalone file assigned to the Documentation reference key.


add term relationshipAccordingToID to Resource Relationship extension

Suggest to add relationshipAccordingToID to Resource Relation extension to help link human readable text (e.g., some citation) to a machine readable identifier (e.g., some doi) .
For discussion see trias-project/uredinales-belgium-checklist#8 (comment) .

This proposal needs more evidence for demand (see the Vocabulary Maintenance Specification - Section 3.1). Anybody who is interested in the adoption/change of this term, should comment with their use case below. If demand is not demonstrated by the next annual review of open proposals (late 2020), this proposal will be dismissed.
@jhpoelen note that #186 will be submitted for public review.

@peterdesmet excellent - thanks for the update. I hope that #186 (once approved) will be sufficient to get more folks to use Resource Relationship extension for species interactions.

Hi @jhpoelen,
This request involves the creation of a new term, thus, in accordance with the Vocabulary Maintenance Standard (VMS) Section 3 it requires a full review, a public commentary, ratification if warranted, and then implementation.
We are at the stage in the process where we have to demonstrate that the three main requirements for moving forward a change request are met. From the VMS Section 3.1:

Because the primary purpose of TDWG vocabularies is to facilitate data sharing, it is necessary to show that multiple parties will benefit from the change. As such, it is a minimum requirement that two independent entities indicate that they desire the change (the demand requirement). Additionally, it is required that there is a consensus within the community that the proposed change will accomplish the desired outcome (the efficacy requirement), and that making the change will not adversely affect the interoperability of existing implementations that depend on the stability of the vocabulary (the stability requirement).

Before the proposal goes to public review, the demand requirement has to be demonstrated. It is the burden of those proposing to make this case. It has not been made explicit so far. In order to facilitate assessment, it is essential that the complete proposal be made explicit as well. Have a look at the  the Guidelines for contributing and the following issues as examples of how to do that:
https://github.com/tdwg/dwc/issues/237
https://github.com/tdwg/dwc/issues/246
With the two prerequisites described above satisfied, the proposal can move forward. The Darwin Core Maintenance Interest Group has its open annual review meeting on 2020-09-23T14:30+00:00, during which we will attempt to make progress on as many open issues as possible. The more mature a justification is, the further along we can move a proposal.

@tucotuco Thanks for confirming review status of proposal https://github.com/tdwg/dwc/issues/283  and for pointing to the more appropriate issue reference.

Closing for lack of evidence of demand.


Removing bottom bar from mobile interface

I understand the aim of the bottom bar, but it's taking a lot of space. Can we remove it?

The home button is equal to clicking the "RecNet" logo at the top-left. Can we add the profile image and rec button in the remaining space at the top bar?
Alternatively, we can a floating rec button at the bottom-right, like Twitter does:

I added the bottom navigator because I think

Moving the avatar to top-bar makes the top-bar look a little bit full (still doable tho)
From user-experience perspective, having a bottom bar will make your thumb easier to reach and navigate to different pages.

The floating button also inherits the second advantage (easier to click), I can change to that if you want.

Really good point about user experience.
Can we make it smaller then? Twitter has better content/bar ratio

Really good point about user experience.
Can we make it smaller then? Twitter has better content/bar ratio

Yea I think that's why Twitter and other social media all have the bottom navigation bar.
I will adjust it to make it smaller!


[stable/jenkins] Add Startup Probe

I am currently running into an issue where on startup, Jenkins indexes all my pipelines (branches, tags, PRs) which takes a long time. During this period, without setting an extremely high master.healthProbeReadinessInitialDelay & master.healthProbeLivenessInitialDelay, the Jenkins deployment will simply go into a restart loop.
One way of helping to mitigate this issue is to add a Startup Probe to the Jenkins deployment. Startup Probes were introduced in K8s v1.16 so it should have a version check. Example:
# jenkins-master-deployment.yaml
...
{{- if .Values.master.healthProbes }}
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion -}}
          startupProbe:
            httpGet:
              path: "{{ default "" .Values.master.jenkinsUriPrefix }}/login"
              port: http
            initialDelaySeconds: {{ .Values.master.healthProbeStartupInitialDelay }}
            periodSeconds: {{ .Values.master.healthProbeStartupPeriodSeconds }}
            timeoutSeconds: {{ .Values.master.healthProbesStartupTimeout }}
            failureThreshold: {{ .Values.master.healthProbeStartupFailureThreshold }}
{{- end }}
          livenessProbe:
...

Is your feature request related to a problem? Please describe.
See above
Describe the solution you'd like
Add a startupProbe so that the Readiness and Liveness probes can kick in sooner, and thus allow the Service endpoint to become available. This avoids unnecessary static wait times when using long initialDelaySeconds.
Describe alternatives you've considered
Set long initialDelaySeconds for Readiness and Liveness probes
Additional context
Add any other context or screenshots about the feature request here.
P.S.: If anyone else has run into the long indexing issue at startup, would love to hear how you fixed/mitigated it.

Nice suggestion! Would you create a PR for this?


model binding in parent directive

Hi, i created a directive that wraps ion-autocomplete and sets several attributes by default. It also handles geocoding with google api.
Everything works really well except the model binding.
If i bind the attribute with "=" the item-view-value-key attribut is not working anymore. instead it shows the whole geocode object.
heres my directive:
function locationSearch($q, GpsService, GoogleService) {

return {
      restrict	: 'E',
      templateUrl : 'app/commons/directives/location-search/location-search.tpl.html',
      replace 	: true,
      scope : {
        inputId : "@",
        placeholder: '@',
        cancelLabel: '@',
        selectItemsLabel: '@',
        selectedItemsLabel: '@',
        itemsClickedMethod: '=',
        cancelButtonClickedMethod: '=',
        model : "="

      },
      link: function($scope, element, attrs) {

        $scope.itemsMethod = getAddressSuggestions;

      //////////////////////////////////////////////////

        function getAddressSuggestions(query) {
          if (typeof query === "string") {
            return GoogleService.geocodeAddress(query);
          }
          return GoogleService.geocodeLatLng(query);
        }

      }

    }

here my template:
<label class="item-input-wrapper">
       <i class="icon ion-ios-location-outline"></i>
       <input id="{{inputId}}"
              type="text"
              readonly="readonly"
              class="ion-autocomplete"
              autocomplete="off"
              placeholder="{{placeholder}}"

              ion-autocomplete
              items-clicked-method="itemsClickedMethod(callback.item)"
              cancel-button-clicked-method="cancelButtonClickedMethod()"
              selected-items-label="{{selectedItemsLabel}}"
              select-items-label="{{selectItemsLabel}}"
              ng-model="model"
              item-view-value-key="formatted_address"
              items-method="itemsMethod(query)"
              max-selected-items="1"/>
</label>

and here my view
<location-search input-id="origin-input"
                           placeholder="Origin address ..."
                           selected-items-label="Origin:"
                           select-items-label="Select your origin..."
                           items-clicked-method="route.showOrigin"
                           cancel-button-clicked-method="route.hideOrigin"
                           model="route.origin">
          </location-search>

How can i sync the model attribute (route.origin) with ion-autocomplete in my custom directive?

Hi @BioPhoton,
cool idea to wrap it into another directive but I think you should use the bindToController and the controllerAs properties as this is the way to define these properties in Angular 1.4 and then also pass the ngModel to the directive instead of your own route.origin object.
Also have a look at this stackoverflow question: https://stackoverflow.com/questions/29915223/angularjs-pass-ngmodel-from-wrapper-directive-to-wrapped-directive
I hope this solves your issue.
Thanks and regards,
Guy

Hi @BioPhoton,
I will close the issue due to inactivity. Please reopen it if there is still an issue.
Thanks and regards,
Guy

Fine with it!


chore: rename everything from rctmgl to rnmbx

Description
PR changing all of the names of components from RCTMGL to RNMBX including all the generators, folders etc.
Checklist

[ ] I have tested this on a device/simulator for each compatible OS
[ ] I updated the documentation with running yarn generate in the root folder
[ ] I added/updated a sample - if a new feature was implemented (/example)

Screenshot OR Video

@WoLewicki can you look into the tests? They are failing yarn jest

Since we're on the cusp of new versions (MapboxMaps 10 -> 11) and are already doing some renaming, what is everyone's thoughts on keeping the latest versions' code not having prefixes/suffixes, and only after something is outdated does it include prefixes/suffixes if unavoidable? For example, I feel like it's already confusing that everything in RCTMGL-v10 is the actual new code being worked on as opposed to just RCTMGL, which will only get worse with mapbox v11, v12, etc.

Since we're on the cusp of new versions (MapboxMaps 10 -> 11) and are already doing some renaming, what is everyone's thoughts on keeping the latest versions' code not having prefixes/suffixes, and only after something is outdated does it include prefixes/suffixes if unavoidable? For example, I feel like it's already confusing that everything in RCTMGL-v10 is the actual new code being worked on as opposed to just RCTMGL, which will only get worse with mapbox v11, v12, etc.

The reason for renaming is that "RCT" prefix is reserved for internal react-native components. MGL prefix is outdated as well as GL refers to OpenGL which is no longer used on iOS. We also could get away without any prefixes, as swift and java has namespaces, but ObjC doesn't, so I think the simplest one is using the RNMBX prefix for now.
I do agree that it sound like a good time to remove the -v10 from the folders.
Also using com.mapbox.rnmbx on android is a bit confusing as it's not a Mapbox project, but I'm not sure what's the best alternative, maybe just rnmapbox.rnmbx
But I personally don't feel very strongly about naming. This is a legacy codebase, and there are a lot of issues with the code, naming is the least important for me.

@mfazekas  tests should be good now.

@WoLewicki thanks I'll try to merge tonight. Do you mind the other renaming suggested here?
In directories:
java-v10 => java
RNMBX-v10 => `RNMBX'
And moving the java namespace from com.mapbox.rnbmx' to rnmabpox.rnmbx` ?

So should I remove com or did you mean com.rnmabpox.rnmbx? I pushed a change with the com.rnmabpox.rnmbx and the other requested changes.

So should I remove com or did you mean com.rnmabpox.rnmbx? I pushed a change with the com.rnmabpox.rnmbx and the other requested changes.

I was thinking of the one without '.com' as we don't have the rnmabpox domain, but it should be good as is, the issue was that since it's not an official mapbox library we shouldn't be using the com.mapbox namespace.

Hey, I have a question. I can see you are merging my PRs through making another PR with all the commits from my PR and then merging them. This way I am not the author of the commit and not added as a contributor. Is it done on purpose @mfazekas ?

@WoLewicki So the issue is that because actions are using GitHub secrets it's not running for branches outside. Since Mapbox SDK needs access token, only basic test are running for PR-s from forks.
That's why I cloned/tested your PR. You should be marked as contributor, but GH adds my name as well.
Let me know if you have suggestions about that. I'll try to add you as a contributor to the repo, so you CI can run on your PR-s.

Hmm I am not too familiar with CI setups, but is there no option to run the CI on the other branch with all the changes that is made by you and then eventually merge the original PR? Or is it dangerous in any sense? I cannot see myself in the contributors: https://github.com/rnmapbox/maps/graphs/contributors and looks like I am only a coauthor of the commit: https://github.com/rnmapbox/maps/commit/c72d4da9c35979dc507667b2f1fe10cde5e8d66f so it can be discouraging for new contributors to the library.

And thanks for adding me as a contributor 🚀

@WoLewicki Sorry I don't know about details of GitHub contributors graph. I think you should show up. I did see a "Contributor" badge in GitHub comment, where I now see member.

And your name is on the commit.

So not sure why you're not on contributors graph.
Yep I could have pressed the merge on your pr in this case. In a lot of cases I also add smaller changes to the PR, so I usually merge mine and close the authors. I wasn't aware that it has effect on contributors graphs:
The process is described here:
https://web.archive.org/web/20160622033602/http://blog.spreedly.com/2014/06/24/merge-pull-request-considered-harmful/#.V2oHqC3P1qY


[Feature request] Custom trigger/end profiling point

As a reminder.
I want a custom trigger/end profiling point feature. It's useful profile asynchronous event.
Example, profiling audio decode performance.
fetch( url )
	.then( response => {
		return response.arrayBuffer();
	} )
	.then( arrayBuffer => {
		WebGFXTests.startProfile();
		return context.decodeAudioData( arrayBuffer );
	} )
	.then( audioBuffer => {
		WebGFXTests.endProfile();
		var source = context.createBufferSource();
		source.buffer = audioBuffer;
		source.connect( context.destination );
		source.start( 0, 0, 10 );
	} );

Note from the discussion on Slack.
One of the problems of explicit start/end point call is a test has the dependency of webgflx-tests. It'll break a test (app) in "launch" mode which doesn't inject the code for the test.

Custom kickoff which starts the test and then runs for specified frames is also useful.
I have been working on testing Hubs with webgfx-tests. I want to start test at certain condition is satisfied, for example

All the assets are downloaded and added to scene graph
Some remote peers are joined the room
Some remote peers placed some objects
Some remote peers start web camera

Hubs is big so hard to edit the code to start requestAnimationFrame after the conditions are satisfied.


Disable following year

Is there a way to disable the following year? i mean i want to restrict that user cant select a year more than the current year. because i will use the date picker to restrict under 18 years old

this is easy to do with min/maxDate
minDate: moment().subtract(18, 'y'),
maxDate: moment().add(1,'y')

the minDate: moment().subtract(18, 'y'), is not working, i can still select the year that is not supposed to be chosen as i will be requiring to register and select only those 18 years old and above


Backmerge 2.6.x to master

Getting all the changes from the 2.6.x to master

The OpenAL binaries can be ignored as we use miniaudio instead on master branch.

I pushed my CI fixes as a new commit so they're separate from the work you've already done in case we want change our minds on the solution I picked.
In SFML 2, our CI pipeline does do unity builds. As a matter of coincidence, our three separate definitions of getErrorString don't get compiled in the same translation unit so the unity build never failed. That's why the v2 CI pipeline has always passed. Something about merging into master caused CMake to rearrange which files get compiled together during the unity build causing this error to manifest.
No matter what, we need to collapse these three nearly identical functions into one. This is required to fix our unity build errors in v3 plus it's just good software engineering. Having two identical functions is potentially acceptable but I draw the line at 3 identical functions. The only question is whether we bother also fixing this in v2. We can get away with not fixing it in v2 if we want. Perhaps we just wrap some extra namespaces around these functions as a short term fix in v2 while we do the proper fix in v3 as I already wrote.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

11 of 29 (37.93%)  changed or added relevant lines in 3 files are covered.
6 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.05%) to 56.261%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/SFML/Window/Win32/Utils.hpp
9
10
90.0%

src/SFML/Window/Win32/ClipboardImpl.cpp
2
7
28.57%

src/SFML/Window/Win32/WglContext.cpp
0
12
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/SFML/Window/Win32/ClipboardImpl.cpp
1
72.73%

src/SFML/Window/Win32/WglContext.cpp
5
73.26%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
11679

Relevant Lines:
19688

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

11 of 29 (37.93%)  changed or added relevant lines in 3 files are covered.
970 unchanged lines in 30 files lost coverage.
Overall coverage decreased (-0.4%) to 55.796%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/SFML/Window/Win32/Utils.hpp
9
10
90.0%

src/SFML/Window/Win32/ClipboardImpl.cpp
2
7
28.57%

src/SFML/Window/Win32/WglContext.cpp
0
12
0.0%

Files with Coverage Reduction
New Missed Lines
%

include/SFML/Window/WindowBase.hpp
1
0.0%

include/SFML/Window/Window.hpp
1
0.0%

src/SFML/System/Err.cpp
1
98.25%

src/SFML/Window/macOS/SFOpenGLView+keyboard.mm
1
6.49%

src/SFML/Window/Win32/ClipboardImpl.cpp
1
72.73%

include/SFML/Graphics/Transform.inl
2
98.33%

src/SFML/Graphics/RenderTexture.cpp
5
89.09%

src/SFML/Window/Win32/WglContext.cpp
5
73.26%

src/SFML/Window/Win32/CursorImpl.cpp
8
81.31%

src/SFML/Window/Win32/InputImpl.cpp
9
64.29%

Totals

Change from base Build<PHONE_NUMBER>:
-0.4%

Covered Lines:
11675

Relevant Lines:
19690

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

10 of 33 (30.3%)  changed or added relevant lines in 3 files are covered.
1081 unchanged lines in 31 files lost coverage.
Overall coverage increased (+0.5%) to 56.273%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/SFML/Window/Win32/Utils.hpp
9
10
90.0%

src/SFML/Window/Win32/ClipboardImpl.cpp
1
6
16.67%

src/SFML/Window/Win32/WglContext.cpp
0
17
0.0%

Files with Coverage Reduction
New Missed Lines
%

include/SFML/Window/WindowBase.hpp
1
0.0%

include/SFML/Window/Window.hpp
1
0.0%

src/SFML/System/Err.cpp
1
98.25%

src/SFML/Window/macOS/SFOpenGLView+keyboard.mm
1
6.49%

src/SFML/Window/Win32/ClipboardImpl.cpp
1
71.7%

include/SFML/Graphics/Transform.inl
2
98.33%

include/SFML/Audio/AudioResource.hpp
2
0.0%

src/SFML/Graphics/RenderTexture.cpp
5
89.09%

src/SFML/Window/Win32/CursorImpl.cpp
8
81.31%

src/SFML/Window/Win32/InputImpl.cpp
9
64.29%

Totals

Change from base Build<PHONE_NUMBER>:
0.5%

Covered Lines:
11681

Relevant Lines:
19690

💛  - Coveralls


Better extraction of text for style validation

Need to ignore bibliographic locations, hyperlinks
Will, I think, end up decoupling validation from asciidoc now, and have it operate on the XML. As it should.

Skipping location and link in validating text. Almost all validation occurs on XML and not Asciidoc input, and uses line numbers of the XML.


Expand spec coverage for DistributionUpdateService

Fixes #1582
Description
Per the description in 1582, this adds more specs to the DistributionUpdateService. I also identified a bug where the error message for standard errors was not being persisted in the object. It is now.
Type of change

Bug fix
New specs

How Has This Been Tested?
It's literally tests.

@edwinthinks Thanks! Just pushed up updates

Updated with master with the new changes from #1658


chore(deps): update common-dev-assets digest to d8a541e

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
098364a -> d8a541e

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 1.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


filterJson string filtering throws error "field does not exist on enclosing type"

Trying to use the new json filters, but they don't seem to work.
My schema:
model Article {
  id           String   @id @default(cuid())
  content      Json
}

Using a query like
await client.article.findFirst({
          where: {
            content: {
               path: [ 'slug' ],
               string_contains: 'a-blog-post'
            },
          },
        })

Throws an error:
Invalid `prisma.article.findFirst()` invocation:
  Failed to validate the query: `Field does not exist on enclosing type.` at `Query.findFirstArticle.where.ArticleWhereInput.content.JsonNullableFilter.path`
 Error:
Invalid `prisma.article.findFirst()` invocation:

  Failed to validate the query: `Field does not exist on enclosing type.` at `Query.findFirstArticle.where.ArticleWhereInput.content.JsonNullableFilter.path`
    at cb (/data/wyrd/social/node_modules/@prisma/client/runtime/index.js:35101:17)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Service.handler (/data/wyrd/social/wyrd/resource/services/resource.service.ts:240:22)
    at Service.callAction (/data/wyrd/social/node_modules/moleculer-web/src/index.js:588:16)
    at /data/wyrd/social/node_modules/moleculer-web/src/index.js:420:22
Data:

I tried using equals instead of string_contains, tried using a simple string path (instead of an array), but it throws the same error.
I am using Postgres 12.6 on Ubuntu.

I will try to add a reproduction once I get some sleep.

Hi, just to report I am unable to reproduce now myself. At the time I had some strange issues with Postgres, and since reinstalling this seems to work ok. I will close the ticket. Thanks for your suggestion (I had the feature enabled already, it was something low level, probably to do with postgres). Cheers


Added cloudtrail status to watcher. Generates an audit issue when clo…

Added cloudtrail status to watcher. Generates an audit issue when cloudtrail is disabled

Get the status of cloudtrail get_trail_status()
Generate an audit issue when cloudtrail is disabled.

Coverage decreased (-0.05%) to 51.887% when pulling 4c6e5f6e56f0d3d1795d483f80c561fb758c07cd on nagwww:cloudtrail_enabled into 31de86f9cf1a82a77eb98f6c54fa67a1f53cdf5b on Netflix:develop.

Coverage decreased (-0.08%) to 51.863% when pulling ee2dd98c7abf63e09e8a3dc6949383b8f4206185 on nagwww:cloudtrail_enabled into 31de86f9cf1a82a77eb98f6c54fa67a1f53cdf5b on Netflix:develop.


Fix minor typos and formatting

Fix minor typos and formatting

Internal previews

📄 File
🔗 Preview link

aspnetcore/mvc/controllers/routing.md
aspnetcore/mvc/controllers/routing

@guardrex  all we care about is the latest version and the latest version is on the top.

@garyng  massive improvements.
Be sure to check out your name as a contributor about the 3rd of next month on the What's new page in the Community contributors section at the bottom.
Hopefully you'll keep contributing.

Some of these aren't minor typos.

Heyy, I didn't notice there are 2 copies of the same content. I created the https://github.com/dotnet/AspNetCore.Docs/pull/28760 for replicating the changes.
Thank you!

@garyng, this reminds me of something that Ryan Nowak (an Azure engineer/manager these days) said years ago pertaining to engineering guidelines that some things are under "under civil debate" 😄 as "camps" of engineers support one approach or another. The topic of that discussion was the use of the this keyword versus underscoring class variables. Today for docs pertaining to your two PRs, it's the use of what we call Whole-topic Versioning, where each release, all of the content of a doc is copied and updated.
Over time, the copies pile up. For a content change across versions, readers often don't understand that they should search and destroy the content problem in multiple copies of the doc. Doc authors are aware of this, but I think it's safe to say that we all find it tedious to make a single change multiple times down several copies of a doc, thus @Rick-Anderson's remark about just making the updates in prior versions for the most serious class of problems, security updates.
I've been converting Blazor docs back to normal versioning, and I really like IT! 👍😄 It's saving me time and aggravation, thus it's saving MS 💰. Readers who submit a PR for a Blazor doc only need to find and fix the one spot of trouble in a doc.
There might be a couple of docs that will benefit from the Whole-topic Versioning approach because if a doc flips wildly in and out of versioning tags, it can get very confusing and hard to maintain a doc. In those cases, I'll keep Whole-topic Versioning, but most Blazor docs are easier to maintain without it ... with one copy of the content and the normal use of versioning tags.
Going back to normal versioning is also avoiding a serious problem with copies of the content: broken links 🙈. When there are multiple full copies of the content, the headings are copied. Headings form the basis of bookmarked cross-links. The docs build system numbers the ids of the duplicate headings. For example, ## My heading copied in markdown leads to ...

My heading

My heading

...

My heading

However, links to the section elsewhere in the docs aren't numbered (i.e., .../#my-heading), so bookmarks are fine for the current version but break 💥 in older versions. We get fairly regular negative reader feedback on this. It's also just flat-out embarrassing ... MS can't build a website that isn't full of broken links! 🙈😄 The Blazor docs that have dropped copies of content also drop the multiple headings, so the Blazor docs are avoiding the problem of broken links for prior versions.
Generally, Ryan was right! 😄 Some things, including on this subject, will remain ⚔ "under civil debate" ⚔ here. 😆 Versioning content is challenging, and there are several ways that it can be accomplished, each with pros and cons.


net-vpc - add missing iam properties to factory_subnets

Module: net-vpc
When creating subnets via a data folder input, the properties iam_groups, iam_users, and iam_service_accounts are ignored. These are required in order to bind "roles/compute.networkUser"
The default value in the try function is an empty list as formatting in _factory_subnets_iam cannot be performed on a null value.

Hi, regarding the example tests. I believe the only failing test occurs because the extra resource 'google_compute_subnetwork_iam_binding' was ignored in the previous module and therefore not accounted for in the tests. Now that the iam properties are there, an extra resource would be created.


Fix skipping of MongoClientAggregateTest

As discussed in #237, tests that require both pymongo and pyexecjs aren't being run at all since there is no tox factor which includes both. To fix this, I've just added the pyexecjs dependency to the pymongo dependencies.  They seem to only be failing because the CI runs with an older version of mongo (2.6.12).
All tests pass when running it locally with mongo 3.2

Hi @srinivasreddy! Any comment or feedback on tis?

@matt-snider  Thanks for the PR and apologies for the late reply.
Could you please resolve conflicts. I will take a look in a day or two.
Thanks for your patience.

@srinivasreddy No problem. I've rebased onto develop and reverted one commit, as it was fixed in 50c694180a9d266d4a5bb3e322bb57bbf6ee8783

But I guess the Travis build won't be triggered by an old commit. Can it be triggered manually?

@matt-snider  Yes. You can do that by closing the pr and opening again. :smile:

As mentioned above, the failing tests are due to the mongo version used. The $min operator for $project stages only became available in v3.2.
I've updated the tox.ini file to use mongodb 3.2, but I'm not sure if this is desirable.
Let me know what you think.

I am not sure of this.  tagging. @mdomke  @vmalloc

This was eventually fixed by #424


fix: adding & corrections in outputs

@ShadyWhite @r4ha Please review this.

By the way, @quisquous there are directions like north/south/east/west in outputs, but no northeast/southwest, could I add them in?

By the way, @quisquous there are directions like north/south/east/west in outputs, but no northeast/southwest, could I add them in?

Go for it!
I think it would be useful to have the full names, e.g. northeast but then also have something for the abbreviated NE version.  Maybe call those dirNE to avoid having single letter keys? Or, I can add them in too if you just want to do the intercardinal longer versions.

Thanks!!


Avoid duplicate files to upload

How can I show an error while selecting the same file name which was already uploaded.

Please post questions on stack overflow.

OK here is the solution if someone needed
https://jsfiddle.net/DorababuMeka/ydj2aruL/


Fix completionItem/resolve sending snippets as plain text

This fixes https://github.com/neoclide/coc.nvim/issues/1040

I'll merge since this fits an issue for me as well :)


NO-ISSUE: upgrade x/net lib to mitigate for CVE-2023-44487

Description

Upgrading golang net library
How was this code tested?

Assignees

/cc @adriengentil
/cc @eifrach
/cc @gamli75
Links

Checklist

[ ] Title and description added to both, commit and PR
[ ] Relevant issues have been associated
[ ] Reviewers have been listed
[ ] This change does not require a documentation update (docstring, docs, README, etc)
[ ] Does this change include unit tests (note that code changes require unit tests)

Need to fix lint

@rccrdpccl can you check this  #153
maybe we can merge them togther ? seems all test are passing

@rccrdpccl can you check this #153 maybe we can merge them togther ? seems all test are passing

Nice, I think that one alone should be enough!

Close in favour of https://github.com/openshift/assisted-image-service/pull/153
Let's fix first the CVE then we'll align golang versions in a second stage, as it appears more lengthy than imagined


Do not return password when creating a user

Fixed in https://github.com/duckduck-team/quackit-api/commit/06b678f5bffd53cfb86f4686cd68a8470776e097


Upgrade dependencies + Android Gradle Plugin 3.0 support

Built off of #974, fixes #883
@samtstern I hope you don't mind me taking over, but the AGP recently reached rc1 and I'd like us to benefit from the perf improvements and other goodies. My B if you wanted to do that! 😊

@samtstern I would also recommend clearing the cache while we're at it to start fresh.

@SUPERCILEX thanks for raising this, I just did a few things:

Merged master into 3.0.1
Merged master into my other PR
Cleared the caches, as you suggest
Updated my other PR

Let's continue this as a review on the other change!

@samtstern Thanks! Are you sure you want to do a review on your PR? There are quite a few extra changes in this one... maybe I could pull in your commit or you do so with mine?

@SUPERCILEX ok I will merge your changes into mine.


Improve Signature field names

Applies to both ecdsa::Signature and taproot::Signature.
Re-name the Signature fields with more descriptive names. The names used were decided upon in the issue discussion.
Impove rustdocs while we are at it.
Note, the change to sign-tx-segwit-v0 is refactor only, the diff does not show it but we have a local variable already called sighash_type that is equal to EcdsaSighashType::All.
Fix: #2139

This is missing the API break label.


Splice Machine support

www.splicemachine.com
Please can you confirm if any special changes are needed for supporting this hbase backed rdbms ?
Or can we assumed that since they use derby as developer interface all scenarios will get automatically supported ?
If support is official please consider adding that DB support to the webpage
disclaimer : I am not working with them , I am planning to learn and use it, so evaluating it.

Closing due to lack of interest.


Function to set search string

Is there a function/solution to set a search string for the data table? If not, could you add such a function?

Same here

This feature will be added here https://github.com/gregnb/mui-datatables/pull/603.


[sharesix] fixed. finds new code and navigates to video page

Sharesix changed their method of navigating to the video page.

Can you rebase?


try to fix sqlite deadlocks I guess

As seen in https://github.com/rails/rails/issues/30937

um?

I don’t know! Honeybadger said “there was an exception where sqlite says the db is locked”. I think it’s because only one thread can write to the database at a time, and the web server has five threads, and postmark was sending multiple email webhooks requests in parallel?

Yeah but you set the busy timeout to 5000? Pretty rare to see writer starvation with human-scale timeouts like that. Are you 100% sure the database is in wal mode? The default journalling mode will put writers in competition with readers, which creates a lot more contention.

I am not sure! I have no idea how to adjust this stuff, I said “please use the file at this path kthx”On Jan 8, 2024, at 10:30 PM, Scott Perry @.***> wrote:
Yeah but you set the busy timeout to 5000? Pretty rare to see writer starvation with human-scale timeouts like that. Are you 100% sure the database is in wal mode? The default journalling mode will put writers in competition with readers, which creates a lot more contention.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>


thread

Hi how work thread in message i have
$folder = $this->client->getFolderByPath($folderName);
        $message = $folder->query()
            ->getMessage($messageId);
        $results = $message->thread();

but result is Call to a member function query() on null

Hi @tkowalski29 ,
it looks like the folder path you defined in $folderName does not exists. Are you sure that $folderName contains the correct folder path?
If you don't know if the folder path exists, you can check it before you use it:
$folder = $this->client->getFolderByPath($folderName);
if ( $folder != null) {
    $message = $folder->query()->getMessage($messageId);
    $results = $message->thread();
}

or..:
$folder = $this->client->getFolderByName($folderName);
if ( $folder != null) {
    $message = $folder->query()->getMessage($messageId);
    $results = $message->thread();
}

Best regards,

Thx @Webklex, but look on the screen. Is stopped inside if no outside.
folder and message definitely exist

in my opinion primary_folder in fetchThreadByInReplyTo is null and query returns exception. But I don't know how to fix it, without more action analysis

I found a solution. I set up my 'common_folders' and the error stopped. Maybe it's worth paying attention to in the documentation?
'common_folders' => [
                    'root' => 'INBOX',
                    'junk' => 'INBOX.Spam',
                    'drafts' => 'INBOX.Drafts',
                    'sent' => 'INBOX.Sent',
                    'trash' => 'INBOX.Trash',
                ]

THX @Webklex


Provide instructions for checking feature enablement status

In the "Install the Azure CLI aks-preview extension" part of this doc, we tell users how to register a feature. However, we don't tell the user (a) how to check the status of feature enablement, (b) that the feature enablement may take a few minutes, and that (c) the feature needs to be enabled before registering the provider.
Current flow, assuming a >1 minute delay to register:

User installs the aks-preview extension.
User registers the "EnableBlobCSIDriver" feature. From the returned JSON, the user can see that the feature has a state of "Registering". User may not know that they need to wait for the feature to be enabled.
User registers the Microsoft.ContainerService provider, which returns no output.
User attempts to create a new AKS cluster, using the --enable-blob-driver flag.
User is given the error unrecognized arguments: --enable-blob-driver.

Suggestion: Tell users they can use az feature show --namespace "Microsoft.ContainerService" --name "EnableBlobCSIDriver" to check feature enablement status, and that the feature needs to have a state of "Registered" to move on to the next step (registering the provider).
This may be broadly applicable feedback that applies to other documentation with similar feature enablement steps, but I haven't checked.

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

ID: e3d2e0b2-cba5-c6ca-fc37-100f3982eec0
Version Independent ID: 6a0b4a02-a46d-8cd4-360b-54d77ff554b3
Content: Use Container Storage Interface (CSI) driver for Azure Blob storage on Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/azure-blob-csi.md
Service: container-service
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@oliviacrain - Thanks for taking the time to share your constructive feedback. I agree we could do a better job with these steps to indicate a command may take time to complete and to your last point, running the az feature show command to confirm both the provider and feature are registered. Indeed, these steps are used consistently in other articles in the AKS content set, so I'll make sure that it carries over into any other article that does.
I'm creating a work item for this and will add it to our November sprint backlog.
As a result, I'm going to proceed with closing this issue.  #please-close

@oliviacrain
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


export: Add support for defining a custom font.

This PR adds a new flag called --font (There aren't any shortflags left though -fn might be a better fit.) which takes a font name as an argument. That font name is then passed to the export files and allows you to set a system-wide font.
The font name format should follow the output of fc-list : family to ensure it works in all applications.
This is backwards-compatible with previous versions and an absense of --font will result in None as the font value.
I'd like to eventually come up with a way for users to specify their own template files (Maybe a ~/.config/wal/templates/ directory) so that users can crate their own custom templates to populate. This would be handy for very user specific files such as a conky config.
Closes #82

Alright - very cool! This definitely goes a long way! Seems with this I'll also be able to modify wal-set, to get it working with dunst as well.
Without being at my desktop to try it, from what I can see it hasn't been added as an .Xresource? As an .Xresource I'd be able to use it with polybar as well. And I suppose the final annoying bit is things like urxvt and rofi where the font sizing is inline, and therefore might require a little extra to be automatically exported in a neat way.

Yup, you're right. I'm not really sure about how to export the font to Xresources cleanly. I don't want to mess with the user's configuration or cause potential issues if an incorrect value is provided or something goes wrong.
The simplest solution to me is to use your wal-set file to set the font. You can use the $font variable from colors.sh which allows you to append a font size, style or more complex changes if needed.
Example:
source "${HOME}/.cache/wal/colors.sh"

xrdb -merge <<< "URxvt*font: xft:${font}:size=16" \
            <<< "rofi.font: $font 16"

# OR

printf "%s\n%s\n " "URxvt*font: xft:${font}:size=16" \
                   "rofi.font: $font 16" | xrdb -merge

Before this is merged I need to think about whether or not this feature even fits the scope of pywal. Right now pywal only handles the color aspect of theming, it doesn't go beyond that.

Ah alright - I can use that instead!
I can see what you mean in terms of scope of the project. It could probably be handled in a neater manner with a separate projects specifically for fonts, thus allowing for more flags for rofi, urxvt etc. But I guess that's your call. There's definitely a chance I'd be the only one using the flag if you merge it!


Calling get_historic_weather error

Running sample shows
data_historic = ow.get_historic_weather(station_id, start_date, end_date) returning error:
ow = OpenWeatherMapRequests(api_key='My API-key', cache_name='cache-openweathermap', expire_after=5*60)
(lon, lat) = (2.34880, 48.853409)  # Paris

# Display current weather data
data = ow.get_weather(lon=lon, lat=lat)
print "Current Paris, FR weather data"
print data # (objects returned)

# Get 10 nearest stations from coordinate
stations = ow.find_stations_near(lon=lon, lat=lat, cnt=10)
print "Top 10 nearest stations"
print stations # Top 10 stations returned...

# Get station_id of nearest station
station_id = stations.iloc[0]['station.id']
print "Nearest Station"
print station_id # 137218

start_date = datetime.datetime(2015, 7, 19)
end_date = datetime.datetime(2015, 8, 19)
print start_date # 2015-07-19 00:00:00
print end_date # 2015-08-19 00:00:00

# Get historic weather from start to end date
data_historic = ow.get_historic_weather(station_id, start_date, end_date) # error here???
# print data_historic

As you can see all input arguments to get_historic_weather are returned, but calling it I get:
   raise ValueError('All objects passed were None')
ValueError: All objects passed were None

Anyone?

please show error

Hi you answered in another post where there is empty station_id, etc but here I clearly have printed valid objects before being passed to get_historic_weather function and it is here the scenario returning this error. Thanks.

station_id is not empty. That's historic data from OpenWeatherMap which is empty and I can't do anything about it.

Hi, a bit confused, you mentioned OpenWeatherMapRequests is empty? But your usage example uses this as object to get historical data?

http://api.openweathermap.org/data/2.5/history/station?type=hour&start=1436646230&end=1437510229&id=5530&appid=YOURAPPID
{
"message": "",
"cod": "200",
"type": "hour",
"station_id": 5530,
"calctime": 0.0013,
"cnt": 0,
"list": []
}

If I do it this way
import pandas as pd
json_str = 'http://api.openweathermap.org/data/2.5/history/city?q=Paris,FR&type=hour&start=1437264000&end=1439942400'
paris = pd.read_json(json_str, typ='series')

Ok, I wasn't using /history/city endpoint
If you want to do it yourself, you might do
import datetime
import requests
import pandas as pd
from openweathermap_requests import historic_weather_to_df, datetime_to_timestamp
base_url = 'http://api.openweathermap.org/data/2.5'
endpoint = '/history/city'
dt_start = datetime.datetime(2015, 7, 19, 0, 0)
dt_end = datetime.datetime(2015, 8, 19, 0, 0)
dt_start = datetime_to_timestamp(dt_start)
dt_end = datetime_to_timestamp(dt_end)
params = {
    'q': 'Paris,FR',
    'type': 'hour',
    'start': dt_start,
    'start': dt_end,
}
url = base_url + endpoint
response = requests.get(url, params=params)
data = response.json()
#df = pd.DataFrame(data['list'])
#from pandas.io.json import json_normalize
#df = json_normalize(data['list'])
df = historic_weather_to_df(data)

Would be great if you could show how to visualise Plotly with tabs showing various data such as temp, humidity etc as in their OpenWeather site.

Does your package also show to how to test reading in and tests if visualising data correctly? If not, any pointers to start unit testing would be fantastic.

I don't use plotly but according https://plot.ly/python/time-series/
you should do
import plotly.plotly as py
from plotly.graph_objs import *
x = df.index.to_datetime()
y = df['main.temp'].values
data = Data([
    Scatter(
        x=x,
        y=y
    )
])
plot_url = py.plot(data, filename='python-datetime')

I don't understand your last comment.

https://plot.ly/~SebastienCelles/3

Oh, last comment was looking to try and do simple unittest on retrieved data, and if visualising is correct as expected

Tried to replicate but got exactly the same shape of graph but factor of 18x (16.05 deg as opposed to 289.2) which is clearly wrong for temperature, but that's what are in the returned JSON, so just wondering how you got the final correct temperature data.
https://plot.ly/~SebastianCheung/33

That's a Kelvin/Celcius conversion error.
You need to install an updated version of https://github.com/scls19fr/openweathermap_requests
Get latest version using Git
$ git clone https://github.com/scls19fr/openweathermap_requests.git
$ cd openweathermap_requests
$ python setup.py install

or
$ pip install git+https://github.com/scls19fr/openweathermap_requests.git

Thanks the update seems to work, but did noticed before it was version 0.05 and it is still 0.05, but works now anyway. Thanks.

I haven't update version number because I haven't push to pypi

Any idea how to plot humidity, etc either as multi plots or switchable tabs ?

You can try
trace0 = Scatter(
    x = df.index.to_datetime(),
    y = df['main.temp'].values,
    name = 'temp'
)

trace1 = Scatter(
    x = df.index.to_datetime(),
    y = df['main.humidity'].values,
    name = 'humidity'
)

data = Data([trace0, trace1])

plot_url = py.plot(data, filename='python-datetime')

but I don't know how to (or if we can) have tabs with plotly

Tried to plot weather icon, or weather main which are of type string it seems but both are returning KeyError:
trace5 = Scatter(
x=df.index.to_datetime(),
y=df['weather.icon'].str,
name='weather_icon'
)
trace6 = Scatter(
x=df.index.to_datetime(),
y=df['weather.main'].str,
name='weather_icon'
)

In [3]: df.columns
Out[3]:
Index(['clouds.all', 'main.humidity', 'main.pressure', 'main.temp',
       'main.temp_max', 'main.temp_min', 'rain.1h', 'weather', 'wind.deg',
       'wind.gust', 'wind.speed', 'wind.var_beg', 'wind.var_end'],
      dtype='object')

Because weather.icon and weather.main are if type string. So tried plotting them using .str but not so sure how

If refactoring into a function, say myPlot() then unittesting, not sure how to test it as it would return unicode:
import unittest

class MyTestCase(unittest.TestCase):
    def test_something(self):
        # self.assertEqual(True, False)
        self.assertEqual(myPlot, ???)

if __name__ == '__main__':
    unittest.main()


Add enter portals example

References:

https://twitter.com/0xca0a/status/1669698823931809795
https://blog.maximeheckel.com/posts/beautiful-and-mind-bending-effects-with-webgl-render-targets/
https://twitter.com/jesper_vos/status/1588496087429808128
https://medium.com/resn/banditø-immersive-experience-f258361dead3

cc @cyrstem 😉

Wow, looks so dope. This would be really awesome.


feat(core): add typed_isolate support + update to latest llama.cpp API

[like]  Daniel Gell reacted to your message:

From: adel boussaken @.>
Sent: Thursday, December 5, 2024 2:43:44 PM
To: netdur/llama_cpp_dart @.>
Cc: Subscribed @.***>
Subject: Re: [netdur/llama_cpp_dart] feat(core): add typed_isolate support + update to latest llama.cpp API (PR #45)
Merged #45https://github.com/netdur/llama_cpp_dart/pull/45 into main.
—
Reply to this email directly, view it on GitHubhttps://github.com/netdur/llama_cpp_dart/pull/45#event-15545285627, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7XNSYSLXSDTSUNC67KIWPT2EBYDBAVCNFSM6AAAAABTCT7EZ2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVGU2DKMRYGU3DENY.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Optinal dependency on hpp-fcl but fails to build if not found

Trying to compile the code (master=db8fe0add7d10ea31) from source on 16.04 Ubuntu for python2, I get the error:
In file included from /home/jviereck/dev/tools/pinocchio/build27/include/pinocchio/parsers/urdf.hpp:268:0,
                 from /home/jviereck/dev/tools/pinocchio/build27/include/pinocchio/bindings/python/parsers/parsers.hpp:14,
                 from /home/jviereck/dev/tools/pinocchio/bindings/python/parsers/expose-parsers.cpp:5:
/home/jviereck/dev/tools/pinocchio/build27/include/pinocchio/parsers/urdf/geometry.hxx:294:51: error: ‘pinocchio::fcl::MeshLoaderPtr’ has not been declared
                                              fcl::MeshLoaderPtr& meshLoader,
                                                   ^
/home/jviereck/dev/tools/pinocchio/build27/include/pinocchio/parsers/urdf/geometry.hx

Note that it looks like my cmake .. configuration doesn't find the optinal hpp-fcc package. If the package is optional, I wonder why the compilation is breaking still.

@jviereck Thanks for reporting this bug. I've proposed a fix for it #730.

Fixed by #730.


[Enhance] Support classwise evaluation in CocoPanopticDataset

Support classwise evaluation in CocoPanopticDataset.

Should I add a unit test for CocoPanopticDataset in this PR? @ZwwWayne

Should I add a unit test for CocoPanopticDataset in this PR? @ZwwWayne

we should try that. Furthermore, may post a picture here to show what it looks like.


How to convert wda.Element Object to wda.Selector Object ?

Hi,I am a new learner to be here to learn how to use facebook-wda. Now I met a problem. The problem is when i use "elements =s(text='Dashboard').find_elements()" to get "Array of Element object",But i use "elements[0]" to call click() method like this "elements[0].click()". Because it's Element object. But we can use "element=s(type="Dashboard", textContains="房间")[0]" to call click() method like this "element.click()". Because it's Selector object. How to convert wda.Element Object to wda.Selector Object each other?

wda.Element can not convert to wda.Selector

s(type="Dashboard", textContains="房间")[0] looks better than s(text='Dashboard').find_elements()[0], but now just keep the way.


Multiple providers not work

Hi!
my config:
ldap_tools:
    domains:
        domain:
            domain_name: ****
            username: ****
            password: *****
            base_dn: "dc=dp,dc=dom,dc=ru"
            port: 389
    security:
        user: AppBundle\Entity\User
        guard:
            failure_path: null
            failure_forward: false

security:
# To get started with security, check out the documentation:
# http://symfony.com/doc/current/security.html
security:
    hide_user_not_found:  true
    encoders:
        FOS\UserBundle\Model\UserInterface: bcrypt
    providers:
        chain_provider:
            chain:
                providers: [ldap, fos_userbundle]
        fos_userbundle:
            id: fos_user.user_provider.username_email
        ldap:
            id: ldap_tools.security.user.ldap_user_provider

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt))/
            security: false

        main:
            provider: chain_provider
            pattern: ^/
            user_checker: app.user_checker
            logout_on_user_change: true
            form_login:
                provider: chain_provider
                csrf_token_generator: security.csrf.token_manager
                always_use_default_target_path: true
                default_target_path:            /profile

            logout:       true
            anonymous:    true
#            guard:
#                authenticators:
#                - ldap_tools.security.ldap_guard_authenticator

But if i uncomment guard section break db auth, but without this section not work ldap. How i can merge this two auth ways?
PS i try use this config, but it not work

I have the same problem, any updated of this issue?

For those who are interested. The problem was solved by adding a custom authenticator to the existing one from the bundle

@aslojno i also encountered this behavior, can you show us the custom authenticator. Thanks


How to use it

How to use it,is there a doc to read?

This is a Xcode project for developers only. There’s no built app you can use.


Make nodeForgeBlock pure

The only remaining side effect we still have is MonadRandom, but that is now nearly gone from consensus (#2036). Once it is gone completely, nodeForgeBlock can become a pure function. Once that is done, we should simplify WithEarllyExit; it won't need to be a monad transformer anymore.

Putting this in this milestone although we will still be blocked on https://github.com/input-output-hk/ouroboros-network/issues/2036#issuecomment-624636096 .

When we do this, we should get rid of the  BlockProduction abstraction entirely.


Add file support in HttpData

Is your feature request related to a problem? Please describe.
Currently the only way to serve files is via ZStream.fromFile. This works, however is slow and uses a blocking thread pool.
Http.collect[Request] {
 case Get -> !! / "file" => Response(data = HttpData.fromStream(ZStream.fromFile(Paths.get("README.md")))
}

This solution will be significantly more performant since it's going to run on the same thread as the incoming request.
Later the implementation can be used to build a static server eg: Http.static("~/public")

Describe the solution you'd like
It would better to use a specialized constructor in HttpData that reads files efficiently.
Http.collect[Request] {
 case Get -> !! / "file" => Response(data = HttpData.fromPath(Paths.get("README.md"))
}

Describe alternatives you've considered
We create a new file reader that reads file in chunks using netty's ChunkedFile API and then use HttpData.fromStream to create an HttpData.
We need to still test how well it performs under load.
  final class ChunkedReader(file: ChunkedFile, alloc: ByteBufAllocator) {
    def read: ZIO[Any, Option[Throwable], ByteBuf] =
      ZIO.effectSuspendTotal {
        try {
          val data = file.readChunk(alloc)
          if (data == null) ZIO.fail(None)
          else UIO(data)
        } catch {
          case error: Throwable => ZIO.fail(Option(error))
        }
      }

    def toStream: ZStream[Clock, Throwable, ByteBuf] = ZStream.repeatEffectOption(read)
  }

  object ChunkedReader {
    def make(path: java.nio.file.Path, alloc: ByteBufAllocator = ByteBufAllocator.DEFAULT): ZIO[Any, Throwable, ZIOChunkedFile] = for {
      file  <- Task(path.toFile)
      cFile <- Task(new ChunkedFile(file, 128))
    } yield new ZIOChunkedFile(cFile, alloc)
  }

// Inside HttpData

  def fromFile(path: java.nio.file.Path): HttpData[Clock, Throwable] =
    HttpData.BinaryStream(ZStream.unwrap(ZIOChunkedFile.make(path).map(_.toStream)))

Additional context

Will need to add a ChunkedWriteHandler in the pipeline if the response is a file
Sample implementation: https://github.com/netty/netty/blob/4.1/example/src/main/java/io/netty/example/file/FileServerHandler.java

I'll take a stab at this.


Listeners unregistered

Hey
Not sure if this is an issue. I'm using a topic to transit data between two instances. Sometimes, listeners are unregistered randomly, and I don't know why, server is just publishing data, it works 1-5 times and then it breaks :/
Config:
redissonConfig.setCodec(new JsonJacksonCodec())
                .setThreads(8)
                .setNettyThreads(8)
                .useSingleServer());

Monitor (first wave it works, second doesn't) :
https://paste.domicraft.fr/vakuxahawa.json
Thanks for your help, if you need more details, tell me!
Redisson 3.16.1 - Redis 6.2.5

I don't see subscribe on voteRewards in your logs. Is it possible to provide code to reproduce it?

Right, didn't copy it, but subscribe is done and works primarily. Operations with locks and domiAccount:UUID are triggered by listening to voteRewards topic.
Listener:
redissonClient.getTopic("voteRewards").addListener(Object[].class, (key, args) -> Task.runSync(() -> {
            final String playerName = (String) args[0];
            final int rewardType = (int) args[1];
            final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(playerName);

            switch (rewardType) {
                case 3 -> DomicoinsManager.add(offlinePlayer, 1 + RandomUtils.getRandomDouble(6));
            }
        }));

DomicoinsManager stuff:
    public static CompletableFuture<Boolean> add(OfflinePlayer offlinePlayer, double coins) {
            final DomiPlayer domiPlayer = PlayerManager.getPlayer(offlinePlayer.getUniqueId());

            return domiPlayer.modifyAccountAsync(domiAccount -> {
                domiAccount.add(coins);

                return true;
            });
    }

DomiPlayer stuff:
    public CompletableFuture<Boolean> modifyAccountAsync(Function<DomiAccount, Boolean> function) {
        final CompletableFuture<Boolean> completableFuture = new CompletableFuture<>();

        getAccountAsync().thenAccept(domiAccount -> {
            try {
                if (function.apply(domiAccount)) {
                    domiAccount.saveToRedis();
                }
                completableFuture.complete(true);
            } catch (Throwable t) {
                t.printStackTrace();
                completableFuture.complete(false);
            } finally {
                final RLock lock = AccountManager.getRLockAccount(uuid);
                lock.unlock();
            }
        });

        return completableFuture;
    }

    public RFuture<DomiAccount> getAccountAsync() {
        final RPromise<DomiAccount> rFuture = new RedissonPromise<>();

        CompletableFuture.supplyAsync(() -> {
                    final RLock lock = AccountManager.getRLockAccount(uuid);
                    lock.lock(10, TimeUnit.SECONDS);
                    return AccountManager.getRAccount(uuid).get();
                }).thenAccept(rFuture::trySuccess);

        return rFuture;
    }

AccountManager stuff:
    public static RBucket<DomiAccount> getRAccount(UUID uuid) {
        return RedisManager.getRedissonClient().getBucket("domiAccount:" + uuid);
    }

    public static RLock getRLockAccount(UUID uuid) {
        return RedisManager.getRedissonClient().getFairLock("domiAccountLock:" + uuid);
    }

    public static void saveAccountToRedis(DomiAccount domiAccount) {
        // LogUtils.logToConsole(Level.INFO, "⌛ Saving " + domiAccount.getUsername() + "'s account (" + domiAccount.getUuid() + ") to Redis...");
        getRAccount(domiAccount.getUuid()).set(domiAccount);
        // LogUtils.logToConsole(Level.INFO, "✔ Saved !";
    }

Hope you will understand something to reproduce the issue. You mainly have to know that this listener calls a method sync (on the main app thread from redis listener), in order to modify data async (locks the account lock, reads accounts from redis / constructs object, modifies it, saves account back to redis and unlocks the lock).
Ty!

I don't see any issue in code. Topic listeners are executed using separate executorService. What is the state of "redisson" threads? If they stuck listeners won't work.

I did some debug with jstack, threads seem fine (WAITING state), most other topics I use work, but some bucket listeners also unregister themselves.
Don’t know if it’s relevant, but counting listeners of annoying topics using ˋˋRTopic#countListenersˋˋ returns 1 normally and 0 during failure. Do you think they got really unregistered or per-haps just stuck?
Ty again.

I don't see in your logs any subscription. It's hard to say when listeners were unsubscribed.

Lot of other stuff here but the full process is described, from subscriptions, working listeners and failure.
Line 55+ => Subscription.
Line 476+ => Working listener, stuff with accounts as I mentioned before with locks and buckets.
Line 1652+ => Listener doesn't work any longer.
https://paste.domicraft.fr/joxazecoqu.json
Note: Another independent listeners based on buckets does not work either when voteRewards topic "fails". domiServer:A_NAME:serverState, domiServer:A_NAME:*PlayerCount Not sure but all object based listener seem broken.
Here is also a thread dump after failure: https://paste.domicraft.fr/emoriqifuv.pl

You provided Redis logs. Can you send Redisson logs as well ?

For sure, here are logs https://paste.gg/p/anonymous/0e7064dea6e9419486cadc8f9c6f9aa1
Published around 124 times and only 68 seem logged in 🤔
Sorry for such long logs...

This problem is in no way a priority, just for information, I found a solution by using Rsemaphores with only one permission. However I will do my best to try to help you find a potential problem with Rlocks 👍

Which Redis vendor do you use?

I'm not sure I correctly understood what you're asking for but I use a "default" redis installation, this one especially: https://download.redis.io/releases/redis-6.2.5.tar.gz built manually.

Might also be #3957


Interface Segregation Principle design flaw

In ISP there are severe design flaws which clearly indicate you have no experience with goverment employees:
class Human implements Employee
{
    public function work(): void
    {
        // ....working  --> instance would likely throw UnknownOperationException
    }

    public function eat(): void
    {
        // ...... eating in lunch break --> entire working hours IS-A lunch break; it may or may not have anything to do with eating
    }
}

Also, in Good: Not every worker is an employee, but every employee is a worker. --> Again, you have not met goverment employees.
All this makes it confusing to grasp the concept for some instances   :wink:

You always can give another example in PR

Surely this baseless issue is not serious, right? 😅
The example about ISP is an example ISP. Not an example about working with private/govt. employees. It's succinctly explained without building an authentica, ready-for-production class, haha.

Was laughing ... a bit :-)  Besides, shouldn't it be class Employee implements Human?
But yes, I think somebody had success in being funny.

Besides, shouldn't it be class Employee implements Human?

@archfrog no, because it is not a human in global context, but a human in context of employees.


bug: doc pages reload

When we explore around the docs, clicking pages for different actions and stores the page reloads fully, it should adapt to SPA mode after hydrating.

Fixed #46


Add workflow/docs to validate changes in MESSAGE/MACRO core

This expands on comments by @glatterf42 here and @gidden here. We update the description if there are alternate proposals or to link to PRs.
Summary

The validity of outputs from MESSAGEix-GLOBIOM scenarios (produced with the current repo message-ix-models and various branches of message_data) depend on the particular GAMS implementation of MESSAGE (and/or MACRO) in the message_ix package.
Periodically we have PRs to message_ix that modify the GAMS code, for instance iiasa/message_ix#430, iiasa/message_ix#726, and others. Often these are to correct known bugs.
Per testing:

message_ix contains:

Self-contained tests that are narrowly targeted to certain behaviours:

These tests use the suite of simplified models (Dantzig, Austria, Westeros) that are contained with the MESSAGE code.
These tests are run automatically.
PRs that touch the GAMS code expand or adjust these tests.

There are (still) some "nightly" tests that download and run MESSAGEix-GLOBIOM scenarios, and make certain checks against their outputs. These scenarios are by now quite old.

message-ix-models has a test suite with high coverage.
message_data branch dev has low test coverage, and other branches even lower.

For message_ix GAMS PRs, there is often a concern that the following could happen:

The message_ix test suite, including expanded/added tests for the specific changes in a PR, passes, but
message-ix-models or message_data tests are broken, or
Un-tested message_data or message-ix-model behaviour (the "particular outputs" mentioned in the first bullet) changes in a way that's not obvious.

Things to do
There are a variety of things to do about this.
Manual checks
This is more or less what we have done thus far.

The message_ix PR author(s) or reviewer(s) say: I think this PR may have consequences "further up the stack" / "downstream", and describe what those impacts could be.
Someone (manually) re-runs some code or (manual) workflows or steps and makes some (manual) checks to ensure there are no unexpected impacts. To be clear, this is done in an ad hoc way every time; there is no HOWTO for these: which branches/code to use, which command(s) to run, which checks to make.
Comments and discussion on the PR either determine (a) there is no impact, and the PR is good to merge, or (b) there are impacts, and the PR is adjusted.

Practices, e.g. pip freeze

iiasa/message_data#546 points to another option: using pip freeze. This is currently documented under one particular "Known issue" in the message_data Install instructions, here, but we could maybe move this to a more prominent location, like the “Reproducibility” page of the message-ix-models docs.
As a general rule, we could express it like this:
If:

A particular branch/workflow of message_data/message-ix-models is known to work with specific versions of other packages in the stack (message-ix-models, message_ix, ixmp, genno, pandas, any others) and
either:

There are no tests of that message_data/message-ix-models branch/workflow; or
The versions of dependencies are on branches other than main, not yet merged or associated with a PR; or
More recent versions of the dependencies are known not to work;

Then:

One or more requirements.txt file(s) should be created for that workflow/branch, recording the version(s) of upstream packages that are known to work; and
The meaning of “known to work”—i.e. expected features of the model outputs—should be explicitly documented.

This allows upstream improvements to go forward. Developers working on particular project or model variant code then have a few options:

Continue to use the ‘frozen’ versions recorded in the requirements.txt files they have created.
Check if their code works with newer versions of dependencies; update or remove the requirements.txt.
Add tests so that compatibility of their code and specific outputs can be automatically validated as dependencies update.

Semi-automated checks

For workflows with tests and/or a defined CLI entry-point, a workflow like transport.yaml can be established.
This workflow can be used in a semi-automated way within the “manual checks” process described above:

The message_ix PR author(s)/reviewer(s) must still identify: This change may impact 1 or more downstream workflow(s), in [specific ways].
They, or someone else, then follows some documented steps to trigger the CI workflow, including providing an input to force it to use message_ix (GAMS) code from the PR branch under review—rather than main or the released version.
The results of the workflow either directly include checks for validity, or there are further documented steps to inspect the outputs for signs of undesired impacts.

So for a particular point of discussion, @gidden suggested:

…to follow @khaeru's example here and combine this with @OFR-IIASA's ENGAGE process script here.
I would suggest to run

a baseline scenario
a full century budget scenario
a peak-budget scenario

And compare a few key metrics on the output excel (e.g., co2 emissions, kyoto emissions, gdp, primary energy, final energy).

and I said:

to implement these ideas would involve, conservatively, at least 2 person-weeks of work

The reasons for this:

The transport.yaml workflow is on the dev branch, and relies on some changes/improvements made on the dev branch of message_data.
AFAIK the ssp_dev branch containing the suggested workflow does not have these changes.
I don't know if we have:

Per "semi-automated checks" above": Tests or a defined [=documented] CLI entry-point for the "ENGAGE process script".
Per "practices" above: a requirements.txt stating which versions of message-ix-models, message_ix, ixmp etc. it's compatible with.

Note that if we had this, we could merge iiasa/message_ix#430, and work with the ssp_dev branch could proceed with message_ix fixed to a certain, known-to-work version prior to the merge.

And I know for certain that we do not have:

A CI workflow that accepts "an input to force it to use message_ix code from the branch under review—rather than main"; thus also not "documented steps" to trigger it. Someone would need to develop these.
"Direct checks for validity" from that workflow, or "documented steps to inspect the outputs"

Hence my estimate of the time to gather the necessary info and implement these. I previously tried something similar (and spent similar time) with iiasa/message_data#411, but people did not have bandwidth to validate and review, so it was not merged.
Again, I agree it's important we move in this direction, but I think we shouldn't underestimate the work required, and until there's a concrete decision to prioritize that work we should choose pragmatic alternatives.


Zoom configuration button disappears under navigation buttons in landscape

Turn phone to landscape, tap in the middle in reader mode. Zoom button should be top right, but the navigation buttons hide it.

Thanks for noticing. Fixed in v1.3.0


ASE-17: Components functionality added to AsenaServer for asena-cli build

Added components function to perform asena-cli build operation. Moved the config control in the constructor to ioc config, which was causing errors in the built files.

I will fix config bug, then i will merge this


Warn if an object property is not initialized

In the absence of a default initializer for Objects I'd like to suggest the following:
Warn if some properties are not initialized after the object is created and before it is used/returned:
Example:
class MyClass {
  a: any;
  b: any;
}
function f(): MyClass {
  const m = new MyClass();
  m.a = "value";
  return m;  // There should be a warning or error that I have not initialized b yet
}

Of course a more appropriate way to initialize would be:
class MyClass {
  a: any;
  b: any;
}
function f(): MyClass {
  return new MyClass() {
      a:"value"
   };  // There should be a warning or error that I have not initialized b yet
}

First use --strict. Second any tells the compiler that undefined is a valid type of this value. use a more specific type like string.

In general such issues be better posted on StackOverflow. This is not a support forum, it is one for reporting compiler/language bugs and suggestions.
http://www.typescriptlang.org/docs/home.html is also a good resource for learning more about TypeScript.

Thank you. I didn't this was already taken care of by using --strictPropertyInitialization


ID or Class instead of image path

How could I have backstretch look for an images class or ID instead of hardcoding the path into the script?
Thanks

Hi,
I'm not sure what you mean? You can always calculate the image path before passing it in.
var someImage = $("#an-image");
$.backsretch(someImage.src);

Thanks for the quick reply. Sorry, I'm not as familiar with JS and jQuery as I'd like to be.
Most plugins I use do something like (not sure if this is considered the same or not):
$("img#BGImage").backstretch();

Either way, I tried your example w/ "backstretch" instead of "backsretch" ;-) and still can't get it to work.
global.js
This works:
(function($) {
jQuery(document).ready(function() {
	$.backstretch("themes/default/images/SAMPLE-IMAGE3.jpg");
});
})(jQuery);

This doesn't work for me (browser not showing any errors):
(function($) {
jQuery(document).ready(function() {
	var someImage = $("img#BGImage");
	$.backstretch(someImage.src);
});
})(jQuery);

Thanks

Try:
(function($) {
    jQuery(document).ready(function() {
        var someImage = $("img#BGImage");
        $.backstretch(someImage.attr("src"));
    });
})(jQuery);

A variant of that almost works
 var someImage = $("img#BGImage").attr("src");
 $.backstretch(someImage);

But it actually duplicates the image, one is original size and one fills the background.  I can specify {display: none} on the image, but that feels sloppy.

Thanks, I'll give that a try when I get a chance.


Add "View all" button to latest transactions table

🌟 Feature Request
📝 Description
Add "View all" at the end of Latest Transactions table (if there are more available)

We could add same for Latest Batches
🤔 Rationale
When there are not a lot of transactions on the chain (eg when running clean local setup), people may think these are all existing transactions on the chain. People aren't aware that to see all transaction they need to go to "Block Explorer" -> "Transactions" cause it is pretty hidden.
📋 Additional Context
That's feedback from zkQuest

In that case, can't we implement View all button at the bottom of both the batches and the transactions list. When user hits View All button, the page should redirect them to https://explorer.zksync.io/transactions/ ( For viewing all transactions list) and https://explorer.zksync.io/batches/ (for viewing all the batches). It will be more practical, I guess.


remove bats scaffolding for git-server

This scaffolding was used by the bats tests to start the in-cluster git server. The go tests use the scaffolding implemented in git-server.go

/assign @nan-yu
/cc @victorpras


https://instantid.github.io/  和这个配合岂不是无敌！？

https://instantid.github.io/

求联名求联名！

The two non-existent working collaborations are indeed invincible.

The two non-existent working collaborations are indeed invincible.
Wow!
https://huggingface.co/h94/IP-Adapter-FaceID

The two non-existent working collaborations are indeed invincible.

hahahahahahhaha, hit the nail on the head


Optimize in-memory index memory consumption

What is the purpose of this change? What does it change?
Slightly reduce the memory usage of the in-memory index that is used by most restic commands. The memory usage should be 10-15% lower than before. This is achieved by optimizing for the usual situation where each blob is contained in a single pack file.
The pull request still needs tests which trigger the code paths with multiple packs. I'm not sure whether there are currently any tests that explicitly generate blobs which are stored in multiple packs.
Was the change discussed in an issue or in the forum before?
The problem of high memory usage shows up in several issues #2284 , #1988 , #1723 . However, the approach of this pull request was not yet discussed in an issue. The underlying scalability issue is not tackled by this pull request.
Checklist

[x] I have read the Contribution Guidelines
[ ] I have added tests for all changes in this PR
[x] No user visible parts. I have added documentation for the changes (in the manual)
[ ] There's a new file in changelog/unreleased/ that describes the changes for our users (template here)
[x] I have run gofmt on the code in all commits
[x] All commit messages are formatted in the same style as the other commits in the repo
[ ] I'm done, this Pull Request is ready for review

Codecov Report

Merging #2338 into master will decrease coverage by 4.39%.
The diff coverage is 71.11%.

@@            Coverage Diff            @@
##           master    #2338     +/-   ##
=========================================
- Coverage   50.95%   46.55%   -4.4%
=========================================
  Files         178      174      -4
  Lines       14548    14526     -22
=========================================
- Hits         7413     6763    -650
- Misses       6069     6754    +685
+ Partials     1066     1009     -57

Impacted Files
Coverage Δ

internal/repository/index.go
64.33% <71.11%> (-3.15%)
:arrow_down:

internal/backend/b2/b2.go
0% <0%> (-79.55%)
:arrow_down:

internal/backend/swift/swift.go
0% <0%> (-78.83%)
:arrow_down:

internal/backend/gs/gs.go
0% <0%> (-74%)
:arrow_down:

internal/backend/azure/azure.go
0% <0%> (-69.46%)
:arrow_down:

internal/backend/swift/config.go
34.69% <0%> (-57.15%)
:arrow_down:

cmd/restic/cmd_mount.go
13.75% <0%> (-42.5%)
:arrow_down:

internal/archiver/file_saver.go
81.57% <0%> (-7.02%)
:arrow_down:

internal/archiver/blob_saver.go
92.59% <0%> (-2.47%)
:arrow_down:

internal/backend/test/tests.go
59.95% <0%> (-0.66%)
:arrow_down:

... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e9eefa...6be0d42. Read the comment docs.

Thanks @MichaelEischer for this proposal! I agree that we need a solution to the memory consumption problem and you correctly have identified the index data structure as the core point to improve :+1:
This is also what I tried to discuss in #1988 and #2523.
About your solution I'm not confident that 10-15% improvement is enough. I like the idea of not storing duplicate information of blobs being in the index more than once (and this situation should anyway be cleaned by the next prune run or its alternatives, see #2513).
I would however prefer a solution where duplicates are not even saved in the in-memory index data structure. I did hardly find any code where the []PackedBlob in Lookup was really needed (I think it was the find command) and would propose to change the interface to Lookup(ID, BlobType) (*PackedBlob, bool). Then your PR would become much simpler while still achiving the same savings.
But I think there are even better solutions as the PackID for packs containing many blobs is still multiple times saved in memory and there is a notable overhead of all the maps which I think can be removed without loosing too much performance. Please have a look at index_lowmem2.go in index-alternatives. This is however still WIP and needs more testing.
Maybe some of the restic maintainers can give directions where to work on...

The []PackedBlob array is also used in Repository.loadBlob to try to get the blob from an already cached pack. It could also be useful, when trying to fix a repository with damaged files. However, the simplified interface would make the code a lot simpler.
@aawsome : Yes, I know that 10-15% improvement is not that much. The PackIDs can definitely be stored separately which should improve memory usage by quite a lot. However, as the pull request is already several months old I can't remember why I've ignored that optimization.

Closing as this pull request is superseded by either https://github.com/aawsome/restic/tree/refactor-index or https://github.com/MichaelEischer/restic/tree/opt-hash-idx

@MichaelEischer are there PRs for those to follow?

@tcurdt For the refactor-index branch see #2523 for the discussion.
And yes a PR will follow...


Investigate and fix flaky test

https://github.com/aspnet/SignalR/pull/617#issuecomment-312037232
https://travis-ci.org/aspnet/SignalR/jobs/248434170
Starting test execution, please wait...
[xUnit.net 00:00:00.7235010]   Discovering: Microsoft.AspNetCore.Sockets.Tests
[xUnit.net 00:00:01.0884260]   Discovered:  Microsoft.AspNetCore.Sockets.Tests
[xUnit.net 00:00:01.1035850]   Starting:    Microsoft.AspNetCore.Sockets.Tests
[xUnit.net 00:00:07.1742160]     Microsoft.AspNetCore.Sockets.Tests.WebSocketsTests.TransportFailsWhenClientDisconnectsAbnormally [FAIL]
[xUnit.net 00:00:07.1758710]       System.TimeoutException : Operation in TransportFailsWhenClientDisconnectsAbnormally timed out at /Users/travis/build/aspnet/SignalR/test/Microsoft.AspNetCore.Sockets.Tests/WebSocketsTests.cs:126
[xUnit.net 00:00:07.1804480]       Stack Trace:
[xUnit.net 00:00:07.1826010]         /Users/travis/build/aspnet/SignalR/test/Common/TaskExtensions.cs(45,0): at Microsoft.AspNetCore.SignalR.Tests.Common.TaskExtensions.<OrTimeout>d__4`1.MoveNext()
[xUnit.net 00:00:07.1827170]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:00:07.1828220]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:00:07.1829270]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:00:07.1830330]         /Users/travis/build/aspnet/SignalR/test/Microsoft.AspNetCore.Sockets.Tests/WebSocketsTests.cs(126,0): at Microsoft.AspNetCore.Sockets.Tests.WebSocketsTests.<TransportFailsWhenClientDisconnectsAbnormally>d__2.MoveNext()
[xUnit.net 00:00:07.1831450]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:00:07.1832320]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:00:07.1833620]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:00:07.1834930]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:00:07.1835990]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:00:07.1837020]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:00:07.1838320]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:00:07.1839810]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:00:07.1840510]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Failed   Microsoft.AspNetCore.Sockets.Tests.WebSocketsTests.TransportFailsWhenClientDisconnectsAbnormally
Error Message:
 System.TimeoutException : Operation in TransportFailsWhenClientDisconnectsAbnormally timed out at /Users/travis/build/aspnet/SignalR/test/Microsoft.AspNetCore.Sockets.Tests/WebSocketsTests.cs:126
Stack Trace:
   at Microsoft.AspNetCore.SignalR.Tests.Common.TaskExtensions.<OrTimeout>d__4`1.MoveNext() in /Users/travis/build/aspnet/SignalR/test/Common/TaskExtensions.cs:line 45
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Sockets.Tests.WebSocketsTests.<TransportFailsWhenClientDisconnectsAbnormally>d__2.MoveNext() in /Users/travis/build/aspnet/SignalR/test/Microsoft.AspNetCore.Sockets.Tests/WebSocketsTests.cs:line 126
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:00:15.4605030]   Finished:    Microsoft.AspNetCore.Sockets.Tests

I looked into this and it's a test issue.


Botup GTM read.me content change.

Botup GTM read.me content change.

Fix the issue raise by the team


Adding KNIX tutorials

Adding two different types of tutorials:
a) A general KNIX tutorial:

Hello World: deploying a single python functions
function with non-standard dependency
workflow with two functions in a sequence
workflow with parallely executing python functions

b) An interactive KNIX tutorial, tackling the migrat of workflows from AWS Stepfunctions workflow to KNIX - and vice versa.

We should be merging 'feature/tutorials' into 'develop'.


Don't list $pwd in LOCATION mode

The list in LOCATION mode shouldn't include $pwd.

Fix by #531.


Reset password issue - no email

Emails are not being sent when users click the "forgot password" link.

[Sat Jun 23 22:11:46 2018] [error] [client <IP_ADDRESS>] sendmail: fatal: conniehost(13538989): No recipient addresses found in message header, referer: https://signin.convergence-con.org/index.php?Function=recovery&expired=1

variable name is wrong for search direct from neon - fixing