Generation of EventAccumulatedPic and Event-Threshold comparison

Hi,
I am developing my first application based on the CeleX 04-S DVS sensor. I have a few questions about that.
1) Generation of the EventAccumulatedPic
According to the documentation, the brightness value from each event is taken and saved into a cv::Mat. My own implementation of this procedure:
this->ownAccumulatedMat = cv::Mat(cv::Size(768, 640), CV_8UC1, char(0));
// ...
auto eventVector = pSensorData->getEventDataVector();

for (auto e : eventVector) {
    int currRow = PIXELS_PER_ROW - e.row - 1;
    int currCol = PIXELS_PER_COL - e.col - 1;

    this->ownAccumulatedMat.at<unsigned char>(currRow, currCol) = (unsigned char) e.brightness;
}

results in a visible difference compared to the result provided by the SDK (cv::Mat currentSdkEventAccumulatedMat = pSensorData->getEventPicMat(EventAccumulatedPic); ) . My generated frame seems significantly noisier. Can you explain me the difference in the generation of this accumulated Mat?

2) Comparison with the threshold
The documentation of the threshold-function (CeleX4::setThreshold) indicates that the triggering of events is determined by this value. So I'm assuming that each event has a absolute difference to the last known gray-value above this threshold-value.
Comparing the brightness of each event in the EventDataVector to the corresponding pixel in (previous, current and own) EventAccumulatedPic shows, however, that this is not necessarily the case:
Here the example output of a comparison (matching / not matching):

// [...]
previousSdkAccumulatedMat: 24327 / 104185 (18.9297%)
currentSdkEventAccumulatedMat: 18575 / 109937 (14.4539%)
ownAccumulatedMat: 11476 / 117036 (8.92991%)

previousSdkAccumulatedMat: 26141 / 103533 (20.159%)
currentSdkEventAccumulatedMat: 18908 / 110766 (14.5812%)
ownAccumulatedMat: 13679 / 115995 (10.5488%)
// [...]

Is my source for the difference calculation wrong?
For a better understanding, I have attached a minimal code example that clarifies my questions and my calculations:
int main(int argc, char **argv) {
    CeleX4 *pCelex = new CeleX4;
    // ...
    pCelex->openSensor("");
    pCelex->setFpnFile(FPN_PATH);
    // ...
    pCelex->setEventFrameTime(60);
    pCelex->setOverlapTime(0);
    pCelex->setThreshold(30);
    // ...
    pCelex->setSensorMode(EventMode);
    auto *pSensorData = new SensorDataObserver(pCelex->getSensorDataServer(), pCelex);
    // ...
    while (true)
    {
        pCelex->pipeOutFPGAData();
        usleep(1000 * 2);
    }
}

SensorDataObserver::SensorDataObserver(CX4SensorDataServer *pServer, CeleX4 *sensor) {
    m_pServer = pServer;
    m_pCelex = sensor;
    m_pServer->registerData(this, CeleX4DataManager::CeleX_Frame_Data);

    this->ownAccumulatedMat = cv::Mat(cv::Size(768, 640), CV_8UC1, char(0));
}

void SensorDataObserver::onFrameDataUpdated(CeleX4ProcessedData* pSensorData) {
    // ...
    if (EventMode == sensorMode) {
        this->frameCount += 1;

        // ******************************************************************
        // Interpretation of applied threshold
        // Assumption: Each event should have an intensity change higher as current threshold in
        //             comparison to last known pixel intensity
        // ******************************************************************
        cv::Mat currentSdkEventAccumulatedMat = pSensorData->getEventPicMat(EventAccumulatedPic);

        auto eventVector = pSensorData->getEventDataVector();
        int diff, eventCountMatching, eventCountNotMatching;

        // 1) compare to previous 'frame' SDK accumulated data
        if (this->frameCount >= 2) {
            eventCountMatching = eventCountNotMatching = 0;
            for (auto e : eventVector) {
                int currRow = PIXELS_PER_ROW - e.row - 1;
                int currCol = PIXELS_PER_COL - e.col - 1;

                diff = (int) this->previousSdkAccumulatedMat.at<unsigned char>(currRow, currCol) - (int) e.brightness;
                if ( abs(diff) >= m_pCelex->getThreshold() ) {
                    eventCountMatching += 1;
                } else {
                    eventCountNotMatching += 1;
                }
            }
            std::cout << "previousSdkAccumulatedMat: " << eventCountMatching << " / " << eventCountNotMatching <<
                " (" << eventCountMatching / (float)(eventCountMatching+eventCountNotMatching)*100.0 << "%)" << std::endl;
        }

        // 2) compare to current SDK 'frame' accumulated data
        if (this->frameCount >= 2) {
            eventCountMatching = eventCountNotMatching = 0;
            for (auto e : eventVector) {
                int currRow = PIXELS_PER_ROW - e.row - 1;
                int currCol = PIXELS_PER_COL - e.col - 1;

                diff = (int) currentSdkEventAccumulatedMat.at<unsigned char>(currRow, currCol) - (int) e.brightness;
                if ( abs(diff) >= m_pCelex->getThreshold() ) {
                    eventCountMatching += 1;
                } else {
                    eventCountNotMatching += 1;
                }
            }
            std::cout << "currentSdkEventAccumulatedMat: " << eventCountMatching << " / " << eventCountNotMatching <<
                " (" << eventCountMatching / (float)(eventCountMatching+eventCountNotMatching)*100.0 << "%)" << std::endl;
        }

        // 3) compare to own accumulated 'frame' data
        if (this->frameCount >= 2) {
            eventCountMatching = eventCountNotMatching = 0;
            for (auto e : eventVector) {
                int currRow = PIXELS_PER_ROW - e.row - 1;
                int currCol = PIXELS_PER_COL - e.col - 1;

                diff = (int) this->ownAccumulatedMat.at<unsigned char>(currRow, currCol) - (int) e.brightness;
                if ( abs(diff) >= m_pCelex->getThreshold() ) {
                    eventCountMatching += 1;
                } else {
                    eventCountNotMatching += 1;
                }
            }
            std::cout << "ownAccumulatedMat: " << eventCountMatching << " / " << eventCountNotMatching <<
                " (" << eventCountMatching / (float)(eventCountMatching+eventCountNotMatching)*100.0 << "%)" << std::endl;
        }
        std::cout << "*********************************************************" << std::endl;

        // ******************************************************************
        // *** Difference between SDK accumulation and own implementation ***
        // ******************************************************************
        for (auto e : eventVector) {
            int currRow = PIXELS_PER_ROW - e.row - 1;
            int currCol = PIXELS_PER_COL - e.col - 1;

            this->ownAccumulatedMat.at<unsigned char>(currRow, currCol) = (unsigned char) e.brightness;
        }

        cv::imshow("currentSdkEventAccumulatedMat", currentSdkEventAccumulatedMat);
        cv::imshow("ownAccumulatedMat", this->ownAccumulatedMat);

        this->previousSdkAccumulatedMat = currentSdkEventAccumulatedMat.clone();
        char key = (char) cvWaitKey(2);
    }
    // ...
}

Hi, thanks for your questions. The following are the responses.
1) Generation of the EventAccumulatedPic
The raw data obtained using getEventDataVector does not remove the Fixed Pattern Noise(FPN).
However, in the data directly obtained from interface getEventPicMat, this noise has been removed already.
2) Comparison with the threshold
The threshold does not indicate the gray value, and there is a complex correspondence between them (hardware related). You can not compare the gray value difference with the threshold to determine whether the pixel should be triggered.
In a certain time interval, a pixel may be triggered multiple times, and it has a corresponding brightness/gray value at each triggering time.  In EventDataVector, it contains all the triggered gray values during this time interval. However, in EventAccumulatedPic, only the latest triggered gray value at each pixel location is retained. So your comparison method for these two data type is incorrect.
Thanks again. Please feel free to contact us if you have any further questions.


Allow specific files to be served

It would be nice if I could, in addition to serve files from fe. serveStatic("public/"), I could also serve specific files from other directories fe.
serveStatic("js/", ["node_modules/bootstrap/dist/js/bootstrap.js"]);
serveStatic("css/", ["node_modules/bootstrap/dist/css/bootstrap.css"]);

..so one could fe. just glob the files that he needs to be shared to clientside, pass them to serve-static and call it a day.

Gotcha. I mean, I believe you can currently do this today using, for example:
app.use('/js/bootstrap.js', serveStatic('node_modules/bootstrap/dist/js/bootstrap.js'))

But if not, or that don't work for you, let me know. And PRs are welcome for new functionality, if it is desired to happen quickly :)

Gotcha. I mean, I believe you can currently do this today using, for example:
app.all('/js/bootstrap.js', serveStatic('node_modules/bootstrap/dist/'))

But if not, or that don't work for you, let me know. And PRs are welcome for new functionality, if it is desired to happen quickly :)

The example in question works, however, that is going to result conflicts, thus I would like to serve the file from another directory, and just changing the mounting point doesn't seem to work. :/
app.all('/quickstart/bootstrap', serveStatic('node_modules/bootstrap/dist'));

Gotcha. Well, please feel free to put together a PR :) otherwise I don't really promise any kind of timeline on this.

Hi @mikkotikkanen, I'm going to close this since you haven't made a pull request, and neither has anyone else. I re-read this and just don't understand what you're trying to do. Looking at your file https://github.com/mikkotikkanen/express-quickstart/blob/master/index.js you are trying to do something you can already do with this module, just I think you didn't understand (or I didn't understand your question).
For example, the following:
app.all('/quickstart/jquery/js/*', function(req, res, next) {
  send(req, req.params[0], {root: 'node_modules/express-quickstart/node_modules/jquery/dist'})
  .on('error', function(err) { return next(); })
  .pipe(res);
});
app.all('/quickstart/bootstrap/*', function(req, res, next) {
  send(req, req.params[0], {root: 'node_modules/express-quickstart/node_modules/bootstrap/dist'})
  .on('error', function(err) { return next(); })
  .pipe(res);
});
app.all('/quickstart/font-awesome/css/*', function(req, res, next) {
  send(req, req.params[0], {root: 'node_modules/express-quickstart/node_modules/font-awesome/css'})
  .on('error', function(err) { return next(); })
  .pipe(res);
});
app.all('/quickstart/font-awesome/fonts/*', function(req, res, next) {
  send(req, req.params[0], {root: 'node_modules/express-quickstart/node_modules/font-awesome/fonts'})
  .on('error', function(err) { return next(); })
  .pipe(res);
});
app.all('/quickstart/requirejs/js/require.js', function(req, res, next) {
  send(req, 'require.js', {root: 'node_modules/express-quickstart/node_modules/requirejs'})
  .on('error', function(err) { return next(); })
  .pipe(res);
});

Can be written as the following:
app.use('/quickstart/jquery/js/', serveStatic('node_modules/express-quickstart/node_modules/jquery/dist'));
app.use('/quickstart/bootstrap/', serveStatic('node_modules/express-quickstart/node_modules/bootstrap/dist'));
app.use('/quickstart/font-awesome/css/', serveStatic('node_modules/express-quickstart/node_modules/font-awesome/css'));
app.use('/quickstart/font-awesome/fonts/', serveStatic('node_modules/express-quickstart/node_modules/font-awesome/fonts'));
app.use('/quickstart/requirejs/js/', serveStatic('node_modules/express-quickstart/node_modules/requirejs'));

