Visualize: standard deviation (anomalies, outliers)

Please describe the background and context for this new visualization
Be able to visualize anomalies by tracking outliers from standard deviation and moving averages.
Describe the perspective you'd like the final visual to give
A clear and concise description of the type of graph or metric thats to be created. Include specifcs on what data from augur should be used and link to plotly graph
A user may need to adjust the number of standard deviations to define outliers.
Acceptance criteria for the issue and visualization to be complete

[ ] Augur Query
[ ] Preprocess data into pandas data frame format for visualization
[ ] Plotly graph creation
[ ] Notes with any background context that would be useful for Explorer integration
[ ] Open issue on explorer for visualization integration using template

Additional context
Add any other context or screenshots about the feature request here.

I want to give thoughtful feedback on this, but I don't have anything specific yet...
I guess the main metrics we are following are around PRs and commits. Potentially the geometry (size, number of files changed) of a PR or commit and frequency. Are their less commits to main over time that evolve into formalized PRs (show maturity of dev process over time).
Tracking the shape of PRs and commits could help show the "anomalies" No idea how to do that yet 😄

At this point I think frequency of commits is something you could define moving averages and calculate std dev. That could be where to get your outliers and anomalies.


update test for coverage

Codecov Report

Merging #8 into master will increase coverage by 6.82%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
+ Coverage   27.83%   34.65%   +6.82%
==========================================
  Files          13       13
  Lines        1060     1056       -4
==========================================
+ Hits          295      366      +71
+ Misses        716      640      -76
- Partials       49       50       +1

Impacted Files
Coverage Δ

pkg/efile/common.go
85.00% <ø> (+85.00%)
:arrow_up:

pkg/efile/irs990_transmission.go
40.62% <0.00%> (+37.50%)
:arrow_up:

pkg/efile/soap.go
100.00% <0.00%> (+97.67%)
:arrow_up:

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 49f7a74...1b0f22c. Read the comment docs.


[v5] System (receptionist)

This PR creates an implicit system and provides it in the machine implementations:
const machine = createMachine({
  id: 'parent',
  initial: 'a',
  states: {
    a: {
      invoke: [
        {
          src: fromCallback((_, receive) => {
            receive((event) => {
              expect(event.type).toBe('HELLO');
            });
          }),
          key: 'receiver'
        },
        {
          src: createMachine({
            id: 'childmachine',
            entry: (_ctx, _ev, { system }) => {
              const receiver = system.get('receiver');

              if (receiver) {
                receiver.send({ type: 'HELLO' });
              }
            }
          })
        }
      ]
    }
  }
});

