Accessing background returns for evaluation results

I am interested in looking at the collective rewards achieved by the exploiter MAPLA agents that were trained for the Melting Pot 2.0 report. In the evaluation_results.ipynb notebook, the results are downloaded from the path https://storage.googleapis.com/dm-meltingpot/meltingpot-results-2.1.1.feather, which contains the focal per capita returns for the exploiters, but not the background per capita returns for the agents they were trained against. Would it be possible to access the data so that I can make evaluations of the collective returns achieved in these scenarios?

This would be good to have. Unfortunately, I don't think we actually saved this information.


Can you kindly add "deskew, descreen, remove background, text sharpening" option for scanned PDF ?

Hi.
Adobe acrobat has such abilities & till now no opensource on Linux has such abilities !
What encourage me to ask you for these function is the fact that your great tool output PDF file has same quality of original input scanned PDF without distroying resolution or effect it adversely !
On Adobe acrobat pro these functions have following choices (under "optimize scanned PDF):
a. deskew (either ON or OFF)
b. descreen (either ON or OFF)
c. remove background (either OFF, Low, Medium, or High)
d. text sharpening (either OFF, Low, Medium, High)
The most important point is that if these functionalities added to QPDF, then the resolution of output PDF should not altered adversely.
Best

My program ocrmypdf (which uses qpdf for some of its PDF manipulation) can deskew and remove backgrounds without changing the resolution or original compression setting. You can disable OCR if desired, although OCR needs to be redone after deskewing.

qpdf is focused on structural manipulation of files. As @jbarlow83 points out, it would be possible to use qpdf to help with a program that does this, but this is not something I would include in qpdf itself.

@jbarlow83
Many thanks for this !!! But unfortunately it is not available on Fedora repositories.
Just I would like to know:

does ocrmypdf have option to descreen (remove dots noises without removing dots of characters) ?
does ocrmypdf have option to increase sharpness of text (make text more clear) ?
does ocrmypdf have a frontend GUI or not ?

In fact we have a great program called gscan2pdf to do all these via unpaper, but result in large sized pdf due to fact it do not support pdf directly, but convert them into image format 1st then reconvert these to pdf.
It seem that you introduced a program overcome this shortage, which is a very great work !

@Nokia808 - this isn't the best place for that Q&A. In short no to the questions. I'm happy to take feature requests and questions on my github issues page.


Diagnostic highlights

Hi,
I was trying to set the diagnostic with the some highlights there is a way?
Thanks,

Hi,
Do you mean highlighting the diagnostic findings in the bar?
I do use the diagnostic highlights when having slimline configured as fg:

I decided not to use diagnostic colors when using bg because it did not look that good for me.
Should we make it configurable?

I see, thanks.
Maybe  must be configurable.


Improve documentation for ACME/Let's Encrypt

What does this PR do?

Proposes improvements to the ACME/Let's Encrypt documentation:

Describes the domain selection mechanism from routers
Provides more Dynamic Configuration Examples for LE/ACME
Adapt the table of content structure

Exclude all the markdown files which names follows the pattern include-*.md. This was already implemented, but not working so it's fixed now.
Fixed a typo on the routing documentation for Marathon.

Motivation
https://community.containo.us/tags/c/traefik/letsencrypt-acme should be enough :)
Beginners/newcomers might not immediately get "how is that black magic is magicking?"
when using Let's Encrypt/ACME.
The goal is to "state what is obvious for us but not for others".
More

~[ ] Added/updated tests~
[x] Added/updated documentation

Additional Notes
Please note that the no links should be broken by the "Table of content" re-struct.

@dduportal You can see my two suggestions. Overall good job!

@ldez @mpl suggestions applied.


[Rebalancing thoughts] Vorpal effects

In my current run-through, the two main fighters in my party of six are Dusk and
Korgan. Both are very powerful. I think Korgan is actually a little bit stronger, due
to items (hammer giving 25 str and the vorpal axe now); though Dusk can do
oath of fury, so both are strong.
However had, the vorpal effect is making winning fights quite easy.
For instance, in the final fight for Dusk, where we face four enemy mages and
some helper allies, Korgan rushes in under berzerk. I actually waited for this
and amassed even more XP so he can whirlwind. He single-handedly killed
three of the enemy mages due to vorpal effect.
Lateron I did Tower of Deception. Admittedly when you are at a high level,
many mods are quite easy, but Korgan slew Ustain (the final boss) via
a vorpal strike. I had similar results lateron.
I believe the vorpal effect in and by itself is not necessarily overpowered.
But I think the scaling effect has to be considered, as well as the percentage;
I think it is 10% or so, and if one whirlwinds while under haste, this is
pretty deadly.
I am not suggesting to re-balance the mod, even though (while it is my
favourite mod) it is a powerful mod overall, and I am not really wanting
to suggest to nerf it, I believe some of the "high end's" effects should be
considered - vorpal effect of the axe in particular.
I am not sure how to rebalance it, should this be done, but I think the
10% chance is too high. I thought about, say, decreasing it to 5% or
something like that. Or even below that. What if it only happens on a
critical hit? I think that is a 5% chance, a roll of 20 on a D20 (though I
think in some gamebook rules of ADnD, 19 may also count as a
critical hit, so this rebalancing would not have a real change if both
19 and 20 count as critical).
The save versus the vorpal effect could also be made a bit easier.
IF vorpal effect is nerfed then perhaps the axe could get some other
bonus, perhaps increasing the luck of Korgan for a bit. Or a new
ability such as some extra damage such as +1 acid or anything
like that.
A more serious change would be to remove vorpal effect and replace
it with some other good effect. Perhaps the 10% chance could be
kept but it would do additional damage. Could be slash or piece
damage perhaps... hmm slash may make more sense for an axe.
Some mod add-on has a spear or so that adds +10 damage base
flat on a hit. Anyway - the idea is to slightly reduce the power, at
the least on a high end char.
Another idea could be to keep vorpal effect but to cause a cooldown
after it has triggered once, say 2 rounds or so where vorpal
does not is in effect AFTER it was triggered. That would just be
a small nerf and probably not change that much, except that
chain-vorpaling enemy units with Korgan rushing through solo
would be a bit less likely than it is right now.
Getting rewards is great but I think some effects are overpowered.
(Flail of Ages slow effect in vanilla games of BG2 is also overpowered,
IMO, but I guess it is a tiny bit below vorpal insta-kill effects.)
Anyway, it's just an idea - don't worry too much about it either way
and feel free to close the issue down at any moment in time for
any reason.

Greetings! The nerf to the Golden Axe was planned. Its chance will be lowered to 3%, and the save vs. death penalty will change from -4 to -2. To compensate for this, 1 point of magical damage per hit will be added.
However, the Dusk mod will now transition to a larger mod called Autumn's Twilight. It will include more quests, more joinable NPCs, new magic spells, some new kits, new animations for new enemies, and new areas. All content from Dusk will be integrated into this new mod, and maintenance will take place there. Therefore, the next update for Dusk will be in this new mod, in a new repository. I will post here and in various sites when I have the new repository, which will be very soon.


Obsolete link, what the process like?

Hello,
This link "aidev.codes" seems to be in migration for now.

I've removed unreachable websites. you can always submit websites with new urls to www.thataicollection.com/submit or just email me<EMAIL_ADDRESS>


ConnectionStateListener-improvement1

Relates to https://github.com/Azure/azure-sdk-for-java/issues/16245
Remove connectionStateListener cache update from request path to gateway address refresh path.

/azp run java - cosmos - tests

/azp run java - cosmos - tests

Test result(Tes33, VM is also in southeastasia, 4 CPU core):
Benchmark runner:

/azp run java - cosmos - tests


problems with section 6  ROSAI Applications

In section 6.1 Launch the install_rosai_file_input.sh script to install and build the application. In step 3 this is what I'm experiencing.
setp3.
cd /home/ubuntu/KR260-Robotics-AI-Challenge/files/scripts
source ./install_rosai_file_input.sh
ERROR GENERATED:
File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
bash: cd: /home/root: No such file or directory
colcon: command not found
The code is open source, and available on GitHub.
I Installed COLCON with the following command
$	sudo apt install python3-colcon-common-extensions
I assume that COLCON did not get installed with ./install_rosai_file_input.sh script?
Now I’m able to run these commands with no COLCON error
cd /home/ubuntu/KR260-Robotics-AI-Challenge/files/scripts
source ./install_rosai_file_input.sh
HOWEVER NOW I’m getting the following error on step 6 (where is steps 4,5?) by running
source install/local_setup.sh
bash: install/local_setup.sh: No such file or directory
Why is the directory or file not found? Where should it be?
I am able to run the demo and the The TurtleSim window will pop up but nothing happens as described?
I might add that I did not execute the code in both Sections 4.2 and 4.3. I'm not sure if this has anything to do with it
Thanks in advance for your help
Steve

Hi Steve,
I wanted to clarify the structure of the install_rosai_file_input.sh script and the README. Some steps in the script are commented out to match the sections in the README for user convenience. If you compare the script with section 6, you’ll find that the steps missing from the README are executed within the script.
Regarding the error "bash: install/local_setup.sh: No such file or directory," this file is typically generated during the build process with colcon build. If it is missing, it suggests that the build process did not complete successfully or the install directory was not created. Here are steps to troubleshoot and resolve this issue:

Verify Directory Structure and Permissions:
Ensure the directory /home/root/ros2_ws_fileio exists and is accessible.

Re-run the Build Process:
Re-run the build process to ensure that all necessary files are generated:

cd /home/root/ros2_ws_fileio
source /opt/ros/humble/setup.bash
colcon build

Check for Errors During Build:
Watch for any errors during the build process. If there are errors, they will prevent the install directory and local_setup.sh file from being created. If you encounter any errors, please let us know.

Verify the Build Output:
After the build process completes, verify the contents of the install directory. You should see the local_setup.sh file among other setup files. If the file is not present, the build process did not complete correctly.

Full Script to Ensure All Steps are Correct
Below is a full script that encompasses all necessary steps to ensure the build process completes correctly:
#!/bin/bash

# Become super user and set the pynq_venv environment
sudo su
source /etc/profile.d/pynq_venv.sh

# Create test images
python3 /home/ubuntu/KR260-Robotics-AI-Challenge/files/ROSAI/save_images_from_MNIST_dataset.py

# Create workspace folder and copy files
cd /home/root
mkdir -p ros2_ws_fileio
mkdir -p ros2_ws_fileio/src
cp -rf /home/ubuntu/KR260-Robotics-AI-Challenge/files/ROSAI/file_input/rosai_file ros2_ws_fileio/src/
cd ros2_ws_fileio

# Initialize ROS2 environment variables
source /opt/ros/humble/setup.bash

# Build the workspace
colcon build

# Verify the presence of local_setup.sh
if [ -f install/local_setup.sh ]; then
  echo "local_setup.sh found, proceeding..."
  source install/local_setup.sh
  ros2 launch rosai_file rosai_file_demo_launch.py
else
  echo "local_setup.sh not found, build may have failed."
fi

By following these steps, you should be able to identify and resolve the issue preventing the creation of install/local_setup.sh.
We hope this helps, and please feel free to reach out if you have any further questions or need additional assistance.
Somayeh

Thank you I will retry your suggestions. Stay tuned.
But I'm still wondering why I had to manually install colcon as stated?
Steve K

hello @somayeh-rahimipour
I ran the "install_rosai_file_input.sh"  script again and there are errors generated in the "save_images_from_MNIST_dataset.py"
and creating the Workspace folder with cd /home/root.  The directory ros2_ws_fileio was created but under the scripts directory.
SO the question now is why is the the image script failing and the the cd cmd failing?

# Create test images
**python3 /home/ubuntu/KR260-Robotics-AI-Challenge/files/ROSAI/save_images_from_MNIST_dataset.py**

# Create workspace folder and copy files
**cd /home/root**

This is the terminal output---
(pynq-venv) root@kria:/home/ubuntu# cd /home/ubuntu/KR260-Robotics-AI-Challenge/files/scripts
(pynq-venv) root@kria:/home/ubuntu/KR260-Robotics-AI-Challenge/files/scripts# ls
install_rosai_camera_input.sh  install_update_kr260_to_vitisai35.sh
install_rosai_file_input.sh    ros2_ws
install_ros.sh                 ros2_ws_fileio
(pynq-venv) root@kria:/home/ubuntu/KR260-Robotics-AI-Challenge/files/scripts# source ./install_rosai_file_input.sh
Traceback (most recent call last):
File "/home/ubuntu/KR260-Robotics-AI-Challenge/files/ROSAI/save_images_from_MNIST_dataset.py", line 54, in
main()
File "/home/ubuntu/KR260-Robotics-AI-Challenge/files/ROSAI/save_images_from_MNIST_dataset.py", line 49, in main
save_image()
File "/home/ubuntu/KR260-Robotics-AI-Challenge/files/ROSAI/save_images_from_MNIST_dataset.py", line 26, in save_image
raw_data = mnist.test_images()
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/mnist/init.py", line 176, in test_images
return download_and_parse_mnist_file('t10k-images-idx3-ubyte.gz')
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/mnist/init.py", line 143, in download_and_parse_mnist_file
fname = download_file(fname, target_dir=target_dir, force=force)
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/mnist/init.py", line 59, in download_file
urlretrieve(url, target_fname)
File "/usr/lib/python3.10/urllib/request.py", line 241, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
bash: cd: /home/root: No such file or directory
Starting >>> rosai_file
Finished <<< rosai_file [8.13s]
Summary: 1 package finished [11.0s]
(pynq-venv) root@kria:/home/ubuntu/KR260-Robotics-AI-Challenge/files/scripts/ros2_ws_fileio# ls
build  install  log  src

Hi Steve,
Based on the terminal output, the script save_images_from_MNIST_dataset.py is trying to download the MNIST dataset but fails with a 403 HTTP Error. This means the request to download the dataset is forbidden. There could be a few possibilities:
1. Check Internet Connection
It's possible that the internet connection might block access to the URL used by the mnist library to download the dataset. To resolve it, please check the internet connection:

Ensure that the board has an active internet connection.

Try accessing other websites or downloading other files to confirm the internet connection is working.

2. Manually Verify URL Access
Locate the URL used by the mnist library to download the dataset. You can find this in the mnist library code. Try to manually access this URL from a browser or using a command-line tool like wget or curl on the board:
wget http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz

If the URL access is blocked or results in a 403 error, this confirms the issue is with URL restrictions, or changes in how the dataset is hosted. You can use an alternative library like tensorflow or keras to download the MNIST dataset.
Here’s how you can modify the script to use tensorflow to download the MNIST dataset:
import tensorflow as tf
import numpy as np
import os
import cv2

def save_image():
    (train_images, train_labels), (test_images, test_labels) = tf.keras.datasets.mnist.load_data()
    normalized_data = np.asarray(test_images / 255, dtype=np.float32)
    test_data = np.expand_dims(normalized_data, axis=3)
    num_pics = 100

    output_folder = "/home/ubuntu/images/rosai_file_demo_test_images"
    if not os.path.exists(output_folder):
        os.makedirs(output_folder)

    for i in range(num_pics):
        image_to_save = (255 * test_data[i]).astype(np.uint8)
        filename = f"{output_folder}/mnist_image_{i}.jpg"
        success = cv2.imwrite(filename, image_to_save)

def main(args=None):
    save_image()

if __name__ == '__main__':
    main()

Alternative Approach: Use a Local Copy of the MNIST Dataset
If internet access is restricted, another approach is to use a local copy of the MNIST dataset. Here’s how you can modify the script to load the dataset from a local file:
Download the Dataset Locally

Download the MNIST dataset manually on a system with internet access.

Transfer the downloaded files to the board (e.g., using scp).

Modify the Script to Load Locally
Save the MNIST dataset as .npy files or use the original .gz files. Here's an example of how to modify the script to load the dataset from local files:
import numpy as np
import os
import cv2

def load_mnist_local(file_path):
    with open(file_path, 'rb') as f:
        return np.load(f)

def save_image():
    raw_data = load_mnist_local('/home/ubuntu/mnist_data/t10k-images-idx3-ubyte.npy')
    normalized_data = np.asarray(raw_data / 255, dtype=np.float32)
    test_data = np.expand_dims(normalized_data, axis=3)
    num_pics = 100

    output_folder = "/home/ubuntu/images/rosai_file_demo_test_images"
    if not os.path.exists(output_folder):
        os.makedirs(output_folder)

    for i in range(num_pics):
        image_to_save = (255 * test_data[i]).astype(np.uint8)
        filename = f"{output_folder}/mnist_image_{i}.jpg"
        success = cv2.imwrite(filename, image_to_save)

def main(args=None):
    save_image()

if __name__ == '__main__':
    main()

This script assumes you have manually downloaded and converted the MNIST dataset to .npy format and placed it in /home/ubuntu/mnist_data/.
I also strongly recommend you follow all the steps (from section 1) one by one, especially when you need to be a super user and set the environment before running some commands.
Please let me know if any of these approaches solve your issue.
Best,
Somayeh

Hi @somayeh-rahimipour
I'm a bit confused on why I'm getting the Forbidden error as you suggest in option2. it is a restriction and if I try to access the sit from a browser on my PC on the same network as the Kit I get the forbidden error. Off the web site selecting the Highlighted file as described below:

I'm not sure why I don't have access? how do the others following THIS tutorial? I'm using the same Kit, the KR260?
There must be a way to login to the site ? but I'm not familiar? can you access the site?
Thanks for the information.
STEVE K


Slider doesn't work on about:home (and doesn't explain what's going wrong)

STR:

Install Chrome Mask.
Open a new tab page (for example, suppose you just restarted Firefox and now want to try out the extension, and Firefox is showing you a new-tab page because you just restarted).
Click the Chrome Mask toolbar button, and click its slider to try masking as Chrome.

ACTUAL RESULTS:
Slider looks like it glitches on for an instant and then snaps off again.  No clear explanation about what's going wrong.
EXPECTED RESULTS:
The extension should detect that this is a page where we can't mask, and ideally the slider should be disabled so it's not even available to click.

This affects all about: pages, I think -- e.g. about:about.  It also affects our presentation of raster images like https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png
Though probably new-tab page is the page where users are most likely to inadvertently trigger this, e.g. when trying to activate the extension before navigating to a site.

Screencast of bug

Ah yes, WebExtensions are not allowed on the about: scheme and the moz-extension: scheme. In the case of about: pages, this matches because URL() can't extract the hostname from an about: URL. In case of moz-extension://, this would pass, but it would do nothing.
Easy to handle this in the UI though. Thanks for the thorough report! <3

Fixed by #30.


Update Composer dependencies (2024-01-26-00-18)

Visual regression test passed!
View the visual regression test report


Updates the public extensions to use the Functional namespace.

I should have noticed this earlier, but with the move to the Functional namespace all public extensions need to have their namespaces changed as well.

Is something currently broken or less-than-ideal without this change?  My understanding is that the Functional namespace is only required for the gateway Should methods.

Is something currently broken or less-than-ideal without this change? My understanding is that the Functional namespace is only required for the gateway Should methods.

Since the implementation of the Task wrapped assertions uses extension methods instead of class methods the extensions can't be found unless you also reference their namespace. I was having to include the Functional.Primitives.FluentExtensions namespace in order for my tests to find the HaveValue and BeSuccessful extensions.

Me exclusively using the synchronous methods explains why I did not encounter this problem 😅 .  Please add // ReSharper disable once CheckNamespace (ease of discoverability) above each namespace change and then we'll be good to go.

Me exclusively using the synchronous methods explains why I did not encounter this problem 😅 . Please add // ReSharper disable once CheckNamespace (ease of discoverability) above each namespace change and then we'll be good to go.

Thanks for the feedback, sorry I didn't catch this prior to the 3.0.0 release!


Change pdf  page orientation.

I found that the default size of pdf page is Letter and I found there is other size definition in library.
But I doesn't found to use them. How to apply A4 size pdf page? I want to know how to orientate the page if possible.
Update - I found the way to use A4. But doesn't know how to orientate landscape.

The code below should do what you need.
PDDocument doc = new PDDocument()); // Or load one
PDPage page = new PDPage(PDRectangle.A4); // Make a new A4 page
page.setRotation(90); // Rotate the page 90 degrees
doc.addPage(page); // Add the new page to the document

