Installation

Hello,
Thanks for starting this development, I am very keen on being able to control my Aircons through HA and get rid of that horrible Aircloud app. I have added the repo in HACS, the login details in configuration.yaml and restarted, but I am unable to see a climate entity. What am I missing here to complete the install and test this out ?

Hi! Thank you for use it.
You need use config
configuration.yml:
air_cloud:
email: "email"
password: "password"
climate:

platform: air_cloud

lovelace object:
type: custom:simple-thermostat
entity: climate.kitchen_ac
header:
name: Kitchen AC
layout:
mode:
headings: false
Entity IDs will load from airCloud
I tested it 5 minute ago. API is not reasonse and mobile Air Cloud app not working now. Probably after some time it will be work. I will follow the integration work

Thanks, I have the correct entries in configuration.yaml, but I also discovered that the app is not working as you said which is probably the root cause. I shall wait and see if it works when the service comes back online. I wish there was a way to operate these wifi adapters locally without having to use the AirCloud service...

So the API has come to life again and the installation completed with entities created, and it all looks great. However, i'm not able to turn the aircon on or off, if I change it to cool the card updates but nothing happens on the physical device and 60 seconds later the status is reset to "off". I was going to blame their flakey API, but interestingly enough the mobile app is quite snappy today and reacts on a turn on/off in 2-3 seconds.
Any ideas, is this working for you at the moment ?

Thanks,
The models I have are:
RAK-50RPE
RAK-25RPE
RAK-18RPE
If it helps, the bash script used by the this project https://github.com/lb544/ha-aircloud does work to turn on/off my aircons, though its missing other functionality that you have resolved.

Hello,
Unfortunately the API was down most of the day yesterday (as usual), but I have tested it today and receiving this message when toggling to "cool" to start the aircon
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1849, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1889, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 798, in entity_service_call
future.result()  # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 980, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 838, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 497, in async_set_hvac_mode
await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/air_cloud/climate.py", line 174, in set_hvac_mode
self.__execute_command()
File "/config/custom_components/air_cloud/climate.py", line 224, in __execute_command
self._api.execute_command(self._id, self._power, self._target_temp, self._mode, self._fan_speed, self._fan_swing, self._humidity)
File "/config/custom_components/air_cloud/api.py", line 62, in execute_command
_LOGGER.debug("AirCloud command response: " + response)
TypeError: can only concatenate str (not "Response") to str

I have updated to 1.08 but it still doesn't seem to be working, and I'm not getting much in the logs either. Only entry I can find is this
2023-05-18 11:05:16.403 DEBUG (SyncWorker_4) [custom_components.air_cloud.api] AirCloud command response: <Response [400]>

I check the AirCloud app and API seem to be working OK today.
Is this currently working for you ? Anything else I can do to help troubleshoot, let me know please

Actually, I did a manual update of the humidity variable and set it to a static 50 and it started working again, if that can help you figure out what's wrong
This works
def execute_command(self, id, power, idu_temperature, mode, fan_speed, fan_swing, humidity):
     self.__refresh_token()
      command = {"id": id, "power": power, "iduTemperature": idu_temperature, "mode": mode, "fanSpeed": fan_speed, "fanSwing": fan_swing, "humidity": 50}
      response = requests.put(API_HOST + CONTROL_URN + "/" + str(id) + "?familyId=" + str(self._family_id), headers=self.__create_headers(), json=command)
        _LOGGER.debug("AirCloud command response: " + str(response))

I add more info for debug and remove id parameter it not needed. Status 400 is bad parameters in request. Now it works for me. But humidity parameter not work for my models

