jadx.core.utils.exceptions.JadxRuntimeException: Failed to remove code cache for con

Please describe what you did before the error occurred.
IMPORTANT! If the error occurs with a specific APK file please attach or provide link to apk file!

Jadx version: <IP_ADDRESS>0-98c0416b
Java version: <IP_ADDRESS>
Java VM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM
Platform: Windows 10 (10.0 amd64)
Max heap size: 11376 MB
Program args: -Xms128M -XX:MaxRAMPercentage=70.0 -XX:+UseG1GC -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true

jadx.core.utils.exceptions.JadxRuntimeException: Failed to remove code cache for con
	at jadx.gui.utils.codecache.disk.DiskCodeCache.remove(DiskCodeCache.java:197)
	at jadx.gui.utils.codecache.disk.DiskCodeCache.lambda$add$0(DiskCodeCache.java:134)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.nio.file.FileSystemException: C:\Users\Shai\Downloads\com.twitter.android_9.16.2-release.00-29162000_minAPI21(arm64-v8a,armeabi-v7a,x86,x86_64)(nodpi)_apkmirror.com (1).apk.cache\sources\con.java: The handle is invalid
	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
	at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
	at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
	at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
	at jadx.gui.utils.codecache.disk.DiskCodeCache.remove(DiskCodeCache.java:194)
	... 4 more

con is a reserved file name on Windows, it can not be used for creating files. Looks like we should add some escaping to the code cache file names (best independent of the used OS to make the code cache moveable between multiple computers).
According to Microsoft the following names are reserved: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9

Yeah, looks like I missed a lot of file system restrictions:

Case sensitivity
Reserved names
Files count limit in one directory
File name length limit
... maybe more

And it will be hard to satisfy all these restrictions with original class name. So I think it will be easier just made additional mapping for classes. For example class name to a number, use a hex string of class number as a file name (also with a first byte as directory to not store all files in one directory) and save that mapping in file.

I commit changes as I describe above, it should resolve the issue.
@CezarKing9436 please check latest unstable build.


services/horizon: Add /claimable_balances

PR Checklist
PR Structure

[ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[ ] This PR's title starts with name of package that is most changed in the PR, ex.
services/friendbot, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[ ] This PR adds tests for the most critical parts of the new functionality or fixes.
[ ] I've updated any docs (developer docs, .md
files, etc... affected by this change). Take a look in the docs folder for a given service,
like this one.

Release planning

[ ] I've updated the relevant CHANGELOG (here for Horizon) if
needed with deprecations, added features, breaking changes, and DB schema changes.
[ ] I've decided if this PR requires a new major/minor version according to
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.

What
Introduce end-point to fetch multiple claimable balances.
Why
This allows listing all claimable balances in Stellar, filtering by destination, sponsor, or asset.
Known limitations

It's still a draft, is it ready for review?

@bartekn this is ready for review now -- I'll add filtering  in another PR


how to use sqlite in electron+angular6

hi, @Kaffiend . as the title, if I want to read data from sqlite, how could I do it? could you give some advices or demo code? thanks

This falls under the native modules domain, there are some things in the works to handle those. Once i finish it ill update with some demos, I also plan to show examples of mongodb too.


Uncaught (in promise) TypeError: Cannot convert undefined or null to object

Describe the bug
I try to create new project with node version 18.0.0
npx create-react-app my-app
but after running npm run start so the browser throw an error : Uncaught (in promise) TypeError: Cannot convert undefined or null to object
It don't affect to any feature but I don't want to have this notification in the console. It look really unprofessional.
Did you try recovering your ### ### dependencies?
yes, I try with yarn and also npm already
I try to update npm version to 9.4.0 but nothing change
Environment
Environment Info:
current version of create-react-app: 5.0.1
running from /Users/macbook/.npm/_npx/c67e74de0542c87c/node_modules/create-react-app
System:
OS: macOS 11.7
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 18.0.0 - ~/.nvm/versions/node/v18.0.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v17.0.0/bin/yarn
npm: 9.4.0 - ~/.nvm/versions/node/v18.0.0/bin/npm
Browsers:
Chrome: 109.0.5414.119
Edge: Not Found
Firefox: Not Found
Safari: 14.1.2
npmPackages:
react: ^18.2.0 => 18.2.0
react-dom: ^18.2.0 => 18.2.0
react-scripts: 5.0.1 => 5.0.1
npmGlobalPackages:
create-react-app: Not Found
(paste the output of the command here.)

Yes I am also facing same issue.

https://discourse.webflow.com/t/is-this-a-malicious-code-insertion-companion-bubble-js/216773
This error is unrelated to CRA. Most people found it was an extension they had on their browser that was causing it.
In reply to "It look really unprofessional."
With that said, CRA has tons of bugs and issues.  Their devs almost never comment on issues, nor PRs.  So expect unprofessional.
If you want a close to 1-to-1 replacement of CRA, use Vite. Its actually supported and has a lot of features that CRA either locks down or doesn't have.
To get you started: npm create vite@latest my_project -- --template react-ts


libmariadb build  faild after set vcpkg_toolset v140 (vs2017)

vcpkg version: version 2018.11D.23-nohash
After Add Set(vcpkg_toolset v140)
libmariadb build failed. other libs work well.
the log file say ,can't locate default vctarget file

Hi @2812140729 , thanks for reporting this issue.
After I added toolset, libmariadb still build successful.
Could you repro it?
Thx.

Hi @2812140729 , Please open a new issue if this is still a problem for you. Thanks.


Desired Feature: Time to read

Display the approximate time it takes to read a page.
Example:

Code example:
https://gist.github.com/mynameispj/3170442

Hi @TBK , Thanks for filing this feature request.
Since this is very similar to https://github.com/BookStackApp/BookStack/issues/852 I'm going to close this as a duplicate.
Please add a +1 to that issue to add your vote, including the code sample and image that you've added here as they may be helpful during development. :)

My search foo was not strong enough.  I will add the info and a +1 to the other request 👍


feat(github): pull erlang advisory data

Pull in erlang advisories from GitHub

Nevermind, this one needs more thought as to how to populate both the erlang and elixir namespaces for grype db v5.  It may be that the responsibility of copying the data to another namespace should be in grype-db, in which case this simple vunnel change will be fine


Null safety

This is a request to add support for null safety to this package.
See the migration guide for details about enabling null safety.

Hi, Is it support flutter2?


Does the foxx application need connection pool?

When i need connect database ,i create db object and excute query ......i want to know, do I need to consider efficiency problem（for example: connection pool。。。）

Since a foxx service runs inside of the database, you don't need a connection pool there.
If your application can build a connection pool to arangodb and your foxx, thats probably good for performance, since establishing tcp/ip connections is expensive.

.. or maybe think about enabling keep-alive.

The mentioned documentation will become available here:
https://docs.arangodb.com/devel/Foxx/Production/Productionmode.html
https://docs.arangodb.com/devel/GeneralHttp/index.html

It's good to include Web Sockets for the next major release!

@p30arena I'm not sure how your comment is related to this issue.
I think you're looking for https://github.com/arangodb/arangodb/issues/602


ListView crashes when ListView.DataSource is updated

Hey there and thank you for using React Native!
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
Do the checklist before filing an issue:

[ ] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
[ ] Have a usage question? Ask your question on StackOverflow. We use StackOverflow for usage question and GitHub for bugs.
[ ] Have an idea for a feature? Post the feature request on Product Pains. It has a voting system to surface the important issues. GitHub issues should only be used for bugs.

None of the above, create a bug report
Make sure to add all the information needed to understand the bug so that someone can help. If the info is missing we'll add the 'Needs more information' label and close the issue until there is enough information.

[ ] Provide a minimal code snippet / rnplay example that reproduces the bug.
[ ] Provide screenshots where appropriate
[ ] What's the version of React Native you're using?
[ ] Does this occur on iOS, Android or both?
[ ] Are you using Mac, Linux or Windows?

Please provide a description of your issue along with code sample to reproduce the issue.

@facebook-github-bot label Needs more information

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/listview-crashes-when-listviewdatasource-is-updated
Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.


[Emails] Scheduled email log author

This fixes #2484.
New field was introduced: EmailScheduledLog.author. This field is filled out by the EmailController through optional parameter author: Person | None = None in all of its methods.
The UI change is minimal and allows to quickly see who is the log entry author:

@elichad This is ready for your review.


stable_diff_path

when i train model,i found that "stable-diffusion-v1-5" needed me to download

hello! Have you solved this problem and can you share your solution？

@jinge170
You can download stable-diffusion-v1-5 from here:
https://huggingface.co/runwayml/stable-diffusion-v1-5
I've successfully run train.py with this weight.
But the safetensors file needed to be removed for some reason.


web 側の service-worker の動作確認・修正

依頼内容

下記へ移動
https://github.com/katahiromz/katahiromz.github.io/issues/1


I get error code=-1 when play certain video

Hello. when I try to view video with ID : 2BFMvgI13ko (Resident Evil 7 trailer), I get an error -1, unsupported URL. It happens also on few other videos, eg. with ID = QpPwqVy6j10.
Can you help me?

@artur7  check fix in https://github.com/0xced/XCDYouTubeKit/issues/297

Thanks, it works!!


Failure of generating the model

Hi author. Thanks for your excellent work. When I tried to generate the models, I found some problems.
After I put a picture of size 64 * 256 * 6 into the FlowNetModule, the output size is 1 * 4 * 1024. But the visual mask has a size of 111024, so the model fails to generate. Does it a bug in the code?

I assume you are testing milliEgo?
We have different platforms in this dataset, some platforms might have different radar configurations and preprocessing settings, resulting in the radar depth image to be different sizes. You can change the mask size accordingly.

Thanks for your reply. I'm testing milliEgo indeed. Also I want to know if the IMU length of pretrained model is fixed to 20 because it reports error when I try different IMU length.

You can change IMU length, but your data has to match your model. If your model is trained to take 20 IMU measurements at a time, then you need to feed it 20 IMU measurements for each prediction.


[WIP] Add not to bind on the specific port(s) from Spring Boot (Actuator)

Motivation:

Related #2408

Modifications:

Add the specific propertiesarmeria:
  security:
    enabled: true

Copy ArmeriaSetting to boot-actuator-autoconfigure
if armeria.security.enabled is true, configure the default port(8001) and protect all services under /internal/ on other ports.
If management.server.port is set and armeria.security.enabled is true, protect all services under /internal/ and actuator services on other ports.
If management.server.port is set, support @LocalManagementPort
Add test

Result:

Fixes: #2408

@heowc Now we can resume working on this. Thanks a lot!

Yes! I'm preparing for this PR. :smile:

Ready for a review?

@trustin, the answer was late. 😢
I have one problem, so I will solve it and apply for a review.
In this situation, the default port and the management port are bound separately, so the management paths are missing from the default port.

@trustin @minwoox,
I had a misunderstanding and corrected it.