Thanks for your answer and it solve the problem. However, when I add image to page, the image doesn't add correctly according to page rotation. I need to change image orientation.
But it is OK.


Array objects may not qualify for instanceof Array

Hello,
In reference to the following :
https://github.com/googleapis/nodejs-firestore/blob/bd15996c82967e5d90ed761c5c1225992fbc2625/dev/src/serializer.ts#L172
In some situations, for example when the GoogleCloudPlatform/node-red-contrib-google-cloud firebase module passes an array to "encodeValue", the array constructor will be different which causes "instanceof Array" to be false. This is similar to the array object being checked across frames or windows and causes "instanceof Array" to incorrectly return false.
Using the ES5 Array.isArray(val) works fine, and from what I can see, would be a suitable replacement check and is already used in that same library.
Thanks in advance for your attention to the issue,

Thank you for reporting this! This looks like a straightforward fix, I'll take this on.


Not connecting to sensortags when using discoverAll

When I use the method discoverAll, the method connectAndSetup it's not working, although the discovery it's working for all the nearby devices. When using discover all works fine.
var SensorTag = require('sensortag');

function onDiscover(sensorTag) {
	console.log("SensorTag discovered!");
	sensorTag.connectAndSetup(function () {
	    console.log('Connected and setup');
		sensorTag.disconnect(function(){
			console.log(sensorTag.address, 'disconnected');
		});
  	});
}