Get Outlook for Android
On Tue, Jun 7, 2016 at 4:20 AM +0300, "Douglas Wilson"<EMAIL_ADDRESS>wrote:
Closed #40.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Editing polygons broke after March 27th

Steps to reproduce:

Create a polygon
Click "Edit geometries button"
Try to drag one of the polygon's points

Expected behavior:
Point should be movable
Actual behavior:
Point doesn't move anywhere
Bug happens regardless of whether I have imported a polygon or added it manually.
Worked on March 27th, doesn't work on March 28th, so probably caused by some recent release.
Browser: MS Edge 111.0.1661.54 (Official build) (64-bit)
Console get these errors when I try to move the point:

Doesn't work in Firefox 111.0.1 (64-bit) either.
No missing resources in the Network tab.
Same issues in the console:

Seems it's caused by update of mapbox-gl-draw from 1.3.0 to 1.4.1 in #828
@chriswhong Please take a look

Thanks, we are working on the fix.

Thanks, we are working on the fix.
Hello, this error appeared yesterday at 4 pm


UI5 linter gives "Maximum call stack size exceeded" error

Expected Behavior
UI5 linter should process our project without running into an internal error.
Current Behavior
When executing the UI5 linter on one of our projects, we see a "Maximum call stack size exceeded" error.
Steps to Reproduce the Issue
I can't share internal URLs here. I'll provide the information via a different channel.
Context

UI5 linter version: 0.2.0
Node.js Version: 20.11.1
npm Version: unknown
OS/Platform: Linux (no further details known)
Browser (if relevant): n/a
Other information regarding your environment (optional): nothing

Log Output / Stack Trace
Run UI5 linter on project ######## in repository ######

  ...

  ⚠  Process Failed With Error

  Error Message:
  Failed to produce report for ###################################: Maximum call stack size exceeded

  For details, execute the same command again with an additional '--verbose' parameter

      at ChildProcess.exithandler (node:child_process:422:12)
      at ChildProcess.emit (node:events:518:28)
      at maybeClose (node:internal/child_process:1105:16)
      at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
    code: 2,
    killed: false,
    signal: null,
    cmd: 'npx -c<EMAIL_ADDRESS>--format json --details'

This is caused by the following kind of defineProperty call:
Object.defineProperty(globalThis, "myProp", {
	configurable: "false",
	writable: "true",
	value: window.location.search
});

If a call like this is contained in any file of the project (e.g. a test file), any other file that accesses window will run into a Maximum call stack size exceeded exception when calling the TypeScript checker#typeToString API here: https://github.com/SAP/ui5-linter/blob/508d81d9ec8b9042bab63cff97e81c9c6305935f/src/linter/ui5Types/SourceFileLinter.ts#L360
I suspect this is a known TypeScript issue: https://github.com/microsoft/TypeScript/issues/55889
Interestingly, there are multiple ways to work around it by changing the relevant code to any of the following options:
Option A
Use a variable
var locationSearch = window.location.search;
Object.defineProperty(globalThis, "myProp", {
	configurable: "false",
	writable: "true",
	value: locationSearch
});

Option B
Use window at both places
Object.defineProperty(window, "myProp", {
	configurable: "false",
	writable: "true",
	value: window.location.search
});

Option C
Use globalThis at both places
Object.defineProperty(globalThis, "myProp", {
	configurable: "false",
	writable: "true",
	value: globalThis.location.search
});

@RandomByte will have another look into respective findings

https://github.com/microsoft/TypeScript/issues/55889 has been resolved. We should re-test with TypeScript 5.8 once released.


Mismatch for UNETR FLOPs between UNesT and UNETR papers

Hello, I have a question please regarding your UNesT paper: https://arxiv.org/pdf/2209.14378.pdf
In Table 2, you mentioned that for an input size of 96x96x96 UNETR has params of 92.6M and FLOPs of 268.0G. However, in UNETR paper in Table 5, the authors mentioned that the number of params is 92.6M but the FLOPs are 41.19G, with the same input size of 96x96x96. Could you please clarify that?
Thanks!

Hi @tangy5 ,
Could you please help share some details here?
Thanks in advance.

Hi @AbdelrahmanShakerYousef , thanks for the question, very appreciative for the interest of the UNesT work. I can provide details on how the numbers are got in the UNesT, the  number showed in UNesT are not taken directly from other papers such as UNETR. We measured all independently and under same experiment setting in evaluating the whole brain segmentation data. All numbers in UNesT are acquired by using this OpCounter: https://github.com/Lyken17/pytorch-OpCounter, I would suggest to calculate your FLOPS, MACS locally under the specific experiment setting, number can be different.  Note the macs and FLOPS are different, and. having relative FLOPS = 2MACS(roughly equivalent, especially variant models).
Thanks, hope this helps and can assist for getting your experiment FLOPS.

Thank you @tangy5 for clarification, but what do you mean by "evaluating the whole brain segmentation data"?
Isn't it just the FLOPs for a single input volume of 96 × 96 × 96 ?

Thank you @tangy5 for clarification, but what do you mean by "evaluating the whole brain segmentation data"?
Isn't it just the FLOPs for a single input volume of 96 × 96 × 96 ?

It is calculated with tensor input: [1,1,96,96,96], the FLOPS should only relate to input size, models. The whole brain segmentation data means the FLOPS are got from our practice. Thanks.


Glutin Init failure on Linux (Ubuntu 24.04)

I was testing a separate different change and encountered a Glutin failure when running some examples.
As of right now this failure happens when I try to run any example:
cargo run --example draw_shapes
...etc

Failure is like:
interface 'wl_surface' has no event 2
thread 'main' panicked at /home/on-three/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glutin-0.30.10/src/api/egl/surface.rs:239:44:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: queue 0x62c4c8177e80 destroyed while proxies still attached:
  wl_buffer@46 still attached

This is with a not very high end GPU
*-display
       description: VGA compatible controller
       product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: c7
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb

I ran some code yesterday and didn't encounter this issue, but I was using the current public release off Crates.io, not the develop branch.
I might also see if just restarting my machine shakes this out.

To clarify, restarting my machine did not shake the issue out.
Running an application built against current crates.io release I get the following GPU info after running without error:
2024-09-23 06:36:03 [notan_glow] INFO: OpenGL Info:
Version: 4.6 (Core Profile) Mesa 24.0.9-0ubuntu0.1
Renderer: AMD Radeon RX 480 Graphics (radeonsi, polaris10, LLVM 17.0.6, DRM 3.57, 6.8.0-35240528-generic)
Vendor: AMD

Looks like a similar discussion is going on here: https://github.com/QuantumBadger/Speedy2D/issues/112
I can run the examples if I set the environment variable as suggested:
WINIT_UNIX_BACKEND=x11 cargo run --example draw_shapes

I don't think I want to look at Glutin at all so I'm going to close this issue in a day or so. I imagine it will go away after a Glutin update (or something) which sounds very troublesome.

I had a chance to look at this again this afternoon.
Saw very clearly the interface 'wl_surface' has no event 2 message is generated when winit first communicates with the wayland server. The runtime failure is later (in glutin) when no wayland surface is found.
So it looks like a winit wayland issue.
I read elsewhere that this is fixed in more recent winit releases (newer than 0.28.7, the current version used in notan_winit).
So I guess fixing this means updating the three winit, winit_glutin and glutin crates. I did a quick attempt at that but the number of code changes required is more than I can swallow right now. I don't know notan_winit well enough.
I'll keep that update in mind, but at present I'm just going to close this. Reopen if you think it's necessary.


spirv-fuzz: Duplicate region using selection construct

Given a region R, this transformation will essentially turn R into:
if (...) {
  R;
} else {
  duplicate_of_R;
}