Remove armeria.security.enabled property
Remove the default port (8001)
When using the actuator, if the user specifies management.server.port, a decorator is added to secure internal services.

:tada: Thanks, @heowc !

👍👍👍👍👍


define new entry points for chemical composition v2

Defined new entry points for chemical composition, to explicitly define peptide sequences, chemical formulas, modifications and glycans:

sequence (str): peptide sequence that should be used for the instance, e.g. "PEPTIDE"
formula (str): chemical formula(s) that will be added/subtracted from the instance, e.g. "-H2O"
modifications (str): modifications of the peptide sequence, given as "Unimod:pos", e.g. "Oxidation:2"
glycan (str): glycan composition that will be added to the instance, e.g. "HexNAc(2)Hex(5)"
deprecated_format (str): old input format, using either "PEPTIDE+Formula-Formula" or "PEPTIDE#Unimod:pos"

We should still add more tests, but the current ones cover most of the previous functionality and most of the new functions.
Let me know if this style for the entry points is fine.


Bug for lat near 90 or -90 and lon near 180 or -180

There are a bug when the latitude is near of 90 or -90 and/or when the longitude is near 180 or -180.
Code to reproduct the bug:
polycircle = polycircles.Polycircle(latitude=0,
                                        longitude=179,
                                        radius=1300*1000,
                                        number_of_vertices=36)
    pol=kml.newpolygon(name="test",outerboundaryis=polycircle.to_kml())
    pol.style.polystyle.color= '40008000'

EDIT :  This bug seems also to be specific to a big radius.

Thanks. Let me take a look.

@adamatan I took a look and I think the issue come from geographiclib , what do you think about that ?

Hi,
Apologies for the delayed answer, I haven't had the time to take a deep look yet. I think your assumption is correct. Would you like to write a small code sample that manifests the error and open a bug for geographiclib?
Best, and thanks again, Adam

I run some test directly with geographiclib with this code below and it's work. geograhiclib provide us the right coordinates. So this bug is not from geographiclib
from geographiclib import geodesic

latitude = 30
longitude = 50
radius = 1500 * 1000
number_of_vertices = 30

for i in range(number_of_vertices):
    degree = 360.0 / number_of_vertices * i
    vertex = geodesic.Geodesic.WGS84.Direct(latitude, longitude,
                                                    degree, radius)
    print str(vertex['lon2'])+','+str(vertex['lat2'])

When I use polycircles , the same coordinates are in the kml file with this code :
from polycircles import polycircles
import simplekml

latitude = 30
longitude = 50
radius = 1500 * 1000
number_of_vertices = 30

kml = simplekml.Kml()
polycircle = polycircles.Polycircle(latitude=latitude,longitude=longitude,radius=radius,number_of_vertices=36)
pol=kml.newpolygon(name="test",outerboundaryis=polycircle.to_kml())
pol.style.polystyle.color= '40008000'
kml.save('test.kml')

Output kml :
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
    <Document id="feat_1">
        <Style id="stylesel_0">
            <PolyStyle id="substyle_0">
                <color>40008000</color>
                <colorMode>normal</colorMode>
                <fill>1</fill>
                <outline>1</outline>
            </PolyStyle>
        </Style>
        <Placemark id="feat_2">
            <name>test</name>
            <styleUrl>#stylesel_0</styleUrl>
            <Polygon id="geom_0">
                <outerBoundaryIs>
                    <LinearRing id="geom_1">
                        <coordinates>179.0,43.5166036492,0.0 -177.819217935,43.2745706852,0.0 -174.797978944,42.561338514,0.0 -172.075956287,41.4136364542,0.0 -169.759221823,39.8871192921,0.0 -167.915481841,38.049977521,0.0 -166.577093711,35.9767702286,0.0 -165.748448021,33.7435464003,0.0 -165.414324023,31.4245649224,0.0 -165.547060991,29.0903969861,0.0 -166.111703636,26.8069778508,0.0 -167.069148615,24.6351753897,0.0 -168.377718894,22.6305419376,0.0 -169.993690726,20.8430360534,0.0 -171.871253722,19.3166081319,0.0 -173.962290995,18.0886299048,0.0 -176.21626123,17.1892129739,0.0 -178.580356493,16.6405057005,0.0 179.0,16.4560788387,0.0<PHONE_NUMBER>93,16.6405057005,0.0<PHONE_NUMBER>3,17.1892129739,0.0<PHONE_NUMBER>95,18.0886299048,0.0<PHONE_NUMBER>22,19.3166081319,0.0<PHONE_NUMBER>26,20.8430360534,0.0<PHONE_NUMBER>94,22.6305419376,0.0<PHONE_NUMBER>15,24.6351753897,0.0<PHONE_NUMBER>36,26.8069778508,0.0<PHONE_NUMBER>91,29.0903969861,0.0<PHONE_NUMBER>23,31.4245649224,0.0<PHONE_NUMBER>21,33.7435464003,0.0<PHONE_NUMBER>11,35.9767702286,0.0<PHONE_NUMBER>41,38.049977521,0.0<PHONE_NUMBER>23,39.8871192921,0.0<PHONE_NUMBER>87,41.4136364542,0.0<PHONE_NUMBER>44,42.561338514,0.0<PHONE_NUMBER>35,43.2745706852,0.0 179.0,43.5166036492,0.0</coordinates>
                    </LinearRing>
                </outerBoundaryIs>
            </Polygon>
        </Placemark>
    </Document>
</kml>

The kml is fine. But when you display it in the kml :

And if you try to change altitude directly from properties , a correct circle is drawing.

The things really weird is that for right coordinates circle, Google earth draw a wrong circle when lat is near of 90/-90 , or and longitude 180/-180. I'm starting to think if it's not an issue directly from Google Earth and kml interpretation, because the coordinates are right.
And if you just try to display this kml  without
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
    <Document id="feat_1">
        <Style id="stylesel_0">
            <PolyStyle id="substyle_0">
                <color>40008000</color>
                <colorMode>normal</colorMode>
                <fill>1</fill>
                <outline>1</outline>
            </PolyStyle>
        </Style>
        <Placemark id="feat_2">
                    <LineString id="geom_1">
                        <coordinates>179.0,43.5166036492,0.0 -177.819217935,43.2745706852,0.0 -174.797978944,42.561338514,0.0 -172.075956287,41.4136364542,0.0 -169.759221823,39.8871192921,0.0 -167.915481841,38.049977521,0.0 -166.577093711,35.9767702286,0.0 -165.748448021,33.7435464003,0.0 -165.414324023,31.4245649224,0.0 -165.547060991,29.0903969861,0.0 -166.111703636,26.8069778508,0.0 -167.069148615,24.6351753897,0.0 -168.377718894,22.6305419376,0.0 -169.993690726,20.8430360534,0.0 -171.871253722,19.3166081319,0.0 -173.962290995,18.0886299048,0.0 -176.21626123,17.1892129739,0.0 -178.580356493,16.6405057005,0.0 179.0,16.4560788387,0.0<PHONE_NUMBER>93,16.6405057005,0.0<PHONE_NUMBER>3,17.1892129739,0.0<PHONE_NUMBER>95,18.0886299048,0.0<PHONE_NUMBER>22,19.3166081319,0.0<PHONE_NUMBER>26,20.8430360534,0.0<PHONE_NUMBER>94,22.6305419376,0.0<PHONE_NUMBER>15,24.6351753897,0.0<PHONE_NUMBER>36,26.8069778508,0.0<PHONE_NUMBER>91,29.0903969861,0.0<PHONE_NUMBER>23,31.4245649224,0.0<PHONE_NUMBER>21,33.7435464003,0.0<PHONE_NUMBER>11,35.9767702286,0.0<PHONE_NUMBER>41,38.049977521,0.0<PHONE_NUMBER>23,39.8871192921,0.0<PHONE_NUMBER>87,41.4136364542,0.0<PHONE_NUMBER>44,42.561338514,0.0<PHONE_NUMBER>35,43.2745706852,0.0 179.0,43.5166036492,0.0</coordinates>
                    </LineString>
        </Placemark>
    </Document>
</kml>

You get a good circle.

Accoding to this stackoverflow link the behavior may differ depending on Google Earth versions.
Extrusion to a rather high altitude seems to do the trick.
Does anyone have links to some GoogleEarth issue tracker, that could give some clarity to this ?

We can mention their twitter account. Would you like me to do it?
https://twitter.com/googleearth?ref_src=twsrc^google|twcamp^serp|twgr^author

According to https://developers.google.com/kml/documentation/kmlreference?hl=en we can use longitudes > 180 or < -180 in case there is a anti meridian overlap (at least for overlays).

 Specifies the longitude of the east edge of the bounding box, in decimal degrees from 0 to ±180. (For overlays that overlap the meridian of 180° longitude, values can extend beyond that range.)
 Specifies the longitude of the west edge of the bounding box, in decimal degrees from 0 to ±180. (For overlays that overlap the meridian of 180° longitude, values can extend beyond that range.)

If I read correctly, the examples above contain values that are within the [-180 ; 180].
It could be interesting to force geographic lib to unroll longitudes (and maybe latitudes) outside of the usual range.

Did a few tests and got it working when crossing antimerdian line.
There are still artefacts near poles, but this is related to the latitude (did not found any "LAT_UNROLL" param yet)
The trick is
vertex = geodesic.Geodesic.WGS84.Direct(
    lat1=latitude, lon1=longitude, azi1=degree, s12=radius,
    outmask=geodesic.GeodesicCapability.STANDARD | geodesic.GeodesicCapability.LONG_UNROLL)

KML / screens

test.zip
Code
import itertools
import simplekml
import tqdm
from geographiclib import geodesic
import numpy as np
from tqdm import tqdm
DEFAULT_NUMBER_OF_VERTICES = 36

class Shape(object):
    """Common operations for shapes"""

    def to_lat_lon(self):
        """Returns a tuple of (lat, lon) tuples of the polygon."""
        return self.vertices

    def to_kml(self):
        """Returns a tuple of (lon, lat) tuples suitable for a KML polygon."""
        return self.to_lon_lat()

    def to_wkt(self):
        """Returns a WKT (Well Known Text) representation of the polygon. Note
           that WKT tuples are (lon, lat), not (lat, lon)."""
        vertices = ", ".join(["%f %f" % v for v in self.to_lon_lat()])
        return "POLYGON ((%s))" % vertices

    def to_lon_lat(self):
        """Returns a tuple of (lon, lat) tuples of the polygon.
           The (lon, lat) notation is used in KMLs and WKTs."""
        return tuple(v[::-1] for v in self.vertices)

    def __iter__(self):
        return iter([{'lat': p[0], 'lon': p[1], 'index': self.vertices.index(p)} for p in self.vertices])

    def __str__(self):
        return self.to_wkt()