SensorTag.discoverAll(onDiscover);

Thanx and congrats for this awesome package

@beeva-marianmoldovan are you using OS X or Linux? Which version? How many SensorTags?

Linux  3.13.0-62-generic #102-Ubuntu 14.04 x86_64 GNU/Linux
I am trying [2-3] sensors at a time

@beeva-marianmoldovan please provide debug logs: sudo DEBUG=* node <file>.js.

Hi Sandeep,
first of thanks for this library. I am connecting several sensor tags with a raspberry pi and it worked until the recent update. I need to comment out line 19 in the sensortag.js file now to get it working again. Not sure if you planned it to stop discovering available sensor tags after the first one has been discovered. In the sensortag.js file:

Maybe this helps.
Rudi

@magicrudi your comment is a bit unrelated to the original issue, see: https://github.com/sandeepmistry/node-sensortag#discover
discover only discovers a single tag, discoverAll discovers more than one

Sorry, my fault. I mixed up different sources.

Didn't read nothing interesting, code here https://gist.github.com/beeva-marianmoldovan/a2982bbd7905ca114fa0

  hci setting filter to:<PHONE_NUMBER>c10000000000400000 +0ms
  hci set event mask - writing: 01010c08fffffbff07f8bf3d +1ms
  hci set le event mask - writing: 010120081f00000000000000 +0ms
  hci read local version - writing: 01011000 +0ms
  hci read bd addr - writing: 01091000 +0ms
  hci onSocketData: 040e0401010c00 +27ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 14 +0ms
  hci 		cmd = 3073 +0ms
  hci 		status = 0 +0ms
  hci 		result =  +0ms
  hci onSocketData: 040e0401012000 +0ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 14 +0ms
  hci 		cmd = 8193 +0ms
  hci 		status = 0 +0ms
  hci 		result =  +0ms
  hci onSocketData: 040e0c0101100006bd1e06020000fc +0ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 14 +0ms
  hci 		cmd = 4097 +0ms
  hci 		status = 0 +0ms
  hci 		result = 06bd1e06020000fc +0ms
  hci set scan enabled - writing: 010c20020001 +0ms
  hci set scan parameters - writing: 010b200701100010000000 +1ms
  hci onSocketData: 040e0a01091000afd4fc87d9c4 +0ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 14 +0ms
  hci 		cmd = 4105 +0ms
  hci 		status = 0 +0ms
  hci 		result = afd4fc87d9c4 +0ms
  hci address = c4:d9:87:fc:d4:af +0ms
  hci onSocketData: 040e04010c200c +0ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 14 +0ms
  hci 		cmd = 8204 +0ms
  hci 		status = 12 +0ms
  hci 		result =  +0ms
  hci onSocketData: 040e04010b2000 +1ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 14 +0ms
  hci 		cmd = 8203 +0ms
  hci 		status = 0 +0ms
  hci 		result =  +0ms
  noble stateChange poweredOn +0ms
  hci set scan enabled - writing: 010c20020101 +1ms
  hci set scan enabled - writing: 010c20020101 +0ms
  hci onSocketData: 040e04010c2000 +1ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 14 +0ms
  hci 		cmd = 8204 +0ms
  hci 		status = 0 +0ms
  hci 		result =  +0ms
  noble scanStart +0ms
  hci onSocketData: 040e04010c200c +5ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 14 +0ms
  hci 		cmd = 8204 +0ms
  hci 		status = 12 +0ms
  hci 		result =  +0ms
  hci onSocketData: 043e1302010000066bb848b4b007020105030210aacc +35ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +1ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 0000066bb848b4b007020105030210aacc +0ms
  hci 			type = 0 +0ms
  hci 			address = b0:b4:48:b8:6b:06 +0ms
  hci 			address type = public +0ms
  hci 			eir =<PHONE_NUMBER>10aa +0ms
  hci 			rssi = -52 +0ms
  gap advertisement = {"serviceData":[],"serviceUuids":["aa10"]} +2ms
  hci onSocketData: 043e2702010400066bb848b4b01b11094343323635302053656e736f72546167051208002003020a00cc +1ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 0400066bb848b4b01b11094343323635302053656e736f72546167051208002003020a00cc +0ms
  hci 			type = 4 +0ms
  hci 			address = b0:b4:48:b8:6b:06 +0ms
  hci 			address type = public +0ms
  hci 			eir =<PHONE_NUMBER>3635302053656e736f72546167051208002003020a00 +0ms
  hci 			rssi = -52 +0ms
  gap advertisement = {"localName":"CC2650 SensorTag","txPowerLevel":0,"serviceData":[],"serviceUuids":["aa10"]} +1ms
Yo sensorTag: b0:b4:48:b8:6b:06
connectAndSetUp
  hci create le conn - writing: 010d2019600030000000066bb848b4b00006000c000000c80004000600 +4ms
  hci onSocketData: 040f040c010d20 +1ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 15 +0ms
  hci onSocketData: 043e13020100000317b848b4b007020105030210aad0 +15ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 00000317b848b4b007020105030210aad0 +0ms
  hci 			type = 0 +0ms
  hci 			address = b0:b4:48:b8:17:03 +0ms
  hci 			address type = public +0ms
  hci 			eir =<PHONE_NUMBER>10aa +0ms
  hci 			rssi = -48 +0ms
  gap advertisement = {"serviceData":[],"serviceUuids":["aa10"]} +1ms
  hci onSocketData: 043e27020104000317b848b4b01b11094343323635302053656e736f72546167051208002003020a00d0 +2ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 04000317b848b4b01b11094343323635302053656e736f72546167051208002003020a00d0 +0ms
  hci 			type = 4 +0ms
  hci 			address = b0:b4:48:b8:17:03 +0ms
  hci 			address type = public +0ms
  hci 			eir =<PHONE_NUMBER>3635302053656e736f72546167051208002003020a00 +0ms
  hci 			rssi = -48 +0ms
  gap advertisement = {"localName":"CC2650 SensorTag","txPowerLevel":0,"serviceData":[],"serviceUuids":["aa10"]} +1ms
Yo sensorTag: b0:b4:48:b8:17:03
connectAndSetUp
  hci onSocketData: 043e1b02010000daf04f9534b00f02011a0bff4c000906010000000000ab +1ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 0000daf04f9534b00f02011a0bff4c000906010000000000ab +0ms
  hci 			type = 0 +0ms
  hci 			address = b0:34:95:4f:f0:da +0ms
  hci 			address type = public +0ms
  hci 			eir = 02011a0bff4c000906010000000000 +0ms
  hci 			rssi = -85 +0ms
  gap advertisement = {"manufacturerData":[76,0,9,6,1,0,0,0,0,0],"serviceData":[],"serviceUuids":[]} +1ms
  hci onSocketData: 043e0c02010400daf04f9534b000ab +0ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +4ms
  hci 		LE meta event data = 0400daf04f9534b000ab +0ms
  hci 			type = 4 +0ms
  hci 			address = b0:34:95:4f:f0:da +0ms
  hci 			address type = public +1ms
  hci 			eir =  +0ms
  hci 			rssi = -85 +0ms
  gap advertisement = {"manufacturerData":[76,0,9,6,1,0,0,0,0,0],"serviceData":[],"serviceUuids":[]} +1ms
  hci onSocketData: 043e2a02010301a187a75bcbd31e0201061aff4c000215fac628359be646e09d11a7ac0292966000190003c6c5 +52ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 0301a187a75bcbd31e0201061aff4c000215fac628359be646e09d11a7ac0292966000190003c6c5 +0ms
  hci 			type = 3 +1ms
  hci 			address = d3:cb:5b:a7:87:a1 +0ms
  hci 			address type = random +0ms
  hci 			eir = 0201061aff4c000215fac628359be646e09d11a7ac0292966000190003c6 +0ms
  hci 			rssi = -59 +0ms
  gap advertisement = {"manufacturerData":[76,0,2,21,250,198,40,53,155,230,70,224,157,17,167,172,2,146,150,96,0,25,0,3,198],"serviceData":[],"serviceUuids":[]} +0ms
  hci onSocketData: 043e1302010000066bb848b4b007020105030210aac7 +11ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +1ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 0000066bb848b4b007020105030210aac7 +0ms
  hci 			type = 0 +0ms
  hci 			address = b0:b4:48:b8:6b:06 +0ms
  hci 			address type = public +0ms
  hci 			eir =<PHONE_NUMBER>10aa +0ms
  hci 			rssi = -57 +0ms
  gap advertisement = {"localName":"CC2650 SensorTag","txPowerLevel":0,"serviceData":[],"serviceUuids":["aa10"]} +0ms
  hci onSocketData: 043e13020100008655b848b4b007020105030210aac2 +21ms
  hci 	event type = 4 +1ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 00008655b848b4b007020105030210aac2 +0ms
  hci 			type = 0 +0ms
  hci 			address = b0:b4:48:b8:55:86 +0ms
  hci 			address type = public +0ms
  hci 			eir =<PHONE_NUMBER>10aa +1ms
  hci 			rssi = -62 +0ms
  gap advertisement = {"serviceData":[],"serviceUuids":["aa10"]} +0ms
  hci onSocketData: 043e27020104008655b848b4b01b11094343323635302053656e736f72546167051208002003020a00c2 +1ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +1ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 04008655b848b4b01b11094343323635302053656e736f72546167051208002003020a00c2 +0ms
  hci 			type = 4 +0ms
  hci 			address = b0:b4:48:b8:55:86 +0ms
  hci 			address type = public +0ms
  hci 			eir =<PHONE_NUMBER>3635302053656e736f72546167051208002003020a00 +0ms
  hci 			rssi = -62 +0ms
  gap advertisement = {"localName":"CC2650 SensorTag","txPowerLevel":0,"serviceData":[],"serviceUuids":["aa10"]} +0ms