or alternatively to:
switch(...) {
case ...:
   R;
   break;
default:
   duplicate_of_R;
   break;

In both cases the value of the boolean guard or integer switch selector does not matter given that the branches are semantically equivalent.
The code after the duplicated region will need to use an OpPhi to capture ids generated by R and used after R.

@paulthomson for info.

@antnkarp I think this might be a good one for you to take.

Great, I can implement this.


Rework README to focus on first time users

Given someone that is looking for a cloud native, Kubernetes native GSLB solution and who finds this project. The README should concisely and simply answer the following questions:

What problem does it solve?
How does it solve the problem? (Briefly, simply and with links to detailed docs)
How do I run it locally to see how it works (Quick start)
If I wanted to contribute, what should I know and how could I setup my local development environment (see #100)

The goal of the README should leave no doubt as to what this project does, how it does it and an easy, quick way to try it out.

Some guides on good structure's for a README:

https://github.com/matiassingers/awesome-readme
https://gist.github.com/PurpleBooth/109311bb0361f32d87a2
https://github.com/othneildrew/Best-README-Template

@donovanmuller do you think current state of readme is good enough? since creation of this ticket it was amended with multiple stuff like local deployment and step-by-step deployment howto

Yeah, looks fine for now. 👍


add YoudaoNote.app V2.5.1

If there’s a checkbox you can’t complete for any reason, that's okay, just explain in detail why you weren’t able to do so.
After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[x] Named the cask according to the token reference.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.
[x] Checked there are no open pull requests for the same cask.
[x] Checked the cask was not already refused in closed issues.
[x] Checked the cask is submitted to the correct repo.

OK, I added english name; and the app name should be 'YoudaoNote.app', becasuse it will be a error if app name is 'Youdao Note.app':


replace NewLine func with NewWeightedLine for WeightedUndirectedG…

…raph type. This appears to be the correct functionality
Correct me if I am wrong but WeightedUndirectedGraph should have NewWeightedLine functionality as opposed to NewLine
The current behavior makes it non-trivial to add a weight to a line using NewLine
This PR obviously needs some tests, but I just wanted to check I wasn't missing something obvious in regards to the functionality
Cheers
-Matt

Thank you for this. Well spotted. Over all the tests in simple and multi all need improvement. That doesn't have to happen here.

Cool. I will update the commit and add some tests.

I had a look through the issues here and it's worse that what you have found. I will send a PR fixing this and other things I did wrong.


Error in Docplex documentation

Method: docplex.cp.modeler.no_overlap(sequence, distance_matrix=None, is_direct=None)
http://ibmdecisionoptimization.github.io/docplex-doc/cp/docplex.cp.modeler.py.html#docplex.cp.modeler.no_overlap
The documentation seems to suggest that parameter is_direct is a boolean (True or False), but providing a boolean throws an exception. instead a value 0 or 1 is expected.
Finally it would be very helpful to include some more examples, including the java/c++ examples. Currently there is no python example where sequencing with setup times is used.

Thanks a lot for this comment Joris. We will fix the problem and try to add more examples.


change test name 'should allow the user to select the flipper pass bonus' to 'should prompt the user to select the flipper pass bonus'

unnecessary


Sencha CMD sometimes does not provide exit code

usually when there are "only" warnings

Looks good, sorry for the delay, I merged and published this to npm as 0.1.6.  Thanks!

Don't worry, there's no rush. Great, Thank you for publishing!


Handle robot.js load failure.

This way people on linux/windows can at least share their screen.

Fixed the style.  My inline linter is failing me today.


How to set Scheduler readonly?

Can I set Scheduler readonly?
In the readony mode the users can't  add/delete/change the event.

Hi
Unfortunately, this has not been made internally.
If you want to limit/restrict the add/edit/delete, you would have to override the cellRenderer/customEditor/onDelete to stop the default behaviour, and make it like a readonly calendar. the Edit/Delete icon buttons would still be visible though, right now there is no way to remove them by option/props.

Hi
Got it. Thanks anyway.


Feature: pass thru

Another feature from Karabiner missing is the fn+esc key combo to temporarily disable Karabiner.

I downloaded   the program just for that function and nothing else..I thought it would have been a basic one to have and without the ability to write your own complex modifications you can't even add it yourself.
This is almost a year after this post and I still can't figure out how to do this..please tell me I'm missing something!


Query Param ignored in Zuul routing

Hi
I am using ZUUL proxy for routing  so i have given below configuration in my properties file -
zuul.routes.abc.path=/api/v1/datafromhana/**
zuul.routes.abc.url= ${partner.hana.host.url}/xyz/VSSERVICE/lmn/services/Pt/GetCurrentCustomerList.xsjs?PartnerID=1101293
But when i am hitting - http://domainname/api/v1/datafromhana/ in postman, it doesn't give me json data and i found that - query param - "?PartnerID=1101293" is not there in the url.
Please suggest the way to solve this problem. I  want to make it generic like if any user comes and says he want to add new zuul.routes.pqr.path and zuul.routes.pqr.url then we don't need to do any changes in the code. we can just add this two thing in property file and it should work.

This is not the spring cloud netflix issue tracker.

Your  target application should handle the default behavior of the parameter, not zuul. There are other ways  ("use filters") to make zuul act the way you want,But not suggested

Thank you for your suggestion . I have accessed the targeted url , created a  new http header and sent the request.


Ensure file handle is closed using with statement

This change ensures the file handle in setup.py is always closed afterwards.

Closing this; no longer needed due to https://github.com/CamDavidsonPilon/demographica/commit/35405d46f77866db8cf626b19f230575e658920f.


Remove childContext

This causes issues between upgrades and is not needed as Document is extended, it’s Next.js internals being overwritten basically.

Thanks for fixing this, @timneutkens!


Change typeface and / or add text?

Is there a way to change typeface? Whether it be month name, week days or even dates in the calendar?
Also is there any way to add a text to top right corner of a particular cell. I need to have a counter of how many events are on a particular day.
Thanks in advance.

Yes, you can change the Typeface in a Decorator. For example, what I did:
calendarView.addDecorator(new RobotoDecorator(this));

public class RobotoDecorator implements DayViewDecorator {
    private final Typeface robotoRegular;

    public RobotoDecorator(Context context) {
        // FontFactory is a Util class that I created to search for fonts inside assets/fonts
        robotoRegular = FontFactory.getRegular(context);
    }

    @Override
    public boolean shouldDecorate(CalendarDay calendarDay) {
        return true;
    }

    @Override
    public void decorate(DayViewFacade dayViewFacade) {
        // CustomTypefaceSpan is a Custom TypefaceSpan (CustomTypefaceSpan extends TypefaceSpan) that changes the TypeFace of a Span
        dayViewFacade.addSpan(new CustomTypefaceSpan("", robotoRegular));
    }
}


CODE OF CONDUCT missing

hey! @aryankashyap7
code of conduct's markdown file is missing in your repository. If you assign me this issue, then I would like to contribute it in this.

ohh, okay. I didn't know about that.
Thanks for the info.
okay, I am seeing the other issues.  :)

Please close this issue as it cannot be implemented

Please close this issue as it cannot be implemented

done


Request feedback message field should be mandatory

On the admin interface, users can choose to switch on the option of offering feedback on plans. If so they need to enter a message to display to end users. This field is marked as mandatory but it is possible to save it without an entry, meaning a blank box is shown on the interface.
Ideally, the stock message would pre-populate the box and be available to edit. You can't copy and paste from the tooltip as it only displays on hover-over.

It looks like saving an empty feedback message was already fixed since the bug was recorded. So I added the Sample Message from the tooltip to the page

Hiya - this is fixed and looks brilliant - however would it be possible to change the msg to message please? please see image

@johnpinto1

Hi @johnpinto1,
If you want to get Rails to show better name for attributes like the one above, orgs.email_msg, you can add a replacement to the I18n locale files in config/locales/[language].yml in the active_record section. For example:
en-GB:
  activerecord:
    attributes:
      org:
        email_msg: "Email Message"
  ...

https://github.com/DMPRoadmap/roadmap/blob/4d9665ef8c76736ac750fe6ed0763da26be2a0f3/config/locales/en-GB.yml#L3
Be sure to update all of the various locales. You can likely use Google translate for that.

PR for change requested by @magdalenadrafiova

Looks good. Closing out


Can't import Bestiary 4 - Walkena

Can't import statblock:
Walkena      CR 16
XP 76,800
Male mummified human oracle 12/Hierophant 9 (Pathfinder RPG Advanced Player's Guide 42, Pathfinder RPG Bestiary 4 196)
LE Small undead (humanoid, human)
Init +25; Senses darkvision 60 ft.; Perception +15
Aura frightful presence (30 ft., DC 20, 1 round)
Defense
AC 24, touch 17, flat-footed 19 (+3 armor, +1 deflection, +3 Dex, +2 dodge, +4 natural, +1 size)
hp 241 (12d8+180)
Fort +16, Ref +11, Will +14
Defensive Abilities hard to kill, mythic saving throws, unchanging[MA], unstoppable; DR 5/—; Immune undead traits; Resist fire 20
Weaknesses vulnerability
Offense
Speed 20 ft.
Melee +1 spear +13/+8 (1d6+4/×3) or
slam +12 (1d4+3)
Special Attacks burst of vengeance, divine surge (inspired spell), dust stroke, faith's reach[MA], force of will, inspired spell[MA], mythic power (21/day, surge +1d10)
Oracle Spells Known (CL 12th; concentration +22)
6th (5/day)—blade barrier[M] (DC 26), fire seeds, mass inflict moderate wounds (DC 26)
5th (7/day)—greater command (DC 25), flame strike[M] (DC 26), mass inflict light wounds (DC 25), summon monster V
4th (8/day)—freedom of movement, inflict critical wounds[M] (DC 24), summon monster IV, unholy blight (DC 24), wall of fire[M]
3rd (8/day)—dispel magic[M], fireball[M] (DC 24), inflict serious wounds (DC 23), invisibility purge, prayer, searing light
2nd (9/day)—death knell (DC 22), desecrate, hold person (DC 22), inflict moderate wounds (DC 22), communal protection from good[UC], resist energy, silence (DC 22)
1st (13/day)—burning hands[M] (DC 22), divine favor[M], inflict light wounds (DC 21), obscuring mist, sanctuary (DC 21), shield of faith, sun metal[UC] (DC 22)
0 (at will)—bleed (DC 20), create water, detect magic, guidance, light, purify food and drink (DC 20), read magic, resistance, spark[APG] (DC 20)
Mystery Flame
M mythic spell
Statistics
Str 14, Dex 17, Con —, Int 10, Wis 14, Cha 30
Base Atk +9; CMB +10; CMD 26
Feats Dodge[M], Elemental Focus (fire)[APG], Extra Revelation[APG], Extra Revelation[APG], Improved Initiative[M], Improved Natural Attack (slam)[B], Iron Will[M], Lightning Reflexes[M], Toughness[M]
Skills Acrobatics +3 (-1 to jump), Diplomacy +25, Heal +7, Intimidate +25, Knowledge (history) +12, Knowledge (planes) +8, Knowledge (religion) +8, Perception +15, Spellcraft +15, Stealth +12; Racial Modifiers +4 Stealth
Languages Ancient Osiriani, Common, Ignan, Polyglot; tongues (understand)
SQ amazing initiative, divine potency[MA], divine source[MA], divine source[MA], flexible counterspell[MA], immortal, mythic spellcasting[MA], oracle's curse (tongues [ignan, osiriani, ancient]), recuperation, revelations (fire breath, firestorm, gaze of flames, heat aura, molten skin, wings of fire)
Combat Gear scroll of inflict serious wounds, scroll of inflict serious wounds, scroll of inflict serious wounds, scroll of inflict serious wounds, scroll of mass cure moderate wounds, scroll of mass cure moderate wounds, scroll of mass cure moderate wounds, scroll of mass cure moderate wounds; Other Gear +2 padded armor, +1 spear, cloak of resistance +2, headband of alluring charisma +2, ring of protection +1
Special Abilities
Amazing Initiative (1/round) (Ex) As a free action, use 1 power to gain an extra standard action (can't be used to cast a spell).
Burst of Vengeance (2/day) (Su) As a swift action, act as if affected by a haste spell for 1 round.
Damage Reduction (5/-) You have Damage Reduction against all attacks.
Darkvision (60 feet) You can see in the dark (black and white only).
Divine Source (3 domains, 2 subdomains) (Su) You can grant divine spells to those who follow your cause.
Dodge [Mythic] Use 1 power to gain a +10 dodge bonus against one attack.
Dust Stroke (Su) Creatures killed by natural attacks disintegrate into a cloud of dust and ash.
Elemental Focus (Fire) +1 DC to spells that deal damage of the chosen energy.
Energy Resistance, Fire (20) You have the specified Energy Resistance against Fire attacks.
Faith's Reach (Su) Your touch divine spells have a range of 30 ft.
Fire Breath (15 ft. cone, 12d4, 3/day, DC 26) (Su) 15 ft. cone of flame deals 12d4 fire damage, Ref half.
Firestorm (12d6, 10 rd, 1/day, DC 26) (Su) Create 12 10' cubes of fire, dealing 12d6 fire damage, Ref. half, for 10 rds.
Flexible Counterspell (Su) As immediate action, use 1 power and spell of same or higher level to counterspell.
Force of Will (Ex) As an immediate action, use 1 power to reroll any d20, or force non-mythic to reroll.
Frightful Presence (30 ft., 1 round, DC 20) Those in area of effect become frightened or shaken (Will neg.)
Gaze of Flames (Clairvoyance 120 ft., 12 rounds/day) (Su) See through fire, fog, and smoke, or use a flame within 120 ft for clairvoyance.

Heat Aura (6d4 fire damage, 10 feet, 3/day, DC 26) (Su) As a swift action, 6d4 fire dam to all in 10 ft (Ref half) and gain 20% concealment for 1 rd.
Immortal (Su) Ressurrect next day, unless killed by mythic foe's crit, or an epic weapon.
Immunity to Non-Mythic Petrification You are immune to non-mythic petrification.
Immunity to Non-Mythic Polymorph You are immune to non-mythic polymorph effects.
Improved Initiative [Mythic] When rolling initiative, use 1 power to treat the roll as a natural 20.
Inspired Spell (Su) Use 1 power, cast one divine spell from your class spell list at +2 CL, it doesn't need to be known/memorized.
Iron Will [Mythic] Roll Will save vs. spells, Sp, or Su abilities from non-mythic foe twice (take higher).
Lightning Reflexes [Mythic] Roll Ref save vs. spells, Sp, or Su abilities from non-mythic foe twice (take higher).
Mythic Saving Throws (Ex) A successful save negates all effects from a non-mythic source.
Recuperation (Ex) Fully heal after 8 hrs rest, use 1 power and 1 hr to heal half and restore all non-mythic abilities.
Surge (1d10) (Su) Use 1 power to increase any d20 roll by the listed amount.
Tongues (Ignan, Osiriani, Ancient) You can only understand and speak two languages in combat.
Tongues (understand) (Ex) Understand any language.
Toughness [Mythic] Gain DR 10/epic when below 0 hit points.
Unchanging (Su) Immune to non-mythic polymorph and petrfication effects.
Undead Traits Undead have many immunities.
Unstoppable (Ex) As a free action, use 1 power to end one listed condition on yourself.
Vulnerability (Electricity) Vulnerable to the indicated type of energy.

Used your latest module that was available as of about 10:30 am. I used Hero Lab to produce this statblock. For greater accuracy, you might want to use one of the online resources. Hero Lab can truncate some of the text -- or inject errors due to a lack of data. All the other statblocks from Bestiary 4 imported -- a total of more than 85% imported!

[ ] Add "Mystery" to Spellparsing (in addition to Domains, etc.)


pfe-accordion: Drop shadow showing under opened header

Description of the issue
A drop shadow is showing under the expanded header.
Impacted component(s)

pfe-accordion
pfe-content-set

Steps to reproduce

Go to https://patternflyelements.com/elements/pfe-accordion/demo/
Click on the first accordion header
See the drop shadow under the header that shouldn't exist.

Expected behavior
There shouldn't be a drop shadow.
Screenshots

Appears to have been introduced in: https://github.com/patternfly/patternfly-elements/commit/89ddfdc00382e46946309f02719a5faa1190248f

Appears to have been introduced in: https://github.com/patternfly/patternfly-elements/commit/89ddfdc00382e46946309f02719a5faa1190248f

This issue should've been closed by #1288. Everything looks good now.


PEM_read_bio_X509_REQ(...) Always returns NULL!

Openssl Version: OpenSSL 1.0.2l  25 May 2017
BIO bo = BIO_new(BIO_s_mem());
BIO_write(bo, csrString.c_str(), strlen(csrString.c_str()));
X509_REQ req1 = PEM_read_bio_X509_REQ(bo, NULL, NULL, NULL);**
Above code always returns null even if csrString is in correct format.
Also tried with-
BIO in = BIO_new_file(csrFile, "r");
X509_REQ req = PEM_read_bio_X509_REQ(in, NULL, NULL, NULL);**

Above code always returns null even if csrString is in correct format.

What do you believe to be the correct format?
For example, this works for me:
bkaduk@bos-:~/git/openssl$ cat /tmp/a.pem
-----BEGIN CERTIFICATE REQUEST-----
MIICijCCAXICAQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAKAb1qWtJnhOYA/rb5ZS1Zn8rnGh0sVZK8azhtvk
FGduBZEkQHQ3KV2a8/2R9WdlNXehXKw7FxFeqMug7plh87QOlY5vxGOHjaBc+Nua
17EQSLO11TF55/vKXy6cIEqUnFuKwRNrokFpnFj27kVbZd74529WNq14tGbcIybE
fNzyvlJnb3M/szIhjLoOp8Pus/UdngIB3nqswKsCIVEnHe6y2dbsVCiH3qEqQRof
2n62kFuFuhRiSL8xVEr+tEFZXgfLWOdK5vD/qeCYABLM5o0gTuuyDH/BiOb34zRd
5UK5pYN/YTy6bBKIgCkucr5/XkRxm57B7uUwcxw/l7K4AyUCAwEAAaAAMA0GCSqG
SIb3DQEBCwUAA4IBAQBGWdqVUxDSw5rdS7hs53roIvrcO6/oaGsTSG0laSlX7la4
iJigQS88uHp92ecIbiIX3YQnAFZkGfH2ZjdJ5nd0ux80STLl9yGYtdgR4xsBjmBZ
B40aRdjnqA3u2EN5iixW9T92ZcwxxCd1AYkKRs1lW/Wv5qugoCOggqDRdNryPZ53
JtwUQfuHI6amtsIV3WyE2F4gasMUgSsprql3uUTIXPxwC0NuKBLVFJ453msIePWf
bp4j8YQTI+ySc61RnhYGK8rxdzDsczS7A58l5xaZeYDD/WMBVGoDwGoDCVLx9Ema
R4i/e+Qdh9bBODQ2YhQOdP0Fy+vlt1KIgSmQ0wd1
-----END CERTIFICATE REQUEST-----
bkaduk@bos:~/git/openssl$ cat /tmp/a.c
#include <openssl/pem.h>
#include <stdio.h>

int main(void)
{
    BIO *in = BIO_new_file("/tmp/a.pem", "r");
    X509_REQ *req = PEM_read_bio_X509_REQ(in, NULL, NULL, NULL);
    printf("got pointer %p\n", req);
    return 0;
}
bkaduk@bos:~/git/openssl$ cc  /tmp/a.c -lcrypto -o /tmp/a
bkaduk@bos:~/git/openssl$ /tmp/a
got pointer 0x1fe8520

Does it only work with CSR(signed) string? because I have CSR string data before it get signed by private key.

Yes, the X509_REQ type is different from the X509_REQ_INFO type.  For the latter, it looks like you'd need to manually do the base64 decoding and use d2i_X509_REQ_INFO().

X509_REQ_INFO* reqInfo;
suppose  reqInfo is filled with without signed CSR string data(reqInfo not null now) then how to convert X509_REQ_INFO to X509_REQ ?

I have never actually done this, but apps/req.c:do_X509_REQ_sign() seems to be doing this sort of thing.  Note that the standalone X509_REQ_INFO * is not used, but rather one is expected to populate the X509_REQ_INFO member of the X509_REQ structure.  At present there is no public API to do so, so one is forced to inspect the private header (x509_int.h) and massage the obtained X509_REQ_INFO into the corresponding fields of the desired X509_REQ.  (memcpy might be simplest, albeit sloppy.)
So, we are forced to conclude that the X509_REQ_INFO type is not really well-supported, and its ASN.1 functions are implemented mostly as a side effect of implementing ASN.1 functions for the more usable X509_REQ type.  I am not sure that I see a clear case for making the X509_REQ_INFO type more usable, but would welcome some reasoning from tejas3 that it should be supported, or discussion from other team members.

Hi kaduk,

I am not sure that I see a clear case for making the X509_REQ_INFO type more usable, but would >welcome some reasoning from tejas3 that it should be supported, or discussion from other team >members.

Any update on this? did you get a chance to talk with your team for the same?
Eagerly waiting for you reply.
Thanks in advance!

I was not planning to take the initiative on this issue, sorry.
I was hoping that you could write up a short description of why it is useful to have better support for the X509_REQ_INFO type, as there is a sustained maintenance cost for adding new things to the public API, and we don't want to incur that cost without knowing that there is some concrete benefit gained from it.


Change config to use master and local configs.

We have json files for configs that need to be changed for each user/project.  It'd be nice to autogenerate a local config that overrides any master settings.

Instead of config files, the uproject or we should be able to inject that into the build process.


countingsubstrings

What does the program do ?
Counts the number of times the given substring is repeated in the entered string
In what programming language it is written?
python

This pull request do not contains files in specific folders. Please fix it and reopen for help see https://help.github.com/articles/moving-a-file-to-a-new-location/


Clean ups

What type of PR is this?
/kind cleanup
What does does this PR do / why we need it:
Removes some redundant / unneeded code. Clean up.

/approve

/approve

/assign metacosm


Could not find module '@babel/runtime/helpers/esm/regeneratorRuntime' in a fresh new app

Run ember new --yarn ember-cli-babel-bug. Then modify config/targets.js to be just ['firefox 35']. To ember-cli-build.js add:
'ember-cli-babel': {
  includeExternalHelpers: true,
  includePolyfill: true,
},

Create a app/components/foo.js file:
import Component from '@glimmer/component';

export default class FooComponent extends Component {
  async foo() {
    console.log(await this.x());
  }
}

Run the app with ember serve and watch it blow in a browser.
A few things to note - using npm instead of yarn fixes the issue. Downgrading all @babel packages to 7.17.x also fixes the issue. I think this is somewhat related.

@nicolo-ribaudo - I'm pinging you directly here because you seem to be the one who's implemented the PR (and also has been answering in a couple of issues related to this one in the Babel repo). If you're unfamiliar with Ember, npm install -g ember-cli should allow you to run the ember new and ember serve commands I've written above and the value in ember-cli-build.js should go in the hash in new EmberApp.


mat-error not showing with min/max validation errors

Bug, feature request, or proposal:
Bug
What is the expected behavior?
when the user enters invalid number , mat-error message should appear
What is the current behavior?
mat-error not showing
What are the steps to reproduce?
I tried with min and minlength but nothing is working
               <mat-form-field>
                  <input type="number" min="0" matInput name="totCarton" [(ngModel)]="container.totalCarton">
                  <mat-error>{{'error.min'|translate:param}}</mat-error>
                </mat-form-field>

or
            <mat-form-field class="full-width">
                  <input #totCarton="ngModel" matInput type="number" min="0" placeholder="{{'tot.carton'|translate}}" name="totCarton" [(ngModel)]="container.totalCarton">
                  <mat-error *ngIf="totCarton.hasError('min')">{{'error.min'|translate:param}}</mat-error>
                </mat-form-field>

What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular 4.4.6
material 2.0.0-beta.12
typescript 2.3.4
all browsers
Is there anything else we should know?

If I understand correctly what you want:
According to the MDN documentation on minlength:

If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the minimum number of characters (in Unicode code points) that the user can enter. For other control types, it is ignored.

With min (MDN documentation) it will work, but it's only related to the value.

The minimum (numeric or date-time) value for this item, which must not be greater than its maximum (max attribute) value.

This StackBlitz example will get you in the right direction. You only need to add a custom validator that only allows digits to be entered.
For future questions:
Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.

related to https://github.com/angular/angular/issues/16352


Implementation Details of Reward Weighted

Hi, Thanks for the nice work!
I noticed that Reward Weighted is implemented in the paper, but how is the probability $p(x|z)$ (Equation 4 in the Appendix) calculated (implemented in diffusers)? I also read the original paper carefully, but I didn't find the detailed description of this part.

You can read the following two articles: DDPM and Stable Diffusion.
In fact the loss expression you mentioned can be re-expressed (see DDPM to understand mathematical derivations) and then you will understand it (see Stable Diffusion to understand implementation for conditional generation).


Add new admin-controlled Phases mechanism and convert 'schedule_published' to it

Okay; another attempt at #5 "Zobrazování informací na FE ovládáné z adminu"
(what's FE stand for, anyway?)
This one is based on Dan's mockup, except:

It doesn't have true_until: only one value can be active; and it's the last one for which active_since passed.
Templates should use {% if phases.schedule == 'published' %}. The phases.schedule.published boolean isn't there. (phases.schedule is a string).

XXX:

[x] How to limit "override" dropdown in the admin to only the applicable values?
[x] Looking for a better name than SiteFlags. Going with Phases.

Fixes: https://github.com/pyvec/cz.pycon.org-2019/issues/5

You can override the form via https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form and then override the field (eith choices etc..) if this is what you want (haven't reaf the diff, sorry)

Thanks! I think I got it now.
Is the admin using too much black magic?

Totaly fine with me.

Tried to add a new Phase (/admin/common/phase/add/) and got 500
…
File "/mnt/c/work/pyvec/cz.pycon.org-2019/env/lib/python3.5/site-packages/django/contrib/admin/options.py" in _changeform_view
  1463.                 form = ModelForm(initial=initial)

Exception Type: TypeError at /admin/common/phase/add/
Exception Value: __init__() missing 1 required keyword-only argument: 'instance'

I hope #ef8e9335 doesn't mean I need to create a new migration. 🤔 🤷♂

Well, I'm learning Django the hard way. Thanks for the testing!
About the migrations: you can go back to zero (destroy the Phases tables) and migrate again with new data:
python manage.py migrate common zero
python manage.py migrate common

I don't think anything more is needed.


test: add E2Es testing bind variables in reference fields

Description of changes
Adds E2Es exercising bind variable protection on reference fields in references-style relationships.
Additional changes:

Refactored the simple owner-auth schema and operation implementations into a separate directory that we can share amongst a couple of E2Es (including this newly added one).

The new E2Es pass locally.
Checklist

[x] PR description included
[x] yarn test passes
[x] E2E tests pass
[x] Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

All E2Es pass except for expected failures due to list queries.


add docs for vike-vue/ClientOnly

I did a little bit of polishing (semi-related to your PR). As always, feel free to object with any my changes.
I'm not that familiar with Vue so I don't know whether it's obvious, but maybe we should document that all props are passed through?

Good point. It's not that obvious actually.
At some point I wanted to take a deeper look at that component again to improve DX because right now tsc can't infer the prop types on ClientOnly which should become the ones from the component load resolves to... But that's for the future. For now it works even though you don't get any hints by your IDE.


[Suggestion] Replace relays info for load balancer info on http.js when not relays are set

Hello, using this feature:

Due to this, relays connected info appears empty and I think relays info should be replaced with load balancer info on http.js when no relays are set so users know which relays they are connecting to under the hood

// NOTE: You will need to make sure that these bouncers has the same relays list as the other bouncers did,
//       Otherwise the listing page of this http server will be inaccurate.
//
// ATTENTION: This load balancer is ONLY designed for bouncers in mimd.
//            If you REALLY want to use it with your relays, Ensure that
//            Every single relays that you provide below is using the same database as the others did.

Just added this into master. Can you test it? If you are using source code then just git pull and restart. Or if you are using npm installation, Then npm i -g https://github.com/Yonle/bostr.git

Some unknown error

Forgot to mention that you need to install new pkg for it. Run npm i and try again

Forgot to mention that you need to install new pkg for it. Run npm i and try again

It didn't solve anything

Forgot to mention that you need to install new pkg for it. Run npm i and try again

It didn't solve anything

Paste the error please.

Just saw the error. Fixed. Try git pull or npm i -g (look at prev. command that i sent) again.

May 13 00:05:09 minibolt2fa systemd[1]: Started Nostr relay bouncer (Bostr).
May 13 00:05:10 minibolt2fa node[869577]: Primary 869577 is running. Will fork 1 clusters.
May 13 00:05:10 minibolt2fa node[869584]: node:internal/modules/cjs/loader:1148
May 13 00:05:10 minibolt2fa node[869584]:   throw err;
May 13 00:05:10 minibolt2fa node[869584]:   ^
May 13 00:05:10 minibolt2fa node[869584]: Error: Cannot find module 'undici'
May 13 00:05:10 minibolt2fa node[869584]: Require stack:
May 13 00:05:10 minibolt2fa node[869584]: - /home/nostr/bostr/http.js
May 13 00:05:10 minibolt2fa node[869584]: - /home/nostr/bostr/index.js
May 13 00:05:10 minibolt2fa node[869584]:     at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
May 13 00:05:10 minibolt2fa node[869584]:     at Module._load (node:internal/modules/cjs/loader:986:27)
May 13 00:05:10 minibolt2fa node[869584]:     at Module.require (node:internal/modules/cjs/loader:1233:19)
May 13 00:05:10 minibolt2fa node[869584]:     at require (node:internal/modules/helpers:179:18)
May 13 00:05:10 minibolt2fa node[869584]:     at Object.<anonymous> (/home/nostr/bostr/http.js:11:16)
May 13 00:05:10 minibolt2fa node[869584]:     at Module._compile (node:internal/modules/cjs/loader:1358:14)
May 13 00:05:10 minibolt2fa node[869584]:     at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
May 13 00:05:10 minibolt2fa node[869584]:     at Module.load (node:internal/modules/cjs/loader:1208:32)
May 13 00:05:10 minibolt2fa node[869584]:     at Module._load (node:internal/modules/cjs/loader:1024:12)
May 13 00:05:10 minibolt2fa node[869584]:     at Module.require (node:internal/modules/cjs/loader:1233:19) {
May 13 00:05:10 minibolt2fa node[869584]:   code: 'MODULE_NOT_FOUND',
May 13 00:05:10 minibolt2fa node[869584]:   requireStack: [ '/home/nostr/bostr/http.js', '/home/nostr/bostr/index.js' ]
May 13 00:05:10 minibolt2fa node[869584]: }
May 13 00:05:10 minibolt2fa node[869584]: Node.js v20.13.1
May 13 00:05:10 minibolt2fa node[869577]: Worker 869584 died. Forking another one....
May 13 00:05:10 minibolt2fa node[869596]: node:internal/modules/cjs/loader:1148
May 13 00:05:10 minibolt2fa node[869596]:   throw err;
May 13 00:05:10 minibolt2fa node[869596]:   ^
May 13 00:05:10 minibolt2fa node[869596]: Error: Cannot find module 'undici'
May 13 00:05:10 minibolt2fa node[869596]: Require stack:
May 13 00:05:10 minibolt2fa node[869596]: - /home/nostr/bostr/http.js
May 13 00:05:10 minibolt2fa node[869596]: - /home/nostr/bostr/index.js
May 13 00:05:10 minibolt2fa node[869596]:     at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
May 13 00:05:10 minibolt2fa node[869596]:     at Module._load (node:internal/modules/cjs/loader:986:27)
May 13 00:05:10 minibolt2fa node[869596]:     at Module.require (node:internal/modules/cjs/loader:1233:19)
May 13 00:05:10 minibolt2fa node[869596]:     at require (node:internal/modules/helpers:179:18)
May 13 00:05:10 minibolt2fa node[869596]:     at Object.<anonymous> (/home/nostr/bostr/http.js:11:16)
May 13 00:05:10 minibolt2fa node[869596]:     at Module._compile (node:internal/modules/cjs/loader:1358:14)
May 13 00:05:10 minibolt2fa node[869596]:     at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
May 13 00:05:10 minibolt2fa node[869596]:     at Module.load (node:internal/modules/cjs/loader:1208:32)
May 13 00:05:10 minibolt2fa node[869596]:     at Module._load (node:internal/modules/cjs/loader:1024:12)
May 13 00:05:10 minibolt2fa node[869596]:     at Module.require (node:internal/modules/cjs/loader:1233:19) {
May 13 00:05:10 minibolt2fa node[869596]:   code: 'MODULE_NOT_FOUND',
May 13 00:05:10 minibolt2fa node[869596]:   requireStack: [ '/home/nostr/bostr/http.js', '/home/nostr/bostr/index.js' ]
May 13 00:05:10 minibolt2fa node[869596]: }
May 13 00:05:10 minibolt2fa node[869596]: Node.js v20.13.1
May 13 00:05:10 minibolt2fa node[869577]: Worker 869596 died. Forking another one....
May 13 00:05:10 minibolt2fa node[869604]: node:internal/modules/cjs/loader:1148
May 13 00:05:10 minibolt2fa node[869604]:   throw err;
May 13 00:05:10 minibolt2fa node[869604]:   ^
May 13 00:05:10 minibolt2fa node[869604]: Error: Cannot find module 'undici'
May 13 00:05:10 minibolt2fa node[869604]: Require stack:
May 13 00:05:10 minibolt2fa node[869604]: - /home/nostr/bostr/http.js
May 13 00:05:10 minibolt2fa node[869604]: - /home/nostr/bostr/index.js
May 13 00:05:10 minibolt2fa node[869604]:     at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
May 13 00:05:10 minibolt2fa node[869604]:     at Module._load (node:internal/modules/cjs/loader:986:27)
May 13 00:05:10 minibolt2fa node[869604]:     at Module.require (node:internal/modules/cjs/loader:1233:19)
May 13 00:05:10 minibolt2fa node[869604]:     at require (node:internal/modules/helpers:179:18)
May 13 00:05:10 minibolt2fa node[869604]:     at Object.<anonymous> (/home/nostr/bostr/http.js:11:16)
May 13 00:05:10 minibolt2fa node[869604]:     at Module._compile (node:internal/modules/cjs/loader:1358:14)
May 13 00:05:10 minibolt2fa node[869604]:     at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
May 13 00:05:10 minibolt2fa node[869604]:     at Module.load (node:internal/modules/cjs/loader:1208:32)
May 13 00:05:10 minibolt2fa node[869604]:     at Module._load (node:internal/modules/cjs/loader:1024:12)
May 13 00:05:10 minibolt2fa node[869604]:     at Module.require (node:internal/modules/cjs/loader:1233:19) {
May 13 00:05:10 minibolt2fa node[869604]:   code: 'MODULE_NOT_FOUND',
May 13 00:05:10 minibolt2fa node[869604]:   requireStack: [ '/home/nostr/bostr/http.js', '/home/nostr/bostr/index.js' ]
May 13 00:05:10 minibolt2fa node[869604]: }
May 13 00:05:10 minibolt2fa node[869604]: Node.js v20.13.1
May 13 00:05:10 minibolt2fa node[869577]: Worker 869604 died. Forking another one....
May 13 00:05:10 minibolt2fa node[869612]: node:internal/modules/cjs/loader:1148
May 13 00:05:10 minibolt2fa node[869612]:   throw err;
May 13 00:05:10 minibolt2fa node[869612]:   ^

This looped after trying to start again.

Just saw the error. Fixed. Try git pull or npm i -g (look at prev. command that i sent) again.

Ok, it was solved. I tested the last changes that you made, and I think it should be polished
It obtains and shows the next section of options, check it out yourself:

https://bouncer.minibolt.info/ <-- "slave" bouncer
https://bouncer.nostree.me/ <-- "master" bouncer

Does it make sense if I connect to relay/s and load balancer/s simultaneously?
Anyway: If I do that, it doesn't show on http.js the load balancer/s that I have connected and the relays connected to him, only the relay/s that I have connected, does that make sense?

Does it make sense if I connect to relay/s and load balancer/s simultaneously?

The load balancer does not connect to these bouncers simultaneously.

Anyway: If I do that, it doesn't show on http.js the load balancer/s that I have connected and the relays connected to him, only the relay/s that I have connected, does that make sense?

It won't make sense. That just makes me reimplementing another bouncer code which is practically useless.

Just saw the error. Fixed. Try git pull or npm i -g (look at prev. command that i sent) again.

Ok, it was solved. I tested the last changes that you made, and I think it should be polished
It obtains and shows the next section of options of the "master" bouncer too, check it out yourself:
 "slave" bouncer -------------------------------------------------------------------------------- "master" bouncer

What do you think about this? Is it correct?

Just saw the error. Fixed. Try git pull or npm i -g (look at prev. command that i sent) again.

Ok, it was solved. I tested the last changes that you made, and I think it should be polished
It obtains and shows the next section of options of the "master" bouncer too, check it out yourself:
 "slave" bouncer -------------------------------------------------------------------------------- "master" bouncer

What do you think about this? Is it correct? Does it need a fix?

There are something to do with the regex. I will think of fixing it

Just pushed a change to upstream to improve the listing. Let me know if things going well.

Got network problem when pushing. The new commit should be here now.

Got network problem when pushing. The new commit should be here now.

Nice, now it makes more sense, BTW a good new feature is the load balancer, thanks!


x window system completely broken after enabling systemd

Windows build number:
22622.0
Your Distribution version:
Ubuntu 22.04
Your WSL versions:
Versión de WSL: <IP_ADDRESS>
Versión de kernel: <IP_ADDRESS>
Versión de WSLg: 1.0.44
Versión de MSRDC: 1.2.3401
Versión de Direct3D: 1.606.4
Versión DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Versión de Windows: 10.0.22622.601
(i know it's in spanish but ig it still works)
Steps to reproduce:

enable systemd on the distro
restart and try to run any xapp (the x11-apps bundle, firefox, google chrome and chromium, etc.)

WSL logs:
stderr.log
weston.log
pulseaudio.log
WSL dumps:
No response
Expected behavior:
the application runs with no problems
Actual behavior:
the app won't launch, complaining about a missing x server/no display variable
wayland applications (such as gnome, even though strangely i thought gnome wasn't able to run on wayland?) do work however.
cerebrate had been diagnosing my case on the wsl repo [https://github.com/microsoft/WSL/issues/8899] and unfortunately i think this is going deeper than what it should've gone. most details are on that issue.

this also appear in wsl 0.70
Your Distribution version:
kali-linux
Your WSL versions:**
WSL 版本： <IP_ADDRESS>
内核版本： <IP_ADDRESS>
WSLg 版本： 1.0.45
MSRDC 版本： 1.2.3575
Direct3D 版本： 1.606.4
DXCore 版本： 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows版本： 10.0.22623.746

#8899
issue is fixed


Fix issue where afterSuite runs for non-root suites

Just wanted to confirm that this has resolved the issue. (No failures on CI/CD since I updated the version 12 hours ago.) 👏


Issue in Microsoft.Net.Http.Headers 2.0.2

Hi All,
I'm not sure if this was intended or not, but it looks like the constructor signature of EntityTagHeaderValue changed.  It used to accept a string and now it accepts a StringSegment.  This is causing MissingMethodExceptions in third party libraries such as Swashbuckle and such:
System.MissingMethodException: 'Method not found: 'Void Microsoft.Net.Http.Headers.EntityTagHeaderValue..ctor(System.String)'.'

@TonyValenti in what version did it previously work?

This is an intentional breaking change between 1.x and 2.x.


not work at all

not work at all
2024-12-26T02:44:22.179Z [info] Attempting to connect to MCP server jetbrains...
2024-12-26T02:44:22.189Z [info] Connected to MCP server jetbrains!
2024-12-26T02:44:26.804Z [info] MCP server jetbrains disconnected. For troubleshooting guidance, please visit our debugging documentation
2024-12-26T02:50:39.199Z [info] Attempting to connect to MCP server jetbrains...
2024-12-26T02:50:39.335Z [info] Connected to MCP server jetbrains!
2024-12-26T02:50:40.102Z [info] MCP server jetbrains disconnected. For troubleshooting guidance, please visit our debugging documentation

please attach logs from intellij: Help > Collect Logs...


add user vivo

Add user vivo (#78)

Add vivo user

update user

@hangzhengbo, thanks for add your company. Please update user.md to add the logo of VIVO.


SIGTERM is not passed through lnd when using Docker/Kubernetes

Background
using lnd in a kubernetes container. lnd doens't shutdown itself when doing kubectl delete pod lnd
Your environment

version of lnd: 0.12
which operating system (uname -a on *Nix): kubernetes on gcloud.
version of btcd, bitcoind, or other backend. bitcoind.
docker Image: lightninglabs/lnd/v0.12.0-beta

Steps to reproduce
Run lnd in a dockerized environment in kubernetes.
run kubectl delete pod lnd
see the container as 'terminating' yet lnd continue as normal when looking at the log.
Expected behaviour
when receiving SIGTERM, lnd should shut down itself, so that a SIGKILL is not needed.
Actual behaviour
lnd doesn't shutdown after SIGTERM
need to force pod shutfown with kubectl delete pod lnd --force

I've been running lnd in a dockerized setup for many years now and never had problems like that.
We've also had no problems with running that exact image on a k8s cluster.
Can you please check your logs if you see the following message?
LTND: Received terminated

If you see that then lnd did receive the SIGTERM signal but something else is blocking the shutdown. More logs would then be helpful.

I had looked at the log and don't see any LTND: Received terminated. Looking at the logs it felt lnd was continuing as if it didn't know the pod was in a terminating stage.
The repo with the charts and associated yaml will be open sourced in the next week or so. I'll paste a link here when it's available. It could be the best way to debug this, but if you have other ideas on how to debug this in the meantime, happy to provide more info

The only thing I can think of that would prevent the SIGTERM to be handed to lnd is if you overwrite the --entrypoint. It might be called differently on k8s.
If you have a script there or other commands then you need to invoke lnd by using call lnd ... which will then forward the signals.

ahh right. it's probably this then:
...
      containers:
        - name: lnd-container
          command: ["/bin/sh","-c"]
          args: ["lnd & /root/unlock.sh"]
...

how do you handle the unlock? manually? for a side container?

unlock.sh:
    #!/bin/sh
    status=1
    while [ $status -ne 0 ]
    do
      sleep 5
      output=$( (echo $LND_PASS | lncli unlock --stdin;) 2>&1 )
      status=$?
    done
    echo "[UnlockScript] wallet unlocked, script exiting"
    sleep infinity

Yes, that looks like it might be the problem. Perhaps move the call to lnd inside the script as well?
E.g:
...
      containers:
        - name: lnd-container
          command: ["/root/unlock.sh"]
...

...
    #!/bin/sh
    call lnd &

    status=1
    while [ $status -ne 0 ]
    do
      sleep 5
      output=$( (echo $LND_PASS | lncli unlock --stdin;) 2>&1 )
      status=$?
    done
    echo "[UnlockScript] wallet unlocked, script exiting"
    sleep infinity

We are running a sidecar container that unlocks lnd whenever needed. We're planning on publishing that soon along with our cluster helm charts. But it'll probably take a bit more time.

ok for now, I'll be using this hack script:
    #!/bin/sh
    echo "launching lnd + unlock script"

    exit_script() {
      echo "Exit script"
      trap - SIGINT SIGTERM # clear the trap
      kill -- -$$ # Sends SIGTERM to child/sub processes
    }

    trap exit_script SIGINT SIGTERM

    lnd &
    status=1
    while [ $status -ne 0 ]
    do
      echo "entering loop"
      sleep 5
      output=$( (echo $LND_PASS | lncli unlock --stdin;) 2>&1 )
      status=$?
    done
    echo "[UnlockScript] wallet unlocked, exiting loop"
    sleep infinity &
    wait

using trap I can send the SIGTERM signal to lnd.
using a sidecar didn't seem that straightforward because sidecar needs to rely on the macaroon and the tls, and those are unknown if it's lnd first start until the container is running, so it can't be injected in a sidecar. I'd be curious how you are managing this but for now this resolves my issue. thanks!


Topic release24.2.1 main sync

Copied the branch 24.2.1 and rebase it with main . After resolving Rebase Coflicts :
There are mainly two difference between the topic_release24.2.1_main_sync and release24.2.1

com.fasterxml.jackson.core
jackson-databind
<IP_ADDRESS>

org.postgresql
postgresql
42.3.9

I the main branch we are using the upgraded version of these dependency which are getting reflected with the rebase


[RSA Accumulator] Add impl & test

notes

eth.exceptions.OutOfGas: Contract code size exceeds EIP170 limit of 24577.  Got code of size: 51062
The size of big integer arithmetic part is 29217...


Incompatibility with eslint-plugin-deprecation

Before You File a Bug Report Please Confirm You Have Done The Following...

[X] I have tried restarting my IDE and the issue persists.
[X] I have updated to the latest version of the packages.

What version of ESLint are you using?
8.26.0
What version of eslint-plugin-svelte are you using?
2.11.0
What did you do?

Configuration
{
  "parser": "svelte-eslint-parser",
  "parserOptions": {
    "extraFileExtensions": [".svelte"]
  },
  "plugins": ["deprecation"],
  "rules": {
    "deprecation/deprecation": "warn"
  }
}

<div {progress} />

What did you expect to happen?
Eslint runs without errors
What actually happened?
Oops! Something went wrong! :(

ESLint: 8.26.0

TypeError: Cannot read properties of undefined (reading 'parent')
Occurred while linting /home/user/project/App.svelte:5
Rule: "deprecation/deprecation"
    at getSymbol (/home/user/project/node_modules/eslint-plugin-deprecation/dist/rules/deprecation.js:184:25)
    at getDeprecation (/home/user/project/node_modules/eslint-plugin-deprecation/dist/rules/deprecation.js:172:20)
    at identifierRule (/home/user/project/node_modules/eslint-plugin-deprecation/dist/rules/deprecation.js:63:29)
    at ruleErrorHandler (/home/user/project/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /home/user/project/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/home/user/project/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/home/user/project/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/home/user/project/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/home/user/project/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Link to Minimal Reproducible Example
https://gist.github.com/marekdedic/b5870cec58295f484b699fa6f60e96c7
Additional comments
No response

Hi,
thanks, I can confirm this works for me :)


Syntax Error, Canasta on Raspberry Pi 4B (Cortex-A72 (ARM v8))

Describe the bug
Summary:
Running sudo canasta with any or no arguments results in the message /usr/local/bin/canasta: 6: Syntax error: ")" unexpected
Description:
Installed several times on two different Pi 4B boards (2GB and 4GB). Docker's "hello-world" reports that Docker is working. Canasta installation following https://canasta.wiki/setup/ seems to work fine with no issues. After installation, /usr/local/bin/canasta is 6418189 bytes and is dated April 19th at 16:52.
Running any combination of sudo canasta <option> gives the error described above. Running canasta without sudo gives the error "cannot execute binary file: Exec format error"
Screenshots: If applicable, add screenshots to help explain your problem.

Steps to reproduce the behavior:

Install Raspberry Pi OS Bookworm, 64-bit (standard)
Follow instructions from https://docs.docker.com/engine/install/debian/#install-using-the-repository to install Docker.
Follow "Recommended: CLI Installation" instructions from https://canasta.wiki/setup/
Run sudo canasta with any (or no) options.

Expected behavior
Expected to be able to create a wiki, run sudo canasta help, etc.
System info
Please complete the following information:

No wiki installed yet (unable to get that far)
Canasta version: current (as of 2024-04-24)
Installed extensions and versions: None
Any other context you think is appropriate to include here:
Hardware: Raspberry Pi 4B v1.1 (2GB), 1.2 (4GB), Quad-core Cortex-A72 (ARM v8)
OS: Raspberry Pi OS (Bookworm), 64-bit, standard image.
Kernel: 6.6.20+rpt-rpi-v8 (2024-03-07) aarch64
Running Wayland

I think this is an issue with the Canasta CLI's build pipeline having poor support for AArch64. I (unfortunately) have a Mac with "Apple Silicon" that runs on AArch64 too, so I face a very similar issue as you.
The way to get around this issue is, for now, to build the CLI by yourself. You can do this by:

Installing the Go compiler (also known as the Golang compiler)
Run this script: https://github.com/CanastaWiki/Canasta-CLI/blob/main/build.sh

That's got it - thank you very much! Looking forward to trying this out!


Website search cannot find my package

Describe the bug
When I search "StitchM" on PyPI it returns nothing despite this package existing. The exact same thing is happening on test.pypi.org. However, a separate package that I uploaded at the same time is showing up in searches here.
Expected behavior
All existing packages should be findable when searching the package name.
To Reproduce
Follow the in-text links above.
My Platform
Using Chrome (83.0.4103.97) on MacOS Catalina

Additional context
None

In the event that the initial indexing fails, search  may take up to 24 hours to index new projects.

Okay, that's fine then, thanks!


Sentinel Security Center Alerts

Do I have to create the Alerts in Security Center? or does it stream the Alerts created by default? Where is the documentation on how to query the alerts in Sentinel? I've already connected Sentinel to Security Center and most of what I'm seeing is noise.

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

ID: 939fe044-5317-8afe-f843-56646bfdab19
Version Independent ID: b082d0c0-1862-dc3f-7282-7683fefda31c
Content: Collecting Azure Security Center data in Azure Sentinel Preview
Content Source: articles/sentinel/connect-azure-security-center.md
Service: sentinel
GitHub Login: @rkarlin
Microsoft Alias: rkarlin

@Placid7 Thanks for your feedback! We will investigate and update soon on it.

@Placid7 You do not need to create any alerts.  If you are on boarding Azure Security Center to Sentinel then all the alerts created by Security Center will be streamed into Azure Sentinel. You can get the results on various dashboards and you can click on log Analytics Image  to edit the query in log analytics.  Please refer to section Use built-in dashboards.

I have my Security Center connected in Data Collection. There is no option to add a "Security Center" dashboard in Sentinal.

@Placid7 oh, my bad, it seems Security Center dashboard is not available.  Can you please check under Azure Sentinel Logs if you can query the events.

@rkarlin Can you please help if there is any other way to query the alerts in Sentinel.

Yes I can query those logs. But the Alerts present are the "Analytics" I manually configured.
I also noticed that "Threat Protection" in Security Center is showing "No Security Alerts", but if I query my logs I can see multiple failed attempts to log in to my SQL VM. This should trigger an alert for a brute force attempt.
If I run the query:
VMConnection
| where Type == "VMConnection"

It returns 10,000 results. From a single IP I can see over 100 attempts to access my VM through the RDP port. Why is this not returning malicious events in Security Alerts?
Something in the Analytics of Security Center/Sentinel is no functioning as expected.

@Placid7 If you are having issues with alerts not showing up in Security Center, I suggest you to please open an Azure Support Ticket so that a Support engineer can check further on this issue. In case you limitations in your support plan to open support ticket please let me know.

@Placid7 We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Add kitty tabs colors

The proposed kitty themes missing the config for tabs which is really essential for kitty. All white config makes it look really weird for the high contrast themes, so I added the combination I think fits really well.
Here is how it looked before

Here is after

Looks much better! Thank you @dmtrKovalenko 🙂
Before we merge, you'll need to transfer your updates to the extra template, as described here.
https://github.com/scottmckendry/cyberdream.nvim/blob/main/lua/cyberdream/extra/kitty.lua

done

Great stuff! Thanks for the PR 🙂


FRD systems mixed with non-FRD systems don't work with all algebraic operators

The FRD class defines a LTI system just in terms of its frequency response.  A full set of operators are included and that allow FRD objects to be manipulated like transfer functions.  In the case when and FRD system is combined with a non-FRD system (eg, a TransferFunction), the FRD operators convert the other LTI system into an FRD system.  This works in most cases as expected.  For example, if frdsys is an FRD system and tfsys is a transfer function system, then
frdsys + tfsys

converts the tfsys from a transfer function to an FRD system using the same  frequency list as frdsys and then adds the systems together (parallel interconnection).
However, the opposite ordering of these operators does not work:
tfsys + frdsys

As an example, the following code fragment
import control
import numpy
tfsys = control.TransferFunction([1], [1, 2, 2])
frdsys = control.FRD(tfsys, numpy.logspace(-1, 2, 10))
frdsys + tfsys
tfsys + frdsys

produces the following error:
Failure to assume argument is matrix-like in _convertToTransferFunction, result not enough values to unpack (expected 2, got 0)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-8-9ab7b6a87041> in <module>()
----> 1 tfsys + frdsys

/Users/murray/Dropbox/macosx/src/python-control/murrayrm/control/xferfcn.py in __add__(self, other)
    286         elif not isinstance(other, TransferFunction):
    287             other = _convertToTransferFunction(other, inputs=self.inputs,
--> 288                                                outputs=self.outputs)
    289
    290         # Check that the input-output sizes are consistent.

/Users/murray/Dropbox/macosx/src/python-control/murrayrm/control/xferfcn.py in _convertToTransferFunction(sys, **kw)
   1142               " _convertToTransferFunction, result %s" % e)
   1143
-> 1144     raise TypeError("Can't convert given type to TransferFunction system.")
   1145
   1146

TypeError: Can't convert given type to TransferFunction system.

The problem is that while the FRD class knows to convert a TransferFunction into an FRD system before combining them, the TransferFunction class does not know what to do with an FRD object.
In principle, this problem should be fixed by the __radd__ method in FRD, since that would recognize that the right argument is an FRD and then to the conversion.  This can be see to work by trying the command
1 + frdsys

which works correctly: frsys.__radd__ is called and knows that 1 is a scalar that can be converted to an FRD object.  The FRD.__radd__ function gets called because Python recognizes that adding an FRD object to an integer is not supported => it looks for another way.
The reason that this doesn't work for tfsys + frdsys is that we have already defined __add__ for the TransferFunction object and so it gets called independent of what is on the right hand side.
A possible fix is to update the __add__ function (and others like it) in TransferFunction, StateSpace and other (future) LTI subclasses so that they either recognize the FRD object type or determine they don't support the second argument and then have that method call the __radd method for the second argument.  I did a bit of testing on this and the following code works:
def __add__(self, other):
    ...
    # Make sure the other type is supported; if not, try swapping
    if (not _compatibleWithTransferFunction(other)):
        try:
           return other.__radd__(self)
        except:
            raise TypeError("operation not supported")
    ...

where
def _compatibleWithTransferFunction(sys):
    """Determine if a system is of a type that can be combined with a TransferFunction
    object """
    from .statesp import StateSpace
    return isinstance(sys, (StateSpace, TransferFunction, int, float, complex, np.number))

One issue with this fix is that there could be a infinite recursion if one of the __radd__ method just calls the __add__ method (as is currently done in the TransferFunction and StateSpace classes), so would need some thought.
This is a relatively arcane problem and not one that is likely to come up in practice, so I decided to just document it here and collect some comments before going through and generating a lot of changes that might not really matter.

I wouldn't say this is really arcane, and Matlab correctly does this.
To prevent recursion with possible unknown future objects outside python-control's control, we can also use a different name for the __radd__, e.g. python_control__radd__, which may simply be an alias for __radd__ in FRD.


Commander: offboard failsafe cleanup

Cleanup the handling of offboard loss in Commander:

add DISABLED, LOCKDOWN and TERMINATE options
use enums to avoid nested if statements
move failsafe handling to dedicated functions
offboard loss timeout: it seems that the timeout was ignored if COM_OBL_ACT or COM_OBL_RC_ACT were set out of range? This is no longer the case.

Other changes in this PR:

re-enable implicit-fallthrough warning. This is useful to write correct switch blocks.
move COM_POSCTL_NAVL to px4::params and use enum as well

Thanks @jlecoeur, I'll review this soon.

Thanks @julianoes for the review. There is no doubt Commander would need a much deeper cleanup. I think this is already a good step towards understandable offboard failsafe handling logic. The added failsafe options may not have the cleanest implementation, but at least they are consistent with the existing link loss actions.

@jlecoeur have you done some SITL testing to make sure there is nothing stupid with the changes?

Not for all cases. It would be cool to be able to test all that in CI. For example fly a mission with MAVSDK, then artificially cut the up-link and monitor the behaviour for the various values failsafe parameters.

Ok you have done some sanity checking then, good.
Agreed, we should.

Ok you have done some sanity checking then, good.
Agreed, we should.

I am installing MAVSDK to perform a few more.

Test results with jMAVSim and the MAVSDK example offboard_velocity shut down mid-flight:

COM_RC_IN_MODE=1 (no RC), NAV_DLL_ACT=0 (disabled)

[x] COM_OBL_ACT=-1 (Disabled): continued upward at constant velocity (on last setpoint)
[x] COM_OBL_ACT=0 (Land mode): started to landed
[x] COM_OBL_ACT=1 (Hold mode): held position
[x] COM_OBL_ACT=2 (Return mode): returned above home and started to land
[ ] COM_OBL_ACT=3 (Terminate): QGC displayed MANUAL ARMED, then INFO  [commander] Freefall detected, then communication was lost. Is this the correct behaviour?
[ ] COM_OBL_ACT=4 (Lockdown): Continued with constant climb, however the actuator output were still moving. I would have expected a flip and/or freefall here because the actuators should be locked

COM_RC_IN_MODE=2 (virtual RC), NAV_DLL_ACT=0 (disabled)

[ ] COM_OBL_RC_ACT=-1 (Disabled): TODO
[ ] COM_OBL_RC_ACT=0 (Position): TODO
[ ] COM_OBL_RC_ACT=1 (Altitude): TODO
[ ] COM_OBL_RC_ACT=2 (Manual): TODO
[ ] COM_OBL_RC_ACT=3 (Return): TODO
[ ] COM_OBL_RC_ACT=4 (Land): TODO
[ ] COM_OBL_RC_ACT=5 (Hold): TODO
[ ] COM_OBL_RC_ACT=6 (Terminate): TODO
[ ] COM_OBL_RC_ACT=7 (Lockdown): TODO

@julianoes I have tested the main cases without RC (COM_OBL_ACT). I could not test the behaviour with RC present (COM_OBL_RC_ACT) because I do not have a joystick at hand.
It is OK except for the TERMINATE and LOCKDOWN options, which did not behave the way I expected. This is annoying because they are implemented the same way as the data link loss feature. The question is: is this also broken?
Also, I have not tested the subcases, for example if LAND is selected as failsafe action, but the gps position is lost, then it should try to descend, or terminate if that is not possible.
At the moment, I am leaning towards removing the LOCKDOWN and TERMINATE options, however this should be addressed because TERMINATE is used as a fallback if the desired failsafe is not possible (ex: global position not available).

Let me try to test the RC cases, I should find a joystick!

@jlecoeur btw. you can use the integration tests for this sort of thing:
cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -H. && cmake --build build && build/src/integration_tests/integration_tests_runner --gtest_filter="SitlTest.OffboardVelocityNED"

It looks like lockdown and terminate need to be checked in general.

COM_OBL_ACT=3 (Terminate): QGC displayed MANUAL ARMED, then INFO [commander] Freefall detected, then communication was lost. Is this the correct behaviour?

I did not see that. It just dropped from the sky, then detected landed and disarmed.

Indeed, I tried again (with the example and the test runner) and it did just what you said.

Without RC, the behaviour for terminate looks fine to me. The lockdown behaviour is bad, it behaves like altitude-control, here is a log https://review.px4.io/plot_app?log=d9e09744-f11c-4634-b699-c7d95a7ce22b

I wonder about two things:

Do we need to disable some circuit breaker to make lockdown work?
What is the function of armed->force_failsafe, this doesn't seem to be applied consistently.

Do we need to disable some circuit breaker to make lockdown work?

No, CBRK_FLIGHTTERM does not apply.

2\. What is the function of `armed->force_failsafe`, this doesn't seem to be applied consistently.

https://github.com/PX4/Firmware/blob/504eb65689578da605c6ee8e2f8af5001ce0b55a/src/drivers/px4fmu/fmu.cpp#L1193-L1198

Ok, it looks like lockdown is not supposed to work with HITL/SITL:
https://github.com/PX4/Firmware/blob/5c68880b564d5bc31debc8cb653555f80b919a8d/src/drivers/pwm_out_sim/PWMSim.cpp#L320-L324
To me it seems like lockdown should not actually be a "failsafe" feature but only a simulation option.

Maybe you are right. But then how can we lock actuators to disarmed position (!= failsafe position) in the non-simulated case, cf #12713
I am starting to think that the intent of Terminate, Failsafe and Lockdown has probably evolved over time. It really should be clarified and not used interchangeably as it seems to be the case now.

I agree. However, lockdown was always supposed to be a HITL "feature".
Overall it's a big mess that we should clean up.
For now, I'd say, let's merge this cleanup.

Ok


fix: RDS Data API - allow ANSI-compatible identifiers.

Feature or Bugfix

Bugfix

Detail

RDS Data API module at the moment uses backticks in the queries that aren't compatible with PostgreSQL engine. On the other hand, MySQL uses backticks by default and does not guarantee enabled ANSI mode (SET sql_mode='ANSI_QUOTES'). To avoid breaking changes and keep MySQL-compatibility, keep using backticks by default, but allow to override the SQL mode using sql_mode parameter.
Add a test case for PostgreSQL Serverless.
Adds a test case using ANSI SQL mode with MySQL.

Relates

#2385

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 5eb74e391d8ba9bdf485eb2082d20d44f6b7b592
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: 5eb74e391d8ba9bdf485eb2082d20d44f6b7b592
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 6106f959c5f51e81c9809945552a03f71f510033
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


SSL Forced?

Hello there, my proxy company substitutes the CA Node of all certificates with a Symantec/McAfee certificate (used from Symantec software)..
There are options to use no SSL sources in nuget? I tried with http://www.nuget.org/api/v2 but it don't works..

We indeed force SSL on our resources, no way around it.


add scripts msg after done

Closes https://github.com/choojs/create-choo-app/issues/8

Oops, s/projected/project haha

Thanks for making my dream a reality @yoshuawuyts

Happy to help! :tada:


Allow banning of EoS on koboldcpp

Quick fix for koboldcpp EoS ban. Just swapped ignore_eos for the koboldcpp equivalent if koboldcpp is selected.

Thank you!


Avoid creating snapshots repeatedly

Signed-off-by: Yanqiang Miao<EMAIL_ADDRESS>
If a snapshot already exists, the newly created snapshot of the same name should be deleted.
Fix an incorrect parameter transfer.

Codecov Report

Merging #755 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #755   +/-   ##
=======================================
  Coverage   62.46%   62.46%
=======================================
  Files           5        5
  Lines         682      682
=======================================
  Hits          426      426
  Misses        160      160
  Partials       96       96

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 3d076e5...df8ece5. Read the comment docs.

LGTM

LGTM
@miaoyq Thanks for the contribution!


Add complex-related stuff to docs and examples

See #57

I've added a separate simple example with complex entries; I can adda more sophisticated one if you have something in mind

Alright, wonderful stuff! This LGTM.
As merging to main will update the docs then I'm going to hold off on merging this PR until we're ready to do the next release, but morally speaking this PR should be considered merged! :)
(I have one other upstream change that I want to land in Equinox first, and then I'm hoping to do a new release of both Equinox and Lineax -- so probably the next week or two.)


[Docs] Footer: Update copyright year to 2021

Current State:
The Meshery docs footer has 2020 copyright listed.

Desired State:
Should be 2021.

Contributor Resources

Meshery documentation site
Meshery documentation source
Instructions for contributing to documentation

@leecalcote can I pick this up?

@onwuvic, that would be excellent, yes.


breaking bug with vertexdecl

After your commit on 6th of may with commit id 97fe8e48a162b3a2197497d829a41c0739ffd593
i get constant error flood from gl renderer
[2018-06-18 15:11:52.077] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.077] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.077] [Log] [error] glDrawElementsInstanced(prim.m_type , numIndices , indexFormat , (void*)(uintptr_t)(draw.m_startIndex*indexSize) , draw.m_numInstances ); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.093] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.093] [Log] [error] glDrawArrays(0x0005 , 0 , 4 ); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.093] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glDrawArraysInstanced(prim.m_type , 0 , numVertices , draw.m_numInstances ); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glDrawArraysInstanced(prim.m_type , 0 , numVertices , draw.m_numInstances ); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glDrawElementsInstanced(prim.m_type , numIndices , indexFormat , (void*)(uintptr_t)(draw.m_startIndex*indexSize) , draw.m_numInstances ); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glDrawElementsInstanced(prim.m_type , numIndices , indexFormat , (void*)(uintptr_t)(draw.m_startIndex*indexSize) , draw.m_numInstances ); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glVertexAttribPointer(loc , num , s_attribType[type] , normalized , _vertexDecl.m_stride , (void*)(uintptr_t)baseVertex); GL error 0x502: GL_INVALID_OPERATION
[2018-06-18 15:11:52.094] [Log] [error] glDrawElementsInstanced(prim.m_type , numIndices , indexFormat , (void*)(uintptr_t)(draw.m_startIndex*indexSize) , draw.m_numInstances ); GL error 0x502: GL_INVALID_OPERATION

and nothing renders on screen.
This happens on linux with this glxinfo
and initted with OpenGL 2.1 rendering backend.
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) Haswell Desktop  (0x412)
    Version: 13.0.6
    Accelerated: yes
    Video memory: 1536MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Desktop
OpenGL core profile version string: 3.3 (Core Profile) Mesa 13.0.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

Works with 17b5fd973f01da57ea0fbba215b6cd7cb3697dc7 and doesn't work with latest master. It has something to do with AttribType Uint8. Any Ideas?

It should be fixed here: https://github.com/bkaradzic/bgfx/commit/42b1104b741c05a633cd0b4e4057edf2a8251e96#diff-340d0d905e5ed42ff107c56c3082918a

I think I tried it with a couple of the latest master commits and it still gave the same errors. Will test it again tomorrow when I get to my Linux machine and will let you know asap. As far as I can see there weren't any significant changes remotely related to this.

Hi after some playing around i found the issue. It is related to the other change you made in glcontext_glx.cpp
-#if BGFX_CONFIG_RENDERER_OPENGL >= 31
  			glXCreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC)glXGetProcAddress( (const GLubyte*)"glXCreateContextAttribsARB");

  			if (NULL != glXCreateContextAttribsARB)
 @@ -176,9 +175,6 @@ namespace bgfx { namespace gl
  					m_context = context;
  				}
  			}
 -#else
 -			BX_UNUSED(bestConfig);
 -#endif // BGFX_CONFIG_RENDERER_OPENGL >= 31

Bringing back the ifdefs fixed the issue. So you should consider reverting that change too instead just the other one you mentioned above. Thanks again. As i mentioned this only happened on linux with the above specifications.

Will this come to master anytime soon?

Fixed.


add this plugin on the AiiDA plugin registry

Status: development?

Can be closed once https://github.com/aiidateam/aiida-registry/pull/331 merged (preview).


configuration.yaml error for sonoff username and password

Good Day
I am getting the following error when putting my username credentials in the configuration.yaml file
Configuration invalid
Component error: sonoff - No module named 'Crypto.Util.Padding'
anyone know how to fix?

What is your environment? venv? os?

I am running off rasparian
Get Outlook for Android
On Tue, May 12, 2020 at 9:14 PM +0200, "Alex X"<EMAIL_ADDRESS>wrote:
What is your environment? venv? os?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

What version is HA, SonoffLAN?
Are you using docker, hassio?

Hi
the version is : 0.109.6
not using docker or hassio
Alex X wrote on 2020/05/12 21:51:

What version is HA, SonoffLAN?
Are you using docker, hassio?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AlexxIT/SonoffLAN/issues/100#issuecomment-627556853,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APQRBXYVD3NV2GGVNPZE2VTRRGSC3ANCNFSM4M7BCGMQ.

ok some feedback - i put on Hassio and all works like a dream.

Hassio rocks! 👍


raftstore: add write batch limit for raft command batch

What is changed and how it works?

Issue Number: Close #17701

What's Changed:
add write batch limit for raft command batch

Now, the request size in RaftCmdRequest is limited by raft_entry_max_size when batching where raft_entry_max_size can be set to arbitrarily large.
In this PR, a MAX_BATCH_SIZE_LIMIT is introduced to limit the RaftCmdRequest requests batch.
Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

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

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None

One more tip:
Pls add and provide necessary performance comparison results based on this pr, compared with the nightly version.

One more tip:
Pls add and provide necessary performance comparison results based on this pr, compared with the nightly version.

General workload may not make batch accumulating a big volume. Can we reproduce the problem met in the issue? @Connor1996

Nope, usually the value size won't be that large.

/test pull-unit-test

/test pull-unit-test