[java] build error (haxe 3.3.0 rc1)

Can't build for java
haxelib run hxjava hxjava_build.txt --haxe-version 3300 --feature-level 1
javac "-sourcepath" "src" "-d" "obj" "-g:none" "@cmd"
src/eskimo/IComponentType.java:9: error: getClass() in IComponentType cannot override getClass() in Object
	java.lang.Class getClass();
	                ^
  overridden method is final
src/eskimo/ComponentType.java:96: error: getClass() in ComponentType cannot override getClass() in Object
	public java.lang.Class getClass()
	                       ^
  overridden method is final
Note: src/haxe/root/Date.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
Compilation error
Native compilation failed

Easy renaming issue. Will fix in the next day, meanwhile if you need something mission critical running, you can rename the getClass() function to getComponentClass()
This is a guess, perhaps the issue is deeper, but doesn't seem to be.


add pywis-pubsub PubSub utility

Addresses #187 and #14

Installing pywis-pubsub onto wis2box proper meets the download requirement which is a core requirement bound to 1.0.  There is also a note in the documentation which informs users that they can install pywis-pubsub beyond wis2box in external environment, including links to pywis-pubsub itself.

The documentation you submitted suggest the user logins to the wis2box-container and run the subscriber from the command-line inside the box, which is not practical as a user would typically want to run this for a long/indefinite period of time.
How about we add a (optional) docker-compose-download.yml in which we add a "wis2box-download"-service, which would just be a python-based Docker container with minimum requirements for running the "pywis-pubsub subscribe"-command ? This would cover the download-requirement to address #187 and #14 and would allow the user to run the download-feature independently.

CI error is unrelated/intermittent.

sorry for committing directly into your branch, I added my proposed changes in the docs and in the Dockerfile.
I added '--download' option in Dockerfile so that the files are downloaded by default when running the container.


No way to natively disable linking to a folder

Most of the time, when the link type is "File on this website", the intention is for content authors to link specifically to files, and no to folders - but either through misunderstanding or mis-clicking, currently content authors can link to folders.
TreeDropdownField allows passing in a 'DisableFunction' to set certain nodes as disabled (i.e. not selectable). I propose setting a function that will disable all folders.
This should of course be configurable (be it globally via .yml config, or per link field through some sort of linkfield configuration) in case linking to folders is intended for some application (and to avoid breaking backwards compatibility).
I am happy to submit a pull request to resolve this - it's what I'm working on right now in an extension for an application I'm working on. Just let me know your preferred configuration out of the above (or other) options.

Feel free to make a PR.  I could be wrong but think it makes sense to disable it by default as I never intended to link to a folder in the first place.  Aka this is a bug.

I agree that it would ideally be disabled by default - the only problem with that is that it's technically a breaking change since (regardless of original intentions) someone may be using the Link model to intentionally link folders. In theory it would be a major version release.
That said I'll submit a PR later today. Unless you indicate otherwise I'll make it configurable globally via .yml, and disabled by default.

I have made a PR (#15) to address this.

PR Merged. Closing this issue.


Build errors when using TFM of 17763

Describe the bug
This is a known issue (we need to update the NuGet package dependencies in the Microsoft.ProjectReunion.WinUI NuGet package). Despite Project Reunion supporting down to build 17763 of Windows 10, if you use the .NET TFM of net5.0-windows10.0.17763 or set the packaging project's <TargetPlatformVersion> to 17763 or lower, the project won't build, receiving build errors like Project XYZ is not compatible with uap10.0.17763.
Workaround
Update your TFM to net5.0-windows10.0.18362 or higher, and in your packaging project, update your <TargetPlatformVersion> to 18362 or higher. This will not prevent you from running on 17763 (MinVersion declares that). This only affects what APIs are available (more APIs will be available by targeting a higher version).

Steps to reproduce the behavior:

Create a 0.5 or 0.8 Preview WinUI 3 desktop app
Change the TFM to net5.0-windows10.0.17763, or change the packaging project's <TargetPlatformVersion> to 17763
Try to build the project

Expected behavior
Building and deploying should succeed, since Project Reunion supports down to 17763.
Version Info
NuGet package version:
Version 0.5.7 and 0.8.0-preview
Root cause
The Microsoft.ProjectReunion.WinUI NuGet package declares a dependency on net5.0-windows10.0.18362 or higher, when this instead should be targeting net5.0-windows10.0.17763. Internal bug number 33525703.

@andrewleader how should this work for libraries (as opposed to apps)? we have a winrt library written (in C++) that we are projecting onto C# / reunion via cswinrt, we would like to make the library available to the most number of apps, but when using 17763 we hit this issue.

Fixed in upcoming 1.0 Preview 2. You'll now be able to use a TFM of 17763 in apps (or libraries) with WinAppSDK 1.0 Preview 2.


Permission

On the HTC U11 this app needs permission. ACCESS_WIFI_STATE.

Can you test if this version work?
test.zip

That works perfectly!
On Jun 27, 2017 12:58 AM, "Matej Drobnič"<EMAIL_ADDRESS>wrote:

Can you test if this version work?
test.zip
https://github.com/matejdro/TaskerTetherControl/files/1104299/test.zip
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/matejdro/TaskerTetherControl/issues/2#issuecomment-311260856,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AcV7GaRxdG0xThQbDOc9w8BaZeoumaYEks5sIJnqgaJpZM4OGBdW
.

Thanks for the report. I have also released this fix to play store now, so everyone will have it.


DukLuv fails to compile using VS2015

I was unable to build dukluv from a fresh checkout using Visual Studio 2015.  After running CMake and opening the resulting solution file, I get the following syntax error when attempting to compile it:
4>c:\src\dukluv\src\duv.h(12): error C2059: syntax error: 'constant'

On this line:
typedef enum { false, true } bool;

I believe VS2013 and later include C99 bool via stdint.h, so that's likely the cause of this.

Can I wrap this in an #ifdef?  I'm not sure how this is supposed to work.
Another idea is just to #include <stdbool.h> if we can assume it exists.

I believe VS2013 and later includes stdbool.h.  I'd recommend:
#if _MSC_VER >= 1800
#include <stdbool.h>
#else
typedef enum { false, true } bool;
#endif

Sounds good.  Did you want to send a PR?

Sure. :)


Portable mode?

Hi,
I just stumbled upon MediaInfo.NET and was wondering if it has a portable mode like mpv.net ("portable_config" folder). The change log for version 5.0 says:

settings directory can either be AppData, Portable or Custom

The file Update.ps1 also mentions the "portable_config" folder. However, after creating the folder the settings are still saved in the AppData folder. Has this not been implemented yet or have I made a mistake? I can't find anything in the source code either.

It's hard-coded to use %APPDATA%.


Feature Request: Default task

One useful thing would be to have a certain task selected when the dialog opens. I can think in 3 some ways to do it:
-remember the last task runned and select it by default
-set the selected task as a configurable option
-be able to order the tasks in the task list and select the first as default

Interesting. I prefer the second option. It is more transparent and understandable for the user. If I find time, I will do it.

Great. Thanks.


Tabs 6.2.21+: swiping feels jerky with RadListViews

Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
We just migrated the @nativescript-community/ui-material-tabs from 6.2.19 to 7.0.2 in one of our production apps and we notice that the swiping of the Tabs feels jerky, at least on physical devices.
I used a Google Pixel 3a for testing. It's not the newest device, but it's not ancient either and I do not notice this issue when just switching back to 6.2.19.
In the sample app provided below, the issue is reproducable on physical devices. However, the issue is more noticable in our production app, where we use more complex layouts in the page and especially for the list item templates.
Which platform(s) does your issue occur on?

Android (not tested iOS yet)
multiple Android versions
only reproducable on physical device (e.g. Google Pixel 3a)

Please, provide the following version numbers that your issue occurs with:

CLI: 8.1.5
Cross-platform modules: 8.2.1
Runtime(s): 8.2.2
Plugin(s): 7.0.2

Please, tell us how to recreate the issue in as much detail as possible.

Start the sample app (provided below) on a physical device.
Swipe (slowly) between the tabs with RadListViews -> it is "hanging" a bit

Is there any code involved?
ns-custom-tabs.zip

@felixkrautschuk this comes from the fact that your tab takes too long to "load" itself.
You should offload the loading of the content to the "loaded" event or even better once the tab is actually shown.
This is a know thing on all platforms.
You might not have seen this before because all tabs were loaded on start (which is wrong).
You can also change the offscreenTabLimit to a higher value. But this is not a fix! This is a workaround for something that should be fixed in your app

@farfromrefug Maybe I'm misunderstanding you or the sense of the offscreenTabLimit property.
I have added a loaded and unloaded event handler for the GridLayout inside TabContent for better tracking what is happening, so the app looks like this:
<mdt:Tabs>
            <mdt:TabContentItem>
                <GridLayout id="tab0" loaded="onTabContentLoaded" unloaded="onTabContentUnloaded">
                    ...
                </GridLayout>
            </mdt:TabContentItem>
            <mdt:TabContentItem>
                <GridLayout id="tab1" loaded="onTabContentLoaded" unloaded="onTabContentUnloaded">
                    ...
                </GridLayout>
            </mdt:TabContentItem>
            <mdt:TabContentItem>
                <GridLayout id="tab2" loaded="onTabContentLoaded" unloaded="onTabContentUnloaded">
                    ...
                </GridLayout>
            </mdt:TabContentItem>
            <mdt:TabContentItem>
                <GridLayout id="tab3" loaded="onTabContentLoaded" unloaded="onTabContentUnloaded">
                    ...
                </GridLayout>
            </mdt:TabContentItem>
            <mdt:TabContentItem>
                <GridLayout id="tab4" loaded="onTabContentLoaded" unloaded="onTabContentUnloaded">
                    ...
                </GridLayout>
            </mdt:TabContentItem>
</mdt:Tabs>

export function onTabContentLoaded(args: EventData) {
  console.log("loaded:");
  console.log(args.object);
}

export function onTabContentUnloaded(args: EventData) {
  console.log("unloaded:");
  console.log(args.object);
}

When swiping between the last two tabs (tab3 and tab3), I see the following output in the console:

JS: selectedIndexChanged
JS: 3
JS: unloaded:
JS: GridLayout@main-page.xml:58:17;
JS: loaded:
JS: GridLayout@main-page.xml:46:17;
JS: selectedIndexChanged
JS: 4
JS: unloaded:
JS: GridLayout@main-page.xml:46:17;
JS: loaded:
JS: GridLayout@main-page.xml:58:17;
JS: selectedIndexChanged
JS: 3
JS: unloaded:
JS: GridLayout@main-page.xml:58:17;
JS: loaded:
JS: GridLayout@main-page.xml:46:17;
JS: selectedIndexChanged
JS: 4
JS: unloaded:
JS: GridLayout@main-page.xml:46:17;
JS: loaded:
JS: GridLayout@main-page.xml:58:17;