Yo sensorTag: b0:b4:48:b8:55:86
connectAndSetUp
  hci onSocketData: 043e13020100000317b848b4b007020105030210aac4 +2ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 00000317b848b4b007020105030210aac4 +0ms
  hci 			type = 0 +0ms
  hci 			address = b0:b4:48:b8:17:03 +0ms
  hci 			address type = public +0ms
  hci 			eir =<PHONE_NUMBER>10aa +0ms
  hci 			rssi = -60 +1ms
  gap advertisement = {"localName":"CC2650 SensorTag","txPowerLevel":0,"serviceData":[],"serviceUuids":["aa10"]} +0ms
  hci onSocketData: 043e27020104000317b848b4b01b11094343323635302053656e736f72546167051208002003020a00c4 +2ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 04000317b848b4b01b11094343323635302053656e736f72546167051208002003020a00c4 +0ms
  hci 			type = 4 +0ms
  hci 			address = b0:b4:48:b8:17:03 +0ms
  hci 			address type = public +0ms
  hci 			eir =<PHONE_NUMBER>3635302053656e736f72546167051208002003020a00 +0ms
  hci 			rssi = -60 +0ms
  gap advertisement = {"localName":"CC2650 SensorTag","txPowerLevel":0,"serviceData":[],"serviceUuids":["aa10"]} +1ms
  hci onSocketData: 043e1b020100009485cb51f9f40f02011a0bff4c0009060314c0a80cb0bf +4ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 00009485cb51f9f40f02011a0bff4c0009060314c0a80cb0bf +0ms
  hci 			type = 0 +0ms
  hci 			address = f4:f9:51:cb:85:94 +0ms
  hci 			address type = public +0ms
  hci 			eir = 02011a0bff4c0009060314c0a80cb0 +0ms
  hci 			rssi = -65 +1ms
  gap advertisement = {"manufacturerData":[76,0,9,6,3,20,192,168,12,176],"serviceData":[],"serviceUuids":[]} +0ms
  hci onSocketData: 043e0c020104009485cb51f9f400bf +0ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 04009485cb51f9f400bf +0ms
  hci 			type = 4 +0ms
  hci 			address = f4:f9:51:cb:85:94 +0ms
  hci 			address type = public +0ms
  hci 			eir =  +0ms
  hci 			rssi = -65 +0ms
  gap advertisement = {"manufacturerData":[76,0,9,6,3,20,192,168,12,176],"serviceData":[],"serviceUuids":[]} +0ms
  hci onSocketData: 043e2a020103014490c71917c61e0201061aff4c000215fac628359be646e09d11a7ac0292966000190001c6cc +36ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 03014490c71917c61e0201061aff4c000215fac628359be646e09d11a7ac0292966000190001c6cc +0ms
  hci 			type = 3 +0ms
  hci 			address = c6:17:19:c7:90:44 +0ms
  hci 			address type = random +0ms
  hci 			eir = 0201061aff4c000215fac628359be646e09d11a7ac0292966000190001c6 +0ms
  hci 			rssi = -52 +0ms
  gap advertisement = {"manufacturerData":[76,0,2,21,250,198,40,53,155,230,70,224,157,17,167,172,2,146,150,96,0,25,0,1,198],"serviceData":[],"serviceUuids":[]} +1ms
  hci onSocketData: 043e2a020103015e3e98249cc51e0201061aff4c000215fac628359be646e09d11a7ac0292966000190002c6cc +7ms
  hci 	event type = 4 +0ms
  hci 	sub event type = 62 +0ms
  hci 		LE meta event type = 2 +0ms
  hci 		LE meta event status = 1 +0ms
  hci 		LE meta event data = 03015e3e98249cc51e0201061aff4c000215fac628359be646e09d11a7ac0292966000190002c6cc +0ms
  hci 			type = 3 +0ms
  hci 			address = c5:9c:24:98:3e:5e +0ms
  hci 			address type = random +0ms
  hci 			eir = 0201061aff4c000215fac628359be646e09d11a7ac0292966000190002c6 +0ms
  hci 			rssi = -52 +0ms

I think I'm seeing something similar.
I tried running DEBUG=* sudo node test.js, none of the sensortags could be connected. After that I changed discover to discoverAll in test.js and reran the tests.
The device was discovered in both cases but couldnt be connected. It was trying to connect (connectAndSetup was called, and later I was seeing noble: unkown device <uuid> connected) but couldnt be discovered (probably?). I could successfully connect to both of the sensortags from my phone. (UUIDs of sensortags which are in range: b4994c64be83 and 1cba8c20e2c8)
Here are the details: https://gist.github.com/oroce/a43abb68f0bbde8b038c

@beeva-marianmoldovan I just ran your code from https://github.com/sandeepmistry/node-sensortag/issues/52#issue-102777094 on my Raspberry Pi with a CC2540 sensor tag and CC2650 in range, both connected no problems.

@beeva-marianmoldovan you please try running https://github.com/sandeepmistry/node-sensortag/issues/52#issue-102777094 again with a hcidump capture: sudo hcidump -t -x

@oroce thanks for the thorough gist, something is really weird, lots of LE Create Connection Cancel commands - something noble doesn't use.
Could you please create a new issue for this?
Please confirm:

I tried running DEBUG=* sudo node test.js, none of the sensortags could be connected. After that I changed discover to discoverAll in test.js and reran the tests.

When you create the new issue, that you can't connect to any Sensortags ...

@sandeepmistry here's the issue: https://github.com/sandeepmistry/node-sensortag/issues/58
(on sunday the sd card got corrupted so I have to reinstall raspbian, but the issue still exists)

@beeva-marianmoldovan ping ... https://github.com/sandeepmistry/node-sensortag/issues/52#issuecomment-141793463

Sorry, here you have https://gist.github.com/beeva-marianmoldovan/41e3913acf4b5cfef0da

@beeva-marianmoldovan what Bluetooth 4.0 adapter are you using?
2015-09-28 09:55:38.562458 < HCI Command: LE Create Connection (0x08|0x000d) plen 25
    bdaddr B0:B4:48:B8:17:03 type 0
    interval 96 window 48 initiator_filter 0
    own_bdaddr_type 0 min_interval 6 max_interval 12
    latency 0 supervision_to 200 min_ce 4 max_ce 6
2015-09-28 09:55:38.563711 > HCI Event: Command Status (0x0f) plen 4
    LE Create Connection (0x08|0x000d) status 0x0c ncmd 1
    Error: Command Disallowed

For whatever reason it doesn't like scanning and trying to connect at the same time. Also, have you tried to use a newer Linux kernel?

@beeva-marianmoldovan any updates?

Closing do to lack of activity.


Should I use weight_decay or weight_decay_rate?

Thanks for the awesome work.
Just as line simple_lm_finetuning.py#L540, When I use bert for downstream tasks, should I use weight_decay or weight_decay_rate when I add a decay operation to the training parameters?
What if I use apex for mixed precision training?

According to the instructions module-torch.optim from PyTorch API and fused_adam.py from apex repo, I think weight_decay and weight_decay_rate are unified and unified into weight_decay, Is it correct to understand?


ng build with no-progress param is hiding some verbose logging

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.
@angular/cli: 1.3.1
node: 8.2.0
os: darwin x64
@angular/animations: 4.3.5
@angular/common: 4.3.5
@angular/compiler: 4.3.5
@angular/core: 4.3.5
@angular/forms: 4.3.5
@angular/http: 4.3.5
@angular/platform-browser: 4.3.5
@angular/platform-browser-dynamic: 4.3.5
@angular/router: 4.3.5
@angular/cli: 1.3.1
@angular/compiler-cli: 4.3.5
@angular/language-service: 4.3.5
Repro steps.

The log given by the failure.
after ng build --no-progress --verbose and after ng build --verbose you see that when --no-progress no info about stages of optimization and processing is on console, thus not possible to know which build task was the one that took more time.
--verbose ONLY
./node_modules/@angular/cli/bin/ng build --prod --sourcemaps --verbose
59277ms building modules
21ms sealing
1ms optimizing
0ms basic module optimization
0ms module optimization
59ms advanced module optimization
17ms basic chunk optimization
0ms chunk optimization
3ms advanced chunk optimization
16958ms building modules
0ms module and chunk tree optimization
73ms chunk modules optimization
0ms advanced chunk modules optimization
0ms module reviving
41ms module order optimization
8ms module id optimization
0ms chunk reviving
12ms chunk order optimization
26ms chunk id optimization
430ms hashing
1ms module assets processing
1217ms chunk assets processing
4ms additional chunk assets processing
5ms recording
0ms additional asset processing
68263ms chunk asset optimization
21ms asset optimization
562ms emitting
Hash: edcae8a551a9e2dee854
Version: webpack 3.4.1
Time: 147055ms
                                       Asset       Size  Chunks                    Chunk Names
       inline.6538e316fc0920017359.bundle.js    1.51 kB       4  [emitted]         inline
              icons.674f50d287a8c48dc19b.eot     166 kB          [emitted]
            icons.af7ae505a9eed503f8b8.woff2    77.2 kB          [emitted]
              icons.912ec66d7572ff821749.svg     444 kB          [emitted]  [big]
             icons.fee66e712a8a08eef580.woff      98 kB          [emitted]
              flags.9c74e172f87984c48ddf.png    28.1 kB          [emitted]
    polyfills.222a606e4cc9c87da0d3.bundle.js    63.1 kB       0  [emitted]         polyfills
         main.f121f659e1bcdc2bb35f.bundle.js     346 kB       2  [emitted]  [big]  main
       vendor.7289bf1cf1c53e622431.bundle.js    1.48 MB       3  [emitted]  [big]  vendor
              icons.b06871f281fee6b241d6.ttf     166 kB          [emitted]
      styles.556087c688544737d880.bundle.css     558 kB       1  [emitted]  [big]  styles
polyfills.222a606e4cc9c87da0d3.bundle.js.map     495 kB       0  [emitted]         polyfills
  styles.556087c688544737d880.bundle.css.map    2.39 MB       1  [emitted]         styles
     main.f121f659e1bcdc2bb35f.bundle.js.map    2.81 MB       2  [emitted]         main
   vendor.7289bf1cf1c53e622431.bundle.js.map    13.8 MB       3  [emitted]         vendor
   inline.6538e316fc0920017359.bundle.js.map    14.3 kB       4  [emitted]         inline
                                 favicon.ico    42.4 kB          [emitted]
                                  index.html  796 bytes          [emitted]
chunk    {0} polyfills.222a606e4cc9c87da0d3.bundle.js, polyfills.222a606e4cc9c87da0d3.bundle.js.map (polyfills) 178 kB {4} [initial] [rendered]
chunk    {1} styles.556087c688544737d880.bundle.css, styles.556087c688544737d880.bundle.css.map (styles) 175 bytes {4} [initial] [rendered]
chunk    {2} main.f121f659e1bcdc2bb35f.bundle.js, main.f121f659e1bcdc2bb35f.bundle.js.map (main) 811 kB {3} [initial] [rendered]
chunk    {3} vendor.7289bf1cf1c53e622431.bundle.js, vendor.7289bf1cf1c53e622431.bundle.js.map (vendor) 5.75 MB [initial] [rendered]
chunk    {4} inline.6538e316fc0920017359.bundle.js, inline.6538e316fc0920017359.bundle.js.map (inline) 0 bytes [entry] [rendered]

--no-progress AND --verbose
./node_modules/@angular/cli/bin/ng build --prod --sourcemaps --no-progress --verbose
Hash: 3de3f03b082eec335fcf
Version: webpack 3.4.1
Time: 186392ms
                                       Asset       Size  Chunks                    Chunk Names
       inline.6538e316fc0920017359.bundle.js    1.51 kB       4  [emitted]         inline
              icons.674f50d287a8c48dc19b.eot     166 kB          [emitted]
            icons.af7ae505a9eed503f8b8.woff2    77.2 kB          [emitted]
              icons.912ec66d7572ff821749.svg     444 kB          [emitted]  [big]
             icons.fee66e712a8a08eef580.woff      98 kB          [emitted]
              flags.9c74e172f87984c48ddf.png    28.1 kB          [emitted]
    polyfills.222a606e4cc9c87da0d3.bundle.js    63.1 kB       0  [emitted]         polyfills
         main.f121f659e1bcdc2bb35f.bundle.js     346 kB       2  [emitted]  [big]  main
       vendor.7289bf1cf1c53e622431.bundle.js    1.48 MB       3  [emitted]  [big]  vendor
              icons.b06871f281fee6b241d6.ttf     166 kB          [emitted]
      styles.556087c688544737d880.bundle.css     558 kB       1  [emitted]  [big]  styles
