[stable/openvpn] Updates docker image

What this PR does / why we need it:
Another attempt at: https://github.com/helm/charts/pull/12269
Updating the docker image to the OpenVPN docker image with better community support, which includes using a more recent version of OpenVPN.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #11078
fixes #4569

Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

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

At long last, I think this is finally ready for review! cc @dippynark
I've tested both with the in-container PKI and with providing a secret, but since this is a pretty big change, I'd really appreciate as careful a look as anyone can give (especially people who have made contributions which are affected by this PR).
Cheers all :smile:

ccing people who have contributed recently and whose contributions might be accidentally impacted:
@Gottox
@irozet
@gboor
@chrisz100

Thanks for the cc! Ill run this through somewhen today and let you know!

Haven't tested yet, but my changes doesn't seem to be affected by this PR, afaics.

@dippynark I'll come back around and address all your points above. One question about this previously was the CRL, which should now be fixed (after I merge master in a moment) - could you look and verify that?

@jasongwartz
Could you resolve conflicting files please?
stable/openvpn/Chart.yaml
stable/openvpn/README.md

@jasongwartz
@dippynark
Mind you guys LGTM this PR please?

I manually cherry picked your changes and n noticed that there's an issue with the directories.
Apparently the new docker image expects everything to be in /etc/openvpn/pki vs. the old /etc/openvpn/certs/pki


More info on context manager/strategy.scope in Custom training loops with tf.distribute.MirroredStrategy()

Hi @lamberta and team,
Just some ideas for the Custom training loops tutorial (with tf.distribute.MirroredStrategy()):
URLs:
https://www.tensorflow.org/tutorials/distribute/custom_training#define_the_loss_function
https://www.tensorflow.org/tutorials/distribute/custom_training#define_the_metrics_to_track_loss_and_accuracy
https://www.tensorflow.org/tutorials/distribute/custom_training#create_a_strategy_to_distribute_the_variables_and_the_graph
Description:
In the tutorial, you create a new strategy (strategy = tf.distribute.MirroredStrategy()), which has a context manager—strategy.scope. Similar to the Distributed training with Keras tutorial, maybe you can also explicitly mention what the scope does in the Custom training loops tutorial, because some users may not have studied that in greater depth. And, it would make the tutorial more consistent with some of the other ones under Tutorials > Advanced > Distributed training.
So, to ensure the users don't have to use search here, especially if some of them are new to this, it may be useful to provide a bit more background on the context manager.
Note that inside the context manager—strategy.scope—we have to define a number of things: the loss function, metrics, the model itself, Adam optimizer, and checkpoint. And the tutorial separates these items into different sections and provides detailed explanations of each step. Therefore, I suggest maybe we add a few comments as follows:
Examples:
#  <NEW> Enclose the loss function call inside the context manager.
with strategy.scope():
  # <original comment>
  <define a method for loss computation>

# <NEW> test loss and training and test accuracy metrics must be created under `strategy.scope`
with strategy.scope():
  test_loss = tf.keras.metrics.Mean(name='test_loss')
  train_accuracy = tf.keras.metrics.SparseCategoricalAccuracy(
      name='train_accuracy')
  test_accuracy = tf.keras.metrics.SparseCategoricalAccuracy(
      name='test_accuracy')

Additionally, this note from the tutorial here may also be improved (the diff is italicized) as follows:

Note: You can put all the code below inside a single scope —the strategy.scope context manager that instructs how to split the training among devices. We are dividing it into several code cells for illustration purposes.

Lastly, similar to this step, we can add a short decriptive paragraph (italicized) to explain what we're doing when defining strategy as tf.distribute.MirroredStrategy():

Create a MirroredStrategy object to handle distribution, and provides a context manager (tf.distribute.MirroredStrategy.scope) to build your model inside:
# If the list of devices is not specified in the
# `tf.distribute.MirroredStrategy` constructor, it will be auto-detected.
strategy = tf.distribute.MirroredStrategy()

There is another similar example from the Multi-worker training with Keras tutorial:

Train the model with MultiWorkerMirroredStrategy:

with strategy.scope():
  # Model building/compiling need to be within `strategy.scope()`.
  multi_worker_model = build_and_compile_cnn_model()

PRs:
Can submit a PR if you OK (some) of the ideas.
Cheers!

@lamberta Let me know if a small PR would make sense.
The diffs:
+ # Enclose the loss function call inside the context manager.
with strategy.scope():
  # Set reduction to `none` so we can do the reduction afterwards and divide by
  # global batch size.
  loss_object = tf.keras.losses.SparseCategoricalCrossentropy(
      from_logits=True,
      reduction=tf.keras.losses.Reduction.NONE)
  ...

+ # Instantiate the test loss and training and test accuracy metrics inside the context manager.
with strategy.scope():
  test_loss = tf.keras.metrics.Mean(name='test_loss')
  train_accuracy = tf.keras.metrics.SparseCategoricalAccuracy(
      name='train_accuracy')
  test_accuracy = tf.keras.metrics.SparseCategoricalAccuracy(
      name='test_accuracy')

⭑ Note: You can put all the code below inside a single scope
+ —the `strategy.scope` context manager that instructs how to split the training among devices.
We are dividing it into several code cells for illustration purposes.

⭑ Note: You can put all the code below inside a single scope. We are dividing it into several code cells for illustration purposes.

+ Create a `MirroredStrategy` object to handle distribution, and provides a context manager
+ (`tf.distribute.MirroredStrategy.scope`) to build your model inside:

# If the list of devices is not specified in the
# `tf.distribute.MirroredStrategy` constructor, it will be auto-detected.
strategy = tf.distribute.MirroredStrategy()

WDYT? Thanks @lamberta

Hi @8bitmp3, sorry for the late response on this. I'm not sure how much (if at all) the custom training loop tutorial has changed since you wrote this issue. But if you have some small changes that you think will make it easier for users to understand, please feel free to file a PR.

@nikitamaia No worries, will do. Thank you 👍


WIP: Enabling batching in nw

[x] Enable batching in needleman wunsch algorithm. This will make it easier to leverage GPU compute
[ ] Push code to torchscript

I'm closing this since GPU code has already been merged in.


Neofetch 1.8: Coming soon

Hello,
I haven't had as much time as I'd like to work on neofetch so development has slowed down. I'll be on break from uni around the start of October so it'll give me enough time to release a new version and fix any bugs that come up.
Android
I'd like to squeeze Android support into this release if we can get it to a better condition than it is now by the ETA. This will be a lot easier if those with Android devices test the android2 branch and report any bugs/problems with it.
There are some changes in the android2 branch that will benefit everyone else so if we can't get the android branch ready we can at least merge those changes.
Windows 10
I want to get neofetch working on Windows 10's bash shell before this release, I think I saw someone working on a separate branch a while ago. This shouldn't be too difficult and Screenfetch has already implemented it so we've got something to reference. :P
Break
For the next 2 weeks I'll be in South Korea on a study tour with my university, I don't know how the internet situation is going to work so I don't know if I'll be able to respond to Issues/Pull Requests in a timely manner.
Thanks

1.8 will release once #339 is merged.
I would've liked to include Android support as well but it looks like it'll have to be pushed back to 1.9.

1.8 has been released.


Enhacement | Cluster addons pre requirements

What to improve?
In the addons section we have a problem in the execution order.
There are dependencies between addons that require IRSA roles and the security layer
Expected Behavior
Deploy the cluster in two steps, or with a better approach in one step.

https://github.com/binbashar/le-tf-infra-aws/pull/549


Infoblox Data Not Recognized

Hello,
Infoblox, a popular IP Address Management and DHCP solution is not being recognized by SC4S. It is critical that we resolve the issue in order to use the DHCP information to populate our asset repository within Splunk. The data being received by SC4S from Infoblox matches what the Splunk TA expects (see below vs TA here) but unable to start normalizing since SC4S is not recognizing properly.
Multiple sample logs attached for reference.
InfoBlox DHCP Log Sample.xlsx

Because infoblox is simple open source BIND and DHCPD we need to have you add the host name to configuration to inform SC4S to presume the source is infoblox instead of a similar product like bluecat

Hello,
Thank you for the reply. We did this under the vendor_product_by_source.conf file under filter f_infoblox and the data is still being associated with sourcetype = nix:syslog


Set emissivity command not being acknowledged for Evo Thermal using python

We are trying to send the following command for setting emissivity of the sensor (0.92)

0x00 0x51 0x02 0x5C 0xF6
But the sensor is not acknowledging the command. Is there anything wrong with our understanding of the 0x51 command?

Thanks,
Parag Gadkari

We are trying to send the following command for setting emissivity of the sensor (0.92)

0x00 0x51 0x02 0x5C 0xF6
But the sensor is not acknowledging the command. Is there anything wrong with our understanding of the 0x51 command?

Thanks,
Parag Gadkari

What is 0x02 in this command? I am facing the same error, but I am using this command - 0x00, 0x51, 0x44, 0xBE
According to user manual setting custom emissivity the command used is this - 0x00 51 AA BB*
where AA is the emissivity value and BB is crc8 depending upon AA

Hello @vanrajbrown
I confirm that 0x00 51 AA BB is the correct command to set the emissivity. From a quick check here, it looks like you are not using the correct CRC: 0xC2 in your case.
Also, another way of setting the emissivity is to use the Windows GUI.
In the case you need additional help, I invite you to contact our support team here
Have a nice day,

Hello @vanrajbrown
I confirm that 0x00 51 AA BB is the correct command to set the emissivity. From a quick check here, it looks like you are not using the correct CRC: 0xC2 in your case.
Also, another way of setting the emissivity is to use the Windows GUI.
In the case you need additional help, I invite you to contact our support team here
Have a nice day,

Thanks for the reply, when using your crc the emissivity value is getting changed in the sensor although I am still getting the command not acknowledged message. I have confirmed the emissivity level change from the GUI application.

Thanks for the feedback, if the value changes in the GUI it means that it was correctly applied by the sensor. It can be confirmed by having higher temperature measurements when lowering the emissivity.
Doesn't change the fact he sensor should send an ACK.
In any case, I will pass this issue internally so we can have a look at this issue.
Have a nice day,


Proposal for making a SPID compliant set of templates

This proposal try to get a uniform template structure for app, using a base template (spid_base.html) and a SPID compliant template for errors.
Almost all templates have to be modified in a real project, but still having a minimal common structure reduces the work needed for adaptation. Inner templates (currently only wayf.html and spid_login_error.html) probably will need only slight modifications, and still have to use part of bootstrap-italia CSS rules.
The base template usually will requires more adaptation using the styles of the hosting site (navigation bar, colors, etc.).
This is only an initial step for making a final template set for the app and requires other decisions (eg. do i use the base template also for attribute echo?) and modifications (eg. spid_login_error.html needs a better layout).
The wayf.html template and the templatetags have been moved to the reusable app, because it's the simplest way of making them available in a real installation. Otherwise they can be moved again (almost the base template and all the ones that use it) to the demo part, if preferred.
Note: wayf.html of the demo app has been temporarily renamed to wayf_.html to avoid the overriding of the new version.
Thanks

A test failed..  .?