-> Why is the tab4 ever unloaded? The offscreenTabLimit defaults to 1, so actually that tab should never be unloaded?
When setting offscreenTabLimit to 4 and start the app, I see the following initial output:

JS: selectedIndexChanged
JS: 0
JS: loaded:
JS: GridLayout@main-page.xml:10:17;
JS: loaded:
JS: GridLayout@main-page.xml:22:17;
JS: loaded:
JS: GridLayout@main-page.xml:34:17;
JS: loaded:
JS: GridLayout@main-page.xml:46:17;
JS: loaded:
JS: GridLayout@main-page.xml:58:17;
JS: unloaded:
JS: GridLayout@main-page.xml:22:17;
JS: unloaded:
JS: GridLayout@main-page.xml:34:17;
JS: unloaded:
JS: GridLayout@main-page.xml:46:17;
JS: unloaded:
JS: GridLayout@main-page.xml:58:17;

So all tabs are loaded as expected, but then all tabs other than the first are unloaded again.
Latest sample app:
ns-custom-tabs.zip

@felixkrautschuk i am talkig about loading on mdtabs biew creation. before you switch tab!
but you are right there seem to be a bug with offscreenTabLimit.
i ll look at it when i have the time.
but again i would look at not loading listview content before the tab is actually showing.
you can see this behavior in almost any android native apps

Yes I agree that loading listview content in navigatingTo event is not a good idea and I handle that differently in our production app. But this issue is only related to switching tabs with swiping gesture (even if the tabs were shown before).

@felixkrautschuk i looked at the code of offscreenTabLimit  and i actually think everything is correct.
The thing is that N do something that i never liked which is called load/unload  on all but selected on each tab change.
And it might be an issue with RadListView as it might be reloading its data in load (which it should NOT do).
I think i wont fix this as it follows N way of doing things.
You can try switching to @nativescript-community/ui-collectionview, it should not reload anything and thus no lag

Okay.... I forgot to comment the line args.object.refresh() inside my onListViewLoaded callback. I needed that line when loading the ObservableArray-content inside navigatingTo event, because in this case, the list items where only visible inside the first tab after app start, the other lists were empty.
When moving the loading process - as you told me - inside "tab shown" event, this problem does not occur. So i need no refresh call and then there is no lag when switching the tabs.
But I still do not understand why the Tabs plugin 7.0.2 still loads only the first tab ("tab0") on app start and not also tab1 even though offscreenTabLimit is 1. And when swiping, it is still unloading all tabs other than the current.
This is not related to RadListView, because I temporary replaced that with your community ui-collectionview and even with default ListView.
And this does not happen when switching back to Tabs plugin 6.2.19, while the N core version stays the same.

@felixkrautschuk i think it creates the view but not call onLoad. If you can confirm there is something wrong i can look at it.
6.x version was totally different and not following N specs. 7.x is a full rewrite.

I just stumbled across this as I also have issues with 7.x (albeit slightly different, I will create issues once I have a project for easy reproduction)....
@farfromrefug It seems the rewrite started already with 6.2.15 and not only with 7.x? Which version should we stick to if we are not (yet) ready to update to 7.x? And another related question: Can I use version 6 with {N} core/runtime 8.2.x?

@jessorlisa indeed stick with v6.2.14.
and yes you should be able to use it with 8.2.x though i cant ensure anything now.
@jessorlisa @felixkrautschuk i keep on looking at this. I see what changed from 6.x to 7.x. I can revert but i dont like it:

in 6.x on each tab change load was called on selected index and unload for all items < index and > index + offscreenTabLimit
This means that your issue was already happening while navigating from your "heavy" tab to the next and back.
Also for all tabs for which unload is NOT called (inside index / index + offscreenTabLimit) then delegates are not removed which is the whole point of load/unload

My idea in 7.x is to not use offscreenTabLimit for load/unload so that delegate are always cleaned but view NOT destroyed. offscreenTabLimit is used to decide when to destroy views and re create them.
This follows N "ways" and i think this is the way it should be.
If your page/components are correctly implemented then it should NOT create any issue. As i mentioned for example collectionview will NOT reload on load/unload. I have old sources of RadListView and i can say it should work too as it does not seem to reload on load/unload (except if it changed since then).

I'm closing this, as it seems that nativescript-ui-listview 10.2.x fixes the issue.


Implement all desired Illuminate/Support functions?

Apparently, overdependence on Illuminate/Support from Laravel is a pressing problem for the PHP community, since it is depended on by over 6,000 packages, mostly for superfluous needs primarily around its utility functions related to arrays.
I nominate that we implement the functions in their Collection class that we currently do not implement. And then we market this project as The Solution to the over-reliance of the heavy-requirements Illuminate/Support.
http://mattallan.org/2016/dont-use-illuminate-support/

This is no longer necessary. Three years later, they actually implemented everything except the env helper, because I had already published it.

