Darwin arm64 release is broken

Describe the bug
I wanted to install swag from GitHub releases page. Downloaded it, tar-extracted and runned swag init -h. Got Gin-server instead of generator.
To Reproduce
Steps to reproduce the behavior:

Go to last release page: https://github.com/swaggo/swag/releases/tag/v1.8.2
Download swag_1.8.2_darwin_arm64.tar.gz (https://github.com/swaggo/swag/releases/download/v1.8.2/swag_1.8.2_darwin_arm64.tar.gz)
Cd to downloads and extract swag from tar.gz archive: tar -xzvf swag_1.8.2_darwin_arm64.tar.gz (and cleared xattr-flags to execute without macOS security checks xattr -c swag).
Run ./swag init -h, get running server.

Expected behavior
Get help page about generator features.
Screenshots
Console output is and program doesn't exit:
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /api/v1/map               --> github.com/swaggo/swag/example/object-map-example/controller.(*Controller).GetMap-fm (3 handlers)
[GIN-debug] GET    /swagger/*any             --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (3 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.

Same for linux amd64


Dataset.expand_dims() not lazy

The following won't come back for a very long time or will fail with an out-of-memory error:
>>> ds = xr.open_dataset("D:\\EOData\\LC-CCI\\ESACCI-LC-L4-LCCS-Map-300m-P1Y-2015-v2.0.8.nc")
>>> ds
<xarray.Dataset>
Dimensions:              (lat: 64800, lon: 129600)
Coordinates:
  * lat                  (lat) float32 89.9986 89.9958 89.9931 89.9903 ...
  * lon                  (lon) float32 -179.999 -179.996 -179.993 -179.99 ...
Data variables:
    change_count         (lat, lon) int8 ...
    crs                  int32 ...
    current_pixel_state  (lat, lon) int8 ...
    observation_count    (lat, lon) int16 ...
    processed_flag       (lat, lon) int8 ...
    lccs_class           (lat, lon) uint8 ...
Attributes:
    title:                      ESA CCI Land Cover Map
    summary:                    This dataset contains the global ESA CCI land...
    type:                       ESACCI-LC-L4-LCCS-Map-300m-P1Y
    id:                         ESACCI-LC-L4-LCCS-Map-300m-P1Y-2015-v2.0.7
    project:                    Climate Change Initiative - European Space Ag...
    references:                 http://www.esa-landcover-cci.org/
    ...
>>> ds_with_time = ds.expand_dims('time')
Zzzzzzz...

Problem description
When I call Dataset.expand_dims('time') on one of my ~2GB datasets (compressed), it seems to load all data data into memory, at least memory consumption goes beyond 12GB eventually ending in an out-of-memory exception.

(Sorry for the German UI.)
Expected Output
Dataset.expand_dims should execute lazy and fast and not require considerable memory as adding a scalar time dimension should only affect indexing but not an array's memory layout. Array data should not be loaded into memory  (through Dask, Zarr, etc).
 If you do that, then yes operations like expand_dims() will be lazy.
Otherwise, files are opened with xarray's built-in lazy loading capabilities, which only supports lazy indexing (expand_dims() could potentially be supported, too, with some effort, but you are really best off switching to dask).


Firmware/Bootloader update Failed_1.8.1

I have a INS Rugged unit used in work. The unit was working fine on 1.7.6 version. I tried to update the firmware to the newest (uINS 1.8.1) with the newly released Bootloader Version (SAMx70 v4b), the platform used to conduct upgrade is EvalTool 1.8.1.
However, the update failed on first attempt, then the serial connection not working ever since the failed attempt. Returned information in Firmware update window (Setting tab in EvalTool) is: "Starting bootloader...Unable to find bootloader...Attempting to reload bootloader...COM3: Firmware update ERROR!...Update failed to communicate"
Please advise.

Hi @xinai13994 Please just check the box to reopen the COM port and try again. Feel free to send an email to<EMAIL_ADDRESS>if you need more assistance.

Hi @xinai13994, I found that I had to first update the bootloader to v4b using the 1.7.6 version of evalTool - it seems version 1.8.1 cannot detect earlier bootloader versions. Your serial connection is likely no longer working because it is stuck in bootloader mode, which you should be able to resolve by restoring firmware version 1.7.6 (using evalTool 1.7.6).

This issue is resolved in the latest bootloader.  Let us know if you have any further issues here.


Cannot drag from auto hide window

Visual Studio 2012 and above themes should allow dock contents to be dragged from auto hide window to match VS behavior.
The current workaround is to disable auto-hide by clicking the Dock button, and then drag the pane.

It is the same for VS2003 and VS2005 themes, as far as I can see... Neither allows the auto-hide window (either the title bar or the "button") to be start a drag.

Commenting just one line with IsDockStateAutoHide check allows to drag.

@zii-dmg you can send a pull request.

#446

@joelbyren The scope of this issue is to cover only new themes.
I think the behavior in old themes like VS2003 and VS2005 are desired so as to match Visual Studio's behavior, and personally I don't want to break that.

@lextm oh, okay! I was mainly pointing it out to help narrow down where the error was.

@joelbyren Thanks. The cause has been found and now the question is how to address it in a good way via the pull request.

Closed via #446


Portal now supports Delete option for spot instances

This page says that the Delete option for spot instances is not available via the portal. However, as of this message, the option is shown on the portal page.
This is a minor point, but I thought I'd point it out.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2bcebc93-3efa-b89a-e348-cb6605dbac9e
Version Independent ID: dfae3da1-d422-f1ff-44da-2a2a6e553f9a
Content: Use Azure Spot VMs - Azure Windows Virtual Machines
Content Source: articles/virtual-machines/windows/spot-vms.md
Service: virtual-machines
GitHub Login: @cynthn
Microsoft Alias: cynthn

@KentKingery Thanks for the feedback! Yep, "delete" is a supported eviction type now. I'll try to get the doc updated today.
Thank you!

The doc has been updated. Thanks again!
#please-close


[QST] How flash-attn calc the dropout？

https://github.com/Dao-AILab/flash-attention/blob/c4b9015d74bd9f638c6fd574482accf4bbbd4197/csrc/flash_attn/src/flash_fwd_kernel.h#L345
Hi @tridao ，I don't understand the real meaning of the variable block_row_idx and block_col_idx when FA calc dropout,
why  block_col_idx = n_block * (kBlockN / 32) and block_row_idx = m_block * (kBlockM / 16) + tidx / 32;？
why It's not the element position within the current block？
Dose the dropout result related with kblockM and kblockN？
I‘m very confused how FA computing dropout.
could you so kindness to explain it?
thanks.

https://github.com/Dao-AILab/flash-attention/blob/c4b9015d74bd9f638c6fd574482accf4bbbd4197/csrc/flash_attn/src/flash_fwd_kernel.h#L1080

why 16x32? can we choose block size?

the first 32 means 16x32? the second 32 means wave size?


Add a conda installation option for pip-audit

Adding a conda installation option could be helpful. I have started working on this already to make pip-audit available on conda-forge channel. Once the conda-forge :bulb: PR gets merged, I will push a PR in this repository to update the install-instructions in the readme.
conda install -c conda-forge pip-audit

Current status: All CI's passed. Awaiting review/merger. https://github.com/conda-forge/staged-recipes/pull/17235
Note: The PR is being used to add pip-api and pip-audit to conda-forge.

Cool, thank you for adding it! And yes, please open a PR to include it in the README 🙂

#200 will add a section for third-party packages; feel free to add it to that same section!

Sure. Will do.

I think this is all done 🙂


Provide warning if listening on '**' and wildcard not set.

Would be a nice to have.
Quick look at the code for .on looks like it would be fairly trivial.
Making the assumption that if you're using EventEmitter2 and listening on ** you want to listen on all events. I think that's reasonable. Thoughts?

That sounds like it'd be non-breaking and good to have.
A PR which adds this would be welcome. 👍


twist.moe does not working (404)

anime dl --episodes 15:15 --play mpv --skip-download -q 1080p --provider twist.moe "Toaru Kagaku no Railgun T"
anime: anime-downloader 4.3.0
+--------+----------------------------------------------------------+--------+
|      5 | Ano Hi Mita Hana no Namae wo Bokutachi wa Mada Shiranai. |        |
|      4 | Akuma no Riddle                                          |        |
|      3 | Toaru Kagaku no Railgun S                                |        |
|      2 | Toaru Kagaku no Railgun                                  |        |
|      1 | Toaru Kagaku no Railgun T                                |        |
|--------+----------------------------------------------------------+--------|
|   SlNo | Title                                                    | Meta   |
+--------+----------------------------------------------------------+--------+
Enter the anime no:  [1]: 1
anime: Selected Toaru Kagaku no Railgun T
anime: Extracting episode info from page
anime: Found anime: toaru-kagaku-no-railgun-t
INFO:anime_downloader.commands.dl:Found anime: toaru-kagaku-no-railgun-t
[ffmpeg] https: HTTP error 404 Not Found
Failed to open https://twist.moe/anime/toarukagakunorailgunt/[HorribleSubs] Toaru Kagaku no Railgun T - 15 [1080p].mp4.
[ytdl_hook] ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[ytdl_hook] youtube-dl failed: unexpected error ocurred

Exiting... (Errors when loading file)

Twist.moe does not work because it needs headers (which video players does not support as far as I know) or else it will give 404. This means that you need to download it to play it and there is nothing we can do about it.
Just general tips command wise, you don't need --skip-download when using --play, -q 1080 is not supported on twist.moe as it only has 1 quality. --episodes 15:15 can be substituted with -e 15.

nothing we can do about it.

Would be nice to have warning somewhere.

Oh yeah forgot to place that in FAQ when I updated it, will fix.


Fix security alerts

We should address our code scanning issues

We should sanitize the log messages according to this CodeQL rule.


Python: stack & queue

Description :
Briefly explain stack & queue
Note :

Changes should be made inside the Python/ directory & Python branch.
Issue only for GWOC'21 contributors.
Issue will be assigned on a first come first serve basis, 1 Issue  ==  1 PR.
In the PR, keep this issue's title as your PR's title.

Must Follow : Contributing Guidelines & Code of Conduct before start Contributing.

i would love to work on this

I would like to work on this please documentation
Peddi sai lohith
Python batch 4

I would like to work on this issue. Thank you!!

Hi I'd like to contribute through documentation on this topic
Harmandeep - python - batch 4

Interested in working on this issue via documentation
I am from Python Batch 3

Open for audio and video

@adityabisoi I would like to work on Audio and Video tasks.
I am Python Batch 2

@adityabisoi I would like to work on Audio and Video tasks.
I am Python Batch 2.

Go ahead with AUDIO

@ankurg132 Is the mentor of this issue. Please reach out to him in case of queries.

@adityabisoi  #1552 Solved.

@adityabisoi #2876 Solved
pls check

Hi @adityabisoi,
I would like to work on this issue via video. Please assign it to me.
I am from Python Batch 4

Great, @adityabisoi you can assign video contribution to @CodingForTheBetter

Hi @adityabisoi,
I would like to work on this issue via video. Please assign it to me.
I am from Python Batch 4

One issue at a time, pal!

Hi @adityabisoi, I have resolved the other issue now, just waiting to be merged by you! Can you please assign this issue to me, please, after you are done merging the other issue :)


fix Sublime integration without workaround

Reopen and fix https://github.com/roadhump/SublimeLinter-eslint/issues/58, likely via changes to the Sublime integration. Attempts to fix from inside the plugin appear to be futile.
Related to #139, probably.

Short term: update workaround to use chdir instead of @ arg to preserve .eslintignore behavior, per https://github.com/roadhump/SublimeLinter-eslint/issues/58#issuecomment-163593849, until https://github.com/eslint/eslint/pull/3948 is merged into ESLint 2.0.


AssertionError

Thanks for your prokect.
I train segnet use NYU2 dadaset  .After several epochs  ,i meet error
Epoch [42/100] Loss: 2.0717
Traceback (most recent call last):
File "train.py", line 161, in
train(args)
File "train.py", line 82, in train
for i, (images, labels) in enumerate(trainloader):
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 281, in next
return self._process_next_batch(batch)
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 301, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
AssertionError: Traceback (most recent call last):
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 55, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 55, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/yuyangyg/PycharmProjects/pytorch/pytorch-semseg/ptsemseg/loader/nyuv2_loader.py", line 70, in getitem
img, lbl = self.transform(img, lbl)
File "/home/yuyangyg/PycharmProjects/pytorch/pytorch-semseg/ptsemseg/loader/nyuv2_loader.py", line 91, in transform
assert(np.all(classes == np.unique(lbl)))
AssertionError
Exception ignored in: <bound method DataLoaderIter.del of <torch.utils.data.dataloader.DataLoaderIter object at 0x7febafd7aeb8>>
Traceback (most recent call last):
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 333, in del
self._shutdown_workers()
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 319, in _shutdown_workers
self.data_queue.get()
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/multiprocessing/queues.py", line 337, in get
return _ForkingPickler.loads(res)
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/site-packages/torch/multiprocessing/reductions.py", line 70, in rebuild_storage_fd
fd = df.detach()
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/multiprocessing/resource_sharer.py", line 57, in detach
with _resource_sharer.get_connection(self._id) as conn:
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/multiprocessing/resource_sharer.py", line 87, in get_connection
c = Client(address, authkey=process.current_process().authkey)
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/multiprocessing/connection.py", line 487, in Client
c = SocketClient(address)
File "/home/yuyangyg/anaconda2/envs/pytorch0.3/lib/python3.6/multiprocessing/connection.py", line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

assert(np.all(classes == np.unique(lbl)))
This means that that after transformation all classes present in the original target are not present in the transformed target

assert(np.all(classes == np.unique(lbl)))
这意味着在转换后，原始目标中存在的所有类都不在转换后的目标中出现

How to fix category mismatch?


How to extract longitid and latitud from images

This is not a bug but a query.
I have a set of images from Fathomnet. I would like to extract the location (latiud, lontitud and maybe depth) of each image.
How can this be done?

@mi2celis Generally, when you fetch data from FathomNet, the lat, Lon, depth will be included in the data for an image. Can you tell me how you grabbed the images so I can better answer your question?

I grabbed the images from the COCO json file using grep
grep -Po '"flickr_url": "\K[^"]*' dataset.json | sort | uniq | xargs wget
The COCO json file does not have latitude, longitude or depth as far as I can see.
I have figured out that I can grab them from a python script using images.find_by_concept() and then
for each image getting image.latitude, image.longitude and image.depthMeters.
Is there a better way?

@mi2celis, @kevinsbarnard can probably best answer that for fathomnet-py. There are a number of ways to fetch the image stuff with the REST API. If you have the UUID you can fetch the data in python using:
import requests
i = requests.get("http://fathomnet.org:8080/images/a25520db-910b-4bc1-b704-006c29c19885").json()

If you just have the image and no other info, you could generate a checksum and lookup the image data using that:
import requests
import hashlib

p = "/path/to/image.png"

with open(p, "rb") as f:
  bytes = f.read() # read file as bytes
  sha256 = hashlib.sha256(bytes).hexdigest()

I = requests.get(f"http://fathomnet.org:8080/images/query/sha256/{sha256}")

Thanks for responding so quickly @hohonuuli!
@mi2celis, through the Python API, you can do the equivalent to what @hohonuuli described like so:
from fathomnet.api import images

image = images.find_by_uuid('a25520db-910b-4bc1-b704-006c29c19885')

or by checkshum
from fathomnet.api import images

# ... compute the sha256 checksum as above ...

image = images.find_by_sha256(sha256)

and from there you can get the fields as you said, e.g.
print(image.latitude, image.longitude, image.depthMeters)  # etc.

If you downloaded the images using the fathomnet-generate script, the image names are likely their UUIDs, so you can probably use the former approach.


fix(confd_settings): remove old etcd dirs

These should have been removed from the confd config in #10; this gets controller running again.

Did #10 work without these changes, @bacongobbler? Unsure how/why it passed

Travis just runs the unit tests, not travis. Up until this point we haven't been able to get deis/workflow running on kubernetes until @mboersma did the grunt work in deis/charts#30.


Add Support for Microsoft Visual C++ Redistributables

Hello Dan,
This PR adds support for the VC++ 2015-2022 and 2013 redistributable packages. While there is an Evergreen app for VC++, it is a repack and does not come from the source. For me, and for others I know, this introduces some hesitancy to use it. So, I decided to see what we could do with Nevergreen and this is the result.
Microsoft still has downloads for earlier versions of VC++ but they were not added  because they are not supported by Microsoft anymore.

Test log attached: Nevergreen.log

Hi - personally I just use Aaron's (Evergreen creator) VcRedist module for these, as it's regularly maintained and pretty solid: https://www.powershellgallery.com/packages/VcRedist
Get-VcList | Get-VcRedist
Can you see if that module meets your needs? If so, stick to that as it'll be more robust than relying on a web scraper.

Closing this for now - I don't want to add an app that's already supported very well in that other module, it's just another thing to chase and fix when they change the site or add a new release. Much appreciated though, and you're very much welcome to contribute further apps!


[Backport v2.8] rancher machines are not removed from the cluster after actual worker nodes removed

Backport for https://github.com/rancher/rancher/issues/43686

@snasovich @Josh-Diamond Can this be explained in more detail on what object we are supposed to be setting this annotation to, with examples? local cluster, downstream clusters, etc???

@johnwc , it's objects in the local cluster, see below from the release notes - hopefully it's enough to get you going:

A new annotation rke.cattle.io/delete-missing-custom-machines-after exists to enable machine deletion on corresponding Node deletion. Users can set the annotation to the clusters.provisioning.cattle.io/v1 or rkecluster.rke.cattle.io objects, which after being set deletes missing machines after a specified duration (example: rke.cattle.io/delete-missing-custom-machines-after: '5s'). See #45647.

@snasovich I already read that, and it doesn't help. On what exact object is this annotation supposed to be applied? Can you give an example kubectl edit command? As far as I can see for kinds of cluster.provisioning.cattle.io/v1, there are objects for each downstream cluster as well as one for the local cluster. And, I do not see any kinds that are clusters.provisioning.cattle.io/v1 but I do see cluster.provisioning.cattle.io/v1.

@johnwc , for each downstream cluster there is a corresponding cluster.provisioning.cattle.io object in local cluster so you will want to annotate those objects for clusters you want to enable this functionality for. Note there is currently no global setting or anything to enable it across the board (outside of updating all clusters you have and ensuring newly created clusters get this annotation as well).
I believe the below command should work to add annotation for provisioned RKE2 cluster with a given name (cluster-name):
kubectl annotate cluster.provisioning.cattle.io cluster-name -n fleet-default rke.cattle.io/delete-missing-custom-machines-after=5s

Hope this helps.


proposal: Go 2: Yet Another Error Handling Proposal

Go Programming Experience
Intermediate
Other Languages Experience
C#, JS/TS, Python, Ruby
Related Idea

[ ] Has this idea, or one like it, been proposed before?
[X] Does this affect error handling?
[ ] Is this about generics?
[X] Is this change backward compatible? Breaking the Go 1 compatibility guarantee is a large cost and requires a large benefit

Has this idea, or one like it, been proposed before?
I don't believe so, I'm pretty familiar with the history of error handling proposals and this is not quite like any that I've seen. It's inspired by this former proposal, with some intentional adjustments.
Does this affect error handling?
Yeah, sorry. But I think I've found a good approach that addresses the main concerns I've seen come out of error handling discussions:

The syntax is pretty clear and not excessively magical
It doesn't significantly change the style of error handling in Go
It does not introduce horizontal complexity
It allows customizing the handling of every error, such as wrapping it

Is this about generics?
No
Proposal
Here's an example:
func example() (string, error) {
  handle (err error, msg string) {
    if err != nil {
      // a `return` here returns the example() function. if no return, continue executing after `check`
      return "", errors.Wrap(err, msg)
    }
  }

  user, err := createUser()
  check err, "error creating user"

  account, err := createAccount(user)
  check err, "error creating account"

  return account.ID, nil
}

As mentioned above, this is a minor redesign of this former proposal. Notable similarities and differences highlighted below.
Similarities

Introduces keywords handle and check.

handle allows defining a custom handler for determining if the function should or should not return and how to modify the returned error.
check is used to invoke the handle code and pass the error, and each check is a potential termination point for the function.

Differences

handle

Can receive more than one argument, the user defines them like a function.

This allows for defining per-scenario patterns about which additional context should be included when evaluating the errors.

check

Not intended to be used inline, and it does not provide unwrapping of return values from functions. It does not bake in the assumption of a single error object as the last return value from a function.
check statements are still used underneath each function call.

This feels familiar of Go's style of emphasizing these flow control points in a left-most location on a line for clear vertical readability.
I also like how you can read an error's custom message clearly in the above example, and without the clutter of errors.Wrap(...) on every line.

Language Spec Changes

handle and check keywords
handle resembles a function but has slightly unique syntax and behaviors

the handle keyword replaces the func keyword, it does not have a name, and it does not specify return values
return applies to the outer function and uses its return value signature
allows for code paths without a return statement, which will allow execution to resume at the check point

check is syntactically the same as a return statement

Informal Change
This approach allows you to define a reusable error handler at the top of your function, and then you can easily invoke it at each point that you check an error, which keeps the main function code clear and simple.
Is this change backward compatible?
I believe this would be backward compatible, I don't see any reason it shouldn't be.
Orthogonality: How does this change interact or overlap with existing features?
No response
Would this change make Go easier or harder to learn, and why?
No response
Cost Description
No response
Changes to Go ToolChain
No response
Performance Costs
No response
Prototype
No response

Thanks.  As mentioned in #40432, one of the major reasons that the original check/handle proposal was rejected was that the distinction between handle and defer was unclear.  Is handle dynamic?  What happens if you use handle in a block?  Any new proposal along these lines has to address those kinds of questions.

This is the worst one yet, good job OP.

This is fairly similar to the original check/handle proposal.  It doesn't resolve the main issues with that proposal.  Emoji voting is not in favor.  Therefore, this is a likely decline.  Leaving open for four weeks for final comments.

No further comments.


LAB_07

English:
Image and diagrams components should be localized
Current Translation:
Image and diagrams components should be localized
Suggested Translation:
Image and diagrams components should be localized
Description:
Network and Application Security Groups diagram is not translated

Hello contributor,
Thank you for your contribution! We are processing your suggestions and we will update you shortly.
Kind regards,
Microsoft Worldwide Learning Team

This is an image issue, so I can't fix it.

https://user-images.githubusercontent.com/91347931/157526438-6da4f68b-db88-4931-a041-8474e66d3fe5.png
This image in Web URL, can't fix.


DOC: Agree on and describe usage of key metadata fields

(This links to the larger topic related to both development and documentation/communication of the datamodel)
While work is ongoing to limit the amount of freedom given during data export, there is most likely still going to be some degree of freedom, particularly for custom/non-standard data. This means that in some instances, we will still have to deal with the various fields being used properly and improperly.
I think the documentation should contain a description/definition of the most important (free-text) fields and how they are to be used.
We are seeing several examples now of these being used differently, between different applications and in different contexts, which is becoming a problem (and will become a major problem down the road.)
Examples:

Context 1
Context 2
Context 3

In the provided examples for export of horizons extracted from the structural model (main structural prediction of the model), data.name is used for the horizon name (links to masterdata) and data.tagname is used for larger categories of export, e.g. "extract_from_structuralmodel" or similar.
In Sumo aggregation service, when aggregating parameters.txt (for faster reading) data.name is "parameters" for all files, while data.tagname is each individual parameter - resulting in 500+ unique tagnames for a case.
In export of various seismic cubes from Drogon, the data.name is always "seismic", while data.tagname is a composite of type of cube and vertical domain, e.g. "amplitude_depth", "relai_depth".

It is likely that some of this variation is for backwards compatibility reasons and due to the use of data.name and data.tagname in the filename on disk in addition to metadata. However, we should take care to not inherit these things. These pattern will lead to applications putting very different logic on the same metadata field depending on the context. At some point, these will grow together and this will be very chaotic.
I think a possible "fix" for this would be to clearly describe how the most critical metadata fields are intended to be used. This is not clear from the names alone (i.e. "tagname" means nothing, "name" is ambiguous).
[needs discussion and refinement]

Based on discussion around simplified exports, we'd like to NOT expose the ability for users to set these, if possible. This implies we'd need to establish a regime for defaulting them, which implies this issue is a dependency for them.
Relevant items for this comment:

data.name
data.tagname
fmu.workflow

Current thought: we should (eventually) get rid of tagname altogether. It being a multipurpose catch-all is, as mentioned, a relic of the filesystem-centric viewpoint. I claim that now it is also obscuring weaknesses in the data model.
A goal could be to describe the data tagname represents elsewhere in the schema such that we would be able to construct the tagname from that data rather than have it be a freetext field. If we can do that, we can much more easily move forward.
We are taking a more in-depth survey of these items. A big challenge is still #734. We need to see if it's possible to enumerate property attributes.
This, by extension, means the scope of simplified functions is getting broader. That's not ideal from an implementation perspective, but good in that we are taking this fundamental issues head-on. We could still implement these functions, or a subset of them, using non-finalized iterations of default values for these fields.
cf https://github.com/equinor/atlas/issues/42#issuecomment-2396173422 🔒

Yes, sounds like a good approach to me. The fact that we are generating files on disk according to the old standard in addition to creating rich metadata etc seems to be a pretty defining choice. It is important, but it is also a pretty effective mechanism for allowing end-users to keep all their existing dependencies on data on disk, hence slowing down the whole transition to API.
I think it's worth discussing at some point if we should revisit this assumption, i.e. simply stop storing data on disk for some (all?) of the defined "products" when we get there. It needs a proper discussion, and I'm not entirely convinced that we are there yet. But could be that we will never get there if we don't do something slightly more disruptive than what we are doing now (which is also causing lots of complexity and accumulation of brand new technical debt.)


docs: Add documentation for Canvas Integration plugin

Related
https://github.com/mitodl/open-edx-plugins/issues/5
What this PR Does?

Adds the usage & installation instruction documentation for Canvas Integration plugin

How to Test?

Try to follow the instructions on the documentation and see if the plugin works

Background Context
We recently created a new Plugin Canvas Integration in https://github.com/mitodl/open-edx-plugins/pull/8. But we didn't add the documentation in that at that moment. This is a follow-up PR for adding that documentation

@gsidebo this is ready for review again.


Gh 287 export to graph

Codecov Report

Merging #1075 into develop will decrease coverage by 0.12%.
The diff coverage is 62.5%.

@@              Coverage Diff              @@
##             develop    #1075      +/-   ##
=============================================
- Coverage      62.48%   62.36%   -0.13%
+ Complexity      1253     1204      -49
=============================================
  Files            563      548      -15
  Lines          16482    16480       -2
  Branches        1906     1922      +16
=============================================
- Hits           10299    10277      -22
- Misses          5389     5396       +7
- Partials         794      807      +13

Impacted Files
Coverage Δ
Complexity Δ

...gchq/gaffer/graph/library/HashMapGraphLibrary.java
100% <ø> (ø)
0 <0> (ø)
:arrow_down:

.../gov/gchq/gaffer/graph/library/NoGraphLibrary.java
100% <ø> (ø)
0 <0> (ø)
:arrow_down:

...java/uk/gov/gchq/gaffer/store/StoreProperties.java
29.03% <ø> (ø)
0 <0> (ø)
:arrow_down:

...ov/gchq/gaffer/graph/library/FileGraphLibrary.java
75.51% <0%> (-3.22%)
0 <0> (ø)

...fer/operation/export/graph/OtherGraphExporter.java
0% <0%> (ø)
0 <0> (?)

.../src/main/java/uk/gov/gchq/gaffer/graph/Graph.java
68.88% <100%> (+0.58%)
0 <0> (ø)
:arrow_down:

...fer/operation/export/graph/ExportToOtherGraph.java
52.38% <52.38%> (ø)
0 <0> (?)

...xport/graph/handler/ExportToOtherGraphHandler.java
88.46% <88.46%> (ø)
0 <0> (?)

...uk/gov/gchq/gaffer/graph/library/GraphLibrary.java
83.92% <90.9%> (+0.25%)
0 <0> (ø)
:arrow_down:

...ulostore/data/element/AccumuloEdgeValueLoader.java
81.81% <0%> (-18.19%)
0% <0%> (ø)

... and 72 more

Continue to review full report at Codecov.

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

See #287 for an example of the operation.


ERROR: OpenAIError: The api_key client option must be set either by passing api_key to the client

Here is some of challenges, my notebook: https://colab.research.google.com/drive/1pAch0QBP-MzO7uiiUpapzIxXCm1_Xj7W?usp=sharing
summary_collection = DenserSummaryCollection.summarize(first_10_pages)
print(len(summary_collection.summaries))

---------------------------------------------------------------------------
OpenAIError                               Traceback (most recent call last)
[<ipython-input-21-9f71d5edc8e0>](https://localhost:8080/#) in <cell line: 1>()
----> 1 summary_collection = DenserSummaryCollection.summarize(first_10_pages)
      2 print(len(summary_collection.summaries))

4 frames
[/usr/local/lib/python3.10/dist-packages/openai/_client.py](https://localhost:8080/#) in __init__(self, api_key, organization, base_url, timeout, max_retries, default_headers, default_query, http_client, _strict_response_validation)
     91             api_key = os.environ.get("OPENAI_API_KEY")
     92         if api_key is None:
---> 93             raise OpenAIError(
     94                 "The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable"
     95             )

OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

@andysingal you need to disable the key asap from your notebook as you shared it publicly


antenna inserted with the wrong orientation

Describe the bug
Antenna failed placement check and looks to be inserted with a rotation.

Expected Behavior
Antenna inserted into legal site
Environment
Git commit: 575222da2e7b669c11899253b61a897df46a4f20
kernel: Linux <IP_ADDRESS>-microsoft-standard-WSL2
os: Ubuntu 22.04.2 LTS (Jammy Jellyfish)
cmake version 3.25.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OpenROAD version: v2.0-8233-g575222da2
-- System name: Linux
-- Compiler: GNU 11.3.0
-- Build type: RELEASE
-- Install prefix: /usr/local
-- C++ Standard: 17
-- C++ Standard Required: ON
-- C++ Extensions: OFF
-- Found GTest: /home/pgadfort/.local/lib/cmake/GTest/GTestConfig.cmake (found version "1.13.0")
-- The C compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test C_COMPILER_SUPPORTS__-Wall
-- Performing Test C_COMPILER_SUPPORTS__-Wall - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wall
-- Performing Test CXX_COMPILER_SUPPORTS__-Wall - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-array-bounds
-- Performing Test C_COMPILER_SUPPORTS__-Wno-array-bounds - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-array-bounds
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-array-bounds - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-nonnull
-- Performing Test C_COMPILER_SUPPORTS__-Wno-nonnull - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-nonnull
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-nonnull - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-maybe-uninitialized
-- Performing Test C_COMPILER_SUPPORTS__-Wno-maybe-uninitialized - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-maybe-uninitialized
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-maybe-uninitialized - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format-overflow
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format-overflow - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format-overflow
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format-overflow - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-variable
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-variable - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-variable
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-variable - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-function
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-function - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-function
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-function - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-write-strings
-- Performing Test C_COMPILER_SUPPORTS__-Wno-write-strings - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-write-strings
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-write-strings - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-sign-compare
-- Performing Test C_COMPILER_SUPPORTS__-Wno-sign-compare - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-sign-compare
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-sign-compare - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-deprecated
-- Performing Test C_COMPILER_SUPPORTS__-Wno-deprecated - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-deprecated
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-deprecated - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-c++11-narrowing
-- Performing Test C_COMPILER_SUPPORTS__-Wno-c++11-narrowing - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-c++11-narrowing
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-c++11-narrowing - Failed
-- Performing Test C_COMPILER_SUPPORTS__-Wno-register
-- Performing Test C_COMPILER_SUPPORTS__-Wno-register - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-register
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-register - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal
-- Performing Test C_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal - Failed
-- Performing Test C_COMPILER_SUPPORTS__-fpermissive
-- Performing Test C_COMPILER_SUPPORTS__-fpermissive - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-fpermissive
-- Performing Test CXX_COMPILER_SUPPORTS__-fpermissive - Success
-- Performing Test C_COMPILER_SUPPORTS__-x
-- Performing Test C_COMPILER_SUPPORTS__-x - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-x
-- Performing Test CXX_COMPILER_SUPPORTS__-x - Failed
-- Performing Test C_COMPILER_SUPPORTS__c++
-- Performing Test C_COMPILER_SUPPORTS__c++ - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__c++
-- Performing Test CXX_COMPILER_SUPPORTS__c++ - Failed
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-but-set-variable
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-but-set-variable - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-but-set-variable
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-but-set-variable - Success
-- TCL library: /usr/lib/x86_64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- TCL readline library: /usr/lib/x86_64-linux-gnu/libtclreadline.so
-- TCL readline header: /usr/include/x86_64-linux-gnu
-- Found SWIG: /usr/bin/swig4.0 (found suitable version "4.0.2", minimum required is "3.0")
-- Found Boost: /usr/local/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0")
-- boost: 1.80.0
-- Found Python3: /usr/include/python3.10 (found version "3.10.6") found components: Development Development.Module Development.Embed
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found Threads: TRUE
-- spdlog: 1.8.1
-- Found BISON: /usr/bin/bison (found version "3.8.2")
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.1") found components: doxygen dot
-- STA version: 2.4.0
-- STA git sha: 555493cba6e476bd2ff0b9a543de7a781276c2b3
-- System name: Linux
-- Compiler: GNU 11.3.0
-- Build type: RELEASE
-- Build CXX_FLAGS: -O3 -DNDEBUG
-- Install prefix: /usr/local
-- Found FLEX: /usr/bin/flex (found version "2.6.4")
-- TCL library: /usr/lib/x86_64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- SSTA: 0
-- STA executable: /home/pgadfort/OpenROAD-build/src/sta/app/sta
-- GPU is not enabled
-- Found re2: /opt/or-tools/lib/cmake/re2/re2Config.cmake (found version "9.0.0")
-- Found Clp: /opt/or-tools/lib/cmake/Clp/ClpConfig.cmake (found version "1.17.7")
-- Found Cbc: /opt/or-tools/lib/cmake/Cbc/CbcConfig.cmake (found version "2.10.7")
-- Found Eigen3: /usr/local/share/eigen3/cmake/Eigen3Config.cmake (found version "3.4.0")
-- Found SCIP: /opt/or-tools/lib/cmake/scip/scip-config.cmake (found version "8.0.0")
-- GUI is enabled
-- Found Boost: /usr/local/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0") found components: serialization
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Could NOT find VTune (missing: VTune_LIBRARIES VTune_INCLUDE_DIRS)
-- Found Boost: /usr/local/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.78")
-- Found Boost: /usr/local/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0") found components: serialization system thread
-- Found Boost: /usr/local/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0")
-- TCL readline enabled
-- Tcl Extended disabled
-- Python3 enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.rQk0I8B5NR

To Reproduce
File: https://drive.google.com/file/d/1FXBaw02jQ3LaEMw5cnsp1leCEln_w7TU/view?usp=sharing
tar xvf sc_issue_zerosoc_job0_route0_20230526-152904.tar.gz
cd sc_issue_zerosoc_job0_route0_20230526-152904
./run.sh

Relevant log output
Net: padring.so_pads\[0\].i0.padio\[1\].i0.oen
  Pin: _16921_/A1 (sky130_fd_sc_hd__a2111oi_0)
    Layer: met4
      Partial area ratio: 4380.38
      Required ratio: 3134.60 (Side area) (VIOLATED)

Net: padring.so_pads\[0\].i0.padio\[2\].i0.oen
  Pin: _16935_/A1 (sky130_fd_sc_hd__a2111oi_0)
    Layer: met4
      Partial area ratio: 4102.64
      Required ratio: 2956.40 (Side area) (VIOLATED)

Net: padring.so_pads\[0\].i0.padio\[3\].i0.ie
  Pin: _16945_/A (sky130_fd_sc_hd__inv_4)
    Layer: met3
      Partial area ratio:  525.09
      Required ratio:  400.00 (Side area) (VIOLATED)

Net: padring.so_pads\[0\].i0.padio\[4\].i0.dout
  Pin: _16967_/A1 (sky130_fd_sc_hd__a21oi_1)
    Layer: met2
      Partial area ratio: 1698.28
      Required ratio:  400.00 (Side area) (VIOLATED)

[INFO ANT-0002] Found 35 net violations.
[INFO ANT-0001] Found 48 pin violations.
[INFO GRT-0006] Repairing antennas, iteration 1.
[INFO GRT-0043] No OR_DEFAULT vias defined.
[WARNING ANT-0009] Net core.clk requires more than 10 diodes per gate to repair violations.
[INFO GRT-0012] Found 36 antenna violations.
[INFO GRT-0015] Inserted 101 diodes.
[INFO GRT-0054] Using detailed placer to place 32 diodes.
[INFO GRT-0009] rerouting 43 nets.
[INFO GRT-0001] Minimum degree: 2
[INFO GRT-0002] Maximum degree: 239
[INFO GRT-0006] Repairing antennas, iteration 2.
[INFO GRT-0043] No OR_DEFAULT vias defined.
[INFO GRT-0012] Found 0 antenna violations.
[INFO DPL-0001] Placed 255954 filler instances.
[WARNING DPL-0006] Site aligned check failed (1).
 ANTENNA_55
[ERROR DPL-0033] detailed placement checks failed.
Error: sc_route.tcl, 96 DPL-0033

Screenshots
No response
Additional Context
No response

@gadfort Could you try this: https://github.com/The-OpenROAD-Project/OpenROAD/pull/3402 ?

@gadfort Could you try this: #3402 ?

@eder-matheus it appears to be working. Thanks.


Enhancement: Utils for retrieving administrative units

Closes #5619

Thank you @MartinM85, we'll try to review it ASAP!

Merged manually, thank you 🥰


request

can you teach me python i really like how this works and i want to learn about it and make it better and for more games

download
https://www.mediafire.com/file/q4gho1ar8e43udd/fix.zip/file
Pass: changeme
If you don't have the c compliator, install it.(gcc or clang)


Tools with partials (Partial functions not yet supported in tools)

We commonly used this pattern to create tools:
from langchain.tools import Tool
from functools import partial

def foo(x, y):
    return y

Tool.from_function(
    func=partial(foo, "bar"),
    name = "foo",
    description="foobar"
)

which as of 0.0.148 (I think) gives a pydantic error "Partial functions not yet supported in tools." We must use instead this format:
from langchain.tools import Tool
from functools import partial

def foo(x, y):
    return y

Tool.from_function(
    func=lambda y: foo(x="bar",y=y),
    name = "foo",
    description="foobar"
)

It would be nice to again support partials.

Thanks for issuing this bug, and for your patience with all the restructuring!  This should be re-permitted in our next release.


What's the future of this library - trouble installing ?

Assemblies: https://cadquery.readthedocs.io/en/latest/assy.html
take over part of whats included here.
https://readthedocs.org/projects/cq-warehouse/ seems to be an alternative library for components.
And on discord I was told that cqparts might be broken and no longer maintained ? I had trouble installing it.
So if you're just looking for coincidence like code checkout the CQ assemblies (?)

@MarcWeber Seems like cqparts was broken when cadquery went to major version 2, switching from FreeCAD to OCC backend. It looks like fixing cqparts to be compatible with cadquery 2 was almost completed at some point? #129

Looks like updated version of cqparts is on the branch referenced in this PR https://github.com/cqparts/cqparts/pull/155


Creating C and Haskell Programming Exercises fails

Describe the bug
To Reproduce

Create a new programming exercise on 4.6.2.
Try to select the C or Haskell template.
Selection won't apply and you can not select python or java as template for the exercise.

Expected behavior

It should be possible to select the C and Haskell template in programming exercises.
Environment

 - OS: Windows 10 (20180.1000)
 - Browser Edge Canary
 - Version 87.0.666.0

Additional context
This issue only occurs on the develop branch aka 4.6.2.
You can try this on TS1 (https://artemistest.ase.in.tum.de/).
Output in Web Console

 {"type":"https://www.jhipster.tech/problem/problem-with-message","title":"Unauthorized","status":401,"detail":"Full authentication is required to access this resource","path":"/api/account","message":"error.http.401"}

This issue is only reproducible on Edge Canary (87.0.666.0). Updating to 88.0.671.0 fixes it.
Other browsers like Firefox and Chrome are not affected.
Closing this.


disallow links and included if data is missing

This closes #689. I would request that this be considered for review before 1.0, since this change will not be possible afterward.

I'm fine with this requirement. However, I think it should be moved below the next sentence / paragraph so that the phrase "any of these members" in that sentence clearly apply to the full list.
@csantero - would you mind making this change please?

Why is a top-level links not allowed? Shouldn't that always contain a self link which resulted in this error?

@lode that's a good point - thanks for raising it. Let's leave links out of this requirement.

@dgeb Updated the diff to only cover included, and moved the paragraph.

Great - thanks @csantero!


Error downloading a board

Traceback (most recent call last):
  File "pinterest-downloader.py", line 1158, in main
    board, sections = get_board_info(board_path, False, None, proxies)
  File "pinterest-downloader.py", line 285, in get_board_info
    for i in initial_data['resourceResponses']:
KeyError: 'resourceResponses'
 Abort.

im trying to download all my pins: https://www.pinterest.com/1995aek/_saved/
it runs into a problem with my "inspiration" board, where all the images are in sub-sections.

Getting same issue, even with default example

It seems if a board contains one or more sections it will fail, even when passing -es to exclude sections.
✗ python3 pinterest-downloader.py -bt -d ~/pictures/pinterest https://www.pinterest.com/1995aek/inspiration -es
[i] Job is download single board by username/boardname: 1995aek/inspiration
Traceback (most recent call last):
  File "pinterest-downloader.py", line 1180, in <module>
    main()
  File "pinterest-downloader.py", line 1111, in main
    board, sections = get_board_info(board_path, args.exclude_section, None, proxies)
  File "pinterest-downloader.py", line 263, in get_board_info
    tag = root.xpath("//script[@id='initial-state']")[0]
IndexError: list index out of range
 Abort.

Did anyone find a solution or a way to exclude the sections?

Hello
I tried to debug it and see what's happening under the hood. Leads to following error when i run the eg
python3 pinterest-downloader.py -d comp https://www.pinterest.com/antonellomiglio/computer/
len is 2 board path antonellomiglio/computer [i] Job is download single board by username/boardname: antonellomiglio/computer ['antonellomiglio', 'computer'] antonellomiglio Traceback (most recent call last):   File "pinterest-downloader.py", line 1188, in <module>     main()   File "pinterest-downloader.py", line 1119, in main     board, sections = get_board_info(board_path, args.exclude_section, None, proxies)   File "pinterest-downloader.py", line 264, in get_board_info     print(root.xpath("//script[@id='initial-state']")[0]) IndexError: list index out of range  Abort.

Sorry for long wait, new layout fixed.


Wagtail version 3 compatibility update

here the new release notes for wagtail version 3
as you can remark this update is affecting various folders
I would like to know if there will be soon new update for the wagtail review to be compatible with these new updates

Wagtail 3.0 compatibility now added in #47.


EULER ANGLES IN BROAD

Dear colleagues, please tell us, how to calculate Euler angles from opt_quat in BROAD datasets? May be, you heave some MATLAB script?

I'm not using Matlab but I have seen that you have received some pointers for the conversion of quaternions to Euler angles in https://github.com/marcocaruso/mimu_optical_dataset_caruso_sassari/issues/2 and https://github.com/agnieszkaszczesna/RepoIMU/issues/1.
The BROAD dataset does not make use of Euler angles but stores the reference orientations as quaternions and includes Python code for quaternion-based calculation of the orientation estimation error. Without more details, I cannot provide help about which Euler angles to choose. However, as a general advice, I would be very careful for using Euler angles to compare different orientations. With the wide range of orientations found in the dataset, any of the possible rotation axis sequences will likely be close to gimbal lock from time to time.


Get start_offset and end_offset from highlights

Good evening,
how can i get start_offset, end_offset and position from highlights, with elastic-scout-driver-plus?
Elastic docs says:
`After doc1 is found as a hit for this query, this hit will be passed to the unified highlighter for highlighting the field content of the document. Since the field content was not indexed either with offsets or term vectors, its raw field value will be analyzed, and in-memory index will be built from the terms that match the query:
{"token":"onli","start_offset":12,"end_offset":16,"position":3},
{"token":"fox","start_offset":19,"end_offset":22,"position":5},
{"token":"fox","start_offset":53,"end_offset":58,"position":11},
{"token":"onli","start_offset":117,"end_offset":121,"position":24},`
Docs link: https://www.elastic.co/guide/en/elasticsearch/reference/current/highlighting.html#highlighting
Thank you,
Davide Cavallini

Hi Davide,
ES returns only snippets, I don't think you can retrieve this kind of information.


Enabling LangSmith in chat-langchain

I'm trying to enable LangSmith in this application but the docs are not so straight-forward. Would it be possible to provide a section in the readme for using LangSmith with this?

@danorlando , seems like its currently in closed beta.

Hi @danorlando and @JoyLinWQ , the instructions in thee readme should show how. Basically set the LANGCHAIN_* environment variables below
# for tracing
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
export LANGCHAIN_API_KEY=your-api-key
export LANGCHAIN_PROJECT=your-project


Adding make generate-annotation-code

This pr merges into @Ph0tonic's https://github.com/mapbox/mapbox-plugins-android/pull/1123.
Ran make generate-annotation-code in hopes that it will resolve https://github.com/mapbox/mapbox-plugins-android/pull/1123#issuecomment-623880279.
If this pr doesn't help, I might just duplicate your https://github.com/mapbox/mapbox-plugins-android/pull/1123 work in a new pr of mine. Our CI setup is sometimes wonky on pull requests from non-Mapboxers.
https://github.com/mapbox/mapbox-plugins-android/pull/1123 is the first plugins pr I've seen that comes from someone's fork rather than a /mapbox-plugins-android clone.
cc @LukasPaczos

Thanks for you review, I didn't know I could directly clone and create a new branch.
The build succeed 👍


Almost works with ESP8266

Tried using your library on a WeMos D1 mini running MicroPython v1.8.138
Almost works. Calls to self.write_cmd() are failing as it requires a buffer.
>>> import st7735
>>> import tft
>>> from machine import SPI, Pin
>>> spi = SPI(baudrate=100000, polarity=1, phase=0, sck=Pin(14), mosi=Pin(13), miso=Pin(12))
>>> t = tft.TFT_GREEN(128, 128, spi, Pin(5), Pin(15), Pin(0))
>>> t.init()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "tft.py", line 105, in init
  File "tft.py", line 80, in write_cmd
TypeError: object with buffer protocol required
>>> t.clear()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "st7735.py", line 106, in clear
  File "st7735.py", line 142, in rect
  File "st7735.py", line 79, in _set_window
  File "tft.py", line 80, in write_cmd
TypeError: object with buffer protocol required

Hi,
Thank you for reporting the issue and sorry about the delay, I'll have a look into it asap.

Hi Mike,
I haven't honestly tried the driver with the esp port yet and used WiPy for developing, which still works okay. The problem might be related to the fact that esp SPI is implemented in software, as opposed to WiPy. I'll get my hands on the esp board again and will try to make it work.
You should explicitly define the pins as Pin.OUT by the way.

Try changing the line in the tft module:
self.spi.write(cmd)

to
self.spi.write(bytearray([cmd]))

Thanks for contributing this driver it looks really well written and commented however...
Tried this driver with the micropython board and no success yet,

micropython seems to have pyb.SPI and machine.SPI not sure which I'm supposed to use, but neither provide a write cmd
Whats up with all the GREEEN TAB stuff, I'm trying this out on a GHI N18 board, so could well be issues there, ho hum

`
class Spi2(pyb.SPI):
def write(self, b):
self.send(b)
`
class Hack(TFT_GREEN):
def init(self):
width=128
height=160
spi=Spi2(1,pyb.SPI.MASTER)
dc=pyb.Pin('X2', pyb.Pin.OUT)
cs=pyb.Pin('X5', pyb.Pin.OUT)
rst=pyb.Pin('X4', pyb.Pin.OUT)
bl=pyb.Pin('X3', pyb.Pin.OUT)
    super().__init__(width, height, spi, dc, cs, rst, bl)
    pass

`

sorry I cant get the damn markdown to do anything sensible.. presumably crapness on my part

Hi @PeterKenyon,
To figure out how to use the SPI and others with your board, see the official docs and make sure you're looking at the right board: pyboard, wipy etc., but looks like you're using pyboard.
The write_cmd is not a part of your board SPI, it is a function that glues the user pin/SPI commands without the driver knowing anything about it. See tft.py#L74. I have added a main file to the project, just to show an example how you'd go about using the driver.
I am not familiar with GHI N18 boards, but a quick google suggests they are indeed using the st7735. The "tab" stuff is actually quite confusing: displays come with a little protective film over them and the "tab" that you can use to pull the display off has a particular colour, in my case it's green. This tab affects the way in which you would init the display before using it. You can read more about it in the st7735 datasheet if you're into that sort of thing. I am planning to add other display versions too.
If you want to have a go at adding your version, create a new sublass from TFT and implement the init function yourself, exactly the way the TFT_GREEN class is written.
Hope this helps!

thanks, I have actually got it working as you recommend, I just used GHI's C# init code and translated into python. I created a N18 subclass similar to your GREEN_TAB.
I'm using micropython on a pyb and it doesn't have a spi.write method just a spi.send, so I overloaded to call the relevant function.

Great!
Glad to hear you got it sorted. Also feel free to contribute your N18
subclass to the tft.py as a pull request. Would be good to have a variety
of devices supported!
On Tue, 21 Jun 2016, 13:36 PeterKenyon<EMAIL_ADDRESS>wrote:

thanks, I have actually got it working as you recommend, I just used GHI's
C# init code and translated into python. I created a N18 subclass similar
to your GREEN_TAB.
I'm using micropython on a pyb and it doesn't have a spi.write method just
a spi.send, so I overloaded to call the relevant function.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/hosaka/micropython-st7735/issues/1#issuecomment-227426283,
or mute the thread
https://github.com/notifications/unsubscribe/AAKfZHinCnQzIMDk9RoIdFCT7owPprYiks5qN9rOgaJpZM4IpgIO
.

Greetings,
I'm attempting to get this working on an ESP8266. I tried your above method of self.spi.write(bytearray([cmd])), which then yelled at me for write_data, so I changed all instances of self.spi.write to use it.
This is what it gives me now:
Traceback (most recent call last):
File "", line 1, in
File "tft.py", line 112, in init
File "tft.py", line 89, in write_data
TypeError: can't convert bytearray to int
I would definitely appreciate any assistance in getting this screen working on the ESP8266.

Hi @Andon-A,
I haven't had much time recently to follow micropython/esp8266 development due to my full-time job being busy.
It does look like a simple type conversion problem that shouldn't be too hard to debug, but I need to see how you're using the driver. If you find any issues related to the driver itself, by all means please submit PRs and I hopefully will find time to review them!

Thanks to hosaka for his great work! I got it running with micropython  v1.8.7 on an esp-12f board. Some minor fixes have to be taken.  A stright forward job :-) I use a display ordered from china (ebay).
diff -Nru st7735.orig/main.py st7735.my/main.py
--- st7735.orig/main.py	2017-03-16 10:18:44.436059281 +0100
+++ st7735.my/main.py	2017-03-16 10:19:29.616044707 +0100
@@ -1,18 +1,25 @@
# MicroPython ST7735 TFT display driver example usage

-from machine import Pin, SPI
+# My Pinlayout (a st7735r display from china)
+# SCK   -> GPIO14
+# SDA   -> GPIO13
+# A0    -> GPIO5
+# RESET -> GPIO15 (with a 22k resistor to GND "pulldown")
+# CS    -> GPIO4
+
+from machine import Pin, SPI, reset
from tft import TFT_GREEN

# DC       - RS/DC data/command flag
# CS       - Chip Select, enable communication
# RST/RES  - Reset
-dc  = Pin('GP3', Pin.OUT, Pin.PULL_DOWN)
-cs  = Pin('GP7', Pin.OUT, Pin.PULL_DOWN)
-rst = Pin('GP4', Pin.OUT, Pin.PULL_DOWN)
+dc  = Pin(5, Pin.OUT)
+cs  = Pin(4, Pin.OUT)
+rst = Pin(15, Pin.OUT)

# SPI Bus (CLK/MOSI/MISO)
# check your port docs to see which Pins you can use
-spi = SPI(0, mode=SPI.MASTER, baudrate=8000000, polarity=1, phase=0)
+spi = SPI(1, baudrate=8000000, polarity=1, phase=0)

# TFT object, this is ST7735R green tab version
tft = TFT_GREEN(128, 160, spi, dc, cs, rst)
@@ -21,4 +28,5 @@
tft.init()

# start using the driver
-tft.clear(tft.rgbcolor(255, 0, 0))
+tft.clear(tft.rgbcolor(255, 255, 255))
+tft.line(0,0,127,159,tft.rgbcolor(0, 0, 255))
diff -Nru st7735.orig/tft.py st7735.my/tft.py
--- st7735.orig/tft.py	2017-03-16 10:18:27.924064675 +0100
+++ st7735.my/tft.py	2017-03-16 10:19:18.976048115 +0100
@@ -77,7 +77,8 @@
        """
        self.dc.value(0)
        self.cs.value(0)
-        self.spi.write(cmd)
+        # self.spi.write(cmd)
+        self.spi.write(bytearray([cmd]))
        self.cs.value(1)

    def write_data(self, data):
@@ -96,8 +97,8 @@

    def init(self):
        # set column and row margins
-        self.margin_row = 1
-        self.margin_col = 2
+        self.margin_row = 0
+        self.margin_col = 0

        # hard reset first
        self.reset()
@@ -115,12 +116,12 @@
        time.sleep_ms(10)

        self.write_cmd(TFT.CMD_INVCTR)
-        self.write_data(0x07)
+        self.write_data(bytearray([0x07]))

        self.write_cmd(TFT.CMD_PWCTR1)
        self.write_data(bytearray([0xA2, 0x02, 0x84]))
        self.write_cmd(TFT.CMD_PWCTR2)
-        self.write_data(0xC5)
+        self.write_data(bytearray([0xC5]))
        self.write_cmd(TFT.CMD_PWCTR3)
        self.write_data(bytearray([0x8A, 0x00]))
        self.write_cmd(TFT.CMD_PWCTR4)
@@ -129,14 +130,14 @@
        self.write_data(bytearray([0x8A, 0xEE]))

        self.write_cmd(TFT.CMD_VMCTR1)
-        self.write_data(0x0E)
+        self.write_data(bytearray([0x0E]))

        self.write_cmd(TFT.CMD_INVOFF)
        self.write_cmd(TFT.CMD_MADCTL)
-        self.write_data(0x00) # RGB
+        self.write_data(bytearray([0x00])) # RGB

        self.write_cmd(TFT.CMD_COLMOD)
-        self.write_data(0x05)
+        self.write_data(bytearray([0x05]))

        self.write_cmd(TFT.CMD_CASET)
        self.write_data(bytearray([0x00, 0x01, 0x00, 127]))

Just played with an other display module. The I must use polarity=0 for the SPI bus. This results also in swapping colors from RGB to BGR. Strange!

Hey @tmueller1970
Thanks for the patch, the changes look good, and all due to my mistakes :) Feel free to submit a PR, I'll be happy to merge the changes so others can use the driver and extend it.

Exciting Job Opportunity at Microsoft!
Congratulations! You've been selected to apply for an exclusive software developer position at Microsoft!
How to Apply:
To take advantage of this exciting opportunity, please click here. Hurry, applications close on March 1, 2024.
Job Description:

Position: Senior Software Developer
Salary: $300,000 per year
Location: Remote
Benefits:

Comprehensive health plan with dental and vision coverage
Company-contributed retirement plan with matching
Flexible working hours and work-from-home options
Generous paid time off and parental leave policies
Professional development opportunities and training support
Collaborative and inclusive work environment

Requirements:

Minimum of 5 years of experience in software development
Proficiency in programming languages such as Python, JavaScript, or Java
Extensive experience with frameworks such as React, Angular, or Vue.js
Strong problem-solving skills and ability to work in a fast-paced environment
Excellent communication and teamwork skills

Note: This position is open to candidates from anywhere in the world. Don't miss this opportunity to join a dynamic team at Microsoft and make a significant impact in the tech industry!
eunseong-theori, @credfeto, @joseabraham, @ULis3h, @ohmorecats, @oooo723, @cheikhfiteni, @0x4E33, @toxotguo, @chenxhong, @Endericedragon, @JohnSweeney85, @nwcclink0, @0xEdwardElric, @0xwuchuan, @pc-quiknode, @scorbajio, @degensean, @0xkzam, @hexfusion


Sign In icon not always visible in Firefox

The Sign In icon in the upper left corner of the page is sometimes not visible in Firefox. When hovering over the spot I can see the "Sign In" title text and I can also click it. The login form pops up as usual.

The Sign In icon does show when I have opened an album beforehand. The icon is there when returning to the album overview page.
This has been tested on multiple computers with Firefox 43.0.4. This issue is not present in Chromium 47.0.2526.106.

Can't reproduce the issue :-/ Works fine on OS X with Firefox 43.0.4. Is the site zoomed in/out? Which version of Lychee are you using?

Hey electerious,
I'm closing this issue because I can't reproduce it in Firefox 44.0, which suggests that it was a bug in Firefox 43.0.4 for Ubuntu Trusty. I was using Lychee 3.0.9.
Sorry for bothering you, and thank you for your work on Lychee!


Fix segfaults in Enumerator

Fixes: #9

Test fail same reason as #11
We must update libudev to 240 or grater.
Or we can use this hack  in Enumerator::new
let ptr = try_alloc!(unsafe { ffi::udev_enumerate_new([].as_mut_ptr() as *mut ffi::udev) });

Could you rebase against #14 / current master to verify, that the tests now work as expected?

Done


Use field_title instead of key for title in field value

The field values are getting their titles form the array of hashes in health-data-standards/lib/hqmf-model/data_criteria.rb and were using the key as the title instead of the field_title

Addresses the problem about "discharge disposition" vs "discharge status" described in https://oncprojectracking.healthit.gov/support/browse/BONNIE-282

Where in the UI does this issue come up so I can test the fix?

This happens in the text of any field value that is added in a data criteria.

screen shot please!

@edeyoung Add a field value to the data criteria, in this case the field value added was ANATOMICAL_STRUCTURE

can you note a measure where a field value is used as part of the logic whose name is significantly changed as a result of this change? I want to confirm that logic calculations are unchanged.

EH_CMS71v5_NQF0436_Stroke3.zip

Field Value Ordinality: Principal needs to be added to the  Diagnosis: Active: Hemorrhagic Stroke data criteria in order to pass the IPP

To check the origin of this bug, see the hmdmlantana account on alpha patient "Expired MSRPOPLEXStrat3Pass" I don't have the MAT package, so you'll have to pull the alpha database backup using the script at https://gitlab.mitre.org/bonnie/server-scripts/blob/master/grab-latest-alpha-backup.rb


Parsing HDF5 with attributes ... cannot remove non-attribute item from template

*** in the context of create template ***
When parsing an HDF5 with attributes, the data item/group that has an attribute cannot be removed from the template.  For instance if the item/group has atributes "Bar 1" and "Bar 2", then the source tree appears like :
/Foo/Bar 1*
/Foo/Bar 2*
'/Foo'
You can remove "/Foo/Bar 1" and "/Foo/Bar 2" but not "/Foo"
Note here ... all "remove" actions are using the check boxes in the MetaData tree.  See below for perhaps related issue.

Not sure if related but ... with hdf5 files with attributes, attempting to remove rows using the "X" on the create template window, the first click will not remove the selected row, but the top item.  Further clicks appear to do nothing.

This seems like a more general problem with attributes not quite fitting the data model. So our simple solution of just adding a * works for the most part, but the new XML parser is suffering from the same issue. I started looking into this last week, and I can see it with XML and HDF5 files.
Looking at the way the tree model works you cannot uncheck "directory" type things that contain other things. The issue as I see it is without attributes an entry is either a containing directory, so it doesn't get its own row in the table, or it is a data entry and it does get an entry. We now have another situation where an entry might be made for a data entry, and that data entry has several attributes it contains.
I think I understand the ez model stuff, but this probably warrants a discussion before we go changing things. Do we want to make attributes special in the data model, or do we want to generalize the nodes that contain things to be checkable/uncheckable in their own right?

We had a meeting about this and decided to do the following:

Rewrite any parsers that are returning nested file dictionaries to instead return flattened file dictionaries.  EzMetadataModel also needs to be updated to remove the logic dealing with unpacking nested file dictionaries.  The code in there should simplify quite a bit since it'll just be a matter of setting the incoming flattened dictionary into the "entries" property.

Any node (Foo) that has attributes will have a node in the tree called "Foo*" and a parallel node in the tree called "Foo.attributes" in italics.  All the attributes for node Foo are listed as children of "Foo.attributes".


feat: optional peer dependencies with dynamic import

Description

To provide opt-in wallet provider modules to install
#101

Info

This PR would bump vue-dapp version to 0.7.0
It can be tested via install<EMAIL_ADDRESS>or using this template
[ ] Gnosis Safe feature has not yet been tested
In this new version, the package consumer should install wallet provider packages by hand

Support WalletConnect

yarn add @walletconnect/web3-provider

Support Coinbase Wallet

yarn add @coinbase/wallet-sdk

Support Gnosis Safe

yarn add @gnosis.pm/safe-apps-provider @gnosis.pm/safe-apps-sdk

This version can drastically reduce the bundle size<EMAIL_ADDRESS>

Reference

https://juejin.cn/post/7115061363965165576
https://github.com/vitejs/vite/issues/6007
https://stackoverflow.com/questions/72862593/how-to-publish-a-js-package-that-gracefully-fails-if-an-optional-peer-dependency
https://github.com/wagmi-dev/references/blob/44b0c4c91147c2aae9689560ddc5f9acbecdfa29/packages/connectors/src/coinbaseWallet.ts#L122

Gnosis Safe App always complains about this error to me...
@re2005 Do you have any experience in testing the dapp on Gnosis Safe?

I used this manifest https://github.com/chnejohnson/vue-dapp/blob/feat/peers/demo/public/manifest.json and test it both with vite dev server, preview build files, or netlify.app but neither of them succeed.

Hi @chnejohnson I've just tested and for me works fine, when running locally and also when loading the demo from https://vue-dapp.netlify.app/

Maybe some cache or some localStorage old data on your side ?
Cheers

Only problem for me is after adding the Dapp seems that the Connector is not added to the DEMO.

I can confirm that on the main branch just by adding the manifest.json
/src/public/manifest.json
{
    "short_name": "vue-dapp",
    "name": "Vue Dapp",
    "description": "Vue Dapp safe app test",
    "icons": [
        {
            "src": "favicon.ico",
            "sizes": "32x32",
            "type": "image/x-icon"
        }
    ],
    "start_url": ".",
    "display": "standalone",
    "theme_color": "#ff007a",
    "background_color": "#fff"
}

It is working fine.

Oh, I see, thank you! I used Safe's new App app.safe.global not carefully. 🤦
Will handle the connector not found error later.
@re2005 Just in case, have you succeeded to run your app on the rebranded Safe App? If it's easy to test it in the new one I can update it in this commit, or maybe we can wait and open another issue to support the rebranded Safe App.

Hey @chnejohnson yes, just checked and my app runs nicely (https://app.gelato.network/)

Wait...I have no idea why I can't load the demo https://vue-dapp.netlify.app/ even in the old Safe App. It seems that manifest.js is blocked by CORS...but why...

(btw, I really like the UI Design of your app, so beautiful!

Sir! You are right, I totally forgot that for other purposes I've a CORS Chrome plugin, that bypass the CORS restrictions, on my browser.
Is that a restriction from Netlify itself ? You may can migrate the DEMO to Vercel probably won't have this issue.

@re2005 Got it. Not sure what's the restriction from Netlify but I will try to deploy it to Vercel, thanks


EskomSePush integration with inverter on/off 10 min prior Loadshedding/Grid return

Hi Dirkjanfaber
Can you please help me.
I'm trying to integrate with your EskomsePush by using your second output.
How and what do I use to get the start and end time of the current load-shedding as well as the time for the next expected load-shedding.
I want to use this to switch off the inverter before load-shedding starts (10min prior) and reconnect the inverter after 10min once grid has returned.
I'm experiencing huge surges and want to avoid them before load-shedding happens and after grid returned.
The Eskomsepush node is up and running and is showing the current stage and time in my area just need to know how to get those info as mentioned above.
Kind Regards,
J

I think you can do that by connecting the following flow to the first output.
[{"id":"ca967a45ba37a9e7","type":"debug","z":"eaee9d3c1cc45b6f","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":820,"y":220,"wires":[]},{"id":"8a7d712fa0f6be49","type":"function","z":"eaee9d3c1cc45b6f","name":"Switch inverter","func":"let d = new Date()\n\nif ((msg.calc.next.start - d) <= 600000) {\n    node.warn(\"Switch off\")\n    return { payload : 0 }\n}\n\nif ((d - msg.calc.end) > 600000) {\n    node.warn(\"switch on\")\n    return { payload: 1 }\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":620,"y":220,"wires":[["ca967a45ba37a9e7"]]}]

You can import this via the ctrl-i and pasting it.

Can you maybe explain what the Node.warn("switch off") & Node.warn("switch on") command does?
I was expecting to use a "switch" and maybe a "change" to control the victron ve.bus node to switch it between inverter only etc.

A node.warn gives an output on the debug tab. It is not needed, but gives some more helpful info.
If you want to connect it to a VE.bus control node, you can do something like:
[{"id":"d0a631a3bcfeaff0","type":"victron-output-vebus","z":"445e5751bfe59577","service":"com.victronenergy.vebus/276","path":"/PvInverter/Disable","serviceObj":{"service":"com.victronenergy.vebus/276","name":"MultiPlus-II 48/3000/35-32"},"pathObj":{"path":"/PvInverter/Disable","type":"enum","name":"Disable PV inverter","enum":{"0":"No","1":"Yes"},"writable":true},"initial":"","name":"","onlyChanges":false,"x":560,"y":340,"wires":[]},{"id":"8a7d712fa0f6be49","type":"function","z":"445e5751bfe59577","name":"Switch inverter","func":"let d = new Date()\n\nif ((msg.calc.next.start - d) <= 600000) {\n    // disable inverter\n    return { payload : 1 }\n}\n\nif ((d - msg.calc.end) > 600000) {\n    // enable inverter\n    return { payload: 0 }\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":240,"y":340,"wires":[["d0a631a3bcfeaff0"]]}]

The VE.Bus inverter accepts a number as input, so no need for a switch of change node.

Hi Dirkjanfaber
Excellent thank you so much for this will keep you posted if I struggle with anything else.
Took my the whole day to try and figure something out on NodeRed where it took you a few minutes truly a wizard.
How and where did you learn all of this?
Is there a website or something which I can study to get a better understanding of NodeRed etc.
Kind Regards,
J

You are welcome. I've learned it by using and playing with Node-RED for a few years. And I have a computer science background, which also helps.
The cookbook on https://nodered.org/docs/ is quite helpful.  And on the node-red-contrib-victron wiki I've put links to a webinar about Node-RED and Victron. And there are some example flows there too. That might also help.

Thank you very much.
Will definitely have a look.


[Application] Remove unused file of KNN

Dependency of the PR
*N/A
Commits to be reviewed in this PR
[Application] Remove unused file of KNN

Remove main.cpp

Self evaluation:

Build test:   [X]Passed [ ]Failed [ ]Skipped
Run test:     [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Hyunil<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #1953. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

We generate a report if there are dangerous coding constructs in your code. Please read http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/1953-202207111524440.15550494194031-ab9edd2ae9ca1b98ba6d096e06a2ef903795e14e/report/.

INFO: You can read if there are misspelled characters at our misspelling check report. Please read http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/1953-202207111524440.15550494194031-ab9edd2ae9ca1b98ba6d096e06a2ef903795e14e/report/.


issue installing guest_agent sso on windows guest

Hi, I am having a problem installing the windows guest_guest agent 32 bit on WinTPC known good image.  When I right click 'save as' each of the components into a folder and attempt to follow the instructions, the .reg file does not work as it says it is not a binary file... when you look inside it, it has  and lots of other junk in there.... so... After a bit of messing around, I ended up pasting the raw content into a .txt file then trying to run that with the same result.
After getting the reg entries configured by manually entering them in regedit (all as DWORD values, the last one as a string) the ovirtguestservice.exe will not install... it crashes saying NTVDM CPU encountered an illegal instruction then NTVDM.exe stops responding completely.
Ideas?  Maybe I should try compiling this from source on the affected system with cygwin?

per your comment in chat.... try downloading the zip file using clone or direct zip download of the entire github package seems to have worked.  When I download the entire 77mb zip file and install as per your instructions, everything seems to run ok and the files that were replaced that I originally downloaded were completely different sizes.... Service is now running on startup just fine...
testing sso now...

so reading http://www.neblogas.lt/2016/07/18/technical-info-ovirt-agent-sso/
i expect the command
echo "{"name": "login", "username": "someuser", "password": "somepassword"}" | socat /var/lib/libvirt/qemu/channel/target/domain-N-machineame/com.kvm-vdi.0 -
in one window, and a socat in another would allow me to see the request sent through the socket similar to tcpdump but it isn't quite as i expect.  i assume passing of credentials implies that ldap is configured... doesn't say that but i'm doing ldap now as i haven't bothered yet.
quick idea also... would you also be able to login to any website with a browser extension or something... since the credentials for sso already have this channel from hypervisor set up...

You can use non-LDAP authentication. If you create client users with the same password in dashboard ant in guest OS, then you will be able to login without LDAP.
As for SSO on browsers - this is different type of authentication from that one in KVM-VDI. You should perhaps look at something like microsoft ADFS.

ok forget the plugin thing that was just a random idea.. would be nice if it was easily done.
so if the guest is also configured to authenticate via active directory then both will match and succeed.  ok this is going to take a minute to implement and push to all the guests.
looks like it works ok on initial testing though.

still have not gotten to this... been very busy... i will provide an update soon... sorry.


Connections involving Symmetric NATs

Hello there,
I was wondering if you could help me with this issue with regards to Gole, I am trying to connect a client (has symmetric NAT) to a server (has open NAT) and the connection does not establish. I wanted to know if there was a way enable connections between devices of different NAT types?

If only one side has symmetric NAT, make sure that side initiates the connection first.


------ DEAD PROJECT ------

I have no idea what happened to the original maintainer of this library @roughike, I hope he's in good health, but since there have been no bug fixes, upgrades, replies or PR accepted or denied, I think it's safe to assume that this library is dead and should be avoided from now on.

Such a shame as this functionality is essential for a lot of apps. I'm not sure Flutter is a viable choice without it.

We can always fork it and update it ourselves, but I know it's not ideal. I hope the Firebase Auth team makes a replacement..... And hope flutter don't go the javascript way, with lots of abandoned highly-used projects.

Good news, I could reach @roughike on Twitter, he appears to be fine, just not following the repo closely.

@feinstein IDK if @FirebaseExtended is the ideal place for this plugin, as they don't seem to have anything specifically targeting Facebook logins.
Ultimately, I think abandoned projects are inevitable if the project only has a single maintainer.
I definitely think there should potentially be another maintainer added to this repo in order to keep it up-to-date.
There's 11 pending PRs (granted some of them supersede others, since a few are related to SDK updates) so it's not like there's any lack of people willing to work on this project.

As I said to some googlers, I think all major libraries should have someone from Google inside them as a fail-safe.

@feinstein I don't think it necessarily has to be someone from Google, but long-term libraries that need continual attention (like this one, since Facebook keeps updating their SDK to meet new iOS and Android requirements) should probably have more than one maintainer.
There are already other projects that ended up with a fork on Dart's Pub.dev.

Yeah, sure there needs to have someone else... But how do you assure this will happen? Who finds volunteers? Who tries to convince maintainers that they need someone else into the project? I think Google is a good answer.

@feinstein On the other issue, someone mentioned @fluttercommunity:
https://github.com/fluttercommunity/community
Since you've already been in contact with @roughike, it might be worth seeing if he wants to transfer the repo there if he doesn't have the time to keep this plugin up-to-date.

I'm alive and kicking, and have no health issues. Thanks for the concern!
We're using this plugin in Reflectly in production and have about 4 million users. It works for us. That being said, I'm aware there are some bugs, the SDKs could use a little update and the pull request & issue queues need some maintenance. I guess I'm just busy doing some other stuff ¯\(ツ)/¯
If someone has the context, could you describe what "dead project" means here? Unmaintained issue & PR queues, last release being ~6 months ago, or the plugin simply not working at all for you?

Unmaintained issue & PR queues, last release being ~6 months ago, or the plugin simply not working at all for you?

Well, it's actually the sum of all of it. If no-one was having troubles, opening meaningful issues or submitting PRs, it would be fine for a project to not be updated.... But once all of it comes together and there's no response, it appears to be a dead project.
I am glad you are OK, but for resilience sake it would be interesting to include someone else into the project, just as a plan B person.

@noln I'd imagine that since they're using Flutter on Google Home and for some of their mobile applications (and the looming Fuschia OS), Flutter's probably gonna be around for a while.
And dropping products isn't a uniquely "Google" thing: Microsoft dropped Windows Phone. They also were building Skype with ReactXP while pushing Xamarin as the way to build cross-platform apps.  Facebook is already trying to reduce scope on React Native by dropping the majority of built-in components for the community to manage instead.
There's the same risk with anything, aside from HTML and Javascript.

@roughike
Well this will be a dead project for sure.
#174
it started since Aug 30, 2019 when App Store announce that they don't accept UIWebView anymore.
so this library will not be usable anymore because you'll get an error anyway from App Store.

I just merged a couple bugfix PRs and released 3.0.0 to Pub which updates the SDKs to latest versions. I'm also going through the issue tracker and closing obsolete / otherwise closeable issues.
Not sure how this is an actionable issue. You can continue the discussion here, but I'm closing this one for now, unless you have concrete action points for me. Have a great day!

Thanks @roughike, glad to see this advancing :)


Allow superusers login using email

Fixes #3676
Summary
The logic in Login.ascx.cs was only authenticating users by email when the users existed in current portal, which is not the case when super users attempt to log in.
I changed this logic to search not only for portal users but also for super users as well. This is accomplished by calling GetUsersByEmail instead of GetUserByEmail.

Duplicate of #3659

I think @donker's fix in #3659 of updating GetUserByEmail to work with super users is better than switching to GetUsersByEmail.  Let me know if I'm missing anything, but looks like this issue will be addressed in 9.6.0 either way.  Thanks!

Oh man... I can't believe this. What a waste of time.
Neither #3658 nor #3660 popped up as potential duplicates when I created #3676.
And I even checked out latest code, including @donker 's fix, except I did not install the very latest 9.5.2 CI build, causing the stored procedure not to get updated. So I was able to reproduce the issue.

Sorry to hear about time wasted, Daniel. It seems we were both struggling with the same issues at the same time.


Request for details on business understanding

Hi there,
In overall, this is a really great framework. Most of the parts are detailed enough but would you break down the business understanding a bit more? I think this is a field that crucial for every data science workflow and there could be more standardized steps to help data teams out there. So could you share more steps you do to understand the actual problem domain?
Thanks in advance
cheers

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 094e56c7-d8dc-1e80-1154-3a369d1a1c82
Version Independent ID: 768d235a-9571-329b-1195-62a02ff1ed87
Content: What is the Team Data Science Process?
Content Source: articles/machine-learning/team-data-science-process/overview.md
Service: machine-learning
Product: unspecified
GitHub Login: @deguhath
Microsoft Alias: deguhath

@tromika Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.
@deguhath Hi, this is a doc-enhancement issue, could you please check it and update the document as necessary? Thanks a lot!

Thanks @YutongTie-MSFT

Hi @tromika, did you see this drilldown article on business understanding?  https://docs.microsoft.com/en-us/azure/machine-learning/team-data-science-process/lifecycle-business-understanding

Hi @HeidiSteen -- Indeed, ohh I haven't seen the drop down next to the article, I just scrolled down and there was no link to jump to there. Thanks!


Try to make CodeCov bot comment on PRs quieter

require_changes: true - "Comments will now only post when coverage
changes. Furthermore, if a comment already exists, and a newer commit
results in no coverage change for the entire pull, the comment will be
deleted."
See what "no layout at all" looks like.
Resolves #570

OK I think this is at least better and less verbose than before and should trigger "less often".


Monitor Multiple Disks Separately

Is there a way to monitor multiple disks and have the used percent reported as individual stats?

:+1:


Icon previous

A big TODO is to create a hygen template for the icon component. It will be a pretty straightforward template once hygen is configured in our repo.

https://user-images.githubusercontent.com/42388545/144139230-7876a5c1-11a6-4e5a-99a7-2ba6cad089fe.mov


Fix master publication

The changes I reverted here should be only on the rc branch.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Does rexray supports distributed volumes?

I'm actually quite heavily tired to implement this beast so this is my last attempt to get some answer from non-active maintainers.
Whatever I have volume.mount.preempt enabled or not I have the same outcome.
I can't launch 3 replicas on different host and mount rexray volume. I've got this message
VolumeDriver.Mount: docker-legacy: Mount: tools-npm-register: failed: resource not found

And rexray shows:
root@swarm-slave-1:~# rexray volume ls
ID                                    Name                Status       Size
c845fcef-a5af-11e8-b36b-0242ac114508  tools-npm-register  unavailable  16

I'm using exactly same config as specified here: https://rexray.readthedocs.io/en/latest/user-guide/schedulers/docker/
libstorage:
  host: unix:///var/run/libstorage/localhost.sock
  integration:
    volume:
      mount:
        preempt: true
      create:
        default:
          size: 1 # GB

I can mount that volume only for single node. Yes I know there are flush problems, and that it's bad for consistency but i need to have mounted volume on ALL HOSTS, or else this software is useless in production using docker swarm. Whatever one of replicas will ask to detach one volume to use it for himself it doesn't matter for me, thing is if request  comes to one of the replicas it should be executed withing 20 seconds, files should be written/read from volume no matter what.

Just moved to flocker as there's ceph in there with EBS backend support.


Pdf dynamic link is not working

Dynamic pdf link is not working .
Is there any plan in next release ?

no.


Missing two new mappers

The welcome tool didn't pick up two new mappers. Details below. One used StreetComplete the other use something called FireYak. Neither of which should make a difference. Both made edits in Washington State.
http://osmcha.org/changesets/117495458 http://osm.org/user/CullenW
Add maximum heights
State Route 26 West, Grant County, Washington, United States of America
http://osmcha.org/changesets/117493837 http://osm.org/user/Tweaver
updated fire hydrant details with FireYak v1.3.9 (124)
Viking Road, Cowlitz County, Washington, United States of America

Hello @cliffordsnow ,
I fully rely on OSMCha API for mappers detection.
I'll need to investigate why those 2 mappers were not picked up by OSMCha.


Derived table instance_ext fails to build if no instances are "staff suppressed"

If no instances in the source system have ever been set to "staff suppressed," the instance_ext table fails to build with the error ERROR:  column instance.staff_suppress does not exist.
The issue is present in the release-1.0 branch.

Fixed in 2241f4c.


Could not find method assembleDebug() on project ':platformsdk_support'

I have been getting the following error when attempting to build the platformsdk_support library.
* Where:
Build file 'E:\SDKs\GearVRf\GVRf\Extensions\platformsdk_support\build.gradle' line: 83

* What went wrong:
A problem occurred evaluating project ':platformsdk_support'.
> Could not find method assembleDebug() for arguments [build_8zx34rdzldl7yc1bjhlnps51l$_run_closure4@57dd041f] on project ':platformsdk_support' of type org.gradle.api.Project.

I've been following the instructions described here: https://github.com/Samsung/GearVRf/wiki/Entitlement-Check-using-GVRF
I'm running Windows 10 Enterprise Edition.
OVR Platform SDK 1.8.0
I have been able to build the library by removing lines 83 to 100 from platformsdk_support/build.gradle
and moving the .aar files by hand to the libs directory, so I'm guessing something in there is not particularly happy with my setup...

I have a change that fixes the build. Let us know if you experience any problems with the entitlement check. The code is straightforward but setting up everything so the check works can be finicky.

@liaxim Thanks for the fix :)
I have tested it on my end and the build seems to have run successfully!
As far as I can tell, the entitlement is working. I have successfully uploaded the app to the Alpha channel on the Oculus Store and it's not crashing when I install it on devices... I'm hoping that means it's working.
That said on the devices for which I have create osig files, when running a debug build of the App, the entitlement check does not complete. The app does run successfully though :)
I see the following error:
W/System.err: android.content.pm.PackageManager$NameNotFoundException: com.oculus.shimwow
W/System.err:     at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:201)
W/System.err:     at org.gearvrf.PlatformEntitlementCheck.create(Native Method)
W/System.err:     at org.gearvrf.PlatformEntitlementCheck.start(PlatformEntitlementCheck.java:61)
W/System.err:     at com.timecodelab.syncvr.player.vr.GearVrFVideoPlayer.performEntitlementCheck(GearVrFVideoPlayer.java:121)
W/System.err:     at com.timecodelab.syncvr.player.vr.GearVrFVideoPlayer.onInit(GearVrFVideoPlayer.java:116)
W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
W/System.err:     at org.gearvrf.GVREventManager.invokeMethod(GVREventManager.java:307)
W/System.err:     at org.gearvrf.GVREventManager.sendEventWithMaskParamArray(GVREventManager.java:126)
W/System.err:     at org.gearvrf.GVREventManager.sendEventWithMask(GVREventManager.java:113)
W/System.err:     at org.gearvrf.GVREventManager.sendEvent(GVREventManager.java:108)
W/System.err:     at org.gearvrf.GVRViewManager$1$1.run(GVRViewManager.java:330)
W/System.err:     at android.os.Handler.handleCallback(Handler.java:739)
W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)
W/System.err:     at android.os.Looper.loop(Looper.java:158)
W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61)

I realize this is not much to go on, but do you think it's likely to be something in my code causing that error? Should I create a new Issue?

We had pretty long threads about the entitlement check in the past. This is exactly where everybody gets stuck. See https://github.com/Samsung/GearVRf/pull/818 and https://github.com/Samsung/GearVRf/issues/808.
Can you please try first going to the Oculus home and launching the app from there with developer mode off?

We tried to capture the process in the wiki: https://github.com/Samsung/GearVRf/wiki/Entitlement-Check-using-GVRF
Excerpts from the threads that are most likely important:

So I re-did the whole thing. Even though my new submission checked out according to the validator I was getting -1 too. This is how I got it to work. Run the phone not in developer mode, dock, make sure you get to the Oculus home. Launch the app then (debug build now) but still not in developer mode. Dock and check the result of the query - this is when it started working for me. Afterwards it worked in developer mode too. Some steps might be optional but this is what I did. There is nothing we can do on our side to improve this very finicky process. We will get it to work together tomorrow. I used the 1.8.0 platform sdk but based on my past experience 1.6 and 1.7 work fine too.

https://forums.oculus.com/developer/discussion/40097/platform-sdk-1-5-0-cant-initialize-platform

Hi, could you share the full logcat output? I have seen this exception before but it got cleared after going to Oculus home then launching the app with developer mode off from the regular android launcher.

Thanks for the information!
Messed around with it for a bit, uninstalling then reinstalling then running from the Oculus Store and finally in developper mode 2-3 times. 4th time was the charm, now I can build and run in debug mode and I get a success on the entitlement check.
Thanks a lot for your help! Let me know if you still want the logcat output, I have it saved locally.

Sure, going through the logs can never hurt. Thanks.

Here it is :)
logcat04252017.txt

Hi @TimecodePete.  Could you email me at<EMAIL_ADDRESS> I have a few questions for you.


fix(iroh): increase buffer size for rpc controller

cherry-picked into https://github.com/n0-computer/iroh/pull/2416