I removed also tests/metadata/spid-sp-test.xml, that was checked by a test (test_default_spid_saml_config), so i modified this test to avoid failures ...


Adding Globo.com to the list of adopters.

Thanks @amartinsn!

Current coverage is 93.08%

Merging #407 into master will decrease coverage by -0.98% as of cb5dc8e

Powered by Codecov. Updated on successful CI builds.

Current coverage is 93.08%

Merging #407 into master will decrease coverage by -0.98% as of cb5dc8e

Powered by Codecov. Updated on successful CI builds.


Add opts argument to issue query method

Issue Query API can take some parameters. (e.g. https://github.com/treasure-data/td-client-ruby/blob/master/lib/td/client/api/job.rb#L275 )
I'd like to use it. So, I add argument and refactor code.
I would like you to review my code. thanks.

@kenchan Overall, looks very good to me. Thank you so much!

@Lewuathe Thank you for your review!

@kenchan Thanks again!


Remove old annotations

STONEBLD-1315

/retest

/retest

@mkosiarc I think we have to update e2e-tests, since e2e-tests still using the old annotations.


Add a travis config to check the links in readme.md

This travis configuration checks all links in readme.md to ensure they're good. It'll make it easier to accept PRs.
You'll still have to go to travis-ci.org and enable travis checking for your fork, but this configuration works for my fork.

No thanks. I manually check each submission anyways, so wouldn't be of much use, and I don't want the annoyance of a PR failing because of an unrelated link moving. I much prefer this other both that submits a PR once in awhile with updated links for repos that got moved (they're redirected in the meantime anyways).

Fair enough. It won't block the PR though, just show that it didn't pass the link tests.


Feature/photon history

Toggle WCSim to save photon scattering and reflection history when -DWCSIM_SAVE_PHOTON_HISTORY_FLAG=ON is set in cmake configuration. This feature is mostly for calibration studies when we want to know the photon propagation histories with respect to different water qualities and surface reflectivity.
Major changes include:

Save trackID per photon in WCSimWCHit and WCSimWCDigi
Save the number of scattering and reflection experienced by a photon in WCSimTrajectory. In WCSimTrajectory::AppendStep(), check whether a Rayleigh/Mie scattering happens, or whether a boundary reflection occurs and save the boundary surface type (kOtherS,kBlackSheetS,kReflectorS, kPhotocathodeS defined in WCSimEnumerations)
Construct new WCSimRootCherenkovHitHistory class to save the photon scattering and reflection histories. Users can access this class in a way similar to WCSimRootCherenkovHitTime, thus get the scattering and reflection histories per Cherenkov photon. An example usage is also documented in sample-root-scripts/sample_readfile.C.
In WCSimEventAction::EndOfEventAction(), retrieve photon histories from WCSimTrajectory container and save in output root file.
The photon process check and photon histories saving only occur when -DWCSIM_SAVE_PHOTON_HISTORY_FLAG=ON is set in cmake configuration. This will enforce WCSimTrajectory to be stored in WCSimTrackingAction::fpTrackingManager for every photon, overriding setup from /Tracking/fractionOpticalPhotonsToDraw.

Bug fix:

In WCSimWCTriggerBase::AlgNDigits, if the digi hit time range is smaller than trigger window, the find trigger loop is invalid. Pushed a fix to enforce window_start_time<=window_end_time in all case

Good spot on the random number fix. This shows why we should put in more than 1 random number generator in GHOST...
Can you pull in from develop? It looks like your IWCD geom fix isn't accounted for in the CI.

It seems that photon tracks with WLS in OD PMTs are recorded in the output root files, I am trying to remove them...
And somehow when there are too many tracks, the CI is failing. Any thoughts?

It's when it's running the WCSim file -> simpler tree convertor I guess its running out of memory
Looking here we see that it gets through the 20" ok, and fails for mPMTs at ~event 170 of 200. Each call of the convertor does 20" then mPMT then OD, so there's some kind of memory leak going on - I've applied a fix (2 actually - 1) to cleanup some memory at the end of the function, 2) as a more foolproof thing by changing how the script is called - one PMT type per process)

CI broken due to typo

Doh! Fixed and rerunning on your latest commit

Thanks. The CI checks are finished and looking good. In the end, I need to change the track saving flags such that they are not applied to optical photons. But the side effect is that photon tracks will not be saved at all when we want to use the ProcessList or ParticleList control.
I am think whether it is good to roll back to d3ee4f0 and accept the large number of additional tracks as known feature.

All green is always good!
I've lost track a little on precisely what's going on...

The CI on 061d644 (effectively d3ee4f0) is all green for everything but geometries with ODs, where the number of tracks is increasing. In IWCD, the increase a small (up to 20%) but for HK FD it's large (3000%+).

Need to grab the file size information from the CI really, to see if this is something to be worrying about. But it's potentially worrying.

Since the CI is green for all other geometries, this suggests it's extra optical photons that are being saved related to something in the OD. Likely the WLS plates

Why is the WLS special? Is it something to do with extra wavelength shifting processes generating two levels of optical photon tracks? (Something like Cherenkov photon -> absorption in WLS (gets a != 0 track ID) -> remmission = new optical photon)

It seems like -DSAVE_PHOTON_HISTORY=ON has been the default for quite a few CI runs. Why then has the tracking information not changed for all detectors? Since (among other things) this effectively sets /Tracking/fractionOpticalPhotonsToDraw to 100%

I suppose if we need some slightly different logic for -DSAVE_PHOTON_HISTORY = ON and OFF, in order to give the functionality & keep file size in check, we can do. Since the checks do show that things are identical, other than extra OD tracks, when things are ON. We can have OFF be the size light mode, with the fine control with ProcessList or ParticleList control options

The large increase in the number of tracks being saved is due to:

All photon trajectories are stored (equivalent to /Tracking/fractionOpticalPhotonsToDraw 100)
Optical photons from WLS are saved because of the "OpWLS" being added to ProcessList
Parent photon tracks of the WLS photons are saved becaue of the saveHitProducingTracks flag

Only the OD events have such WLS processes, so we see differences only in those OD geometries. We will see the same behavior if we use the /Tracking/fractionOpticalPhotonsToDraw 100 command instead of -DSAVE_PHOTON_HISTORY=ON
One easy "fix" is to simply remove "OpWLS" from the default ProcessList. It wouldn't change the output since there are no photon trajectories stored by default. And the macro command /Tracking/trackProcess can be used to add back the process in run time if necessary.
But if we want to keep the "OpWLS" in default list, it will need more convoluted way to mark the photon trajectories to check whether they are coming from /Tracking/fractionOpticalPhotonsToDraw or -DSAVE_PHOTON_HISTORY=ON.

I have added an extra flag to mark whether to save the photon track in ROOT. Now /Tracking/fractionOpticalPhotonsToDraw has the same behavior no matter -DSAVE_PHOTON_HISTORY is ON or OFF. Accordingly ProcessList and ParticleList controls should also work properly.

Thanks @kmtsui

Some methods here were modified, for example in WCSimWCHit, SetTrackID which is now SetTrackID and GetTrackID() to GetTrackID(int i).
This changes directly affect WCSimFQTuner, so I would suggest that from now on, before merging anything into WCSim we should also port the changes to the tuner (which could also be part of WCSim though). I was not following the details of the new functionality, so could you check for it?

@gondiaz The change in WCSimWCHit and WCSimWCDigi is to save all photon track ID (instead of the just first one) for a PMT with multiple photon hit. I don't have write access to WCSimFQTuner so cannot update it.
The fact that WCSimFQTuner lives under another (private) organization makes it difficult to maintain. We would need the admin there to help with the integration.


Xnat download refactoring integration

Ivo refactored the download code of the XNAT API during the last hackfest.
A quick overview about the changes: The code for downloading was moved into the different xnatObjects similar to the fetch() function. Each xnat object has now its own implementation for downloading and the ctkXnatSession no longer has to provide specific implementations for the different object types.

Can the download and downloadImpl functions be merged? Or was there a goal with factoring out the downloadImpl()?
Some functions need testing according to the comments. Now that the upload works, it should not be difficult to add new test case to the unit test that uploads a file and than downloads it.

The goal of the refactoring was to provide a similar mechanism like we have it for fetching xnatObjects. By letting the subclasses provide a specific downloadImpl() for their own case we do not have to make the object distinction in e.g. the ctkXnatSession class and therefore we do not have to provide specialized download function within the ctkXnatSession for each subclass.
AFAIK the file upload does not work right now, just uploading Projects/Subjects/... is working which does not involve files.
However I will fix that wihtin the next few days an create another pull request therefor. I have already planned to adapt the unit test as well. I will then also add a test that uploads and then downloads a file.

No other comments, I'm fine with merging it. Thanks.


Port 1194 seems to be closed