env() (finalized @ v5.7's version): https://github.com/phpexpertsinc/Laravel57-env-polyfill
Everything but env(): https://github.com/laravel/helpers


Fix typo and whitespace

/assign @ganeshspatil

@ketan can you sign off you commits and bump the chart version please? TIA
https://www.helm.sh/blog/helm-dco/index.html

@davidkarlsen — ammended that original commit to add DCO. Added a second commit to bump version. Let me know if anything else is needed.

/ok-to-test

/approve /lgtm

/lgtm


Expand row icon looks very out of place on Windows

I mean look at it

Hmm, seems like some fallback font issue. I see it also on my PC, but if I delete "Segoe UI Emoji" from the font-family list, it goes back to "normal" (looks more like the downward-pointing triangle below it)

This is what the right-pointing triangle looks like after deleting the Segoe UI Emoji font from the font-family. Looks more normal:

Segoe UI Emoji looks like some default font that comes with Windows 10+: https://docs.microsoft.com/en-us/typography/font-list/segoe-ui-emoji
We can probably specify some font overrides so a more consistent-looking font is used for the triangles.


Optimized comments from test workflow

#1001  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CatChen and the rest of your teammates on  Graphite


fix: loading on receiver screen when use max is used

Fix loading state on receiver screen when use max is used:

Make dependency for clearing user input more specific (contractName || symbol)
Pass token.balance to EnterReceiver component when isMaxAmount is true
Replace useNEARAsTokenWithMetadata with memoized selector selectNEARAsTokenWithMetadata to avoid new identity unless the state changed

Adding my comment from slack with some context for reference:

hmm. passing in the getRawAmount() directly instead of selectedToken.balance when isMaxAmount is true here  would still work because the user input is not emptied anymore so it still exists and can be parsed and displayed. The effect would be a loss of precision on the EnterReceiver screen header because we are parsing and formatting the balance a second time on that screen. The behavior in the PR is for the same parsed (full) amount to be passed to each component and they handle their formatting independently. currently, the input on the EnterAmount screen is using getFormattedTokenAmount and the EnterReceiver screen is using formatNearAmount. Both currently use a fracDigits value of 5

@Patrick1904 @MaximusHaximus would appreciate a follow up on this so we can get this merged

Thanks! Adding my comment from slack with some context for reference

hmm. Passing in the getRawAmount() instead of selectedToken.balance when isMaxAmount is true here would still work because the user input is not emptied anymore so it still exists and can be parsed and displayed. The effect would be a loss of precision on the EnterReceiver screen header because we are parsing and formatting the balance a second time on that screen. The behavior in the PR is for the same parsed (full) amount to be passed to each component and they handle their formatting independently. currently, the input on the EnterAmount screen is using getFormattedTokenAmount and the EnterReceiver screen is using formatNearAmount. Both currently use a fracDigits value of 5


Using with New Architecture

First of all, thank you for this amazing package! ❤
I'm using this package in the NewArchitecture application. Basic functionality of ContextMenuView works great. The problem comes with auxiliary preview. For some reason, it looks like it's incompatible with NewArchitecture despite using New Architecture Interop Layer.
I'm running following react-native.config.js configuration:
module.exports = {
  project: {
    android: {
      unstable_reactLegacyComponentNames: [],
    },
    ios: {
      unstable_reactLegacyComponentNames: [
        'RNIWrapperView',
        'RNIContextMenuView',
      ],
    },
  },
};

For some reason RNIContextMenuView works great while RNIWrapperView always has wrong props and is missing some initialization when added as subview by RNIContextMenuView (I'm not experienced in native iOS components so maybe I misunderstand something when running debugger and setting up breakpoints).
I'm using version 1.15.3 as I don't have Expo setup in my project. I know there is major 2.x version but upgrading and adding Expo to my project causes 100% CPU usage when long pressing on NewArchitecture so I opted out to sticking with 1.15.3.
If you want to test I updated 1.15.3 example to NewArchitecture so it's easy to reproduce: https://github.com/baransu/react-native-ios-context-menu/tree/new-arch.
I'm not a big fan of ExpoModules usage as this project is really valuable outside Expo and not everyone wants to migrate to it. But it is what is it 😅. I would love to contribute somehow or keep 1.x fork for folks not using Expo but I need a little bit of guidance how to fix it.
Result of opening ContextMenuAuxPreviewExample01 on NewArchitecture:

A new Auxiliary view will be released this week, will see if it fixes this

Great. Waiting for the release then. I'll test it then!

I think this is fixed on v2

I am using expo with the following react-native.config.js, for some reason there is no sign of react-native-ios-context-menu doesn't trigger or show up.
When I disable the new architecture it also works as expected. How do I make this work?
"react-native-ios-context-menu": "^2.5.1",
RNCSegmentedControl works in this example.
module.exports = {
  project: {
    android: {
      unstable_reactLegacyComponentNames: ["RNCSegmentedControl"],
    },
    ios: {
      unstable_reactLegacyComponentNames: [
        'RNIWrapperView',
        'RNIContextMenuButton',
        'RNIContextMenuView',
        "RNCSegmentedControl"
      ],
    },
  },
};

Looks like it doesn’t work on the new arch, reopened this issue

Hey guys, moved this to #100. PRs would be appreciated if you figure it out too.


Display/modify monster life during monster activation phase

During monster activation the official app has the option to assign damage.
Valkyrie does not.
Valkyrie Version
2.1.2

done for 2.2


Fix calicoctl.py for missing /etc/defaults/docker

If the /etc/defaults/docker file was missing, calicoctl would fall
over. this file is not mandatory, so we should tolerate its
absence.

I believe that CentOS and RHEL use /etc/sysconfig/docker to store the startup args for Docker, is this checked for as well?

I think the code here has moved on and this PR can be closed. @Symmetric do you agree?

Yep, your latest enhancements cover the same ground more thoroughly.
On Mon, Apr 20, 2015 at 5:15 PM, Tom Denham<EMAIL_ADDRESS>wrote:

I think the code here has moved on and this PR can be closed. @Symmetric
https://github.com/Symmetric do you agree?
—
Reply to this email directly or view it on GitHub
https://github.com/Metaswitch/calico-docker/pull/57#issuecomment-94597984
.


rework: metrics

Does:

move from metrics to prometheus-client
brings us in line with what most others use
compat with libp2p metrics
libp2p metrics are flowing now

Breaks:

current dashboards
needed to drop old counters
will have to reduce the noise/chatter, libp2p is vv noisy

To do:

clean it up a bit
gateway metrics registering should use a sub registry
need to mutex lock all the Arc or something along the lines for the metrics component - not needed as of prometheus-client = 0.16.0

I'd like to keep the gateway refactor out of this PR if possible and handle that under https://github.com/n0-computer/iroh/issues/61 if you're ok with it?

sure


Encrypt config file

When ask the user for initial config data also prompt a password field to encrypt the file.

Closing this in favor of #1


Fixes bug in returning lists. Closes #1667

Fixes bug in returning lists. Closes #1667

Coverage remained the same at 100.0% when pulling c22100c64f3a5728374f6fec40b10ca69a0f386c on waldekmastykarz:fix-spo-list-list into e8f399bb8cf65cbff6dc96dc5abf8fac35dbb63e on pnp:master.


fix loc error in double_ensemble sample_reweight()

I think that's a "[] loc error" in  double_ensemble sample_reweight() function.
Fixed it with slightly changing the index in brackets:  i_b -> b

@symphony233
I think the  changed code equals to the previous version.
I test the ensure that they are the same with the following code.
import pandas  as pd

s = pd.Series({"a": 1, "b": 2})

for i_b, b in enumerate(s.index):
    assert s[b] == s[i_b]

Did I miss anything?

@symphony233
I think the changed code equals the previous version. I test the ensure that they are the same with the following code.
import pandas  as pd

s = pd.Series({"a": 1, "b": 2})

for i_b, b in enumerate(s.index):
    assert s[b] == s[i_b]

Did I miss anything?

I will go back to verify what I proposed before, sorry for bothering you.

@symphony233
I think the changed code equals the previous version. I test the ensure that they are the same with the following code.
import pandas  as pd

s = pd.Series({"a": 1, "b": 2})

for i_b, b in enumerate(s.index):
    assert s[b] == s[i_b]

Did I miss anything?

I will go back to verify what I proposed before, sorry for bothering you.

We don't like the word 'bother' :D.
Feel free to open any discussion in the community  :)


few subscriptions methods fail

I am trying to setup subscriptions:
		subscription = ccapi.NewSubscription(
			exchange,
			symbol,
			"TRADE",
			"CONFLATE_GRACE_PERIOD_MILLISECONDS=40",
			"my correlation id",
		)
		subscription = ccapi.NewSubscription(
			exchange,
			symbol,
			"MARKET_DEPTH",
			"MARKET_DEPTH_MAX=5",
			"my correlation id",
		)

I tested through all of them and everything works fine and well and is amazing.
Only those 2 issues I encountered:

cryptocom(BTCUSD-PERP):  ERROR_MESSAGE = ws handshake: The WebSocket handshake was declined by the remote peer, category: boost.beast.websocket
(somehow can't connect to this at all)

kucoin-futures (XBTUSDM): ERROR_MESSAGE = {"id":"0","type":"error","code":400,"data":"topic :XBTUSDM_/contractMarket/level2Depth5 is invalid"}
docs indicate the format of the channelID should be something like this but maybe I a interpret the message.data wrongly:

/contractMarket/level2Depth5:XBTUSDM

bybit-derivatives (BTCUSDT):           ERROR_MESSAGE = unsupported exchange instrument types: . Allowed values: [ usdt-contract, usdc-contract, usdc-options ].
(here I am a bit puzzled? how do I set the instrument type?)

Thank you very much for this awesome library.

Let me try to first address "bybit-derivatives". You'd use subscription.setInstrumentType("usdt-contract"). Sorry that I definitely need to put that into the documentation.

Let me try to first address "bybit-derivatives". You'd use subscription.setInstrumentType("usdt-contract"). Sorry that I definitely need to put that into the documentation.

"kucoin-futures (XBTUSDM)". The error message seems to indicate that there was a typo in the symbol? Should it be XBTUSDM rather than XBTUSDM_?

"kucoin-futures (XBTUSDM)". The error message seems to indicate that there was a typo in the symbol? Should it be XBTUSDM rather than XBTUSDM_?

“cryptocom(BTCUSD-PERP)”: Is your IP address in cryptocom's restricted countries?


ARROW-6610: [C++] Add cmake option to disable filesystem layer

@wesm @kou

(the "unrelated" changes are just reorganizing the CMakeLists.txt to make ordering more logical)

@pitrou this means that we need to make the python and R filesystem bindings optional as well.


Update release-notes.md

Fixing 1.0.3 release engine version

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

Already merged #163182 into master which included this change as well. Monitoring the public facing website to see when it will reflect.

Hi @VasiyaKrishnan https://github.com/MicrosoftDocs/azure-docs-pr/pull/163182/files made a change to the version number for Azure SQL Edge 1.0.2 (line 39). It didn't update the version number for Azure SQL Edge 1.0.3 (line 29):

Would you like us to merge this pull request to update the version for 1.0.3?

#Sign-off


video damaged

Thank you for your attention.
I have downloaded all of segments videos. When I was extracting frames from them, six videos among them seemed to be damaged, while there is no problem with the other videos. So I sumbitted a missing.txt for re-downloading the six videos:

the video ids are v_2wE42p2P85g, v_EKhVsJ3rtyM, v_PXS1LtrnQXI, v_qh0kaLdrzJU, v_VubOnSthyKQ, v_Wj40pGUd368.
the newly downloaded ones encounter the same problem. When I try to extract frames from these videos, I see this:

And if I try to watch this video, I see this:

the popup means that "This file cannot be played. This may be due to unsupported file types, incorrect file extensions, or corrupted files."
Could you have any advice for me? thank you very much.

Unfortunately, we are not able to access these videos either. We will remove them from our dataset. Sorry for the trouble.

the video ids are v_2wE42p2P85g, v_EKhVsJ3rtyM, v_PXS1LtrnQXI, v_qh0kaLdrzJU, v_VubOnSthyKQ, v_Wj40pGUd368.

Hi，I try to download the dataset,but it always http error:429. can you share the dataset with me ?Thanks!

It seems that Youtube blocked youtube-dl. Please submit a request with user agreement.


Fix deletion cron throwing exception with zero keys

Description
Don't call R2Bucket#delete with an empty array of keys. This is another odd case that works fine on Miniflare, but fails when actually ran on Cloudflare.
Fixes #55
How Has This Been Tested?
Created new test to ensure R2Bucket#delete is never called with []. Test fails on current version of the repo, but passes on this PR.

Summary by CodeRabbit

Test: Added a new test case to the R2 delete cron suite to ensure that no deletion occurs when there are no keys marked for deletion.
Refactor: Optimized the deleteOldCache function by adding a conditional check to prevent unnecessary additions to the list of keys marked for deletion when there are no keys to delete. This change improves efficiency and performance of the cache cleanup process.

@colinmcdonald22 change looks good. Only thing left is to sign your commits, I can merge the PR after that.

@AdiRishi commits are signed now 🎉


Auto cast to Julia array of axes fails on OS X

Hi!
I discovered this problem while trying to run a code on my Macbook
which I previously wrote on a Linux desktop. I don't know if the problem
is with PyCall.jl or PyPlot.jl, but since casting of Numpy arrays work without
any problems, I decided to post here.
On OS X, I tried this with Python from Homebrew, both 2.7 and 3.5
with the same result. On Linux, I use Python 3.5.
This is the output on OS X:
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+702 (2015-10-10 10:50 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit ae154d0* (0 days old master)
|__/                   |  x86_64-apple-darwin15.0.0

julia> using PyPlot

julia> fig,axs = subplots(nrows=2,sharex="col")
(PyPlot.Figure(PyObject <matplotlib.figure.Figure object at 0x311f294e0>),PyObject array([<matplotlib.axes._subplots.AxesSubplot object at 0x311f8ca90>,
       <matplotlib.axes._subplots.AxesSubplot object at 0x317805080>], dtype=object))

julia> axs[1]
ERROR: MethodError: `getindex` has no method matching getindex(::PyCall.PyObject, ::Int64)
Closest candidates are:
  getindex(::PyCall.PyObject, ::AbstractString)
  getindex(::PyCall.PyObject, ::Symbol)

and correspondingly, on Linux:
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-dev+638 (2015-10-06 11:15 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit b5bebf2 (4 days old master)
|__/                   |  x86_64-unknown-linux-gnu

julia> using PyPlot

julia> fig,axs = subplots(nrows=2,sharex="col")
(PyPlot.Figure(PyObject <matplotlib.figure.Figure object at 0x7f0acea375f8>),[PyObject <matplotlib.axes._subplots.AxesSubplot object at 0x7f0ace788da0>,PyObject <matplotlib.axes._subplots.AxesSubplot object at 0x7f0ace6840f0>])

julia> axs[1]
PyObject <matplotlib.axes._subplots.AxesSubplot object at 0x7f0ace788da0>

On OS X, I get a PyObject array of axes, which I cannot index with getindex,
on Linux, I get an array of PyObjects.
What could be the reason for this? Tell me if you need more information.

Until this is properly solved, one can use this workaround:
if Sys.OS_NAME == :Darwin
    import Base.getindex
    function getindex(pyo::PyCall.PyObject, i::Int)
        pyo[:__getitem__](i-1)
    end
end

I realized this is answered in #149.

The latest version of PyCall (not tagged yet) fixes this.

See also #178


Git menu will trigger commit call on every click

Describe the bug
When there are changes to commit, every single click on the Git dropdown menu will start a commit API call.
To Reproduce
Steps to reproduce the behavior:

Make some changes to the handlebar templates
Click on the "Git" menu
Watch the developer console to see the app invoke /commit on every click on the menu

Expected behavior
Only invoke this call when the "Commit changes" item is called
The callback for the commit is attached to the menu, instead of the "Commit changes" item.

A PR will follow shortly.

Hi Ewout, I can't reproduce the issue, it seems that the dropdown menu and the commit link(inside the dropdown menu) all work normally without functional interleaving on my machine. Could you please provide more detailed context information or screenshots?

The event that triggers the call to commit seems to be attached to the element #git-dropdown - when I had commitable changes, every time I would just click the dropdown so it would open, I saw a commit being sent to the api endpoint.  So, I changed to code to be attached to the <a> link.  But I see now that the on() actually has the name of the child anchor there.  Hum.
And I cannot reproduce it anymore, since I upgraded my node installation, and now all the Git functions don't work anymore anyway.  I'll try downgrading node and see if I can reproduce it again.

Can't reproduce it myself anymore.  I'll close this until I hit this issue again ;-)

Thank you Ewout, I will inform my teammates to pay attention to the GIT menu functions too, and please feel free to reactivate this issue for any questions :)


update case sensitivity with "A Href"

match "A Href" with all same (lowercase) case to match on entire page. It would help keep things in unison

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

not a big change but not all the anchor href mentions are in the same case

Congrats @ryhoppe on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝


Missing directories/files from the explorer

Issue Type
Bug
Description

[ ] Create a directory with password in the name.
[ ] Verify you cannot see the directory.
[ ] Open the project in another editor (Atom) and verify the directory exists.

 Can you narrow down which one it is by enabling them one at a time?


Adding balances

Adding balances. The current_balances query returns nothing and account_balances results in an error

The fix is addressed on this PR: https://github.com/bridgeft/atlas-api-demo/pull/2


Change letter spacing inside input

Hi! Is this possible to do?

Can you explain more on this

@SupriyaKalghatgi Inside of a TextInput, is it possible to increase the spacing in between the letters?

@rostyys Yes


--name should work both as a positional arg and as an option arg

This is enabled by creating a separate, required, positional arg and making it conflict with the original optional arg. I applied this change to each subcommand of cargo func new.
What is the goal of this pull request?
It addresses https://github.com/peterhuene/azure-functions-rs/issues/374
What does this pull request change?
A user creating a new Azure Function can leave out the --name option while doing so. They must still provide a name, as before.
What work remains to be done?
None.
Do you consider it adequately tested?
Yes - I reinstalled the SDK with cargo install, then tested new behaviour with these commands:

cargo func new help http
cargo func new http abc --auth-level anonymous
cargo func new http --auth-level anonymous abc
cargo func new http --auth-level anonymous --name abc

Related Issues
None
Notes
N.A.

Hi @ajnirp.  Sorry I was on vacation last week.  The changes look great!
I just have the one question.  Thanks again for fixing this issue!

Apologies for the late reply - I'll get around to it this weekend! I have no access to a personal machine for coding until then. Thank you for the review!

It looks like the only failure is the nightly rustfmt trying to undo the formatting changes for the stable compiler.
As such, I'm going to ignore that failure.
@ajnirp thanks very much for the contribution!


[scnlib] Fix scn-config.cmake dependency error

Fix based on comments).
When using it, it prompts that the dependent simdutf and FastFloat cannot be found.

[X] Changes comply with the maintainer guide.
[ ] SHA512s are updated for each updated download.
[ ] The "supports" clause reflects platforms that may be fixed by this new version.
[ ] Any fixed CI baseline entries are removed from that file.
[ ] Any patches that are no longer applied are deleted from the port's directory.
[X] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[X] Only one version is added to each modified port's versions file.

Usage test pass with following triplets:
x86-windows
x64-windows
x64-windows-static

duplicate of #38334

Duplicate of https://github.com/microsoft/vcpkg/pull/38334.


bullseye support

Request for tags/images based on  bullseye (testing).

So how about now?

Already done: https://github.com/docker-library/python/pull/633


Convert aws/prepare script to improved format

Core bosh needs this change in order to run our CI. Currently we're pointing to my fork and would like to point to the canonical repo.

@cfdreddbot @ljfranklin I'm p sure I should be covered by Pivotal's CLA??

@zaksoup cool, we'll get this merged. Doesn't look like your memberships are public though:

@zaksoup The PR removed the SSLIP_IO_KEY  which is making our pipeline (https://bosh-cpi.ci.cf-app.com/teams/main/pipelines/certify-aws?groups=certify-aws) fail.
The missing inputs: environment error is on our end. We need to add the terraform resource.

@cdutra I understand how this is breaking you but not what I can do to fix this.  How can I help?
Love,
Zak

cla all good wooooo

@zaksoup As nifty as @cunnie's sslip.io service is, we should probably move away from passing his private key around if we want to consider these scripts re-usable :) That said, our Director still needs a valid SSL cert for us to use the Golang CLI and I'm assuming BATs will eventually require this as well. Seems like we have a couple options to get this pipeline green:
Better long term: Update PR to generate self-signed SSL certs. CA Cert could either be stored in LastPass and passed in or also generated and passed along as a task output.
Quick and dirty: Update PR to make SSL_CERT and SSL_KEY required environment variables and store an actual SSL cert in LastPass. While this unblocks the CPI pipeline, this probably won't work for most people unless they buy wildcard certs and setup some extra DNS plumping.
What do you think @zaksoup?

@ljfranklin let's do the long term thing. I think setting up these scripts to auto-generate the correct certs for one-time-use is the way to go.

I think we [BOSH CPI] should close this PR, re-work it, and re-submit it.

it's a few months old
it has conflicts

The goal seems to replace CloudFormation with Terraform, and we should continue on that line. Also scrap the sslip.io key and generate a key. Also use bosh-deployment to generate director and key.
It appears that we're not even using this fork. Comments @zaksoup @cdutra ?

I'm closing this. it's been so long I don't even remember what's going on and I was the one who created this PR to begin with. whoops


fix(cargo): handle version range using Less Than Equal

When a version range with a '<' character is found, the range is updated to the (latest version + 1). However for a range using "<=" this is invalid. Add a special case for a range using Less Than Equal which is updated to simply the latest version.

I fixed all comments and resolved the merge conflict.


Difference apperance when using difference locale

I notice one thing about the display
In my locale, when my config is like this
[william@eeepc screenshots]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

the appearance will be like
https://i.imgur.com/DsmVAqI.png
But if my locale config is like this
[william@eeepc ~]$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

it shows
https://i.imgur.com/Kk6ttak.png
Why does this happen?

The character that should be printed here is a unicode bullet:
•

The top screenshot is because RTV is trying to display the character, but your terminal doesn't have proper support for that character - maybe you need to use a different font or tweak something in your terminal's settings.
The bottom screenshot is because RTV will try to check the locale to see if you have unicode support enabled, and if you don't it will fall back to only using ASCII characters. This is the same behavior that you get when you start RTV with the --ascii flag.
https://github.com/michael-lazar/rtv/blob/36b9353236acc11be208c4cee2191b9854c9625c/rtv/__main__.py#L152-L156


Implement Formatter behaviour

This is the first of the additional formatters for which I'm
implementing the new Benchee.Formatter behavior. Once this is done,
then we can start doing all the them in parallel!

Coverage remained the same at 100.0% when pulling 3b7732bd691ea1ef05652d604d166c55c551d4e4 on formatter-behaviour into ecb94ce1def4f47b8474a5e80eecc3f6ce4666c3 on master.


Initial support for Olimex STM32-E407 board

board name olimex_stm32_e407
CPU STM32F407ZGT6 Cortex M4
LED/BUTTON support
Console on USART1 with 8n1 115200 baud

Signed-off-by: Erwin Rol<EMAIL_ADDRESS>

Should I merge those two commits (and possible other fixes) and use something as;
board: olimex_stm32_e407: Initial Olimex STM32 E407 BSP
as commit msg ? And than submit a new pull request ?

Erwin

Should I merge those two commits (and possible other fixes) and use something as; board: olimex_stm32_e407: Initial Olimex STM32 E407 BSP as commit msg ? And than submit a new pull request ?

Squash the commits and force push them to the branch of this PR, no need to create a new PR

Is there anything else I can/must do to have this patch accepted ?

@lowlander: "Hello World" description in doc and it will be ok for me.

@dbkinder docs look good?


[YouTube Downloader] ...

Extension
https://www.raycast.com/vimtor/youtube-downloader
Raycast Version
1.74.0
macOS Version
14.5
Description
Error:
Error: Output format webm is not available

capabilities.js:589:20

---
586:           }, [])

