Using a test environment for Unit Tests

Instead of debugging for bug fixes I prefer to use Unit Tests.
About the available tests @mrjimenez wrote at ttps://github.com/pupnp/pupnp/issues/218#issuecomment-775214410

As far as I understand, this is not a sophisticated unit test framework like modern javascript. This uses very old stuff in autotools, but I have not looked into the documentation for its capabilities.

I like googletest and will try it local on my cloned pupnp. Is there any chance to get it integrated into this project? Or are other test environments preferred? Because with multicasting we have hard to emulate I/O functions, I think that the test environment must support mocking.

Definitely do it. If you make it work as you intend, it will be integrated. The way I see, it is a welcome addition and does not interfere with the current primitive unit testing.

I'm a bit unsure because the environment is using C++, but of course it can also test pure C programs Unit Testing C Code.

If I see that correct, you can define expected return values, like success is expected now. Or you can emulate (some kind of) library calls for the libs in the source. The problem seems to be the call of a system-library. Maybe I'm wrong, but I didn't see this in the docs.
I don't understand this appraoch at all so I'm curious what benefit comes from that. At least I (with my limited knwoledge of that) can't imagine a real benefit, just a replacement, maybe better readable but nothing that would legitimate a new dep. So just surprise me.
Btw. I'll add that to CmDaB tommorow, as they describe an old technic for the on-the-fly-download, so you'll just need one command instead of the 20+ the listed.

Hi @Vollstrecker, I'm just starting with all of this. I'm interested in multicasting/upnp on an IPv6 only network because of a project I'm following. In particular I'm looking at the current bug at The library does not work on IPv6 only networks and try to understand the library. I'm afraid this will not be the only bug with supporting IPv6, because it seems that on the whole library is assumed that IPv4 is always available. I had a look at the available tests but could not find any useful information to understand how they work. Because I have already used googletest so it is obvious for me to try it on my local clone. After some unit tests I think we will have a better basis for comparison. At this time I can't say much about it.
The bug we have found is described at https://github.com/pupnp/pupnp/issues/218#issuecomment-775221208. There the system call setsockopt is failing. How would you test all calling functions?

I don't know that much more about lib as you do, I'm just working in the periphery. If that are not so much external calls, you could just call them, as the tests and the samples do. I think that is what Marcello did. He knows the lib best, so if think's it's a good idea, just go for it. I (more or less) always available to support you with that.
The problems with tests is always, that you have to know what to test, and what to expect. If you know that, it just doesn't matter what you use.

I try to setup googletest to be available in pupnp as described at Incorporating Into An Existing CMake Project. There is given a CMakeLists.txt but there is already a pupnp/CMakeLists.txt. I'm not familiar with CMake.
Does anybody know how to correctly configure it?

As I said, their description isn't that good.
For just getting it useable you can set DOWNLOAD_AND_BUILD_DEPS=TRUE, and then anywhere after line 4 you can add:
if (DOWNLOAD_AND_BUILD_DEPS)
    CmDaB_install (googletest)
endif()
Then you should be able to use it. This doesn't check for any existing installation or whatever at all, but for getting your tests done it should be good enough.

I got it going. Of course, the installation is a bit quick and dirty at time and needs some improvement. But here is the same test of UpnpInit2 as shown at https://github.com/pupnp/pupnp/issues/218#issue-799216347 but under test conditions.
gtest$ cat test_initialization.cpp
#include "gtest/gtest.h"
#include "upnp.h"

TEST(PupnpInitTestSuite, initialization)
{
    constexpr char INTERFACE[] = "ens1";
    unsigned short PORT = 51515;

    EXPECT_EQ(UpnpInit2(INTERFACE, PORT), UPNP_E_SUCCESS);
}

int main(int argc, char **argv) {
  ::testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();

Of course it fails because it does not return UPNP_E_SUCCESS:
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from PupnpInitTestSuite
[ RUN      ] PupnpInitTestSuite.initialization
test_initialization.cpp:9: Failure
Expected equality of these values:
  UpnpInit2(INTERFACE, PORT)
    Which is: -208
  0
[  FAILED  ] PupnpInitTestSuite.initialization (2 ms)
[----------] 1 test from PupnpInitTestSuite (2 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (4 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] PupnpInitTestSuite.initialization

 1 FAILED TEST

I will improve the tests with the goal to fix the bug with same behavior of the library.

I did some more tests to verify that googletest, using C++ objects, can run the C library under test conditions. It is said, that the C++ compiler can also compile pure C programs but it is also said that this can have some side effects. This is also true with pupnp. But it is no problem to compile the library at usual with GCC and test against the static library. This also ensures that a main requirement of unit tests is met: the production code must remain unchanged for testing.
I have now 5 tests running on two functions from the upnpapi module with an IPv4 and IPv6 interface UP and the benefit is already very great. These interfaces are UP:
gtest$ ip -br addr
lo               UNKNOWN        <IP_ADDRESS>/8 ::1/128
ens1             UP             2003:d5:2721:900:5054:ff:fe40:50f6/64 fe80::5054:ff:fe40:50f6/64
ens2             UP             <IP_ADDRESS>/16

Here is the test result:
gtest$ ./test_upnpapi.a
[==========] Running 5 tests from 3 test suites.
[----------] Global test environment set-up.
[----------] 2 tests from UpnpApiIPv4TestSuite
[ RUN      ] UpnpApiIPv4TestSuite.UpnpGetIfInfo
[       OK ] UpnpApiIPv4TestSuite.UpnpGetIfInfo (1 ms)
[ RUN      ] UpnpApiIPv4TestSuite.UpnpInit2
[       OK ] UpnpApiIPv4TestSuite.UpnpInit2 (54 ms)
[----------] 2 tests from UpnpApiIPv4TestSuite (59 ms total)

[----------] 2 tests from UpnpApiIPv6TestSuite
[ RUN      ] UpnpApiIPv6TestSuite.UpnpGetIfInfo
test_upnpapi.cpp:75: Failure
Expected equality of these values:
  gIF_NAME
    Which is: "ens2"
  interface.c_str()
    Which is: "ens1"
test_upnpapi.cpp:76: Failure
Expected equality of these values:
  gIF_IPV4
    Which is: "<IP_ADDRESS>"
  ""
test_upnpapi.cpp:78: Failure
Value of: gIF_IPV6
Expected: matches regular expression "([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4}"
  Actual: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" (of type char [46])
test_upnpapi.cpp:79: Failure
Value of: gIF_IPV6_ULA_GUA
Expected: matches regular expression "([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4}"
  Actual: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" (of type char [46])
[  FAILED  ] UpnpApiIPv6TestSuite.UpnpGetIfInfo (3 ms)
[ RUN      ] UpnpApiIPv6TestSuite.UpnpInit2
test_upnpapi.cpp:87: Failure
Expected equality of these values:
  return_value
    Which is: -105
  0
[  FAILED  ] UpnpApiIPv6TestSuite.UpnpInit2 (0 ms)
[----------] 2 tests from UpnpApiIPv6TestSuite (3 ms total)

[----------] 1 test from UpnpApiTestSuite
[ RUN      ] UpnpApiTestSuite.GetHandleInfo
[       OK ] UpnpApiTestSuite.GetHandleInfo (0 ms)
[----------] 1 test from UpnpApiTestSuite (0 ms total)

[----------] Global test environment tear-down
[==========] 5 tests from 3 test suites ran. (68 ms total)
[  PASSED  ] 3 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] UpnpApiIPv6TestSuite.UpnpGetIfInfo
[  FAILED  ] UpnpApiIPv6TestSuite.UpnpInit2

 2 FAILED TESTS

These tests are against the UpnpGetIfInfo and the UpnpInit2 functions. It shows that the UpnpApiIPv4TestSuite is running without failour, as expected.
The UpnpApiIPv6TestSuite fails.

UpnpGetIfInfo sets the wrong interface. It must set gIF_NAME to ens1 instead of ens2.
gIF_IPV4 is set to "<IP_ADDRESS>". I have expected it to be "". But this is opinion based and can be discussed.
gIF_IPV6 does not contain the IPv6 address. It is still empty.
With the wrong interface info UpnpInit2 returns -105 of course, which is defined as UPNP_E_INIT.

These tests are only for two interfaces up. They will give wrong information for the other remaining three conditions (no if up, only IPv4 up, only IPv6 up). But with a try with only IPv6 up I found that UpnpInit2 hangs and never return:
gtest$ sudo ip link set dev ens2 down
gtest$ ip -br addr
lo               UNKNOWN        <IP_ADDRESS>/8 ::1/128
ens1             UP             2003:d5:2721:900:5054:ff:fe40:50f6/64 fe80::5054:ff:fe40:50f6/64
ens2             DOWN

gtest$ time ./test_upnpapi.a
[==========] Running 5 tests from 3 test suites.
--- snip ---
[  FAILED  ] UpnpApiIPv6TestSuite.UpnpGetIfInfo (1 ms)
[ RUN      ] UpnpApiIPv6TestSuite.UpnpInit2
^C

real    1m33,888s
user    0m0,006s
sys     0m0,007s

UpnpInit2 will never return. I canceled the test with Ctrl+C after 1m33,888s.
I suggest to do not take effort at this time to fix the bugs. I will make a break with creating additional tests and will provide an installation of googletest with cmake and the current test environment so that it is possible to work with it together if desired.
The test environment can be installed with a cmake option and does not effect the default installation without the option.
The next step then I will try is to get mocking to run. This is a very important feature that makes us independent from the physical presence of network interfaces. This is not an easy task with testing a C library because it doesn't support virtual interfaces for objects.

I have just updated my local clone with the latest commits on the github master. Sorry for the delay. The tests look much better now.
For an IPv6 interface gIF_IPV4 still contains an ip address, But as already said, that's opinion based. Shouldn't it set to an empty string? We are looking for an IPv6 address.
The other failures from UpnpGetIfInfo for an IPv6 ip address are removed now but UpnpInit2 still fails with return_value -105 (UPNP_E_INIT). We need some more tests.
With only an IPv6 interface UP, UpnpInit2 does not hang anymore. It returns now after 91 ms total.
Good job so far :-)
gtest$ ./test_upnpapi.a
[==========] Running 5 tests from 3 test suites.
[----------] Global test environment set-up.
[----------] 2 tests from UpnpApiIPv4TestSuite
[ RUN      ] UpnpApiIPv4TestSuite.UpnpGetIfInfo
[       OK ] UpnpApiIPv4TestSuite.UpnpGetIfInfo (1 ms)
[ RUN      ] UpnpApiIPv4TestSuite.UpnpInit2
[       OK ] UpnpApiIPv4TestSuite.UpnpInit2 (2 ms)
[----------] 2 tests from UpnpApiIPv4TestSuite (3 ms total)