class Polycircle(Shape):
    """A polygonial approximation of a circle in WGS84 coordinates.
    >>> import polycircles
    >>> number_of_vertices = 20
    >>> polycircle = polycircles.Polycircle(latitude=31.611878, longitude=34.505351, radius=100, number_of_vertices=number_of_vertices)
    >>> len(polycircle.to_lat_lon()) == number_of_vertices + 1
    True
    """

    def __init__(self, latitude, longitude, radius, number_of_vertices=DEFAULT_NUMBER_OF_VERTICES):
        """
        Arguments:
        latitude -- WGS84 latitude, between -90.0 and 90.0.
        longitude -- WGS84 longitude, between -180.0 and 180.0.
        radius -- Circle radius in meters.
        number_of_vertices -- Number of vertices for the approximation
        polygon.
        """
        # Value assertions
        assert number_of_vertices >= 3, "The minimal number of vertices in a polygon is 3."
        assert radius > 0, "Radius can only have positive values."
        assert -180 <= longitude <= 180, "Longitude must be between -180 and 180 degrees."
        assert -90 <= latitude <= 90, "Latitude must be between -90 and 90 degrees."

        self.latitude = latitude
        self.longitude = longitude
        self.radius = radius
        self.number_of_vertices = number_of_vertices

        vertices = []
        for i in range(number_of_vertices):
            degree = 360.0 / number_of_vertices * i
            vertex = geodesic.Geodesic.WGS84.Direct(lat1=latitude, lon1=longitude, azi1=degree, s12=radius,
                                                    outmask=geodesic.GeodesicCapability.STANDARD | geodesic.GeodesicCapability.LONG_UNROLL)
            lat = vertex['lat2']
            lon = vertex['lon2']
            vertices.append((lat, lon))
        vertices.append(vertices[0])
        self.vertices = tuple(vertices)

if __name__ == '__main__':
    # latitude = 45.0
    # longitude = 179.5
    radius = 1500 * 1000
    number_of_vertices = 30
    lat_boundary = 89.89
    lat_step = 10.
    lats = np.arange(-lat_boundary, lat_boundary, lat_step)
    # lon_boundary = 179.89
    # lon_step = 5.0
    # lons = np.arange(-lon_boundary, lon_boundary, lon_step)
    lons = [-178., -179.5, 179.5, 178.]
    # positions = list(itertools.product(lats, lons))
    positions = [(x,y) for x in lats for y in lons]
    kml = simplekml.Kml()
    nb = len(positions)
    for i, pos in tqdm(enumerate(positions), desc="Generating circles for all combinations", total=nb):
        kml_test = kml.newfolder(name=f"Test_{i+1:04_d}/{nb:04_d}")
        center = kml_test.newpoint(name=f"P{i+1}")
        center.coords = [(pos[1], pos[0])]
        polycircle = Polycircle(latitude=pos[0], longitude=pos[1], radius=radius, number_of_vertices=64)
        pol = kml_test.newpolygon(name="test", outerboundaryis=polycircle.to_kml())
        pol.style.polystyle.color = '40008000'
    kml.save('test.kml')

Fantastic!
Would you like to submit a pull request, or do you want me to do it?
Adam
On Fri, Dec 3, 2021 at 1:52 PM LoneWanderer-GH @.***>
wrote:

Did a few tests and got it working when crossing antimerdian line.
There are still artefacts near poles, but this is related to the
latitude (did not found any "LAT_UNROLL" param yet)
The trick is
vertex = geodesic.Geodesic.WGS84.Direct(
lat1=latitude, lon1=longitude, azi1=degree, s12=radius,
outmask=geodesic.GeodesicCapability.STANDARD | geodesic.GeodesicCapability.LONG_UNROLL)
KML / screens
[image: Example_01]
https://user-images.githubusercontent.com/19716859/144597748-c1e3bbdc-4507-462f-adea-206e15c5550a.jpg
test.zip https://github.com/adamatan/polycircles/files/7649359/test.zip
Code
import itertoolsimport simplekmlimport tqdmfrom geographiclib import geodesicimport numpy as npfrom tqdm import tqdmDEFAULT_NUMBER_OF_VERTICES = 36
class Shape(object):
"""Common operations for shapes"""
def to_lat_lon(self):
    """Returns a tuple of (lat, lon) tuples of the polygon."""
    return self.vertices

def to_kml(self):
    """Returns a tuple of (lon, lat) tuples suitable for a KML polygon."""
    return self.to_lon_lat()

def to_wkt(self):
    """Returns a WKT (Well Known Text) representation of the polygon. Note           that WKT tuples are (lon, lat), not (lat, lon)."""
    vertices = ", ".join(["%f %f" % v for v in self.to_lon_lat()])
    return "POLYGON ((%s))" % vertices

def to_lon_lat(self):
    """Returns a tuple of (lon, lat) tuples of the polygon.           The (lon, lat) notation is used in KMLs and WKTs."""
    return tuple(v[::-1] for v in self.vertices)

def __iter__(self):
    return iter([{'lat': p[0], 'lon': p[1], 'index': self.vertices.index(p)} for p in self.vertices])

def __str__(self):
    return self.to_wkt()

class Polycircle(Shape):
"""A polygonial approximation of a circle in WGS84 coordinates.    >>> import polycircles    >>> number_of_vertices = 20    >>> polycircle = polycircles.Polycircle(latitude=31.611878, longitude=34.505351, radius=100, number_of_vertices=number_of_vertices)    >>> len(polycircle.to_lat_lon()) == number_of_vertices + 1    True    """
def __init__(self, latitude, longitude, radius, number_of_vertices=DEFAULT_NUMBER_OF_VERTICES):
    """        Arguments:        latitude -- WGS84 latitude, between -90.0 and 90.0.        longitude -- WGS84 longitude, between -180.0 and 180.0.        radius -- Circle radius in meters.        number_of_vertices -- Number of vertices for the approximation        polygon.        """
    # Value assertions
    assert number_of_vertices >= 3, "The minimal number of vertices in a polygon is 3."
    assert radius > 0, "Radius can only have positive values."
    assert -180 <= longitude <= 180, "Longitude must be between -180 and 180 degrees."
    assert -90 <= latitude <= 90, "Latitude must be between -90 and 90 degrees."

    self.latitude = latitude
    self.longitude = longitude
    self.radius = radius
    self.number_of_vertices = number_of_vertices

    vertices = []
    for i in range(number_of_vertices):
        degree = 360.0 / number_of_vertices * i
        vertex = geodesic.Geodesic.WGS84.Direct(lat1=latitude, lon1=longitude, azi1=degree, s12=radius,
                                                outmask=geodesic.GeodesicCapability.STANDARD | geodesic.GeodesicCapability.LONG_UNROLL)
        lat = vertex['lat2']
        lon = vertex['lon2']
        vertices.append((lat, lon))
    vertices.append(vertices[0])
    self.vertices = tuple(vertices)

if name == 'main':
# latitude = 45.0
# longitude = 179.5
radius = 1500 * 1000
number_of_vertices = 30
lat_boundary = 89.89
lat_step = 10.
lats = np.arange(-lat_boundary, lat_boundary, lat_step)
# lon_boundary = 179.89
# lon_step = 5.0
# lons = np.arange(-lon_boundary, lon_boundary, lon_step)
lons = [-178., -179.5, 179.5, 178.]
# positions = list(itertools.product(lats, lons))
positions = [(x,y) for x in lats for y in lons]
kml = simplekml.Kml()
nb = len(positions)
for i, pos in tqdm(enumerate(positions), desc="Generating circles for all combinations", total=nb):
kml_test = kml.newfolder(name=f"Test_{i+1:04_d}/{nb:04_d}")
center = kml_test.newpoint(name=f"P{i+1}")
center.coords = [(pos[1], pos[0])]
polycircle = Polycircle(latitude=pos[0], longitude=pos[1], radius=radius, number_of_vertices=64)
pol = kml_test.newpolygon(name="test", outerboundaryis=polycircle.to_kml())
pol.style.polystyle.color = '40008000'
kml.save('test.kml')
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/adamatan/polycircles/issues/2#issuecomment-985457369,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHXTLMUZO4H6ECIVZGMTQ3UPCVOBANCNFSM4DFW5PRQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You can do it, its a fairly simple fix.
Considering the polar region, the issue also exist with the web version of Google Earth.
KML Linestrings are ok, only polygons have odd behaviors. When you use the manual polygon tool, the effects are the same when trying to circle the poles.

Fantastic. I'll try to fix ASAP - a bit busy with a new job right now.
Best,
Adam
On Fri, Dec 3, 2021 at 5:54 PM LoneWanderer-GH @.***>
wrote:

You can do it, its a fairly simple fix.
Considering the polar region, the issue also exist with the web version of
Google Earth.
KML Linestrings are ok, only polygons have odd behaviors. When you use the
manual polygon tool, the effects are the same when trying to circle the
poles.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/adamatan/polycircles/issues/2#issuecomment-985631475,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHXTLPRL76XZTV24FVXBADUPDR4VANCNFSM4DFW5PRQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Automated cherry pick of #4837: fix: 添加磁盘创建失败日志

Cherry pick of #4837 on release/2.14.
#4837: fix: 添加磁盘创建失败日志

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.14@2af5c3e). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release/2.14   #4839   +/-   ##
==============================================
  Coverage                ?   6.84%
==============================================
  Files                   ?     523
  Lines                   ?   89185
  Branches                ?       0
==============================================
  Hits                    ?    6108
  Misses                  ?   82570
  Partials                ?     507

Flag
Coverage Δ

#aFlag
6.84% <ø> (?)

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 2af5c3e...20a6149. Read the comment docs.

/lgtm

/approve


POST requests with invalid JSON-API types result in 500 status codes

Any POST request to an enpoint that accepts JSON-API as data will return a 500 (Internal Server Error) status code, if the JSON-API type does not match the type the method expects. This is not expected behaviour, a status code 400 (Bad Request) should be returned instead.
This can be reproduces for example by posting the following (mind the type field) to /v1/user/:
{
	"data": {
		"type": "userz",
		"attributes": {
			"username": "username",
			"password": "pw"
		}
	}
}

As far as I can tell this affects all endpoints that answers POST requests.

Merged


hueristics for export

If the export annotation doesn't exist, we should apply the following heuristics that generate a bag of files consisting of:

[ ] csv file for the main entity
[ ] csv file for all the related tables (whether in-line or not)

single hop : the fk to the main entity should be there already
multi-hops: add fk to the main entity as an extra column

[ ] fetch output for all the columns that have asset annotation

In the following I will try to explain how export is working and how I am generating the default export template.
Based on current definition of the annotation, you need to pass api, table (in "schema:table" format), and an optional path. This is how export is using these:

If the given table is the same as the current table that reference is representing:

<api>/<current_reference_path>/<path>

If the given table is not the same as the current table:

<api>/<current_reference_path>/X:=<table>/<path>