### Steps To Reproduce

try to download any video

### Current Behaviour

errors

### Expected Behaviour

download the video

mp4 also doesn't work.

Hi @jasonsantony and @lumap!
Sadly, this is a known issue. The problem is related to the new ffmpeg version and the library we are using to process the videos.
Check out the temporary solution here: https://github.com/raycast/extensions/issues/12110#issuecomment-2089490625


additionalDependencies not loaded correctly

Since 3.0.0, I get the error:
Cannot find package 'prettier-plugin-astro' imported from $PATH_TO_MY_REPO/noop.js
My pre-commit-config.yaml:
repos:
  - repo: https://github.com/pre-commit/mirrors-prettier
    rev: 'v3.0.0'
    hooks:
      - id: prettier
        additional_dependencies:
          -<EMAIL_ADDRESS>          -<EMAIL_ADDRESS>        args: [ --plugin=prettier-plugin-astro]
        files: \.(astro)$

Works fine if I use v.2.7.1.

there's nothing special about this repo it just calls prettier

I just ran into this too. I suspect it's something with the way pre-commit sets up the nodejs environment is incompatible with the way that prettier tries to import its plugins. It's not looking in the right place or something.
As a workaround, I found I can put the relative path to the plugin instead of just the plugin name. I specified in my package.json:
prettier": {
        "tabWidth": 4,
        "printWidth": 90,
        "plugins": [
            "./node_modules/prettier-plugin-organize-imports/index.js"
        ]
    }

Instead of the plugin name just being prettier-plugin-organize-imports and that seems to work. Should be able to make the same change in your pre-commit args list.

then it sounds like prettier broke plugin discovery in 3.0 -- I'd recommend making an issue there
you can reproduce pre-commit's setup with nodeenv and then npm i -g inside that environment


Crash when no rune has never been gained

Very basic correction (no crash).
May be changing sentences should be considered

Pulling because a) submitter almost definitely can code better than me and b) nobody ever contributed to a project I started before, and that's quite gratifying :0) Welcome!

It might be that I code better, but you seem definitely better than I am in DCSS....


Bug:  Local port is blocked

Describe the bug
Windows wont let you listen locally even after firewall is set.
To Reproduce
Steps to reproduce the behavior:

Unzip the agent archive to: %appdata%\LAB02 Research\HASS.Agent
Try to enable the local listener.
Let it create the firewall rule
Restart

Expected behavior
Listen on the local host.
Screenshots

Misc info (please complete the following information):

Windows build (ideally screenshot/info of winver.exe output):

Windows' UI language: en_us

HASS.Agent version:  2022.12.0