[----------] 2 tests from UpnpApiIPv6TestSuite
[ RUN      ] UpnpApiIPv6TestSuite.UpnpGetIfInfo
test_upnpapi.cpp:76: Failure
Expected equality of these values:
  gIF_IPV4
    Which is: "<IP_ADDRESS>"
  ""
[  FAILED  ] UpnpApiIPv6TestSuite.UpnpGetIfInfo (1 ms)
[ RUN      ] UpnpApiIPv6TestSuite.UpnpInit2
test_upnpapi.cpp:87: Failure
Expected equality of these values:
  return_value
    Which is: -105
  0
[  FAILED  ] UpnpApiIPv6TestSuite.UpnpInit2 (0 ms)
[----------] 2 tests from UpnpApiIPv6TestSuite (1 ms total)

[----------] 1 test from UpnpApiTestSuite
[ RUN      ] UpnpApiTestSuite.GetHandleInfo
[       OK ] UpnpApiTestSuite.GetHandleInfo (0 ms)
[----------] 1 test from UpnpApiTestSuite (0 ms total)

[----------] Global test environment tear-down
[==========] 5 tests from 3 test suites ran. (5 ms total)
[  PASSED  ] 3 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] UpnpApiIPv6TestSuite.UpnpGetIfInfo
[  FAILED  ] UpnpApiIPv6TestSuite.UpnpInit2

 2 FAILED TESTS

Googletest and Googlemock are merged into the master. Unit testing is going on now.


Autorest Regen Preview to 3.0.0-alpha.20230727.2 by Dapeng Zhang from refs/pull/3483/merge

Triggered from https://github.com/Azure/autorest.csharp/pull/3483

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.ChangeAnalysis


Get exception when run page.GetContentAsync()

Hi, when use page.GetContentAsync() method, I'll get exception

CLR/System.Exception
An exception of type 'System.Exception' occurred in System.Private.CoreLib.dll but was not handled in user code: 'Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.'

Here is my simple code

        var browser = await Puppeteer.LaunchAsync(new LaunchOptions
        {
            ExecutablePath = "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
            Headless = true,
            DumpIO = true,
        });
        var page = await browser.NewPageAsync();
        await page.GoToAsync("https://www.google.com.tw/");
        var countGoogle = 0;
        do
        {
            await Task.Delay(3000);
            await page.GetContentAsync();
            countGoogle++;
        } while (true);

the counter will count 5 to 6 times and throw exception
Versions

PuppeteerSharp 1.1.0 via NuGet
.NET Core 2.1

Thanks for the code example @victor1135. I'll take a look.

@victor1135 just to double check. Could you try downgrading to .NET Core 2.0?

No problem , I'll try on .NET Core 2.0

Hi @kblok  .NET Core 2.0 operating normally, I run for a hour, no exception

Issue https://github.com/dotnet/corefx/issues/31076 created on the corefx repo.


[W5.4b][W14-A2]Sim Kwan Tiong Damien

@Damienskt
Some comments added. Please ack & close the PR after reading comments.


[ResourceMonitor] Refactored plugin

ResourceMonitor is now able to monitor processes individually (WPEFramework, WPEProcess, WPENetworkProcess, etc) and all together (select name "WPE" for monitoring all WPE related processes) and collects information about memory usage, and puts it into a .csv file. Switched to RAII containers where possible. Changed GCC __builtin_popcount function to STL equivalent. Tested on RPI and inside a docker container.

After diving deeper into the results returned by the measurements I decided to change the underlying measurement algorithm. More to be read here: https://github.com/rdkcentral/Thunder/pull/482

I messed something with rebases, closing this PR.


Highlighted menu item hides checkmark

Issue #3563 . Please, check

checkmark should change color the same as the item text.

also needs to be fixed in ambiance mode.

:+1:


How to style non-DOM components?

All of the examples only show how to style core DOM nodes in JSX, like
:

only this paragraph will get the style :O

    { /* you can include <Component />s here that include
         other
s that don't get unexpected styles! */ }

Is it possible to use styled-jsx to pass styles into components, like <Button>? Having a hard time understanding how that would work, or how this library is a true solution to CSS without that? Would I need to require one of the other CSS-in-JS solutions to theme things?

<Button> would have its own
  </button>
)

Inline style for overrides is another.

that's if you like the shorthand value-less large, otherwise just pass a bool and things are much easier :D

I just realized you could also have a little HOC that converts short-hands to bools:
export default withBools(({ large, small, children }) => (
  <button className={large ?  'large' : small ? ' small' : ''}>
    {children}
  </button>
))

Added a section describing the two main techniques:
https://github.com/zeit/styled-jsx#dynamic-styles
@ianstormtaylor does it LGTY?

@rauchg yup that is perfect, thank you!

Hi. Correct me if I'm wrong, but this wouldn't work, unless we use global styles, right?
const Button = ({ href, onClick, children }) => {
  const Component = href ? 'a' : 'button';
  const params = href ? { href } : { onClick };
  return (
    <Component
      className="button"
      {...params}
    >
      {children}

    </Component>
  );
};


Improved performance of drawing Flame Graph

As reported internally drawing Flame Graphs for some very big data sets was too slow (could even take few minutes).
This PR solves the problem by replacing FrameworkElement with DrawingVisual.
DrawingVisual is simpler and faster. However, it does not support ToolTips OOTB so I had to implement this. I don't feel good about it, but I did not find any better idea.
For provided .etl file the time for drawing flame graph got from 5 minutes to 2 seconds.
I have also improved the way text is scaled and wrapped.

Codecov Report

Merging #585 into master will increase coverage by 0.12%.
The diff coverage is 16.1%.

@@            Coverage Diff             @@
##           master     #585      +/-   ##
==========================================
+ Coverage   17.36%   17.49%   +0.12%
==========================================
  Files         215      216       +1
  Lines      124730   124823      +93
  Branches    12038    12046       +8
==========================================
+ Hits        21664    21841     +177
- Misses     102050   102118      +68
+ Partials     1016      864     -152

Flag
Coverage Δ

#2017
17.49% <16.1%> (+0.12%)
:arrow_up:

#Debug
17.49% <16.1%> (+0.12%)
:arrow_up:

#Release
?

Impacted Files
Coverage Δ

src/PerfView/StackViewer/StackWindow.xaml
100% <ø> (ø)
:arrow_up:

src/PerfView/StackViewer/FlameGraph.cs
0% <0%> (ø)
:arrow_up:

src/PerfView/StackViewer/StackWindow.xaml.cs
25.65% <0%> (-0.04%)
:arrow_down:

...rc/PerfView/StackViewer/FlameGraphDrawingCanvas.cs
17.02% <17.02%> (ø)

src/PerfView/StackViewer/PerfDataGrid.xaml.cs
34.02% <0%> (ø)
:arrow_up:

...c/TraceEvent/Parsers/ClrPrivateTraceEventParser.cs
19.58% <0%> (+0.03%)
:arrow_up:

src/TraceEvent/DynamicTraceEventParser.cs
67.27% <0%> (+0.15%)
:arrow_up:

src/TraceEvent/TraceEvent.cs
63.83% <0%> (+0.16%)
:arrow_up:

... and 8 more

Continue to review full report at Codecov.

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

It looks like you just draw things instead of using WPF objects.  That is reasonable.
I have not looked at the code closely, but it is isolated to flamegraph, which I consider your domain.
I am OK with it.


Test 1

Conflicts Found

Author: @colorMeCode - PR: #14
  - .github/workflows/test-workflow.yml: Line 1  - action.yml: Line 1  - index.js: Lines 6, 347

Conflicts Found

Author: @colorMeCode - PR: #14
  - .github/workflows/test-workflow.yml: Line 1  - action.yml: Lines 1, 2  - index.js: Lines 6, 350

Conflicts Found

Author: @colorMeCode - PR: #14
  - .github/workflows/test-workflow.yml: Line 1  - action.yml: Lines 1, 2  - index.js: Lines 6, 140, 206, 207, 208, 347


network.data messages not shown

I thought it was my runtime but I just checked noflo-nodejs and I get the same result, network.begingroup  and network.endgroup both show in the debug panel when the edge is selected but the network.data is not, I tried this with the lastest noflo-ui stable release and master and I get the same result.
Is it a bug or do I need to do something for these to appear ?
Here is what the noflo-nodejs sent:
{
  "protocol": "network",
  "command": "begingroup",
  "payload": {
    "id": "filesystem/ReadFile_vb059() OUT -> IN core/Output_p8j8a()",
    "graph": "main",
    "src": {
      "node": "filesystem/ReadFile_vb059",
      "port": "out"
    },
    "tgt": {
      "node": "core/Output_p8j8a",
      "port": "in"
    },
    "group": "/tmp/flo.txt"
  }
}

{
  "protocol": "network",
  "command": "data",
  "payload": {
    "id": "filesystem/ReadFile_vb059() OUT -> IN core/Output_p8j8a()",
    "graph": "main",
    "src": {
      "node": "filesystem/ReadFile_vb059",
      "port": "out"
    },
    "tgt": {
      "node": "core/Output_p8j8a",
      "port": "in"
    },
    "data": "yo\n"
  }
}

{
  "protocol": "network",
  "command": "endgroup",
  "payload": {
    "id": "filesystem/ReadFile_vb059() OUT -> IN core/Output_p8j8a()",
    "graph": "main",
    "src": {
      "node": "filesystem/ReadFile_vb059",
      "port": "out"
    },
    "tgt": {
      "node": "core/Output_p8j8a",
      "port": "in"
    },
    "group": "/tmp/flo.txt"
  }
}

And what I see is:
</tmp/flo.txt>
<//tmp/flo.txt>

Can confirm, not seeing data packets:

With noflo/noflo-runtime#88 we now get packet data as expected

That needs to be merged, released, and we need to bump the dep in noflo-ui

Fixed in 0.12.2

thanks :)
I tried to look at it but this project is really daunting, there are so many different libraries...


Keep visualizer bars at 0 instead of hiding when media player closed

Just a thought I had it might be useful to make it that instead of hiding the visualizer it ignores all sound. I'm not at a computer right now but I think it would be pretty simple to write a always return 0 if player state is 0 if condition. Then just having it either on top of or replace the current hide method.

Not working with Spotify - needs some small modifications because Spotify is returning PlayerState wrong

Found the cause, seems to be the PlayerSpotify.cpp file calculates the playing status wrong.
It is currently
if (track != m_Title || artist != m_Artist)
{
	m_State = STATE_PLAYING;
	m_Title = track;
	m_Artist = artist;
	++m_TrackCount;

	if (m_Measures & MEASURE_LYRICS)
	{
		FindLyrics();
	}
}

So the state playing is only changed on song change or when it is paused. I can submit a PR but given that this would then only exist in the 4.1 beta how do we want to proceed? We could either raise the minimum version or switch to getting the play state from the spotify plugin but it seems to work differently and not differentiate between stopped and paused and then we have no way to use the now playing bangs.
As I mentioned before I could implement the code to replace the spotify plugin in webNowPlaying but that probably is at least a week away and to fully replace it was not my original intention.