polyfills.222a606e4cc9c87da0d3.bundle.js.map     495 kB       0  [emitted]         polyfills
  styles.556087c688544737d880.bundle.css.map    2.39 MB       1  [emitted]         styles
     main.f121f659e1bcdc2bb35f.bundle.js.map    2.81 MB       2  [emitted]         main
   vendor.7289bf1cf1c53e622431.bundle.js.map    13.8 MB       3  [emitted]         vendor
   inline.6538e316fc0920017359.bundle.js.map    14.3 kB       4  [emitted]         inline
                                 favicon.ico    42.4 kB          [emitted]
                                  index.html  796 bytes          [emitted]
chunk    {0} polyfills.222a606e4cc9c87da0d3.bundle.js, polyfills.222a606e4cc9c87da0d3.bundle.js.map (polyfills) 178 kB {4} [initial] [rendered]
chunk    {1} styles.556087c688544737d880.bundle.css, styles.556087c688544737d880.bundle.css.map (styles) 175 bytes {4} [initial] [rendered]
chunk    {2} main.f121f659e1bcdc2bb35f.bundle.js, main.f121f659e1bcdc2bb35f.bundle.js.map (main) 811 kB {3} [initial] [rendered]
chunk    {3} vendor.7289bf1cf1c53e622431.bundle.js, vendor.7289bf1cf1c53e622431.bundle.js.map (vendor) 5.75 MB [initial] [rendered]
chunk    {4} inline.6538e316fc0920017359.bundle.js, inline.6538e316fc0920017359.bundle.js.map (inline) 0 bytes [entry] [rendered]

Desired functionality.
If no-progress only progress should be hidden and no logs from verbose parameter.

Hi @genuinefafa,
The noprogress is an argument that we pass directly to Webpack. The performance logging is part of the progress log and we have no control over this. Maybe we should be clearer in the documentation that --verbose for build and serve is only for progress information.
Can I ask why you'd want to run --no-progress in this case?

Yes you can @hansl :)
I'm building on jenkins. Since it handles pretty neat console reporting, i'ld like to have --no-progress with bundles processing log, hence, allow me to understand which step of the building was more demanding.
59277ms building modules
21ms sealing
1ms optimizing
0ms basic module optimization
0ms module optimization
59ms advanced module optimization
17ms basic chunk optimization
0ms chunk optimization
3ms advanced chunk optimization
16958ms building modules
0ms module and chunk tree optimization
73ms chunk modules optimization
0ms advanced chunk modules optimization
0ms module reviving
41ms module order optimization
8ms module id optimization
0ms chunk reviving
12ms chunk order optimization
26ms chunk id optimization
430ms hashing
1ms module assets processing
1217ms chunk assets processing
4ms additional chunk assets processing
5ms recording
0ms additional asset processing
68263ms chunk asset optimization
21ms asset optimization
562ms emitting
Hash: edcae8a551a9e2dee854
Version: webpack 3.4.1
Time: 147055ms

this is something i wanna have on records for every jenkins build; in case a building issue or overhead is found, i'ld like to get here and check everything.
I do know that the ideal case use would be to have jenkins acknowledge timing of each step and compare for itself. But that's far in the line.

Thanks for reporting this issue. This issue was originally reported a long time ago and since then we've had many releases, one of which might have addressed this problem. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.


feat: no_export attribute to exclude exporting method in did file

Description
Add #[query(no_export)]/#[update(no_export)] attribute to exclude exporting certain endpoints in did file.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Checklist:

[ ] The title of this PR complies with Conventional Commits.
[ ] I have edited the CHANGELOG accordingly.
[ ] I have made corresponding changes to the documentation.

The syntax is actually: #[query(no_export = true)] #[update(no_export = true)].
I considered removing the no_ prefix, i.e. #[query(export = false)]. If so , the export option will default to true which is not well supported by #[serde(default)]. So I keep the original name no_export which defaults to false.

How about hidden instead of no_export?


Cannot add refs to a Textarea

A ref cannot be added to a Textarea as it's a functional component. Using form libraries to control an input/textarea requires form inputs to allow refs to be passed. I've had a look at the Input component and it has a forward ref.
I'm happy to implement a forwardRef for this if everyone accepts this as an issue!

Will be handled as a part of #169


feat (labs/analyzer): support custom element analysis

This separates the current lit-element analysis into two layers:

custom elements
lit

Primarily this is so we can detect non-lit elements we may depend on inside a lit project, giving the user full coverage of all the elements they're consuming.

@kevinpschaaf i had to do a lot of conflict resolution when getting this based onto master. so in the end i just made a new branch and cherry picked it out
if you could re-review to be sure all looks good still, that'd be appreciated
we also still need to figure out how to properly test this... roughly the same tests could be run against both lit and vanilla in theory. for now its the existing tests mostly, but maybe another pr can improve that

I'm looking into the CI failures...

we also still need to figure out how to properly test this...

Yeah, it would be nice to refactor the tests a bit to dedupe them down, but we can handle that separately. For now I just aligned the (mostly duplicate) vanilla tests to the JSDoc-related changes I made at the end of my last PR.


[4.2] [BatchMode] rdar://39981525 Emit parseable output for each job, using quasi-PIDs.

Cherry-pick of #16492 to swift-4.2-branch. Original description follows:
Due to a variety of suboptimal UI in Xcode it's better to emit parseable output from a batch mode job that pretends to be the sequence of constituent jobs in the batch, rather than a single message for the entire batch. In order to do this without breaking things, the "pid" field in messages needs to get its semantics very slightly bent to accept negative made-up values (I'm calling them "quasi-PIDs" here) in place of real PIDs.
I've tested this on Xcode and it behaves a fair bit better than before, in terms of relating diagnostics to the correct file and displaying meaningful output and so forth. Not exactly thrilled with it but the alternatives seem worse.
rdar://40166873

@swift-ci please test


Storage permission on iOS

How difficult is it to add storage permission support on iOS?
I have never done native app development but can try.

Here https://github.com/NathanaelA/nativescript-permissions/issues/12, its been claimed that (as of Aug 2016) those are the only iOS permissions.
Can we get inspiration from @roblav96's code?

@sido420 I found this in an old project, might help get you started.

permissions.extension.ios.ts
import { Application, Device } from '@nativescript/core'

const _contactStore: CNContactStore = CNContactStore.alloc().init()

function _getContactsAuthorization(): CNAuthorizationStatus {
	return CNContactStore.authorizationStatusForEntityType(CNEntityType.Contacts)
}

export function isContactsAuthorized(): boolean {
	return _getContactsAuthorization() == CNAuthorizationStatus.Authorized
}

export function isContactsDenied(): boolean {
	let status: CNAuthorizationStatus = _getContactsAuthorization()
	let denied: boolean =
		status == CNAuthorizationStatus.Denied || status == CNAuthorizationStatus.Restricted
	return denied
}

export function requestContactsAuthorization(): Promise<boolean> {
	if (_getContactsAuthorization() == CNAuthorizationStatus.Authorized) {
		return Promise.resolve(true)
	} else {
		return new Promise((resolve) => {
			_contactStore.requestAccessForEntityTypeCompletionHandler(
				CNEntityType.Contacts,
				function completionHandler(result: boolean, error: NSError): void {
					if (error) {
						console.error('requestAccessForEntityTypeCompletionHandler > error', error)
						resolve(false)
					} else {
						resolve(result)
					}
				},
			)
		})
	}
}

export function isPhotosAuthorized(): boolean {
	return PHPhotoLibrary.authorizationStatus() == PHAuthorizationStatus.Authorized
}

export function isPhotosDenied(): boolean {
	let status: PHAuthorizationStatus = PHPhotoLibrary.authorizationStatus()
	let denied: boolean =
		status == PHAuthorizationStatus.Denied || status == PHAuthorizationStatus.Restricted
	return denied
}

export function requestPhotosAuthorization(): Promise<boolean> {
	return new Promise(function (resolve) {
		PHPhotoLibrary.requestAuthorization(function (status: number): void {
			let authed: boolean = status == PHAuthorizationStatus.Authorized
			resolve(authed)
		})
	})
}

export function isNotificationsAuthorized(): boolean {
	let nativeApp: UIApplication = Application.ios.nativeApp
	let version = parseFloat(Device.osVersion)
	if (version >= 8) {
		let enabled = nativeApp.registeredForRemoteNotifications
		let types = nativeApp.currentUserNotificationSettings.types
		return enabled && types != UIUserNotificationType.None
	}
	let types = nativeApp.enabledRemoteNotificationTypes()
	return types != UIRemoteNotificationType.None
}

Will look at it. Also this plugin is a  direct port of the react native one. Need to see if they added since then.

@sido420 are we  talking about ios13 external storage permissions? Do you have example native code?

Thanks for looking into it.
I was referring to iOS external storage in general. From the chart in this module, it appears storage permission for iOS is not supported, hence I wanted to request adding support for that. I don't know version differences in iOS and not sure if permission is even required for iOS.
I'm afraid, I don't have native code available, since I am still learning NS development. However, there is some discussion on storage at https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/index.html#ios-quirks.

@sido420 ok. So i dont think it is needed , thus the graph here.

Just to clarify: Everything in https://github.com/nativescript-community/nativescript-perms#supported-permissions-types that has cross with it means it does not require a permission by the platform. Please confirm.

Yes that s it. And you can "request" permission still. It will return "true" if not needed by the platform


[QUESTION] Broken argument passing to workers

What did you do
Attempted to use k3d.

Cluster creation failed, it's not splitting the arg properly on the workers.