Please check what's applicable (multiple answers possible):

[] Installed via installer (doesn't work due to #67)
[ ] Installed manually
[x] Problem occurs in HASS.Agent
[ ] Problem occurs in Satellite Service

Additional context
Add any other context about the problem here.
Logs
2022-08-23 15:55:39.043 -04:00 [INF] [MAIN] Extended logging enabled
2022-08-23 15:55:39.049 -04:00 [INF] [SETTINGS] Config storage path: C:\Users\geiseri\AppData\Roaming\LAB02 Research\HASS.Agent\config
2022-08-23 15:55:39.212 -04:00 [INF] [SETTINGS] Configuration loaded
2022-08-23 15:55:39.217 -04:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2022-08-23 15:55:39.590 -04:00 [INF] [SETTINGS_QUICKACTIONS] Loaded 1 entities
2022-08-23 15:55:39.593 -04:00 [INF] [SETTINGS_COMMANDS] Config not found, no entities loaded
2022-08-23 15:55:39.618 -04:00 [INF] [SETTINGS_SENSORS] Loaded 1 entities
2022-08-23 15:55:39.626 -04:00 [INF] [LOCALAPI] Initializing ..
2022-08-23 15:55:39.627 -04:00 [INF] [MQTT] Identifying as device: IANS_DESKTOP
2022-08-23 15:55:39.627 -04:00 [INF] [NOTIFIER] Ready
2022-08-23 15:55:39.627 -04:00 [INF] [SERVICE] Local install path: C:\Program Files (x86)\HASS.Agent.Satellite.Service\
2022-08-23 15:55:39.628 -04:00 [INF] [MEDIA] Ready
2022-08-23 15:55:39.631 -04:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2022-08-23 15:55:39.644 -04:00 [INF] [MQTT] Connecting ..
2022-08-23 15:55:39.857 -04:00 [INF] [MQTT] Connected
2022-08-23 15:55:40.075 -04:00 [FTL] [PROGRAM] FirstChanceException: Access is denied.
System.Net.HttpListenerException (5): Access is denied.
   at System.Net.HttpListener.AddPrefixCore(String registeredPrefix)
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
2022-08-23 15:55:40.077 -04:00 [FTL] [PROGRAM] FirstChanceException: Safe handle has been closed.
Object name: 'SafeHandle'.
System.ObjectDisposedException: Safe handle has been closed.
Object name: 'SafeHandle'.
   at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
   at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)
   at Interop.Kernel32.CancelIoEx(SafeHandle handle, NativeOverlapped* lpOverlapped)
   at System.Net.HttpListenerSession.CloseRequestQueueHandle()
2022-08-23 15:55:40.077 -04:00 [FTL] [PROGRAM] FirstChanceException: Access is denied.
System.Net.HttpListenerException (5): Access is denied.
   at System.Net.HttpListener.AddPrefixCore(String registeredPrefix)
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at Grapevine.RestServer.Start()
2022-08-23 15:55:40.083 -04:00 [FTL] An unexpected error occurred when attempting to start the server
System.Net.HttpListenerException (5): Access is denied.
   at System.Net.HttpListener.AddPrefixCore(String registeredPrefix)
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at Grapevine.RestServer.Start()
2022-08-23 15:55:40.085 -04:00 [FTL] [PROGRAM] FirstChanceException: Cannot access a disposed object.
Object name: 'System.Net.HttpListener'.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.HttpListener'.
   at System.Net.HttpListener.CheckDisposed()
   at System.Net.HttpListener.Stop()
2022-08-23 15:55:40.085 -04:00 [FTL] [LOCALAPI] Error trying to bind the API to port 5115: Cannot access a disposed object.
Object name: 'System.Net.HttpListener'.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.HttpListener'.
   at System.Net.HttpListener.CheckDisposed()
   at System.Net.HttpListener.Stop()
   at Grapevine.RestServer.Start()
   at Grapevine.MiddlewareExtensions.Run(IRestServer server)
   at HASS.Agent.API.ApiManager.Initialize()
2022-08-23 15:55:40.770 -04:00 [INF] [HASS_API] Home Assistant version: 2022.8.6
2022-08-23 15:55:41.661 -04:00 [INF] [MQTT] Initial registration completed
2022-08-23 15:55:41.824 -04:00 [INF] [HASS_API] System connected with http://homeassistant.local:8123

Did you execute the port reservation:

Yes.  I did it via that button, the UI, and netsh.  The logs came as follows:
2022-08-24 10:10:00.671 -04:00 [INF] [SETTINGS] Config storage path: C:\Users\geiseri\AppData\Roaming\LAB02 Research\HASS.Agent\config
2022-08-24 10:10:01.414 -04:00 [INF] [SETTINGS] Configuration loaded
2022-08-24 10:10:01.448 -04:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2022-08-24 10:10:01.454 -04:00 [INF] [SYSTEM] Port reservation mode activated
2022-08-24 10:10:03.852 -04:00 [INF] [LOCALAPI] Executing port reservation for port: 5116
2022-08-24 10:10:04.179 -04:00 [INF] [LOCALAPI] Port reservation succesfully added
2022-08-24 10:10:04.181 -04:00 [INF] [PORTRESERVATION] Port reservation completed
2022-08-24 10:10:04.336 -04:00 [WRN] [PROCESS] Execution returned non-ok exitcode (exitcode: 1): netsh
2022-08-24 10:10:04.460 -04:00 [INF] [FIREWALL] Succesfully created firewall rule on port: 5116
2022-08-24 10:10:04.461 -04:00 [INF] [PORTRESERVATION] Firewall rule created

What is strange is that I see the line 2022-08-24 10:10:04.336 -04:00 [WRN] [PROCESS] Execution returned non-ok exitcode (exitcode: 1): netsh even if its not currently present.   I am wondering if its a permissions thing here.  I did try to create the firewall rule via netsh as administrator, but it didn't seem to help.

@geiseri I don't think the issue originates from your firewall configuration. This seems to be a port mapping issue.
I encountered the same issue while installing the agent for an unprivileged user account.
The port reservation specifies which user is able to listen on that port number.
If you installed the agent with Admin rights, that user defaults to that admin user, hence the user that is currently running is not allowed to bind the API to that port.
To fix this:

Open cmd with admin privileges
Run netsh http delete urlacl url=http://+:5115/ to remove the current existing port mapping
Recreate the port mapping with the correct user: netsh http add urlacl url=http://+:5115/ user=DOMAIN\user listen=yes (replace 'DOMAIN\user' with the user account you're running the agent from).
Restart the agent

Sorry it took so long to get back to this.  I think the real issue is related to the installer itself.  It requires administrative permissions, and I (rightly so) do allow my desktop user to elevate privileges.  This has a side-effect that some installers will then ask for elevated permissions and then install the application as administrator in its root.  I will see if I can make a PR to address this.  I was going to try a zip based install to see if it faired any better.   Keep this closed for now since it seems to work for others though.  I admit I am "speshul" =)


For request add contributor

@all-contributors please add @gsobczyk for code

@all-contributors please add @gsobczyk for code


Update to rules_apple 3.0.0

Changes

Uses new provider initialization pattern
This is now private API in rules_apple as of https://github.com/bazelbuild/rules_apple/pull/2184 but visibility was relaxed in https://github.com/bazelbuild/rules_apple/pull/2225 to avoid breaking us.

Drops support for i386 slices in xcframeworks
Dropped upstream in https://github.com/bazelbuild/rules_apple/pull/2155.

Passes through minimum_os_version to all test rules
Required upstream in https://github.com/bazelbuild/rules_apple/pull/2124.

Uses new split transition
Core's apple_common.multi_arch_split was removed in Bazel 7 and replaced by rules_apple's apple_platform_split_transition: https://github.com/bazelbuild/rules_apple/pull/2034

Remaining work

[ ] ~Update project generation rules~
[x] Run buildifier
[x] Decide if we should try to make these changes backwards-compatible no
[x] Decide if this is a good time to drop Bazel 5 support yes

@jszumski last night I pulled this down and looked at at bit. It seems like there are 2 distinct issues here:

making rules_ios work correctly with rules_apple 3.0.0 - this is easier said than done and the errors you have in the CI job are the tip of the iceberg. I'm trying to find the simplest way for to unblock you and others.

cleanup and refactoring some stuff to better support pt1 and also consequently older rules_apple.

Submitting and end to end implementation of this.


Fixed Mass Assignment: Insecure Binder Configuration issue

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/EM-3754
Change description
Fixed Mass Assignment: Insecure Binder Configuration issue
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[X] No

Wrong PR


Added comments for SearchExtension

See #33
Added docs to:
-SearchExtension
-ISpecificationEvaluator
-types derived from ISpecificationEvaluator

Thanks!


Cleanup Terraform Remote State FIle