Did not hear back from any devs so I just sent a patch in https://github.com/rainmeter/rainmeter/issues/115

Committed.
-Brian

Fixed in latest rainmeter beta.


Double nested blockquotes

On our company blog it seems that blockquotes are rendering in as a blockquote wrapped in a blockquote (see picture). Anyone have an idea why that is happening?

@martin3walker could you share the markdown that causes this?
Trying
> blockquote

on the demo site appears to render as expected https://rexxars.github.io/react-markdown/


Does not find HX60V, need to specify IP address

Got my hands on a DSC-HX60V, and sample scripts do not find it by default as it allocates a different IP address/range.
Needed to include the actual IP address, after which it seems to work (see below)
-      camera = SonyAPI()
+      camera = SonyAPI(QX_ADDR='http://<IP_ADDRESS>:8080/')

--
simon@retrobox:~/sony_camera_api-git/src/example$ python pyLiveView.py  -g -a -d
using LiveView grabber
Versions: {'result': [['1.0', '1.1', '1.2', '1.3', '1.4']], 'id': 1}
API List: {'result': [['getVersions', 'getMethodTypes', 'getApplicationInfo', 'getAvailableApiList', 'getEvent', 'startRecMode', 'stopRecMode']], 'id': 1}
Event: {'result': [{'type': 'availableApiList', 'names': ['getVersions', 'getMethodTypes', 'getApplicationInfo', 'getAvailableApiList', 'getEvent', 'stopRecMode', 'startMovieRec', 'startLiveview', 'stopLiveview', 'startLiveviewWithSize', 'actZoom', 'setShootMode', 'getShootMode', 'getAvailableShootMode', 'getSupportedShootMode', 'getExposureMode', 'getSupportedExposureMode', 'getExposureCompensation', 'getAvailableExposureCompensation', 'getSupportedExposureCompensation', 'getFNumber', 'getAvailableFNumber', 'getSupportedFNumber', 'getIsoSpeedRate', 'getAvailableIsoSpeedRate', 'getSupportedIsoSpeedRate', 'getLiveviewSize', 'getAvailableLiveviewSize', 'getSupportedLiveviewSize', 'getShutterSpeed', 'getAvailableShutterSpeed', 'getSupportedShutterSpeed', 'getWhiteBalance', 'getSupportedWhiteBalance', 'getAvailableWhiteBalance', 'getFocusMode', 'getAvailableFocusMode', 'getSupportedFocusMode', 'setZoomSetting', 'getAvailableZoomSetting', 'getZoomSetting', 'getSupportedZoomSetting', 'getStorageInformation', 'setLiveviewFrameInfo', 'getLiveviewFrameInfo']}, {'type': 'cameraStatus', 'cameraStatus': 'IDLE'}, {'zoomPositionCurrentBox': 0, 'zoomNumberBox': 2, 'zoomIndexCurrentBox': 0, 'type': 'zoomInformation', 'zoomPosition': 0}, {'liveviewStatus': False, 'type': 'liveviewStatus'}, None, [], [], None, None, None, [{'recordableTime': 125, 'recordTarget': True, 'storageID': 'Memory Card 1', 'type': 'storageInformation', 'numberOfRecordableImages': -1, 'storageDescription': 'Storage Media'}], None, {'cameraFunctionCandidates': ['Contents Transfer', 'Remote Shooting'], 'type': 'cameraFunction', 'currentCameraFunction': 'Remote Shooting'}, None, None, None, None, None, {'currentExposureMode': 'Intelligent Auto', 'type': 'exposureMode', 'exposureModeCandidates': ['Intelligent Auto']}, {'currentPostviewImageSize': '2M', 'type': 'postviewImageSize', 'postviewImageSizeCandidates': ['Original', '2M']}, None, {'currentShootMode': 'movie', 'type': 'shootMode', 'shootModeCandidates': ['movie']}, None, None, None, None, None, {'fNumberCandidates': [], 'type': 'fNumber', 'currentFNumber': '3.5'}, {'type': 'focusMode', 'focusModeCandidates': [], 'currentFocusMode': 'AF-C'}, {'currentIsoSpeedRate': 'AUTO', 'type': 'isoSpeedRate', 'isoSpeedRateCandidates': []}, None, {'type': 'programShift', 'isShifted': False}, {'shutterSpeedCandidates': [], 'currentShutterSpeed': '1\/30', 'type': 'shutterSpeed'}, {'checkAvailability': True, 'currentColorTemperature': -1, 'type': 'whiteBalance', 'currentWhiteBalanceMode': 'Auto WB'}, None], 'id': 1}
adjusted width from 800 to 640
adjusted height from 512 to 360
started capture
Stopped capture: frames =  505 , delta =  20.754361 , fps =  24.3322355239
terminating...
terminated

Should also note that the 'remote control' function of this camera is one of Sony's PlayMemories Apps running on the camera.The list of current support features may be interesting:
https://www.playmemoriescameraapps.com/portal/usbspec.php?eid=IS9104-NPIA09014_00-F00002

in case of QX10, it was  'http://<IP_ADDRESS>:10000' so if there are no params, default is <IP_ADDRESS>:10000. I can fix this like below:

check the camera model and change it's default IP.

In terms of specify the IP/URL of camera manual, I agree it's a useful ability and can 'just' be done on the command line.
The camera(s) supposedly have a uPNP characteristic which should allow them to be automatically discovered. There's a big long write up on how someone solved this here:
http://stackoverflow.com/questions/21340286/windows-compatibility-with-the-sony-camera-remote-api

SonyAPI class had upnp but that upnp is not work on my mac that day. So I commented to  there 'it is not work' i should test again. Thanks your comment it looks useful

Found a few other projects on GitHub which had implemented the uPNP stuff and 'borrowed' some code from this one (under the MIT license).
https://github.com/storborg/sonypy/blob/master/sonypy/discovery.py
Not fully tested as don't have HX60 with me this week, but you might like to try:
https://github.com/mungewell/sony_camera_api/tree/new_discover
Theres a new script in the examples folder.

Closing bug as automatic uPNP detection now works on HX60.


Update documentation of the tf.nn.softmax function

This PR addresses the issue #53112
As discussed, the tf.nn.softmax documentation states that:

This function performs the equivalent of
softmax = tf.exp(logits) / tf.reduce_sum(tf.exp(logits), axis)

However the above computation is wrong for tensors with rank greater than 1.
I belive that the correct description would be:
softmax = tf.exp(logits) / tf.reduce_sum(tf.exp(logits), axis, keepdims=True)