Unable to connect.
Setup is: Debian 11 bullseye on AWS. Port is added in security group and the instance is accessible on port 8080.
sudo nmap -sU -p 1194 <IP_ADDRESS>
Starting Nmap 7.80 ( https://nmap.org ) at 2024-03-24 13:57 UTC
Nmap scan report for localhost (<IP_ADDRESS>)
Host is up (0.000049s latency).
PORT     STATE  SERVICE
1194/udp closed openvpn

Hi @aalqadri
Could you try connection with netcat?
hover@gover4:~ $ nc -vzu 176.12.48.XX 1194
Connection to 176.12.48.XX 1194 port [tcp/openvpn] succeeded!
hover@gover4:~ $

If it does not succeed, then please share the docker logs(docker logs openvpn) and and OpenVPN server log itself from ./logs/openvpn.log.
Don't forget to mask your IP when sharing the logs.

Good day,
Thank you for your email ..
netcat didn't give me any results, the docker logs were giving some corrupt
output, so I decided to create a fress server.
I followed your steps, all were going well except the following:
~/openvpn-aws$ ansible-galaxy collection install -r requirements.yml
Starting galaxy collection install process
Nothing to do. All requested collections are already installed. If you want
to reinstall them, consider using --force.
so I used --force:
~/openvpn-aws$ ansible-galaxy collection install -r requirements.yml --force
which started the install process ..
In step #7 I check inventory.yml and the ansible_user matches the user i'm
using "admin".
running the command gave this output:
PLAY [openvpn-aws]

TASK [Gathering Facts]

ok: [openvpn-aws]
TASK [Load configuration (with defaults from example file).]

ok: [openvpn-aws] => (item=example.config.yml)
ok: [openvpn-aws] => (item=config.yml)
TASK [Ensure apt cache is up to date.]

ok: [openvpn-aws]
TASK [Ensure pacman cache is up to date]

skipping: [openvpn-aws]
TASK [Check if Docker is already present.]

ok: [openvpn-aws]
TASK [Download Docker install convenience script.]

changed: [openvpn-aws]
TASK [Run Docker install convenience script.]

changed: [openvpn-aws]
TASK [Ensure Docker is started.]

ok: [openvpn-aws]
TASK [Ensure dependencies are installed (Debian).]

changed: [openvpn-aws]
TASK [Ensure dependencies are installed (Archlinux).]

skipping: [openvpn-aws]
TASK [Install Docker Compose]

changed: [openvpn-aws]
TASK [Ensure admin user is added to the docker group.]

ok: [openvpn-aws]
TASK [Reset connection so docker group is picked up.]

[WARNING]: Reset is not implemented for this connection
TASK [Create OpenVPN folder on Pi.]

changed: [openvpn-aws]
TASK [Synchronize openvpn directory.]

changed: [openvpn-aws]
TASK [Copy OpenVPN docker-compose template to Pi.]

changed: [openvpn-aws] => (item={'src': 'openvpn-docker-compose.yml.j2',
'dest': 'docker-compose.yml'})
changed: [openvpn-aws] => (item={'src': 'openvpn-docker-entrypoint.sh.j2',
'dest': 'openvpn-docker/docker-entrypoint.sh'})
changed: [openvpn-aws] => (item={'src': 'openvpn_client.conf.j2', 'dest':
'config/client.conf'})
changed: [openvpn-aws] => (item={'src': 'easy-rsa.vars.j2', 'dest':
'config/easy-rsa.vars'})
TASK [Ensure OpenVPN is running.]

changed: [openvpn-aws]
TASK [Gather package facts.]

skipping: [openvpn-aws]
TASK [Add Buster backports apt key.]

skipping: [openvpn-aws] => (item=04EE7237B7D453EC)
skipping: [openvpn-aws] => (item=648ACFD622F3D138)
skipping: [openvpn-aws]
TASK [Add Buster backports for fixed libseccomp2.]

skipping: [openvpn-aws]
TASK [Install >libseccomp2.4.4 to fix 32-bit OS issue.]

skipping: [openvpn-aws]
TASK [Synchronize monitoring directory.]

changed: [openvpn-aws]
TASK [Ensure monitoring directory is not a Git repository.]

ok: [openvpn-aws]
TASK [Copy templated monitoring files into place.]

changed: [openvpn-aws] => (item={'src': 'grafana-config.monitoring.j2',
'dest': 'grafana/config.monitoring'})
changed: [openvpn-aws] => (item={'src': 'prometheus.yml.j2', 'dest':
'prometheus/prometheus.yml'})
changed: [openvpn-aws] => (item={'src':
'openvpn_exporter-docker-compose.yml.j2', 'dest': 'docker-compose.yml'})
TASK [Copy OpenVPN monitoring dashboard config to Grafana.]

changed: [openvpn-aws]
TASK [Pull latest Grafana Docker image]

changed: [openvpn-aws]
TASK [Ensure monitoring environment is running.]

changed: [openvpn-aws]
RUNNING HANDLER [Restart openvpn]

changed: [openvpn-aws]
RUNNING HANDLER [Restart monitoring]

changed: [openvpn-aws]
PLAY RECAP

openvpn-aws                : ok=22   changed=15   unreachable=0    failed=0
skipped=6    rescued=0    ignored=0
netcat didn't work for this instance, the following is the top of the
docker logs openvp
EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
Setting up public key infrastructure...
Notice
'init-pki' complete; you may now create a CA or requests.
Your newly created PKI dir is:

/usr/share/easy-rsa/pki

Using Easy-RSA configuration:

undefined

Following EASYRSA variables will be used:
EASYRSA_DN "org"
EASYRSA_REQ_COUNTRY "US"
EASYRSA_REQ_PROVINCE "NY"
EASYRSA_REQ_CITY "New York"
EASYRSA_REQ_ORG "SweetHome"
EASYRSA_REQ_EMAIL @.***"
EASYRSA_REQ_OU "MyOrganizationalUnit"
EASYRSA_REQ_CN "server"
EASYRSA_KEY_SIZE 2048
EASYRSA_CA_EXPIRE 3650
EASYRSA_CERT_EXPIRE 825
EASYRSA_CERT_RENEW 30
EASYRSA_CRL_DAYS 180
Generating ertificate authority...
Using Easy-RSA 'vars' configuration:

/usr/share/easy-rsa/pki/vars

Using SSL:

openssl OpenSSL 3.1.4 24 Oct 2023 (Library: OpenSSL 3.1.4 24 Oct 2023)

Notice
CA creation complete. Your new CA certificate is at:

/usr/share/easy-rsa/pki/ca.crt

Creating the Server Certificate...
Using Easy-RSA 'vars' configuration:

/usr/share/easy-rsa/pki/vars

Using SSL:

openssl OpenSSL 3.1.4 24 Oct 2023 (Library: OpenSSL 3.1.4 24 Oct 2023)

Notice
Private-Key and Public-Certificate-Request files created.
Your files are:

req: /usr/share/easy-rsa/pki/reqs/server.req
key: /usr/share/easy-rsa/pki/private/server.key

Sign request...
Using Easy-RSA 'vars' configuration:

/usr/share/easy-rsa/pki/vars

Using SSL:

openssl OpenSSL 3.1.4 24 Oct 2023 (Library: OpenSSL 3.1.4 24 Oct 2023)

Notice
Certificate created at:

/usr/share/easy-rsa/pki/issued/server.crt

Generate Diffie-Hellman key...
Using Easy-RSA 'vars' configuration:

/usr/share/easy-rsa/pki/vars

Using SSL:

openssl OpenSSL 3.1.4 24 Oct 2023 (Library: OpenSSL 3.1.4 24 Oct 2023)

Notice
DH parameters of size 2048 created at:

/usr/share/easy-rsa/pki/dh.pem

Generate HMAC signature...
2024-03-26 06:55:55 DEPRECATED OPTION: The option --secret is deprecated.
2024-03-26 06:55:55 WARNING: Using --genkey --secret filename is
DEPRECATED.  Use --genkey secret filename instead.
Create certificate revocation list (CRL)...
Using Easy-RSA 'vars' configuration:

/usr/share/easy-rsa/pki/vars

Using SSL:

openssl OpenSSL 3.1.4 24 Oct 2023 (Library: OpenSSL 3.1.4 24 Oct 2023)

Notice
An updated CRL has been created:

/usr/share/easy-rsa/pki/crl.pem

Following EASYRSA variables were set during CA init:
EASYRSA_DN "org"
EASYRSA_REQ_COUNTRY "US"
EASYRSA_REQ_PROVINCE "NY"
EASYRSA_REQ_CITY "New York"
EASYRSA_REQ_ORG "SweetHome"
EASYRSA_REQ_EMAIL @."
EASYRSA_REQ_OU "MyOrganizationalUnit"
EASYRSA_REQ_CN "server"
EASYRSA_KEY_SIZE 2048
EASYRSA_CA_EXPIRE 3650
EASYRSA_CERT_EXPIRE 825
EASYRSA_CERT_RENEW 30
EASYRSA_CRL_DAYS 180
Configuring networking rules...
net.ipv4.ip_forward = 1
Configuring iptables...
NAT for OpenVPN clients
Blocking ICMP for external clients
Blocking internal home subnet to access from external openvpn clients
(Internet still available)
No additional firewall rules to apply.
IPT MASQ Chains:
MASQUERADE  all  --  ip-10-0-70-0.ec2.internal/24  anywhere
MASQUERADE  all  --  ip-10-0-71-0.ec2.internal/24  anywhere
IPT FWD Chains:
0        0 DROP       1    --  *      *       <IP_ADDRESS>/24
<IP_ADDRESS>/0            icmptype 8
0        0 DROP       1    --  *      *       <IP_ADDRESS>/24
<IP_ADDRESS>/0            icmptype 0
0        0 DROP       0    --  *      *       <IP_ADDRESS>/24
<IP_ADDRESS>/24
Start openvpn process...
Options error: In [CMD-LINE]:1: Error opening configuration file:
/etc/openvpn/server.conf
Use --help for more information.
EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
PKI already set up.
Following EASYRSA variables were set during CA init:
EASYRSA_DN "org"
EASYRSA_REQ_COUNTRY "US"
EASYRSA_REQ_PROVINCE "NY"
EASYRSA_REQ_CITY "New York"
EASYRSA_REQ_ORG "SweetHome"
EASYRSA_REQ_EMAIL @."
EASYRSA_REQ_OU "MyOrganizationalUnit"
EASYRSA_REQ_CN "server"
EASYRSA_KEY_SIZE 2048
EASYRSA_CA_EXPIRE 3650
EASYRSA_CERT_EXPIRE 825
EASYRSA_CERT_RENEW 30
EASYRSA_CRL_DAYS 180
Configuring networking rules...
net.ipv4.ip_forward = 1
net.ipv4.ip_forward = 1
Configuring iptables...
NAT for OpenVPN clients
Blocking ICMP for external clients
Blocking internal home subnet to access from external openvpn clients
(Internet still available)
No additional firewall rules to apply.
IPT MASQ Chains:
MASQUERADE  all  --  ip-10-0-70-0.ec2.internal/24  anywhere
MASQUERADE  all  --  ip-10-0-71-0.ec2.internal/24  anywhere
IPT FWD Chains:
0        0 DROP       1    --  *      *       <IP_ADDRESS>/24
<IP_ADDRESS>/0            icmptype 8
0        0 DROP       1    --  *      *       <IP_ADDRESS>/24
<IP_ADDRESS>/0            icmptype 0
0        0 DROP       0    --  *      *       <IP_ADDRESS>/24
<IP_ADDRESS>/24
Start openvpn process...
Options error: In [CMD-LINE]:1: Error opening configuration file:
/etc/openvpn/server.conf
Use --help for more information.
EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
PKI already set up.
Following EASYRSA variables were set during CA init:
EASYRSA_DN "org"
EASYRSA_REQ_COUNTRY "US"
EASYRSA_REQ_PROVINCE "NY"
EASYRSA_REQ_CITY "New York"
EASYRSA_REQ_ORG "SweetHome"
EASYRSA_REQ_EMAIL @.***"
EASYRSA_REQ_OU "MyOrganizationalUnit"
EASYRSA_REQ_CN "server"
EASYRSA_KEY_SIZE 2048
EASYRSA_CA_EXPIRE 3650
EASYRSA_CERT_EXPIRE 825
EASYRSA_CERT_RENEW 30
EASYRSA_CRL_DAYS 180
Configuring networking rules...
net.ipv4.ip_forward = 1
net.ipv4.ip_forward = 1
net.ipv4.ip_forward = 1
Configuring iptables...
NAT for OpenVPN clients
Blocking ICMP for external clients
Blocking internal home subnet to access from external openvpn clients
(Internet still available)
No additional firewall rules to apply.
IPT MASQ Chains:
MASQUERADE  all  --  ip-10-0-70-0.ec2.internal/24  anywhere
MASQUERADE  all  --  ip-10-0-71-0.ec2.internal/24  anywhere
IPT FWD Chains:
0        0 DROP       1    --  *      *       <IP_ADDRESS>/24
<IP_ADDRESS>/0            icmptype 8
0        0 DROP       1    --  *      *       <IP_ADDRESS>/24
<IP_ADDRESS>/0            icmptype 0
0        0 DROP       0    --  *      *       <IP_ADDRESS>/24
<IP_ADDRESS>/24
The rest of the log is a repetition of the last output of "Start
openvp process."
I tried to create /etc/openvp and move server.conf ther, but it didn't do
the trick.
Thanks again for looking into this, I hope I didn't miss anything obvious.
Best regards,
Ahmad
On Mon, Mar 25, 2024 at 2:49 PM Mr. Φίλιππος @.***>
wrote:

Hi @aalqadri https://github.com/aalqadri
Could you try connection with netcat?
@.:~ $ nc -vzu 176.12.48.XX 1194
Connection to 176.12.48.XX 1194 port [tcp/openvpn] succeeded!
@.:~ $
If it does not succeed, then please share the docker logs(docker logs
openvpn) and and OpenVPN server log itself from ./logs/openvpn.log.
Don't forget to mask your IP when sharing the logs.
—
Reply to this email directly, view it on GitHub
https://github.com/d3vilh/openvpn-aws/issues/5#issuecomment-2017826802,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKWWVDX6ESJDXNDWQD4RW5DY2AFNDAVCNFSM6AAAAABFFXB2OCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJXHAZDMOBQGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Furthermore, whenever I edit the config file, I this this error message:
Config has been updated but OpenVPN server was NOT reloaded: dial tcp: lookup openvpn on <IP_ADDRESS>:53: no such host

I had a similar problem, it seems to be looking for the server.conf at /etc/openvpn/server.conf rather than /etc/openvpn/config/server.conf
I believe there is a file in the ~/openvpn-server/ called server.conf but this is never being added to the container
so I added:
 - ./server.conf:/etc/openvpn/server.conf

to the volumes section of the docker-compose.yml and everything appears to be working as it should(VPN works and config changes are being saved)

Hi @codraziel
Thanks a lot, I found the RC, there was one lost commit in dev which applies the same changes.
I just merged it with main and this is completely fixed now.
Thanks a lot!


Support for hierarchy of categories

Is it possilbe to define a hierarchy of categories so that each category page shows both pages directly assigned to it, as well as child categories? This is standard in mediawiki.
For example, given the following hierarchy, there will be a Boeing category page that shows both any pages directly assigned to the Boeing category, and it will show two child categories: 737 Max and 737-300.
Vehicles
--Airplanes
----Boeing
------737 Max
------737-300
----Airbus
------A320neo
------A380
--Cars
----Tesla
------Model 3
------Model Y
----Ford
------Explorer
------Focus

Hi @day-jeff, apologies for not replying sooner. Yeah, this is entirely doable. I'll post an update on this issue once it's implemented.

Resolved in version v0.3.0, now published to PyPI. Check out the README on how to use the syntax for subcategories.


WebApp - Show "select account" on the history screen in case disconnect injected account

Describe the bug
Show "select account" on the history screen in case disconnect injected account
To Reproduce
Steps to reproduce the behavior:

Perform connecting to Extension successfully
Go to the History screen
Select any account to view history
Open the extension then perform disconnect account in Step 3
Observe the screen displayed on WebApp

Actual: Show "select account" on Account selector

Expect: Automatically switch to another account

Version test: https://e6ea519e.subwallet-webapp.pages.dev/
Validation passed.


Fix #410: attempt to get length of local 'word' (a nil value)

I'm receiving Error executing vim.schedule lua callback: .../site/pack/packer/start/nvim-compe/lua/compe/matcher.lua:26: attempt to get length of local 'word' (a nil value), when editing lua files.
This should fix the issue.

LGTM. Thank you!


Program failed to link. Qt 5.15.3 / Ubuntu 22.04

I get the error:
RuntimeError: Program failed to link.  Link log: error: Too many combined image uniforms, shader storage  buffers and fragment outputs

Error
    at new RuntimeError (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:15446:13)
    at createAndLinkProgram (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:69612:13)
    at reinitialize (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:69772:21)
    at initialize2 (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:69767:5)
    at ShaderProgram._bind (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:69826:5)
    at beginDraw (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:176817:19)
    at Context.draw (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:176903:5)
    at DrawCommand.execute (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:67592:13)
    at executeCommand (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:210986:15)
    at executeTranslucentCommandsSortedMRT (https://sandcastle.cesium.com/CesiumUnminified/Cesium.js:199987:7)

Sandcastle example: https://sandcastle.cesium.com/?src=3D Models.html
Browser: Chrome embedded in Qt 5.15.3
Operating System: Ubuntu 22.04 running as WMWorkstation 16.2.4 guest
Cesium: 1.96 (and earlier)
The simplest sandcastle demo works OK (https://sandcastle.cesium.com/) - just get the problem when switching to the 3D models.
Here's the report showing resources from http://webglreport.com/ I saw requested in another bug.

The 3D model sandcastle runs OK in the desktop version of Chrome:

And I don't see this problem when running under Ubuntu 21.10 embedded in the same Qt application. However, in that case, webglreport.com reports that WebGL 2 is disabled in the embedded version of Chrome.

So seems to be specific to the combination of the version of Chrome embedded in Qt when WebGL 2 acceleration is enabled and the graphics driver.

Thanks for the WebGL report screenshots, @srcejon!
I'm not very familiar with running Cesium on Chrome embedded in Qt. Maybe an addition to this issue, it reach out on the forum to see if any members of the community have any insights?

The problem appears to be able to be worked around with, by setting:
viewer.scene.logarithmicDepthBuffer = false;
This thread: https://groups.google.com/g/cesium-dev/c/ZNuE86hddLA, suggests it may help by reducing the number of varyings (although Max Varying Vectors seems to be the same in the above reports - but I don't really know if that's the same thing)

Interesting. Are you running multiple Cesium views, or potentially running other WebGL applications simultaneously?
I would hesitate to label this as a bug in CesiumJS as it points to WebGL limitations within the Chrome instance embedded in Qt.

No - just the one view.
It may be a problem with Chrome/QT, but I think we'd need to narrow it down a bit more.
Is there any way to find out the specific resource that isn't getting allocated?
Is there a list of the minimum resources Cesium should need?

Looks like the error message comes from Mesa: https://gitlab.freedesktop.org/mesa/mesa/-/blob/22.0/src/compiler/glsl/linker.cpp
if (total_image_units + fragment_outputs + total_shader_storage_blocks >
consts->MaxCombinedShaderOutputResources)
linker_error(prog, "Too many combined image uniforms, shader storage "
" buffers and fragment outputs\n");
Mesa seems to export consts->MaxCombinedShaderOutputResources as gl_MaxCombinedShaderOutputResources and gl_MaxCombinedImageUnitsAndFragmentOutputs. However, there aren't MAX_COMBINED_SHADER_OUTPUT_RESOURCES or MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS in Cesium's WebGLConstants.js

I'm closing this issue due to inactivity. If you believe this is still an issue, please feel free to re-open. Thanks!


Signup Page

I will be designing signup page for the user according to the design presented in the sample image using HTML CSS. I will be taking care of page responsiveness as well. I request u to assign this to me under GSSOC'21.

@GovindCodes That task is assigned to someone else as per the FCFS rule. You may have to wait until we get any result from that assignee or I would say you must start with posting some more ideas in the Open to Ideas thread.
I have some other designs for pages as well. Let me know if you can do some complex pages involving inside features of this project.

@yash982000 I am open to work on any other pages do le me know what are the pages u want me to contribute. ThankYou 😃

@GovindCodes I am assigning you these screens if you can do it in the next few days, then let me know so that I can assign them to you.
https://github.com/ChetnaNSharma/Alumni-Connect/blob/main/Alumni Connect Design Screens/Alumni Connect Opportunities Page Continued (Pop-Up).png
https://github.com/ChetnaNSharma/Alumni-Connect/blob/main/Alumni Connect Design Screens/Alumni Connect Opportunities Page.png
https://github.com/ChetnaNSharma/Alumni-Connect/blob/main/Alumni Connect Design Screens/Alumni Connect Opportunity Page - 1.png
https://github.com/ChetnaNSharma/Alumni-Connect/blob/main/Alumni Connect Design Screens/Alumni Connect Opportunity Page - 2 Continued (Pop-Up).png
https://github.com/ChetnaNSharma/Alumni-Connect/blob/main/Alumni Connect Design Screens/Alumni Connect Opportunity Page - 2.png

@yash982000 i m sorry my exams were going on due to this i was quite inactive i will update this by tomorrow 😃

@yash982000 i m sorry my exams were going on due to this i was quite inactive i will update this by tomorrow 😃

@GovindCodes Do it as soon as possible. We have other contributors too who are asking for the same.

Hey.. If this has to done on priority basis, can you assign this issue to me. Willing to work on it. :)

@shrishti-c Yes, sure.
Assigned. Feel free to put a reminder to me on my whatsapp or Discord DM in case it's late too reply.

Sure

Sure

Any updates?
@shrishti-c
Let me know on WhatsApp or discord so that we can close this issue or assign it appropriately.
DM on discord if you need my contact info for discussing your work or any other doubts.

I can make the design of Sign Up / Sign In page.I request you to assign this to me under GSSOC'21.

I can make the design of Sign Up / Sign In page.I request you to assign this to me under GSSOC'21.

@DivyaAhuja13 Kindly open a new issue with details and proposed changes. I will be happy to assign and label it :)


chore(base-where-input): remove base where input and clean up examples

Takes care of #441

:tada: This PR is included in version 3.0.0-beta.9 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Help Using Python to Extract Minimal "Join Tree" from Substrait Plan

I'm working on tool which needs to be able to extract a skeleton "join tree" from a given substrait query plan. For now, it will assume the plan was generated by SQL queries of the shape: SELECT * FROM r1, r2, ..., rN [WHERE ...].
Could I ask for some help figuring out the TODO's I've left in the code below (which has a simple script that creates some dummy tables using duckdb, then converts a cross join query on those tables into a substrait plan, and then extracts a dict-based join tree from that substrait plan.
For example, if I run the script below, it generates a three relation cross join query SELECT * FROM r1, r2, r3 and creates r1 with ten rows, r2 with one hundred rows, and r3 with 1 row. The DuckDB/substrait plan is then converted into this dict: {'left': 'r2', 'right': {'left': 'r1', 'right': 'r3'}} (note that the order of r2, r1, r3 change if you change the cardinalities of the relations).
Questions

For queries of the "shape" above (eg SELECT * FROM r1, r2, ..., rN [WHERE ...], can I assume the root plan.relations will always have a length of 1 (eg the "result relation)?
How can I avoid the implement the recur over fields/node as an iterable in a correct way (instead of just taking the first non-None result as I do now)? Perhaps I just need to spend more time reading the spec.
Any other feedback/ideas to make this more robust/simpler?

Simplified/runnable example:
import duckdb
# print(duckdb.__version__)
# 1.1.2

# import substrait
# print(substrait.__version__)
# 0.23.0

from substrait.proto import (
    CrossRel,
    JoinRel,
    Plan,
    ReadRel,
)

BOOL_TYPE = type(True)
INT_TYPE = type(0)
STRING_TYPE = type('')
BASE_TYPES = {
    BOOL_TYPE,
    INT_TYPE,
    STRING_TYPE,
}

READ_REL_TYPE = ReadRel
BASE_RELATION_TYPES = {
    READ_REL_TYPE,
}

CROSS_REL_TYPE = CrossRel
JOIN_REL_TYPE = JoinRel
JOIN_TYPES = {
    CROSS_REL_TYPE,
    JOIN_REL_TYPE,
}

def plan_to_join_tree(plan: Plan) -> dict:
    # TODO can i assume the length of the plan root's relations is 1 for queries like 'select * from r1, r2, ..., r2 where ...'?
    assert len(plan.relations) == 1
    input = plan.relations[0].root.input
    def recur(node):
        node_type = type(node)
        if node_type in BASE_TYPES:
            return None

        if node_type in BASE_RELATION_TYPES:
            read_type = node.WhichOneof('read_type')
            if read_type == 'named_table':
                return '.'.join(node.named_table.names)
            else:
                raise NotImplementedError(f'unimplemented readrel type: {read_type}')

        if not hasattr(node, 'ListFields'):
            raise Exception(f'UNEXPECTED TYPE, {node}, {type(node)}')

        fields = node.ListFields()
        if node_type in JOIN_TYPES:
            field_names = set(desc.name for desc, _ in fields)
            if not ('left' in field_names and 'right' in field_names):
                raise Exception(f'bad join type: {node}, {type(node)}, {field_names}')
            return {
                'left': recur(node.left),
                'right': recur(node.right),
            }

        # TODO how to handle multiple fields/iterable returning not None
        for _, field in fields:
            res = recur(field)
            if res is not None:
                return res
        if hasattr(node, '__len__'):
            for el in node:
                res = recur(el)
                if res is not None:
                    return res

    return recur(input)

DEFAULT_TABLE_SIZES = {
    'r1': 1,
    'r2': 10,
}

def duckdb_substrait_plan(table_sizes=DEFAULT_TABLE_SIZES):
    table_names = list(table_sizes.keys())
    con = duckdb.connect("TwoRelCross.duckdb")
    con.install_extension("substrait")
    con.load_extension("substrait")
    # TODO avoid sql string injection
    for table_name in table_names:
        con.execute(query=f"create table {table_name} (c1 integer)")
    for table_name, table_size in table_sizes.items():
        con.execute(query=f"insert into {table_name} values ({'),('.join(map(str, range(table_size)))})")
    for table_name in table_names:
        con.execute(query=f"vacuum {table_name}")
        con.execute(query=f"vacuum analyze {table_name}")
        con.execute(query=f"analyze {table_name}")
    substrait_proto_bytes = con.get_substrait(query=f"select * from {','.join(table_names)}").fetchone()[0]
    p = Plan()
    p.ParseFromString(substrait_proto_bytes)
    return p

def main():
    substrait_plan = duckdb_substrait_plan()
    join_tree = plan_to_join_tree(substrait_plan)
    print(join_tree)

if __name__ == '__main__':
    join_tree = main()

For nearly every plan, not just ones with the given SQL pattern, there will be only one root node in the Substrait plan.
When I visit a plan I use a visitor pattern often subclassing a visitor base class .  This helps to avoid reflection and makes the code simpler to understand.
The conversion code in the textplan implementation in substrait-cpp creates a text-based tree showing the way the plan is connected.  You may find it interesting to look at the plantransformer tool output and/or its implementation (it also uses a visitor pattern).

Thanks, I'll look over the references you've provided


HomeKit showing as "Update Available"

I have added a MSS210 plug and it works perfectly, but the Apple Home app shows as an update is available and a link to the Meross app.  All of the devices are up to date, can this be overridden?

can you show the firmware version of the mss210 plug in the meross app?

2.1.7
[Image.jpeg]
Thanks,
Mat
+44 (0)7990 591055

From: Donavan Becker<EMAIL_ADDRESS>Sent: Monday, November 30, 2020 7:18:54 PM
To: donavanbecker/homebridge-meross<EMAIL_ADDRESS>Cc: Mat Clothier<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [donavanbecker/homebridge-meross] HomeKit showing as "Update Available" (#121)
can you show the firmware version of the mss210 plug in the meross app?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdonavanbecker%2Fhomebridge-meross%2Fissues%2F121%23issuecomment-735987736&data=04|01|mat.clothier%40cloudhouse.com|b8a291265ea64295ae7c08d89564c895|6c0fe8f2a0d04324a6067ca2bbdac77b|0|0|637423607377137958|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=9KdIGP6LEzATDRhInT0JPRKvdFgf0JnHYcNluPqyiN4%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANF2W7O7UKM6RKIJMKQ4ZGDSSPVZ5ANCNFSM4UH7RLHA&data=04|01|mat.clothier%40cloudhouse.com|b8a291265ea64295ae7c08d89564c895|6c0fe8f2a0d04324a6067ca2bbdac77b|0|0|637423607377137958|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=3p0IdoX04I9xzZW3n2LPfk0IjtTSp%2BoIB%2Bj9A9RDMEw%3D&reserved=0.

Hi, any ideas how to fix this?

I have the same problem. My plugin symbol, plugin firmware in Meross and Homekit are also the same.

@bywalec1 and @matclothier,
Can you test the latest beta and then input a firmware version higher then the one for your outlet and let me know if it goes away.

The plugs don’t work in Homebridge or home at all with the new beta. I tried with the working confit from before and with adding the new options.

@matclothier Do you have errors you can provide?

Error -113 for all 3 devices.

@matclothier I would check again? because I am not getting this.

OK, it looks like it is working now and the update notice has gone away.  Thanks for sorting this.

@matclothier You can actually set the firmware in the plugin settings on Homebridge UI.

Everything works fine now. Thank you very much.

The beta resolved issue for me too - Thanks


{{run_start_at}}

tristan [9:33 PM]
dude you know what we need another set of parameters
[9:33]
in the environment
[9:33]
timestamps--especially, {{run_start_at}}
[9:33]
i'm just thinking about in a streaming enviroment where you have a big build, you don't want later tables to pick up shit that earlier tables didn't get to see...
[9:34]
so you'd always do where created_at < {{run_start_at}}
[9:35]
although that wouldn't work in all cases. they'd still see updated records. hmm. ok well thoughts for another day.
drew [9:35 PM]
it would probably be where fivetran_synced_at < {{run_start_at}}
tristan [9:35 PM]
oh. hm yeah i could see that.

0.5.1 release


NS_ERROR_FAILURE in firefox

i get very this error when i navigate from parent state to child state (ui-router) only in Firefox
".getTextBBox@http://localhost:9000/bower_components/n3-line-chart/dist/line-chart.min.js:6:15149
 .getWidestTickWidth/<@http://localhost:9000/bower_components/n3-line-chart/dist/line-chart.min.js:6:15336
  .getWidestTickWidth@http://localhost:9000/bower_components/n3-line-chart/dist/line-chart.min.js:6:15298
   .adjustMargins@http://localhost:9000/bower_components/n3-line-chart/dist/line-chart.min.js:6:14469
    d/d.update@http://localhost:9000/bower_components/n3-line-chart/dist/line-chart.min.js:6:1431
    d/d.redraw@http://localhost:9000/bower_components/n3-line-chart/dist/line-chart.min.js:6:927
    $RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:9000/bower_components/angular/angular.js:13965:22
     $RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:9000/bower_components/angular/angular.js:14227:12
     timeout/timeoutId<@http://localhost:9000/bower_components/angular/angular.js:15948:24 completeOutstandingRequest@http://localhost:9000/bower_components/angular/angular.js:4877:6
     Browser/self.defer/timeoutId<@http://localhost:9000/bower_components/angular/angular.js:5250:6 "

this error is caused even though there is no line chart in child state ,
even if there is line chart it renders without any error but still i get above error in console
thanks

Bumping. This seems related to this ancient Mozilla bug, though I'm not sure what can be done about it.
For the record, the error happens at this line, and replacing getBBox with getBoundingClientRect (as suggested in the Mozilla bug thread as a workaround) makes the error go away, though it appears it might have unwanted consequences.
Firefox 35 here.

Any update on this guys ?

Same problem here, it has happened after updating to n3-line-chart 1.1.9.
My Firefox version is 38.0.
Hope this helps

thanks for reporting the issue, I made a screenshot. It seems that in 1.1.9 also the scrubber labels disappeared.


Add current limits and ramp rates for Sparkmaxes

I also added ramp rates. Can you make sure that I put the configuration values in the correct struct?

Looks good! I’d give current a default of maybe 40A since that will keep the motor from ever getting warm, and I might put the open loop ramps in the motorConfig struct since it doesn’t effect closed loop pid behavior. But since we are again modifying the constructor this might change


Should we set default architecture for macOS?

There are a number of python packages that use C extensions and need to know which architecture they're running on in order to compile properly.
I fixed this by setting export ARCHFLAGS="-arch x86_64" in my zshenv file:
https://github.com/jeffwidman/dotfiles/blob/eb5c8725a46229bf31510652602b37a95b0d0dbe/zsh/.zprofile#L6-L12
I was wondering whether we should pull this into prezto's OS X / macOS module as a default value unless the user overrides it?
It would have saved me an hour of debugging on at least two occasions (I didn't remember the root cause the second time). Downside is that anyone running OS X on 32 bit architectures will have to dig deep to figure out the problem, but the number of people running prezto + OS X on 32 bit is probably quite small.
Alternatively, perhaps there's another test we could do that guarantees we're on 64 bit architecture before setting that flag?

Can't you get the arch from uname command?

On Mac that gives only the OS name, not the architecture:
~ ❯❯❯ uname
Darwin

@jeffwidman try uname -m =)

FWIW, I ended up running into issues with hardcoding the value and had to pull it out. Details in https://github.com/jeffwidman/dotfiles/commit/ad9dd97ba718396342a4e04f71e6dd03a9b41360
So even uname -m isn't deterministic enough for the purposes of setting ARCHFLAGS...


Connection to flutter driver close

Some time i have error :
debug] [FlutterDriver] Executing Flutter driver command 'execute'
[debug] [FlutterDriver] >>> {"command":"waitForTappable","finderType":"ByValueKey","keyValueType":"String","keyValueString":"__screen_manual_scan__shipment_id","timeout":10000}
[FlutterDriver] Connection to ws://<IP_ADDRESS>:33581/8NDz6mE0fwk=/ws closed
[FlutterDriver] Connection to ws://<IP_ADDRESS>:33581/8NDz6mE0fwk=/ws closed
Appium hangs. I don't know why it happen.
Any help will be appreciated.

I guess the DartVM closed the session for some reason.
When it occurs, could you access to the ws://<IP_ADDRESS>:33581/8NDz6mE0fwk=/ws, or was the websocket closed?
If closed, maybe DartVM itself closed the websocket port by their internal issue or something.

Please try to access to the ws://<IP_ADDRESS>:33581/8NDz6mE0fwk=/ws. If the connection got refused, something occurred inside the DartVM. Then, nothing could do on the Appium side.


Base64 native encoder

This uses the Base64::Native module. The module is autodetected and only
used when it's installed. When it's not installed it falls back to the
pure Raku MIME::Base64 implementation.

Thank-you


fakehostname crashes ps at startup

using ubuntu 20.04, running centos:7.8.2003 under docker, if I use libfakehostname.so ps will crash on a i7 core (on a colleagues' workstation), a xeon 8275CL (on gcp), but not an i9 10.9k (my workstation)
I've worked around this by removing the attribute((constructor)) and looking up __orig_hostname and __orig_uname dynamically when needed (since I am not interested in trace information).

Closing due to inactivity.


Add DirChanged autocmd

Resolves #553

This bug only occurs with ~. Prime closed the issue, but for posterity, the big occurs when you open nvim from user home, then :cd to desired dir from within neovim. Harpoon does not behave as expected in that specific case: it deletes the list at the path you :cd to.


Fixes 3472: change snapshot delta to only use package count

Summary
Errata delta in pulp is unreliable, as ordering of things seem to count as a new errata, throwing the counts off.  For now we will just show package change count.
Testing steps
Snapshot a repo with package and errata (https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/) , view delta on repos table and snapshot list.  Delta count should match package count.

https://issues.redhat.com/browse/HMS-3472

@swadeley :  This may result in a change to test automation if your tests are expecting a specific number value from the "Changed" number for snapshots in the repoList view or snapshotList view
The current test failures appear to be unrelated, so I am unsure if the above will be a problem.

/retest


Java Error - No idea

Summary:
I followed the exact steps, now after pnpm android, the emulator starts and while the app is starting I get this error.
Steps to reproduce:
Start everything on a new computer and try to start pnpm android
Expected behavior:
The app should start and show me the simple expo app.
Additional notes:

I downloaded Java 8 and 11 now I'm just going crazy because I'm doing all these Android Simulator things now for 3 hours
Tasks

[ ] Task 1
[ ] Task 2
[ ] Task 3

I'm also facing the same issue. Any workarounds?

@LansPeti  I have figured out a solution. Simply ensure that you have JDK 11 installed. You can download it from here: https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html
Alternatively, you can follow these instructions: https://reactnative.dev/docs/environment-setup?guide=native
cheers

@Rvey thanks, I will try this out


Add space for advertising banner on articles and feed

We need to make some money to get swag for contributors and events. I think the simplest start is having some non-invasive ads in the sidebar. If anyone has any alternative ideas, that would be great but would like to pilot this.
I think we can start with a placeholder that brings people to the sponsors page.

Maybe something like this as an example ad

Hi Niall, I was looking into this one and apparently, the sidebar is the best way to go. A 300X600 sidebar on the right side is the most beneficial after the prime top-fold space.  I was thinking of creating a sticky sidebar with the above background image containing a link with a contact form/info.
For mobile phones convert it to a banner under your main into info.
Info on add placement
[https://setupad.com/blog/best-place-for-ads/](Add placement Optimization)

Thanks for reviving @LauraMayock  this idea to make me rethink it. I've been taking a look at how other useful blogs tackle it.
I also saw my friend @flaviocopes's blog has a really good layout for this stuff, too so it might be useful to mimic.
The sidebar shouldn't be sticky because I don't want the ads to be too invasive.
I'll link in some designs shortly if you're interested in tackling it?

@LauraMayock here are the new designs that I just mocked up - Would love to know what you think: https://www.figma.com/file/yKc7ind3lHUTpqkjTePy1N/codu.co?node-id=0%3A1&t=jHbf9Gguovvbt3G8-1

Looks Fab @NiallJoeMaher Would love to take it on.

Reach out on Discord if you need some help or want to bounce ideas.


About problems of  test WaveNet model

1. When I test the test WaveNet model on 7.6k, no wave files have been synthesized. And just echo follows:
1) commad: python synthesize.py --model='WaveNet'

2) command: python synthesize.py --model='Both'
Constructing model: WaveNet
Initializing Wavenet model.  Dimensions (? = dynamic shape):
Train mode:                False
Eval mode:                 False
Synthesis mode:            True
local_condition:            (1, 80, ?)
outputs:                    (?,)
Loading checkpoint: logs-Tacotron-2/wave_pretrained/wavenet_model.ckpt-76000
Traceback (most recent call last):
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1322, in _do_call
return fn(*args)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1307, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1409, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.NotFoundError: Key model_1/model/ResidualConv1dGLU_0/residual_block_cin_conv/bias_residual_block_cin_conv/ExponentialMovingAverage not found in checkpoint
[[Node: model_1/save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_model_1/save/Const_0_0, model_1/save/RestoreV2/tensor_names, model_1/save/RestoreV2/shape_and_slices)]]
[[Node: model_1/save/RestoreV2/_493 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device_incarnation=1, tensor_name="edge_498_model_1/save/RestoreV2", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:0"]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "synthesize.py", line 91, in
main()
File "synthesize.py", line 85, in main
synthesize(args, hparams, taco_checkpoint, wave_checkpoint, sentences)
File "synthesize.py", line 34, in synthesize
wavenet_synthesize(args, hparams, wave_checkpoint)
File "/data02/zhangyb/test1/Tacotron-2/wavenet_vocoder/synthesize.py", line 78, in wavenet_synthesize
run_synthesis(args, checkpoint_path, output_dir, hparams)
File "/data02/zhangyb/test1/Tacotron-2/wavenet_vocoder/synthesize.py", line 19, in run_synthesis
synth.load(checkpoint_path, hparams)
File "/data02/zhangyb/test1/Tacotron-2/wavenet_vocoder/synthesizer.py", line 32, in load
load_averaged_model(self.session, sh_saver, checkpoint_path)
File "/data02/zhangyb/test1/Tacotron-2/wavenet_vocoder/train.py", line 56, in load_averaged_model
sh_saver.restore(sess, checkpoint_path)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1802, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 900, in run
run_metadata_ptr)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1135, in _run
feed_dict_tensor, options, run_metadata)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1316, in _do_run
run_metadata)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1335, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: Key model_1/model/ResidualConv1dGLU_0/residual_block_cin_conv/bias_residual_block_cin_conv/ExponentialMovingAverage not found in checkpoint
[[Node: model_1/save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_model_1/save/Const_0_0, model_1/save/RestoreV2/tensor_names, model_1/save/RestoreV2/shape_and_slices)]]
[[Node: model_1/save/RestoreV2/_493 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device_incarnation=1, tensor_name="edge_498_model_1/save/RestoreV2", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:0"]]
Caused by op 'model_1/save/RestoreV2', defined at:
File "synthesize.py", line 91, in
main()
File "synthesize.py", line 85, in main
synthesize(args, hparams, taco_checkpoint, wave_checkpoint, sentences)
File "synthesize.py", line 34, in synthesize
wavenet_synthesize(args, hparams, wave_checkpoint)
File "/data02/zhangyb/test1/Tacotron-2/wavenet_vocoder/synthesize.py", line 78, in wavenet_synthesize
run_synthesis(args, checkpoint_path, output_dir, hparams)
File "/data02/zhangyb/test1/Tacotron-2/wavenet_vocoder/synthesize.py", line 19, in run_synthesis
synth.load(checkpoint_path, hparams)
File "/data02/zhangyb/test1/Tacotron-2/wavenet_vocoder/synthesizer.py", line 27, in load
sh_saver = create_shadow_saver(self.model)
File "/data02/zhangyb/test1/Tacotron-2/wavenet_vocoder/train.py", line 53, in create_shadow_saver
return tf.train.Saver(shadow_dict, max_to_keep=5)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1338, in init
self.build()
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1347, in build
self._build(self._filename, build_save=True, build_restore=True)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1384, in _build
build_save=build_save, build_restore=build_restore)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 835, in _build_internal
restore_sequentially, reshape)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 472, in _AddRestoreOps
restore_sequentially)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 886, in bulk_restore
return io_ops.restore_v2(filename_tensor, names, slices, dtypes)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/gen_io_ops.py", line 1463, in restore_v2
shape_and_slices=shape_and_slices, dtypes=dtypes, name=name)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3392, in create_op
op_def=op_def)
File "/data02/zhangyb/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1718, in init
self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access
NotFoundError (see above for traceback): Key model_1/model/ResidualConv1dGLU_0/residual_block_cin_conv/bias_residual_block_cin_conv/ExponentialMovingAverage not found in checkpoint
[[Node: model_1/save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_model_1/save/Const_0_0, model_1/save/RestoreV2/tensor_names, model_1/save/RestoreV2/shape_and_slices)]]
[[Node: model_1/save/RestoreV2/_493 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device_incarnation=1, tensor_name="edge_498_model_1/save/RestoreV2", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:0"]]
2. But the predict is normal in train stage:

Same here

I have donwload latest codes and do follows as author said: train with "Tacotron2" and test with "Both", still stuck in the problem.
@Rayhane-mamah, dou you have some suggestion?

check #https://github.com/Rayhane-mamah/Tacotron-2/issues/64
This is my implementation.
tacotron_bugfix.zip
I had edited codes in 'hparam.py', '/wavenet_vocoder/train.py', and '/wavenet_vocoder/synthesize.py' using hard coding.
It will be added to pull request soon.

@Yeongtae thank for your efforts for fixing bug, I would try it

@Yeongtae , does your synthesis reads the sentences from the hparams.py?
Also, @v-yunbin, I have run the code and you just need to wait a bit. It takes some computational power to synthesise from wavenet. After 1 one hour I managed to synthesise 10 audio files. However, @Yeongtae , it is just noise...

@v-yunbin It isn't stuck, it's just slow inferencing.
@dsilva-tbox because we don't converge our model and there are some bugs in wavenet_vocoder. I'm trying to fix it.

@Yeongtae Beyond my imagination, it's so slow...  Look forward to the fix.
@dsilva-tbox we only wait to fix it.

#https://github.com/Rayhane-mamah/Tacotron-2/pull/110

@Yeongtae, Must we re-train wavenet model after applying your fixed code?

@NewEricWang I just fix a bug in synthesize.py.


Support for SmartThings Arrival Sensor

Device description
SmartThings Arrival Sensor STS-PRS-251 / STS-PRS-250
MQTT message with device information
PUT here the device data you receive when publish message with topic
zigbee2mqtt/bridge/config/devices, as example
{"ieeeAddr":"0x24fd5b0001056a99","type":"EndDevice","model":"tagv4","friendly_name":"Arrival Sensor"}

MQTT messages from device
Put here examples of MQTT messages with different states you've received from device, as example
 zigbee2mqtt:info 2018-11-24 02:12:33 MQTT publish, topic: 'zigbee2mqtt/Arrival Sensor', payload: '{"presence":true,"linkquality":49,"battery":"20.00","voltage":2600}'

MQTT state change commands
If device supports state change put MQTT topics + payload examples to change device state here

@fielux Should be available with latest master branch, could you please update and check

Great will do!
Il giorno dom 9 dic 2018 alle ore 12:20 Stanislav Demydiuk <
<EMAIL_ADDRESS>ha scritto:

@fielux https://github.com/fielux Should be available with latest
master branch, could you please update and check
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin/issues/41#issuecomment-445528983,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ArMS3bE1odiT-Xf8518ISoceBgZrwxNfks5u3PHtgaJpZM4YxOI0
.


Include feature_space interaction with transformers description or visualization in titanic tutorial(or other tutorial)

I think it would be great to use the previous tutorials as examples to illustrate what feature_space and transformers look like in simpler cases since most of the time some spaces are identical.

implemented in pyreal_introduction


PDF report generated unable to open.

Hi
I am working on a web proj.. wih extend report the html report is all gud but pdf gets generated in the location as mentioned in properties file but doesnt open. and the below error msgs are displayed when run as testNG suite.
should i add any dependency or yaml file?  - note i do have these dependencies in my pom (

tech.grasshopper
extentreports-cucumber6-adapter
2.8.3

com.aventstack
extentreports
5.0.8

tech.grasshopper
extent-pdf-report
1.7.3
)
ERROR :
Aug 09, 2021 4:19:53 PM tech.grasshopper.pdf.extent.ExtentPDFCucumberReporter flush
SEVERE: An exception occurred
tech.grasshopper.pdf.exception.PdfReportException: java.io.IOException: The TrueType font null does not contain a 'cmap' table
at tech.grasshopper.pdf.PDFCucumberReport.createReport(PDFCucumberReport.java:120)
at tech.grasshopper.pdf.extent.ExtentPDFCucumberReporter.flush(ExtentPDFCucumberReporter.java:81)
at tech.grasshopper.pdf.extent.ExtentPDFCucumberReporter.access$100(ExtentPDFCucumberReporter.java:19)
at tech.grasshopper.pdf.extent.ExtentPDFCucumberReporter$1.onNext(ExtentPDFCucumberReporter.java:56)
at tech.grasshopper.pdf.extent.ExtentPDFCucumberReporter$1.onNext(ExtentPDFCucumberReporter.java:49)
at io.reactivex.rxjava3.subjects.PublishSubject$PublishDisposable.onNext(PublishSubject.java:310)
at io.reactivex.rxjava3.subjects.PublishSubject.onNext(PublishSubject.java:226)
at com.aventstack.extentreports.ReactiveSubject.onFlush(ReactiveSubject.java:83)
at com.aventstack.extentreports.AbstractProcessor.onFlush(AbstractProcessor.java:85)
at com.aventstack.extentreports.ExtentReports.flush(ExtentReports.java:284)
at com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter.finishReport(ExtentCucumberAdapter.java:300)
at com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter.access$600(ExtentCucumberAdapter.java:62)
at com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter$8.receive(ExtentCucumberAdapter.java:136)
at com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter$8.receive(ExtentCucumberAdapter.java:133)
at io.cucumber.core.eventbus.AbstractEventPublisher.send(AbstractEventPublisher.java:51)
at io.cucumber.core.eventbus.AbstractEventBus.send(AbstractEventBus.java:12)
at io.cucumber.core.runtime.CucumberExecutionContext.emitTestRunFinished(CucumberExecutionContext.java:93)
at io.cucumber.core.runtime.CucumberExecutionContext.finishTestRun(CucumberExecutionContext.java:74)
at io.cucumber.testng.TestNGCucumberRunner.finish(TestNGCucumberRunner.java:127)
at com.snoop.runner.WebAppRunner.tearDownClass(WebAppRunner.java:56)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:61)
at org.testng.internal.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:366)
at org.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:320)
at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:217)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:130)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
Caused by: java.io.IOException: The TrueType font null does not contain a 'cmap' table
at org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmapImpl(TrueTypeFont.java:561)
at org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmapLookup(TrueTypeFont.java:541)
at org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmapLookup(TrueTypeFont.java:527)
at org.apache.fontbox.ttf.TTFSubsetter.(TTFSubsetter.java:90)
at org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.subset(TrueTypeEmbedder.java:346)
at org.apache.pdfbox.pdmodel.font.PDType0Font.subset(PDType0Font.java:256)
at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1349)
at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1328)
at tech.grasshopper.pdf.PDFCucumberReport.createReport(PDFCucumberReport.java:116)
... 45 more