Use Case
Currently the Terraform plugin downloads remote Terraform state files to the local system but does not remove them when the Bolt operation is completed.
Terraform state files have the potential to store sensitive data (https://www.terraform.io/docs/state/sensitive-data.html) and are natively insecure in how they are stored. Many remote state backends provide encryption at rest to prevent unintended exposure of that sensitive data and Terraform only stores the state file in memory (https://www.terraform.io/docs/backends/state.html#state-storage).
Describe the Solution You Would Like
Ideally the Terraform plugin would remove the downloaded state file from the local system to prevent the accidental exposure of sensitive data that might be stored in the state file. In the event this creates a performance/usability issue with repeatedly pull down the state file an option or flag should be provided to toggle the deletion with the potential ramifications being stated in the documentation.
Describe Alternatives You've Considered
The statefile could be removed manually or via a separate process following the execution of the Bolt operation but this would require the user to know that this behavior is required.

The state actually never gets written to disk so it works exactly as it should.


[Technical Content] : Building ChatBot with NLTK

Description
Beginner guide to build a ChatBot with Natural Language Toolkit.
An interactive chatbot utilizing the Natural Language Toolkit (NLTK) to facilitate text analysis and generate appropriate responses.
Screenshots

Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[X] I am a GSSoC'24 contributor.
[X] I want to work on this issue.

Code of Conduct

[X] I agree to follow this project's "Code of Conduct".

Hello @CSEdgeOff and @Durgesh-Vaigandla , I have already commenced work on this task. In light of this, I kindly request that you assign the task to me and apply the necessary labels.


LICENSE file at top level?

I can see from the build.gradle and the pom that this is released under the MIT license, but it took a little digging.  Would you be willing to add the license file at the root folder level to make it clearer?
Thanks and sorry for the trouble.

Hi, sure, it makes sense

Done


2016 - Allow dynamic TLS configurations in servers

The generated server code only checks the length of the https server's
tls config certificate list, forcing static TLS configurations. But, it
should be valid to set the tls config's GetCertificate function to allow
dynamic certificate selection.
Fixes #2016

Relevant Go core PR: https://go-review.googlesource.com/c/go/+/8792/ (submitted in 2015 to allow this behavior by regardless of client SNI)

Can you run go generate ./generator so that the template changes are picked up in the binary?

Updated using https://github.com/kevinburke/go-bindata, was that the correct one? It seems the original is missing


⚠ Samsung has degraded performance

In 187ac8e, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2488 ms

Resolved: Samsung performance has improved in d1e1826.


Updating spacing and adding a min-height to maintain alignment

Also fixing the jitter on hover with the number

Forgot I need to make some updates to mobile first.


Sphinx 7.2 dropped support for Python 3.8

Describe the bug
Sphinx 7.2 dropped support for Python 3.8. Documentation builds on Python 3.8 will now fail.
This won't affect CI, but it might affect users building locally.
Steps to reproduce
tox -r -e docs in a Python 3.8 environment.
Expected behavior
The tox docs target should build without error on Python 3.8
Screenshots
No response
Environment

Python version: 3.8

Logs

Additional context
The fix for this is to add a Python version qualifier to the docs extra dependencies in setup.cfg.

Reproduced.
$ tox
…
ERROR: No matching distribution found for sphinx==7.2.2

Working on the requirement specifiers… it's going to look something like this:
diff --git a/setup.cfg b/setup.cfg
index 4a9cdce..aff8813 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -56,7 +56,8 @@ dev =
 docs =
     furo == 2023.8.19
     pyenchant == 3.2.2
-    sphinx == 7.2.2
+    sphinx == 7.2.2 ; python_version >= '3.9'
+    sphinx == 7.* ; python_version < '3.9'
     sphinx_tabs == 3.4.1
     sphinx-autobuild == 2021.3.14
     sphinx-copybutton == 0.5.2

That works, but I need to look in tox' target virtual environment to figure out which version it plucked.

$ .tox/docs/bin/pip freeze | grep inx
Sphinx==7.1.2

Gotcha. And, after
$ tox -r -e docs,py38
…
docs: OK ✔ in 18.18 seconds


Refactor of factor level handling in baseline adjustment and elsewhere

Okay @sinanpl this one is a pretty major refactoring of the way factor levels are handled.
My main motivation for this one was that I'm looking at alternate strategies for baseline-adjustment and so wanted to abstract the code to find reference levels of factors.  However once I started in on that, I realized that wrangling all the levels of factors (many of which occasionally get dropped in various places) was one of the most fragile elements of the whole calculation chain: for instance, that's the whole reason I had to put in the hack of using assemble_models().  So having the factor-wrangling function also enabled me to get rid of the model assembly business altogether and to use the tidied-up factor levels to refactor all the business of extracting betas, calculating EXs, and adjusting baselines.
The only "breaking" change I noticed is actually a fix of a bug in the previous setup, namely that the second reference category of a factor was sometimes being chosen incorrectly when one of the groups didn't contain the first reference category.  This affected a few of the tests, so I updated the tests to use the backup reference category that we should have been asking for in the first place.
Lots of code has changed in this PR, so I anticipate future development will be quite hard to merge in if this lingers.  @sinanpl, do you know when you might get a chance to review it?  If it'll be a while, I could either accept it to dev myself (hopefully after I'm able to use it a bit more), or I could make some even-more-dev branch to accept it into?  Let me know what you think best.