Hi, I noticed that the line is longer than 80 characters, any suggestion on how to rewrite it in a two-line format?
P.S. I also tried to run tf_doctest.py (as indicated here: https://www.tensorflow.org/community/contribute/docs_ref) but it throws "AttributeError: module 'tensorflow.python.ops.logging_ops' has no attribute 'enable_interactive_logging"

@T-Almeida Can you please address PyLint errors? Thanks!

Hi @gbaned, I made two changes in order to fix the PyLint erros, see if its okey


Why pulsar retention quota must exceed configured backlog quota

Discussed in https://github.com/apache/pulsar/discussions/17697

Originally posted by mnit016 September 16, 2022
Hello everyone,
I'm new to Pulsar, recently I get into a problem when configure the backlog/retention quota for namespace.
The problem:
retention: {time: -1, size: 10M} => then I can set backlog quota as much as I want.
But if retention: {time: 1, size: 10M} => when I set backlog quota exceed 10M, it said "Backlog Quota exceeds configured Retention quota for namespace. Please increase retention quota and retry", I have no idea why.
Could someone please help to explain for me?
Thanks

This appears to be a bug, based on @Jason918's analysis here:
https://github.com/apache/pulsar/discussions/17697#discussioncomment-3672520


Migrate to ruff

Pull Request Checklist

[ ] New code has 100% test coverage
[ ] (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
[ ] (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

By submitting this issue, you agree to:

follow Starlite's Code of Conduct
follow Starlite's Contribution Guidelines

Description
Migrate to ruff for linting, ci
Close Issue(s)
Closes #151

https://github.com/charliermarsh/ruff/issues/3676
I am blocked by this issue whereby ruff blasts away our noqa's


Encountered an error while trying to add backward compatibility  for XE4

Hello,
I'm glad to have found this interesting project! I'm trying make some changes to the repository so that it compiles under XE4. I've done several as you can see in the PR #7 ,  but not sure what to do for the compiler error as you can see in the attached screenshot :) Any help?

Hi
I am currently using delphi 10.3 community edition.
Unfortunately, this is the only version of Delphi available to me.
If it's critical for you I can see how it can be implemented in delphi xe4. But since then a lot of water in the rivers has gone away.
I would be most interested in trying to compile projects for Free Pascal.
I used to work on Pascal for PDP-11, Turbo-pascal, JPI Pascal. But I never got to FP, and there were no tasks for this language implementation.
Translated with www.DeepL.com/Translator (free version)

A discussions of your library on the Praxis Delphi forum that might can be of your information: https://en.delphipraxis.net/topic/3648-oz-sgl-a-new-generic-collections-library-based-on-the-idea-of-c-stl/?tab=comments#comment-30755


Truncation of output

Running it via the one off runner (rather than the pseudo shell) also truncates, but much less:
SWTBMBP:Desktop simonwheatley$ vip wp --app=68 post list
✔ Which environment? · testing
+-------+----------------------------------------------------------+--------------------------------+---------------------+-------------+
| ID    | post_title                                               | post_name                      | post_date           | post_status |
+-------+----------------------------------------------------------+--------------------------------+---------------------+-------------+
| 15025 | 13f13faqfff                                              | 13f13faqfff                    | 2018-11-02 19:25:25 | publish     |
| 15023 | test313414                                               | test313414                     | 2018-11-02 19:21:59 | publish     |
| 15021 | New Post Again                                           | new-post-again                 | 2018-11-02 19:17:37 | publish     |
| 15015 | New Post                                                 | new-post                       | 2018-11-02 19:04:21 | publish     |
| 15013 | Test Post                                                | test-post                      | 2018-11-02 18:56:06 | publish     |
| 14918 | Test test                                                |                                | 2018-09-17 17:35:57 | pending     |
| 14923 | Great Awesome Post                                       |                                | 2018-08-29 21:55:25 | pending     |
| 14920 | Great Awesome Post                                       | great-awesome-post             | 2018-08-29 21:53:40 | publish     |
| 14913 | My Awesome Post Original                                 | my-awesome-post-original       | 2018-08-29 21:44:07 | publish     |
| 14878 | Test Post Submitted for Review - I'd Like to Revise This | test-post-submitted-for-review | 2018-08-29 03:53:05 | publish     |
| 14755 | Also ignore this!                                        | also-ignore-this               | 2018-05-17 03:00:20 | publish     |
| 14753 | Ignore this too                                          | ignore-this-too                | 2018-05-17 02:51:37 | publish     |
| 14751 | Hellloooo!!!!                                            | hellloooo                      | 2018-05-17 02:50:23 | publish     |
| 14749 | Here's another test post                                 | heres-another-test-post        | 2018-05-17 02:27:35 | publish     |
| 14747 | Testing Post                                             | testing-post                   | 2018-05-17 02:25:34 | publish     |
| 14744 | Scheduled Post                                           | scheduled-post                 | 2018-05-12 03:45:08 | publish     |
SWTBMBP:Desktop simonwheatley$

This might be more on the API side - it's possible that all the data hasn't flushed down the websocket before the socket is closed (which happens when the command finishes). Probably will be addressed as part of the improvements to reconnections (which will add a buffering system).

Interestingly I can't repro this on other sites (try vip --app=297 wp post list), but can reliably reproduce it on app 68.
I've also confirmed that it's not a matter of the vip process exiting too early - the socket stream's end event gets fired and no more data is sent, even when omitting the process.exit().

This also does not appear to be dependent on the CLI container, as I've tried it on a brand new container on the vip-test site (297) and 68 and both still behave the same.
The fact that the output ends at different places each time the command is run makes me wonder if the CLI runner is closing the socket too quickly.

I was able to confirm that this happens when talking to the CLI runner directly (bypassing vip and Parker). @darthhexx is looking into it.

This has been fixed in the latest commits to https://github.com/Automattic/Cron-Control/pull/176 and new images have been created and deployed.

Thanks @darthhexx! I was able to confirm the fix (left you a note on Slack).


TodoTelescope doesn't search dotfolder subdirectories

My Telescope plugin is setup so that it searches dotfolders in the cwd. If I use live_grep I find the todos I'm looking for.
However, this plugin seems to ignore these subdirectories.
At the very least there should be a default option in the setup to change the search scope.

Add the --hidden flag to the ripgrep command in the setup configuration table:
search = {
  args = {
      "--color=never",
      "--no-heading",
      "--with-filename",
      "--line-number",
      "--column",
      "--hidden"
  }
}

Thank you!


Add densenet models

See issue #97.
It's not super-memory optimized (i.e. there's a concatenation at every layer). This is consistent with the original Torch implementation, and prevents some gross autograd hacks.
Pretrained models for the model zoo are available here. They're converted over from the original Torch implementation.

awesome. do the DenseNet pre-trained models expect the same normalization as the rest of the models?
I'm going to upload your models to the pytorch s3 bucket so that you can make them available via the pretrained=True

You will have to change the naming of the pretrained models as described here:
http://pytorch.org/docs/model_zoo.html i.e. filename-<sha256>.ext

@soumith - yeah, same normalization as the other ImageNet models. I'll rename the files

@fmasa no lint errors anymore. Sorry for not reading the contributing guidelines earlier!
@soumith just renamed the files: https://drive.google.com/drive/folders/0B0Y2k_mEJpY9R3dSSGQ0YXhfa2c?usp=sharing

They are now uploaded to the bucket and available via URLs:
https://download.pytorch.org/models/densenet121-1e136e00.pth
https://download.pytorch.org/models/densenet*

@gpleiss I think you meant @fmassa :grin:

@soumith Sorry, the files I linked to earlier were serialized version of the models, not the model states.
Here's a link to the correct files: https://drive.google.com/drive/folders/0B0Y2k_mEJpY9NXFBa1ktRUo3YlU?usp=sharing

@gpleiss the new files have been uploaded to the same place i.e. https://download.pytorch.org/models/

pretrained=True is now ready

Thank you! this is good stuff.

It's weird, I have never seen DenseNet using this configuration for the first convolution. Checking other implementations from the authors, they also used conv 3x3, stride=1, padding=1
Is it your choice to make this design changes or am I missing something ?

@trypag the cifar models use 3x3 convolution for the first layer, but the ImageNet models use 7x7 convolution. The author's implementation is only for the CIFAR models. However, if you download their pretrained imagenet models the first layer is a 7x7 convolution.

Alright thanks @gpleiss  !

The authors address the memory efficiency in the followup paper with underlying shared memory and re-computation on bp. The current pytorch code just uses torch.cat() directly. Any plan to formalize the technique? It is likely densenet based CNNs are going to propsper for other applications.


Support postgres:// as a database URL scheme

In addition to postgresql://
Issue: https://github.com/prisma/prisma2/issues/599
Migration engine PR: https://github.com/prisma/prisma-engine/pull/101

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


feat(rotation-consistency): don't rotate 180 degrees when initial finger is removed first.

Demo: http://codepen.io/runspired/pen/KdbzLb
TL;DR It jumps if you do not release in the inverse order you initially began touching, which is an annoying behavior more often than it is the correct one. We should probably be "locking" rotation to 0 when the second pointer first lands, and "locking" rotation to it's final value when the second pointer is removed.

I approve! It is weird that while ev.scale always starts from 1, ev.rotation starts from the angle of the two fingers even when there was no rotation yet. This makes API users life a bit harder because one needs to store initial rotation (and recognize if it is initial) and then calculate the difference.

I would suggest on keeping the current behavior, in order not to break current implementations.
Other potential fixes would be to:

improve the docs (see below)
providing a rotationDelta (or deltaR in order to be consistent with deltaX and deltaY) property on the event.

As for the first suggestion, adding this snippet to the docs could be handy:
let rotationAtStart, rotationDelta;

onPinch(e) {
  switch (e.eventType) {
    case Hammer.INPUT_START:
      rotationAtStart = e.rotation;
    break;
    case Hammer.INPUT_MOVE:
      rotationDelta = (e.rotation - rotationAtStart);
    break;
  }
}


Back pressure on full term buffer

If I set aeron.term.buffer.length to its minimum value of 65536 and I keep sending messages of exactly 2048 bytes, every 31 messages I got back pressured, immediate retry succeeds.
Is it by design? Should not Aeron swap term buffers underneath and actually return 'success' in such case? Maybe it should return different status code?
Basically, I'm not interested in retrying messages, however in above scenario I have to as a workaround as I can't distinguish between actual back pressure and the one caused by full term buffer.

This is currently by design. Rather than have a loop in a loop, the caller should be looping to deal with back pressure anyway. Similar behaviour happens in other network stacks to keep code simple.
Why are you "not interested" in retrying?

I mean, I prefer dropping messages in case of too slow consumers/too fast producers.
Retrying, on each back pressure - if I would like to handle full term buffer case - would mean retrying also in flow control scenarios.

We could look at returning a different status code for this case.

I could add a new return code of ADMIN_ACTION that means the operation should be applied.

If that fits Aeron design it would be more than enough for my case.

This is fairly easy to do. I had the case before and simplified it to keep the surface area down.

@grzegorz-gierlach Can you try if that works for you?

Works like a charm. Thank you.
Closing the issue.


Add ability to have only one listener at time, update gradle

thanks I update it and publish a new release

it's in 1.2.3

@florent37 I hope you also test it? Because I don’t trust myself (at least app module, where i updated gradle)


docs #781 - Added toast_ui.blazor_calendar to wrappers list in readme

close #781
Added toast_ui.blazor_calendar to wrappers list in readme

Can one of the admins verify this patch?

I updated and removed the NuGet badge. Thanks!


loggerTheme to be used in ThemeData to globaly set default logger settings

Can a loggerTheme property be implemented in ThemeData so that we may set a global state for the logger?
The default Logger is with PrettyPrinter, implementing this allows us to change the default into our requirement. Set it to SimplePrinter as an example

Hi, I am not quite sure if it's a good idea to create a theme-like class for a logger (especially if it's only for one or two printers). I mean a logger isn't a widget, not even close to one IMO.
Maybe you can refine your idea, so I can better understand what you would expect from such a feature.


Ensuring DReyeVR does not give ~empty VehicleControl inputs in order to run external agents

When running a route scenario using scenario_runner with a specified route and agent, in every tick, the scenario_manager.py gives control input to the ego vehicle.
python scenario_runner.py --route srunner/data/route_1.xml srunner/data/no_scenarios.json --agent srunner/autoagents/npc_agent.py
In _tick_scenario of  scenario_manager.py:
            if self._agent is not None:
                print(f"Ego action for {self.ego_vehicles[0]} (1 of {len(self.ego_vehicles)}): {ego_action}")
                self.ego_vehicles[0].apply_control(ego_action)

However, the current implementation in DReyeVRPawn.cpp retrieves the Logitech wheel data, and gives an empty VehicleControl object if no input from the wheel, or Logitech wheel is disconnected. The problem with this issue is that if no input is given, the implementation flushes empty vehicle controls:
In AEgoVehicle::TickVehicleInputs() of EgoInputs.cpp:
    FVehicleControl LastAppliedControl = GetVehicleControl();
    int bIncludeLast = static_cast<int>(GetAutopilotStatus());
    FVehicleControl ManualInputs;
    // only include LastAppliedControl when autopilot is running (bc it would have flushed earlier this tick)
    ManualInputs.Steer = VehicleInputs.Steering + bIncludeLast * LastAppliedControl.Steer;
    ManualInputs.Brake = VehicleInputs.Brake + bIncludeLast * LastAppliedControl.Brake;
    ManualInputs.Throttle = VehicleInputs.Throttle + bIncludeLast * LastAppliedControl.Throttle;
    ManualInputs.bReverse = bReverse;
    this->ApplyVehicleControl(ManualInputs, EVehicleInputPriority::User);
    // send these inputs to the Carla (parent) vehicle
    FlushVehicleControl();
    VehicleInputs = DReyeVR::UserInputs(); // clear inputs for this frame

Since this function is called in every tick, any other input given by a client is not considered, and thus, validation is required to check if the VehicleControl object does not have zero parameter. If so, VehicleControl  must not be applied.
    // apply inputs to this vehicle only when either one of the parameter is non-zero or autopilot is on
    if ((!FMath::IsNearlyEqual(ManualInputs.Steer, 0.f, 0.02f) ||
        !FMath::IsNearlyEqual(ManualInputs.Brake, 0.f, 0.02f) ||
        !FMath::IsNearlyEqual(ManualInputs.Throttle, 0.f, 0.02f)) ||
        GetAutopilotStatus())
    {
        this->ApplyVehicleControl(ManualInputs, EVehicleInputPriority::User);
        // send these inputs to the Carla (parent) vehicle
        FlushVehicleControl();
    }

Note: FMath::IsNearlyEqual is used because even when input from Logitech steering wheel by the user is not given, it still sends very close to zero values.
Note: Initial issue I made at CARLA/scenario_sunner.
I am interested in hearing what would be the drawbacks of my approach.

Sounds reasonable to me. This is an approach similar to what we have in DReyeVRPawn.cpp which works well enough.


Implement header component

This Pull Request solves #53

This Pull Request solves #53

@kasya FYI -- https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword


build(examples,templates): refactor build scripts

fixes https://github.com/latticexyz/mud/issues/997

not sure what's happening with playwright deps, will look into it later

(merging this because I need it to fix CI issues in other PRs)

(merging this because I need it to fix CI issues in other PRs)

tbf I'm not sure this fixes everything, an incorrect binary cache could be the new source of rare flakiness. Anyways, merging it and waiting for it to trigger is easiest


feat(tutorial): complete step 4

Closes #
{{short description}}
Changelog
New

{{new thing}}

Changed

{{change thing}}

Removed

{{removed thing}}

@Mergifyio refresh

@Mergifyio

@Mergifyio refresh


Token PIN dialog does not work on Linux and Mac OSX

I have token protected by a PIN.
For use private key (signing) I call login without a password.
_session.Login(CKU.CKU_USER, (byte[])null);
On Windows token correctly show dialog for entering a PIN.
On Linux (CentOS) token not show the dialog and return error „Invalid PIN“. When I use PIN direct in Login method, then it works properly.
On Mac OSX token show dialog, but I can not type PIN to TextBox because any inputs go to my console window that calls Login method. When I use right mouse button on PIN TextBox and use Paste for entering PIN, then it is work properly, but the dialog not closed after use OK button a created signature.
I use SafeNet Gemalto smart card with interop library eTPKCS11.

Any GUI shown when you call _session.Login(CKU.CKU_USER, (byte[])null); is implemented in unmanaged PKCS#11 library so you need to contanct SafeNet/Gemalto support regarding this issue.


IME padding not getting applied in bottom sheet

Describe the bug
IME padding is not getting applied in the bottomsheet. The bottomsheet is always in HalfExpanded state. Have used accompanist navigation material for bottom sheet navigation.
You can check this repo
Expected behavior
Expecting the bottomsheet to expand to apply IME padding.
Screenshots

Environment:

Android OS version: 11
Device: Emulator + OnePlus
Accompanist version: 0.20.0

@jossiwolf Is this the expected behaviour? Not the best experience from an end user perspective. Eagerly waiting for your inputs. Thanks!

@rubenquadros12 Thanks for the report - please excuse the delay in reply; Droidcon and a cold had me beat😄 This seems to be the same issue as #813, correct?

Hi @jossiwolf, thanks for the reply. I hope you are doing good now. Yes, it looks similar but not sure if it is same. Please take a look at the recording.
https://user-images.githubusercontent.com/88183788/140702768-a1f5fde9-4cd6-4ede-abb1-ae448e506dca.mp4

I have the same trouble. A long list of items, input field for text at bottom with ime padding, without bar, when soft keyboard appears the field is not scrolling to view.  AdjustResize option in manifest doesn't help.

Hey there. Just sharing. I found a workaround that fits my needs using the accompanist/insets library. I provided a modifier with navigationBarsWithImePadding. I can show an example of how it looks in my app

.

@jossiwolf any update on this?

My workaround here:
val stateProperty = BottomSheetNavigator::class
        .members
        .firstOrNull { it.name == "sheetState" }
            as? KProperty1<BottomSheetNavigator, *>
        ?: return
    ModalBottomSheet(
        sheetState = stateProperty.get(bottomSheetNavigator) as ModalBottomSheetState,
        sheetContent = {
            bottomSheetNavigator.sheetContent(this)
        }
    ) {
        NavHost(
            navController = navController,
            startDestination = "home"
        ) {
            // routes
        }
    }

@ExperimentalMaterialApi
@Composable
fun ModalBottomSheet(
    sheetState: ModalBottomSheetState = rememberModalBottomSheetState(Hidden),
    sheetContent: @Composable() (ColumnScope.() -> Unit),
    content: @Composable () -> Unit
) {
    ModalBottomSheetLayout(
        sheetState = sheetState,
        sheetContent = {
            Column(
                modifier = Modifier
                    .navigationBarsWithImePadding() // HERE WE APPLY INSETS
            ) {
                sheetContent()
            }
        }
    ) {
        content()
    }
}

@jossiwolf Any idea when this will be done? Its been quite a while now 😅

@jossiwolf should this be reopened?

Do you know if there is any progress or how to fix this problem? I have a kind of problem with BottomSheetScaffold.

Does anybody know if there is any progress or how to fix this problem? I have a problem with BottomSheetScaffold in this context.

Has anyone found a fix for this issue? I am having the same problem as well

@daniel-iroka Use M3-based bottomsheets in navigation compose - the integration part is here: https://github.com/hrach/navigation-compose-ext


Improved Integration with Google Colab

Two changed were made for improving the integration of these notebooks with Google Colab:

a zip file of the data for Chapter 5 was added to the Chapter 5 subfolder. This will allow for uploading and unzipping of the data for this chapter to be done in one go (since runtimes are reset after periods of inactivity, so the CSV files cannot actually be stored in the environment of a Google Colab notebook indefinitely. This fixes that).

The HTML file for Chapter 6 is now working. The Dropbox link to the Javascript file is no longer valid. This was replaced with a rawgit URL that allows the Javascript file to be served from the Github repository itself.

@CamDavidsonPilon The biggest improvement by far is the change to the HTML file. The Dropbox link was no longer active and needed to be changed.

Nice improvements, lgtm!


Virtual Desktop Switcher that lives in the Taskbar Notification area

Description of the new feature / enhancement
Simple Icons that represent the Virtual Desktop environments that are currently open. These can live in the Taskbar Notification area where the end user can set them to be static to always display without hiding. When one of the icons is clicked of the virtual desktop environment, the desktop would go to that virtual desktop environment.
Scenario when this would be used?
This would be helpful in an environment where many virtual desktops are being used. Clicking an icon with a mouse doesn't disrupt the workflow as using multiple key combinations to scroll to the virtual desktop you need to work in, and is quicker than clicking on the default virtual desktop Icon in Windows to then select the virtual desktop you need to work in.
Another scenario where this will be helpful would be when you are working in a virtual Windows machine from Microsoft Hyper-V hypervisor on your local PC and you have Virtual Desktops in Windows in the virtual machine. Using Key combinations from the host PC to change virtual desktops does not affect the VM, but the Host. Installing Power Toys in the Virtual machine and clicking on the icon to represent the virtual desktop you need to access would be a solution better than clicking the default virtual desktop icon in Windows.
Supporting information
A similar program that exists is Virtual Desktop Switcher: https://github.com/hangacs/VirtualDesktopSwitcher
This program accomplishes this but only uses Arrow Keys to scroll one way or the other. This works, but if you have many Virtual Deskops then this still leaves you scrolling through them as opposed to just clicking on the icon that represents the virtual desktop you want to go to.
Attached is a screenshot showing the icons of Virtual Desktop Switcher.

/dup https://github.com/microsoft/PowerToys/issues/3737


Loop at FafServerAccessorImpl.java:431: seems to be a noop

There's a piece of code at FafServerAccessorImpl that goes like this:
for (Class<?> type : ClassUtils.getAllInterfacesForClassAsSet(messageClass)) {
    messageListeners.getOrDefault(messageClass, Collections.emptyList())
    .forEach(consumer -> consumer.accept(serverMessage));
}

The preceding loop sets messageClass to Object, so it seems to be a no-op.

No longer an issue


Import IID file

I tried to import an IID file into an existing SCD file via the Import IED function. After selecting the IID file, nothing happened, so I am not sure if the import actually worked. Try to import the IID file into the SCD file in the zip file below.
Import IID file.zip

When I use the Import IEDs function, then I get at least the schema valid confirmation.

Import IED won't overwrite an existing IED
On Sun, 17 Mar 2024, 19:40 Maik Ufferhardt, @.***>
wrote:

When I use the Import IEDs function, then I get at least the schema valid
confirmation.
—
Reply to this email directly, view it on GitHub
https://github.com/transpower-nz/open-scd/issues/14#issuecomment-2002332238,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFEXX27U5SKTFM7RCD4BBLYYU3ELAVCNFSM6AAAAABEZ6QMOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBSGMZTEMRTHA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Import IED won't overwrite an existing IED

Hm, I do not follow. What is the purpose of the Import IED function? Simply importing configured CID files? The import filter allows IID files. I suppose this is one of the documentation tasks.

It is to import a non-existing IED into your project.

Thanks.


feat(post processor): add SentenceTransformerRerank

Description
Fixes https://github.com/jerryjliu/llama_index/issues/6860
Notebook: https://github.com/jerryjliu/llama_index/blob/464f180ecc224d102f50cbabfb89e2b857f6f6e8/docs/examples/node_postprocessor/SentenceTransformerRerank.ipynb
Type of Change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

How Has This Been Tested?

[x] Added new notebook (that tests end-to-end)

Suggested Checklist:

[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] New and existing unit tests pass locally with my changes

Updated the notebook to check difference in time. It's astounding! 4s v.s. 28s!


Change return type of AddIfNotPresent

Resolved / Related Issues
EnumerableExtensions.AddIfNotPresent returns a Boolean. This result is never used.
This makes sense, because the purpose of this function is to avoid testing.
Details of Changes
This pr change the return type by the input (list or dictionary).
This will allow this function to be placed in a modification chain, like LINQ
Validation
How did you test these changes?

[ ] Built and ran the app
[ ] Tested the changes for accessibility

I haven't thought of that. Really nice! Are there any more places where this could ne used?

Je ne sais pas, mais probablement.

While at it, could you update other places too?

It's done. I only found one interesting case in the Extension folder (AddSorted).


Error handling on client for user updates

The error handling for failing user updates for the client is now working. The server answers with a bad request and the client shows the error message.

 Finalize error handling (update user)


Add $ORIGIN to CMAKE_INSTALL_RPATH only on Linux.

Supposedly there exists similar mechanisms on other platforms (@rpath on MacOS), however given that this will only affect a small amount of people (i.e, Linux maintainers building RPMs), there's no point in fixing what isn't broken. Similarly, I didn't change the other files because googleapis was the only library check-rpaths was complaining about.

This change is

instead of setting both directories all the time.

I thought we needed to set both? IIRC there was an issue where some of the libraries (particularly, the ones where we're setting both) didn't link properly, unless that's been resolved already.
Another hitch with CMAKE_INSTALL_LIBDIR is that on Redhat in particular, it appears to be an absolute path (see this bug, their logic being it's unspecified if it's relative or absolute. This isn't an issue in the contexts we already use it, but it may result in a surprising future bug.

instead of setting both directories all the time.

I thought we needed to set both?

I think we cheat. On some platforms you are supposed to install in lib and thefefore need ../lib, on other platforms you are supposed to install in lib64, and therefore need ../lib64.  But some libraries always install themselves in ../lib, using both makes those libraries when ../lib64` would be the "correct" directory.
Oh, I remember now, I was updating libcurl and it no longer needs ALWAYS_LIB, but there are other libraries that have the ALWAYS_LIB. Never mind...

IIRC there was an issue where some of the libraries (particularly, the ones where we're setting both) didn't link properly, unless that's been resolved already.
Another hitch with CMAKE_INSTALL_LIBDIR is that on Redhat in particular, it appears to be an absolute path (see this bug, their logic being it's unspecified if it's relative or absolute. This isn't an issue in the contexts we already use it, but it may result in a surprising future bug.

Ugh.


[Masthead] Hybrid Cloud version learning and integration

Placeholder issue for a large project. This would include making the masthead more systematic and pieces more reusable. Current system breakers include:

custom logo
cloud masthead
dropdown / mega menu
buttons (contact us, login, profile, search)
locale switcher

More information to come.

Still waiting for the Cloud designs to settle and collect testing data.  Closing


Add Discard Builtin Function for GL and Metal

Added a built-in function named discard() to call discard; in GLSL and discard_fragment(); in MSL.
Tested on:

[x] Windows 11
[ ] macOS
[ ] Linux

#1968

Any updates?

I'll spend time on this in coming days. Just busy with university and work!
😊
On Tue, 22 Feb 2022, 4:37 pm Hajime Hoshi, @.***> wrote:

Any updates?
—
Reply to this email directly, view it on GitHub
https://github.com/hajimehoshi/ebiten/pull/1994#issuecomment-1047442698,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSK6426QZTTTYQQMADE6N3U4MOJJANCNFSM5O2MH7KA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Any progress?


Cleanup final TODO(version)

Update MarathonApp to return None in the scenario that parsing package release version fails
Remove several obsolete tests that are now covered by conversions and/or new tests

Closes #378

LGTM


Make enabled interceptors configurable

As per current setup, StrictPhp is probably too strict for most libraries.
We may want to allow enabling/disabling of the various interceptors in StrictPhp.

]);

Closed as done in #48


record build step docker image id

Clear and concise description of the problem
For build steps, I might be fine with using a ":latest" image, but for diagnostics I want to be able to see exactly which image was used for a build.
Suggested solution
Just like status, exit code and machine id, also record the docker image id used in a build
Alternative
No response
Additional context
No response
Validations

[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

if it's for diagnosis would a console log on the agent also help?

@6543 I might join in here, while the agent logs would be ok if "you" are running the agent, but becomes difficult, when the CI is shared (and "you" don't have access to the agent). I would suggest doing something along the lines of either at start or end log the sha256 (or full name including the sha256) of the image used. This would allow checking which version of "latest" (or any mutable tag) was used by this specific execution of the step.
This (mutable image tags) becomes more problematic once the images used are either cached by the system (e.g. globally forced by the Kubernetes instance or docker when unable to call upstream) or are obtained via a pull through registry (a feature found in harbor, artifactory and potentially others, which may either cache for a scheduled amount of time or requests until checking back with the upstream image, it's basically just a "nicer", more configurable cache).
To clarify what I mean by "mutable image tags", it's all tags that you can set (default anything but the hashes, but this can be restricted in some registries).

would a console log on the agent also help?

the agent logs would be ok if "you" are running the agent, but becomes difficult, when the CI is shared (and "you" don't have access to the agent).

That's indeed my scenario - so this would work if the logs from the agent relevant to a particular build are available from the UI somehow.

I would suggest doing something along the lines of either at start or end log the sha256 (or full name including the sha256) of the image used.

That sounds good as well

ok nice idea ... to print the image info in first line
-> will be a pipeline-backend specific change ...


Add support for dynamic rule detection for pipeline config transformation

Description
Dynamically detects rules present in rules folder and applies a corresponding transformation based on plugin name.
Issues Resolved
Resolves #4600
Check List

[x] New functionality includes testing.
[ ] New functionality has a documentation issue. Please link to it in this PR.

[ ] New functionality has javadoc added

[x] Commits are signed with a real name per the DCO

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

@srikanthjg Please address David's other comments. I will approve again and we can ask Hai to review too.

@srikanthjg I am not sure if we are going to have a "real" plugin for each of the plugins in the pre-transformation config file. So, while moving documentdb related rules and templates to document db directory is a good suggestion by David, it might not be possible in all cases. For now, I suggest we just commit what you implemented in this PR and if needed, we can take the approach suggested by David in a future PR


(URGENT) PDF: concept mentions cross-references showing extra space between parentheses

In the source presentation XML there line-breaks around 3.3.1:
<definition>
set of concepts (<xref target="term-concept">
  3.3.1
</xref>) structured according
to the concept relations among its concepts
</definition>

In the generated XSL-FO also:
<fo:block text-align="justify" margin-bottom="8pt" id="_1bc8afcb-d7ac-5e5c-e192-c5d7d6f0c957">set of <fo:inline font-style="italic">concepts</fo:inline> (<fo:basic-link color="blue" text-decoration="underline" fox:alt-text="term-concept" internal-destination="term-concept">
  3.3.1
</fo:basic-link>) structured according
to the concept relations among its concepts</fo:block>

FOP reduces line break to space (https://stackoverflow.com/a/53523028).
From http://www.herongyang.com/XSL-FO/Block-Control-White-Space-Characters.html:
By default, white space characters are collapsed and linefeed characters are converted to space.

If we set linefeed-treatment="ignore", then the space between according and to is disappear and spaces before   3.3.1 remain:

<xsl:strip-space elements="iso:xref"/> solves the issue:

Actually this is also a Word problem:

What happened?

I've found the old presentation XML (was generated for another issue, Oct 23) - there aren't line breaks inside xref:
<definition>
set of concepts (<xref target="term-concept">3.1.1</xref>) structured according
to the concept relations among its concepts
</definition>

What happened is that I tried to pretty print the XML output more consistently, and that's resulted in unwanted spaces.

The template for generating ToCs in Word needs to wrap styles containing space with "....", individually.
Moreover, the first style listed must be a human readable localised style if present, rather than a CSS style, whether generic or target style. So:
"Table title","Tabletitle","Annex Table Title","AnnexTableTitle","TableTitle","tabletitle" works
"TableTitle","tabletitle","Table title","Tabletitle","Annex Table Title","AnnexTableTitle" fails
(TableTitle is the generic isodoc style, Table title is the DIS human readable style name)

No, I thought that it was that functionality https://github.com/metanorma/metanorma-iso/issues/513, but it isn't it, that does not put tags each to its own line.

Right: I've already fixed this in https://github.com/metanorma/metanorma-ieee/issues/170. @Intelligent2013, pull latest isodoc to confirm.

Right: I've already fixed this in metanorma/metanorma-ieee#170. @Intelligent2013, pull latest isodoc to confirm.

@opoudjis no changes, unfortunately.
Resulted presentation xml:
<definition>
set of concepts (<xref target="term-concept">
  3.3.1
</xref>) structured according
to the concept relations among its concepts
</definition>

Gemfile:
source "https://rubygems.org"

gem "metanorma-cli"
gem "metanorma-iso", git: "https://github.com/metanorma/metanorma-iso"
gem "metanorma-utils", git: "https://github.com/metanorma/metanorma-utils"
gem "metanorma-standoc", git: "https://github.com/metanorma/metanorma-standoc"
gem "isodoc", git: "https://github.com/metanorma/isodoc"
gem "mn-requirements", git: "https://github.com/metanorma/mn-requirements", branch: "main"
gem "sassc"

From Gemfile.lock:
GIT
  remote: https://github.com/metanorma/isodoc
  revision: 87b489deb6c0f55f4dfc4060b6644b8bedba91c3
  specs:
    isodoc (2.3.5)
...

The document source: https://github.com/metanorma/iso-19135/tree/main/sources/iso-19135-2021

OK, I'll deal with this on Tuesday....

Fix in https://github.com/metanorma/metanorma-ieee/issues/170 did not work. Will need to revert.

The issue is continued in https://github.com/metanorma/metanorma-ieee/issues/170


[MRG] Allow BayesSearchCV to work with sklearn 0.21

Closes #762
This allows CI to pass on master again and allows other PRs to carry on with the review process (e.g. this one #776).
This is in my opinion a temporary fix to the problem. sklearn has deprecated fit_params in the class constructor in favor of passing keyword parameters to the fit methods. scikit-optimize should probably follow suit.  However that will require a chain of deprecation action.
If the maintainer agrees, I think there should be a separate issue for deprecating fit_params in BayesSearchCV.__init__ and exposing fit_params in BayesSearchCV.fit.

sklearn has deprecated fit_params in the class constructor in favor of passing keyword parameters to the fit methods. scikit-optimize should probably follow suit. However that will require a chain of deprecation action.
If the maintainer agrees, I think there should be a separate issue for deprecating fit_params in BayesSearchCV.init and exposing fit_params in BayesSearchCV.fit.

Ah I see #772 is already on it :)

Is this ready to merge or #772 is the active PR for this issue?

Merged on advice of @holgern


Implement Github templates

The use of Github templates will greatly improve readability and consistency across any area we can implement them.
This first iteration of templates will include pull requests and issue creation focused on user stories and acceptance criteria.

:+1:

We have implemented a basic set of templates and have found them very helpful while using them. Although we may add/modify templates in the future, we are satisfied with our current templates for now and are closing this issue.


Sync Player Counts Across Multiple Bungee Instances?

Hello, I was wondering if it would be possible to sync player counts across multiple bungeecord instances with TCP Shield.

Ping information is untouched when relayed back to the user. So if you use a plugin to do this on the proxies, and it properly sets the player information in the Ping packet, then it should work.

Ping information is untouched when relayed back to the user. So if you use a plugin to do this on the proxies, and it properly sets the player information in the Ping packet, then it should work.

Do you know any plugin that does this?

Ping information is untouched when relayed back to the user. So if you use a plugin to do this on the proxies, and it properly sets the player information in the Ping packet, then it should work.

Do you know any plugin that does this?

RedisBungee @KolakZ

It's not updated.

But it does work as how it's supposed to? It doesn't require updates 🤷♀

It's not updated.

There is a fork of it, that is being still updated
Also Multi Bungee Setup is a very hard topic to research about
https://github.com/RedisMC/RedisBungee

This doesn't seem to be a TCPShield related issue, therefore I'll close it.


validator option if is not documented anywhere

Even though it is possible to add a condition to validators using the if option, it is not documented anywhere. For example:
var Validations = buildValidations({
  title: validator('presence', {
    presence: true,
    "if": "enabled",
    attributeDescription: 'Title',
    message: 'must be provided when enabled'
});

This validator does actually use the enabled property as a condition to enable or disable this validation, and the validations.messages property includes the error message only if enabled is true, but the if option is not documented anywhere in the ember-cp-validations documentation.

Validators do not currently support an if option. The best way to achieve this use-case is to create a custom validator. Within that, you have full access to the model, along with the ability to inject any service you might need for your validations.

Whoa... I have no idea why I thought that was working, then. Thanks for the clarification!
Adding support for conditional validation based on another property would be pretty awesome.

I tried to implement a conditional validator and run in some problems with observers.
Assume we have two properties name and forceName. name must not be present if forceName is true. Seems to be easy using a validator function like this one:
var Validations = buildValidations({
  name: [
    validator(function(value, options, model, attribute) {
      return !Ember.isEmpty(value) || !model.get('forceName');
    })
  ]
});

But name is not revalidated when forceName changes. I ended up with an additional dependent validator just to have name revalidated if forceName changes. Therefore forceName also needs a validator which always returns true. Ended up with this code:
var Validations = buildValidations({
  forceName: validator(function() { return true; }),

  name: [
    validator(function(value, options, model, attribute) {
      return !Ember.isEmpty(value) || !model.get('forceName');
    }),
    validator('dependent', { on: ['forceName'] })
  ]
});

Doesn't look nice to me and forceName can not be validated. What is the correct way to write a conditional validator?

What about something like this:
var Validations = buildValidations({
  name: validator('presence', {
    presence() {
      return !this.get('model.forceName ')
    },
    dependentKeys: ['forceName']
  })
});

Oh I missed the dependentKeys option. It works like a charm. Thanks for the hint!
var Validations = buildValidations({
  name: validator(function(value, options, model, attribute) {
    return !Ember.isEmpty(value) || !model.get('forceName');
  }, {
    dependentKeys: ['forceName']
  })
});

I didn't really get the idea of Options as Functions and what for they should be used. Is there some more documentation or use cases anywhere?

Any option can act as a function which get executed right before validate gets called. The function also has the same context as the validator meaning you have access to all its attributes (like the model being evaluated). In your case an attribute must be present if another attribute on the model is true/false. That means that you can set presence at runtime depending on what the value of forceName is. See my example above. Hope that helps. If you're still confused feel free to ping me on slack or gitter :smile_cat:
Im gonna go ahead an close this issue

I'm not sure this is quite working correctly. I have a similar use case. Here's my validation mixin:
import { validator, buildValidations } from 'ember-cp-validations';

export default buildValidations({
  value: validator('presence', {
    presence() {
      let model = this.get('model');

      let {
        required,
        includedInActivityResponse
      } = model.getProperties('required', 'included);

      return required && included;
    },

    dependentKeys: ['required', 'included']
  })
});

The first time this validation fires for an optional attribute it works for a blank value. The second time it fires when a value has been entered, the message is "This field must be blank". Both times the validation fires the above presence() method returns false.
Perhaps I'm misunderstanding the conversation here, but presence() returning false is effectively saying "this field is optional". Am I missing something?

From what I can see, you have the following
let {
        required,
        includedInActivityResponse
      } = model.getProperties('required', 'included')

but are returning return required && included;. Your variable names dont match.

That's just my fat fingers changing variable names a bit for the purpose of this example :)

You misunderstood the api. I got also confused first time. If presence returns false it means: Must not be presence. To make the field optional presence must be null.

You misunderstood the api. I got also confused first time. If presence returns false it means: Must not be present. To make the field optional presence must be null.

:+1: Thats right.
@jherdman I think what you are looking for is disabled
import { validator, buildValidations } from 'ember-cp-validations';

export default buildValidations({
  value: validator('presence', {
    presence: true,
    disabled() {
      let model = this.get('model');

      let {
        required,
        included
      } = model.getProperties('required', 'included');

      return !(required && included);
    },

    dependentKeys: ['required', 'included']
  })
});

That worked like a charm! Many thanks, folks!
For any future users out there that feel a little lost, you probably made the same mistake I did and didn't read the Validators documentation.

Hi All, I am new to ember and ember-cp-validations. I have two fields in a model. One a list, another is another model. At a time, either only one should be present. How to define the presence attribute. I am getting confused.


[stable/datadog] add datadog.env in all containers

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
add datadog.env env var in every daemonset containers.
Which issue this PR fixes

fixes #21342

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] DCO signed
[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[ ] Title of the PR starts with chart name (e.g. [stable/mychartname])

/lgtm


Add an option to delete the runner pod for every reconciliation loop

For better security, we should support an option to delete the runner pod of a Terraform object when each loop is completed.
The new pod should be re-created when the new loop starts.

With this flag,
spec:
  alwaysCleanupRunner: true

the controller always delete the runner pod after use, so that we can make sure the pod is not left unintentionally.


[Feature Request] EmbedCreator

Hi, I was wondering whether you would be interested in adding the ability to specify the channel where the embed will be posted when sending an embed. For example, if you are in a large server and want to send an announcement, you could run the "[p]embed json #announcement (json code)" in a botcommands channel
This would post the announcement in that channel without having to send the command in that channel.

This was intentionally not added as it messed up while using json due to
the "". I could not find a way to make it work


Client/Server architecture for easier management

I must commend your effort @sgoulas for building a fullstack app using one of the best stacks. One thing that remains is properly separating your directories.
One suggestion is to create a directory called client alongside the server directory you already have. Or you can divide them entirely into different repos so they can have separate deployment.
This way, it would be easier to deploy them individually without fail.

Thank you kindly. You are correct, as I was building the app I realised that it was essentially a mono-repo where the back end and front end live together but have to be deployed separately. This introduces some concerns like dependency management, multiple manifest files, separate CI/CD pipelines and as you pointed out separate deployments.
This was something I did not foresee when choosing to mock the back end in the same repository, so definitely a learning point for me. In the future I might separate the code in two repos or read about mono-repos (I think big tech companies prefer them over multiple smaller repositories so it might be a good case study for me).


Microsoft.AspNetCore.NodeServices.HostingModels.NodeInvocationException : Cannot find module

Hi, I just began experimenting with the NodeServices lib and I'm getting the following error:
My goal here is to create a less transpiler that can be called from other projects.
I'm using a test project as entry point to test the functionality, but I don't know what is wrong (I could guess something related to the paths, but I don't know what is the expected behavior).
dotnet test result:
Microsoft.AspNetCore.NodeServices.HostingModels.NodeInvocationException : Cannot find module 'C:\Users\usr\Source\Repos\Packer\Packer.Test\Fixtures\app\var less = require('less');

module.exports = function (result, input) {
    var options = {};
    less.render(input, options, function (error, output) {
        result.stream = output;
    });
}'
Error: Cannot find module 'C:\Users\usr\Source\Repos\Packer\Packer.Test\Fixtures\app\var less = require('less');

module.exports = function (result, input) {
    var options = {};
    less.render(input, options, function (error, output) {
        result.stream = output;
    });
}'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at C:\Users\usr\AppData\Local\Temp\potjf3xy.4jb:109:34
    at IncomingMessage.<anonymous> (C:\Users\usr\AppData\Local\Temp\potjf3xy.4jb:133:38)
    at IncomingMessage.emit (events.js:182:13)
    at endReadableNT (_stream_readable.js:1081:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Rastreamento de pilha:
   at Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.InvokeExportAsync[T](NodeInvocationInfo invocationInfo, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.InvokeExportAsync[T](CancellationToken cancellationToken, String moduleName, String exportNameOrNull, Object[] args)
   at Microsoft.AspNetCore.NodeServices.NodeServicesImpl.InvokeExportWithPossibleRetryAsync[T](String moduleName, String exportedFunctionName, Object[] args, Boolean allowRetry, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.NodeServices.NodeServicesImpl.InvokeExportWithPossibleRetryAsync[T](String moduleName, String exportedFunctionName, Object[] args, Boolean allowRetry, CancellationToken cancellationToken)
   at Packer.Core.Recipes.LessTranspiler.RunAsyn(String publicRoot, String projectRoot) in C:\Users\usr\Source\Repos\Packer\Packer.Core\Recipes\LessTranspiler.cs:line 22
   at Packer.Test.Recipes.LessTranspilerTest.Should_Transpile_Less_Manifest() in C:\Users\usr\Source\Repos\Packer\Packer.Test\Recipes\LessTranspilerTest.cs:line 21
--- End of stack trace from previous location where exception was thrown ---

I have this minimal repro here: Packer.zip

Thanks for contacting us. We're closing this issue as this doesn't align with our long-term plans in this area. You can read more details about our vision for this area at https://github.com/aspnet/AspNetCore/issues/12890.


[Android]Working with Ktor-Client: Build Simple REST API to Make HTTP Requests With Ktor-Client

Proposed title of article
Working with Ktor-Client: Build Simple REST API to Make HTTP Requests With Ktor-Client
Proposed article introduction
Ktor is a server-side framework that helps us build applications in kotlin. It is a modern framework which means it is an asynchronous framework built on top of kotlin coroutines. It is not only a back-end framework with kotlin but also a client, so a network library such as okhttp and Retrofit. We can use it to make network requests HTTP requests to an API to get the response back to an application. This will learn more about Ktor. We will set up Ktor-Client to make HTTP Requests And finally build a simple REST API with Ktor.
Key takeaways

Ktor architecture
Ktor features
Ktor vs Retrofit
Make HTTP Requests With Ktor-Client
Build a REST API with Ktor

Article quality
How is your article unique? Tell us what makes your approach different from similar articles that have published on the same topic?
Is yours more in-depth? Does it cover additional topics? Do you provide handy tips or anecdotal advice?
References
Please list links to any published content/research that you intend to use to support/guide this article.
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

What will you build @manmusa100?

@Kayere, a todo or a note app will get a got start to make everything beginner friendly.

Good topic @manmusa100 - Approved.


[Feature] Improve fine system

Add to try to take money from the bank in case of lack of money in the wallet.

And if possible that the money of the fine is recovered by the policeman ? thx in advance :)

Hi Imagic ,
I tried your last update  ( Always big thank's for your work ;) )but i saw a little problem..
All work nice ..But to make a fine ,if  the citizen haven't cash , the fines system doesn't work.. like the post 1 of SnaiCrys  , is it possible that you can modify your code to take the money in the bank account?

It does work, but you can't fine people if they don't have the correct money amount right now.

Now it takes in bank too. For now, the money will be lost for everyone until I find a good usage.


Docker Disk Space Error

OS: Mac OS X High Sierra 10.13.4
Docker Version Version 18.03.0-ce-mac60 (23751)
While adding Jenkins
https://hub.docker.com/r/cloudbees/jenkins-enterprise/
Came across this error
write /var/lib/docker/tmp/GetImageBlob245505453: no space left on device

By default we create a small disk, to make sure that it will fit on most developer laptop. However, you can actually create your own disk by following these instructions:
https://github.com/docker/kitematic/wiki/Common-Issues-and-Fixes#running-out-of-space
You can also cleanup existing disk space, via docker system prune

Hi Ben
Appreciate your help and guidance, I am using native hypervisor rather than VB and could not find hoe to raise the disk size, did from Kitematic front end and it raised Docker.raw size at "" /Users/sajjadali/Library/Containers/com.docker.docker/Data/vms/0 "" copying Diagnostic ID
D1B1A7FC-1A86-4BED-AAFD-348C11B8B710
Thanks in advance for your help
Best Regards

Hello @FrenchBen when I call docker-machine -D create -d virtualbox --virtualbox-disk-size "100000" default
I got the blow & still receive the
echo: write error: No space left on device
Docker Machine Version:  0.12.2, build 9371605
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver virtualbox
Plugin server listening at address <IP_ADDRESS>:61676
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver virtualbox
Plugin server listening at address <IP_ADDRESS>:61680
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(default) Calling .GetMachineName
(default) Calling .DriverName
Host already exists: "default"


v4 release ?

Hi, I see that v4 https://github.com/facebook/immutable-js/milestone/1 is completed.
We are already using the new isImmutable, when will v4 be officialy released ?

Indeed, maybe @leebyron could help clarify what the strategy with immutable.js is.
Immutable is a great library and I think we can be thankful for it. Moving forward, however, it would be nice to get some idea on the vision. This repo really feels abandoned and not maintained any longer.
The same feeling was already present in the past:
https://github.com/facebook/immutable-js/issues/1215
https://github.com/facebook/immutable-js/issues/1295
But then, all of a sudden, there was some activity for a couple of weeks or so, before it fell asleep again.
Could we have some clarity, if there are plans to move this repo forward. That would be great. Thank you.

Great question! Though I should point out that it’s a duplicate #1494. Really hope we get some movement on this soon.

Merging into #1494


build(make): honour CXXFLAGS, CPPFLAGS and LDFLAGS

It is currently impossible to pass custom flags to the makefiles using environment variables, because they ignore the predefined macros CXXFLAGS, CPPFLAGS and LDFLAGS.
Passing LDFLAGS is defined in the Posix standard (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html#tag_20_76_13_09), while the CXXFLAGS and CPPFLAGS variables are predefined in GNU Make (https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html#Implicit-Variables).

Thank you for the patch.


Added support for individual item minimum size

You can now add minWidth and minHeight to each individual item configuration and the dragging will behave as requested.

Btw, you can ignore the release commit, it was merged by mistake :)

Hi @Whitebeard86, thank you for your pull request.
I was wondering: I have started running a tech startup (deepstream.io/deepstreamhub) a few month ago and it is a crazy amount of work. As a result, I can't help but neglect GoldenLayout and pull requests are piling up.
It's a good and widely used project and I wouldn't want to see it die. Would you be interested in becoming a maintainer (be elevated to "admin", curate the project etc.)? Happy to promote/ announce your role in any way you wish.

Hello,
That would be fine by me, we are using this project massively in our own stack so giving it some maintenance is already my task in the forked version, I accept :)
Btw, you take a look at our Golden Layout usage here:
https://scontent-frt3-1.xx.fbcdn.net/t31.0-8/14206091_554782471387038_7109704314382706765_o.jpg
(we are building the Scarlett Game Studio)

I'm happy to merge this in too (I just spent a bunch of time automating tests, see the travis-ci link in the README for a continuous build); if you do become an admin I'd appreciate feedback on the setup (I'm on Linux so might be inadvertently breaking Windows builds etc)

Merged: will shortly build and release 1.5.4 and would appreciate you testing; please reopen if you have further issues!


ECS provider don't work with IRSA on EKS Fargate - listing tasks: NoCredentialProviders

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What version of the Traefik's Helm Chart are you using?
traefik-26.1.0
What version of Traefik are you using?
v2.11.0
What did you do?
We're trying to integrate EKS with ECS, directing traffic from traefik running as a pod in EKS to an ECS service.
We've set up IRSA, and we get this to work with a dummy pod, like explained here, with the same service account we use for traefik.
I'm not sure yet if this is a configuration error or if traefik don't support such a scenario. Any ideas for how to troubleshoot this? It works when using node groups.
What did you see instead?
We're seeing this in the logs of the traefik pod:

[traefik-6996b4c446-9dbql] {"level":"error","msg":"Provider connection error failed to get ECS configuration: listing tasks: NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors, retrying in 250.011391ms","providerName":"ecs","time":"2024-06-13T12:42:11Z"}

What is your environment & configuration?
EKS, k8s v1.29
Additional Information
No response

Thanks for reaching out! To keep this repository focused on the Chart, we ask that all questions be asked in the community forum. It is pretty active, so you might find that your question has already been answered there.  If not, you can ask and get help from other community members pretty quickly.


Issue #3: Restructure reposiory to add boiler plates in main directory

Restructure Code to add files in main directory.
Closes #3

@OmGuptaIND Review the changes.


Only 0.2.1 branch available? What is the status of this repo?

Was expecting to get 0.3.0 as mentioned in the readme, but seems loads of stuff is broken or not updated some time (like the precompiled packages). Looks like the travis build is failing for 4 months as well (the 0.2.1 branch seems to work though).
So, what is the status of this repo? Is it dead?

Version 0.2.1 is still what I use in production, but a quite a lot happened in the hooks branch (essentially a full rewrite).
Rust's async I/O is still a moving target which forced me to rewrite everything twice already, so I'm now waiting for the dust to settle before going any further.

Gotcha. No worries. Just wondering as the readme has a git clone command mentioning 0.3.0 and the links to the pre-build packages do not work.


some branched alkanes

Can I ask to annotate to "ChEBI standard" the following entries:
Pentane, 2,3-dimethyl- (CHEBI:151115)
Links:
https://en.wikipedia.org/wiki/2,3-Dimethylpentane
https://webbook.nist.gov/cgi/cbook.cgi?ID=565-59-3
https://chem.nlm.nih.gov/chemidplus/rn/startswith/565-59-3
https://pubchem.ncbi.nlm.nih.gov/compound/11260
This is a molecule of unspecified stereochemistry. There are two isomers so two more entries have to be created:
(3S)-2,3-dimethylpentane
Synonym: (S)-2,3-dimethylpentane
https://webbook.nist.gov/cgi/cbook.cgi?ID=7485-45-2
https://pubchem.ncbi.nlm.nih.gov/compound/22810194
(3R)-2,3-dimethylpentane
Synonym: (R)-2,3-dimethylpentane
https://webbook.nist.gov/cgi/cbook.cgi?ID=54665-46-2
https://pubchem.ncbi.nlm.nih.gov/compound/638047
The diagram of (CHEBI:151115) corresponds to the (S) isomer, so should be corrected.
//
3-Ethylpentane (CHEBI:165737)
Synonyms:
triethylmethane; ethylpentane
Spanish: 3-etilpentano
French: 3-éthylpentane
German: 3-Ethylpentan
Links:
https://en.wikipedia.org/wiki/3-Ethylpentane
https://webbook.nist.gov/cgi/cbook.cgi?ID=617-78-7
Literature references:
https://doi.org/10.1098/rspa.1971.0180
https://doi.org/10.1038/189224a0
https://doi.org/10.1371/journal.pntd.0007719
https://doi.org/10.1080/19476337.2018.1561519
https://doi.org/10.1006/jcht.1998.0414
https://doi.org/10.1002/chem.202001259
https://doi.org/10.1093/chemse/bjr094
https://doi.org/10.1021/ja01587a027
//
2,3,6,7-Tetramethyloctane (CHEBI:151050)
Literature references:
https://doi.org/10.3390/foods9060785
https://doi.org/10.1093/chromsci/bms012
http://doi.org/10.3390/en11030490
http://doi.org/10.1128/mBio.00235-15
//
2,3,4-Trimethyl-pentane (CHEBI:165735)
https://en.wikipedia.org/wiki/2,3,4-Trimethylpentane
Literature references:
https://doi.org/10.1007/bf02624137
https://doi.org/10.1016/0378-4274(87)90132-9
https://doi.org/10.1021/es049597z
https://doi.org/10.1023/a:1026594717754
//
Decane, 2,4,6-trimethyl- (CHEBI:151078)
Links:
https://webbook.nist.gov/cgi/cbook.cgi?ID=62108-27-4
Literature references:
https://doi.org/10.3390/molecules25071603
https://doi.org/10.1186/s40694-016-0025-7
https://doi.org/10.1096/fj.06-6927com
//
2,6,8-Trimethyldecane (CHEBI:88814)
Links:
https://webbook.nist.gov/cgi/cbook.cgi?ID=62108-26-3
http://www.pherobase.com/database/compound/compounds-detail-2me6me8me-10Hy.php
Literature references:
https://doi.org/10.1039/c4ra01422g
https://doi.org/10.1088/1752-7163/aaba84
https://doi.org/10.5073/JABFQ.2018.091.023
http://doi.org/10.1016/j.biocontrol.2010.08.009
PMID: 14631828 => http://www.besjournal.com/fileSWYXYHJKX/journal/article/swyxyhjkx/2003/3/PDF/bes200303005.pdf
//
3-Methylpentane (CHEBI:88373)
IUPAC name: 3-methylpentane
Links:
https://webbook.nist.gov/cgi/cbook.cgi?ID=96-14-0
https://chem.nlm.nih.gov/chemidplus/rn/startswith/96-14-0
//
2,9-Dimethyldecane (CHEBI:151058)
Links:
https://webbook.nist.gov/cgi/cbook.cgi?ID=1002-17-1
Literature references:
https://doi.org/10.1093/chromsci/bms012
https://doi.org/10.1039/c8gc03745k
https://doi.org/10.3390/medicina55060301
//

All of these entries have now been checked.


Deployment using Classic Application Insight

The deployment is using Classic Application Insights which will be retired on 29.02.2024.
Is there a plan to transsition to using workspace-based application insights?

Hello guys,
Any updates on this one?
The Classic Application Insights will be depreciated in a month + few days.
I'm afraid that this will affect our services since StartStopVM can stop working afterwards.

We rolled out an update in February to move to workspace-based Application Insights. Automatic upgrades should have rolled out for everyone. In case you are encountering an issue, please read the official guidance on the following issue: https://github.com/microsoft/startstopv2-deployments/issues/116#issuecomment-2104845492


question

Hi there man,
First of all, great tool! It makes me want to be more creative just to use it more.
I have one question... Do you know by any chance something alike but with Vampire The Masquerade style?
I am asking you after hours of searching without any luck. Maybe you, being in this project, know of something.
Thanks a lot!!
Best regards and good luck with the 3.0!!
Additional Details
Share Link :
or
Brew code to reproduce : Click to expand
PASTE BREW CODE HERE

I don't think anything like that exists. However, if you know CSS, you can change the style of your documents to be just about whatever you want. People have made templates to change the style to suit the D&D 5e Monster Manual, Dungeon Master's Guide, etc. by swapping out backgrounds and fonts and colors.
That's about as close as you can get for now.