So it's assuming that the table that you're defining (X) has a direct relationship with the reference table (M). But for the inbound related tables that have longer path this is not true, so I ended up defining them this way:
{
  "table": "schema:main_table",
   "path": "the foreignkey path to the related table in ()=() format"
}

Another requirement was adding the main table's key to the projection list. To do so, I had to use the alias that I'm using in the parser logic. I think we should add this to the export documentation, I am always using the M alias for the table that is being projected.
Example
Having the following ERD, with the given annotation for the table.

"tag:isrd.isi.edu,2016:visible-foreign-keys": {
  "*": [
    ["schema", "fk2_cons"],
    ["schema", "fk3_cons"],
    {
      "source": [
        {"inbound": ["schema", "fk3_cons"]},
        {"outbound": ["schema", "main_f3_cons"]},
        {"inbound": ["schema", "f4_cons"]},
        "f4_id"
       ]
     }
  ]
}

This would be the generated default export template:
{
  "name": "default_template",
  "format_name": "BAG",
  "format_type": "BAG",
  "outputs": [
    {
      "destination": {
        "name": "main",
        "type": "csv"
      },
      "source": {
         "api": "entity",
        "table": "schema:main"
      }
    },
    {
      "destination": {
        "name": "f2",
        "type": "csv"
      },
      "source": {
        "api": "entity",
        "table": "schema:f2"
      }
    },
    {
      "destination": {
        "name": "f3",
        "type": "csv"
      },
      "source": {
        "api": "attributegroup",
        "table": "schema:main",
        "path": "(id)=(main_f3:id_main)/(id_f3)=(f3:f3_id)/main_table_id_0:=M:id,f3_id;f3_text,f3_int"
      }
    },
    {
      "destination": {
        "name": "f4",
        "type": "csv"
      },
      "source": {
        "api": "attributegroup",
        "table": "schema:main",
        "path": "(id)=(main_f3:id_main)/(id_f3)=(f3:f3_id)/(f3_id)=(f4:fk_to_f3)/main_table_id_0:=M:id,f4_id;fk_to_f3,f4_text,f4_int"
       }
    }
  ]
}

I'm not sure if what I did makes sense and we should encourage it or not. We should discuss about this.

Can we set up a meeting with ythe entire team to discuss.
Carl

Dr. Carl Kesselman
Dean’s Professor, Epstein Department of Industrial and Systems Engineering
Fellow, Information Sciences Institute
Viterbi School of Engineering
Professor, Preventive Medicine
Keck School of Medicine
University of Southern California
4676 Admiralty Way, Suite 1001, Marina del Rey, CA  90292-6695
Phone:  +1<PHONE_NUMBER>
Email:  carl<EMAIL_ADDRESS>Web: http://www.isi.edu/~carl
On Sep 27, 2018, at 10:02 AM, Aref Shafaei <notifications<EMAIL_ADDRESS>wrote:
In the following I will try to explain how export is working and how I am generating the default export template.
Based on current definition of the annotation, you need to pass api, table (in "schema:table" format), and an optional path. This is how export is using these:

If the given table is the same as the current table that reference is representing:

/<current_reference_path>/

If the given table is not the same as the current table:

/<current_reference_path>/X:=/
So it's assuming that the table that you're defining (X) has a direct relationship with the reference table (M). But for the inbound related tables that have longer path this is not true, so I ended up defining them this way:
{
"table": "schema:main_table",
"path": "the foreignkey path to the related table in ()=() format"
}
Another requirement was adding the main table's key to the projection list. To do so, I had to use the alias that I'm using in the parser logic. I think we should add this to the export documentation, I am always using the M alias for the table that is being projected.
Example
Having the following ERD, with the given annotation for the table.
[ERD]https://camo.githubusercontent.com/d6d543a466b2d7ddaba685fcdbc2a34ceeec89b1/68747470733a2f2f6465762e697372642e6973692e6564752f25374561736861666165692f77696b692d696d616765732f70736575646f5f636f6c5f6572642e706e67
"tag:isrd.isi.eduhttp://isrd.isi.edu,2016:visible-foreign-keys": {
"*": [
["schema", "fk2_cons"],
["schema", "fk3_cons"],
{
"source": [
{"inbound": ["schema", "fk3_cons"]},
{"outbound": ["schema", "main_f3_cons"]},
{"inbound": ["schema", "f4_cons"]},
"f4_id"
]
}
]
}
This would be the generated default export template:
{
"name": "default_template",
"format_name": "BAG",
"format_type": "BAG",
"outputs": [
{
"destination": {
"name": "main",
"type": "csv"
},
"source": {
"api": "entity",
"table": "schema:main"
}
},
{
"destination": {
"name": "f2",
"type": "csv"
},
"source": {
"api": "entity",
"table": "schema:f2"
}
},
{
"destination": {
"name": "f3",
"type": "csv"
},
"source": {
"api": "attributegroup",
"table": "schema:main",
"path": "(id)=(main_f3:id_main)/(id_f3)=(f3:f3_id)/main_table_id_0:=M:id,f3_id;f3_text,f3_int"
}
},
{
"destination": {
"name": "f4",
"type": "csv"
},
"source": {
"api": "attributegroup",
"table": "schema:main",
"path": "(id)=(main_f3:id_main)/(id_f3)=(f3:f3_id)/(f3_id)=(f4:fk_to_f3)/main_table_id_0:=M:id,f4_id;fk_to_f3,f4_text,f4_int"
}
}
]
}
I'm not sure if what I did makes sense and we should encourage it or not. We should discuss about this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/informatics-isi-edu/ermrestjs/issues/701#issuecomment-425168368, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADbjXh6rkhCPIMt4FumC99hoUZqOS9lpks5ufQS2gaJpZM4WV7X4.

BTW, here is my spec. Note I have fetch and nonfetch versions,
templates': [{'format_name': 'BDBag (Holey)',
'format_type': 'BAG',
'name': 'default',
'outputs': [
{'destination':
{'name': 'Collection', 'type': 'csv'},
'source': {'api': 'entity', 'table': 'Common:Collection'}
},
{
'destination': { 'name': 'Biosample', 'type' : 'csv'},
'source': {'api': 'attributegroup',
'table': 'Common:Collection',
'path': '(RID)=(Collection_Biosample:Collection)/(Biosample)=(Biosample:RID)/CollectionRID:=M:RID;Capillary_Number,Sample_Position',
}
},
{'destination': {'name': 'Processed_Tomography_Data',
'type': 'csv'},
'source': {'api': 'attributegroup',
'table': 'Common:Collection',
'path': '(RID)=(Collection_Biosample:Collection)/(Biosample)=(Biosample:RID)/(RID)=(Processed_Tomography_Data:Biosample)/CollectionRID:=M:RID;Dataset,Biosample,Filename, url:=URL,length:=Byte_Count',
}
},
{'destination': {'name': 'Processed_Tomography_Data',
'type': 'fetch'},
'source': {'api': 'attributegroup',
'table': 'Common:Collection',
'path': '(RID)=(Collection_Biosample:Collection)/(Biosample)=(Biosample:RID)/(RID)=(Processed_Tomography_Data:Biosample)/CollectionRID:=M:RID;url:=URL,md5:=MD5,length:=Byte_Count',
}
},
{'destination': {'name': 'XRay_Tomography_Data',
'type': 'csv'},
'source': {'api': 'attributegroup',
'table': 'Common:Collection',
'path': '(RID)=(Collection_Biosample:Collection)/(Biosample)=(Biosample:RID)/(RID)=(Processed_Tomography_Data:Biosample)/CollectionRID:=M:RID;Dataset,Biosample,URL,Filename',
}
},
{'destination': {'name': 'XRay_Tomography_Data',
'type': 'fetch'},
'source': {'api': 'attributegroup',
'table': 'Common:Collection',
'path': '(RID)=(Collection_Biosample:Collection)/(Biosample)=(Biosample:RID)/(RID)=(XRay_Tomography_Data:Biosample)/CollectionRID:=M:RID;url:=URL,md5:=MD5,length:=Byte_Count',
}
},
]
},
{'format_name': 'BDBag',
'format_type': 'BAG',
'name': 'default',
'outputs': [
{'destination':
{'name': 'Collection', 'type': 'csv'},
'source': {'api': 'entity', 'table': 'Common:Collection'}
},
{
'destination': {'name': 'Biosample', 'type': 'csv'},
'source': {'api': 'attributegroup',
'table': 'Common:Collection',
'path': '(RID)=(Collection_Biosample:Collection)/(Biosample)=(Biosample:RID)/CollectionRID:=M:RID;Capillary_Number,Sample_Position',
}
},
{'destination': {'name': 'Processed_Tomography_Data',
'type': 'download'},
'source': {'api': 'attributegroup',
'table': 'Common:Collection',
'path': '(RID)=(Collection_Biosample:Collection)/(Biosample)=(Biosample:RID)/(RID)=(Processed_Tomography_Data:Biosample)/CollectionRID:=M:RID;url:=URL,md5:=MD5,length:=Byte_Count',
}
},
{'destination': {'name': 'XRay_Tomography_Data',
'type': 'download'},
'source': {'api': 'attributegroup',
'table': 'Common:Collection',
'path': '(RID)=(Collection_Biosample:Collection)/(Biosample)=(Biosample:RID)/(RID)=(XRay_Tomography_Data:Biosample)/CollectionRID:=M:RID;url:=URL,md5:=MD5,length:=Byte_Count',
}
},
]
}

Dr. Carl Kesselman
Dean’s Professor, Epstein Department of Industrial and Systems Engineering
Fellow, Information Sciences Institute
Viterbi School of Engineering
Professor, Preventive Medicine
Keck School of Medicine
University of Southern California
4676 Admiralty Way, Suite 1001, Marina del Rey, CA  90292-6695
Phone:  +1<PHONE_NUMBER>
Email:  carl<EMAIL_ADDRESS>Web: http://www.isi.edu/~carl
On Sep 29, 2018, at 9:21 AM, Carl Kesselman <carl<EMAIL_ADDRESS>wrote:
Ok,
I have actually tried this for a collection and it works!  One thing that we will have to do is that if the object is an asset, we need to make the output a download, not a CSV.  We should also have the option of making it a fetch.
The notation is pretty dense.  Is there documentation for the path expressions?
We are really going to need to write up a tutorial on these.  Very important.
Carl

Dr. Carl Kesselman
Dean’s Professor, Epstein Department of Industrial and Systems Engineering
Fellow, Information Sciences Institute
Viterbi School of Engineering
Professor, Preventive Medicine
Keck School of Medicine
University of Southern California
4676 Admiralty Way, Suite 1001, Marina del Rey, CA  90292-6695
Phone:  +1<PHONE_NUMBER>
Email:  carl<EMAIL_ADDRESS>Web: http://www.isi.edu/~carl
On Sep 27, 2018, at 10:02 AM, Aref Shafaei <notifications<EMAIL_ADDRESS>wrote:
In the following I will try to explain how export is working and how I am generating the default export template.
Based on current definition of the annotation, you need to pass api, table (in "schema:table" format), and an optional path. This is how export is using these:

If the given table is the same as the current table that reference is representing:

/<current_reference_path>/

If the given table is not the same as the current table:

/<current_reference_path>/X:=/
So it's assuming that the table that you're defining (X) has a direct relationship with the reference table (M). But for the inbound related tables that have longer path this is not true, so I ended up defining them this way:
{
"table": "schema:main_table",
"path": "the foreignkey path to the related table in ()=() format"
}
Another requirement was adding the main table's key to the projection list. To do so, I had to use the alias that I'm using in the parser logic. I think we should add this to the export documentation, I am always using the M alias for the table that is being projected.
Example
Having the following ERD, with the given annotation for the table.
[ERD]https://camo.githubusercontent.com/d6d543a466b2d7ddaba685fcdbc2a34ceeec89b1/68747470733a2f2f6465762e697372642e6973692e6564752f25374561736861666165692f77696b692d696d616765732f70736575646f5f636f6c5f6572642e706e67
"tag:isrd.isi.eduhttp://isrd.isi.edu/,2016:visible-foreign-keys": {
"*": [
["schema", "fk2_cons"],
["schema", "fk3_cons"],
{
"source": [
{"inbound": ["schema", "fk3_cons"]},
{"outbound": ["schema", "main_f3_cons"]},
{"inbound": ["schema", "f4_cons"]},
"f4_id"
]
}
]
}
This would be the generated default export template:
{
"name": "default_template",
"format_name": "BAG",
"format_type": "BAG",
"outputs": [
{
"destination": {
"name": "main",
"type": "csv"
},
"source": {
"api": "entity",
"table": "schema:main"
}
},
{
"destination": {
"name": "f2",
"type": "csv"
},
"source": {
"api": "entity",
"table": "schema:f2"
}
},
{
"destination": {
"name": "f3",
"type": "csv"
},
"source": {
"api": "attributegroup",
"table": "schema:main",
"path": "(id)=(main_f3:id_main)/(id_f3)=(f3:f3_id)/main_table_id_0:=M:id,f3_id;f3_text,f3_int"
}
},
{
"destination": {
"name": "f4",
"type": "csv"
},
"source": {
"api": "attributegroup",
"table": "schema:main",
"path": "(id)=(main_f3:id_main)/(id_f3)=(f3:f3_id)/(f3_id)=(f4:fk_to_f3)/main_table_id_0:=M:id,f4_id;fk_to_f3,f4_text,f4_int"
}
}
]
}
I'm not sure if what I did makes sense and we should encourage it or not. We should discuss about this.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/informatics-isi-edu/ermrestjs/issues/701#issuecomment-425168368, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADbjXh6rkhCPIMt4FumC99hoUZqOS9lpks5ufQS2gaJpZM4WV7X4.

After reviewing the export annotation, we decided to make the following changes:

Remove the name attribute since it's not used.

Rename format_name to displayname and format_type to type.

Remove the table attribute from the outputs, and make the path to be required. Then we're always going to create the path in the following format:
  <api>/<current reference path>/<path>

So assuming you're writing export annotation for table A in schema S, If the old annotation was:
  "source": {
    "api": "entity",
    "table": "S:A"
  }

It should be changed to
  "source": {
    "api": "entity",
    "path": "S:A"
  }

Check whether path starts with / or not and handle it appropriately.

Allow data modelers to define the export template in the schema level too and change how we're using the export annotation.  This is how we're processing the annotation:

If the annotation is defined on table.
1.1. There's no valid template (has type, displayname, and valid outputs) in the defined annotation: Don't show any export template to users.
1.2. There's at least one valid template: Go through the list of valid templates and if they don't have outputs, use the default heuristics outputs.

The annotation is missing on the table.
2.1. The annotation is defined on schema: Do the same steps in 1.1 and 1.2.
2.2. The annotation is missing from the schema: Create a default bag template with the default heuristics outputs.

When the changes are done, I will update the documentation to reflect these changes.

The changes explained in the previous comment are ready to be merged. I am going to merge them by the end of this day unless there's an objection.
I also updated the ioboxd documentation and raised a PR for it.
@carlkesselman @mikedarcy
This is the list of what needs to be changed in the currently defined annotations:

name attribute should be removed from each of the defined "template"s since it's not used.
format_name must be renamed to displayname.
format_type must be renamed to type.
Since we changed the way we're constructing the query, in outputs definition, you need to remove all the tables.  I added some examples to the ioboxd documentation on how output is going to generate the query.

If the table that is defined in the output is the same as the root table: you don't need to define any path.
Otherwise you have to define the path.

The changes have been merged with master. I am going to close this issue. If we want further changes we should create a new issue, there are too many comments on this issue and it's hard to follow.


News integration

http://www.direktfastnews.com/
This site seems awesome, look for an API or resort to scraping (or build an API)

The website specifically states it cannot be scraped and has no api. Just use whatever rss feed.

Rolling this into #29


Add Stretch Mode description to ProjectSettings.xml

Very well!

I mainly copied the description from https://docs.godotengine.org/en/stable/tutorials/rendering/multiple_resolutions.html Though I note there that it still says '2D' whereas the latest version of Godot says 'canvas_items'... I assume they're the same.

Thanks @Calinou!

Great! Thank you I didn't feel confident in documenting this when I exposed this setting to documentation, happy to see it documented

The two commits need to be squashed into one and this PR needs to be amended before it can be merged :)

You can't just squash the commits when merging this PR? https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges#squash-and-merge-your-commits
What amendment is needed?

https://docs.godotengine.org/en/stable/community/contributing/pr_workflow.html#the-interactive-rebase
This is a tutorial for how to do it.
Rebasing can be tricky if you're new to it, so please save the description before doing this.

You can't just squash the commits when merging this PR? docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges#squash-and-merge-your-commits

We don't use GitHub's squash and merge feature on the main Godot repository, since it loses the merge commit in the process. We prefer keeping the merge commit to make the Git history more self-documented (even if that makes it longer when not using the --no-merges option).

Cherry-picked for 4.0.4.


Flesh out redpallas, direct port of redjubjub

Motivation
Finishing Transaction::V5 requires a redpallas::Signature type, which was not part of the initial stub-out of the redpallas types in the sapling->orchard port in #1885.
Solution
Finish the direct redjubjub -> redpallas port for single signature verification, modulo the batching and the multiscalar multiplication required for that, as the math needs updating or replacing completely.
The code in this pull request has:

[x] Documentation Comments
[x] Unit Tests and Property Tests

Review

This unblocks @oxarbitrage
Related Issues

This technically fulfills #2044, but I don't know if we want it to be the long-term solution. @mpguerra
Follow Up Work

The batch math: https://github.com/ZcashFoundation/zebra/issues/2098

This technically fulfills #2044, but I don't know if we want it to be the long-term solution. @mpguerra

I think it's fine to close that ticket for now, and open an optional cleanup ticket for later.


Pitch/compute sessions multi repo working

WIP
/deploy renku=release-0.49.0

You can access the deployment of this PR at https://renku-ci-nb-1810.dev.renku.ch


📝  links to repos in README

We have repose supporting features:

https://github.com/Azure-Samples/azure-flask-postgres-aca
https://github.com/Azure-Samples/azure-flask-cosmos-postgres-aca
https://github.com/Azure-Samples/azure-fastapi-cosmos-postgres-aca
https://github.com/Azure-Samples/azure-fastapi-postgres-aca
https://github.com/Azure-Samples/azure-django-cosmos-postgres-aca
https://github.com/Azure-Samples/azure-django-postgres-aca

We should link these to their respective links in the README

I would check them into each respective repo. once cruft is running they will be less important but should probably be included.


Initial commit for Babelfish v2.7

Description

Update Github action scripts
Create upgrade test folder for last minor version.
Bump Babelfish version string in babelfish_version.h
Add upgrade script 2.6.0 -- 2.7.0

Signed-off-by: Sai Rohan Basa<EMAIL_ADDRESS>Issues Resolved
[List any issues this PR will resolve]
Test Scenarios Covered

Use case based -

Boundary conditions -

Arbitrary inputs -

Negative test cases -

Minor version upgrade tests -

Major version upgrade tests -

Performance tests -

Tooling impact -

Client tests -

Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Please remove step 4 from upgrade script.


Graph provider causes SEE to freeze

Using larger graph providers causes SEE to freeze since the pipeline is executed on the main thread and not on the thread pool.

Resolved by #741.


[BACKEND][CODEGEN] C codegen with tests

This PR introduces a gcc / g++ compatible C code generator for TVM, tested on x86 host.

@Huyuwei can you help review this?

@Mutinifni Can you briefly describe the current compilation flow? Most importantly, is it using DSOModule for the runtime?

@Huyuwei It uses CSourceModule for saving the C source code - I have verified this by checking the type_key. Loading is done via the DSOModule.
I was a bit uncertain about this module design and the export_library functionality as well, so please feel let me know if you think a different flow would be better instead.

@Huyuwei please take another look

This PR cause the below issue with llvm target.
-tgt="cuda"
+tgt="llvm"

python3 tutorials/get_started.py
!115 = !{!116, !116, i64 0}
!116 = !{!"float32", !117, i64 0}
!117 = !{!"0x119a190", !4, i64 0}

Traceback (most recent call last):
  File "get_started.py", line 196, in <module>
    cc.create_shared(temp.relpath("myadd.so"), [temp.relpath("myadd.o")])
  File "/home/srk/.local/lib/python3.6/site-packages/tvm-0.5.dev0-py3.6-linux-x86_64.egg/tvm/contrib/cc.py", line 34, in create_shared
    _linux_shared(output, objects, options, cc)
  File "/home/srk/.local/lib/python3.6/site-packages/tvm-0.5.dev0-py3.6-linux-x86_64.egg/tvm/contrib/cc.py", line 53, in _linux_shared
    cmd += ["-I" + path for path in find_include_path()]
  File "/home/srk/.local/lib/python3.6/site-packages/tvm-0.5.dev0-py3.6-linux-x86_64.egg/tvm/_ffi/libinfo.py", line 156, in find_include_path
    raise RuntimeError(message)
RuntimeError: Cannot find the files.
List of candidates:
/home/srk/.local/lib/python3.6/include
/home/srk/.local/lib/python3.6/site-packages/include
/home/srk/.local/lib/python3.6/site-packages/3rdparty/include
/home/srk/.local/lib/python3.6/dlpack/include
/home/srk/.local/lib/python3.6/site-packages/dlpack/include
/home/srk/.local/lib/python3.6/site-packages/3rdparty/dlpack/include