I DO HAVE THE FOLLOWING DEPENDANCIES IN POM

tech.grasshopper
extentreports-cucumber6-adapter
2.8.3

com.aventstack
extentreports
5.0.8

tech.grasshopper
extent-pdf-report
1.7.3

What is the dialect or language?
The PDF uses an open source font family - Liberation  for display and some languages are not supported. U can refer to this this comment for more details - https://ghchirp.tech/2224/#comment-2035
Have u tried the reference project to create the pdf report? https://github.com/grasshopper7/cuke6-extent-adapter-report
U just need to add the extentreports-cucumber6-adapter dependency in POM. Rest are transitive dependencies ( extentreports and  extent-pdf-report).

Hi, Thank you for a quick response. having got the right dependancies i see pdf report generates fine now.
I am running 3 tests simultaniously (in 3 diff browser platforms) - the html report gives a consolidated view of all the 3 tests.
this is where the pdf generating crashes.
when we run only one test - (in only one browser) - pdf generation works
but not when multiple tests are run . any directions to this would be helpful. (is ther anyway to  do tis without having to change my framework towards parallel execution approach? )

If there are multiple runners then do not use the adapter plugin method for creating PDF report. Multiple threads cannot access a single PDF file for writing. This is also mentioned in the article - https://ghchirp.tech/2098/, search for 'PDF Extent Report' section for more details.
Two other ways of creating the PDF report.
First method - Generate the PDF report by using a Maven plugin which will execute in the 'post-integration-test' phase. This uses the cucumber JSON report. The other extent report like Spark can be generated by the existing adpater plugin. Refer to https://ghchirp.tech/2224/, section 'Cucumber Maven Report Plugin'.
Second method - Generate all reports by using a Maven plugin which will execute in the 'post-integration-test' phase. This also uses the cucumber JSON report. Refer to https://ghchirp.tech/2114/.