What did you expect to happen
The deployment to succeed.
Screenshots or terminal output
DEBU[0051] Truncated 2022-05-05 06:13:32.175311569 +0000 UTC to 2022-05-05 06:13:32 +0000 UTC
DEBU[0051] Waiting for node k3d-k3s-agent-2 to get ready (Log: 'Successfully registered node')
DEBU[0051] Truncated 2022-05-05 06:13:32.356555404 +0000 UTC to 2022-05-05 06:13:32 +0000 UTC
DEBU[0051] Waiting for node k3d-k3s-agent-1 to get ready (Log: 'Successfully registered node')
DEBU[0051] Truncated 2022-05-05 06:13:32.379748108 +0000 UTC to 2022-05-05 06:13:32 +0000 UTC
DEBU[0051] Waiting for node k3d-k3s-agent-0 to get ready (Log: 'Successfully registered node')
WARN[0052] warning: encountered fatal log from node k3d-k3s-agent-2 (retrying 0/10): ftime="2022-05-05T06:13:32Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0052] warning: encountered fatal log from node k3d-k3s-agent-0 (retrying 0/10): ftime="2022-05-05T06:13:33Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0052] warning: encountered fatal log from node k3d-k3s-agent-1 (retrying 0/10): ftime="2022-05-05T06:13:33Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0053] warning: encountered fatal log from node k3d-k3s-agent-2 (retrying 1/10): ftime="2022-05-05T06:13:34Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0054] warning: encountered fatal log from node k3d-k3s-agent-0 (retrying 1/10): ftime="2022-05-05T06:13:34Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0054] warning: encountered fatal log from node k3d-k3s-agent-1 (retrying 1/10): ftime="2022-05-05T06:13:34Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0055] warning: encountered fatal log from node k3d-k3s-agent-2 (retrying 2/10): ftime="2022-05-05T06:13:35Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0055] warning: encountered fatal log from node k3d-k3s-agent-0 (retrying 2/10): ftime="2022-05-05T06:13:36Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0055] warning: encountered fatal log from node k3d-k3s-agent-1 (retrying 2/10): ftime="2022-05-05T06:13:36Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0056] warning: encountered fatal log from node k3d-k3s-agent-0 (retrying 3/10): ftime="2022-05-05T06:13:36Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
WARN[0056] warning: encountered fatal log from node k3d-k3s-agent-1 (retrying 3/10): ftime="2022-05-05T06:13:36Z" level=fatal msg="flag provided but not defined: -service-node-port-range"
ERRO[0057] Failed Cluster Start: Failed to add one or more agents: Node k3d-k3s-agent-2 failed to get ready: error waiting for log line `Successfully registered node` from node 'k3d-k3s-agent-2': stopped returning log lines

Which OS & Architecture

Linux

Which version of k3d
k3d version v5.4.1
k3s version v1.22.7-k3s1 (default)

@iwilltry42 anything more I can do to help?

Hi @KyleSanderson , thanks for opening this issue!
Two issues here:

--k3s-arg '--service-node-port-range=1-65535@' is missing the actual node selector, e.g. servers:* or agents:* (to select all servers or agents respectively)
--service-node-port-range is a control-plane (server) argument

So this would be the correct flag: --k3s-arg '--service-node-port-range=1-65535@servers:*'
In the end k3d cluster create k3s -s3 --servers-memory 2Gi -a24 --agents-memory 1Gi --k3s-arg '--service-node-port-range=1-65535@servers:*' --verbose worked fine for me (ok, I used less agents, since it killed my laptop with 24 :sweat_smile: )

Thank you - my cluster is working now. Is there documentation anywhere that this small flag could be added to? Since it's nested in docker already, the risk to the actual host is nil to document the port range.

Is there documentation anywhere that this small flag could be added to?