Thanks @srkreddy1238 for reporting this, @Mutinifni can you send in a quick fix? We should not directly raise error when the headers are not found in general create_shared, instead, we should only call find_include_path and add it to the options in created_shared when it is a c module

Hello, is there any documents or examples about how to use this c backend?

Hi @dongxiao92, you can look at tests/python/unittest/test_codegen_c_host.py for a vector addition example. You can also print out the generated C code from the function export_library in python/tvm/module.py.

Hello, I want to generate C code too:

func = tvm.build(s, [A, B, C], target=device, name='myGemm')
temp = util.tempdir()
path_dso = temp.relpath("temp.so")
path = temp.relpath('lib.tar')
func.export_library(path_dso)
m = tvm.module.load(path_dso)
print(m.get_source())

But failed:
TVMError: Module[dso] does not support GetSource
Am I using the wrong method? @Mutinifni

Hi @wujiaqi6630, if you want to see the C source code that is generated, you can use func.get_source() because func is the C source module where as m is the DSO module. Only the C source module supports GetSource.

Thank you !

Hi@Mutinifni, I use the func.get_source(), but the code printed on the screen seems not to run on the X86 platform. How can I execute the C code. Looking forward to  your reply

Hi
Any update on how to execute the generated C source code?
I observe that when you generate the c source code for a module that is generated through a user-defined relay function you get a  __tvm_main__() function generated as well. However this is not the case when I generate the source code for a network, eg mnist, where I see a different set of functions (eg. tvmgen_default_fused_nn_conv2d_add_nn_relu , tvmgen_default_fused_nn_max_pool2d_1) which I suppose are one for each layer. How are we to explicitly compile this and run it?
Thanks in advance!


Support for HTTP2 in AWS SDK

.NET Core 3.1 add HTTP/2 support in HttpClient, with this support is it possible to use AWS .NET SDK(<IP_ADDRESS>) to send HTTP 2 requests to S3 storage ?
See the sample below,
 internal class MyDemoHttp2ClientFactory : HttpClientFactory
    {
        public override HttpClient CreateHttpClient(IClientConfig clientConfig)
        {
            return new HttpClient()
            {
                // set default http protocol to 2
                DefaultRequestVersion = new Version(2, 0)
            };
        }
    }
    class Program
    {
        static void Main(string[] args)
        {

            var s3Config = new AmazonS3Config() { ServiceURL = "http://" + "_s3_bucket_region" };
            s3Config.HttpClientFactory = new MyDemoHttp2ClientFactory();
            using (var cli = new AmazonS3Client(
                "_s3_access_key",
                "_s3_secret_access_key",
                s3Config))
            {
                // put object here
                //
            }
        }
    }

Out of curiosity have you seen any performance changes by doing this?

I haven't tried out, question was whether HttpClientFactory with HTTP version set 2, works or not.
I will try the sample today

I think we still have work to do to get it within the SDK, but you should be able to use the implementation in your sample code.

I tried sample shown above to put object on S3 storage, outgoing request still shows HTTP1.1 even though I set the default version to 2.0