thank you
i have the following tests in my testng.xml and only 1 runner class to call this xml file. but as it runs 3 tests pdf overriding issue is happening . so trying to create json and using  in pm.xml would help .. is that right ?

If there is only one runner instance, then the PDF report should be generated correctly. Is the setup in the testng.xml creating multiple instances of the runner class?
Can u share the settings? I have never used testng.xml to trigger cucumber runners so will have to understand what you are attempting. Using Maven lifecycle is much simpler.

this is my testNG file. im running same runner class in 3 diff browsers via testNG

xml version.docx

i have extent.config and extent.properties as per guidance. and here is my runnerclass  method
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/resources/features",
//specifyin to execute in feture order : @Cucumber.Options(features={"first_smoke.feature", "another_smoke.feature"})
glue = {"com.snoop.stepDefs" },
monochrome = true,
tags =  "@linkedState",
publish = true,
plugin = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:",
"json:target/json-report/cucumber.json"})

pom plugin:

tech.grasshopper
extentreports-cucumberjson-plugin
2.8.3

report
post-integration-test

extentreport

target/json-cucumber-reports
src/test/resources/extent.properties
false
true

xml version.docx
pom plugin

You are basically triggering three instances of the runner class. The PDF report will not work correctly.
U will need to use the alternate techniques I had mentioned in the previous comment. The testng.xml will have to be added to the surefire or failsafe plugin settings.