Hmph, something funny is going on with this one -- all the tests pass in the build environment, but at least "0-variance baseline-adjusted IV results match Stata" fails interactively.  (Other tests might also fail interactively, but I haven't tried them all yet.)
This usually means something fishy is going on with reference categories (since the different environments have different sort orders and therefore different reference categories are chosen in models).
So I should debug this further.  @sinanpl of course don't let this stop you if you want to review the PR, but we probably shouldn't accept it until we figure out why the interactive test is failing.

Hmph, something funny is going on with this one -- all the tests pass in the build environment, but at least "0-variance baseline-adjusted IV results match Stata" fails interactively. (Other tests might also fail interactively, but I haven't tried them all yet.)

Okay pretty sure I know what's going on here.  When I cajole Stata into using the same reference categories that R automatically chooses in my interactive environment, Stata and OaxacaBlinderDecomp() produce the exact same output at every step: same fits, same adjusted betas, same EXs, same results.  So we are matching Stata up to choice of reference category.
The strange thing is that the baseline invariance procedure is supposed to be, well, invariant to the baseline -- the results should be the same no matter what reference categories are picked for the IVs.
So I'm beginning to suspect that this is actually a rare bug in Jann's Stata implementation.  What's happening is that when there are zero-variance levels of a categorical variable, they are adjusted using the grand mean of all the levels, even the missing ones.  The result is that instead of the baseline category gets treated as one of many categories with a beta of zero, which all wind up with the same adjusted beta.  If the baseline is changed though, the category that used to be the baseline gets a non-zero value and the new baseline category gets treated like the missing ones.
All that said, I'm not confident enough to contradict Jann before somebody smarter agrees with me.  So I think I should report this on Jann's repo and see what he makes of it.  And in the meantime, I think we should keep mirroring his functionality.
The question then becomes what to do about these failing tests.  I think the best solution is to have that test use factor IVs and to set the levels explicitly to force the calculation to use the same baselines Stata does.
Mind you that does get rid of that test's ability to confirm that we are converting logical and character IVs converted to factors correctly.  The fragility of how R chooses baselines makes this tricky to test if there's no true baseline invariance unfortunately.  But maybe I should see if I can spin up a comparison that will be robust across testing environments.
So, I think that leaves these tasks for me:

[ ] Have the failing test use fixed factor reference levels
[ ] Write a new test to confirm that character and logical IVs are correctly handled as factors
[ ] Report Stata's baseline non-invariance

Okay should be all set now.  I still need to report the bug to Jann, but this PR should be good to go with all tests passing in both the automated and interactive environments.  So @sinanpl, feel free to have at it!

Just reported this at https://github.com/benjann/oaxaca/issues/1.  The repo was last updated a little over a year ago, so hopefully Jann will see it there; if not then it might be a good idea for me to send him an email.


Support constructors along with convert

Currently, using DomainSets v0.7.2, the following works:
julia> p = Point(2)
Point(2)

julia> convert(Int, p)
2

but the constructor doesn't:
julia> Int(p)
ERROR: MethodError: no method matching Int64(::Point{Int64})

It would be good if these were equivalent, with the convert method calling the constructor.

Hmm, I'm not sure whether this is possible or desired. The conversion works because of these lines:
convert(::Type{Number}, d::Point{<:Number}) = d.x
convert(::Type{N}, d::Point{<:Number}) where N<:Number =
    convert(N, convert(Number, d.x))
Number(d::Point) = convert(Number, d)

This means that conversion to number types work for all number types.
However, Int is just one specific number type. Adding Int(p::Point{Int}) is a bit random, because why not add Float64(p::Point{Float64}) and all other possibilities? If there is no way to add all constructors, I think I'd rather add none.

There is actually a way to add all possibilities by dispatching on the type of the constructor:
(::Type{T})(p::Point) where {T<:Number} = T(p.x)

e.g.:
julia> p = Point(3)
Point(3)

julia> (::Type{T})(p::Point) where {T<:Number} = T(p.x)

julia> Int(p)
3

julia> Float64(p)
3.0

Did not know that - alright, that makes the constructor more appropriate than convert. There are probably more instances of this in the package.


Add option to disable noundefined extension for TeX in v3

Is your feature request related to a problem? Please describe.
I don't wan't users to be able to save invalid TeX.
Describe the solution you'd like
The library should throw an error if invalid TeX is entered while noundefined is disabled.
Describe alternatives you've considered
v 2.7 where this was possible: TeX: { noUndefined: { disabled: true } }

There is already a way to do that:
MathJax = {
  tex: {
    packages: {'[-]': ['noundefined']}
  }
}

which will remove the noundefined extension from the packages loaded by the TeX input jax.
The general process for this is listed at the end of the Configuring MathJax, though it could be mentioned in the extension configuration sections for noundefioned and noerrors.

Good to hear that the option still exists. The documentation could be a little more precise here, yes. Especially it's not clear that removing the extension will lead to new errors which was mentioned in the v2 documentation. Thanks for clarifying this!
(Not sure if I should close this or keep it open for you as a reminder to fix the documentation)

I will leave it open and mark it as needing documentation.

OK, so I disabled the noundefined extension and get rendered error messages like undefined control sequence \abcdef now. But I cannot detect whether such an undefined sequence was entered because in the code there is no error thrown. Is there another option to enable this hidden somewhere? I looked through the docs but couldn't find anything. Here's my code:
MathJax.tex2svgPromise(`\abcdef`, options).then(function (node) {
    outputElement.appendChild(node);
    MathJax.startup.document.clear();
    MathJax.startup.document.updateDocument();
}).catch(function (err) {
    console.log(err); // This is not called for undefined sequences
});

Is there another option to enable this hidden somewhere? I looked through the docs but couldn't find anything.

Use the formatError option in the tex block, as documented here.  (You could find it by searching for "Error".  The first entry is "TeX Error Formatting" which leads you to a description of this option.)  You can use something like
MathJax = {
  tex: {
    formatError(jax, err) {throw err}
  }
}

to cause TeX input error to be fatal (they will trigger your catch function.
Also note that when MathJax inserts an error message, it marks it with the data-mjx-error attribute, so you could do something like
function (node) {
  const errNode = node.querySelector('[data-mjx-error]');
  if (errNode) {
    // do something with the error (errNode.getAttribute('data-mjx-error') will be the error message).
  } else {
    // process normally
  }
}

BTW, you may get better results if you insert the math into the page and call MathJax.typsetPromise() rather than typesetting outside of the page and then inserting the result.  This will allow MathJax to properly determine the size of the surrounding font, the wrapping width (for when that is implemented), and other values that improve the output.  For example, characters that are not in the MathJax fonts will be able to be measured properly that way.
Also, you may want to look at the documentation about handling asynchronous typesetting and chain your promise calls so that you don't accidentally call MathJax while it is already running.


helm: added scheduler requeue sleep environment variable

closes https://github.com/reanahub/reana-server/issues/382

Codecov Report

Merging #514 (aa27b3a) into master (2a07927) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #514   +/-   ##
=======================================
  Coverage   15.04%   15.04%
=======================================
  Files          17       17
  Lines        1509     1509
=======================================
  Hits          227      227
  Misses       1282     1282

Works well, needs rebase.


Meta Model Average vs. Sum Operators

For the Meta Model, it appears that ALE calculations are a Sum of all downstream models, instead of an Average, I am unsure if this is FAIR-esque but it feels like it should be an Average across all potential loss scenarios / threat communities evaluated. I only wonder this because it is quite easy to push up average ALEs into the several Billion dollar cap and that Sum feels like an assumption is made every scenario will happen at once.
The preferred behavior would be a flag to choose the Aggregation by Sum or Average (or other things I guess) - some scenarios may make sense to do serially (e.g. a data exfil event along with a ransomware event)
For instance, here is the output of a Meta Model from a handful of TCOMs with dummy data

mean
stdev
min
max

State   Actors Model
$1,030,199,841
$888,260,670
$4,377,753
$5,551,151,462

State-sponsored   Actors Model
$11,728,227
$9,979,715
$63,759
$58,396,462

Organized   Crime Model
$0
$0
$0
$0

Hacktivists   Model
$0
$0
$0
$0

Cyber   Espionage Model
$0
$0
$0
$0

Accidental   Insiders Model
$0
$0
$0
$0

Privileged   Insider Threats Model
$435,876,396
$374,137,344
$1,906,190
$2,457,416,921

Unprivileged   Insider Threats Model
$2,111,754
$1,812,884
$10,301
$10,794,341

Opportunistic   / Unskilled Attackers Model
$0
$0
$0
$0

Risk
$1,479,916,218
$966,145,076
$17,907,282
$6,288,729,598

To combat this I can take averages of the POA and TCs across all TCOMs, but that doesn't feel like the right oomph - I like to show where we have strong resistance against a specific threat community as this also informs our Red Team operations.
I can also provided this mocked up data, well some of it, my print statements were errant as a to_json() model.

TL;DR: maybe? I'll take a look this weekend. This class was intended to present information on the aggregate risk.
Disclaimer: aggregation is undefined in the Open FAIR standard; the FairMetaModel is essentially "what Theo believes the Open Group would have done if they covered this topic".
The FairMetaModel's intent was to get the total anticipated loss exposure for a given time frame. If I have a "State Actors" model for 2022 and a "Hacktivists" model for a particular application in 2022, our total loss exposure for that application in 2022 will be "State Actors" PLUS "Hacktivists" ... as they are simply components of a larger risk (presuming independence). This tells generic executive what the effect is on the company's bottom line.
The average loss exposure for a given threat community is an interesting metric. It doesn't seem to have the same utility, however and seems to be more appropriate for a separate class or a FairSimpleReport([hacktivist, state_actor]).

@jonrau1 , if you could attach the mocked up data that would also be helpful.

@theonaunheim I think perhaps another Class of Models then, if possible, I appreciate I'm opening up Issues like a madman and appreciate you looking into it. I did not think of doing a FairSimpleReport from all the models first, so that will work for now, but we will still need to average out TC and POA across a whole slew of Threat Communities which feels a bit deluded - but I suppose it's the only way to get it done right now without shooting the aggregate risk way up.
If it helps (not sure if it came across clearly in the original Issue text) the way we do it is define yearly threat radars and use CTI, Red Team Ops, and Wild Ass Guesses (WAGs) to fill in POA and TC and the intended idea is that per application we have to do simulations against all of the Threat Communities as more of a governance tool to argue "Hey, don't like that sticker shock from ALE? Then do X, Y and Z like you have to to resist X, Y or Z threat community". I was hoping the Meta Model would average all of those out as we don't expect multiple Threat Communities per Scenario to attack us all at once - though that could be something good to use - hence both an Average and the current Sum to model that "Black Swan" event.
Then from there we group all of the simulated Applications and roll them up under their Divisions, Business Leader, Market Segment, etc. - so for that meta model it actually makes sense to have the aggregate across all applications as it's more than likely the events and threat communities we model / hunt for will attack multiple applications or move laterally throughout a segment. However having the option to present both Average and Aggregate based on the Simulation and not simply rolling up TC/POA/V, etc. would be cool. Even if that means I calculate a FairMetaModel and FairAverageModel and run them both into a FairSimpleReport to show the difference, or give two sep. reports.
I attached a few older TCOMs and some placeholder data (the LM is actually pretty realistic based on ORX, SEC, GDPR and Cyber Insurance payout info) as a TXT file, hope it helps.
tcom-mock.json.txt

Hi gents,
yes this is a common use case as far as I know and we do a very similar analysis.
I have wrote some code to accommodate @jonrau1 example on this Colab notebook.
I am not sure about the last step required, do you want to create a combined LOE for all the entries on the table or just a comparison of the single LOE?
A few more questions for curiosity:

do you calibrate your WAGs estimate?
how do you use ORX to estimate the loss magnitude? It is just a taxonomy, do you pay their premium services that gives you datapoints for estimation?
SEC = security exchange commission?
TC = threat contact frequency?

I hope to be of some help.
Cheers!

I also like the idea of a MetaModel where the user can decide and/or provide the joint or conditioned probabilities with multiple threat actors.
This will enable us to model events such as the loss related to P(ransomware|phishing) or to P(ddos,data_breach).
I am not sure whether this was related to the other discussion with pomegrenate and in any case will require the user input to provide the probability distributions.

@priamai thanks for your Jupyter-fu, much better than what I would have done. For the first question we'd prefer to show an Average within the Meta Models, and ideally within the Simple Report, the key goal is not just getting

I think the goal is:

Feed a grouping of models into a new class that has the same basic summary/export methods of the FairMetaModel, but that doesn't add the components into an Overall "Risk" column during "calculate_all()"
Have the FairSimpleReport recognize this new class, and 1) break out its components to graph the distribution, tree, and loss curves like you would for a list of regular models;, and 2) then plot the components like subparts of a metamodel with violins?

Am I understanding this correctly?

RE: 1 - Instead of adding all Risks together it should ideally take the average / mean of all of them and present it that way. So if Risk A is $1000 and Risk B is $100 at the MAX I should get a MAX ALE of $550 and not $1100 as it currently is.
RE. 2 - That's worded a lot better than I tried to articulate it, yes!

RE: 1 - Instead of adding all Risks together it should ideally take the average / mean of all of them and present it that way. So if Risk A is $1000 and Risk B is $100 at the MAX I should get a MAX ALE of $550 and not $1100 as it currently is.
RE. 2 - That's worded a lot better than I tried to articulate it, yes!

I am confused about your example: ALE1=$1000,ALE2=$100, MAX(ALE1,MALE2)=$1000 not $550, maybe you meant AVG(ALE2,ALE2) = 550? @jonrau1
My preference for the data frame will be to have indeed multiple Risk columns (one for each simulation run) associated with the different loss events. I would prefer to have multi level columns where maybe the top level is the threat vector and the bottom level are the FAIR columns as they are now.
I can then decide to apply a specific operator across the rows or columns.
I can write a mockup if is not clear @theonaunheim .
Cheers!

RE: 1 - Instead of adding all Risks together it should ideally take the average / mean of all of them and present it that way. So if Risk A is $1000 and Risk B is $100 at the MAX I should get a MAX ALE of $550 and not $1100 as it currently is.
RE. 2 - That's worded a lot better than I tried to articulate it, yes!

I am confused about your example: ALE1=$1000,ALE2=$100, MAX(ALE1,MALE2)=$1000 not $550, maybe you meant AVG(ALE2,ALE2) = 550? @jonrau1

Yeah poorly worded, meant averages of the max. Edited 😬

Awesome. Thanks for elaboraring. Will figure out feasibility this weekend.


configure: Add compiler flag to ignore int-in-bool-context errors fro…

…m GCC 7.
The offending code has already been removed from the master branch.
We can't remove these identifiers from the 1.x branch w/o breaking
backward compatability. GCC 7 doesn't like how we use them though so
we've gotta ignore the warnings it spits out.
Signed-off-by: Philip Tricca<EMAIL_ADDRESS>

@flihp we are using the same flag though.
Maybe you could also use -Wno-int-in-bool-context instead of -Wno-error=int-in-bool-context?
I chose that flag since I didn't see the value in having the build warning for a known issue.

Makes sense to me. I didn't know you could do that.

updated PR to account for suggestion from @martinezjavier


Fix unquoted command args with leading +

This PR fixes #131  by grouping "+/-" and digits in decimals.
Related test cases in cmd-026-unquoted-string-with-leading-plus.

Thanks!


Response headers affectation

Hello,
We encountered a crash of the HTTP gateway during the assignment of the response headers.
This error occurred because of invalid characters in one of the header keys.
Several ways have been identified to avoid this crash:

sanitizing the keys/values at assignment time in the $responseHeaders variable
sanitizing the keys/values through the onAfterCall hook

However, we believe that crashes could be avoided more globally by securing the sendResponse and sendError processes.
Do you want us to propose a change to the moleculer-web component to implement these operations?
If so, we would like to include a log (warn or error) and skip the assignment of the problematic header.
Would this be acceptable to you?

Yeah, please create a PR with your proposed fix.

Hello @icebob,
Sorry for the delay; you'll find a pull request here to avoid process crashes on invalid header character assignments.


Push notification in IPad with IOS 9.3.4 is not working

Expected Behaviour
Expecting to receive push notification same as other latest version of IOS
Actual Behaviour
Not receiving any notification on IPAD with IOS 9.3.4
Reproduce Scenario (including but not limited to)
Just use the app on IPAD 9.3.4
Steps to Reproduce
Run the app and then send push notification, all other OS version ( 12+) and Android any version notification working except on this
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
IOS 9.3.4
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
cordova --version
9.0.0<EMAIL_ADDRESS>
cordova platform version android
Installed platforms:
android 8.0.0
ios 5.0.1
Available platforms:
browser ^6.0.0
electron ^1.0.0
osx ^5.0.0
windows ^7.0.0
Plugin version
cordova plugin version | grep phonegap-plugin-push
phonegap-plugin-push 2.3.0 "PushPlugin"

Sample Push Data Payload
Sample Code that illustrates the problem
Logs taken while reproducing problem

2.3.0 doesn't support iOS 9.
It should have been 3.0.0 and it should have documented that iOS 9 wasn't supported. I reported that long ago.
https://github.com/phonegap/phonegap-plugin-push/issues/2835


NaN is not considered falsy

TypeScript Version:  3.9.0-dev.20200222

Search Terms: NaN Truthiness Falsy
Code
function bool(): boolean { return false; }
function number(): number { return NaN; }

let a = number();
let b = bool();

const x = a && b; // type = boolean | 0
console.log(x); // prints NaN (which is neither boolean, nor 0)

Expected behavior:
Type of x should be number | boolean.
Since NaN isn't a "unit type" like 0, we can't express NaN without using number.
Actual behavior:
Type of x is 0 | boolean.
Playground Link: playground link
Related Issues:
https://github.com/microsoft/TypeScript/issues/32778 (Incorrectly marked as duplicate?)

See also #32277 - would need a NaN type to represent this

Looks like people might be slightly talking past each other here.   Soundness would require that a number which has been determined to be falsy should be narrowed to type 0 | typeof NaN.
So either:

NaN should have its own numeric literal type, despite this comment in #9407 saying we don't need it.  This is a duplicate of #15135, but maybe we should revisit it here?
Falsy checks on number shouldn't narrow at all since 0 | typeof NaN is just number.  That seems to be what this issue is specifically asking for.
Everything stays as it is and we don't really care about soundness when it comes to NaN and truthiness.

May I politely suggest changing the title to "NaN incorrectly narrows to 0" or something similar? I
think it would help ensure that this is correctly identified as a bug .


Update nl.coffee

Some new translations.

Coverage remained the same at 56.177% when pulling afb87c2af3ff6d9519606a356f88a74f235f6595 on JurianLock:patch-19 into 5fe3a75464a3f42e8f1e810740e4b00691cc902e on codecombat:master.

Thanks! Merged.


Modify the Evaluator and Estimator APIs

Evaluators should support custom loss functions to compare the actual and expected outputs of program.
The .fit() method of the estimator should support either:

.fit(X, y, loss_fn) where loss_fn is a custom loss function.
.fit(evaluator) where evaluator is an instance of an evaluator to use in place of a dataset.

@erp12 This indeed seems to be a big limitation of the library/API.
Are you planning to work on this?
The last commit was 4 months ago, it seems that you're not planning to work on this and the other issues any time soon.

This project is not abandoned :)
I dedicate some of my free time to the development of PyshGP (and other projects) and I am currently the only contributor. We all have to choose how to best spend our time, and it isn't every day that this library reaches the top of my priorities.
That said, contributions are always welcome. If you would like to work on a pull request for this, I would be happy to assist you. I can provide more details on what parts of the codebase would need to change, if you are interested.