Are you referring to the --service-node-port-range flag? Where/why would you want to have it in the k3d documentation (it's a K3s/Kubernetes non-default option flag after all)?


Context menu item in the Query Log to add a Client to the Persistent client list

After the last agh update I couldn't find where the added item in the changes section is. this could be added : https://github.com/AdguardTeam/AdGuardHome/issues/6679
I found a ss from the agh pages for this. I think it's the bottom part. but for some reason this doesn't show up for me :

Added on v2.17.0-beta.1.


Inconsistant behaviour when accessing datalake client behind a RwLock

Rust version: 1.70
SDK version: 0.12.*
I have created the datalake client as a singleton behind a tokio RwLock. I've found that if you do many concurrent read/write/deletes there will be inconsistant behaviour. Some API calls will fail, seemingly at random. For example deleting a file or container will fail with PathNotFound or FilesystemNotFound errors despite those resources existing. I've inspected the actual requests sent and they seem correct (i.e. correct storage account, container and file names).
My code below creates and handles the datalake client singleton.
use std::collections::HashMap;
use std::future::Future;
use std::pin::Pin;
use std::sync::Arc;

use azure_identity::{AutoRefreshingTokenCredential, DefaultAzureCredentialBuilder};
use azure_storage::prelude::*;
use azure_storage_datalake::prelude::*;
use lazy_static::lazy_static;
use tokio::sync::{Mutex, RwLock};

lazy_static! {
    static ref AZ_STORAGE_BACKEND_CACHE: Arc<Mutex<HashMap<String, Arc<RwLock<DataLakeClient>>>>> = Arc::new(Mutex::new(HashMap::new()));
}

/// Cloud backend for Azure ADLS Gen 2 storage. Creates an authenticated client for the supplied storage account with can be reused async
#[derive(Clone, Debug)]
pub struct AzureStorageBackend {
    pub(crate) client: Arc<RwLock<DataLakeClient>>
}

impl AzureStorageBackend {
    fn new<'o, T: AsRef<str> + Send + Sync + 'o>(auth_parameter: T) ->  Pin<Box<dyn Future<Output = Result<Self, azure_storage_datalake::Error>> + Send + Sync + 'o>>
        where Self: Sized
    {
        let storage_account_url = auth_parameter
            .as_ref()
            .to_string();

        let cache_clone = Arc::clone(&AZ_STORAGE_BACKEND_CACHE);

        Box::pin(async move {
            let data_lake_client = {
                let mut cache_guard = cache_clone.lock().await;

                match cache_guard.get_mut(&storage_account_url) {
                    Some(existing_client) => {
                        println!("Found existing client");
                        Arc::clone(existing_client)
                    },
                    None => {
                        println!("Creating new client");
                        let token_credential = Arc::new(DefaultAzureCredentialBuilder::default().build());
                        let refresh_token = Arc::new(AutoRefreshingTokenCredential::new(token_credential));
                        let storage_credentials = StorageCredentials::token_credential(refresh_token);
                        let data_lake_client = DataLakeClient::new(storage_account_url.clone(), storage_credentials);

                        let data_lake_client_arc = Arc::new(RwLock::new(data_lake_client));
                        cache_guard.insert(storage_account_url, Arc::clone(&data_lake_client_arc));
                        data_lake_client_arc
                    }
                }
            };

            Ok(Self {
                client: data_lake_client,
            })
        }
        )
    }
}

To reproduce this error you only need to run the tests at the bottom of the main.rs file in this MRE https://github.com/alixmacdonald10/azureRustSDKMRE/blob/main/src/main.rs There are 10 tests and they are all identical. Each test creates a container, creates a file in that container, deletes the file then deletes the container.
#[tokio::test]
    async fn test_1() -> Result <(), Box<dyn std::error::Error>> {
        let (container_name, file_name) = generate_unique_names();

        let azure_storage_backend = AzureStorageBackend::new(STORAGE_ACCOUNT).await?;
        println!("Created backend: {:?}", azure_storage_backend);
        println!("Creating container: {}", container_name);
        create_container(&azure_storage_backend, &container_name).await?;
        println!("Creating file: {}", file_name);
        create_file(&azure_storage_backend, &container_name, &file_name).await?;
        println!("Deleting file: {}", file_name);
        delete_file(&azure_storage_backend, &container_name, &file_name).await?;
        println!("Deleting container: {}", container_name);
        delete_container(&azure_storage_backend, &container_name).await?;

        Ok(())
    }

Each container and file have a unique name (uuid), so there should be no collisions. Running these several times results in inconsistant failures, however running sequentially (cargo test -- --test-threads=1) there is no inconsistant behaviour and all tests pass. For example:

Run 1:

all tests pass

Run 2:

Test 4 fails: Deleting file: testfile-498a68b0-bd89-486c-9bae-31186e3dc461 Error: Error { context: Full(Custom { kind: HttpResponse { status: NotFound, error_code: Some("PathNotFound") }, error: HttpError { status: NotFound, details: ErrorDetails { code: Some("PathNotFound"), message: Some("The specified path does not exist.\nRequestId:5274eedc-c01f-0025-6cf7-afba80000000\nTime:2023-07-06T10:45:47.2210919Z") }, headers: {"content-length": "163", "content-type": "application/json;charset=utf-8", "x-ms-error-code": "PathNotFound", "x-ms-request-id": "5274eedc-c01f-0025-6cf7-afba80000000", "date": "Thu, 06 Jul 2023 10:45:46 GMT", "x-ms-version": "2019-12-12", "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0"}, body: b"{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:5274eedc-c01f-0025-6cf7-afba80000000\\nTime:2023-07-06T10:45:47.2210919Z\"}}" } }, "server returned error status which will not be retried: 404")
Test 9 fails: Deleting container: testcontainer-225e2900-e07a-404e-98cc-9d079918a3e4 Error: Error { context: Full(Custom { kind: HttpResponse { status: NotFound, error_code: Some("FilesystemNotFound") }, error: HttpError { status: NotFound, details: ErrorDetails { code: Some("FilesystemNotFound"), message: Some("The specified filesystem does not exist.\nRequestId:5274eedd-c01f-0025-6df7-afba80000000\nTime:2023-07-06T10:45:47.2688822Z") }, headers: {"date": "Thu, 06 Jul 2023 10:45:46 GMT", "x-ms-request-id": "5274eedd-c01f-0025-6df7-afba80000000", "content-length": "175", "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", "content-type": "application/json;charset=utf-8", "x-ms-version": "2019-12-12", "x-ms-error-code": "FilesystemNotFound"}, body: b"{\"error\":{\"code\":\"FilesystemNotFound\",\"message\":\"The specified filesystem does not exist.\\nRequestId:5274eedd-c01f-0025-6df7-afba80000000\\nTime:2023-07-06T10:45:47.2688822Z\"}}" } }, "server returned error status which will not be retried: 404") }

Run 3:

test 6 fails: Deleting container: testcontainer-4b779895-4aea-44f4-8645-1b76d71d1365 Error: Error { context: Full(Custom { kind: HttpResponse { status: NotFound, error_code: Some("FilesystemNotFound") }, error: HttpError { status: NotFound, details: ErrorDetails { code: Some("FilesystemNotFound"), message: Some("The specified filesystem does not exist.\nRequestId:cf154abc-401f-003b-5af7-af5658000000\nTime:2023-07-06T10:47:39.4910824Z") }, headers: {"x-ms-request-id": "cf154abc-401f-003b-5af7-af5658000000", "content-type": "application/json;charset=utf-8", "x-ms-error-code": "FilesystemNotFound", "date": "Thu, 06 Jul 2023 10:47:39 GMT", "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", "x-ms-version": "2019-12-12", "content-length": "175"}, body: b"{\"error\":{\"code\":\"FilesystemNotFound\",\"message\":\"The specified filesystem does not exist.\\nRequestId:cf154abc-401f-003b-5af7-af5658000000\\nTime:2023-07-06T10:47:39.4910824Z\"}}" } }, "server returned error status which will not be retried: 404") }

Run 4:

Test 8 fails: Deleting file: testfile-7b624075-8471-4212-b539-8eeb26a15f54 Error: Error { context: Full(Custom { kind: HttpResponse { status: NotFound, error_code: Some("PathNotFound") }, error: HttpError { status: NotFound, details: ErrorDetails { code: Some("PathNotFound"), message: Some("The specified path does not exist.\nRequestId:29b32f3b-501f-0018-01f7-afcc9b000000\nTime:2023-07-06T10:49:12.8735577Z") }, headers: {"x-ms-request-id": "29b32f3b-501f-0018-01f7-afcc9b000000", "x-ms-error-code": "PathNotFound", "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", "x-ms-version": "2019-12-12", "content-length": "163", "date": "Thu, 06 Jul 2023 10:49:12 GMT", "content-type": "application/json;charset=utf-8"}, body: b"{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:29b32f3b-501f-0018-01f7-afcc9b000000\\nTime:2023-07-06T10:49:12.8735577Z\"}}" } }, "server returned error status which will not be retried: 404") }

This behaviour doesn't appear to be present if you dont use the RwLock
impl AzureStorageBackend {
    fn new<T: AsRef<str>>(auth_parameter: T) -> Result<Self, azure_storage_datalake::Error> {
        let storage_account_url = auth_parameter
            .as_ref()
            .to_string();

        let token_credential = Arc::new(DefaultAzureCredentialBuilder::default().build());
        let refresh_token = Arc::new(AutoRefreshingTokenCredential::new(token_credential));
        let storage_credentials = StorageCredentials::token_credential(refresh_token);
        let data_lake_client = DataLakeClient::new(storage_account_url, storage_credentials);

        Ok(Self {
            client: data_lake_client,
        })
    }
}

However, there isn't state being held in the DataLackClient, given delete_container creates a new client container using file_system_client.  This leads me to believe this isn't directly an issue with the SDK.
Something of note, the datalake client (and all of the clients) are intended to be used as a light-weight and cloneable.  You should not need to wrap it within an Arc RwLock.


Spark/Scala Issues

Spark (in the Scala kernel) cannot read in parquet files (throws IllegalArgumentException)
DataFrame.count throws IllegalArgumentException

%%classpath add mvn
org.apache.spark spark-core_2.11 2.3.1
org.apache.spark spark-sql_2.11 2.3.1
org.apache.spark spark-hive_2.11 2.3.1

import org.apache.spark.sql.SparkSession

val spark = SparkSession.builder().master("local")
    .appName("IO")
    .getOrCreate()
spark

Hi @dclong
I created an example in branch jarek/8034_parquet_files and it looks like the parquet files work well

please provide your example that will allow us to reproduce it

@jaroslawmalekcodete Thank you for taking time investigating the issue. Please follow the steps below to reproduce the issue.

Pull the Docker image dclong/jupyterhub-ds.

docker pull dclong/jupyterhub-ds

Start a container by running the following command.

docker run -d \
    --name jupyterhub-ds \
    --log-opt max-size=50m \
    -p 8000:8000 \
    -e DOCKER_USER=`id -un` \
    -e DOCKER_USER_ID=`id -u` \
    -e DOCKER_PASSWORD=`id -un` \
    -e DOCKER_GROUP_ID=`id -g` \
    -e DOCKER_ADMIN_USER=`id -un` \
    -v `pwd`:/workdir \
    -v `dirname $HOME`:/home_host \
    dclong/jupyterhub-ds

Hi @dclong
It looks like your docker container uses java 11

beakerx supports java 8 https://github.com/twosigma/beakerx/blob/master/configuration.yml#L6
from your docker container

please try to remove java11 or change java alternatives to java8

@jaroslawmalekcodete Thank you very much! It seems that apt-get install openjdk-8-jdk maven gradle installed openjdk-11-jdk in my Docker image. Install openjdk-8-jdk specifically resolves the issue.


introduce metadata artifact

Signed-off-by: Stephanie<EMAIL_ADDRESS>What does this PR do?
This PR introduces an optional artifact field in metadata, which allows devfile consumers to provide additional information that is not defined in schema
What issues does this PR fix or reference?
#217
Is your PR tested? Consider putting some instruction how to test your changes
Docs PR

closing this PR. Dup of #214


Bump dependencies

Changed dependencies
No dependencies bumped.
Requirement changes
No requirements changed.

just small QoL feature... dont wanna put in the effort to fix the desc, if the actual code is updated it'll say


Create Automatic crash reporting

Without crash reporting to tell us that apps/features are crashing  more users may stop using the project
I would like to see a crash reporting that does not use appcenter since this app is side loaded not through the store that can give enough details to quickly find the issue and would like to have the application automatically create a github issue when crash and or feedback is received in application
I have looked into google for crash reporting would be open to other frameworks

#95


Add event handlers to drawArea, add mousemove event

I have added some features that I would like to create a pull request for if it seems like something that would be useful.
The specific use case that I have is a stacked area series that can contain more series than it makes sense to create a legend for.  The user hovers over an area and a popover follows the mouse around and the popover changes based on the area below.  They can click in the area that is of interest and they are taken to more detail.   Here is a screenshot:

Doing this requires adding the mousemove event, and adding the click and mouse events to drawArea.  If this makes sense to add I can add tests/example and create a pull request.

Hey, we're closing this because it's been a while and we're trying to avoid zombie issues. If the problem persists, please open a new issue (and don't forget, your issue is much more likely to be fixed if you provide a working CodePen : easier for us, faster for you !).
Thanks again for helping us making n3-charts awesome.
--
Sébastien & Christoph


New columns in Plant Trait

New column in Plant Trait:
(meta table)
Dave's Growth Types

Tree
Shrub
Closed Perennial
Open Perennial
Monocarpic
Algae
NA

@simonrolph @DannyLBuss please could you provide a descriptive sentence for each? I can add these as a meta table.

Tree - Large woody plant with a trunk and supporting branches
Shrub - Small to medium-sized woody plant, distinguished from trees by shorter height and multiple stems
Closed Perennial: Non-woody plants with multiple reproductive events in their lifetime and occurs primarily in shaded habitats such as forests.
Open Perennial: Non-woody plants with multiple reproductive events in their lifetime and occurs primarily in unshaded habitats such as grassland.
Monocarpic: Plants with a single reproductive event in their lifetime. This includes biennials.
Algae: Organisms with chlorophyll as their primary photosynthetic pigment and lack a sterile covering of cells around their reproductive cells
NA: Does not fit into growth type category


Merge demo-minicart-item and demo-product-added into one component

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current behavior
demo-minicart-item and demo-product-added are basically the same components. demo-minicart-item used to be checkout-cart, which is being refactored in #186
Expected behavior
Delete demo-product-added and move any required functionality over to demo-minicart-item
Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?
Duplicate component
Environment

Daffodil version: X.Y.Z

For Tooling issues:
- Node version: XX
- Platform:

Others:

I looked at this and while they do look really similar, but I don't think they should be merged together. They actually take two different object types as input. product-added takes a Product and minicart-item takes a CartItem, and we would need to significantly change code to make this refactor. I'm requesting that this issue is closed.

@lderrickable okay that's fine. this issue can be closed.


genesis.json import and export

genesis.json import and export
Description
It seems like currently there is no way to import and export genesis.json files to and from other node architectures.
This prevents from running Polygon Edge for networks that were not initially started with Polygon edge like Ethereum as well as to run diverse node clients for a Polygon Edge network.
I'm running RPC nodes for multiple chains and would like to experiment to run Polygon Edge nodes instead of Geth or Parity nodes for these networks as I feel more familliar with the Polygon Edge codebase.
Also I'm running RPC Nodes for a Polygon Edge based network and would like to also add some Geth nodes for diversification.
For both cases I would need an export and import for the genesis.json file towards a standardized format or directly to the Geth genesis.json format.
This is also for RPC nodes, not for validator Nodes, so even if the concencus is not available in other implementations, maybe at least the validation of the blocks work.
Expected behavior
I can import geth or parity genesis.json files in polygon edge and export polygon edge genesis.json files to geth or parity file formats
As a work around it would also be appreciated if you can give me manual steps how to change the genesis file by hand.

Hi @simone1999 ,
Thank you for opening this issue.
Unfortunately, we do not support such interoperability. You can only run an Edge network using the genesis file generated within Edge. You also cannot export our genesis.json as a geth or parity file.
I will have to close this issue now, but feel free to reach out whenever there is a problem.


live account not working

ok so i've been trying to make a basic skype bot for a while with a code similar to the ping/pong snippet from the docs.
i can log into the live accounts i made on skype in my browser, but it ends up with skpy.core.SkypeAuthException: (u"That Microsoft account doesn't exist. Enter a different account or get a new one.", <Response [200]>)
here is the code if you need it https://paste.kde.org/po0ay3f7u

You should be using your Microsoft account email/phone as the username (i.e. whatever you use to sign in at https://web.skype.com or https://account.microsoft.com), not the derived Skype username.

Hopefully resolved now...


Split the knife gem out of the chef gem

For Chef Infra Client 17 we have a great opportunity to slim down the size of the chef install while resolving some longstanding customer security concerns by splitting knife out of the chef gem.
Why
chef the repo historically was everything chef including the server. It was pretty natural at to just gem install chef and manage nodes that way. A lot has changed since that time, especially with the introduction of ChefDK and Chef Workstation. Users aren't (or at least shouldn't) be gem installing chef in order to manage nodes. That task should be performed in Workstation either on a system with the Workstation package installed or a workstation docker container.
Knife being in each Infra Client is pretty problematic. Knife itself has bloated over the years as have the dependencies it brings along to each client install. We'd like to pull more into the standard knife offering, but that's difficult as each new plugin adds more dependencies to each Infra Client install. For instance, adding the knife-windows functionality brings in 3 more winrm-related gems that would have to ship with each Infra Client.
Additionally, security audits have raised concerns having management code on each client node in their fleet. Removing knife from the standard Infra Client package resolves that audit concerns.
What to do
Split current knife code into a knife gem. That gem code would continue to live in the chef/chef repo. This would be really similar to our chef-utils and chef-config pattern. Version bumping would be handled via our existing pipelines as would promotion. This keeps the maintenance low. Chef Workstation would include the new knife dependency and the omnibus chef package would no longer directly depend on knife, allowing us to shed a good number of dependencies.

Done


feat: button group basic

Closes #201
Description
Add ButtonGroup sample

Current behavior (updates)

New behavior

Is this a breaking change (Yes/No): No

Additional Information

Thanks!


Add a 'recompile' button

Use case: Working with imports and several files, diagram preview on the right side. When I update one of the imported files, I have to go back to the diagram file and hit save to refresh the preview. It'd be better if I could just click on a button in the preview itself.
Visually, that would be something like the Obsidian plug-in (although it doesn't seem to support imports at all)

After giving this some thought, the 'refresh/recompile/F5' button is the way to go.  I had thought to put a file watch on the imports, but that leads me down the rabbit hole of keeping track of imports, imports that import (and so on), additions to the imports and deletions of the imports.  All of course doable, but that is a bug factory, and a refresh button is causing something to happen that is already coded to happen.
I've got a large PR I'm working on, but I'll get to this right after that gets accepted.

I agree - KISS.


chore(docs): add note for tooltip and popover on mobile

update popover readme indicating we will not support issues on mobile devices.
update tooltip readme indicating we will not support issues on mobile devices.

LGTM - master of the docs @Foxandxss ?

Master!
Apprentice!
Heartborne, 7th seeker!


Documentation and Examples

Do you still plan to add them? I'd love to see an example using Chrome Native Messaging or Node.
Would also like to see pen tilt and rotation values.

Hi,
Currently I'm working on this project in my spare time, and while I have written what the API would look like in a '.h' file, I'm half-way through the X11 implementation (I can print the values you seek).
I'm not sure if it would work with Chrome Native Messaging or Node.js (I don't know much about these technologies). What I know for sure is that there will be an X11 and a Win32 implementation (I need to get a Mac for the OSX impl).
If this still suits your needs, then let me know and I'll put a bit more effort into it. :)

Basically I want to make an open source drawing and painting application using Wacom technology. I was hoping to use NW.JS as a framework, since I only know web languages. NW is packaged version of Chrome and Node which facilitates cross-platform application development using html, css and javascript. Honestly I don't know how Native Messaging or Node works, but I'm willing to investigate if you're still developing this project. Native Messaging allows Chrome extensions to communicate with other system programs, Including C#.

Sounds cool, and I believe it might work.
There's one thing though : functions like gtPollEvent() and gtWaitEvent() may require a dummy window for getting events (the OS's event system may require it).
I want my API to work without needing to create any window. But in the end, if I find out there is no other choice, I guess you'll have to stick with gtQueryList().
I'm still working on the project anyway. I might even complete it since it is not that big. :)