hi ,
I have dropped including pdf as the html report looks good . and for html report - i only addded the plugin adapter "com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"
to the runner class .. and jave config file and properties file added to resourches. the dependancies in the pom.xml .
could you help with if thre is a any repo reference to add screenshots with the reports please ? without creating too many additional classes?
thanks

@grasshopper7 Any update on this issue. I facing the same issue for my framework. I have multiple @test in my testng.xml file and each test is executing the same TestRunner class to achieve parallel testing. In this case, pdf report is generating with 0KB size and not opening. Earlier mentioned link for alternate solutiuon is not opening as well.


Improve error message on error because using WidgetRef inside State.dispose

related to https://github.com/rrousselGit/riverpod/issues/2538

This was done in a previous release. The current message is:

Cannot use "ref" after the widget was disposed.

I am facing the same issue, and still not found what is the main cause.

@Faiz-rhm you can manually dispose a provider using ProviderContainer like this:
  late final ProviderContainer _providerContainer;

  @override
  void initState() {
    _providerContainer = ProviderScope.containerOf(context, listen: false);
    super.initState();
  }

  @override
  void dispose() {
    _providerContainer
      .invalidate(provider);
    super.dispose();
  }


Added binary search and ability to drop ellipsis char

Closes #10.

HI @andrew-aladev thanks for your PR :+1: @edoparearyee is currently on Holiday for a couple of weeks (I'm not a FE dev and have no idea what this does :smile:) So might take a little while for this to get reviewed.

It it is possible for us to split the last word into characters, mechanism of adding ellipsis char will be different.You can add per-character strategy by modifying the second block.

As mentioned here I am unable to reproduce the issue. Once I have a code sample to test against will look to merge this in.

Closing as this has been superseded by #12


Alternative neighborlists for big systems with PBCs

I found I was running out of memory trying to use AIMNet2 for systems above about 10,000 atoms and with PBCs. It turned out it was possible to increase accessible system sizes using the torch-cluster radius function instead of building a (possibly very big) connectivity matrix directly (i.e.  conn_mat ), similar to how the non-PBC implementation works. Is there any interest in merging this into main, as I found it very useful for my application?
Here's the timing info for ASE MD simulations of water on an 80GB A100. Left to right shows no LR, cutoff_lr=10Å, and cutoff_lr=20Å respectively. Lines terminate when I run out of GPU memory. The best performance increase by doing this is gained when the molecular graph is sparse (i.e. not using or using 'shorter' long-range interactions). You can get out close to 100k atoms for just the short-range interaction case, which is close to an order-of-magnitude increase. It's also a bit faster this way for medium-sized systems of >5k atoms. With LR interactions, it's slower, so I made a default setting of if cutoff < 20 and size > 10000 then use new implementation.

Thanks a lot for the contribution. I will carefully review it. Actually, I had a plan to completely avoid torch_cluster in favor of numba kernels.

ah I see, guessing that's because torch_cluster has quite strict compatibility requirements (at least, I found it didn't play nice with other packages when installing). In any case, a fast way of finding the neighbours of atoms would be important for big systems, e.g. with a KDTree. I couldn't find any standard GPU-implementation of that available though