What is the status on S3 supporting http2 (also interested in doing this with c# .net core 3.1).  I am mostly concerned about performance improvements for the multipart upload.

Any update here?

Please consider adding this feature


Keys lose track of state when scene paused

If you're holding a key (e.g. holding down after a createCursorKeys() call) and the scene gets paused, that key will remain in its isDown state even when the key is depressed whilst paused.
Here's an example against 3.10.1:
https://codepen.io/DannyT/pen/LrwgVe

Hold down key
click to pause and switch scene
depress down and press space to switch back
isDown is maintained and lose your hotdog forever :(

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

I have been having this same problem but on changing scenes.  A temporary solution for me has been having a clearKeys() function that I call whenever I change scenes:
  clearKeys () {
    this.input.keyboard.removeKey(Phaser.Input.Keyboard.KeyCodes.ENTER)
    this.input.keyboard.removeKey(Phaser.Input.Keyboard.KeyCodes.UP)
    this.input.keyboard.removeKey(Phaser.Input.Keyboard.KeyCodes.DOWN)
  }

and that fixes the problem, the key just has to be re-added every time.

I was banging my head around this too.
For anyone having this issue, I found https://photonstorm.github.io/phaser3-docs/Phaser.Input.Keyboard.KeyboardPlugin.html#resetKeys__anchor
Listening for the Phaser.Scenes.Events.PAUSE event in the scene, and the calling resetKeys() in the event handler seems to do the trick.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.


[Event/External Request] Codeunit 7324 Whse.-Activity-Post

Describe the request
Hi team, we'd like the following 2 extensibility changes made to Codeunit 7324 Whse.-Activity-Post

Expose GetLocation function as public.
Add event OnPostWhseActivityLineOnBeforeCreatePostedActivHeader with IncludeSender = true.

Call this right before CreatePostedActivHeader in function PostWhseActivityLine.
IncludeSender is required so we can call GetLocation on this codeunit ourselves.

// Expose Function
procedure GetLocation(LocationCode: Code[10])
begin
    if LocationCode = '' then
        Clear(Location)
    else
        if Location.Code <> LocationCode then
            Location.Get(LocationCode);
end;

local procedure PostWhseActivityLine(WhseActivHeader: Record "Warehouse Activity Header"; var WhseActivLine: Record "Warehouse Activity Line")
// ...
 // New Event Call
OnPostWhseActivityLineOnBeforeCreatePostedActivHeader(WhseActivHeader);
CreatePostedActivHeader(WhseActivHeader, PostedInvtPutAwayHeader, PostedInvtPickHeader);

// ...

// Include Sender Required
[IntegrationEvent(true, false)]
// New Event
local procedure OnPostWhseActivityLineOnBeforeCreatePostedActivHeader(var WhseActivHeader: Record "Warehouse Activity Header")
begin
end;

Thanks
Additional context
This will help us modify the warehouse activity header location code as before it's posted.
Internal work item: AB#540876

Event will be added in the next minor in v24.
Exposing GetLocation as global will have to wait until v25.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 21820.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 21820.


Skywalking about asynchronous monitoring

Please answer these questions before submitting your issue.

Why do you submit this issue?
[x] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?
Scenario: in an HTTP request, sometimes an asynchronous call is made (such as mq)
Question: can skywalking's traceid be passed to mq's processing log at this point?

If you make the tracing works with your across thread case, then yes. Read plugin development documentation. They are there.


Construct a CommonSchemaInfo for testing

If you accept, please don't merge. I don't want to clutter the base branch yet.

Seems fine to me.


resolve string type error in GTBlob.m

macosx: 10.13.4, XCode Version 9.3 (9E145)
reported this error compiling line 43 in GTBlob.m:
Format specifies type 'ssize_t' (aka 'long') but the argument has type 'git_off_t' (aka 'long long')
and suggested this fix:
Replace '%zi' with '%lli'
After applying the change xcode built objective-git successfully

@tiennou Travis is still building on Xcode 8.3. Maybe worth an update too. 😀


How to extend the library

Hi dear(s).
I want to add some other words and suggestions to this library, please tell me how can I do this?
Also, where are the reference files in source codes such as 'en_US_GB_CA_lower.txt' or 'en_US_GB_CA_mixed.txt'?

Hi both,
I just found out that these files are compressed into the words.bz2. It's a compressed file format so just use tools like 7-zip and you will be able to open it and find all the 'en_US_GB_CA_lower.txt', 'en_US_GB_CA_mixed.txt' and 'big.txt'.
Cheers


added success message after image update

My PM asked me many-a-time, if the image is now really stored, because it's simply gone after clicking the update button in the bulk-image-upload.
Can we add a ui feedback like this?

Hi @shredding thanks for addressing this.
However there's an existing PR to remove the separate upload interface altogether, instead having users upload images directly into the image listing. That gives them the feedback they need as the images upload: https://github.com/torchbox/wagtail/pull/1234
I think I'd rather we take #1234's approach rather than trying to main a separate interface any more.
Please feel free to try out 1234 and perhaps even add your tweaks to that instead.

perfect.

It's not clear to me what the current status of #1234 is, and what the prospects of it are of it getting completed/merged any time soon. Until that's determined, I don't think we should put off making incremental improvements to the existing interface, so I'll reopen this.

Fair point re #1234. It's not something I'm going to have time to address in the near future and the changes @shredding has done here are so minor they might as well be merged in the meantime.

Note that #1234 is now complete.

Merged in 6422c7f61869084fae8f2e0de9e24d56ef9e1729 - thanks!


downgrade sequelize back to the lastest 3.x

Because right now we don't need what the 4.0 brings to the table and upgrading sequelize introduce breaking changes, when we need to focus on features, I suggest we revert back to the latest 3.x

Thanks for this @zhakkarn

Thanks for this @zhakkarn

Thanks guys


CLI: add support for custom ui directory

Describe the feature
This would align with shadcn cli option as of https://github.com/shadcn-ui/ui/pull/2266.
Use case: Need to label all shadcn components explicitly, e.g. as there might be issues with changes/updates.

Duplicate of #547


Can't open local files in the editor on macOS (when running from the app icon)

Repro steps (on macOS, after running the app normally by double-clicking it):
// Execute this line:
/editor/open docs/tutorial-controls.osc

(or any other file in the resource directory)
You will get an empty editor (you won't have the contents of that file, although it does exist).

Fixed by a8d033d. At least, it's an interim solution. It will retry explicitly, when opening files with locally-specified paths (like docs/tutorial-controls.osc), after prepending the executable location. Also, it will no longer clear the editor when it fails to open a file!
We should rethink how the assets directory is specified (so you don't need to have them in the same directory as the executable), but that's a separate issue.

Also added 00747f4 (to make it less verbose). Also updated the README with info about how to run Animatron on macOS, dealing with Gatekeeper and quarantine flags.


Failed to connect to istio-telemetry port 42422: Connection refused

Docker Image docker.io/istionightly/mixer:circleci-nightly
It appears that mixer is not listening on port 42422 for prometheus metrics. I validated that the service exists and has the port definitions
root@istio-ingressgateway-694c49556f-42fss:/# curl "istio-telemetry:42422/metrics"
curl: (7) Failed to connect to istio-telemetry port 42422: Connection refused

@mandarjog

same issue on gcr.io/istio-testing/mixer:923dcb80da79f2ce2035d4afd6438f6225b78e38

These images should be going through a set of e2e tests that validate this behavior. Are you missing configuration?

This was due to the istio-mixer-create-cr job not running on deployment. I ran it and all is good

hi @nmnellis , i'm having the same issue and I see you managed to fix it.
I'm using helm to deploy it. but can't find anything on this job. can you explain what this job is a bit ?

in helm there is a post "hook" that populates the config for mixer. if this hook doesn't run, mixer has no context. since this issue is older there is a chance that the config isn't loaded via these means anymore


Bypass lose scenario exploit

I just found a way to make it so you don't lose even if you have no souls left. I basically got into a glitchy dialogue state with the Devil, and while he's talking I was able to spam next day and spam balls, and I somehow went from 2 souls left to 0 directly. Then, I didn't get the you lose screen or dialogue, and am able to click next day and continue playing with no consequences.

After playing more, when I met the devil, it played the 1 soul left dialogue, indicating a visual bug. After losing again, then the lose scenario plays as normal. (But devil dialogue got cut off when the music started).

This should be resolved with my most recent commit that changes the next day functionality #56, but I'm not sure. If you are unable to replicate it, we can mark it as resolved.


自定义的图标 如何使用figma插件呢 还有vscode插件  如果能提供这样的功能就是最棒的

自定义的图标 如何使用figma插件呢 还有vscode插件  如果能提供这样的功能就是最棒的

Are you asking how to use Figma plugin with custom API?
I'm not sure what the question is related to VSCode.

Yes, I have deployed it privately, how to use my own api on the figma plugin.
It would be nice if the vscode plugin could also support the API for privatized deployment

Currently it cannot be added, but that might be possible in new version.
As for VSCode plugin, I do not have any VSCode plugins, so you need to contact author of plugin you are using.


Make it explicit that sequences defined for Hi-Lo are not suitable for "normal" key generation

I'd really appreciate if the documentation on sequences were a bit clearer and address some common usage scenarios...
Perhaps I'm experiencing this because I'm using Oracle with Oracle.EntityFrameworkCore (beta4) or perhaps the docs need to be clearer in what actually happens/how to accomplish the following...
I have a database that already exists, I expect the primary key column to be the next value in a sequence (although not set by a trigger). I think this scenario is pretty common.
A typical insert here would be something like...
insert into Person (personid, ...) values (PersonIdSequence.nextval, ...);
If I define the model as follows:
        modelBuilder
            .Entity<Person>()
            .Property(x => x.Id)
            .ValueGeneratedOnAdd()
            .ForOracleUseSequenceHiLo("PersonIdSequence");

I get the following annotation logged at runtime (note the 10):
Relational:Sequence:.PersonIdSequence: ' PersonIdSequence ', '', '1', '10', '', '', 'Int64', 'False'
If I enter a row with one instance of my application, the sequence is used (lets say I get the number 10 for this insert)
If I now open a database session and insert a row
insert into Person (PersonId) values (PersonIdSequence.nextval);
commit; -- creates row 11 for this insert
If I enter another row with an instance of my application, I expect the row to be inserted with id=12, but I actually get 11... an exception is throw and no data inserted.
Changing the definition of my model as follows:
        modelBuilder
            .HasSequence(PersonIdSequence)
            .IncrementsBy(1);

        modelBuilder
            .Entity<Person>()
            .Property(x => x.Id)
            .ValueGeneratedOnAdd()
            .ForOracleUseSequenceHiLo(PersonIdSequence);

Results in the following annotation logged at runtime
Relational:Sequence:.PersonIdSequence: ' PersonIdSequence ', '', '1', '1', '', '', 'Int64', 'False'
... and all my inserts appear to work as expected.
I think what is happening is that Entity Framework is generating the next 10 sequence numbers in the first example (maybe?), and always going back to the database to get the next sequence in the second example.
I know this is related to Oracle sequences, but the documentation here on using Sequences in EntityFramework Core is, in my opinion, unclear. Providing more information about how I should define sequence for this scenario would be helpful (I'd have thought using a sequence for a primary key with/without a trigger was a pretty common scenario, but I could be wrong).

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

ID: cada79d3-c141-0a42-2fc1-522d7aa408a5
Version Independent ID: d1afcfe2-99d4-d7bf-f632-17be38cef2e3
Content: Sequences - EF Core
Content Source: entity-framework/core/modeling/relational/sequences.md
Product: entity-framework
Technology: entity-framework-core
GitHub Login: @rowanmiller
Microsoft Alias: divega

This article is unclear.


Fix #4590: Usage through query log file

Describe your changes :

Fix #4590: Usage through query log file

Type of change :

[x] Improvement
[x] New feature

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

@open-metadata/ingestion

Thanks for the changes @ulixius9. Looks great having it centralised. Pinging @ayush-shah in case he has some comments 🙏


Add Renesas CK-RX65N

Thank you for contributing to the IoT Plug and Play Models repository
:memo: Please review this checklist before submission

[x] :eyes: The models submitted in this PR follow the DTDL Naming Guidelines for contributing to this repository.
[x] 🕵I have validated the models locally using the dmr-client command line tool.
[x] ❗ I understand once the PR is approved, the models are considered immutable: any edits will require to submit new files.
[x] ✨ When creating a new top level dtmi:namespace, I have completed the PR Info Template below.

:zap: PR validation steps are described in the tools Wiki.
PR Info Template
When submitting models to the repository we ask that you provide as much of the following meta information around your models and related devices as possible. This info will be used to improve the IoT Plug and Play ecosystem.
👇: Please replace the markdown comment examples with your own values.
Company Info

Info identifying your company (if applicable).

Renesas Electronics

IoT Plug and Play Device Info

Info identifying your device.

Devkit sample

Model Submission Goals

Info related to broader submission goals.

IoT Central integration

Code Owners & Reserved Names

Indicates GitHub alias entries to be added to the repo CODEOWNERS for the incoming model namespace. The codeowner is expected to be involved in subsequent DTDL model submissions against the same namespace.

@TatsuyaOgawanx

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact<EMAIL_ADDRESS>with any additional questions or comments.

Thank you for pointing out. I am fixing it.


Is there a wrong img?

@MoeShan commented on Wed Jun 13 2018
https://docs.microsoft.com/zh-cn/aspnet/mvc/overview/getting-started/introduction/adding-a-controller
image 8  should be like newimage8

@MoeShan you're correct.


Excel output is missing To Field

I am presently using your latest build with an exported configuration from Palo Alto FW version 7.0. The file I am working with in just a standard running-config.xml. When I use the action=exportToExcel:file.xls
the results provided are missing the To field.
All the rules are processed correctly and the overall counter appears to be correct also, however, when I load the excel file my columns at the top are listed in this order:

Please let me know if there is any further information I can provide and if this is something being resolved as I was really hoping to leverage your tool to parse my rules into an Excel format for easy editing.

hi
it should be fixed in latest version
thx for reporting

Thanks for the very prompt followup!! I wanted to confirm that the latest version is working without any issues at all.. Thanks for the great tool and keep up the work! :+1:

you are welcome. Cheers

Thanks again Christophe...
I did notice one additional component that is missing from the action for exportToExcell when used with the security rules. Can you tell me if it was intentional that some of the fields that are in the xml are not available - for instance, it seems that 'Source User' is not present nor is the "log option" (the policy used for logging).
If it is just an oversight could you make those fields also available in that function (most importantly for myself would be that Source User option).
Thanks again for all your efforts and keep up the great work!
Mark

From: Christophe<EMAIL_ADDRESS>Sent: Monday, January 04, 2016 9:39 AM
To: PaloAltoNetworks-BD/pan-configurator
Cc: Krajcovic, Mark
Subject: Re: [pan-configurator] Excel output is missing To Field (#9)
Closed #9https://github.com/PaloAltoNetworks-BD/pan-configurator/issues/9.

Reply to this email directly or view it on GitHubhttps://github.com/PaloAltoNetworks-BD/pan-configurator/issues/9#event-504811211.

Please consider the environment before printing this email.

This email, including any attachments, is the property of the Niagara Catholic District School Board. This information is intended only for the use of the individual to whom, or entity to which, it is addressed and may contain information that is privileged, confidential and exempt from disclosure under the Municipal Freedom of Information and Protection of Privacy Act. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you received this transmission in error, please notify the sender immediately and then permanently delete this message.

I just made an update for source users and log-profile in excel, can you try it ?

I’d be more than happy too..  Man you are on the ball.. I like when I converse with other dev’s that are prompt like myself. Nothing like seeing that issues are being addressed and the project still has life flowing ;)
I’ll let you know the outcome shortly..  just have to clone the source and test it out.
Thanks again
Mark
From: Christophe<EMAIL_ADDRESS>Sent: January-07-16 4:53 AM
To: PaloAltoNetworks-BD/pan-configurator<EMAIL_ADDRESS>Cc: Krajcovic, Mark<EMAIL_ADDRESS>Subject: Re: [pan-configurator] Excel output is missing To Field (#9)
I just made an update for source users and log-profile in excel, can you try it ?
—
Reply to this email directly or view it on GitHubhttps://github.com/PaloAltoNetworks-BD/pan-configurator/issues/9#issuecomment-169613314.

Please consider the environment before printing this email.

This email, including any attachments, is the property of the Niagara Catholic District School Board. This information is intended only for the use of the individual to whom, or entity to which, it is addressed and may contain information that is privileged, confidential and exempt from disclosure under the Municipal Freedom of Information and Protection of Privacy Act. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you received this transmission in error, please notify the sender immediately and then permanently delete this message.

you're welcome, let me know how that works


custom_database

Hi!
I have a question regarding the use of a custom database to blast on? Are there any files that need to accompany the database? Any specific format. I want to have everything ready to avoid the pipeline to try to connect to NCBI since I often get connection problems.
Thank you in advance for any information :)

--2024-08-09 10:17:27--  ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/new_taxdump/new_taxdump.tar.gz
=> ‘/lustre/groups/hpc/urban_lab/datasets/ncbi/natrix/.listing’
--2024-08-09 10:17:27--  ftp://ftp.ncbi.nlm.nih.gov/blast/db/
=> ‘.listing’
Resolving ftp.ncbi.nlm.nih.gov (ftp.ncbi.nlm.nih.gov)... Resolving ftp.ncbi.nlm.nih.gov (ftp.ncbi.nlm.nih.gov)... <IP_ADDRESS><IP_ADDRESS>, , <IP_ADDRESS><IP_ADDRESS>, , <IP_ADDRESS><IP_ADDRESS>, ..., ...
Connecting to ftp.ncbi.nlm.nih.gov (ftp.ncbi.nlm.nih.gov)|<IP_ADDRESS>|:21... Connecting to ftp.ncbi.nlm.nih.gov (ftp.ncbi.nlm.nih.gov)|<IP_ADDRESS>|:21... failed: Connection timed out.
failed: Connection timed out.
I cant seem to get past this, no matter the quality of the connection

Thank you for providing the details of your issue. You can try manually downloading the required files for the BLAST database and placing them in the appropriate directory (e.g., database/ncbi/). As long as all the necessary files are in place, Snakemake should utilize the local files without any issues. However, please note that Snakemake might still attempt to establish a brief connection to synchronize or validate the files.
If this approach doesn't resolve the issue, there could be other factors at play, such as a firewall blocking the connection. Unfortunately, an offline mode isn't currently configurable within the Snakemake settings. If you could share your configuration file with me, I'd be happy to take a closer look and help you troubleshoot further.
If you have any additional questions, feel free to reach out at any time.
Best regards,
Dustin


使用页面上提供的资源推荐采纳命令报错

Describe the bug
运行采纳命令，报以下错：
The Deployment "xxx" is invalid: spec.template.spec.containers[0].image: Required value
Environment (please complete the following information):

K8S Version: [e.g. 1.19]
Crane Version: [e.g. 0.9.0]

Please provide the yaml for recommendation.

Please provide the yaml for recommendation.


no such file or directory error when executing "source /opt/ros/galactic/setup.bash"

I'm on Ubuntu 20.04 and I tried to set up the environment for cyberdog_sim, but it failed when I executed the following command in the folder cyberdog_sim:
source /opt/ros/galactic/setup.bash

The log result is: no such file or directory: /home/xx/cyberdog_sim/setup.sh
I checked /opt/ros/galactic/setup.bash and cyberdog_sim/cyberdog_sim.repos, and I think maybe no setup.sh will be generated in the folder cyberdog_sim.
Could you please kindly give me some advice on how to solve the problem? Many thanks!

Hello, have you followed the installation and compile instructions on the readme page?
Could you please provide a detailed description of your installation process and where exactly the error occurs?

Hi Alkrick! Thank you so much for your reply (and for the tips you mentioned in issue #3). I failed to get any notifications for your reply so I replied late. Sorry about that.
I found out that the problem was
I solved the problem following https://stackoverflow.com/questions/54452054/ros-installation-no-such-file-or-directory. It was because I was on zsh instead of bash, and zsh interprets the file in a different way.
Thank you so much!


Local browser cannot access ionic4 www/index.html

Using the command ionic build --prod packaged www, index.html browser can not be directly accessed, must be deployed to the web server to access. How to configure to allow local access like ionic3.
Error message:
Access to script at 'file:///C:/Users/Administrator/Desktop/www/runtime-es2015.847c257376eede5504e2.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. runtime-es2015.847c257376eede5504e2.js:1 Failed to load resource: net::ERR_FAILED

Is it related to ES6?


Id of WAL operation can not be duplicated

OrientDB Version: 3.1.9
Java Version: 8
OS: win
Expected behavior
After successful shutdown, startup should be also successful. Actually it should be successful in any case.
Actual behavior
Startup is started to fail with the following exception:
2021-03-20 20:11:18:631 INFO  Storage OSystem , scan all pages to find the latest operation stored into the files, if you wish to skip this step to speed up data restore but decrease durability guarantees please set flag storage.checkLatestOperationId to the false [OLocalPaginatedStorage]
2021-03-20 20:11:18:637 INFO  Scanning of file ouser.pcl in storage OSystem (0 out of 67 files are scanned) [OLocalPaginatedStorage]Exception during storage data restore
java.lang.IllegalStateException: Id of WAL operation can not be duplicated
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.fetchNextOperationId(OAbstractPaginatedStorage.java:6502)
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.restoreFromBeginning(OAbstractPaginatedStorage.java:6221)
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.restoreFromWAL(OAbstractPaginatedStorage.java:6161)
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.recoverIfNeeded(OAbstractPaginatedStorage.java:5320)
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:401)
        at com.orientechnologies.orient.core.db.OrientDBEmbedded.getAndOpenStorage(OrientDBEmbedded.java:500)
        at com.orientechnologies.orient.core.db.OrientDBEmbedded.openNoAuthorization(OrientDBEmbedded.java:455)
        at com.orientechnologies.orient.core.db.OrientDBEmbedded.openNoAuthorization(OrientDBEmbedded.java:79)
        at com.orientechnologies.orient.server.OSystemDatabase.openSystemDatabase(OSystemDatabase.java:93)
        at com.orientechnologies.orient.server.OSystemDatabase.checkServerId(OSystemDatabase.java:169)
        at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:157)
        at com.orientechnologies.orient.server.OSystemDatabase.<init>(OSystemDatabase.java:50)
        at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1275)
        at com.orientechnologies.orient.server.OServer.activate(OServer.java:445)

Hi,
As I can see shutdown was not successful, that is seen because system start to scan WAL.
"2021-03-20 20:11:18:631 INFO  Storage OSystem , scan all pages to find the latest operation stored into the files, if you wish to skip this step to speed up data restore but decrease durability guarantees please set flag storage.checkLatestOperationId to the false [OLocalPaginatedStorage]
2021-03-20 20:11:18:637 INFO  Scanning of file ouser.pcl in storage OSystem (0 out of 67 files are scanned) [OLocalPaginatedStorage]Exception during storage "
Also, did you perform an upgrade of the library after the shutdown?

@laa , I agree that it looks strange that it started to scan, but the previous shutdown was successful per logs: at least no exceptions or error messages.
Originally db was created under 3.1.5, then library changed to 3.1.9 and it was working for some period of time under 3.1.9 till one day it started to fail as I posted.

I'm having the same issue, for 3 or versions now.   Most recently because the server was rebooted without shutting down OrientDB correctly,  tho there was no activity on the database during the time the server shutdown.
I can no longer load the database with this error.  Cannot even load the DB in console for repair.  Is there any work around for this?  IMHO, the error is a bit obtuse.  Is there a better explanation of what the error means?

Andrey, I am not sure if you noticed yet, but there are three bug reports on the same issue. This issue appears bigger than just a corrupted database. Would you consider investigating this?

Encountered again into the same issue on OrientDb 3.1.10.
Orienteer_IdWalDuplicated.zip
I was doing nothing illegal: just debugging testcases for non OrientDB related code. Testcase itself closed DBproperly: was no issues, but next run DB was already broken.

@laa , please share some insights about this issue. Just got the same on one of our productions... Sad to loose half-day data:(

Downgrading to Orient DB 3.1.7 seems to help. Perhaps downgrade?

Hi @PhantomYdn  @jamieb22  is right you can downgrade to 3.1.7 and then upgrade back to the version you needed. I will check your database once I have time.

Andrey, do you have any unit tests part of build process that test the upgrade and downgrade of Orient DB? Perhaps, the reason why so many people experience problems with upgrade & downgrade, is because the test coverage in this area needs to be more thorough.

Andrey. I see you added support for large files >2GB in WAL. Thank you for looking into this. I obviously do not know ODB internals, however, the attached database has the duplicate WAL issue observed when attempting to open it using v3.2.0 and there is no 2 GB WAL file present. Furthermore, if I delete the WAL files, the issue appears again. In fact,  no matter what I try, I cannot the db using 3.2.0. I need to downgrade to V3.1.7.
OSystem.zip

Incidentally, I tried the latest SNAPSHOT on master branch to see if it would work. The duplicate WAL Id issue appears to be gone. I see a bunch of these messages:
2021-09-07 21:21:23:836 INFO  35 RidBags out of 226 are migrated ... PLEASE WAIT FOR COMPLETION ! [OSBTreeCollectionManagerShared]
2021-09-07 21:21:23:836 INFO  Migration of RidBag for cluster #77 is started ... PLEASE WAIT FOR COMPLETION ! [OSBTreeCollectionManagerShared]
Then after a while it started, to output an error.
2021-09-07 21:17:07:509 INFO  Page size for WAL located in /mnt/volume_ams3_02/databases/orient/maliebaan45 is set to 4096 bytes. [CASDiskWriteAheadLog]Error during WAL writing
java.lang.IllegalStateException: There should be at least one record in the queue which has valid position
at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.CASDiskWriteAheadLog.calculateRecordsLSNs(CASDiskWriteAheadLog.java:1488)
at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.CASDiskWriteAheadLog.logMilestoneRecord(CASDiskWriteAheadLog.java:1517)
at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.CASDiskWriteAheadLog.access$1200(CASDiskWriteAheadLog.java:85)
at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.CASDiskWriteAheadLog$RecordsWriter.run(CASDiskWriteAheadLog.java:1742)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread 'OrientDB WAL Flush Task'
It just Outputs the following over and over. Since it is in the middle of a Ridbag conversion process, I am loathe to restart.
2021-09-07 21:25:29:442 SEVER Can not flush data because of issue during data write, java.util.concurrent.ExecutionException: java.lang.IllegalStateException: There should be at least one record in the queue which has valid position [OWOWCache$PeriodicFlushTask]

Then, I see the following outputted continually:
Caused by: com.orientechnologies.orient.core.exception.OStorageException: File global_collection_120.grb has already been added to the storage
at com.orientechnologies.orient.core.storage.cache.local.OWOWCache.bookFileId(OWOWCache.java:624)
at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperationBinaryTracking.addFile(OAtomicOperationBinaryTracking.java:342)
at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent.addFile(ODurableComponent.java:190)
at com.orientechnologies.orient.core.storage.index.sbtreebonsai.global.btree.BTree.lambda$create$0(BTree.java:53)
at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperationsManager.executeInsideComponentOperation(OAtomicOperationsManager.java:173)
... 17 more

Hi @jamieb22 could you provide your database so I will check those issue ?

@jamieb22 about the absence of the big WAL files, they are typically very short living and you likely will not notice them just by inspection of the directory. I am working on the fix for the 3.1 version too. Would be cool if you try it on your databases before I merge it.

I will certainly try it out on our databases. I will  also see if I can supply you one. I am getting lots of other errors with the latest SNAPSHOT master branch version. I am also seeing the below exception. I never got this before the upgrade and our code has not changed.
Caused by: com.orientechnologies.orient.core.exception.ODatabaseException: The database instance is not set in the current thread. Be sure to set it with: ODatabaseRecordThreadLocal.instance().set(db);
at com.orientechnologies.orient.core.db.ODatabaseRecordThreadLocal.get(ODatabaseRecordThreadLocal.java:61)
at com.orientechnologies.orient.core.sql.query.OSQLQuery.deserializeQueryParameters(OSQLQuery.java:147)
at com.orientechnologies.orient.core.sql.query.OSQLQuery.queryFromStream(OSQLQuery.java:137)
at com.orientechnologies.orient.core.sql.query.OSQLSynchQuery.queryFromStream(OSQLSynchQuery.java:147)
at com.orientechnologies.orient.core.sql.query.OSQLQuery.fromStream(OSQLQuery.java:109)
at com.orientechnologies.orient.core.serialization.serializer.stream.OStreamSerializerAnyStreamable.fromStream(OStreamSerializerAnyStreamable.java:86)
... 4 more

FYI: This duplicate WAL Id iissue is still present in 3.2.2. To reproduce the issue, sample database can be downloaded from #9542.

Hi, @jamieb22 that is because the fix was reverted. I am working on the final touches and will send you an update once it is done.


Equal to empty string

Equal to empty string seems not to work in complex expressions.
I want to verify that the value in the variable is not an empty string.
PS: What will be the case for null? To verify that value is not null?

Comparison will null will require the user of the library to introduce a variable that states for null.
Improved empty text comparison will be available in 1.0.6 version.