[Flaky CI] [test_id:3985]should create a virtual machine with sriov interface with custom MAC address

/kind bug
What happened:
https://prow.apps.ovirt.org/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/4463/pull-kubevirt-e2e-kind-1.17-sriov/1323866556106543104
tests/vmi_multus_test.go:789
Unexpected error:
    <*errors.errorString | 0xc002bdef30>: {
        s: "could not get sriov interface by MAC: no interface on VMI testvmihx92cqktrhljjfqppxdppcfmg6khzl8wzkvvx82g9npqdcck with MAC de:ad:00:00:be:ef",
    }
    could not get sriov interface by MAC: no interface on VMI testvmihx92cqktrhljjfqppxdppcfmg6khzl8wzkvvx82g9npqdcck with MAC de:ad:00:00:be:ef
occurred
tests/vmi_multus_test.go:801

What you expected to happen:
Should pass
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
#4335 handles it
(little issue known but due to other bug, details in the PR)
Environment:

KubeVirt version (use virtctl version):
Kubernetes version (use kubectl version):
VM or VMI specifications:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

/assign

@ormergi FYI, if you see the error mentioned in the description (i saw it on CI and locally), i fixed it on the mentioned PR.

/triage build-watcher
(sorry for the noise, I just want to make sure it's easy to search for non-flakiness issues)


Update CNAME

Commit cherry-picked from the gh-pages branch.

Deploy preview for openbuildservice ready!
Built with commit 36b247021a933a8034f02a8be3e5401ef2ba2618
https://deploy-preview-280--openbuildservice.netlify.app


Update to trivy-operator v0.1.0

Checklist

[x] Update changelog in CHANGELOG.md.
[ ] Make sure values.yaml and values.schema.json are valid.

Tested on ghost and in a WC. Seems to be fine in both, no errors in logs and reports are created, no errors in exporter


What about an "active" (e.g. a button) Widget?

Hi.
I'd like to add some active control features to a freeboard dashboard by designing some new widget embedding something like buttons, togglebuttons, slider, checkbox and so on.
Is current widget plugin model suitable? Could you please suggest me what should I do according to you?
Thanks!

Can anyone build complete control wiget to Freeboard ?
Like: http://demo.openhab.org:9080/ui/index.html#/control
Thanks

+1 Is there an update to this issue? thx

I see that this issue is closed, is it because the feature request is not on the roadmap anymore, or is it because it is not the wanted way to use github features?
I think freeboard has great potential combined with openhab.

It is a mystery to me why this hasn't been addressed.   A read/only view of sensor data with no ability to trigger an actuator or set config parameters is very limiting.  Under the covers Freeboard was designed to be readonly, however, extending the API is certainly feasible.
Some people have added write features using timer events and global variables (see  https://freeboard.io/board/53a290bada62238f5d000139 ) - but it is architecturally messy.
We must assume that the author/maintainer of this GIT doesn't have the time or inclination to add this feature, and that for such changes to be made, those who want them will need to find a way to make them happen independently. i.e. a kick starter type campaign.
Perhaps those reading this thread can nominate their interest and how much they'd be prepared to pay to see such a feature - then someone might take it up.    I'm happy to start - and will throw say US $50 into the pot.

Hi @nzfarmer1 (et al),
Thank you all for your interest in this feature.  You are correct - with the current design of Freeboard (e.g.: Data -> Freeboard Datasource -> Freeboard Widget -> Display), there isn't a clean model for sending data to the outside world FROM Freeboard.
The current method for doing this is to a) Use the HTML widget to define button/actuator assets; b) create an external javascript file which defines the .click() function for these HTML assets; and c) include that .js file via the Developer Console in the bottom right corner of Freeboard.  Within the click() function is where you would include, say, an ajax request to the API/endpoints you want the HTML assets to trigger when clicked.
A great example is at https://rl78.freeboard.io (latest version of the dashboard referenced by @jheising previously in this thread) - from this dashboard you can trigger the buzzer, lcd, and LEDs on the Renesas RL78 development kit.  Clone this example, and check out both the HTML widgets and the .js file referenced in the Developer Console.
But, to @nzfarmer1's point, this isn't the most intuitive way of achieving the desired functionality.  Will look into this over the next few days and see what we, on the Bug Labs team, can potentially do to accelerate this feature.

Wow, couldn't ask for any more speedy feedback than that. Thanks and have a great weekend! Will follow any developments with great interest.

I don't know if anyone has started progress on this but i have started making some changes. My initial idea is that:

WidgetModel injects a send method into each widget instance, widgets can then call this method to tell the outside world about an update.
Widgets then implement interaction however they want, i've got a couple of example widgets that bind click to the container
The injected method searches the specified datasource for a corresponding send method, which each datasource must implement to actual send the data.
Datasource implements send, say for mqtt which sends an value back out on the specified mqtt topic

I'm not entirely happy with this as a solution as it still introduces some coupling, but its a start. I'll post an example shortly...

Stu,
I'd been pushing for this for sometime.  Freeboard looks great.  However, just FYI, we're now focussing our efforts on Home Assistant which is architecturally designed from the ground up to accommodate changes in state.   With no disrespect to the freeboard guys, it is worth a look.

Hey guys.  I'll chime in here.  If you're a developer, be sure to check out the widget plugins I built that allow you to build a widget using reactjs or handlebars templates.  I'm not exactly sure I understand what folks are trying to do here, but putting together a widget that auto-updates based on datasource changes AND exposes a UI (buttons, etc.) that can send messages to a backend (via XHR or socket.io) should be trivial.  Granted, it's not strictly point and click like the read-only stuff and requires a few lines of code, but it should easily be doable.  Let me know if I'm missing something.

Ok got a basic example together:
Inject a send method into each widget instance:
https://github.com/stufisher/freeboard/commit/c75b0e574717cb3f6b42da34e896265be22751c0
Modified mqtt library that can send on the specified topic:
https://github.com/stufisher/freeboard-mqtt/commit/a87da9c91810bd77f3dbc0abfb13f36ea4415d43
and a couple of example interactive widgets:
https://github.com/stufisher/plugins/commit/0891e10512f23ba92a1339ed46ab99feabdf668a

Add an interactive widget to your dashboard (gauge or indicator), point the "datasource to send to" as something like datasources["datasource1"]
datasource1 must implement a send function

@stufisher thanks a lot, I was looking for exactly this! Just one question: How can I change the value that is sent? e.g. send 1 instead of true?
It would be helpful if these extensions could be merged into freeboard as it was pretty hard to find.

@solars you define the return value for example here:
https://github.com/stufisher/plugins/blob/master/widgets/interactive_indicator.js#L64
https://github.com/stufisher/plugins/blob/master/widgets/interactive_gauge.js#L147

Actuator widget plugin ( based on stufisher work)

:
Available @ https://github.com/onlinux/freeboard-actuator-plugin

@stufisher thanks for your plugins, I have similar question as the one asked by solars.
Could you make send value support js editor to return a custom value?

Hello everybody
i tried this commit, but still met a issue "this.sendValue is not a function". Do you meet this situation like me ?
Thank you so much

@duythang : Have you loaded the "WidgetModel.js" in your "index.html"?

@joeychen : WidgetModel.js was already in lib/js/freeboard folder. I dont understand what you mean.
Thanks

head.js("js/freeboard_plugins.js",  // *** Load more plugins here *** "lib/js/freeboard/WidgetModel.js",

@joeychen : Did you run well with the ideal of @stufisher ? I think his commit is only a example for future implementation. Until now, his commit cannot run in my opinion.
Thanks

@duythang : I have tried his commit and it works well. However, it will be better if I can customize the send value format using javascript editor like the received value.

@joeychen: thank you so much. I will check again

Rather than URLs, which are a bit limiting, why not properly standardize this as "Data Targets"?    A data target would be just like a data source, with different things available, and widgets could allow you to chose one, and they'd just dump data to the handler function.
From there, it would be possible to do some seriously cool stuff, especially since this runs offline and so can be embedded in just about anything.
For one thing, data targets could act as data sources as well.   Want to make a handy JS calculator?  Just make a text box bound to an expression that uses your inputs!
This could be used for showing people the value they set, with different unit conversions, the difference between measured and setpoint value, or whatever else, and would make freeboard a very general purpose tool that could handle a huge number of admin tasks.

Update:  I have a fork of the project with a working implementation of some UI and helper function convenience around 2-way data sources.    There's a new data type called 'target', and you can then say 'self.targets'settingname'' to push that value to whatever the user selected as a target, with a simple assignment expression that the datasource plugin can intercept.
I'm not going to make a PR unless there's some real interest, my fork isn't exactly compatible, I've changed other things like using spreadsheet style =syntax for expressions, and it would take some effort to make a clean PR.
https://github.com/EternityForest/freeboard