I have install 1.09 and I seem to be getting some more debug info in the logs now
{"notificationType":"ON_CONNECT","data":[{"serialNumber":"XXXX-XXXX-XXXX","iduFrostWashStatus":{"active":false,"priority":8,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"model":"HITACHI","id":5935,"vendorThingId":"JCH-886a232d","name":"Living Room","roomTemperature":22.0,"mode":"COOLING","iduTemperature":22.0,"humidity":126,"power":"OFF","relativeTemperature":0.0,"fanSpeed":"LV1","fanSwing":"BOTH","updatedAt":1684425850976,"specialOperationStatus":{"active":false,"priority":7,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"errorStatus":{"active":false,"priority":4,"lastUpdatedAt":0,"subCategory":"NO_ERROR","errorCode":null},"lastOnlineUpdatedAt":1683633040682,"scheduletype":"SCHEDULE_DISABLED","modelTypeId":155,"cloudId":"155_RAK-50RPE","opt4":0,"holidayModeStatus":{"active":false,"priority":0,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"online":true},{"serialNumber":"XXXX-XXXX-XXXX","iduFrostWashStatus":{"active":false,"priority":8,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"model":"HITACHI","id":5956,"vendorThingId":"JCH-886a2657","name":"Dining Room","roomTemperature":22.0,"mode":"AUTO","iduTemperature":0.0,"humidity":126,"power":"OFF","relativeTemperature":0.0,"fanSpeed":"AUTO","fanSwing":"OFF","updatedAt":1684352664110,"specialOperationStatus":{"active":false,"priority":7,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"errorStatus":{"active":false,"priority":4,"lastUpdatedAt":0,"subCategory":"NO_ERROR","errorCode":null},"lastOnlineUpdatedAt":1684219040162,"scheduletype":"SCHEDULE_DISABLED","modelTypeId":155,"cloudId":"155_RAK-25RPE","opt4":0,"holidayModeStatus":{"active":false,"priority":0,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"online":true},{"serialNumber":"XXXX-XXXX-XXXX","iduFrostWashStatus":{"active":false,"priority":8,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"model":"HITACHI","id":10819,"vendorThingId":"JCH-886a1ff8","name":"Office","roomTemperature":22.0,"mode":"COOLING","iduTemperature":18.0,"humidity":126,"power":"OFF","relativeTemperature":0.0,"fanSpeed":"AUTO","fanSwing":"BOTH","updatedAt":1684426200626,"specialOperationStatus":{"active":false,"priority":7,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"errorStatus":{"active":false,"priority":4,"lastUpdatedAt":0,"subCategory":"NO_ERROR","errorCode":null},"lastOnlineUpdatedAt":1684219052487,"scheduletype":"SCHEDULE_DISABLED","modelTypeId":155,"cloudId":"155_RAK-50RPE","opt4":0,"holidayModeStatus":{"active":false,"priority":0,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"online":true},{"serialNumber":"XXXX-XXXX-XXXX","iduFrostWashStatus":{"active":false,"priority":8,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"model":"HITACHI","id":5955,"vendorThingId":"JCH-886a1c6c","name":"Bedroom","roomTemperature":22.0,"mode":"AUTO","iduTemperature":0.0,"humidity":126,"power":"OFF","relativeTemperature":0.0,"fanSpeed":"AUTO","fanSwing":"OFF","updatedAt":1683923976587,"specialOperationStatus":{"active":false,"priority":7,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"errorStatus":{"active":false,"priority":4,"lastUpdatedAt":0,"subCategory":"NO_ERROR","errorCode":null},"lastOnlineUpdatedAt":1683926228511,"scheduletype":"SCHEDULE_DISABLED","modelTypeId":155,"cloudId":"155_RAK-18RPE","opt4":0,"holidayModeStatus":{"active":false,"priority":0,"lastUpdatedAt":0,"subCategory":null,"errorCode":null},"online":true}]}
2023-05-18 16:12:38.738 DEBUG (SyncWorker_4) [custom_components.air_cloud.api] AirCloud climate data: MESSAGE
destination:/notification/11125/11125
content-type:application/json;charset=UTF-8
subscription:666652ba-f0f0-41a8-9418-8c3f7c892fcb
message-id:3c1994d5-9484-9f67-8ae1-7a921c3d27c2-12203
content-length:3435

Note that humidity is 126, I think your code only sets it if <=100 (I am not a developer though..). So maybe this isn't a percent value ?

For my models this value is always equal max integer. I don't know what those units are(

I think they are the standard hitachi line with the external wifi modules added, so I doubt this is an edge case even though they are different from yours.
https://www.maison-energy.com/climatisation-R4/rak-50rpe-M113899.html
Would it be possible to make the value selectable or something just so it can be used by other models than the one you have ?

I upgraded to 1.10, still not working (sorry) and a new message in the log
2023-05-19 15:48:20.999 DEBUG (SyncWorker_8) [custom_components.air_cloud.api] AirCloud command response: b'{"type":"Fri May 19 15:48:20 GMT 2023","desc":"uri=/basic-idu-control/general-control-command/5935","stackTrace":"INVALID_HUMIDITY","code":null}'

Is 50 humidity suitable for your model? May be create parameter in configuration with magic number?

Check out this article, maybe set it to 40 if it’s a static ? https://www.hitachiaircon.com/newsroom/en/news/what-s-the-ideal-indoor-humidity-and-how-can-it-be-managed

I get error INVALID HUMIDITY for my models for any value not equal 0. Looking your log this value it not percent. Are you change it? What values work for you?

I have only tried "humidity": 50 which works fine. Is there any way to check for the support of the humidity input and exclude if for your models ?

I have looked again in the AirCloud app and I can't see any way of setting the humidity there.

I have tried a couple of manual starts of cooling, heating, drying from the air cloud app and if the debug info I see in HA is humidity: 126 every time

I'll do some weird logic) Perhaps in the future there will be statistics to correct this.

So the weird logic seemed to work and on/off is working OK now. There is a problem with the "Swing" though which I haven't had time to properly troubleshoot yet, I will open a new issue once I have some details to share


JBPM-5030: Access control based on the new UF's authz subsystem

Changes required to support the new UF's security APIs
This PR depends on uberfire/uberfire#321

+1 (after UF)


Is it allowed to define a setter in extension on class that has the getter ?

I get an error with the following code but I would have guess it worked. Is it the expected behaviour?
class A {
  String get a => null;
}
extension on A {
  set a(String value) {}
}

main(){
  A().a = ''; // error: There isn’t a setter named 'a' in class 'A'
}

Yes, getters and setters are bundled into a single entity in the sense that a lookup for any of the two will find either kind, and commit to using the scope where it was found.
So if you look for a setter a=  and find an instance getter a in the enclosing scope, then the setter must also be an instance setter (that is: it must come from the same scope):
void set a(_) {}

class A {
  String get a => '';
  void foo() { a = 'Hello'; } // Error!
}

Thanks for the explanation!


Ensure PublishEventWithAzureIdentity publishes all events

PublishEventWithAzureIdentity demonstrates how to send events using EventDataBatch to an Event Hub. Unfortunately, current sample does not send anything because last EventDataBatch is not sent.

A co-worker executed this sample to reproduce https://github.com/Azure/azure-sdk-for-java/issues/8127 and was puzzled to not observe new events :smile:


I am trying to build tensorflow from source code and error happed

after :bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
Things happend like this:
WARNING: /home/lixinyu/tensorflow/tensorflow/tensorflow.bzl:477:26: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
WARNING: /home/lixinyu/tensorflow/tensorflow/tensorflow.bzl:490:24: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
WARNING: /home/lixinyu/.cache/bazel/_bazel_lixinyu/824013fbb9b22e08d948a2226491e595/external/protobuf/protobuf.bzl:90:19: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
WARNING: /home/lixinyu/.cache/bazel/_bazel_lixinyu/824013fbb9b22e08d948a2226491e595/external/protobuf/protobuf.bzl:96:28: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
ERROR: /home/lixinyu/tensorflow/tensorflow/python/BUILD:1044:1: in cc_library rule //tensorflow/python:tf_session_helper: non-test target '//tensorflow/python:tf_session_helper' depends on testonly target '//tensorflow/python:construction_fails_op' and doesn't have testonly attribute set.
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted.
INFO: Elapsed time: 0.209s
I googled this but there is not a trustworthy answer to my issue

Running to the same thing error:
ERROR: /home/ubuntu/tensorflow/tensorflow/python/BUILD:1728:1: in cc_library rule //tensorflow/python:tf_session_helper: non-test target '//tensorflow/python:tf_session_helper' depends on testonly target '//tensorflow/python:construction_fails_op' and doesn't have testonly attribute set.
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted.
INFO: Elapsed time: 2.693s
Ubuntu 14.04
Using: tf 11 (tagged commit)
Bazel Info
bazel version
Build label: 0.4.0
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Nov 2 17:54:14 2016<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

FYI - I just pulled master down and was able to build.

@lixinyutfd  we can't really help you if you don't specify what operating system and version you are trying to build. Thanks @sono-bfio.

@aselle I am using ubantu 14.04 and 0-11-0 version.

@sono-bfio @lixinyutfd which bazel version are you using?
I think this can be caused by a bazel update.
There has been a non backwards compatible change in bazel.
Could you try with bazel 0.3.2 ?

@gunan  I am using 0.40 for bazel.

Then I am pretty certain it is with the bazel version.
Could you try with bazel 0.3.2?

I did successfully just now .
What I did is just pull the new master of tensorflow and it worked.
I dont think this is caused by bazel @gunan
Athough there are lots of info and warning during compiling. Is such warning normal ones or shows something wrong?

@lixinyutfd It is caused by an update in bazel.
They used to not care about "testonly" attributes in BUILD files.
With 0.4, they now do. Due to them not caring about testonly attributes before, our code evolved in such a way that we imported our test helper libraries into our pip package, which is obviously not test only.
On master, we did make the fixes and removed most testonly libs from pip package, so it builds successfully with the latest bazel version. In older releases, we did not make that fix, so they do not build with bazel 0.4.
The compilation warnings are expected. INFO and WARNING messages are mostly benign.

Will try with bazel 0.3.2 and let you know how it goes.

Hi everyone,
I am looking for some help regarding the same error message. I haven't found the way to downgrade bazel to the version 0.3.2,  I am doing :
root@tensorflow:~# sudo apt-get install bazel=0.3.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '0.3.2' for 'bazel' was not found
Below is my system configuration:
Tensorflow version:

tf.version
'1.0.0'

ARNING: /root/.cache/bazel/_bazel_root/ff219f214582e62419b9171e5b5ba9a0/external/protobuf/protobuf.bzl:90:19: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
WARNING: /root/.cache/bazel/_bazel_root/ff219f214582e62419b9171e5b5ba9a0/external/protobuf/protobuf.bzl:96:28: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
ERROR: infinite symlink expansion detected
[start of symlink chain]
/usr/local/lib/python2.7/dist-packages
Ubuntu version:
Description:	Ubuntu 16.04.2 LTS
Release:	16.04
Codename:	xenial
Bazel version:
Build label: 0.4.2
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Dec 7 18:47:11 2016<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>
Thanks

I realized I might be looking at the wrong error message above.
If you are trying to build 1.0 branch, any bazel version above 0.4.2 should work.
If you are trying to build an old branch, you can download an old version of bazel and install manually using the packages found here:
https://github.com/bazelbuild/bazel/releases


"Cut lowering line" option is freezing the game

Arma 3 Version: 2.16.151824 (profiling)
CBA Version: v<IP_ADDRESS>424 (stable)
ACE3 Version: 3.17.1 (stable)
Mods:
- CBA_A3
- ace
- RHSUSAF
- RHSAFRF
- RHSSAF
- RHSGREF
- ACE3 Arsenal Extended - Core
- NIArms All In One (V14 Onwards)
- ITN - Illuminate The Night
- -AMZ- Improved WS Sounds V7.8
- 3DMA - Alpha Group Equipment
- Zeus Enhanced
- Enhanced Movement
- USAF Mod - Main
- Hatchet Framework - Stable Version
-  =ATM= Altimeter
- 3den Enhanced
- A3 Thermal Improvement
- ACE Armor Adjuster
- Portable drone
- Simplex Support Services [DEV BUILD]
- Fawks' Enhanced NVGs
- Advanced Vault System: Remastered
- Better Inventory
- Death and Hit reactions
- BackpackOnChest - Redux
- Gruppe Adler Trenches
- Breaching Charge
- Zeus Enhanced - ACE3 Compatibility
- Enhanced Movement Rework
- Improved Melee System
- Breach
- Turret Enhanced
- ACEAX NIArms AIO Compat
- Weapons Balance - RHS
- ITN Compat NIArms
- Weapons Balance - NIArms (New)
- SPS Equipment
- 3DMA - Alpha Group Equipment [Legacy Extension]
- Dynamic Camo System
- HBQ_SpawnSystem
- LAMBS_Danger.fsm
- CE: Movement
- -AMZ- IWS - RHS AIO COMPAT
- ITN Compat RHS All-in-One
- cTab 1erGTD
- Zeus Additions
- Crows Zeus Additions
- Animated Recoil coefficient changer
- Project SFX: Remastered
- ACE3 Arsenal Extended - RHS All-in-One
- USP Gear - Core
- Simple Suppress
- Crows Electronic Warfare
- Task Force Arrowhead Radio (BETA!!!)
- TFAR Animations
- ETR Transfer Content
- Ammocan
- USAF Mod - Utility
- YuEmod
- USAF_AC130_BETA
- TPNVG - True Panoramic Night Vision
- CH View Distance
- Bullets_Hit
- Immersion Cigs
- Add & Remove Map Labels
- Splendid Smoke Rework
- Zeus Immersion Sounds
- CUP Terrains - Core
- LAMBS_RPG
- Simpel's MilGP Retextures
- isky's A.I Skill Tweaks
- USP Gear - Facewear
- RobTac
- Ladder Tweak Remastered
- PLP Markers
- Isky's Ragdoll Enhancement
- Better Convoy
- E22 - Russian Armed Forces
- RUSSOF_LITE_mas
- Advanced Urban Rappelling (Louis' ACEFIX)
- Hatchet H-60 pack - Stable Version
- KAT - Advanced Medical
- 3CB Factions
- Simunition - Pack
- Szwagier's Real Unconsciousness
- 121 USASOC Sniper Rifles Pack
- SPS Weapons V2

Preset file:
[Arma 3 Preset NOS 003 client.zip](https://github.com/mjc4wilton/BackpackOnChestRedux/files/15417341/Arma.3.Preset.NOS.003.client.zip)

Description:

When i select the "Cut lowering line" option, the game if freezing. After the client restart, can't connect back to server too...

Steps to reproduce:

Jump from RHS C-130J plane at 12000 m, open parachute, lower chestpack, cut lowering line

Where did the issue occur?

Dedicated, Self-hosted

Additional information:

Provide any additional information that will help us solve this issue.

RPT log file:
Server RPT: https://gist.github.com/rhidenor/ed5df3840319c770b1b10c1d2dcce296
Client RPT: https://gist.github.com/rhidenor/20db40459eb8bd8e8bd5faf9521c1ec5

Took me a bit to track down. Issue ended up being caused by running an attachTo on the holder which was holding the rope, which apparently crashes the game oddly enough. New builds are available on github and steam as v2.2.1


npm package installation fails in ubuntu

I'm submitting a ...
[ * ] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Do you want to request a feature or report a bug?
bug

What is the current behavior?

npm install command fails to install all the dependencies .
2656 silly saveTree +--<EMAIL_ADDRESS>2656 silly saveTree `--<EMAIL_ADDRESS>2657 verbose stack ZlibError: zlib: unexpected end of file
2657 verbose stack     at Zlib.(anonymous function).onerror (/usr/lib/node_modules/npm/node_modules/minizlib/index.js:131:21)
2657 verbose stack     at Unzip.write (/usr/lib/node_modules/npm/node_modules/minizlib/index.js:255:31)
2657 verbose stack     at Unzip.flush (/usr/lib/node_modules/npm/node_modules/minizlib/index.js:222:10)
2657 verbose stack     at Unzip.end (/usr/lib/node_modules/npm/node_modules/minizlib/index.js:229:10)
2657 verbose stack     at Object.end (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:415:21)
2657 verbose stack     at PassThrough.onend (_stream_readable.js:595:10)
2657 verbose stack     at Object.onceWrapper (events.js:313:30)
2657 verbose stack     at emitNone (events.js:111:20)
2657 verbose stack     at PassThrough.emit (events.js:208:7)
2657 verbose stack     at endReadableNT (_stream_readable.js:1064:12)
2657 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:139:11)
2657 verbose stack     at process._tickCallback (internal/process/next_tick.js:181:9)
2658 verbose cwd /home/manikandan/mani/nxplorerjs-microservice-starter
2659 verbose Linux 4.15.0-38-generic
2660 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
2661 verbose node v8.12.0
2662 verbose npm  v6.4.1
2663 error code Z_BUF_ERROR
2664 error errno -5
2665 error zlib: unexpected end of file
2666 verbose exit [ -5, true ]

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Just clone the repo in ubuntu env and try to install the dep.

What is the expected behavior?

After cloning the repo , npm install should install all the pkgs and it should allow us to run the app.

Please tell us about your environment:

nxplorer version: 1.5.6
other environment details
-node -8.12.0
npm -6.4.1
ubuntu 16

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. npm , github, stackoverflow etc)

This problem is not related to the project as if you see the project builds fine on Travis (Linux)
The issue you are facing is related to npm and npm install is not able to update the package-json.lock file
Possible solutions for you
npm install --no-package-lock
The --no-package-lock argument will prevent npm from creating a package-lock.json file.
or delete the package-lock.json file and then try

I am aslo facing this same issue

riginoommen-mac:nxplorerjs-microservice-starter riginoommen$ npm i
npm ERR! Unexpected end of JSON input while parsing near '...(https://github.com/G'

npm ERR!      /Users/riginoommen/.npm/_logs/2019-12-17T06_58_00_113Z-debug.log
riginoommen-mac:nxplorerjs-microservice-starter riginoommen$

Thank you for posting this. I've been using Windows and travis seems to work. Will investigate

Can you'll update the version of node js to the latest instead of 6 and see it works. I'll get hold of a ubuntu machine to test as well . https://stackoverflow.com/questions/48739985/npm-err-code-z-buf-error-when-install

Also see this one https://stackoverflow.com/questions/47675478/npm-install-errorunexpected-end-of-json-input-while-parsing-near-nt-webpack


Ensure data provenance even for synthetic tables

Ensures that we track the provenance of data so it can be serialized. Specifically this implements:

DuckDBSource can now define mirrors which mirror existing tables and pipelines into the DuckDB database
DuckDBSource can now be declared as synthetic which means the tables do not have provenance and have to be serialized as part of the spec.
Pipelines can now chain SQL expressions on top of an existing non-SQL pipeline by mirroring the existing pipeline into duckdb.

In future we may have to figure out if there's some better way to persist the synthetic tables.

There seems to be an issue with upload

Great, looks like its fixed

Will add some tests and fix the Pipeline chaining.


setup.py: add pypi metadata, require py36+

@dcwatson have a look!

Likely it also works on the BSDs, but as there is no testing for that, we can't know for sure.


Disable printing in flow_from_directory

Is there a way to disable printing when using ImageDataGenerator's flow_from_directory?
I'm trying to use a custom generator that calls flow_from_directory for each batch (for random sampling with uniform distribution of classes in each batch).
So when I call fit_generator, this ruins the standard epochs printing - a line is printed for each batch and not for each epoch.
This is my code:
    def __getitem__(self, idx):
       # create a batch dataframe with one random sample for each class
        batch_df = pd.DataFrame()
        for class_name in batch_class_names:
            rand_row = self.df_dict[class_name].sample(n = 1)
            batch_df = batch_df.append(rand_row, ignore_index=True)

       # create generator
        batch_gen = self.generator.flow_from_dataframe(
            dataframe=batch_df, directory=self.directory, x_col="filename",
            y_col="brand", classes=self.class_names,
            class_mode="categorical",
            target_size=self.image_dims, color_mode="rgb", batch_size=batch_df.shape[0], shuffle=self.shuffle)

       # return batch
        return (next(batch_gen))

And this is the output (a row for each batch instead of a row for each epoch):
1/100 [..............................] - ETA: 20:17 - loss: 3.4675 - tpr_metric: 0.0000e+00Found 9 validated image filenames belonging to 28 classes.
  2/100 [..............................] - ETA: 11:14 - loss: 3.4366 - tpr_metric: 0.0000e+00Found 9 validated image filenames belonging to 28 classes.
  3/100 [..............................] - ETA: 8:13 - loss: 3.3988 - tpr_metric: 0.0000e+00 Found 9 validated image filenames belonging to 28 classes.
  4/100 [>.............................] - ETA: 6:41 - loss: 3.4289 - tpr_metric: 0.0000e+00Found 9 validated image filenames belonging to 28 classes.
  5/100 [>.............................] - ETA: 5:46 - loss: 3.4379 - tpr_metric: 0.0000e+00Found 9 validated image filenames belonging to 28 classes.
  6/100 [>.............................] - ETA: 5:08 - loss: 3.4358 - tpr_metric: 0.0000e+00Found 9 validated image filenames belonging to 28 classes.
  7/100 [=>............................] - ETA: 4:41 - loss: 3.4181 - tpr_metric: 0.0000e+00Found 9 validated image filenames belonging to 28 classes.

Guys? Please?

pretty please?

pretty please?

I'm also having this problem

+1

@MichalWeisman This is a stale issue. Is this still an issue for you? Can someone share a simple standalone code to reproduce the issue? Please also check with recent tf-nightly and TF2.6 and check whether the issue persists. Thanks!

Yes, this is still an issue.

Yes, this is still an issue.


Error on getting user

undefined#undefined error while requesting user#tag in the title and in the dashboard section can you please fix it?

@caelinj Thanks for your helps from now.

Sorry error is on user.tag thanks one more time

You now that you can edit your issue and don't have to post everytime a new answer? ^^


rqt_image_view: 1.0.5-1 in 'eloquent/distribution.yaml' [bloom]

Increasing version of package(s) in repository rqt_image_view to 1.0.5-1:

upstream repository: https://github.com/ros-visualization/rqt_image_view.git
release repository: https://github.com/ros2-gbp/rqt_image_view-release.git
distro file: eloquent/distribution.yaml
bloom version: 0.9.7
previous version for package: 1.0.4-1

rqt_image_view
* fix segfault on topic change (#40 <https://github.com/ros-visualization/rqt_image_view/issues/40>)
* fix ImportError in image_publisher script (#39 <https://github.com/ros-visualization/rqt_image_view/issues/39>)

Holding for the upcoming Eloquent sync.


Instana doc update 1.11

Updated the img directory with the latest screencaps and edited the README file to reflect the latest installation procedure.

Thank you for updating this, I'm good to merge it now.
Would you mind submitting a follow-up PR to add the link this new version in instana-agent/README.md?


Make RFS runnable as Container

Description
This changes introduces a Dockerfile for RFS that is linked to the gradle build process such that a user can make changes to RFS code or dependencies and simply execute ./gradlew buildDockerImages from the RFS directory and create a Docker image with the latest changes. A user could alternatively execute ./gradlew composeUp and create a docker environment with source/target/RFS containers using latest changes. Note: The gradle link is in place for docker compose but more work is needed here to limit manual steps a user needs to take to test RFS in this environment.
Along with this a few command line arguments were incorporated into RFS
Issues Resolved
https://opensearch.atlassian.net/browse/MIGRATIONS-1601
Testing
Local docker testing
Check List

[ ] New functionality includes testing

[ ] All tests pass, including unit test, integration test and doctest

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

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

Can you please add a section to the README explaining how to use the new Docker functionality, hit the source/target clusters, and launch RFS?

Have added, will be revisiting the docker compose part of this in my other task so it will be more solid after I do some proper testing there

will be revisiting the docker compose part of this in my other task so it will be more solid after I do some proper testing there

Got it, makes sense.  I'm hoping we'll be able to combine the special sauce I made for testing S3 snapshots into the docker compose setup, otherwise it probably won't be too useful 😛


fix(frontend): mix START_TRANSACTION and BEGIN

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
separate BEGIN and START_TRANSACTION.
Checklist

[x] I have written necessary rustdoc comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Release note
Please create a release note for your changes. In the release note, focus on the impact on users, and mention the environment or conditions where the impact may occur.
Refer to a related PR or issue link (optional)
#5262

@mergifyio requeue


pull request for e2e test at 12/02/2016 22:15:04

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Importing library in PyCharm Python Console raises ModuleNotFoundError

Hi guys,
I was trying the library out in the PyCharm IDE.  Whenever I try to import libraries, it is throwing the ModuleNotFoundError for _testcapi.  I did read in one of the closed issues that this is no longer an issue.  But I could not find a working solution to the issue on my computer.  I tried reinstalling the library multiple times.  Any help would be much appreciated.
I am trying the library on Python 3.10 on Fedora box.

from py_vollib import black_scholes
Traceback (most recent call last):
File "/usr/lib64/python3.10/code.py", line 90, in runcode
exec(code, self.locals)
File "", line 1, in
File "/home/guruappa/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/222.4167.33/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/run/media/guruappa/programs/projects/trade_station/venv/lib/python3.10/site-packages/py_vollib/black_scholes/init.py", line 44, in
from py_vollib.black import undiscounted_black
File "/home/guruappa/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/222.4167.33/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/run/media/guruappa/programs/projects/trade_station/venv/lib/python3.10/site-packages/py_vollib/black/init.py", line 44, in
import py_lets_be_rational as lets_be_rational
File "/home/guruappa/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/222.4167.33/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/run/media/guruappa/programs/projects/trade_station/venv/lib/python3.10/site-packages/py_lets_be_rational/init.py", line 30, in
from py_lets_be_rational.lets_be_rational import black
File "/home/guruappa/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/222.4167.33/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/run/media/guruappa/programs/projects/trade_station/venv/lib/python3.10/site-packages/py_lets_be_rational/lets_be_rational.py", line 35, in
from py_lets_be_rational.exceptions import BelowIntrinsicException, AboveMaximumException
File "/home/guruappa/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/222.4167.33/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/run/media/guruappa/programs/projects/trade_station/venv/lib/python3.10/site-packages/py_lets_be_rational/exceptions.py", line 30, in
from py_lets_be_rational import constants
File "/home/guruappa/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/222.4167.33/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/run/media/guruappa/programs/projects/trade_station/venv/lib/python3.10/site-packages/py_lets_be_rational/constants.py", line 32, in
from _testcapi import DBL_MIN, DBL_MAX
File "/home/guruappa/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/222.4167.33/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named '_testcapi'

fixed in github repository (not yet in PyPI)


feat: use foldl' instead of foldl in length prelude function

Just started studying the codebase of this awesome project :D. Not sure if there's a good reason of keeping foldl here 🤔.

Good catch, foldl' matches the default implementation of Integer length. Not sure why CI is failing but it's not to do with the code I surmise.


[package] github-desktop

Steps To Reproduce
Steps to reproduce the behavior:

build githhub-desktop

Build log
error: builder for '/nix/store/bnpc2j02df0c60jbkn7pvv2mj3azzcvy-github-desktop-3.0.5.drv' failed with exit code 1;
       last 10 log lines:
       > setting RPATH to: /nix/store/hhwkvh589y34p6znr2rcv28zw9afjccj-systemd-251.4/lib:/nix/store/jyiybh44fcvypizjnl3yrffqr8mndhid-zlib-1.2.12/lib
       > setting interpreter of /nix/store/1ihqz1na2h70l7jhlilz1zis6s7d3w6w-github-desktop-3.0.5/opt/resources/app/git/bin/git
       > searching for dependencies of /nix/store/1ihqz1na2h70l7jhlilz1zis6s7d3w6w-github-desktop-3.0.5/opt/resources/app/git/bin/git
       >     libz.so.1 -> found: /nix/store/jyiybh44fcvypizjnl3yrffqr8mndhid-zlib-1.2.12/lib
       > setting RPATH to: /nix/store/hhwkvh589y34p6znr2rcv28zw9afjccj-systemd-251.4/lib:/nix/store/jyiybh44fcvypizjnl3yrffqr8mndhid-zlib-1.2.12/lib
       > auto-patchelf: 2 dependencies could not be satisfied
       > error: auto-patchelf could not satisfy dependency libssl.so.1.1 wanted by /nix/store/1ihqz1na2h70l7jhlilz1zis6s7d3w6w-github-desktop-3.0.5/opt/resources/app/git/libexec/git-core/git-imap-send
       > error: auto-patchelf could not satisfy dependency libcrypto.so.1.1 wanted by /nix/store/1ihqz1na2h70l7jhlilz1zis6s7d3w6w-github-desktop-3.0.5/opt/resources/app/git/libexec/git-core/git-imap-send
       > auto-patchelf failed to find all the required dependencies.
       > Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
       For full logs, run 'nix log /nix/store/bnpc2j02df0c60jbkn7pvv2mj3azzcvy-github-desktop-3.0.5.drv'.

Additional context
Libs not added to the Update of Package:
Notify maintainers
@kilianar @risicle @r-ryantm
Metadata
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.67, NixOS, 22.11 (Raccoon), 22.11pre408963.823e2c9b0a0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - channels(dennis): `"home-manager-22.05.tar.gz"`
 - channels(root): `"nixos, nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

diff --git a/pkgs/applications/version-management/github-desktop/default.nix b/pkgs/applications/version-management/github-desktop/default.nix
index a834a335706..0f9fa0bd2bf 100644
--- a/pkgs/applications/version-management/github-desktop/default.nix
+++ b/pkgs/applications/version-management/github-desktop/default.nix
@@ -15,6 +15,7 @@
 , cups
 , mesa
 , systemd
+, openssl_1_1
 }:

 stdenv.mkDerivation rec {
@@ -44,6 +45,7 @@ stdenv.mkDerivation rec {
     alsa-lib
     cups
     mesa
+    openssl_1_1
   ];

   unpackPhase = ''

This issue is addressed by https://github.com/NixOS/nixpkgs/pull/190972.


'loading' / 'load' events protocol

leaflet.wms feels great. The only thing I was missing, was ability to detect if the WFS layers are actually not yet rendered. I implemented a simple event interface for this and added LOADING... indicator control to the example.

+1

I didn't get 'error' event fired (using Leaflet v 1.0.3) in case of 400/500 responses from server. Should I upgrade Leaflet to 1.2.0 ?


feat: LFU (Least frequently used) cache

Description of Change
LFU Cache implementation
In a fixed size cache, when new item is added and the cache is full
The least frequently used element is evicted from the cache
If there are multiple items with the same frequency of usage,
then the least recently used item is evicted.

Checklist

[x] Added description of change
[x] Added file name matches File name guidelines
[x] Added tests and example, test must pass
[x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[x] Relevant documentation/comments is changed or added
[x] PR title follows semantic commit guidelines
[x] I acknowledge that all my contributions will be made under the project's license.

Notes:
added LFU Cache with tests and usage.

Thank you for your contribution! Let me know if this was for hacktoberfest

Yes, this is for Hacktoberfest. Thank you for reviewing my contribution.

Thank you for your contribution! Let me know if this was for hacktoberfest

Yes, this is for Hacktoberfest. Thank you for reviewing my contribution.

youre very welcome. lets get this accepted soon :rocket:

@realstealthninja, what is the reason for making a non member function static?
And should I make test1() and test2() static as well?

@realstealthninja, what is the reason for making a non member function static?
And should I make test1() and test2() static as well?

Static is used to hide the function from the global namespace.
Imo there shouldn't be 3 test function just one with comments delimiting the cases

@realstealthninja, what is the reason for making a non member function static?
And should I make test1() and test2() static as well?

Static is used to hide the function from the global namespace.
Imo there shouldn't be 3 test function just one with comments delimiting the cases

Got it.


Realm.object(ofType: forPrimaryKey:) unexpectedly crashes the app

Goals

Trying to get an object from my Realm database
Expected Results

Successfully get the required object
Actual Results

I get a crash with an uncaught exception:
"Inside init: Current thread <NSThread: 0x600000075700>{number = 5, name = (null)}"
"Inside getObject: Current thread <NSThread: 0x600000075700>{number = 5, name = (null)}"
libc++abi.dylib: terminating with uncaught exception of type NSException

At first I thought it was a threading issue, but you can see that I init the Realm and getObject on the same thread.
Code Sample

private var database: Realm!

init(some_var: String) {
  var configuration = Realm.Configuration()
  configuration.fileURL = configuration.fileURL!.deletingLastPathComponent().appendingPathComponent("\(some_var).realm")
  do {
    debugPrint("Inside init: Current thread \(Thread.current)")
    self.database = try Realm(configuration: configuration)
  } catch {
    debugPrint("realmInit: Can't create realm database.")
  }
}

func getObject<T: Object, K>(with primaryKey: K) -> T? {
  debugPrint("Inside getObject: Current thread \(Thread.current)")
  return self.database.object(ofType: T.self, forPrimaryKey: primaryKey) // THIS LINE THROWS EXCEPTION
}

Version of Realm and Tooling

Realm framework version: 2.6.2
Realm Object Server version: N/A not using
Xcode version: 8.3.2
iOS/OSX version: OSX 10.12.3
Dependency manager + version: Cocoapods 1.1.1

Hi @austinzheng, thanks for your quick response. Unfortunately I'm unable to send a full reproduction case, but I did get somewhere with the Exception breakpoint (how on Earth did I not think of that, end of the week tiredness maybe)
The exception is thrown in RLMClassInfo.mm line 89:
@throw RLMException(@"Object type '%@' is not managed by the Realm. "
                            @"If using a custom `objectClasses` / `objectTypes` array in your configuration, "
                            @"add `%@` to the list of `objectClasses` / `objectTypes`.",
                            name, name);

I wonder if Swift generics have anything to do with this issue. Just a couple of questions:

First, what code is calling getObject<T>() that it crashes? In particular, what type is the type variable T being instantiated as?
I assume you don't use a custom Realm configuration to open up your self.database Realm?
What happens if you replace the generic version of getObject() with a non-generic version(s) that explicitly hardcodes the type?

Thanks for working through this issue with me @austinzheng, here are the answers:

The code that is calling getObject<T>() is the following:

if let directMessage = StorageFacade.database(for: some_var).getObject(with: id) as? RealmDirectMessage {
  // do something with directMessage
}

The extent of custom Realm configuration is the path to the file as seen in my init(some_var: String) function above

Interestingly this works!?! not really sure how or why?

Wow... Doing some more testing on this, it looks like the problem comes from using a generic optional. This piece of code also works, although I obviously wouldn't want to throw a fatalError() if my object wasn't found, this was just for testing purposes:
func getObject<T: Object, K>(with primaryKey: K) -> T {
  debugPrint("Inside getObject: Current thread \(Thread.current)")
  if let object = database.object(ofType: T.self, forPrimaryKey: primaryKey) {
    return object
  }
  fatalError()
}

So the only difference between your working and non-working function is T vs T? (and of course the fatal error)? That seems like a bug.
To work around this, you may want to change your getObject() method to be something like getOrCreateObject() (make it if it doesn't exist), and then have another method that checks for the existence of an object and returns a boolean. That being said this is still a workaround, and we should figure out why the optional version is broken.

That's exactly right. I will implement the version you suggest with the boolean as a workaround for now, but would be good to have this fixed if at all possible. Very weird issue. Thank you so much for your help detect the problem too.

@austinzheng I'd appreciate if you could rephrase the issue title based on your understanding of the bug, if necessary. Thanks.


[CS] Fixes #2517 Add Handle useless method comment in RemoveUselessClassCommentFixer

Split test error seems unrelated :
  Problem 1
    - Root composer.json requires rector/simple-php-doc-parser ^0.8.56 -> satisfiable by rector/simple-php-doc-parser[0.8.56].
    - rector/simple-php-doc-parser 0.8.56 requires symplify/package-builder ^8.3.48 -> satisfiable by symplify/package-builder[8.3.48] from composer repo (https://repo.packagist.org) but symplify/package-builder[dev-master, 9.0.x-dev (alias of dev-master)] from path repo (../../packages/package-builder) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.

@TomasVotruba I think it is ready, split test error is unrelated.

Thank you :+1:


Jordoooo

I changed the color of the contributors box text on hover so it's more legible.

Great work :D


Refactor add_expression_terms_intra_rp_constraints

Pull request details
Describe the changes made in this pull request
Incoming and outgoing flows share the same loop now.

List of related issues or pull requests
Closes #529
Collaboration confirmation
As a contributor I confirm

[x] I read and followed the instructions in README.dev.md
[x] The documentation is up to date with the changes introduced in this Pull Request (or NA)
[x] Tests are passing
[x] Lint is passing

@gnawin, if you have time, this is a good code review for you to also get into the details of how we create the terms for the constraints. Please let me know if you don't have time, and I can do the review.

@datejada thanks for thinking of me regarding this, would be very helpful indeed. Sure, I have the time, will review it today 😄


Getting error "invalid type: boolean false, expected struct Verbosity"

Recently upgraded to latest Lychee action and getting this error when I tried changing verbose value to info, I changed value back to false but still getting the same error.
Run /home/runner/work/_actions/lycheeverse/lychee-action/a12cbb3a4921899299dcc58a6136bcdd0d1fbf1c/entrypoint.sh
Error: TOML parse error at line 5, column 11
  |
5 | verbose = false
  |           ^^^^^
invalid type: boolean `false`, expected struct Verbosity

Reference: https://github.com/balena-io/docs/actions/runs/4591570995/jobs/8107838446

Hey Vipul,
this got fixed in https://github.com/lycheeverse/lychee/pull/956, but it's not released yet.
Apologies for the inconvenience.

No inconvenience at all, happy to test out new versions and report what I see.

This should be fixed with 1.7.0 now @vipulgupta2048. Let me know if you still have problems and we can reopen. 🙏


Should scope name ( as ID) have max length ?

Hello, guys, thanks for your effort on "IdentityServer4.EntityFramework", I tasted it some hours ago.
When I update migrations to database (Localdb)  with the context "ScopeDbContextEx" (which is extended from ScopeDbContext), I got the following
ERROR

Column 'Scopes.Name' is not the same length or scale as referencing column 'ScopeSecrets.ScopeName' in foreign key 'FK_ScopeSecrets_Scopes_ScopeName'. Columns participating in a foreign key relationship must be defined with the same length and scale.

I'm not sure it's  a flaw on "IdentityServer4.EntityFramework" or on "Microsoft.EntityFrameworkCore.SqlServer" . but I sure the problem is on
// in "ScopeDbContext.cs"
// ...
scope.Property(x => x.Name).HasMaxLength(200).IsRequired();
// ...

My Fix

add a explicit foreign key to "SopeName" to  "ScopeClaim" Entity and "ScopeSecret" Entity.
then add "scopeSecret.Property(x => x.ScopeName).HasMaxLength(200);".

--OR--

Just  roughly remove ".HasMaxLength(200)" on Scepe.Name

I wanna know
Is it a MUST for Scope.Name having max length?
Any  solution better for this?

Thanks for the heads up. By the way, this package is still under active development and I would not recommend using it until it is released on nuget (there are many things missing and incomplete, such as the above)

To add to what @scottbrady91 said, we're doing lots of changes still to IdSvr4, so these schema here will still be in flux.

@scottbrady91  yeah, thanks, got it.

@brockallen  thanks for your reminder.
but I can see that IDS4 RC1 has been scheduled to August 31,  that is quite near (even if  a little delay).
I do not want to take IDS3 as an option for now, since my project is long-term and agile.
Taking a risk, I plan to use IDS4 in my project with a  self-implemented entityframework layer.
Just hope that there would be no breaking changes after RC1.  :)

We use Microsofts RRC (redefined RC) model, which guarantees no breaking changes for release candidates ;)

You can check and use this repo
https://github.com/PivotalAnimal/BlueConcord.IdentityServer.EntityFrameworkCore/tree/master/BlueConcord.IdentityServer.EntityFrameworkCore

@leastprivilege  haha, very nice :)

@senzacionale  thanks, I'll have a look. :)

Max Length is an issue I've brought up in the past. I think it would do good to implement this as constants in the IS4 library. That being said, I'm eager to test out this new repo. I assume you are going to shy away from implementing User functionality as before. I think Microsoft Identity is a good solution but there may be better ones. Also, I have received comments asking for Multitenancy. I would like this feature myself but have not as of yet looked into it much.

FYI: https://github.com/aspnet/EntityFramework/issues/6449
Seems we'll be releasing with generated int Id's.


runtime(typst): provide a formatlistpat

ping maintainer: @gpanders
Hi,
this PR does the following changes:

adds the n to formatoptions so it handles correctly lists when formatting with gq
make recognize -, + and numbered lists

After this is merged I will make a PR at https://github.com/kaarmu/typst.vim

thanks!


feat: support arbitrary length unions

I had to separate out "RuntypeBase" which only includes the actual validation methods from "Runtype" which includes all the helper methods. This is because internally we frequently treat Runtype as "covariant" i.e. if I was expecting a Runtype<string> it's ok to give me a Runtype<'hello world'>. TypeScript historically hasn't cared that much about variance, but over time it is getting strickter and the helper methods are often invariant.
BREAKING CHANGE: the various Union2, Union3, ... types have all been replaced with a single Union type that takes a tuple of Runtype validators.

What is needed to get this merged?

Please don't include changes that are only relevant to your fork release. This package is not funtypes. We can't merge because of it no matter how much the PR includes substantial improvements.

Hi @ForbesLindesay, thank you for your amazing works! May I force push to your PR branches of #165, #166, and #168, rebasing them to the current master? And as for #166, I'd like to cherry-pick the essential commit 19e2e865f1bbfbc3bde0743d006cc0aa78c6c2e2. If you have any project depending on these PR branches, let me know so that I won't break them.


Fix some typos in EKContentView.swift

Hi, thanks for your contribution, but I've decided to not approve any pull request that does not contain user relevant content (typos in any of the public APIs, bug fixes and feature).
In future, please open an issue before submitting new pull requests - this sort of issue would be under Bug Fix category.
Thanks!


[BUG] bug in wordlists

Describe the bug
when i delete wordlist from my computer and then click on delete not found in tab wordlist the software crashed
To Reproduce
Steps to reproduce the behavior

Go to 'Wordlists'
Click on 'Delete Not Found'
When wordlist not found you will see the error
See error

Screenshots

Version

Version  1.2.0

Fixed


Unable to get Server connection working.

Hello. When I try to connect my Jamf server with an account, I see the following error under the log. Are there certain permissions needed?
Wed Sep 28 15:27:10 Attempting to retrieve token from
Wed Sep 28 15:27:11 response error: 401

No permissions needed (last I checked).  What type of account?  Are you able to authenticate to the Jamf Pro API?
https://your.jamf.server/api/doc/
Regardless, something odd does look to be going on, I see the following:
Wed Sep 28 17:28:44 New token created
Wed Sep 28 17:28:44 Call token refresh
Wed Sep 28 17:29:09 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token
Wed Sep 28 17:29:09 response error: 401
Wed Sep 28 17:29:14 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token
Wed Sep 28 17:29:14 New token created
Wed Sep 28 17:29:14 Call token refresh
Wed Sep 28 17:29:32 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token
Wed Sep 28 17:29:32 New token created
Wed Sep 28 17:29:32 Call token refresh
Wed Sep 28 17:30:06 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token
Wed Sep 28 17:30:06 New token created
Wed Sep 28 17:30:06 Call token refresh
Wed Sep 28 17:30:09 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token
Wed Sep 28 17:30:10 response error: 401
Wed Sep 28 17:30:40 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token
Wed Sep 28 17:30:41 New token created
Wed Sep 28 17:30:41 Call token refresh

Hello.
Thanks for getting back to me. It was a Local account and I tried the Enrollment permission set as well as Auditor and Administrator.
I tried to authenticate and it did work with the account I am trying to use, got Authorized. Token successfully generated!
The status indicator does go green after I enter Server, Username and Password, but I see those errors in the Log. I used the same Credentials for the Prune application and they worked fine.
Thanks,
Ryan Asik
From: Leslie Helou @.>
Date: Wednesday, September 28, 2022 at 5:35 PM
To: jamf/jamfStatus @.>
Cc: Ryan Asik @.>, Author @.>
Subject: [EXTERNAL] Re: [jamf/jamfStatus] Unable to get Server connection working. (Issue #4)
CAUTION: This email originated from outside of Hyland. Do not click links or open attachments unless you recognize the sender and know the content is safe.
No permissions needed (last I checked). What type of account? Are you able to authenticate to the Jamf Pro API?
https://your.jamf.server/api/doc/ [your.jamf.server]https://urldefense.com/v3/__https:/your.jamf.server/api/doc/__;!!C8mu0vCj!eUAXbGFWqVw2g84yl0HNmF39Ud5adJErs6vaacU7jIMEfHIjfehemOInbWi6B0pW2A91xf8wvTfV9zj5g9DnScVx$
Regardless, something odd does look to be going on, I see the following:
Wed Sep 28 17:28:44 New token created
Wed Sep 28 17:28:44 Call token refresh
Wed Sep 28 17:29:09 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token [some.jamf.server]https://urldefense.com/v3/__https:/some.jamf.server/api/v1/auth/token__;!!C8mu0vCj!eUAXbGFWqVw2g84yl0HNmF39Ud5adJErs6vaacU7jIMEfHIjfehemOInbWi6B0pW2A91xf8wvTfV9zj5g-f_spcf$
Wed Sep 28 17:29:09 response error: 401
Wed Sep 28 17:29:14 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token [some.jamf.server]https://urldefense.com/v3/__https:/some.jamf.server/api/v1/auth/token__;!!C8mu0vCj!eUAXbGFWqVw2g84yl0HNmF39Ud5adJErs6vaacU7jIMEfHIjfehemOInbWi6B0pW2A91xf8wvTfV9zj5g-f_spcf$
Wed Sep 28 17:29:14 New token created
Wed Sep 28 17:29:14 Call token refresh
Wed Sep 28 17:29:32 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token [some.jamf.server]https://urldefense.com/v3/__https:/some.jamf.server/api/v1/auth/token__;!!C8mu0vCj!eUAXbGFWqVw2g84yl0HNmF39Ud5adJErs6vaacU7jIMEfHIjfehemOInbWi6B0pW2A91xf8wvTfV9zj5g-f_spcf$
Wed Sep 28 17:29:32 New token created
Wed Sep 28 17:29:32 Call token refresh
Wed Sep 28 17:30:06 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token [some.jamf.server]https://urldefense.com/v3/__https:/some.jamf.server/api/v1/auth/token__;!!C8mu0vCj!eUAXbGFWqVw2g84yl0HNmF39Ud5adJErs6vaacU7jIMEfHIjfehemOInbWi6B0pW2A91xf8wvTfV9zj5g-f_spcf$
Wed Sep 28 17:30:06 New token created
Wed Sep 28 17:30:06 Call token refresh
Wed Sep 28 17:30:09 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token [some.jamf.server]https://urldefense.com/v3/__https:/some.jamf.server/api/v1/auth/token__;!!C8mu0vCj!eUAXbGFWqVw2g84yl0HNmF39Ud5adJErs6vaacU7jIMEfHIjfehemOInbWi6B0pW2A91xf8wvTfV9zj5g-f_spcf$
Wed Sep 28 17:30:10 response error: 401
Wed Sep 28 17:30:40 Attempting to retrieve token from https://some.jamf.server/api/v1/auth/token [some.jamf.server]https://urldefense.com/v3/__https:/some.jamf.server/api/v1/auth/token__;!!C8mu0vCj!eUAXbGFWqVw2g84yl0HNmF39Ud5adJErs6vaacU7jIMEfHIjfehemOInbWi6B0pW2A91xf8wvTfV9zj5g-f_spcf$
Wed Sep 28 17:30:41 New token created
Wed Sep 28 17:30:41 Call token refresh
—
Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https:/github.com/jamf/jamfStatus/issues/4*issuecomment-1261489849__;Iw!!C8mu0vCj!eUAXbGFWqVw2g84yl0HNmF39Ud5adJErs6vaacU7jIMEfHIjfehemOInbWi6B0pW2A91xf8wvTfV9zj5g8KfUwcK$, or unsubscribe [github.com]https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A3KO2WFYFJ3QZ4P37PQKCWLWAS23NANCNFSM6AAAAAAQYDNJRQ__;!!C8mu0vCj!eUAXbGFWqVw2g84yl0HNmF39Ud5adJErs6vaacU7jIMEfHIjfehemOInbWi6B0pW2A91xf8wvTfV9zj5g9IDiG5e$.
You are receiving this because you authored the thread.Message ID: @.***>
-----------------------------------------  Please consider the environment before printing this e-mail -----------------------------------------
CONFIDENTIALITY NOTICE: This message and any attached documents may contain confidential information from Hyland Software, Inc. The information is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or an employee or agent responsible for the delivery of this message to the intended recipient, the reader is hereby notified that any dissemination, distribution or copying of this message or of any attached documents, or the taking of any action or omission to take any action in reliance on the contents of this message or of any attached documents, is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail or telephone, at +1<PHONE_NUMBER>, and delete the original message immediately. Thank you.

Issue should be resolved in v2.3.2.
Thanks ryanasik for bringing it to my attention.


Mac OS error with :python -c "import opensim"

Hello,
Having reinstalled anaconda and conferred with my collaborators concerning the issues I am having installing for a MacOS, I have decided to post concerning this issue. I've found that someone else had the same issue and posted in a forum elsewhere with no response.
The installation goes without error until the step:
python -c "import opensim"
which gives the following error:
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
conda info gives:
active environment : opensim-rl
active env location : /Users/kat/anaconda2/envs/opensim-rl
shell level : 2
user config file : /Users/kat/.condarc
populated config files : /Users/kat/.condarc
conda version : 4.6.11
conda-build version : 3.17.8
python version : 2.7.16.final.0
base environment : /Users/kat/anaconda2  (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/osx-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /Users/kat/anaconda2/pkgs
/Users/kat/.conda/pkgs
envs directories : /Users/kat/anaconda2/envs
/Users/kat/.conda/envs
platform : osx-64
user-agent : conda/4.6.11 requests/2.21.0 CPython/2.7.16 Darwin/18.7.0 OSX/10.14.6
UID:GID : 501:20
netrc file : None
offline mode : False
and Conda list gives:
WARNING: The conda.compat module is deprecated and will be removed in a future release.
packages in environment at /Users/kat/anaconda2/envs/opensim-rl:

Name                    Version                   Build  Channel
ca-certificates           2019.9.11            hecc5488_0    conda-forge
certifi                   2019.6.16                py36_1    conda-forge
cloudpickle               1.2.2                    pypi_0    pypi
curl                      7.65.3               h22ea746_0    conda-forge
cycler                    0.10.0                   pypi_0    pypi
expat                     2.2.5             h6de7cb9_1003    conda-forge
future                    0.17.1                   pypi_0    pypi
gettext                   <IP_ADDRESS>          h46ab8bc_1002    conda-forge
git                       2.23.0          pl526hbdf3604_2    conda-forge
gym                       0.14.0                   pypi_0    pypi
kiwisolver                1.1.0                    pypi_0    pypi
krb5                      1.16.3            hcfa6398_1001    conda-forge
lapack                    3.6.1                ha44fe06_2    conda-forge
libcurl                   7.65.3               h16faf7d_0    conda-forge
libcxx                    4.0.1                hcfea43d_1
libcxxabi                 4.0.1                hcfea43d_1
libedit                   3.1.20181209         hb402a30_0
libffi                    3.2.1                h475c297_4
libgfortran               3.0.1                h93005f0_2
libiconv                  1.15              h01d97ff_1005    conda-forge
libssh2                   1.8.2                hcdc9a53_2    conda-forge
matplotlib                3.1.1                    pypi_0    pypi
ncurses                   6.1                  h0a44026_1
numpy                     1.17.2                   pypi_0    pypi
openblas                  0.2.19                        0    kidzik
opensim                   4.0.0                   py36_17    kidzik
openssl                   1.1.1c               h01d97ff_0    conda-forge
osim-rl                   3.0.6                    pypi_0    pypi
pcre                      8.41              h0a44026_1003    conda-forge
perl                      5.26.2            haec8ef5_1006    conda-forge
pip                       19.2.3                   py36_0
pyglet                    1.3.2                    pypi_0    pypi
pyparsing                 2.4.2                    pypi_0    pypi
python                    3.6.9                h359304d_0
python-dateutil           2.8.0                    pypi_0    pypi
readline                  7.0                  h1de35cc_5
redis                     3.3.8                    pypi_0    pypi
scipy                     1.3.1                    pypi_0    pypi
setuptools                41.2.0                   py36_0
six                       1.12.0                   pypi_0    pypi
sqlite                    3.29.0               ha441bb4_0
timeout-decorator         0.4.1                    pypi_0    pypi
tk                        8.6.9             h2573ce8_1003    conda-forge
wheel                     0.33.6                   py36_0
xz                        5.2.4                h1de35cc_4
zlib                      1.2.11               h1de35cc_3
Aside:
I have tried on anaconda 3 and anaconda 2 which give the exact same errors.
I'ld be ever so grateful for some advice to get this to work on a Mac. Thank you so much in advance.
-Kat

@katUTC did you find a solution to this? I have the exact same problem!
(opensim-rl) Vittorios-MBP:OpenSimChallenge vittorio$ conda list
# packages in environment at /Users/vittorio/opt/anaconda3/envs/opensim-rl:
#
# Name                    Version                   Build  Channel
ca-certificates           2019.11.27                    0
certifi                   2019.11.28               py36_0
cloudpickle               1.2.2                    pypi_0    pypi
cycler                    0.10.0                   pypi_0    pypi
expat                     2.2.6                h0a44026_0
future                    0.18.2                   pypi_0    pypi
git                       2.23.0          pl526h6951d83_0
gym                       0.15.4                   pypi_0    pypi
kiwisolver                1.1.0                    pypi_0    pypi
krb5                      1.16.4               hddcf347_0
lapack                    3.6.1                ha44fe06_2    conda-forge
libcurl                   7.67.0               h051b688_0
libcxx                    4.0.1                hcfea43d_1
libcxxabi                 4.0.1                hcfea43d_1
libedit                   3.1.20181209         hb402a30_0
libffi                    3.2.1                h475c297_4
libgfortran               3.0.1                h93005f0_2
libiconv                  1.15              h01d97ff_1005    conda-forge
libssh2                   1.8.2                ha12b0ac_0
matplotlib                3.1.2                    pypi_0    pypi
ncurses                   6.1                  h0a44026_1
numpy                     1.18.1                   pypi_0    pypi
openblas                  0.2.19                        0    kidzik
opencv-python             <IP_ADDRESS>                 pypi_0    pypi
opensim                   4.0.0                   py36_17    kidzik
openssl                   1.1.1d               h1de35cc_3
osim-rl                   3.0.11                   pypi_0    pypi
pcre                      8.43                 h0a44026_0
perl                      5.26.2            haec8ef5_1006    conda-forge
pip                       19.3.1                   py36_0
pyglet                    1.3.2                    pypi_0    pypi
pyparsing                 2.4.6                    pypi_0    pypi
python                    3.6.10               h359304d_0
python-dateutil           2.8.1                    pypi_0    pypi
readline                  7.0                  h1de35cc_5
redis                     3.3.11                   pypi_0    pypi
scipy                     1.4.1                    pypi_0    pypi
setuptools                44.0.0                   py36_0
six                       1.13.0                   pypi_0    pypi
sqlite                    3.30.1               ha441bb4_0
timeout-decorator         0.4.1                    pypi_0    pypi
tk                        8.6.8                ha441bb4_0
wheel                     0.33.6                   py36_0
xz                        5.2.4                h1de35cc_4
zlib                      1.2.11               h1de35cc_3

Hi! Does anyone have a solution for this problem? I also have this problem.


Added method to make channel maps

Not sure if this would be useful to have here, but example usage:
import numpy as np
from spectral_cube import SpectralCube
cube = SpectralCube.read('HD163296_13CO.image.fits')
cube.plot_channel_maps('test.png', 6, 6, channels=range(10, 46),
                       levels=np.linspace(0.05, 0.5, 10), zoom=2)

Does this belong here or in e.g. WCSAxes?
If here, still needs:

[ ] tests
[ ] docs
[ ] mention that WCSAxes is needed
[ ] a way to set unit for spectral axis labels

Coverage decreased (-0.67%) to 66.1% when pulling 76611534c83a8670cd3b886d5438800dc2fa2290 on astrofrog:channel-maps into d49e890cbfdbba068a6331e84be8878dd2ce62ae on radio-astro-tools:master.

This is pretty easy to do without a dedicated method, except perhaps the grid setup method.  I think this may be more appropriate as an annotated example.  However, I don't really object to the method being implemented with the various caveats you suggest.

@keflavich - maybe this actually belongs in APLpy, if it is to become a convenience layer on top of WCSAxes. It would certainly be a more natural place for people to find it.

@astrofrog - it definitely belongs in APLpy.  It is a nice quicklook-style feature for spectral_cube, but it is limited: it would pretty much have to raise an exception for cubes with >100 channels, and probably ought to warn loudly above 25 channels, since those could take forever to plot.
This also reminds me that we need to implement & include downsampling routines in spectral_cube.  I have some in FITS_tools, I think, but they definitely belong here and can probably be implemented with a cleaner strategy and a more appropriate treatment of WCS.

@astrofrog despite my comments earlier, I think we still want this.  It would also be cool to do the PV version of this.

@astrofrog could you make this editable by maintainers?  I want to start pushing some changes to it

Will be closed by #551


deck_scatter doesn't render on Druid datasources

Probably related to the granularity-related control being different when using druid. @betodealmeida

actually unrelated


DAA

i think this is right, unit tested as much as I can , but since new DAA makes the block bits out of synch, needs testnet testing.
also not sure about 2 < 255 stuff.  might need to be 256.  i got the 255 from kyuupichan simulator but may not be precise

I think I fixed 2 bugs in this implementation: https://github.com/molecular/electrum/commit/5f114dee3389b2822cf75316006259263fb4f946


AzureRM.* modules held in use by PSSA when Cluster <IP_ADDRESS> is scanned, prevents uninstall

Repro steps
Install-Module -Name Cluster -RequiredVersion <IP_ADDRESS> -Repository PSGallery
# This depends on AzureRM, which in turn depends on 45 AzureRM.* modules.
# All get downloaded at install.

Invoke-ScriptAnalyzer -Path [PathToCluster] -Recurse -Severity Error

Invoke-ScriptAnalyzer -Path [PathToCluster] -Recurse -CustomerRulePath [someCustomRulesPath]

Uninstall-Module -Name Cluster -RequiredVersion <IP_ADDRESS>
# Succeeds

Uninstall-Module -Name AzureRM.Websites
# One of the dependencies installed.
# Fails to uninstall, says is currently in use.

Expected Behavior
I should be able to uninstall the AzureRM.* modules.  I don't expect PSSA to hold on to them.
We are unable to uninstall any of the AzureRM.* modules because something in PSSA is holding on to them.  This appears to only happen for the Cluster <IP_ADDRESS> module.

Can you please post the exact error message? Does that happen even if you close PowerShell and try to uninstall in a new session?

PS C:\windows\system32> Uninstall-Module -Name AzureRM.Websites -RequiredVersion 4.0.0
WARNING: The version '4.0.0' of module 'AzureRM.Websites' is currently in use. Retry the operation after closing the applications.
PackageManagement\Uninstall-Package : Module 'AzureRM.Websites' is in currently in use or you don't have the required permissions.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.6.0\PSModule.psm1:2459 char:21
+ ...        $null = PackageManagement\Uninstall-Package @PSBoundParameters
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package], Exception
    + FullyQualifiedErrorId : ModuleIsInUse,Uninstall-Package,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage

It succeeds if I close and open a new session.

How is this related to PSSA? Guessing from the error message I'd say that you are not elevated (i.e. you need to launch PowerShell as an Administrator).

When trying to repro, I can confirm that AzureRM.Websites cannot be uninstalled, however can see no link to PSSA but rather to the AzureRM or PowerShellGet. Why do you even want to uninstall a dependency? The error that I get is:
PackageManagement\Uninstall-Package : No match was found for the specified search criteria and module names 'AzureRM.Websites'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\<IP_ADDRESS>\PSModule.psm1:2194 char:21
+ ...        $null = PackageManagement\Uninstall-Package @PSBoundParameters
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package], Exception
    + FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage

I was definitely running this as elevated.
When you tried to repro, did you run both a regular scan and a scan with custom rules?  Or just the regular scan?
The link to PSSA is that if I don't run Invoke-ScriptAnalyzer on the Cluster module, I am able to uninstall the AzureRM.* modules just fine.  To me, this indicates something in PSSA is holding on to them.  And I was under the impression that PSSA should never load anything, that it's strictly static analysis.  Is that correct?
It's necessary for our security scan to uninstall the dependencies to get us back to a clean state between item scans.

I tried to repro an a clean WinServer 2016 machine and it uninstalls fine in the same PowerShell session. Yes, I used this custom rule (see my comment above). Maybe your specific rule is holding on to it?
The only thing that I noticed is that I had to install Cluster using the -AllowNoClobber option because I had the following error when trying to install it the first time: A command with name 'Get-AzureStorageContainerAcl' is already available on this system. This module 'Azure.Storage' may override the existing commands. If you still want to install this module 'Azure.Storage', use -AllowClobber parameter.
Are you using the latest version of PSSA (1.16.1)? To me it sounds rather like that there are other things  in your system that make it already start with a non-clean state.

Yep, I've got PSSA 1.16.1 installed.
I thought you were onto something with it being about our custom rules, so I tried the repro steps without the custom rules run.  Same issue unfortunately.
Interesting, it didn't prompt me for -AllowClobber.  What sort of things should I be looking for on my system that would mess with PSSA like this?

I had a look a the Cluster installation and I can say that it declares a dependency on AzureRM, therefore you should also uninstall AzureRM. Furthermore I looked into the installation folder and Cluster <IP_ADDRESS> ships with the .git, .vscode folder! Also, it seems that the latest version is already <IP_ADDRESS>and don't understand why you test an outdated version of something that seems to be pre-release. See [here](https://blogs.msdn.microsoft.com/powershell/2017/12/05/prerelease-versioning-added-to-powershellget-and-powershell-gallery/) for the announcement 2 days ago that thePSGalleryandPowerShellGet` support PreRelease versioning now, which you might want to consider. That's all of the advice that I can give since I cannot really repro it, sorry.

I should clarify, I work on the PowerShell Gallery team.  I implemented the prerelease versioning feature outlined in that blog post :)
The PowerShell Gallery runs a security scan on all published items, regardless if prerelease or not.  We have been seeing the above issue in our security scan for all versions of Cluster, not just <IP_ADDRESS>.
Thanks for your help investigating.  I think you're right, it's definitely something specific to just the Cluster module.  I'll dig into it further and respond back if I find anything.

Haha, what a coincidence. Well in that case thanks for implementing this new feature. :-)

You're welcome, hope you find it useful :-)
Whether the issue is in Cluster or PSSA or our system, I think PSSA should analyze the module in a different appdomain or process.  Then if something does get loaded somehow, we won't hit this issue.

A coworker talked with Kapil who used to work on PSSA.  His findings:

After talking to Kapil, it seems like it's the "Get-Command" calls in PSSA that are causing all the DLLs to load. We verified by (A) Running only one rule which happens to use Get-Command and (B) Running Get-Command manually and verifying the DLLs get loaded.

@kapilmb

@rebro-msft Sorry to revive an old thread, but we're seeing extreme slowness when analyzing script modules that are heavy on AzureRM cmdlets. Are you saying the issue stems from the Get-Command loading the DLLs?
@bergmeister We noticed a huge improvement in script analysis times (34+ minutes down to less than 3 minutes) for our module when uninstalling AzureRM from the build machine. But we're afraid that will mean we aren't getting good analysis coverage on commands it isn't able to find definitions for. Can you help me understand what we might lose in terms of script analysis quality if we decide to proceed with this workaround?
Happy to open a separate issue if requested.

This is a very basic example but demonstrates what I mean - example.zip
Below are my findings with our module in question. The times I was speaking of were from our build agent, but these results are from my laptop. Please note I am unable to share the codebase in a public forum.
These tests were performed in brand new sessions without any Azure[RM] modules explicitly loaded
With AzureRM Modules Installed
C:\Repos\blackbaud-iaas-host-azure [master ≡]> Measure-Command { Invoke-ScriptAnalyzer -Path .\Blackbaud.Host.Azure\*.ps1 }

Days              : 0
Hours             : 0
Minutes           : 13
Seconds           : 32
Milliseconds      : 269
Ticks             :<PHONE_NUMBER>
TotalDays         : 0.00940126295601852
TotalHours        : 0.225630310944444
TotalMinutes      : 13.5378186566667
TotalSeconds      :<PHONE_NUMBER>
TotalMilliseconds :<PHONE_NUMBER>

Without AzureRM Modules Installed
C:\Repos\blackbaud-iaas-host-azure [master ≡]> Measure-Command { Invoke-ScriptAnalyzer -Path .\Blackbaud.Host.Azure\*.ps1 }

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 24
Milliseconds      : 388
Ticks             : 243888910
TotalDays         : 0.000282278831018518
TotalHours        : 0.00677469194444444
TotalMinutes      : 0.406481516666667
TotalSeconds      : 24.388891
TotalMilliseconds : 24388.891

Would you like me to open a separate issue?

Thanks, I will take a look at in the next days with your example and depending on the outcome we can then open a more specific issue (or multiple) once we have more information.
Does your code base include azurerm itself or is it only calling its cmdlets?

The codebase only includes calls to the AzureRM cmdlets, and the AzureRM roll-up module is listed as a RequiredModule in the Manifest file.
Script Analyzer is only scanning our *.ps1 files that make up our module, nothing from the AzureRM module itself.

@Blackbaud-ShaydeNofziger OK, I ran a quick test with your example, and running an Import-module AzureRM before running PSSA 10 times against your example only doubles the execution time (which is kind of expected, since AzureRm simply adds a lot of data). But I cannot see a difference when uninstalling AzureRm (I always tried all steps in a fresh new session). I see that there is quite a bit of initial overhead that is not only due to JITting but also pre-populating the PSSA cache (i.e. the first time the code gets called, .Net has to compile the IL, which means that the 2nd run is multiple times faster). Issue #991 was recently opened to get rid of this JITTING by using crossgen/ngen. It would be interesting what kind of time you get when you run it the 2nd time. I suppose there will be a fair share of JIT overhead and PSSA having to deal with so many AzureRM lazy-loaded method definitions but maybe also some PSSA inefficiencies (especially with respect to multi-threading and cache population/locking).
I do not think there is a specific issue here, it is just the accumulation of a lot (and AzureRM being big). But you could check yourself because you can simply build PSSA using VisualStudio yourself and generate a performance report.
My personal recommendation would be use CI runs of PSSA without the AzureRM module but have a nightly build that Installs azurerm before the run and removes it afterwards as I imagine that the results will not be too different (not installing AzureRM means e.g. that you probably don't get warnings on AzureRM aliases)

@bergmeister Thank you so much for the info! I can confirm that re-running analysis after the initial run does speed things up a ton, so I agree it sounds like the it's the initial caching/JITTING process - Thanks for the tip about building in VS to see the performance. I'll look into that this weekend.

But I cannot see a difference when uninstalling AzureRm

Do you have the Azure SDK installed? I think that install path is a default module location, so PS falls back to those DLL's if it can't find the modules installed from psgallery.
I like your recommendation about the nightly builds - it gives us the speed we need during the day without sacrificing deeper analysis, which we can run overnight. I appreciate you looking into this for me and giving some insight into what's happening under the hood.

@bergmeister I have a task to address all of this in next week's sprint - The information you've provided so far has been super-helpful, and I made some good progress building PSSA locally and measuring performance in VS. I'll dive deep into this next week and will be able to provide my findings so far, with a more comprehensive example.
I'll open a separate issue at that time (referencing this one) with the details above and more information, as I think it could prove helpful to others that may be experiencing performance issues.
In the end, if it seems appropriate, I'd like to turn all of this and the information you provided into a documentation-contribution to help others better understand how PSScriptAnalyzer runs under the hood, as well as tips for addressing performance issues. Do you think that would be a worthwhile contribution?

We always welcome contributions. A brief description, especially from a user's point of view about performance would be valuable. The thing about implementation details is that they are likely to go out of date but a high level description would still be good.


modelSystem

This concept is currently being used out in the wild but is not found in the schema. It’s possible that what should be used instead is modelSystemName.
Recommendation: ?

I agree, I think this is a typo for modelSystemName, but can you share some example values?
Similar to #42, I'm not sure if we should remove the modelSystem annotation, in case someone has code that relies on it. What do you think?


feat(perf): Add more fine-grained benchmarks to examples

While NVIDIA probably have some internal benchmarking for TransformerEngine, it would be nice to be able to run benchmarks on our own hardware for some of the examples.
There is a benchmark for tensorflow already: https://github.com/NVIDIA/TransformerEngine/blob/a5dbf1e29f31a053107aec80731511e73c20b768/examples/tensorflow/transformer_layer.py#L347
But it would be nice to have more fine-grained benchmarks (evaluating the cost of each layer).
I guess that using Nsight systems might be a reasonable way to get more fine-grained information.
Nevertheless, I am interested in contributing to the JAX examples.

Did you saw that there is already 2 small TE/JAX example here:
https://github.com/NVIDIA/TransformerEngine/tree/main/examples/jax/encoder
What are you interested to add?


Add safer payments

Items to add:

[x] Primary VNet, subnets and NSG
[x] DR VNet, subnets and NSG
[x] VNet peering
[x] Bastion host at primary site
[x] Bastion host at DR site
[x] Firewall at primary site
[x] Firewall at DR site
[x] VMs for Nodes - Primary, HA, DR and Standby
[ ] Data disks for VMs
[ ] Key Vault primary region
[ ] Key Vault in DR region
[ ] Server certificate created and stored in both key vaults
[ ] Application Gateway at primary site
[ ] Application Gateway at DR site
[x] API Management service at primary site
[x] API Management service at DR site
[ ] Script to deploy and configure Safer Payments software
[x] DR site backup file storage CIFS (secure) mounted to node3
[x] Add multiple public IP addresses to firewalls (for multi-AZ)
[ ] Add firewall application rules
[ ] Add firewall outbound rules for server updates, etc
[x] Add firewall network rules
[ ] User defined routing for outbound traffic via firewall (except bastion)
[ ] Add insights to all resources
[ ] Add tag option
[x] main template parameters to set small/medium/large sizes
[ ] Create user interface definition

Different version of Safer Payments available in the IBM organisation here,
https://github.com/IBM/azure-marketplace-arm-templates


npm install 报错

npm WARN deprecated<EMAIL_ADDRESS>This project has been renamed to 'tasksfile'. Install using 'npm install tasksfile' instead.
npm WARN deprecated<EMAIL_ADDRESS>core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated<EMAIL_ADDRESS>This project has been renamed to @pawelgalazka/cli . Install using @pawelgalazka/cli instead
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.
npm WARN deprecated<EMAIL_ADDRESS>This project has been renamed to @pawelgalazka/cli-args. Install using @pawelgalazka/cli-args instead
npm WARN deprecated<EMAIL_ADDRESS>CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s).
npm WARN deprecated<EMAIL_ADDRESS>use String.prototype.padStart()
npm ERR! premature close
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/sddt/.npm/_logs/2020-02-25T07_42_44_537Z-debug.log

我也是install这个i118分支报这个错误,求解

我也出现这个问题

我也是这个问题啊，求解

求解

As it mentioned in the official documentation, if the node_modules cannot be downloaded successfully, try to use this way:
npm install --registry=https://registry.npm.taobao.org
The address of the documentation where mentioned this is here:
https://panjiachen.github.io/vue-element-admin-site/zh/guide/other/faq.html#%E9%A6%96%E5%85%88%E6%9C%89%E4%BB%BB%E4%BD%95%E6%8A%A5%E9%94%99%EF%BC%8C%E6%9C%80%E7%AE%80%E5%8D%95%E7%9A%84%E6%96%B9%E6%B3%95%E6%98%AF%E6%8A%8A%E6%8A%A5%E9%94%99%E4%BF%A1%E6%81%AF%E5%A4%8D%E5%88%B6%E5%88%B0%E6%B5%8F%E8%A7%88%E5%99%A8%E9%87%8C%E9%9D%A2%E6%90%9C%E7%B4%A2%E4%B8%80%E4%B8%8B%EF%BC%81%EF%BC%81%EF%BC%81


DynamoDB adapter for the express-brute middleware

Hello, I have written a dynamoDB adapter for express-brute middleware. I'm new to programming especially to node.js, so the codes maybe look like naif. I'm very glad to receive your comments, thanks.
Duo XU
PS. Links :
https://www.npmjs.com/package/express-brute-dynamo
https://github.com/supaggregator/express-brute-dynamo

Obviously not a full code review, but a couple of thoughts:

I think calling clean should happen in plugin itself. You could make the interval configurable with parameter to the constructor. Also, you shouldn't need to call it until at least 'lifetime' has passed since the first 'set'.
You should probably have some concurrency stuff set in clean, if there are multiple processes going at once you'll have a lot of "duplicate" deletes.
If you update a count/expire date between when an item is marked for deletion and it is actually deleted you'll lose that update.

I'll add it to the list if you want though.


OpenShift Console URL with public IP does HTTP redirect to internal private IP

https://<IP_ADDRESS>:8443/console ==> https://openshift-master.rdocloud:8443 which is not publicly reachable :sob:
Specifically, the bad redirect sems to happen when it wants to make you login: https://openshift-master.rdocloud:8443/oauth/authorize?client_id=openshift-web-console&response_type=code&state=...&redirect_uri=https%3A%2F%2Fopenshift-master.rdocloud%3A8443%2Fconsole%2Foauth
There must be a way to not make it do that...

https://github.com/openshift/origin-web-console/issues/3008 seems relevant, and looking at https://github.com/openshift/openshift-ansible/blob/master/inventory/hosts.example makes me think that openshift_master_cluster_public_hostname may be the openshift-ansible equivalent to --public-hostname that I'm looking for... trying that!

That didn't help, or only partially; see openshift/origin-web-console#3008 for details :disappointed:


Examples not shown with IntoResponses

Hi,
I'm using utoipa as follows:
#[derive(IntoResponses)]
enum StandardResponses {
    #[response(status = 500,
        content_type= "text/plain",
        description = "Internal Error.",
        example = json!("Internal error."))]
    InternalError,
}

#[utoipa::path(
    post,
    path = "/my_router",
    responses(StandardResponses),
    )]
pub async fn pair_device(){
  todo!()
}

This generates the following JSON output:

I'm missing the content section here. I would have expected it to be shown since I specified content_type and example.
Did I get somethign wrong or could it be that I found a bug?
I'm usign version 4.0.0.
Thank you in advance for your time!

I found that this is not the case if I change the enum to
enum StandardResponses {
    #[response(status = 500,
        content_type= "text/plain",
        description = "Internal Error.",
        example = json!("Internal error."))]
    InternalError(String),
}

So I guess utoipa assumes if it's an empty enum that there's now content.

@hpsjakob Yeah this is related to #965. Currently I believe as you stated that if there is no content then the content-type will not be set. This is something that needs some tuning and we should support this eventually.

Yup this is a bug and finally fixed here #1073


Portability Fixes

Significant>
Added support different package manager based on their availability,
rather than based on distrribution in use.

Also>
Added print_clr() to avoid ambiguities on non-error printed as errors,
rather than print_err() which writes on 'stderr', for colour.

Well done @Mr-Rathod , I am merging this PR :)
I would be glad to see more contributions from your side.