Fixed nasty bug in page caching that would almost always disable page caching entirely

Fixed typo and added missing "the."

Original PR was for: Fixed typos/English.
But I just fixed a nasty bug in page caching I ran into. Page caching would be disabled entirely if you had at least one cookie (any cookie) and "Rejected cookies" list (pgcache.reject.cookie) was blank.
Some test data with empty "Rejected cookies"
'~' . $reject_cookies . '~i'
: string = ~~i
$key . "=$value"
: string = RANDOM_COOKIE=blabla

In this case, _check_cookies() would return false because the regex is essentially empty and matches every string.
If we added at least something into "Rejected cookies", like THIS_IS_SPARTA=TRUE:
'~' . $reject_cookies . '~i'
: string = ~THIS_IS_SPARTA\=TRUE~i
$key . "=$value"
: string = RANDOM_COOKIE=blabla

In this case, _check_cookies() would return true, which is correct behavior.
To test, make sure your "Rejected cookies" is empty in page caching settings, enable page caching debug, and try to load the site in incognito. Set at least one cookie, doesn't matter which one (outside of wp-postpass|comment_author, of course), and observe that page caching is broken at this point because of "Reject reason:      Cookie is rejected". For me, that cookie was instantly __cfduid, which Cloudflare sets for every request, so the issue cropped up immediately.

Always thanks!  Nice catch!


refactor: use @vueuse/core useEventListener composable in order to remove listeners easier