https://github.com/w3c/pointerevents/issues/25#issuecomment-152013055
Quote:
The wheel is in the HID “Barrel Pressure” field (HID Usage 0x31) - sometimes referred to as “Tangential Pressure” (Mac OS). Painter and Photoshop use this.
Two more missing data elements are the Secondary Barrel Switch (HID Usage 0x5A) and Transducer Serial Number (HID Usage 0x5B). Both of these have application support (Painter uses the Serial Number to store settings on a per stylus basis and Photoshop useless serial numbers for cloud login).

Good to know, will be useful for the OS X impl.
However I won't be able to test the two last quoted features since my tablets do not have them. It will be guesswork until someone can test and tell me.
Unrelated : If you haven't seen any commits lately, it's because I am slowed down by the various college projects and homework, but I come back to it whenever I can.
I'm adding you to the contributors list; feel free to store any notes, suggestions or code in this repo as you see fit.
I'd also like to now what OS(es) you can run on, and what graphics tablet/styluses you have got. It might be useful for testing.

Okay no rush. I have an Intuos Medium Pro and a Cintiq 22HD Touch with standard styli. I'm running Windows 7 Pro x64, but I may upgrade to Win 10 Pro x64 in the future.


Add function to check if tools are available on a list of servers

First step of https://github.com/bebatut/galaxy_tool_extractor/issues/11 .

@paulzierep has volunteered to add the function calls in a follow-up PR.


alias_method fails to alias methods included by modules

Input
→ View on sorbet.run
# typed: true

module Foo
  def foo
  end
end

class Bar
  include Foo

  alias_method :bar, :foo
end

Observed output
editor.rb:11: Can't make method alias from bar to non existing method foo https://srb.help/5037
    11 |  alias_method :bar, :foo
                             ^^^^
Errors: 1

Expected behavior
There should be no errors about non-existing method foo since it is defined by Foo in Bar.

https://github.com/sorbet/sorbet/issues/2378

https://github.com/sorbet/sorbet/issues/2378

🤦 thanks, makes sense.

🤦 thanks, makes sense.

Actually @jez, is there a special reason why alias_method is not implemented as a Rewriter. If it was implemented as a rewriter that just did delegation, i.e. converted:
alias_method :bar, :foo

to
def bar(*args, **kwargs, &blk)
  foo(*args, **kwargs, &blk)
end

then this would work properly without introducing order dependency.

Actually @jez, is there a special reason why alias_method is not implemented as a Rewriter. If it was implemented as a rewriter that just did delegation, i.e. converted:
alias_method :bar, :foo

to
def bar(*args, **kwargs, &blk)
  foo(*args, **kwargs, &blk)
end

then this would work properly without introducing order dependency.


Plex does not pick up subtitles - to slow for playback

I have a VPS and the rclone connection gives decent playback about a 30 MBytes connection but when I use plexdrive its about 5 MBytes. Besides that when I try to play a videofile it fails because it cannot pick up the subtitles can something have gone wrong during the initial cache. If so how do I clear it.

I'm not aware of any such trouble playing fine for me with subs. You could remove your cache on the config/dir/cache.
Mostly somewhere in /root/.plexdrive or elsewhere. You can see the location when plexdrive starts.
Try to rebuild the cache and don't access the mount before it is done building the cache.

Sorry but I also cannot reproduce the problem. If you need advanced help please visit the slack channel: https://plexdrive.slack.com


Improve logging on exceptions in api requests (#5549)

Pull request opened by the merge tool on behalf of #5549

Merged into branches iso6 in aa8c381412f145bea786981b1141062597705d34


updated ecto related documentation

while the readme.md was updated to reflect the change from extensions to a type definition, the documentation in geo.ex wasn't. Suggested update.

Thanks! I'll get a patch version out asap

Published: https://hex.pm/packages/geo/1.4.1


Error while creating a decimal field in the January update

Hi,
I had created a decimal field previously in Visual studio code.
field(70000011;"Percentage";Decimal)
{
}
It worked properly previously. But now when I am creating a simple decimal field in the January update and installing the extension, my web client stops working due to the decimal field created and gives error that 'Server error has occured and the content cannot be displayed'.

Could you please try with a different field Id? It could be an Id conflict that is not handled gracefully.
We haven't noticed any issues with Decimal fields in particular.

I created a decimal field and seems to be working fine.
could be something else. please add details from event viewer.

Hi all,
@StanislawStempin I created another decimal field with different ID which is unique. It is not conflicting. I checked that. But I still get the same error while opening the web client.
field(70000005;"Average Field";Decimal)
{    }
@pmohanakrishna
I checked the event viewer. Below are the details:
Type: System.IndexOutOfRangeException
Message:
Message: Index was outside the bounds of the array.
Logical Control: Name=1001603; Caption=Average Field
Format Column Binder: 27_Item.Control1001603_Format
Kindly suggest.

We are investigating this. Seems like there is a problem with Decimals in some situations.

Hi @esbenk ,
Ok. Thank you.

We have fixed this bug and uploaded a new azure gallery image to http://aka.ms/navdeveloperpreview. Please give it a try.

Hi,
Does this mean that a new VM has to be created for it again ?

yes, keep backup of your .al files.

Ok. Thanks.

Hi @StanislawStempin,
Its working now. Thank you.


Update readme

change "true" string to boolean (this error is showing in console)

@krychaxp Thank you for the PR 👏


Changed IOS-XE script to add option for virtio NIC; added port 830 forwarding for XRv

Symptom
IOS-XE 16.7 onwards images wouldn't boot correctly.
Problem
Introduction of DPDK breaks default NIC type used.
Solution
Specify virtio NIC at box creation for images that require it, introducing a parameter --virtio
Testing
Tested with IOS-XE 16.7 EFT image.

Rich, could you check out updates I committed a few days ago?

Actively looking to use 16.08.01a CSR 1000v image - merging and documenting would be very helpful.

Guess this will never be committed...


Incorrect implementation of TeradataTableSource constructor for Python SDK

Description of error
We tried creating TeradataTableSource dataset to Azure Data Factory with the only required parameter (linked_service_name) but throwing the error in ADF saying "Relational dataset can't reference the new Teradata linked service, please use a Teradata dataset", and if we doing the same through portal.azure.com we are able to create without any errors.
To Reproduce
Steps to reproduce the error:

Use Python SDK for ADF
Follow steps to create Data factory, linked service for Teradata
Create the dataset for Teradata without any additional parameters -  TeradataTableDataset(linked_service_name=<linked_service_reference>)
Go to the ADF portal and look for the Teradata dataset you created.
See the error - "Relational dataset can't reference the new Teradata linked service, please use a Teradata dataset."

Expected behavior
It should not throw any error if we are using the default values of parameters.
Screenshots
Initializing dataset-

Error -

How we resolved
While creating the dataset, if we don't want to mention any schema, then also we need to pass it as empty. the default value is not the correct one, that is None but should be []
What change made it worked -

Resolution -
The constructor should take the default schema as empty but not None.
Thank you!

Hello,
Any updates on this?


Lack of information outputted for non-linux os's.

Made to address the readme. It's here so that it can be motivation for others (and maybe me 😳) to resolve it.

😳

Awesome script!
Not able to do a PR at the moment, but let me leave some FreeBSD commands for information that is not showed at the moment:
Uptime
 uptime | awk '{ print $3 }' | sed 's/,//'
Hostname
hostname
Running kernel version:
freebsd-version -k
Number of Installed ports using pkg:
pkg info | wc -l | awk '{ print $1 }'
I hope it helps.

@yaazkal that will help, tysm! i think ill try to impl these later, probably.

:peek:
(Also, don't forget that the focus of this project is to only use shell
builtins & reading from files, which is part of the reason there isn't that
much info shown even in the best case (ie: no GPU detection/printing))

don't forget that the focus of this project is to only use shell builtins & reading from files

I wrote the comment since all the commands used comes already with the OS. So no dependency is needed.
Also, as an example (just picking one thing), why reading/searching in a file to get the memory when sysctl also gives that?
In FreeBSD sysctl -n hw.realmem and sysctl -n hw.usermem are there to be used. I mean, less lines of code, even cleaner and guess what? as in unix everything is a file we are not breaking the "reading from files" rule.
Regards !

why reading/searching in a file to get the memory when sysctl also gives
that?
Even though it's cleaner & shorter, sysctl wasn't used due to being an
external command, which goes against the goal/challenge of this project
(only using things built into POSIX shell, and by extension; reading from
external files)

That also means that things like package managers/awk/sed/etc go against
the goal/challenge, even though they'd be available on every system & not
affect compatibility.

ok, sorry for my misunderstanding of the project and the noise.
Regards !

No worries lol


Add basic progress output for pasting pages

Currently not considered is:

the number of dam files from other scopes
additional time for downloading/uploading dam files from other server

for this the whole process needs to be refactored.
Bildschirmaufzeichnung vom 2023-11-07, 15:42:36.webm

Do we need a changeset?

I did consider this a minor change nor worth metioning, but added one now

I did consider this a minor change nor worth metioning, but added one now

We should consider defining a guide when to add a changeset. In some cases we said "yes, as it's a user-facing change", in others we didn't add one 🤷🏼♂