(Sorry if this is an obvious question, can't look through the changes ATM atm)
Is the system accessible from the interpreter for outside use as well?

Love this so much. It's a testament to the system yall have built that such a powerful feature requires so little to code implement. Super excited for this!

(Sorry if this is an obvious question, can't look through the changes atm)
Is the system accessible from the interpreter for outside use as well?

It is "not" (at least not naturally)... but of course, once you have access to the { system } grabbed from an action, we can't stop you from passing that reference around 🤷

Is there a previous discussion on why that isn't allowed?
With how we use child machines being able to send events to specific ones instead of blasting everybody or manually plumbing through the parent seems really valuable.

Maybe I'm misreading the question, but from any descendant machine within the same system, you have access to the system, so yes, you can send events to specific actors ('blah' in this case) instead of "blasting".

@davidkpiano I'm talking about something like this:
import { createMachine, interpret } from 'xstate';

const rootMachine = createMachine({
  /* ... */
});

const service = interpret(rootMachine);

service.start();

const receiver = service.system.get("receiver");

if(receiver) {
  receiver.send({ type: 'HELLO' });
}

Since we're using xstate-component-tree to manage components that are being rendered, and sometimes components want to fire an event back into the statechart that spawned them. Currently xstate-component-tree offers a .broadcast(<event>) API that literally sends the event into every running statechart but that's a little coarse and dangerous for my tastes.
I guess since xstate-component-tree is actively tracking the running children at any given time it could provide a service-style API, maybe, but I was hoping that this would let me rip all that logic out of my code and use something built-in and more standard.

@tivac Ah okay, I understand; you want to access the service completely outside the machine.
I agree that this should be made possible by the API you've described:
const receiver = service.system.get('receiver');

I'll add tests for this.


[ui] Mixed content error in default user avatar request

Gitea version (or commit ref): 1.12.0+dev-60-g3f0cb8b33
Operating system: Debian x64
Database (use [x]):

[x] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] No

Description
When CSP is enabled on the server and everything works after HTTPS, the default user icon in the Activity tab does not appear. To make them visible you need to add to the CSP the img-src exception: http://gitea_domain which proves that the request for gitea_domain/user/avatar/Ghost/-1 occurs by HTTP

Sorry, my mistake - I had HTTP set in ROOT_URL ...


Create Example Component

Nice to have / low priority
Create an Example component. This component will have 2 tabs. The first tab will have the rendered react component. The second tab will display the code for the example. This component could also allow a user to adjust prop values.

Perhaps we can utilize https://www.npmjs.com/package/react-uikit-codeblock to make this work?

Talked about creating live editable examples. We can look at using https://github.com/FormidableLabs/react-live to do this.

To be able to display the source code used in the example, we'll need to remove the src directory from .npmignore so we can display it on the terra-ui doc site.

Looked into https://github.com/FormidableLabs/react-live. It does not support import/export syntax, it is meant to display just the code that would live inside a render method and is for trivial examples.
https://formidable.com/open-source/component-playground/ is another example which looks like it might fit our needs better but the minified version is fairly large coming in at 1.2 MB
I'm hesitant to add such a large library to the doc site, instead I'd recommend we leave live updating of react components to kaiju. I'm open to including links to kaiju on the doc site for the various components so people can play around with them.

Closing out in favor of using storybook with info addon


feature: use trichotomy rather than dichotomy for downsynced object

Feature Description
Currently a downsynced object is divided into two parts:

desired state, which travels from core to WEC, and
reported state, which travels from WEC to core.

Actually, there is a third part: system state, which is specific to the space and controlled by the apiserver and does not travel (e.g., UID, ResourceVersion).
The feature here is to introduce a third non-system part, state that does not travel. I have heard of two motivations so far.

Nick Mitchell wants to have some derived state that is large, derived by a controller in the core without a spurious copy to the WEC.
@clubanderson wants to have an object introduced in the core but a part of the object supplied in the WEC and not transported back to the core (#1094).

Proposed Solution
Introduce a third non-system part of downsynced objects and an API by which users can identify it.
Want to contribute?

[ ] I would like to work on this issue.

Additional Context
No response

@MikeSpreitzer the point of #1094 is to turn off the overwrite of an object after it is initially placed by KubeStellar.  I still want status to return for that object.  The point of the issue I opened is that beyond the initial placement of the object, I do not want KubeStellar to overwrite it.  This comes in handy when I deploy a secret without sensitive information (as a placeholder) for the operator of the WEC to fill in.  That sensitive information should not be visible in our MB or WDS and we should not overwrite the object with KS syncer.  It might be useful to have a way to forcefully overwrite the object in certain situations, but that is not in scope for today.

@clubanderson : yes, that is covered by what this Issue is talking about. This issue also covers what Nick is talking about.

Also, this issue is close to an aspiration that I have not tried to address yet. You can see it in the "One-to-many" section of https://medium.com/@mspreitz/seven-ways-to-stub-your-toes-on-the-edge-c45e060bc4f4 , where I talk about the need for imprecision. In some cases the trichotomy idea in this Issue covers the need for imprecision; those are the cases when KubeStellar can create the object in the WEC with the imprecise parts absent. OTOH, if an imprecise part has to be created with an initial or default value, that is not the same as marking that part as immobile.


roles yml changes for security-analytics plugin (#2192)

roles yml changes for security-analytics plugin

Signed-off-by: Raj Chakravarthi<EMAIL_ADDRESS>Signed-off-by: Raj Chakravarthi<EMAIL_ADDRESS>(cherry picked from commit 89a11c5a165d9fc1a5412a3c2369d3b27869b305)
Description
[Describe what this change achieves]

Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
Why these changes are required?
What is the old behavior before changes and new behavior after changes?

Issues Resolved
[List any issues this PR will resolve]
Is this a backport? If so, please add backport PR # and/or commits #
Testing
[Please provide details of testing done: unit testing, integration testing and manual testing]
Check List

[ ] New functionality includes testing
[ ] New functionality has been documented
[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2225 (bde75d8) into 2.4 (b715b6a) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                2.4    #2225      +/-   ##
============================================
- Coverage     60.97%   60.92%   -0.06%
+ Complexity     3236     3231       -5
============================================
  Files           257      257
  Lines         18089    18088       -1
  Branches       3225     3225
============================================
- Hits          11030    11020      -10
- Misses         5490     5494       +4
- Partials       1569     1574       +5

Impacted Files
Coverage Δ

...urity/ssl/transport/SecuritySSLNettyTransport.java
62.36% <0.00%> (-4.31%)
:arrow_down:

...security/auditlog/sink/ExternalOpenSearchSink.java
59.25% <0.00%> (-2.47%)
:arrow_down:

...earch/security/ssl/util/SSLConnectionTestUtil.java
93.18% <0.00%> (-2.28%)
:arrow_down:

.../dlic/auth/ldap2/LDAPConnectionFactoryFactory.java
57.46% <0.00%> (-1.50%)
:arrow_down:

...search/security/transport/SecurityInterceptor.java
75.38% <0.00%> (-0.77%)
:arrow_down:

...ecurity/ssl/rest/SecuritySSLReloadCertsAction.java
84.78% <0.00%> (-0.33%)
:arrow_down:

...a/org/opensearch/security/tools/SecurityAdmin.java
36.00% <0.00%> (+0.24%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Resolved the merge conflict and retriggered CI.
Created the following issue to deal with the unreliable test case

https://github.com/opensearch-project/security/issues/2230


If statements inside html tags of Named Slots not working

I admit it's a very specific bug and definitely not urgent, but I thought I'd pass it on:
Versions
Python==3.10
Django==4.2.13
django-cotton==1.0.9
Initial situation
Nested Named Slot Element:

{{ title }}

    <button class="navbar-toggler ms-auto" ...>...</button>

        {% if left %}

             {{ left }}

        {% endif %}

	     {{ slot }}

This is how I use it:
<c-navbar-primary-page title="My Navbar Title">
    <c-slot name="left">
	<select class="form-select" aria-label="Default select example 1">
	    {% for i in "123" %}
	    <option {% if i == '1' %}selected=""{% endif %}>{{i}} {% if i == '1' %}(selected){% endif %}</option>
	    {% endfor %}
	</select>
    </c-slot>

        <select class="form-select" aria-label="Default select example 2">
            {% for i in "123" %}
            <option {% if i == '1' %}selected=""{% endif %}>{{i}} {% if i == '1' %}(selected){% endif %}</option>
             {% endfor %}
        </select>

</c-navbar-primary-page>

Expected Behaviour:
I expect both <select> options to be identical with only the first element selected.
Select 1 inisde the Nested Element name="left"
<select aria-label="Default select example 1" class="form-select">
    <option selected="">1 (selected)</option>
    <option selected="">2 </option>
    <option selected="">3 </option>
</select>

Select 2 inside the default {{slot}}
<select aria-label="Default select example 2" class="form-select">
    <option selected="">1 (selected)</option>
    <option>2 </option>
    <option>3 </option>
</select>

Inside the text itself the if-statement gets evaluated correctly and only for the 1st element (selected) is shown. However, inside tags the selected="" is always visible.
This is only true for Linux (I use CentOs 8 with gunicorn 22.0.0). On my dev windows 11 machine with PyCharm it works. So this might be an issue with any other software or plugin but I have no clue how to pinpoint that. If you cannot recreate it it might be the latter but maybe it's an issue with cotton itself.

@zagro-dev thanks for reporting - fixed and released in v1.0.10


Add python prebuilt wheels workflow

Description of change
Add python wheels building flow.
Links to any relevant issues
N/A
Type of change

Enhancement (a non-breaking change which adds functionality)

How the change has been tested
Check the generated files by Github Action are expected.
Change checklist

[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have checked that new and existing unit tests pass locally with my changes

Just remembered one last thing - should we statically link OpenSSL and ship it with the Python wheels instead of dynamically linking?

Just remembered one last thing - should we statically link OpenSSL and ship it with the Python wheels instead of dynamically linking?

I think good to have static linking. This seems to be achieved by using sudo apt-get install glibc-static?

It seems that we can achieve this by using sudo apt-get install glibc-static?

We just need to do a couple of hacks to get the paho-mqtt crate to use static linking for OpenSSL:
https://github.com/iotaledger/wallet.rs/blob/develop/.github/workflows/covector-version-or-publish.yml#L109-L127
We also need to use a fork because there are issues upstream:
[patch.'crates-io']
paho-mqtt = { git = "https://github.com/rajivshah3/paho.mqtt.rust", branch = "feature/openssl-static-link-master-0.9"}

Crap, I think the Build and run tests workflow needs to be adjusted because of the paho fork. I think if we add this like we did for the Node.js bindings it should succeed:
https://github.com/iotaledger/wallet.rs/blob/develop/.github/workflows/build-and-test.yml#L163-L181
Sorry about this 😞

Crap, I think the Build and run tests workflow needs to be adjusted because of the paho fork. I think if we add this like we did for the Node.js bindings it should succeed:
https://github.com/iotaledger/wallet.rs/blob/6f990839e194926c6b586937f54353994f713039/.github/workflows/build-and-test.yml#L163-L181
Sorry about this

Nono don't be. Thank you for pointing this out. Let me modify this.


[ISSUE #1160]🔥Optimize ValidateTopicResult String with CheetahString

Which Issue(s) This PR Fixes(Closes)

Fixes #1160
Brief Description

How Did You Test This Change?

🚀Thanks for your contribution🎉. CodeRabbit(AI) will review your code first🔥


Update backport:version to only backport to specified versions

Previously it would fill in all supported versions between the specified version and the current version.

:broken_heart: Build Failed

Buildkite Build
Commit: 9e954383f95aa4a42860f0e4b78bf32d1ec65172

Failed CI Steps

Run Tests

:green_heart: Build Succeeded

Buildkite Build
Commit: d14a0051c261354a68290178d51e0375b033412d

History

:broken_heart: Build #15 failed 9e954383f95aa4a42860f0e4b78bf32d1ec65172


Undefined POST body

using director 1.2.8
node 6.3.0
I am having an issue with POST request using director. The req.body object is empty. Below is my test code.
  const data = querystring.stringify({
  ItemType: '1', ID: '7620344',
  ManufacturingStationID: '117',
});

const OPTIONS = {
  host: 'localhost',
  port: '3030'
  path: '/pws/reportError',
  method: 'POST',
  protocol: 'http:',
  headers: {
    'Content-Type': 'application/json',
  },
};

const postReq = http.request(OPTIONS, function(res) {
      res.setEncoding('utf8');
      res.on('data', function (chunk) {
          console.log('Response :) ' + chunk);
      });
});
postReq.write('{"msg": "Hello, World"}');
postReq.end();

This is the server endpoint function
function reportError () {
  this.req.on('data', function (chunk) {
    console.log('chunk' + chunk);
  });

  console.log(JSON.stringify(this.req.body))

  this.res.writeHead(200, {});
  this.res.end('done with reportError');
}

this.req.body is an empty object. I would expect it to be able to do this.req.body.msg to see 'Hello, World', instead I get undefined. Also this.erq.on('data', ... does not fire.
I have other GET endpoints working fine, and I can confirm that it is hitting the reportError post endpoint, but this.req.body is empty?
I am running a simple server and can confirm that req does have cought before director does have the expected data.
const server = http.createServer(function (req, res) {
  if(req.url === '/pws/reportError' && req.method == 'POST'){
    req.on('data', function (chunk) {
      console.log('chunk' + chunk);
    });
  }
  router.dispatch(req, res, (err) => {
    if (err) {
      res.writeHead(404);
      res.end('some problem from the server');
    }
  });
});

The result of  console.log('chunk' + chunk); is the expected data, while this does not happen for the endpoint routed to by director.

Found my error.


Change Unity wrapper API to allow filling of tables directly from a float[] array

Just looking through the new wrapper - and noticed it doesn’t support multi-channel audio files.
I managed to get multichannel audio files transferring from Unity into Heavy by extracting the individual channels into their own float[]s, and then sending them to tables (here using a naming convention of tableName-1, tableName-2 etc for each channel)
Would it be possible to add a method to the Unity API to send a float[] directly to a table (with resizing?)
I did it in the following way, if that helps:
(At the Scene level)
HeavyLibWrapper heavyWrapper = GetComponent<HeavyLibWrapper>();
string sampleName = "MyStereoSample";

Debug.Log ("Loading sample " + sampleName);
AudioClip src = Resources.Load<AudioClip> ("Audio/" + sampleName);
src.LoadAudioData ();

float[] audioBuffer = new float[src.samples * src.channels];
List<float[]> channelBufferList = new List<float[]> ();

for (int j = 0; j < src.channels; j++) {
    float[] channelBuffer = new float[src.samples];
    channelBufferList.Add (channelBuffer);
   Debug.Log ("Created channel buffer " + j + " for " + sampleName);
}

src.GetData (audioBuffer, 0);
for (int i = 0; i < audioBuffer.Length; i += src.channels) {
      for (int j = 0; j < src.channels; j++) {
             //  put samples in appropriate arrays
             channelBufferList [j] [i / src.channels] = audioBuffer [i + j];
      }
}

//  send to heavy
for (int j = 0; j < src.channels; j++) {
      heavyWrapper.SetBufferForTableName (sampleName + "-" + (j + 1), channelBufferList [j]);
}

And in the HeavyLibWrapper :
public void SetBufferForTableName(string tableName, float[] newBuffer){

    // first get pointer to table
    IntPtr tableRef = _context.GetTableForName (tableName);

    // then resize it to the correct length
    _context.ResizeTable(tableRef, (uint)newBuffer.Length);

    // finally copy the data across
    _context.SetBufferForTable(tableRef, newBuffer);

  }

...and, going even deeper, in the Hv_Context:

// expose methods
[DllImport ("Hv_Mmorph_LibWrapper")]
  private static extern IntPtr hv_getTableForName(IntPtr ctx, string tableName);

  [DllImport ("Hv_Mmorph_LibWrapper")]
  private static extern void hv_table_resize(IntPtr table, UInt32 length);

  [DllImport ("Hv_Mmorph_LibWrapper")]
  private static extern IntPtr hv_table_getBuffer(IntPtr table);

  [DllImport ("Hv_Mmorph_LibWrapper")]
  private static extern int hv_table_getLength(IntPtr table);

// table access methods for wrapper

 public IntPtr GetTableForName(string tableName) {
    return hv_getTableForName (_context, tableName);
  }

  public void ResizeTable(IntPtr tablePtr, UInt32 newLength) {
    Debug.Log ("Resizing table to " + newLength);
    hv_table_resize (tablePtr, newLength);

  }

  public int GetLengthOfTable(IntPtr tablePtr) {
    return hv_table_getLength (tablePtr);

  }

  public float[] GetBufferForTable(IntPtr tablePtr) {
    int size = hv_table_getLength (tablePtr);
    IntPtr bufferPtr = hv_table_getBuffer (tablePtr);
    float[] result = new float[size];
    Marshal.Copy (bufferPtr, result, 0, size);
    return result;
  }

  public void SetBufferForTable(IntPtr tablePtr, float[] newBuffer) {
    int size = hv_table_getLength (tablePtr);
    IntPtr bufferPtr = hv_table_getBuffer (tablePtr);
    Marshal.Copy (newBuffer, 0, bufferPtr, size);
  }

There's now also a method in the C# like so:
public void FillTableWithFloatBuffer(string tableName, float[] buffer)


Explore dropout value

we currently use 0.75
papers suggest 0.5 for hidden units and 0.1-0.3 for input layer

Never close an issue without referencing to the commit that fixes the issue, or if no fix is provided, explain why the issue can be closed.

Stale / no longer handled by this repo


Style Guide

Objective
Standardize the way TypeScript should fundamentally exist within AutoLispExt
Additional Context
I took the minimalist style guide example and played around with it.  I originally had a bunch of ==highlights== in the document to direct attention to notably questionable things, but apparently GitHub doesn't support the highlighter markup.

@Sen-real @szilvaa-adsk please help to review this PR.

Fair point, but don't we need to have a blueprint of what we are trying accomplish before we can possibly go configure tooling that enforces it?

I think we should simply choose the tool and configure it. We can discuss individual configuration items then.
I think tslint is now deprecated so we should probably use eslint instead. We could also look at https://prettier.io/ to take care of our code formatting needs.

I will try some options and make a issue for discussing this migration to different tooling.


Updates codereview statement (#13539)

Why:
Closes #13539

What's being changed:

Updated the gated code review statement to say that it's available to all the public repos and private repos owned by orgs on GitHubTeam, GitHubEnterprise, GitHubEnterpriseCloud
Check off the following:

[ ] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[ ] This pull request impacts the contribution experience

[ ] I have added the 'writer impact' label
[ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

Updated one

@yadunandanbhat
Thanks so much for opening a PR! I'll get this triaged for review :zap:


fix: Fixed delta time not used in some physics systems

Description
Include a summary of the changes here.
Checklist

[X] Self-review changes.
[ ] Evaluate impact on the documentation.
[ ] Ensure test coverage.
[ ] Write new samples.
[ ] Add entry to the changelog's unreleased section.

Btw please change the commit msg before merging to something like fix(physics): do fixed updates correctly


rollup "No such file or directory"

Hi,
I've read your book and decided to try your code, but I've ended-up with this error :
Couldn't execute command 'rollup main.js --format iife --file dist/pkg/bundle.js'. Error was: 'No such file or directory (os error 2)'

Here is what I've done :
cargo install wasm-pack
npm i -g rollup
export PERSEUS_ROLLUP_PATH=$HOME/.npm-global/bin/rollup
git clone https://github.com/arctic-hen7/perseus-starter-app.git
cd perseus-starter-app.git
perseus serve

I guess I've missed something but I cannot see what.

Hmm. I can't replicate that on my system. What OS are you using?

Could you try specifying PERSEUS_ROLLUP_PATH directly next to perseus serve?
I've had another report of being unable to detect rollup on Windows, which I assume is to do with path issues. I'm working on a fix at the moment for some Windows-specific issues, and I'll also include a change to executing these commands in shells rather than directly, which might fix these issues, particularly with rollup, which is installed through NPM or Yarn (and thus in a non-standard binary location, which may only be exported in certain shells).

my bad, I've forgotten the obvious :-)
OS : Fedora 34 / Kernel 5.14.2  / 64 bits
Rust : rustc 1.57.0-nightly (97032a6df 2021-09-08)
shell : zsh
rollup v2.56.3
Node.js v14.17.0
PERSEUS_ROLLUP_PATH=$HOME/.npm-global/bin/rollup perseus serve => same error

.perseus directory exists and is full of files (2284 to be precise)
.perseus/main.js is present
.perseus/dist/pkg/perseus_cli_builder.js is present
.perseus/dist/pkg/bundle.js is missing.
.perseus/bundle.wasm is missing.
the trouble seem to be related to the creation of bundle.js

Haha no problem! My fault for not copying over some issue templates.
When you run perseus serve, which step of the process does it get up to successfully? I would think Finalizing bundle... is where it fails?

 The Perseus CLI doesn't accept your environment variable specification of rollup's location anywhere other than in the environment checking stage! I'm pushing v0.1.4 as a fix to this right now.

Okay, v0.1.4 is currently being published, which should fix these problems! Please let me know how it goes!
Note: I'm yanking the previous versions of the CLI due to this.

bug corrected ! :-)
thanks.
:+1:

Fantastic! Happy to help!


Integration Join Us Form with backend

Issue that this pull request solves
Closes: #690
Proposed changes

[x] JoinUs form integrated with backend
[x] Required checks done in frontend
[x] proper toast messages added

Types of changes
Put an x in the boxes that apply

[x] New feature (non-breaking change which adds functionality)

Screenshots
On Successfull submission

Hello @Kajol-Kumari
Please review the request and merge it.


About the input size in training and testing time

In the paper, it is said that during training the input size is set to 384 x 384 for all the images from all the databases, while that during the test, the network will inference on the original size. What if the test size is also 384 x 384? Will this affect the performance?

@SuperCrystal Hi, sorry for the late response. Empirically, testing images with their original size usually delivers better performance than cropping an image patch with 384 x 384 in our experiments.

@zwx8981
Thanks a lot for your response! Another question is that if std_modeling is False and therefore p = y_diff = y1 - y2 by the code you provided. When I use it in this way, the loss just can not converge. However, if a sigmoid function is used, it can work correctly. Wondering whether you have also test about this. It is really an impressive work anyway :)

Yes，when you set std_modeling to false，you should change the loss function to BCEwithlogit，which inherently contains a sigmoid function. You may also still use the fidelity loss, in which case you should manually append a sigmoid function as you said or fix the std to a constant, say 1, and convert the diff into a probability using the same equation (Thurstone model). Essentially, fidelity loss is used to measure the difference between two probability distributions, so you should first convert the original difference logit into a probability.发自我的iPhone------------------ Original ------------------From: Crystal  @.>Date: Wed,Jun 2,2021 7:51 PMTo: zwx8981/UNIQUE @.>Cc: Subscribed @.***>Subject: Re: [zwx8981/UNIQUE] About the input size in training and testingtime (#13)
@zwx8981
Thanks a lot for your response! Another question is that if std_modeling is False and therefore p = y_diff = y1 - y2 by the code you provided. When I use it in this way, the loss just can not converge. However, if a sigmoid function is used, it can work correctly. Wondering whether you have also test about this. It is really an impressive work anyway :)
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
@.": "http://schema.org",
@.": "EmailMessage",
"potentialAction": {
@.": "ViewAction",
"target": "https://github.com/zwx8981/UNIQUE/issues/13#issuecomment-852961965",
"url": "https://github.com/zwx8981/UNIQUE/issues/13#issuecomment-852961965",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
@.": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]


Add Evil Bob and Drunken Dwarf random event sounds

I think the soundeffect IDs are 333 and 2297, double check them tho

The IDs are correct, will just have to get confirmation whether they are source npc or source null. If null, evil bob should already be covered by the pet sounds config(although I'd make a separate config for random events). Will wait for the randoms to confirm.

Added in 74bb2779e51660c3701e9073b3c70fe6240df720


⚠ gorzdrav.org has degraded performance

In bacf7d1, gorzdrav.org (https://gorzdrav.org) experienced degraded performance:

HTTP code: 200
Response time: 1732 ms

Resolved: gorzdrav.org performance has improved in 6504e7d.


404 in package download engine links table

File: cs-engine/1.13/index.md
Under the table of RPMs, the docker-selinux link is incorrect.  It has an 11 instead of 1 in the URL.
RHEL 7.x and CentOS 7 docker-engine, docker-engine-debuginfo, docker-engine-selinux
https://packages.docker.com/1.13/yum/repo/main/centos/7/Packages/docker-engine-selinux-1.13.1.cs2-11.el7.centos.noarch.rpm
should be
https://packages.docker.com/1.13/yum/repo/main/centos/7/Packages/docker-engine-selinux-1.13.1.cs2-1.el7.centos.noarch.rpm

#dibs

Sorry @scjane, looks like you claimed this but never submitted a PR. @bhavin192 jumped on this one.

@johndmulhausen OK. It is because when I was about to submit my PR, I saw @bhavin192 had already submitted one. So, I think it's breaking rules if I submit mine again. Anyway, this issuse is resolved.

@scjane I was not aware of dibs, Sorry about that.

@bhavin192 Never mind. Forget it🙂

Points to @bhavin192 on this one.


Data folder is not flashed using Coral Dev Micro + Wireless Add-on board

Description
Good afternoon,
I'm trying to create a simple HTTP server using Wi-Fi (and the add-on board). Code flashing is fine, but I suspect the /data files in the project are not being flashed to the board when the Dev Board Micro + Wireless Add-on is set on Arduino IDE.
Using the normal Dev Board Micro flashing the server works as intended, because the /data folder is flashed correctly.
Everytime I'm flashing using Sketch+Data option:

I'll put the code I'm using and the flash logs for both boards below.
Dev Board Micro + Wireless Add-on -> CameraStreamingHttp using WiFi
Dev Board Micro -> CameraStreamingHttp without WiFi.zip
Is there something missing in Arduino IDE to flash the /data folder together?
Click to expand!
Issue Type
Bug
Operating System
Windows 10
Coral Device
Dev Board Micro
Other Devices
No response
Programming Language
C++
Relevant Log Output
*Selecting "Dev Board Micro + Wireless Add-on" board*

	Section: 0x0
iMX bootable image generated successfully
Boot Section 0x00000000:
  FILL | adr=0x00010000 | len=0x00000004 | ptn=0xc2000105
  FILL | adr=0x00010004 | len=0x00000004 | ptn=0x00010020
  FILL | adr=0x00010008 | len=0x00000004 | ptn=0x00040004
  FILL | adr=0x0001000c | len=0x00000004 | ptn=0x00080004
  FILL | adr=0x00010020 | len=0x00000004 | ptn=0xc0010021
  ENA  | adr=0x00010000 | cnt=0x00000004 | flg=0x0110
  ERAS | adr=0x00000004 | cnt=0x00000004 | flg=0x0110
  ERAS | adr=0x00000008 | cnt=0x00000004 | flg=0x0110
  LOAD | adr=0x00000004 | len=0x000178c4 | crc=0xbb66d509 | flg=0x0110
  LOAD | adr=0x00000008 | len=0x000178c4 | crc=0xa1f260bf | flg=0x0110
Inject command 'receive-sb-file'
Preparing to send 193248 (0x2f2e0) bytes to the target.

Successful generic response to command 'receive-sb-file'
Response status = 0 (0x0) Success.
Wrote 193248 of 193248 bytes.
Finding all necessary files
Creating Filesystem
STATE_CHECK_FOR_ANY
STATE_CHECK_FOR_ELFLOADER
STATE_RESET_ELFLOADER
OpenHidDevice vid=18d1 pid=9307 ...
OpenHidDevice vid=18d1 pid=9307 opened
STATE_CHECK_FOR_SDP
STATE_LOAD_FLASHLOADER
STATE_CHECK_FOR_FLASHLOADER
STATE_PROGRAM
STATE_LOAD_ELFLOADER
STATE_PROGRAM_DATA_FILES
OpenHidDevice vid=18d1 pid=9307 ...
OpenHidDevice vid=18d1 pid=9307 opened
Transferring /third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd 10%
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd 20%
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd 30%
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd 40%
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd 50%
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd 60%
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd 70%
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd 80%
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd 90%
/third_party/cyw-bt-patch/BCM4345C0_<IP_ADDRESS>4.0266.1MW.hcd done
Transferring /third_party/firmware/cypress/43455C0.bin
/third_party/firmware/cypress/43455C0.bin 10%
/third_party/firmware/cypress/43455C0.bin 20%
/third_party/firmware/cypress/43455C0.bin 30%
/third_party/firmware/cypress/43455C0.bin 40%
/third_party/firmware/cypress/43455C0.bin 50%
/third_party/firmware/cypress/43455C0.bin 60%
/third_party/firmware/cypress/43455C0.bin 70%
/third_party/firmware/cypress/43455C0.bin 80%
/third_party/firmware/cypress/43455C0.bin 90%
/third_party/firmware/cypress/43455C0.bin done
Transferring /third_party/firmware/cypress/43455C0.clm_blob
/third_party/firmware/cypress/43455C0.clm_blob 10%
/third_party/firmware/cypress/43455C0.clm_blob 20%
/third_party/firmware/cypress/43455C0.clm_blob 30%
/third_party/firmware/cypress/43455C0.clm_blob 40%
/third_party/firmware/cypress/43455C0.clm_blob 50%
/third_party/firmware/cypress/43455C0.clm_blob 60%
/third_party/firmware/cypress/43455C0.clm_blob 70%
/third_party/firmware/cypress/43455C0.clm_blob 80%
/third_party/firmware/cypress/43455C0.clm_blob 90%
/third_party/firmware/cypress/43455C0.clm_blob done
Transferring /usb_ip_address
/usb_ip_address done
STATE_RESET_TO_FLASH
OpenHidDevice vid=18d1 pid=9307 ...
OpenHidDevice vid=18d1 pid=9307 opened
Flashing to flash storage complete, the device is restarting to execute your application.

*Selecting "Dev Board Micro" board*
	Section: 0x0
iMX bootable image generated successfully
Boot Section 0x00000000:
  FILL | adr=0x00010000 | len=0x00000004 | ptn=0xc2000105
  FILL | adr=0x00010004 | len=0x00000004 | ptn=0x00010020
  FILL | adr=0x00010008 | len=0x00000004 | ptn=0x00040004
  FILL | adr=0x0001000c | len=0x00000004 | ptn=0x00080004
  FILL | adr=0x00010020 | len=0x00000004 | ptn=0xc0010021
  ENA  | adr=0x00010000 | cnt=0x00000004 | flg=0x0110
  ERAS | adr=0x00000004 | cnt=0x00000004 | flg=0x0110
  ERAS | adr=0x00000008 | cnt=0x00000004 | flg=0x0110
  ERAS | adr=0x0000000c | cnt=0x00000040 | flg=0x0110
  LOAD | adr=0x00000004 | len=0x000178c4 | crc=0x16eeb661 | flg=0x0110
  LOAD | adr=0x00000008 | len=0x000178c4 | crc=0xddd6d5ce | flg=0x0110
Inject command 'receive-sb-file'
Preparing to send 193264 (0x2f2f0) bytes to the target.

Successful generic response to command 'receive-sb-file'
Response status = 0 (0x0) Success.
Wrote 193264 of 193264 bytes.
Finding all necessary files
Creating Filesystem
STATE_CHECK_FOR_ANY
STATE_CHECK_FOR_ELFLOADER
STATE_RESET_ELFLOADER
OpenHidDevice vid=18d1 pid=9307 ...
OpenHidDevice vid=18d1 pid=9307 opened
STATE_CHECK_FOR_SDP
STATE_LOAD_FLASHLOADER
STATE_CHECK_FOR_FLASHLOADER
STATE_PROGRAM
STATE_LOAD_ELFLOADER
STATE_PROGRAM_DATA_FILES
OpenHidDevice vid=18d1 pid=9307 ...
OpenHidDevice vid=18d1 pid=9307 opened
Transferring /coral_micro_camera.html
/coral_micro_camera.html 10%
/coral_micro_camera.html 20%
/coral_micro_camera.html 30%
/coral_micro_camera.html 40%
/coral_micro_camera.html 50%
/coral_micro_camera.html 60%
/coral_micro_camera.html 70%
/coral_micro_camera.html 80%
/coral_micro_camera.html 90%
/coral_micro_camera.html done
Transferring /default.elf
/default.elf 10%
/default.elf 20%
/default.elf 30%
/default.elf 40%
/default.elf 50%
/default.elf 60%
/default.elf 70%
/default.elf 80%
/default.elf 90%
/default.elf done
Transferring /usb_ip_address
/usb_ip_address done
STATE_RESET_TO_FLASH
OpenHidDevice vid=18d1 pid=9307 ...
OpenHidDevice vid=18d1 pid=9307 opened
Flashing to flash storage complete, the device is restarting to execute your application.

please refer to this comment: https://github.com/google-coral/coralmicro-out-of-tree-sample/issues/6#issuecomment-1515293630

Yeah, Show Sketch Folder puts me in the correct folder, and the file is there in the /data folder.

I found the /data folder is being "replaced"/"overwritten" by the /data folder inside the Arduino core libraries -> C:\Users\arthu\AppData\Local\Arduino15\packages\coral\hardware\coral_micro\1.0.1\variants\coral_micro_wifi\data

I tried putting the html file inside this folder and it was flashed correctly, but that's not supposed to work that way, I guess

Hi,
I confirm this bug.
I have done a little analysis, here what I have found:

In file boards.txt, the key coral_micro_wifi.upload.pattern passes two times the option --data_dir:

The first time, as for the micro (i.e. without wifi), to pass the tensorflow data model
The second time, to pass the data dir inside the variants folder, I suppose to load some specific firmware to enable the WiFi
So, in the end, it seems that passing two times the same option, does not work, since the second occurrence overwrites the first occurrence

I have run the flashtool program, with --help to check this fact, but the option --data_dir is not listed. i suppose this is a customization of a tihrd-party tool, and who have done the customization has forgotten to describe this option in the help
To confirm the bug I have done two checks:

If I run the upload as is, then I see in the log that the files inside the data dir of variants is actually loaded, but not the model inside the project dir
If I remove the second occurrence of --data_dir, I see the model is loaded, the files inside data of variants are not loaded, and, in this case, without using the wifi, the tensorflow model works fine

I note the tags of this issue, and I suggest to change them, since it does not work regardless of the platform (I am using MacOS and Linux, the original reported of this issue Windows, and it is normal that this cannot work regardless of the platform).
Regards


bug 1871890: add current profile annotations to CVO manifests

This is matches https://github.com/openshift/enhancements/pull/414 and doesn't change existing behavior

/retest

Created a new PR https://github.com/openshift/cluster-openshift-controller-manager-operator/pull/178 to rebase and supersede this PR.
/close


Rename Return Authorization for customer

@nishant-cyro @priyank-gupta For a customer heading "New Return Authorization" seems complex. We should rename it "New Return Request"

@bansalakhil - Thanks for pointing the issue, we will look into it and let you know when fixed.

@nishant-cyro - Fixed in PR #20


Plot confusion matrix

Plot the confusion matrix for training and test data

Hello,
I am willing to contribute to this issue

Hello, I am also willing to contribute to this issue.

Hello,
I am willing to contribute to this issue.


bug: Ionic view long title gets cutted when navigating back with ion-tabs

Hi I found a problem with view titles, when they are bigger than the window width.
It's present in this codepen:
http://codepen.io/anon/pen/wKdrpw
You have to shrink the preview window frame like this image.

Greetings @emanueltlantic!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

This bug seems to relate to how caching is done. container that holds the title becomes "smaller" when its in its cached background state, and that value is not updated when its resumed. I have found that adding cache: false, to the offending .state gets rid of this issue.
modified codepen: http://codepen.io/AlexSwensen/pen/BoRXrx

The problem is that I need cache in this page, so that wont't work for me... :(

I encountered this bug as well.

Hello! Are you still experiencing this issue?

Thanks for opening this issue with us! As this issue is a duplicate of https://github.com/driftyco/ionic/issues/4661#issuecomment-200779335 i will be closing this issue for now. But please feel free to move the conversation over to that issue. Thanks!


Add Anchor to groups like Exported/Internal

this should not be too hard and one can link internally the Api-Index - also maybe helpful when style is not one of the h1-6.

:+1:

I can do that later or tomorrow

If possible add an anchor to Exported/Internal, all groups of types even if they are not displayed. This would allow referencing it internally: These are also stable names and do not change.
Exception: one might get a dead link if some groups are filtered and skipped e.g.
a.md references in a docstring:

"""
[see section](#modulename_types)
"""

but in a custom saving one uses a setup without types.
save("docs/api/Lexicon.md", Lexicon; category_order = [:method, :macro]);

Gets also messy if a other module is referenced (which involves relative path) and that the saving path is changed.
Anyway might still be worthy at least in a forum one could post a link to a section in a nice way.

Adding permalinks to the section groups will show up in the side panel - not sure if one can do something about that without changing the mkdocs theme.

In the new Docile (julia 0.4/0.5) not anymore relevant.


Task/remove security questions 🚧💣

Trello Card
This PR handles:

removing security questions from the flow
removing income + benefits information

Which includes removing all associated tests, schemas, views, controllers, etc.
Updated Cypress tests to reflect those changes.

One last thing to remove is references to the options key since we don't use that anymore.
https://github.com/cds-snc/cra-claim-tax-benefits/blob/master/utils/index.js#L428-L436
Other than that, merge away.
🔪


i want to use CURLOPT_PROXY but have error how to fix

i dont have vpn server..just have proxy server.
so i  want to use CURLOPT_PROXY
CURLOPT_PROXY => 'proxy ip',
CURLOPT_PROXYPORT => 'proxy port',
CURLOPT_PROXYUSERPWD => 'username:password',

just can work on first page. and will miss the PHP-Proxy bar.
how to fix it..

Right, so you go to your config.php file and change this line to:
``
`$config['curl'] = array(CURLOPT_PROXY => 'ip:port');

Is it not working?

$config['curl'] = array(
CURLOPT_PROXY => 'ip:port');
CURLOPT_PROXYUSERPWD => 'username:password',
}
not working.. have bug..
1.PHP-Proxy bar will miss
2.the link just http://www.XXXX not index.php?q=http://www.XXXX

Send me a screenshot of what the page looks once you enable proxy

and the 1.PHP-Proxy bar miss

What does your config.php look like? "UrlForm" plugin has to be ENABLED for that bar to show up.

$config['plugins'] = array(
'HeaderRewrite',
'Stream',
// ^^ do not disable any of the plugins above
'Cookie',
'Proxify',
'UrlForm',
// site specific plugins below
'Youtube',
'DailyMotion',
'RedTube',
'XHamster',
'XVideos',
'Twitter'
);

if i use CURLOPT_INTERFACE => 'ip', the app will working...
but i dont have vpn server.. want to use proxy server

Paste me your entire config.php file. Something is not right here. For example, link to gmail should be PROXIFIED (index.php?q=...) and right now it isn't even though ProxifyPlugin is enabled...

 '',
  CURLOPT_PROXY => 'ip:80',
   CURLOPT_PROXYUSERPWD => 'username:password',
    // CURLOPT_CONNECTTIMEOUT => 5
);

//$config['replace_title'] = 'Google Search';

//$config['error_redirect'] = "https://unblockvideos.com/#error={error_msg}";
//$config['index_redirect'] = 'https://unblockvideos.com/';

// $config['replace_icon'] = 'icon_url';

// this better be here other Config::load fails
return $config;

?>

i just edit  $config['curl'] = array()
other not change

Okay, I tested this myself and it does not work for me either... weird. But I have to go to sleep now so I'll come back to this tomorrow morning.

ok good night..thanks for help

I found the problem and it's working now:
https://github.com/Athlon1600/php-proxy/commit/1434268abd41d45de5a6c45152927deb67bd1db5


Jobs from Git Repository not being registered

Environment

Nautobot version (Docker tag too if applicable): v2.1.9
Python version: 3.11.8
Database platform, version: Postgres 15.5
Middleware(s): N/A

Steps to Reproduce

Define a job that has been tested in $JOBS_ROOT and move it to a Git Repository under the root folder /jobs/
Define init.py files and import the relevant job from . import example_job
Sync Git repository containing jobs and validate job has been modelled.
Trigger job hook (from model update)

Expected Behavior
The job is created/updated in Nautobot and available (installed). When an object is modified that triggers the related Job Hook, the job is executed.
Observed Behavior
The job is successfully created and installed and in the UI we can see the Module, Job Class and Class Path are all present, however when the job is executed, a traceback is raised stating the job has not been registered.

Additionally, running the post_upgrade CLI command removes the job from the list of installed jobs.

I could only reproduce this bug when JobHookReceiver is triggered from a Job which alters the database.
STEPS to reproduce:

Create a Job(name: Add New Tag) that adds a new tag
Create a JobHookReceiver(name: Add New Tag Jo Hook Receiver) that checks if the last tag created color is red.
Create a git repo for this jobs and sync repo in Nautobot.
Enable the jobs
Create a JobHook for Add New Tag Jo Hook Receiver, check Type create.

TRIAL 1:
Add new tag from Tag UI page - (Add New Tag Jo Hook Receiver is successful)

Trial 2
Run the Add New Tag Job - (Add New Tag Jo Hook Receiver fails)

NOTE: Also running post_upgrade did not remove the job from installed jobs

Would be good to retest and confirm whether this is still an issue after the Job/Git fixes made in v2.2.3 (i.e. #5586).

Let's setup a test repo for jobs and proper integration tests for this.

We should also look into allowing any valid ref instead of just branch names in the GitRepo model.

Reading between the lines of the original submission, the error is referencing job ot_config_firewall.FirewallConfiguration but the screenshot is showing job alethia_git_repository.jobs.config_ot_firewall.FirewallConfiguration. I therefore wonder if the underlying issue here is not actually the Git repository, but maybe that there was a leftover JobHook record still pointing to the $JOBS_ROOT job that had been removed and migrated to the GitRepository.


Issue with .png alpha handling

PNG's can have an Alpha channel that needs to be handled with processing the texture data.
Without a fix this png:

will be handled as:

while it should appear as:

Setting the premultiplyAlpha = true on the texture data fixes this, however this will likely only need to happen when we're dealing with PNGs.

Fixed with #153


Refactor ErrorRenderer class for better modularity and maintainability

This refactors the 'ErrorRenderer' Class based of few principles or opinion. They are as listed below:

Global Variables:
The refactor addressed the issue of global variable dependency on document by passing it as a parameter to the class constructor. This change makes the code more modular and testable. Additionally, newSnapshot was passed as a parameter for better encapsulation.

Magic Numbers:
The refactor also addresses problem of magic strings for import paths was tackled by defining them as constants. This change improves code maintainability as it provides descriptive names for these paths.

Code Duplication:
Consolidated code duplication in the replaceHeadAndBody method by combining two calls to documentElement.replaceChild into a single call, enhancing code readability and reducing redundancy.

Static Methods:
Removed the static renderElement method as it didn't seem to have a clear reason to be static, making the code more consistent.

Method Size:
Split the render method into two separate methods, replaceHeadAndBody and activateScriptElements, to improve code organization and readability.

Hardcoded Queries:
The hardcoded query for script elements has been abstracted into the getScriptElements method, making it more maintainable.

@AfolabiOlaoluwa thanks for the effort to improve the code base, but I'm not convinced these changes are in the right direction. Changing ErrorRenderer class signature will require changing all the client code. Also ErrorRenderer follows the same structure than PageRenderer and FrameRenderer, which will need updates too for consistency.
Depending on the global variable document is okay and widespread around the code base. Using globals, in moderation, is okay when the simplify the code. You can see this video or this article for a longer discussion of the subject.
In this case the alternative is to initially fetch the document from the global, (because document is created by the browser and that's how client side code can access it) and then pass it around in every method call, which I don't think will improve readability.
And I don't think extracting the "script" string is worth it either. It adds indirection, forcing you to scroll back to to the top of the file to check what the constant means, when the original querySelector was already perfectly clear.


Check state dump time for mainnet

Is your feature request related to a problem? Please describe.
I'm always frustrated when we don't know how long it takes to make a state dump for a real network. Maybe it's seconds, maybe minutes, maybe hours.
Describe the solution you'd like
Traverse MPT for the current state in a special utility (see state sync code that does the same thing effectively) and dump key/value pairs into some file. We need to get an approximate real-life value, so this can be performed on a laptop.
Describe alternatives you've considered
Not a lot. We need to know if it's feasible to create state snapshots on a regular basis.
Additional context
#3493, https://github.com/nspcc-dev/neofs-node/issues/2878.

It was checked for mainnet at 5777148. It took from 6 to 8 minutes on a laptop. The resulting file is 250 Mb.


Fix some issues

Coverage increased (+0.4%) to 50.81% when pulling f1aea893dc387ba04de24cf3e5a02060dbccbe27 on ochedru:escaping into 4f6f4df967b860dd53230adc10c7571fe2a125b1 on dhatim:master.


Readme file

What type of PR is this? (check all applicable)

Check according to your PR

[x] 🚀 Added Profile

[ ] ✨ Feature Request

[ ] ✅ Joined Community

[ ] 🌟 Stared the repo

[ ] 🐛 Grammatical Error

[ ] 📝 Documentation Update

[ ] 🚩 Other

Description
Add Link of GitHub Profile

LGTM 👍 Don't forget to :star the repo :)

i have starred the repo send this to my friend too

@

LGTM 👍 Don't forget to :star the repo :)

i have starred the repo send this to my friend too

Sure you can send them.


thread '' panicked at 'attempt to subtract with overflow'

thread '<unnamed>' panicked at 'attempt to subtract with overflow', src/util.rs:28:28
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
==47284== ERROR: libFuzzer: deadly signal
    #0 0x563fd05f28f1 in __sanitizer_print_stack_trace /rustc/llvm/src/llvm-project/compiler-rt/lib/asan/asan_stack.cpp:87:3
    #1 0x563fd07294f8 in fuzzer::PrintStackTrace() (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x2684f8)
    #2 0x563fd0718db5 in fuzzer::Fuzzer::CrashCallback() (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x257db5)
    #3 0x7fed80c8b86f  (/usr/lib/libpthread.so.0+0x1386f)
    #4 0x7fed8099bd21 in raise (/usr/lib/libc.so.6+0x3cd21)
    #5 0x7fed80985861 in abort (/usr/lib/libc.so.6+0x26861)
    #6 0x563fd07a58d6 in std::sys::unix::abort_internal::h106ba9527f7605ac /rustc/efd0483949496b067cd5f7569d1b28cd3d5d3c72/library/std/src/sys/unix/mod.rs:259:14
    #7 0x563fd056c575 in std::process::abort::h3948a505910fa8be /rustc/efd0483949496b067cd5f7569d1b28cd3d5d3c72/library/std/src/process.rs:1975:5
    #8 0x563fd0712a55 in libfuzzer_sys::initialize::_$u7b$$u7b$closure$u7d$$u7d$::hd349c15f96591b5f (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x251a55)
    #9 0x563fd0799f88 in std::panicking::rust_panic_with_hook::h01febc308b2b313b /rustc/efd0483949496b067cd5f7569d1b28cd3d5d3c72/library/std/src/panicking.rs:606:17
    #10 0x563fd0799a11 in std::panicking::begin_panic_handler::_$u7b$$u7b$closure$u7d$$u7d$::h24a6d13f5560b71f /rustc/efd0483949496b067cd5f7569d1b28cd3d5d3c72/library/std/src/panicking.rs:497:13
    #11 0x563fd07969c3 in std::sys_common::backtrace::__rust_end_short_backtrace::h3e2917f0da9fbc5c /rustc/efd0483949496b067cd5f7569d1b28cd3d5d3c72/library/std/src/sys_common/backtrace.rs:139:18
    #12 0x563fd07999a8 in rust_begin_unwind /rustc/efd0483949496b067cd5f7569d1b28cd3d5d3c72/library/std/src/panicking.rs:495:5
    #13 0x563fd056d6d0 in core::panicking::panic_fmt::h7b8580d81fcbbacd /rustc/efd0483949496b067cd5f7569d1b28cd3d5d3c72/library/core/src/panicking.rs:107:14
    #14 0x563fd056d61c in core::panicking::panic::h50b51d19800453c0 /rustc/efd0483949496b067cd5f7569d1b28cd3d5d3c72/library/core/src/panicking.rs:50:5
    #15 0x563fd0704d79 in vial::util::percent_decode::h28ff2598049a60af (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x243d79)
    #16 0x563fd070379f in vial::util::decode_form_value::h527d24bbbe8dbae9 (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x24279f)
    #17 0x563fd06da70c in vial::request::Request::parse_form::hc487b974266e14cd (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x21970c)
    #18 0x563fd06271a3 in vial::request::Request::from_reader::h7ae1110a744bd9ce (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x1661a3)
    #19 0x563fd062f144 in rust_fuzzer_test_input (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x16e144)
    #20 0x563fd0712ba8 in __rust_try (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x251ba8)
    #21 0x563fd0712078 in LLVMFuzzerTestOneInput (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x251078)
    #22 0x563fd07192f1 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x2582f1)
    #23 0x563fd071eb7f in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long, bool, fuzzer::InputInfo*, bool, bool*) (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x25db7f)
    #24 0x563fd071fa78 in fuzzer::Fuzzer::MutateAndTestOne() (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x25ea78)
    #25 0x563fd0721e77 in fuzzer::Fuzzer::Loop(std::vector<fuzzer::SizedFile, fuzzer::fuzzer_allocator<fuzzer::SizedFile> >&) (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x260e77)
    #26 0x563fd0741790 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0x280790)
    #27 0x563fd056dea2 in main (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xacea2)
    #28 0x7fed80986b24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24)
    #29 0x563fd056e04d in _start (fuzz/target/x86_64-unknown-linux-gnu/release/fuzz_target_1+0xad04d)

The issue is https://github.com/sigaloid/vial/blob/5e94552375/src/util.rs#L28 trying to subtract 2 from a number less than zero.
From https://github.com/nic-hartley/httpserv/blob/585c020/src/http.rs#L40

For clarification I believe that the percent check should not return 0 as that causes it to infinitely loop. This was caused by my fix of the other header issue, technically capping it at 512 fixes it but I need to refactor that fix


Add WP_NO_ADMIN_AJAX_URL variable to set the default url

This can be changed later on with apply_filters( "no-admin-ajax/rule", $default_rule ); filter but it's nice to have option to define the default in wp-config.php as well.

@Nomafin if this looks good to you can you merge it?


Diagnostic API removed for FSFW houskeeping API

Codecov Report

Merging #93 (50e60f5) into main (c13aac0) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main      #93   +/-   ##
=======================================
  Coverage   74.73%   74.73%
=======================================
  Files         110      110
  Lines        7560     7560
=======================================
  Hits         5650     5650
  Misses       1910     1910

Flag
Coverage Δ

unittests
74.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Cluster support

Hi there,
Thanks for providing the brilliant redis client.
I've been shifting my redis into a cluster, and I don't find the word "cluster" in the repository except the "Issues" tab.
May I know whether the client supports cluster or not?
Looking forward to your reply.
Best regards,
Felix

@howshit Check out redis-clustr. It's a wrapper around this library that provides cluster support.
"Native" support for clustering is something that many have considered but I don't think we have a firm timeline on supporting it.


feat: add dark mode in contributor page

fixes #1229
before :
https://github.com/user-attachments/assets/ae8b6269-7967-4c16-84a4-006f10c2a1db
after :
https://github.com/user-attachments/assets/a67f64ce-ddcd-468b-b088-92a29ff40596

@Its-Aman-Yadav please review once and merge my pr


[cluster-test] add failpoints hashmap to the template

Motivation
Leverage cluster test to enable the falipoint injection.
Have you read the Contributing Guidelines on pull requests?
Y
Test Plan
ENABLE_FAILPOINTS=1 ./scripts/cti --pr 5957 --run bench
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/website, and link to your PR here.)

Experiment Result: all up : 822 TPS, 5512 ms latency, 10500 ms p99 latency, no expired txns

Curious - did you check in counter/logs that there are actual failures happening?
From the low TPS it does seem so, but wanted to double check

@andll yes, I did search in the logs and saw expected error messages.

/land


Export Rust+Zig headers, not just C

Perhaps can be done by a different tool, not midas itself.

If there is a specific "framework" for this, it could be REALLY easy for people to create their own generators. It could even be possible to add dynamically-linked plugins to the compiler for inconsequential operations such as header generations... That would be kind of cool.

That would be pretty cool, one complication might be whether we want to generate different code from Midas depending on what language we're interoperating with. I can imagine a zig-backed function might want us to send strings to them in a zig-friendly format, same with rust. But perhaps that kind of feature is a bit too intrusive on Midas, we'll have to think about it.

If you make it generic enough, just the data needed for the plugin to generate headers from, I feel it should work fine. Doesn’t need to be specific for every language, as the plugins will handle that. Midas should only have to output the data itself


feat: add deploy filter for sourcepaths

What does this PR do?
Adds a filter parameter for source:deploy which can be used together with sourcepaths
What issues does this PR fix or reference?
Before source-deploy-retrieve the source:deploy command was able to deploy each packageDir one by one in the order specified in the sfdx-project.json, if you used manifest as a parameter.
This was a way to deploy only selected components from each packageDir with a manifest file, which contains all selected components from all folders.
As this behaviour is not possible with source-deploy-retrieve anymore, a parameter filter togehter with sourcepaths can bring back this "old" behaviour. Iteration of the folders needs to be done manually.

After discussing this with Shane and Jochen, we've decided that it's preferable to use sfdx force:source:deploy to target "troublesome" metadata types that need to be deployed before the rest of a project.


Feat Faster unit tests

Faster unit tests.

[X] Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

We should test only our own code in unit tests. (If we need end to end testing, integration tests is the place for this). By effective use of mocks to test only our own code, we speed up our tests and therefore our builds.  Local changes have shown this takes ~15 seconds of the test time (When using a single worker).
I'd like to expand this out to our other tests. After this, the slowest are (measured using --duration):
5.25s setup    tests/unit/test_memory.py::test_add_event_with_action
3.28s call     tests/unit/test_security.py::test_unsafe_python_code
3.11s call     tests/unit/test_memory.py::test_add_event_increment_thought_idx
2.41s call     tests/unit/test_security.py::test_unsafe_bash_command
2.02s call     tests/unit/test_llm.py::test_completion_retries[InternalServerError-extra_args1-2]
2.02s call     tests/unit/test_llm.py::test_completion_retries[ServiceUnavailableError-extra_args2-2]
2.02s call     tests/unit/test_llm.py::test_completion_retries[RateLimitError-extra_args3-2]
2.01s call     tests/unit/test_llm.py::test_completion_retries[APIConnectionError-extra_args0-2]
2.01s call     tests/unit/test_llm.py::test_completion_exhausts_retries
2.00s call     tests/unit/test_runtime_build.py::test_build_image_from_scratch
1.46s setup    tests/unit/test_memory.py::test_embeddings_inserted_into_chroma
1.42s setup    tests/unit/test_memory.py::test_add_event_with_missing_keys
1.41s call     tests/unit/test_agent_skill.py::test_find_file_not_exist_file
1.35s setup    tests/unit/test_memory.py::test_load_events_batch_insert
1.35s setup    tests/unit/test_memory.py::test_add_event_with_observation
1.34s setup    tests/unit/test_memory.py::test_add_event_increment_thought_idx
1.25s setup    tests/unit/test_memory.py::test_search_with_no_results
1.16s setup    tests/unit/test_memory.py::test_search_returns_correct_results
1.14s setup    tests/unit/test_memory.py::test_load_events_into_index_with_invalid_json
1.13s setup    tests/unit/test_memory.py::test_events_to_docs_no_events
1.04s call     tests/unit/test_acompletion.py::test_async_completion_with_user_cancellation[0.9]

One way to make unit tests much fast without changing them is to run pytest with e.g. "-n 4" to run 4 tests in parallel within the workflow.
Like: poetry run pytest -v -n 4 --reruns 1 --reruns-delay 3 ./tests/test_*.py

One way to make unit test workflow finish much faster without changing them is to run pytest with e.g. "-n 4" to run 4 tests in parallel within the workflow. Like: poetry run pytest -v -n 4 --reruns 1 --reruns-delay 3 ./tests/test_*.py

For sure - multiple workers make things faster.


Enable trivial cases of global state variables.

Adds the functionality required to make trivial cases involving GLOBAL variables work.

This PR includes preparatory commits to move some printing code. Which I'd like to split away once accepted.
It also includes the generated .cpp file as a trial run to see if it helps with understanding what's happening.


feat: added the seo improvement to login page

I have set up title and metadata inside the head tag on the login page just like what was done on the main page.

Already done in https://github.com/origranot/reduced.to/pull/472


image url inserted from other tools obsidan/typora doesn't work, local image insert doesn't work either.

local images inserted using obsidan/typora do not display correctly.
![](./assets/xxx.png)

![](assets/xxxx.png)

/ insert image also does not do anything.
Image is displayed correctly with a weird URL asset.localhost/...

https://asset.localhost and asset: are the protocol supported by Tauri, thus the source can be loaded by the webview.
Please use  slash command: /image to select and insert local image.

But webview protocol syntax is not recognized by obsidian and vice versa.  Is there a way to provide compatibility?

Yes, there is a compatibility issue,
mdsilo is built with Tauri and obsidian with Electron.
Let's add this to to-do list.

Relative path (./) support shipped in v0.4.7:  https://mdsilo.com/,
You can forget asset: or https://asset.localhost now.
I will close this issue.


Possibility of OS reboot

Possibility of OS reboot after completing the OS upgrade.

@ab-mohamed : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@rdeltcheva Please update the author metadata (via the private repo). Thanks!

#sign-off

@mimckitt: I'm sorry - only the author of this article, @mssedusch, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

lgtm #sign-off

#hold-off

@MSSedusch @mimckitt - I've fixed the note formatting. OK to merge the PR?

#sign-off


Include remote peer ID in firewall error messages

When firewall validation fails for a given peer we want to include the peer ID in the error message. The peer ID is expected to be the ethereum address for the ethereum chain.
Having this value in the error simplifies problem debugging.

Okay - I'm good here. I left some non-blocking review, so depending on how that goes we can add some backlog cards, but merge in the meantime.


Show charity logo somewhere on single page form

The default style just shows the Every.org logo, which made a nonprofit I talked to feel like it didn't include her branding; we support specifying the nonprofit logo, but only display it in the split pane view.

This will be addressed in the new widget design #86


Folding causes invisible headings

Describe the bug
Hi, I have an org file with several headings and some of them are invisible when folded. In terms of folding/unfolding functionality there is not any issues, it is just the visuals. See the screenshots. I'd appreciate any help.
Here is the test file I am using:
* Header1
  foo
* Header2
  bar
** Subheader
   fofo2f1
* Header 3
  zet

Steps to reproduce

Open file
Shift-tab to fold everything
Observe some headings are not visible

Expected behavior
Headings should be visible when folded
Emacs functionality
Parsing is fine on Emacs.
Minimal init.lua

require('packer').startup(function()
	use {'wbthomason/packer.nvim'}
	use {'nvim-treesitter/nvim-treesitter'}
	use {'nvim-orgmode/orgmode', config = function()
			require('orgmode').setup{}
		end
	}

end
)

require('orgmode').setup()
require('orgmode').setup_ts_grammar()
require'nvim-treesitter.configs'.setup {
	highlight = {
		enable=true,
		-- disable={'org'},
		additional_vim_regex_highlighting={'org'},
	},
	ensure_installed ={'org'},
}
vim.wo.foldmethod="expr"
vim.opt.foldexpr="nvim_treesitter#foldexpr()"

Screenshots and recordings

OS / Distro
Ubuntu 20.04
Neovim version/commit
0.8.0-dev
Additional context
No response

This seems like a color scheme issue.
Try running this in cmd line:
:hi Folded guifg=#FFFFFF

Thanks for your reply. I guess it was caused by headlines.nvim . After updating it, the issue resolved. Closing.


Add white arrow icon for action bar back button

The design requires an opaque white icon, which is not included in the platform defaults. Font Awesome includes similar icons, but the IconDrawable cannot be defined in the XML style definition, and it cannot even be set dynamically before API 18. Commit d9fc315f9fdcafdd31e83fd592c5121b20289e9e attempted to recreate the angle icon manually in XML using a combination of layer-list and shape drawables, but it could not define a fixed size, and the point also did not join the lined optimally. This commit adds PNG icons equivalent to the platform ones with opaque white color. These were modified from the ic_ab_back_holo_dark_am.png icons from the Holo Dark theme, with the alpha channel removed.
https://openedx.atlassian.net/browse/MA-919

@aleffert please review

:+1: but lets make sure it's necessary after darkening the title bar to match the spec


Increment priority by group

This will fix random ordering buttons when no priority was specified.
The previous situation was that it copied the priority from the last button/spacer. This could be from the same group (thus package) or from an other group. Resulting in buttons with the same priority from multiple groups ordered by first come.
New situation is that it will increment the priority from the last appended button/spacer that isn't part of the current group, making sure that all button/spacer without priority are at least grouped together.
The real fix is of course just to give all buttons/spacers in your package an priority:

[x] https://github.com/cakecatz/flex-toolbar/pull/56

:+1:


assign inductor as sig-docs-ja approver

@inductor helps us many time and I think @cstoku is busy recent days.

Thank you :D

/lgtm
/approver

@zacharysarah I think you made a typo :P

@zacharysarah ping

@inductor Sorry, autocorrect is awful 😆
/approve


Added a scaling factor to BASEX

Following the issue #4 , this PR adds a fixed scaling factor of 8.053 on the output of the BASEX algorithm as to match the analytical results.
Here, I used the symmetric step function example (see PR #16 )  that depends on a number of parameters, including:

n : number of points along the r axis
r_max: range of the symmetric r interval
r1, r2: bounds of the step function for (r > 0)
A0:  height of the step

So the test code I used is accessible here https://gist.github.com/rth/9885931342bf8a5ad056 ( requires PR #16). Essentially, it calculates the ratio between the height of the reconstructed signal to the original one (e.i. the scaling factor). Then sweeps along different input parameters are performed in order to determine which ones influence the scaling factor.
The original result is here:  http://pastebin.com/EWsRVhMB  where we want to have ratio_mean == 1 if the scaling is correct.
So by normalizing the output by 8.053/pixel_size we do obtain the correct scaling in all the tested cases: http://pastebin.com/S6FtmR4m (up to a precision given by ratio_std as there is some noise in the reconstructed signal).
@DhrubajyotiDas I have also tried the scaling value you used of 1.1122 (note that you scaled the Ci matrix, while I scale the output signal). So this would be equivalent of scaling the output signal by  1.1122*n I think? In any case I was not able to get good agreement for all tested parameters with this value (see results at http://pastebin.com/1Zj5EwAS )
Anyway, this is a bit weird, at some point somebody would need to look up what factor is missing in the math, but for now I guess that's all we can do...

Yeah, I think that this is the best thing that we can do at this point. I suggest that we go ahead and merge this.
It's a little weird that nobody noticed this difference in absolute scaling in the past. But I think that a similar problem exists with the BASEX.exe that most photoelectron spectroscopy researchers use. I will play with this more today when I can use the lab computer where BASEX is installed, but here is an example of some of some of my data transformed using the BASEX.exe. The magnitude of the projection and the transform should roughly match, but instead I needed to multiply the transform by ~200. So it's way off.

Also, same issue with the matlab POP algorithm. Here I needed to multiply the transform by 40 to obtain agreement.

So, a nice feature of the BASEX algorithm in PyAbel is that gives you the physically meaningful absolute value, even if it's with an empirically derived scaling factor.

Hmm, when you say "the magnitude of the projection and the transform should roughly match" shouldn't it somehow be related to the pixel_size or the number of points n? Or is it compensated for?
Say if you take a signal with n points and perform BASEX calculations which will yield some amplitude. Now if you up sample the original signal by a factor of 2 (i.e. same signal on 2n points with half the original pixel_size) the amplitude of the BASEX calculation will change (which I account for in this PR). Do you observe that in the BASEX.exe program or is it just an offset by some constant factor ?

You are basically saying that if you change the bin size of a histogram, then the peak heights are going to change. That is certainly true and something we should watch out for. (And, potentially the cause of the mysterious 8.053 offset could be something like this, where we are making some sort of coordinate transform and not taking into account the Jacobian.)
But, in the two images that I posted, the number of pixels is preserved, so I think that this should not be a problem. But you are correct, I should say that the magnitude of the projection and the inverse abel transform should look about the same so long as the pixel size is preserved.

@rth I've noticed that the BASEX output oscillates severely at near-vertical edges of the transform, i.e., at |x| = 6 or 14 in the example function in https://github.com/PyAbel/PyAbel/pull/16
Why not stick with gaussian example functions where the outputs are smooth everywhere except at x = 0? I believe if you omit the very edges of the range of x, the element-wise ratio between the analytical transform and the BASEX transform is very close to single-valued, and a mean or median of that should be sufficient to see if the scaling factor is accurate or not.
As another data point to this discussion, here's my results with the 1.1122 multiplied to the Ci matrix for an exponential

and a few other polynomial functions (from doi:10.1016/j.sab.2005.11.009)

Thanks @DhrubajyotiDas, that's a good point that we should be careful to ignore the edge regions when calculating the scaling factor. I think that @rth took this into account by only considering the middle 60% of each step, so we should be okay. But yes, just using a function that produces a smooth transform would be a good solution.
If I just multiply the Ci matrix by 1.1122 in the PyAbel master branch, I cannot obtain agreement. Did you produce the graphs using the code here or in your pyroBASEX repo?

@DhrubajyotiDas  Good point, I'll add a issue to add tests with Gaussian functions (that I initially changed in part because of this artifact at x=0 in the reconstruction).
I was going to make the same comment as @DanHickstein :  would you have the script to produce that Gaussian function + reconstruction? I tried to run the examples/example_gaussian.py with pyroBASEX but could make it work fully because of the change in the interface. I'm wondering if the correction factor you get might be different because of the modification of the basis set generation? Or it is possible I'm doing something wrong. In any case, it would probably be good to understand this difference in normalization  before merging the PR.. Thanks.

I produced the graphs using the version of BASEX in my pryoBASEX repo. Here's the script to reproduce the Gaussian line-of-sight function reconstruction.
https://gist.github.com/DhrubajyotiDas/bd68a205c94a340f336e
Here's a link to the basis set that was generated and used in the example. If you are trying to reproduce the example, it might be useful to compare your generated basis set to the one I'm using if you notice disagreements.
The 1.1122 scaling factor is already incorporated here, so the BASEX reconstruction directly matches the analytical reconstruction. You can comment out the relevant line and retry to see the native disagreement.
Some side notes: n_vert and nbf_vert in my example are not set to 1 because I was investigating if those had any impact on the scaling factor (they didn't).

@DhrubajyotiDas  Great, thanks! I just checked that both PyAbel and pyroBASEX have the correct scaling   ( https://gist.github.com/rth/d2454b787d71ffe0ef5d ) : one with the 8.053 factor and the other with Ci*1.1122 included in the code. So because the latter approach does not seem to work  with PyAbel, it stands to reason that this scaling factor was somehow changed when you modified the basis generation function.
Well, it is empirical anyway, so as long as it works it should be fine. I'm merging this PR. Thanks for help in debugging this issue!


Add NPDA

Add NPDA
Rename test name

🔀 Merge from branch dev
Now you can use DPDA, a more powerful machine


Datac objects should behave like a list

A Datac object should act like a list in that it should have an order, it should be iterable, and its data can be accessed using list-like syntax. For example, consider a class, cuboid, which implements a cuboid and has a method to calculate its volume. This class would take three parameters: height, width, and depth.
import cuboid

heights = numpy.linspace(0, 10, 100)

dat = Datac(cuboid.volume, heights, "height", width=1., depth=2.)

dat[3]
# Should return an object similar to cuboid(height=heights[3], width=1., depth=2.)

The above assumes #27 has been closed.

A big problem with this approach is that the items in the list can change after the list is created.
A key idea with datac is that the abscissae are fixed when a Datac object is created and the ordinates are fixed once they are calculated -- because coupling between the two is foundationally important to how this module works.
Say dat is created like in the example above. What's to stop the following from happening?
# Assume the following code is executed after the code in the comment above.
dat[3].width = 7.

At this point, one of the parameters that was supposed to be a constant value in the calculation has changed.
I don't think "be careful with how you access data" is a solution. Nevertheless, I think I can implement the functionality described in this issue in order to make a useful tool in the short term [1].
[1] Famous last words.

Almost certainly the way to make Datac behave like a list is to make it inherit from collections.Sequence as given in an answer to a question on SO.


solve CORE-2881

@maxtaco check it out!

A small nit is to have your commit title line less than the git cut-off if possible...

👍 After C/I says Green


gui troubles

What command was run:
I downloaded the attached file from MagIC, unpacked with download_magic.py, and then ran,
for example,  demag_gui.py -WD .
only if the criteria.txt file is present does this bug happen.  the criteria.txt file is really useless with this file and should not have been there in MagIC.  but can we put in a trap if criteria.txt does not contain the table_column column then, the criteria file is ignored and we can move on?
lisa
What happened:
ltauxe:$ demag_gui.py -WD .
-I- You are in log mode.
You can check your log output in "demag_gui.log"
If you prefer verbose output to your Terminal/Command prompt, run "demag_gui.py -v"
Traceback (most recent call last):
File "/Users/ltauxe/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 3078, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 140, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1492, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1500, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'table_column'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/ltauxe/PmagPy/programs/demag_gui.py", line 8683, in
main()
File "/Users/ltauxe/PmagPy/programs/demag_gui.py", line 8679, in main
start(WD=WD, write_to_log_file=write_to_log_file, DM=data_model, meas_file=meas_file)
File "/Users/ltauxe/PmagPy/programs/demag_gui.py", line 8651, in start
meas_file=meas_file)
File "/Users/ltauxe/PmagPy/programs/demag_gui.py", line 207, in init
self.acceptance_criteria = self.read_criteria_file()
File "/Users/ltauxe/PmagPy/programs/demag_gui.py", line 2929, in read_criteria_file
'criteria'], custom_filenames={'criteria': criteria_file_name})
File "/Users/ltauxe/PmagPy/pmagpy/contribution_builder.py", line 74, in init
self.add_magic_table(name, fname=self.filenames[name])
File "/Users/ltauxe/PmagPy/pmagpy/contribution_builder.py", line 157, in add_magic_table
dmodel=self.data_model)
File "/Users/ltauxe/PmagPy/pmagpy/contribution_builder.py", line 1375, in init
self.df.index = self.df['table_column']
File "/Users/ltauxe/anaconda3/lib/python3.6/site-packages/pandas/core/frame.py", line 2688, in getitem
return self._getitem_column(key)
File "/Users/ltauxe/anaconda3/lib/python3.6/site-packages/pandas/core/frame.py", line 2695, in _getitem_column
return self._get_item_cache(key)
File "/Users/ltauxe/anaconda3/lib/python3.6/site-packages/pandas/core/generic.py", line 2489, in _get_item_cache
values = self._data.get(item)
File "/Users/ltauxe/anaconda3/lib/python3.6/site-packages/pandas/core/internals.py", line 4115, in get
loc = self.items.get_loc(item)
File "/Users/ltauxe/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 3080, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 140, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1492, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1500, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'table_column'
/Users/ltauxe/anaconda3/bin/pythonw: line 3: 65897 Segmentation fault: 11  /Users/ltauxe/anaconda3/python.app/Contents/MacOS/python "$@"
What I expected to happen:
for it to work.
magic_contribution_16676.txt
Data file(s):
this seems to happen on all data files i've tried.
Screenshot(s):
PmagPy version:

oh.  i found the bug in contribution_builder and fixed it (it just ignores bad criteria files).


edit on github link broken for manifest reference page

The edit on github button at the bottom left of the manifest reference document seems to be broken. It is redirecting me to a link with an extra .md at the end: https://github.com/fermyon/developer/blob/main/content/spin/manifest-reference.md.md

@itowlson  Okay, this issue still exists. The issue is that the URL linked to is  https://developer.fermyon.com/spin/manifest-reference.md which includes the .md in the URL. That is what leads to the double .md at the end.
@michelleN, did you get directed to that link by some other link on the site or was it manually entered?

Are you sure @karthik2804?  This is what the production site shows me for the Edit in GitHub button:

and the link appears to work correctly.

It does work correctly when navigated from the website but if it is accessed through https://developer.fermyon.com/spin/manifest-reference.md , then the trailing .md is added.

Huh, the same is true for every page on the site, e.g. https://developer.fermyon.com/spin/install.md.  I don't know how that link is getting built...?

@karthik2804 uh oh
https://developer.fermyon.com/spin/install.hello-karthik

Unassigned myself because the remaining issue is no longer a content issue and I have no idea how to fix it I'm afraid!

It is generated using spin-path-info

I will fix that.


do not do jumped takeoff if already in air

Hotfix for takeoff. Went testing today and realised that drone would fall out of the sky if mission with takeoff is entered in air. I was able to reproduce this also in simulation.

I can follow your changes. I would say it's for the better ;)

This probably fixes https://github.com/PX4/Firmware/issues/3595

Applied to master


Question

Hii everyone
I'm junior FE but i want to try this
Can you help me ?
How to deploy with aws ec2 instance
I have read docs/docker_ec2.rst
But thats not work.
Thank you have a great day

when i running docker-compose build --force-rm and docker-compose up
i got error failed to solve: executor failed running [/bin/sh -c DJANGO_SETTINGS_MODULE=config.settings.production DJANGO_DOT_ENV_FILE=.env python manage.py collectstatic --noinput]: exit code: 1

.