Close #1182
Feel free to change the commit message when you want to squash it 😬

Only these files are using the native addEventListener function, which I'm not sure how to use useEventListener composable there, feel free to check them out and give a tip


[SEPOLICY] Add support for the Camera Augmented Sensing Helper Server

Needs context and permission to read input devices, search,
read and write its own sockets.
Also needs camera HAL to access its socket.

I agree
please make the cleanup after this merge so that we have a split between additions and cleanup

please do the suggested changes without cleanup


ContainerNotFoundException with 2.114.0

Agent version and platform
Version of your Agent: 2.114.0
OS of the machine running the Agent: Windows Server 2016
VSTS type and version
VisualStudio.com
account Name: http://ptd.visualstudio.com
What's not working?
I Upgraded to version 2.114.0 from v2.112.0 today and after that my releases stopped working with this error at th download artifacts step:
An error occurred during download: Microsoft.VisualStudio.Services.FileContainer.ContainerNotFoundException: The container 670588 could not be found

After roling back to version 2.112.0 everything is back to normal.
I double checked if the artifact ist there and I cleaned up my build agent.
Also I rebuild all linked definitions.
There are 2 other artifacts that works fine in the same task. The only difference I can see at the moment is that th not working arifact only has 1 zip file in it and the other has more files.
I switched to an other artifact from another build with als only a zip in it and got the same error.
Did I miss something?
Best regards,
Kirsten

@kirkone #868 will fix the issue.

OK, thank you very much.
I presume this fix can not make it in the 2.115.0 release. Is there a eta when we get a fixed Version?
Thank you for your great work.
Kirsten

@kirkone We will make it into 2.115.0 agent. you can try the pre-release 2.115.0 from github, it should contains the fix.

Hello,
I can confirm this is fixed with 2.115.0
Thank you

I installed 2.115.0 from here https://github.com/Microsoft/vsts-agent/releases and got the same error.
My problem is releated to this one https://developercommunity.visualstudio.com/content/problem/33326/vsts-release-the-container-568443-could-not-be-fou.html
We updated TFS 2017 CU1 yesterday and this problem started.
My workaround is put the builds artifact in the same team project as the release. Not too many of our releases are affected so far.

@GitHubSriramB FYI,
@Bhuard1 which version your were using before upgrade to TFS 2017 CU1?

We are having issues with this in our VSTS instance. with many releases stalled because they cant pull builds. We are paying for hosted build agents so we do not control their agent version. The natives are restless :)

@Bhuard1, did you face this issue when you downloaded & configured agent from TFS 2017 CU1? Or did you face it only after configuring 2.115.0 version of agent against TFS 2017 CU1?

@erendrake - will follow up and let you know solution for this issue when using hosted agents.

@GitHubSriramB
Terribly sorry. My error. When I reinstalled version 115 my test build was being queing to another build agent which I had not yet upgraded with the fix (I need to do so with the operations team so it is a little long).
The build 115 works fine.  It grabs artifacts from builds that are in another team project.
So to recap, I face the issue after the TFS upgrade (which installed version 114 but did not update the agent capabilities for some reason, still indicating agent,version,;1.105.6; but that is not important).
I will upgrade my other agent machine with 115 tomorrow.
Thank you so much for the quick fix.

@Bhuard1 - thanks for the quick response. Glad that you are unblocked.

This is working for us now that 2.115 as been deployed. I think we can close this?

@erendrake Cool, glad you unblock.


Unable to resolve ../../Utilities/Platform inside of 'react-native' package

Environment
Description
Unable to resolve modules related to react-native. The app is not able to detect a Platform.js file since Platform.android.js and Platform.ios.js exist but no Platform.js file exists.
Error Message
Error in "./node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js": Module not found: Error: Can't resolve '../../Utilities/Platform'

Is there a recommended way to resolve this? Currently have webpack.config.js bootstrapped off of the example.
Originally we had a haul config and things worked. Not sure how to go forwards with this setup.

Answering my own question here.
Looks like I had the wrong config for the react-native path. Using the example alias for react-native seemed to work
With the default setup
const ReactNative = require('@callstack/repack')
const reactNativePath = ReactNative.getReactNativePath()

Under resolve.alias having 'react-native': reactNativePath works. Now just to figure out all the other resolution and loader bugs.


Fix workflow retry

Pull Request Test Coverage Report for Build 2542

24 of 24 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.05%) to 69.018%

Totals

Change from base Build 2529:
0.05%

Covered Lines:
9267

Relevant Lines:
13427

💛  - Coveralls


[Question]: Cann't start ragflow-es-01

Describe your problem

root@20241017-instance:~/workspace/ragflow/docker# docker compose -f docker-compose.yml up -d
WARN[0000] The "HF_ENDPOINT" variable is not set. Defaulting to a blank string.
WARN[0000] The "MACOS" variable is not set. Defaulting to a blank string.
[+] Running 4/4
 ✔ Container ragflow-redis  Running                                                                                0.0s
 ✔ Container ragflow-minio  Running                                                                                0.0s
 ✔ Container ragflow-mysql  Healthy                                                                                0.5s
 ✘ Container ragflow-es-01  Error                                                                                0.5s
dependency failed to start: container ragflow-es-01 is unhealthy
root@20241017-instance:~/workspace/ragflow/docker# docker ps
CONTAINER ID   IMAGE                                                  COMMAND                  CREATED             STATUS                            PORTS                                                           NAMES
f09157332198   docker.elastic.co/elasticsearch/elasticsearch:8.11.3   "/bin/tini -- /usr/l…"   About an hour ago   Restarting (137) 29 seconds ago                                                                   ragflow-es-01
75a6bd9a9eb0   redis:7.2.4                                            "docker-entrypoint.s…"   About an hour ago   Up 8 minutes                      <IP_ADDRESS>:6379->6379/tcp, :::6379->6379/tcp                       ragflow-redis
939d9da8b4b9   quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z       "/usr/bin/docker-ent…"   About an hour ago   Up 8 minutes                      <IP_ADDRESS>:9000-9001->9000-9001/tcp, :::9000-9001->9000-9001/tcp   ragflow-minio
a29ae0479029   mysql:8.0.39                                           "docker-entrypoint.s…"   About an hour ago   Up 8 minutes (healthy)            33060/tcp, <IP_ADDRESS>:5455->3306/tcp, [::]:5455->3306/tcp          ragflow-mysql
root@20241017-instance:~/workspace/ragflow/docker# docker logs f09157332198
Created elasticsearch keystore in /usr/share/elasticsearch/config/elasticsearch.keystore

ERROR: Elasticsearch exited unexpectedly, with exit code 137

ERROR: Elasticsearch exited unexpectedly, with exit code 137

ERROR: Elasticsearch exited unexpectedly, with exit code 137

ERROR: Elasticsearch exited unexpectedly, with exit code 137

ERROR: Elasticsearch exited unexpectedly, with exit code 137

I followed the guide document and found that the startup failed.
Can you provide some directions or suggestions to solve this problem？

Hi
It might be an issue with memory. Stackoverflow issue
Did you modify the vm.max_map_count first before starting the containers? If you didn't do it, you can use this guide:
sysctl vm.max_map_count
sudo sysctl -w vm.max_map_count=262144
Note that this change is not permanent and will be reset after a system reboot.
To make your change permanent, update /etc/sysctl.conf by:
Adding or modifying the following line:
vm.max_map_count=262144
(Source: ragflow/docker/.env)

@PascalRM
Thank you for your reply.
I updated/etc/sysctl.conf from the beginning and set vm. max_map_count=262144, but it doesn't solve my problem. Do you have any other good ideas?

After I remove the docker/docker-compose-base.yml config mem_limit
I started up it successfully. I don't kown why?

@xiaoquanWu It is a limit for Docker how much memory can be used (Source).
How much memory does your system have? For RagFlow you should atleast have 16GB.

@PascalRM
My system is  8CPU and 32G.  The information as follows
root@20241017-instance:~# lsmem
RANGE                                 SIZE  STATE REMOVABLE  BLOCK
0x0000000000000000-0x00000000bfffffff   3G online       yes   0-23
0x0000000100000000-0x000000083fffffff  29G online       yes 32-263

Memory block size:       128M
Total online memory:      32G
Total offline memory:      0B

root@20241017-instance:~# lscpu
Architecture:             x86_64
  CPU op-mode(s):         32-bit, 64-bit
  Address sizes:          46 bits physical, 48 bits virtual
  Byte Order:             Little Endian
CPU(s):                   8
  On-line CPU(s) list:    0-7
  Model name:             Intel(R) Xeon(R) Gold 6267C CPU @ 2.60GHz


the great brain robbery fix amount of nails needed to repair steps

make the amount of nails in substep match amount needed

wait im not actually sure, i think the big requirement might be wrong too. I think this only used 10 nails

cant really re-do it to make sure...

the numbers are wrong, but ill abandon this and jsut create an issue i suppose


Implement a well defined ordering among types

Replace the current total ordering of types defined by the address at which each type is defined (which is effectively random) with an explicit ordering. This makes writing unit tests easier and provides predictable run time behavior for users regardless of which platform they run Elvish on.
Related #1495

I'll point out that my pending change to improve the pprint formatting of maps to vertically align values depends on this change. Primarily due to a unit test that deliberately includes mixed types to verify the formatting of the output is correct when mixed types are present. I appreciate why @xiaq rejected my previous solution to this problem but there really does need to be a platform independent ordering of heterogenous types. This change does so and is cheap. It also fixes a problem with the current implementation which does not treat regular and struct maps as equivalent when ordered. Not to mention simply making the order of heterogenous types consistent across platforms; rather than indeterminate.

Reflection is expensive, and the Name() is not unique; you need PkgPath() too.
A much cheaper option is to simply return small numbers:
func typeOf(x any) uintptr {
  switch x.(type) {
  case nil:
    return 0
  case bool:
    return 1
  // ...
  default:
    return *(*uintptr)(unsafe.Pointer(&x))
  }
}

I don't think Elvish supports any operating system that maps page 0 without an explicit mmap, but if there's a need to support such platforms, it's always possible to allocate a small byte array, and use its address instead:
var dummy [10]byte
var dummyBase = uintptr(unsafe.Pointer(&dummy))

func typeOf(x any) uintptr {
  switch x.(type) {
  case nil:
    return dummyBase
  // ...
}

However, I don't feel having predictable ordering for testing pprint is a strong enough reason for having the ordering of types fixed; it's not a real-world use case. I'll reconsider if there's a real-world use case.
For testing pprint: If there are two types, you can just list the two possible outputs. If there's really a need for many different types, you can build some test utility, like this (very rough sketch):
type reorderableLines struct{
  before string
  middle []string // can appear in any relative order
  after string
}

Test(t,
  That(`pprint $m`).Prints(reorderableLines{"[", []string{"&a=b\n&c=d", "&(num 1)=foo\n&(num 2)=bar"} "]"})

In any case, the logic of pprint should be agnostic about maps having mixed-typed keys, so I'm not sure that it's necessary to test in the first place. But maybe your implementation does care about that.

4ceb91901e83f3eae9d7db44d7a3268771e6bba7 fixed the structmap bug.