Database problem: OSError: Unable to open file (file is already open for read-only)

I added an object
from species.data.database import Database
database = Database()
database.add_object('Objekt1', parallax = …  # set properties
    )

but then mistyped when looking for it later: database.get_object('Abject1'), leading to
KeyError: "Unable to open object (object 'Abject1' doesn't exist)"

Afterwards, I try to delete 'Objekt1' through database.delete_data('objects/Objekt1') but get an HDF5 error:
h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/h5f.pyx in h5py.h5f.open()

OSError: Unable to open file (file is already open for read-only)

How can I recover from here without quitting the session and restarting? And would it be possible to catch these errors and close the file in the background?

Thanks for opening this issue! I think that I have fixed this by using a context manager in the add_object when opening the HDF5 file. This is part of commit 9a4923e0c992a0d83d8ede9632ecf3a64b817b23, so can be pulled from Github.
I wasn't able to reproduce the issue by the way. I was running it from a regular script. Are you using a notebook instead? Doesn't matter, just wondering what the reason might be.

Thanks for your quick action! I was doing this "by hand" (pasting in commands) in ipython3. To try out your changes, I did git pull in my root species directory and then pip install -e . and now I get
~$ pip install -e .
Obtaining file://[…]/species
Collecting astropy~=5.2.0
  Downloading astropy-5.2.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (11.4 MB)
     |████████████████████████████████| 11.4 MB 1.3 MB/s
Requirement already satisfied: astroquery~=0.4.0 in /home/gabriel/.local/lib/python3.8/site-packages (from species==0.7.4) (0.4.6)
Requirement already satisfied: corner~=2.2.0 in /home/gabriel/.local/lib/python3.8/site-packages (from species==0.7.4) (2.2.1)
Requirement already satisfied: emcee~=3.1.0 in /home/gabriel/.local/lib/python3.8/site-packages (from species==0.7.4) (3.1.3)
Collecting exo-k~=1.2.0
  Downloading exo_k-1.2.2-py3-none-any.whl (174 kB)
     |████████████████████████████████| 174 kB 1.3 MB/s
Collecting h5py~=3.9.0
  Downloading h5py-3.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB)
     |████████████████████████████████| 4.8 MB 1.3 MB/s
ERROR: Could not find a version that satisfies the requirement matplotlib~=3.8.0 (from species==0.7.4) (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 3.0.0rc2, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0rc1, 3.1.0rc2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0rc1, 3.2.0rc3, 3.2.0, 3.2.1, 3.2.2, 3.3.0rc1, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4.0rc1, 3.4.0rc2, 3.4.0rc3, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.5.0b1, 3.5.0rc1, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.6.0rc1, 3.6.0rc2, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.7.0rc1, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 3.7.4)
ERROR: No matching distribution found for matplotlib~=3.8.0 (from species==0.7.4)

Maybe it was not necessary to do pip install -e . as for the first installation? But it should not have hurt…
In any case, it seems the installation of the update worked because now I get:
ValueError: The argument of  'object_name' is set to 'Abjekt1' but the data is not found in the database.

and I am able to delete the data afterwards without an error. Thanks! I can open a separate issue (probably a silly mistake on my side) about the ERROR: No matching distribution found for matplotlib error, if you wish, and/or you can mark this present issue as closed.

Great! Indeed no need to pip install again after pulling from Github when you used -e.
Not sure why it doesn't find a match for matplotlib. Testing of the installation by the Actions seems to run fine.
Best to install species in a virtual environment so there is no clash with other dependency versions.

Ok, thanks a lot!


LogStacktrace: replace raw array with std::array<>

Test: builds

Ahh, sorry - misunderstood the comment in the original PR. Lgtm!

Ahh, sorry - misunderstood the comment in the original PR. Lgtm!


Have titles for columns in deck sorting + card count in piles

It would help with navigation in, arrangement and overall handling of your deck a lot.

Titles for columns in deck sorting
Could be above/at top of the colum box as a typical headline title, or even at the buttom of the column box as a more subtle hint.

E.g in rarity mode:
Common, Uncommon, Rare...
And so on for colour and type as well.

Card count per column/pile
Including a count as well to show you the quantity of cards in that pile.
Could be in brackets behind the title or in the lower corner of the column for example.

I really like having the card count for columns! But I'm less on board with labelling the columns, because after sorting you can start modifying the columns, and the labels will gradually make less sense, so it won't be clear to us when we should get rid of them as you drag cards around. Curious if you have an idea for how to handle that user experience.

Good point. The first thing that pops to my head is that the titles could get greyed out once cards in the pile doesn't fit the sorting anymore.


Use again the cpuset after compare function fix

Waiting for the fix to be merged:
https://github.com/nodejs/node/pull/52456

(as a nit please prefer creating branches on your fork, it gets quite unwieldy in terms of branches otherwise)


accept failure when casting

Some datasets have wildcards to indicate missing values. Not the best practice but I can see why. For example imagine a column that was like "12345,N/A,123155".
So, I would like to do something like CAST(x as BIGINT DEFAULT NULL), which would produce 12345,NULL,123155. This is like Clickhouse's toInt64OrNull.

We will likely introduce some TRY/CATCH facility to support this and related use cases.

We will likely introduce some TRY/CATCH facility to support this and related use cases.

Elegant.

Elegant.

Sorry this was closed by accident

Sorry this was closed by accident

TRY_CAST exists now (see #2050).


KAFKA-7799: Use httpcomponents-client in RestServerTest.

The test org.apache.kafka.connect.runtime.rest.RestServerTest#testCORSEnabled assumes Jersey client can send restricted HTTP headers(Origin).
Jersey client uses sun.net.www.protocol.http.HttpURLConnection.
sun.net.www.protocol.http.HttpURLConnection drops restricted headers(Host, Keep-Alive, Origin, etc) based on static property allowRestrictedHeaders.
This property is initialized in a static block by reading Java system property sun.net.http.allowRestrictedHeaders.
So, if classloader loads HttpURLConnection before we set sun.net.http.allowRestrictedHeaders=true, then all subsequent changes of this system property won't take any effect(which happens if org.apache.kafka.connect.integration.ExampleConnectIntegrationTest is executed before RestServerTest).
To prevent this, we have to either make sure we set sun.net.http.allowRestrictedHeaders=true as early as possible or do not rely on this system property at all.
This PR adds test dependency on httpcomponents-client which doesn't depend on sun.net.http.allowRestrictedHeaders system property. Thus none of existing tests should interfere with RestServerTest.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

retest this please

@gwenshap Can you please review this? This test is failing almost every time (29 out of 30) with Java 11.

Update: in order to not depend on sun.net.http.allowRestrictedHeaders system property in unit tests, I've introduced httpcomponents-client as a test dependency and updated RestServerTest to use it.

Thanks for your review @kkonstantine! I've updated the PR description with the latest approach which I've taken.

LGTM

@avocader @rhauch Does this require cherrypicking into another branch?

@gwenshap this has to be cherry-picked to branches 2.0, 2.1, 2.2. Thanks!

@gwenshap Yes, please cherry-pick. Test failed in 2.2 last night again: https://builds.apache.org/blue/organizations/jenkins/kafka-2.2-jdk8/detail/kafka-2.2-jdk8/12/tests

Sorry, missed the responses! Will cherry-pick!

@avocader cherrypicking into 2.1 and 2.0 have some conflicts, if we need this fix on those branches perhaps a new PR would be better (I prefer not to cherrypick when there are conflicts).


Add URDF files for simulation.

This files are needed for the Simulation repositories.
This can be tested using this instructions.
The main changes are the follwing:

adding new options into *.ros2_control.urdf
using more explicit names for mashes so that Gazebo and Ignition can load them.

Is it really that beneficial to create a second file?

I am glad to merge those. There is only one issue:

The explicit filenames will not work, as we don't have all meshes for each robot. E.g. the ur16e shares most meshes with the ur10e. At least that last point has to be handled. It might be a better solution to use the file://$(find ur_description)/meshes/${name}/visual/base.dae options inside the visual config files instead. Rviz and other ROS instances should be able to handle the paths that way, as well, right?

Rviz is not a problem. But using this definition in yaml files will not be resolved correctly in xacro file. The exact string will be used instead. So we have to at least add 6 ifs arround visual meshes. This is actually the only issue. Everything else is easily solvable.

Something like this could work (the visual changed, the collision is left as in this PR)
      <visual>
        <origin xyz="0 0 0" rpy="0 0 ${pi}"/>
        <geometry>
          <mesh filename="file://$(find ${mesh_package})/meshes/${ur_model}/visual/base.dae"/>
        </geometry>
      </visual>
      <collision>
        <origin xyz="0 0 0" rpy="0 0 ${pi}"/>
        <geometry>
          <mesh filename="file://$(find ur_description)/meshes/${name}/collision/base.stl"/>
        </geometry>
      </collision>

Seems to get translated by xacro directly:
/opt/ros/foxy/bin/xacro /home/mauch/robot_folders/checkout/ur_ros2_description/colcon_ws/install/ur_description/share/ur_description/urdf/ur_simulation.urdf.xacro joint_limit_params:=/home/mauch/robot_folders/checkout/ur_ros2_description/colcon_ws/install/ur_description/share/ur_description/config/ur5e/joint_limits.yaml kinematics_params:=/home/mauch/robot_folders/checkout/ur_ros2_description/colcon_ws/install/ur_description/share/ur_description/config/ur5e/default_kinematics.yaml physical_params:=/home/mauch/robot_folders/checkout/ur_ros2_description/colcon_ws/install/ur_description/share/ur_description/config/ur5e/physical_parameters.yaml visual_params:=/home/mauch/robot_folders/checkout/ur_ros2_description/colcon_ws/install/ur_description/share/ur_description/config/ur5e/visual_parameters.yaml safety_limits:=true safety_pos_margin:=0.15 safety_k_position:=20 name:=ur5e prefix:="" gazebo_sim:=true simulation_controllers:=/home/mauch/robot_folders/checkout/ur_ros2_description/colcon_ws/install/ur_simulation_gazebo/share/ur_simulation_gazebo/config/ur_controllers.yaml | grep base | grep filename
        <mesh filename="file:///home/mauch/robot_folders/checkout/ur_ros2_description/colcon_ws/install/ur_description/share/ur_description/meshes/ur5e/visual/base.dae"/>
        <mesh filename="file:///home/mauch/robot_folders/checkout/ur_ros2_description/colcon_ws/install/ur_description/share/ur_description/meshes/ur5e/collision/base.stl"/>

@destogl If you like, I can take this and make another proposal with the changes discussed above.

I've created a separate PR regarding the compatibility issues. With that it should be easily possible to create a shared xacro file that also supports simulation.

@fmauch can you please review this PR? See description for details how to test.

There seem to be merge conflicts. I'll rebase to solve them


Mime type

I was trying to load my javascript file from firefox browser and this is what I am getting the script from “http://<IP_ADDRESS>:8000/static/js/numberic-variable.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type

I'll look into this...

If that's a direct link to a JS file (ie, not going through Grav, but directly handled by webserver), then the issue is with your webserver config.
However, if you are trying to access a JS asset in a Grav page, it should still return with proper mimetype. I tested this by putting a JS file into a page and accessing it via the page route:
http://localhost/grav-sandbox/core/issues/mime-types-2707/bricklayer.min.js

Result was as expected:
Accept-Ranges: bytes
Cache-Control: max-age=604800
Connection: Keep-Alive
Content-Length: 4881
Content-Type: application/javascript
Date: Mon, 28 Oct 2019 19:45:17 GMT
Expires: Mon, 04 Nov 2019 19:45:17 GMT
Keep-Alive: timeout=5, max=100
Last-Modified: Mon, 12 Nov 2018 22:41:00 GMT
Pragma: cache
Server: Apache/2.4.41 (Unix) OpenSSL/1.1.1d PHP/7.3.11
Set-Cookie: grav-site-f819630=8v11gk2fcm5i1fkpii7go79g3r; expires=Mon, 28-Oct-2019 20:15:17 GMT; Max-Age=1800; path=/grav-sandbox/; HttpOnly
X-Powered-By: PHP/7.3.11

Access directly via direct folder path.. ie (Apache serving directly also works as expected):
http://localhost/grav-sandbox/user/pages/02.core/21.issues/02.mime-types-2707/bricklayer.min.js

Accept-Ranges: bytes
Connection: Keep-Alive
Content-Length: 4881
Content-Type: application/javascript
Date: Mon, 28 Oct 2019 19:48:20 GMT
ETag: "1311-57a7f65265700"
Keep-Alive: timeout=5, max=100
Last-Modified: Mon, 12 Nov 2018 22:41:00 GMT
Server: Apache/2.4.41 (Unix) OpenSSL/1.1.1d PHP/7.3.11

Well right now I am trying to do some ecommerce on Django and is not simple to debug I keep getting stuck because your a pro I hope you know something about this


[v3] Bug when scroll on choices of autocomplete

This is a :

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

Framework7 Version: v3.0.0-beta.10

Platform and Target:
Cordova with WKWebView :

iOS 9.3.2 on physical device
Simulator 5S iOS 9.0 with XCode 9.2

What you did
Copy of the kitchen-sink directory without any modification.
On the module " On the module "autocomplete" impossible to scroll on the choices.
Video to explain the problem
https://www.dropbox.com/s/pmj1w27vgujteyy/autocomplete_bug.mov

You need to use cordova keyboard plugin and set enable shrinkView, otherwise it is not possible to detect keyboard height to make dropdown smaller

This plugin ?
https://github.com/cjpearson/cordova-plugin-keyboard

Vladimir,
I tested that but it did not work :
> document.addEventListener("deviceready", function() {
> 	Keyboard.shrinkView(true);
> 	Keyboard.disableScrollingInShrinkView(true);
> });


Add the ability of creating matchers wrapping a value

🚀 Feature Proposal
Currently there's no way to create a matcher that holds a wrapped value, such as a Promise.
Motivation
This limits the possibility extending jest to work nicely with some fp libraries, forcing me to write repetitive boilerplate code:
expect(actualConfig.isRight()).toBeTruthy();
actualConfig.map(operationConfig => {
  expect(operationConfig).toEqual(expectedConfig);
});

Example
expect(value).right.toMatchObject({})

Can you write an example test to contrast your need with assertion which has resolves or rejects

@pedrottimark I'm afraid I fail to understand your request — the general idea is to have a way to extend the expect API in a way we do not just add simple assertions — but also "container" modifiers such as resolves and rejects that's internally performing additional checks.
Does that clarify?

It is likely that my lack of experience with fp libraries affects my ability to understand.
Here is an example of a limitation I do know which might be analogy to what you need.
The toHaveProperty(path, value) matcher combines:

check does the path exist
if the path exists, compare value similar to toEqual matcher

But what if you need to compare like toStrictEqual or toMatchObject or application-specific?
Is the extension ability you need analogy to chain matcher for path followed by matcher for value?

Kind of — let me give you the minimal introduction you need
fp-ts in particular has an object, Either — which represents a success or a failure.
You can inspect the result by checking either.isRight, either.isLeft and other methods, just like a Promise can be either resolved or rejected.
What I'd like to do is
const either = operationThatMightFail();

expect(either).success.toMatchObject(expectedData);
expect(either).not.fail.toMatchObject(expectedData);

Internally, the success or fail would unwrap the value internally and then execute the expect statement. Does that clarify?

Yes, that does clarify. Here is a thought that came to mind about a work around:

test helper function which given either returns a promise which is responsible to unwrap the value and call either its resolve or reject function
assertions with resolves or rejects chain to matcher

@pedrottimark Yeah I ended up defining my own function https://github.com/stoplightio/prism/pull/323/files#diff-e53e98c10a813d2d271cc0fa5c55ddcaR11 —
although I'd say your workaround seems cool as well.
In any case, do you think there's going to be a way to have a native way to handle generically wrapped values?

If I understand correctly that a generic description of the need is be able to extend with methods that can continue the chain, then I will keep that in mind while I explore depths of expect package, which is where my attention has been this year.
As an example of another request which has that status: asymmetric matchers do not have access to the matcher utils that are available to application-specific matchers.

Fantastic, you got my need perfectly! I'll subscribe to the issue, I'm eager to see this moving forward.
The workaround you suggested, for now, will just do :)

@pedrottimark 👋
Just wondering if this is being considered as a feature or if you'd be interested in having a PR for that. It's not blocking me, but it would simplify a lot of the testing code we currently have in Prism.
Cheers!

I would be wary of adding things to expect that make it a highly dynamic assertion library. Additional matchers etc are okay, but things that can fundamentally change the structure of assertion statements will also make our lives harder e.g. in eslint-plugin-jest. I would say it is good enough that anyone can use any assertion library they choose to use with Jest, and that can include one built on top of expect! So for cases like this, you could create a custom expect that is imported from somewhere, which works roughly like
const xpct = (val) => ({
  ...expect(val),
  get right() {
    return xpct(val.getWrappedRightSomehow());
  }
})

@jeysal That would be a good compromise.
Now my memory might be flaking but I recall trying the approach and could not get very far, but I might give it another try.
Is there a documentation page on how to extend properly the expect library?

Only for the official expect.extend which allows for custom matchers etc.
For this kind of customization, no, but I'm not sure we need one - it's like wrapping any other JS library. As long as the calls that the facade makes to expect are the same that a user would make to it directly (all public API) it'll work and no breakages should happen in a minor/patch version.

That's be my intention — transform a custom function call into internal expect calls. My idea would be to transform this:

export function assertRight<L, A>(e: E.Either<L, A>, onRight: (a: A) => void = noop): asserts e is E.Right<A> {
  pipe(
    e,
    E.fold(l => {
      throw new Error('Right expected, got a Left: ' + l);
    }, onRight)
  );
}

Into something that'd be integrated with jest — that'd unwrap the value for me:
into expect(val).right().toBe(10)
The problem is that the proposed right function would need to return an expect object so I could chain it. I guess I can do something like this?:
function right(val) {
  return pipe(
    val,
    E.fold(l => {
      expect.assertions(Infinity)
    }, t=> expect(t))
  );

}

That's similar to my example so something like it should work. Note that I'd recommend returning an xpct() again in the inner function so that it still has your customizations applied. Of course if you want to restrict the order in which you can call certain modifiers a more advanced system may be needed.


Extend loan to time series with state snapshot model

Acceptance criteria

[x] @sandford-ch:

Based on best guess (w/o confirmation from Dennis) -> can still be extended, if required
https://docs.google.com/spreadsheets/d/1-lp1cYIy5B9Kpni3hLo2UqDD76aDxMimZW_6MbhqiQ4/edit#gid=1592342509

[x] extend loanEntity data types for time series data (i.e. loanSnapshots and loanStates)

Here only the

[ ] indexing of outstandingDebt

is still pending


Contradicting diagnostics are provided for unary + and - based expressions

Description:
Consider the following source captures,

BCE2008 seems to be because of the parser's resolution strategy. Other than that, the remaining diagnostics are contradicting.
Following shows that the bit inverter works in the expected manner which suggests the variable assignment required diagnostic and the invalid statement diagnostic.

Affected Versions:
SwanLake Beta3-SNAPSHOT at least

Related issue: #30020


[Debian] The new release contains a python3-only line.

Hi,
In your new release, you introduced some python3-only code:
  File "django_q/queues.py", line 51, in __init__
    super(Queue, self).__init__(*args, ctx=multiprocessing.get_context(), **kwargs)

Here is a patch I made.
Cheers!

@P-EB thank you for the patch.

@Eagllus you're welcome.
Should I open a PR or let you handle it from there?

@P-EB I included your fix in pr #292 🙂

Perfect!


Alternate fix for alt-text issues

Description
This is an alternative fix for the failing tests described on zulip. Specifically, test_nbscreenshot was failing with the '<>?:"{}|_+' input on macOS and Ubuntu. Initially, we forbid lxml==0.4.9 which seemed to fix the issue, but then caused other issues (see the same Zulip topic above).
Before this change, a comment in NotebookScreenshot._clean_alt_text states that lxml's HTML document cleaner won't recognize unescaped tags, but then calls html.unescape on the given alt_text. I assume we would want the cleaner to recognize tags, so this PR calls escape instead. This makes the tests the pass, though we still have to call escape later because lxml's cleaner seems to unescape the characters.
Even with this change, I'm still a bit confused because I'm not sure what lxml's document_fromstring is expecting. The python function doesn't have a docstring, but the official docs of the function I think gets called (fromstring) seems to expect a string representation of an HTML element. I.e. we're giving it the alt-text string ('<>?:"{}|_+'), but maybe we should be passing some string representation of the image element with that alt-text ('<img src="" alt="<>?:"{}|_+">')? With some quick local testing that also seems like a viable fix.
I might just be very confused here, so any clarifications would be much appreciated!
Type of change

[x] Bug-fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How has this been tested?

[ ] the existing tests pass with my change

Final checklist:

[ ] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

@GenevieveBuckley : I think you wrote some us this code, so would be great if you could help my changes make sense. Feel free to pass on to someone else if you didn't.

Looks like the CI failures may have been a temporary blip unrelated to the lxml version, so there's less rush on this. But might still be good to clarify some things.

sorry for the conflict here @andy-sweet.  I still think your change to unescape looks correct if you want to merge conflicts here

sorry for the conflict here @andy-sweet. I still think your change to unescape looks correct if you want to merge conflicts here

No problem. I'm not actually sure if my fix here is appropriate, as I'm unfamiliar with lxml. So no rush on merging this.

After the test changes in https://github.com/napari/napari/pull/4641, which improve things to be more stringent, the original fix here didn't work anymore. I tried a few other things to make the original test case pass, but couldn't. So this PR just updates the comments here based on my new (hopefully correct) understand of the assumption here - updated the description appropriately.


refactor: consume promises from fs rather than fs/promises to support downstream ESM usage

Issue
Fixes #77 .
Details
Replaces usage of fs/promises with the promises named export from fs to support downstream ESM usage.
Scouted some minor/patch dependency upgrades.
CheckList

[ ] Has been tested (where required).

@scottnath has this captured the change you've suggested?

@jlp-craigmorten this changed worked great. Steps I took to test:

download this branch
build locally
copy ./lib into my node_modules/@guidepup/guidepup in my storybook repo

note: used v0.19.0 as-is from virtual-screen-reader

ran storybook - no error

so this is a big 👍  from me - thanks for the fast turnaround!


TypeError: environment.teardown is not a function

Hi, I'm using jest on a node project and TypeError: environment.teardown is not a function appears appear after upgrading from<EMAIL_ADDRESS>to<EMAIL_ADDRESS>(yarn)
I search and found this #6393 but none of the solutions (like deleting yarn.lock, node_modules, yarn and reinstalling everyting) works for me.
After some tries it seems like the jest-environment-node package is not installed. Once manually installed all seems to work again.
Is this the right solution? Any help?

We've managed to fix this by installing jest-environment-node explicitly. Thanks @acanimal .

You don't have to explicitly install it although it's a good practice so you don't have to rely on hoisting - you probably have some config (preset?) with a dep on an older version or some such.

This issue does not follow the issue template asking for a minimal reproduction, so closing


Feature/#14

close #14

Current coverage is 90.8% (diff: 90.9%)

Merging #27 into master will decrease coverage by 0.2%

@@             master        #27   diff @@
==========================================
  Files            54         55     +1
  Lines           582        623    +41
  Methods           0          0
  Messages          0          0
  Branches         50         61    +11
==========================================
+ Hits            530        566    +36
- Misses           30         31     +1
- Partials         22         26     +4

Powered by Codecov. Last update 67db035...5ea11ed


docs(make-your-components-compatible-with-aao): add Asset Description in How to improve the compatibility

Fixes #1024

Others, LGTM!


Add default configuration file

would be nice to have a configuration file to allow one to specify defaults to use when not specified from commandline.
(alternately, an environment variable)

I'd be open for adding dedicated environment variables for some settings. Which settings do you have in mind?


Create Tab component

Here is the original one: https://semantic-ui.com/modules/tab.html.
Please have a look at contributing.md for instructions on how to contribute and submit a PR.

Having a look at this for you :)

i'll take this if no one had.

@tesarwijaya thanks!

i have created this component but i need you to review my pull request #65 first.

What is the status of this PR and this project overall? Is it going anywhere?

There isn't a PR. Nobody is working on it right now.
Please, understand this is an open source project: nobody has to do anything and the entire community can contribute.
Getting questions like "where is this project going" is so frustrating. If you need this feature, consider contributing.

@mariolamacchia I've mistaken this with PR. Sorry. No reason for a rant here

Good work everyone.
Am I missing something, or is this currently broken? I can file a bug report need-be.
The examples given on the website do not function as expected when copied.

@afparsons Open the new issue with detailed description

@mariolamacchia you can close this issue now I think


[BACKLOG-26041] Fix for encoding in get fields

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'ui' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'ui' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  ui/src/main/java/org/pentaho/di/ui/trans/step/common/CsvInputAwareStepDialog.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes (click to expand)
org.pentaho.di.trans.steps.googleanalytics.GaInputStepMeta

Branch Change: -1.9% :small_red_triangle_down:
Complexity Change: -1.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceupsert.SalesforceUpsertMeta

Instruction Change: -0.1% :small_red_triangle_down:


onDownloadRequested not triggered

Hi there,
I've got a Galaxy Tab A7 T285 with stock 5.1.1.
The onDownloadRequested doesn't seem to be triggered on that device. The debugger won't event enter that method. However, it works as intended on vanilla 5.1.1 running on Nexus 4.
I've tried both 3.0.0 and master versions -- same result.

So you're running this on two real devices, both with Android 5.1.1, and on one of these devices it's working fine while on the other one it's not? That's strange, indeed.
The Android System WebView is up-to-date as well on both devices?
What you could do is add the following call right after creating the WebView instance:
myWebView.setDownloadListener(new DownloadListener() {

	@Override
	public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimeType, long contentLength) {
		// log this ...
	}

});

It would be interesting to know if that callback is called on both devices. Please note that this disables the other callback that you've been testing previously. But this one here is on a lower level, so more helpful for debugging.

Cannot tell about the Nexus device as it is not mine, but the Galaxy Tab is up to date, as it was purchased today and I've updated everything that is possible.
I will test it next week as soon as I'm back at work.
If i'll get some free time, I will try this code on my Moto G3 running CM13 (Android 6).

Sorry for a late response. Dunno what happend, but it started working without any changes of the code. Moreover, I haven't even reinstalled the app.
I think it can be closed for now.

No problem!
Glad this issue resolved itself then, at least we do know now that there's no bug here :)
Thanks for your reply!

Littile of topic, if I may. Have you managed to make file type input work on KitKat? Not by this component, but at all.

Yes, there are a few solutions:

Add a JavaScript interface which lets your Java code and the JavaScript code inside the WebView communicate. If you want to initiate a file upload, let the JavaScript inside your WebView tell the Java code inside your Android app that you want to pick a file. In Java, you can then open a dialog that lets the user select a file from the device. After that, you encode the selected file in Base64 (in Java) and send the Base64 string to the WebView using your JavaScript interface.
You can bundle Crosswalk, an alternative WebView implementation.
You can just wait for Android 4.4 to go away, which is happening (slowly).

Thanks for the tips!


⚠ Bofrost.at has degraded performance

In 39451ad, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 858 ms

Resolved: Bofrost.at performance has improved in 4b8fc83 after 2 minutes.


docker scripts for containerized uuv simulator development environment

See the README.MD for details and instructions on how to test.

Works for me!


Adds support for streaming stdin to docker exec

Summary

This adds options to the occam.DockerContainerExec command allowing us to stream an io.Reader as stdin. It also allows us to set the --user and --interactive flags.
Use Cases

Properly testing the live reload functionality by streaming a tarball into the container instead of using docker cp.
Resolves #211
Checklist

[x] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[ ] I have added an integration test, if necessary.
[x] I have reviewed the styleguide for guidance on my code quality.
[x] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@ryanmoran minor seem reasonable to you?


Changed User Model to store an object for _id instead of discord string. Changed event model to lookup user via ObjectId instead of discord string.

Description
Together will not create a unique objectId instead of storing the discordId string as a _id. DiscordId string is still stored as in the user Object.
Event model will store the user objectId and lookup the author user with the objectId instead of discordId string.
This will break all users and event objects in the database when moved to production
Type of change
Please select everything applicable. Please, do not delete any lines.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected
[ ] This change requires a documentation update

Issue

[ ] Is this related to a specific issue? Is so please specify: #215

Checklist:

[x] I have executed npm run lint and resolved any outstanding errors. Most issues can be solved by executing npm run format
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings

Code LGTM, but:

This will break all users and event objects in the database when moved to production

Thoughts on writing a migration to preserve prod data? 🙃

It's not worth it unless someone wants to spend their time building it for learning purposes. I just need to delete both the user and event collections. It shouldn't take too long for me to enter more events for January, and users have to login again periodically.


Enable patch version update for trustyai package

Enable patch version update for trustyai package
Description
Enable patch version update for trustyai package with weekly update sync.
How Has This Been Tested?
Tested via makefile
Merge criteria:

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

/test notebook-cuda-ubi9-python-3-9-pr-image-mirror

/retest-required


Suggestion: Implement Send on Ptr where T is Send (and also Sync?)

For example:
ORB is Send: https://docs.rs/opencv/latest/opencv/features2d/struct.ORB.html#impl-Send-for-ORB
and the only way to use ORB is through the method create which returns a Ptr<ORB>.
Ptr is not Send https://docs.rs/opencv/latest/opencv/core/struct.Ptr.html#impl-Send-for-Ptr<T>.
Currently the only way to use ORB in threads is to unsafely implement Send for it.
Would it be possible to implement Send for Ptr<T> where T is Send? And also Sync?
Thank you!

Thank you! So, I guess that the "This is similar to Rust Box, but handled by the C++." comment on Ptr should be read as something like "This is similar to Rust Arc, but handled by the C++ and with weaker safety guarantees." Am I correct?

That's right, I'll update the docs for the Ptr, thanks for the suggestion!


Field Validation Formula Extraction Issue (GET & SET)

Hi,
When you extract and set a template for a given site with a field that contains validation. If the validation formula contains a quote ("). The resulting formula must not contain the quote (but an encoded quote: &quot).
Incorrect extraction:

Correct extraction:

Hi Louis-Charles,
I'm really sorry for too long processing time on this. We should have this one now fixed, but if you are still running into issues around this, would appreciate if you'd report that as an issue directly to the PnP Core Component repository at https://github.com/OfficeDev/PnP-sites-core/issues.


Problem in downloading using N_m3u8DL-CLI_v2.9.5

Few days back, I downloaded many videos using N_m3u8DL-CLI, I pasted m3u8 link and it downloaded whole file after merging all chunk files. Now, it's not working. When I enter link, it shows 'invalid url'. even normally, I am able to download m3u8 file from browser but then I don't know how to get whole file through it. N_m3u8DL-CLI used to work fine with m3u8 link. can't find what problem it has got? Any idea or other solution to download such HLS streaming videos. thanks!

@Ninu77 It seems like i'm having the same issue. I can't download files which I previously downloaded without problems. Have you found any solution?


Where is the lib to download?

Could not find method compile() for arguments [:telegrampassport] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
so, where is the lib to download?

https://oss.sonatype.org/content/groups/public/org/telegram/passport/1.1/

get the library from https://oss.sonatype.org/content/groups/public/org/telegram/passport/1.1/
import this to libs folder and add implementation files('libs/passport-1.1.aar') in your build.gradle


The 1.83 version of VS Code frequently crashes when launching the vue project.

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.83
OS Version: windows 10 professional

Steps to Reproduce:

Open the ruoyi project folder using VS Code (this framework is based on Vue and Element UI).
Click on "npm run dev" in the npm script section under the Explorer.
After the compilation starts, a dialog box will pop up, indicating that VS Code crashes after a while.

I need to attempt the startup more than 5 times to have a chance of successfully launching it once.

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.83.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Assuming you're using some vue extension- could you file an issue on it? Also, could you follow the steps here to get a crash dump? https://github.com/microsoft/vscode/wiki/Native-Crash-Issues

Assuming you're using some vue extension- could you file an issue on it? Also, could you follow the steps here to get a crash dump? https://github.com/microsoft/vscode/wiki/Native-Crash-Issues

ok,it's my dmp file but I have already tried disablling all installed extensions  to run the project,and it still crash in the same way.
d76565a1-be55-49bd-ae35-3acc53fa87fd.zip

Thanks. The dump shows that the extension host process just ran out of memory. Is this issue still happening for you with all the latest versions? We fixed a memory leak that may address this for you.


[Helm] Pulsar Manager do not work if Pulsar authentication is enabled

Describe the bug
If you enabled authentication on brokers, Pulsar Manager is not able to connect since there is no way to inform the required parameters.
Note: Although it is a Pulsar Manager related issue, the problem lies in the Helm Chart located in this repository.
To Reproduce
Steps to reproduce the behavior:

Configure authentication on brokers or proxy in values.yaml:

PULSAR_PREFIX_authorizationEnabled: "true"
authorizationEnabled: "true"

Note: Both parameters with and without prefix are required hence the issue #6135 is not fixed yet.

Deploy in a custom kubernetes cluster:
helm install pulsar -f values.yaml ./pulsar/

Proxing the pulsar-manager locally:
`kubectl port-forward -n pulsar svc/pulsar-pulsar-manager 9527

Access it at http://localhost:9527

The Pulsar Manager interface shows no information about the cluster and sometimes a forbidden message is shown.

Expected behavior
All the information about the cluster should be visible in the interface.
Additional context
Looking at the pulsar-manager-deployment.yaml the environment values are fixed and that way JWT_TOKEN or SECRET_KEY cannot be passed to the container.
Note: Despite this there is another related problem that should be fixed in order to completely solve this issue https://github.com/apache/pulsar-manager/issues/260

Closed as stale.
The development of the Helm Chart has been permanently moved to https://github.com/apache/pulsar-helm-chart. If it's still relevant, please open an issue there.


Date Picker when are open within Dialog is partial render out of the screen

Please Take a look the following screen:

The code is just the following:

As you can see, the date picker is out of the range visible of the screen.
Any Idea how to solve it?
Thanks a lot! is amazing this UI Lib :)

I fiddled with this in my own project. It's hard, because the position of the parent Dialog is absolute, and the DatePickerDialog is absolutely positioned within that. I ended up dissecting the DatePicker; I kept the TextField in the modal with its onFocus and onTouchTap methods the same, and put the DatePickerDialog at the same level in the dom as the parent Dialog. I track the value of the DatePickerDialog in the main component and pass it as a prop to the dialog with the TextField. Hope that helps.

In my case, a easier workaround that I did, that woks for me, was set to the parent dialog this inline style:
<dialog
contentStyle={{
    width: '300px',
    height: '500px',
    top: '-100px'
  }}
/>

In that way the DatePickerDialog will open and be came all visible screen. Because the position fixed are realive to -100px that I set on the dialog :p
Ugly, but Is easy to remove once this bug will be resolved :)

I tried doing something similar but couldn't make it work on desktop as well as android.

With render to layer, they can be as nested as you wish.


Implementation coverage should be written to file

Actual
The implementation_coverage.py script prints the newly calculated coverage to the console
Expected
The implementation_coverage.py script should update the IMPLEMENTAITON_COVERAGE.md

It looks like this is handled by the Makefile: https://github.com/spulec/moto/blob/master/Makefile#L43-L45
Let me know if I am missing something though.

I may be missing something, but to me it doesn't look like the implementation_coverage from the make file is called during a travis build, but only when moto/scripts/bump_version is called. For me this changes I made in the pull request regarding this issue make sense to me. Still I may be missing something

We only intend to run the script when we bump versions. If it ran on Travis, it wouldn't have a way to push the results back to Github.
Apologies if I'm not understanding your request.

To me it just seemed odd that the implementation_coverage script does not write into the IMPLEMENTATION_COVERAGE.md itself or that the script provides a flag to be able to either print the coverage result to the console or write it to the file or even do both. Does that makes sense? If the change I made in the pull request is fine for you than that's all there is to it  😃

Okay. I don't have strong feelings either way.
Can you change the Makefile so it will work with this new script?

Sure will look into it


Short solution needed: "Get user agent with Lua" (nginx-lua)

Please help us write most modern and shortest code solution for this issue:
Get user agent with Lua (technology: nginx-lua)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments to make solution explained.
Link to this issue in comments of pull request.

Get user agent with Lua


 The production system should use the same docker images.

We have Github actions that build and deploy images to ghcr.io now


PSoC is constantly connection/disconnection [Win7]

I build the firmware (in debug mode) it programmed without any problems.
When connection the USB-micro side, it's starting to connect and disconnect continuously.
I'm new to this and not sure what else you need. Let me know.

There is an outstanding issue where the board doesn't work if plugged into a low-power socket --- I have just fixed this, so could you try updating from git and rebuilding/reflashing the firmware and letting me know if it works?

I rebuild and reprogrammed the firmeware but I still have the connecting/disconnecting issue.

Curses. Are you Windows or Linux? If Linux, could you plug the device in, do sudo dmesg | tail -100 and copy me the result?

Sorry, I'm on windows 7.

Okay, so on Windows 7 I think you can use UsbLogView to get the same information: http://www.nirsoft.net/utils/usb_log_view.html What I'm looking for is any indication of why the device is disconnecting --- whether Windows is cutting it off or whether it's disconnecting of its own accord.
I'm afraid that other than that I'm mostly out of ideas --- not only does my board doesn't do this, but when I tried investigating the continuously-restarting-in-release-mode thing that doesn't seem to be happening any more. Without access to the device I can't really debug it.
Other than the obvious simple diagnostic suggestions (have you tried a different USB port? A different computer? Does working through the Blinky PSoC tutorial work? etc) I don't have any easy answers here, and it'll probably require investigation at your end if you have the expertise. The PSoC debugger will work fine, allowing you to single-step through code, provided you don't actually try to access disks with the debugger running (the debugger shares some pins with the FDD).
It may also be worth trying to disable the watchdog timer by commenting out the line to CyWdtStart() in main() in the firmware.

I just tried the nirsoft usb-log-viewer but the psoc isn't showing up. I tried all usb ports at this pc without any luck. I also tried another pc, this time it's working. So I guess it has something to do with my laptop, not sure. I also have no experience with debugging this. If you like we can try a teamviewer session if you'd like to take a look.

Oh, I also removed the CyWdtStart() from main and now it's not disconnection any more, but it's not connecting anymore and the client can't find it (it also didn't while the device was always connection / disconnecting).

That's interesting; it sounds like the PC is never configuring the device. The only reason I can think of is that it doesn't think there's enough power, but I fixed that bug... are you sure you updated from github before recompiling? If that fails, try with a powered hub?
Sadly, I have no idea what else to try. I only know just enough Windows to develop with, and don't know enough to debug it remotely; sorry. If you ever try Linux on that machine, I'd be interested to see the logs, though. But unless I can duplicate the problem elsewhere I don't think there's anything I can do. Given that it works everywhere else it does sound like there's something weird about that machine.

I'm sure I used your updated code. I also tried an USB-Hub, but it was not a powerd one. So no luck there, I'm looking wo a powerd one. I'll keep you updated.
Thank you for your time. I'm sure it has something to do with my laptop.

Belatedly, good to know. Closing bug for cleanup.


Handle old UI routes or redirect

The old UI has a variety of entry points, and on the preview UI, they end up on a "Page not found" route. For these old routes, we should add special handling for them, so embeds and other references to them don't break. For example, the Flutter API docs use https://dartpad.dev/embed-flutter.html
We could handle this in the UI or with a redirect in Firebase.

embed-dart.html
embed-flutter.html
embed-html.html
embed-inline.html
embed-flutter_showcase.html (Less important as never fully supported)
workshops.html - Should maybe redirect to explanation about workshop removal?

This handling for the embed entry points should consider adding the embed=true query parameter.
While not necessary, an improved 404/"Page not found" route might be worthwhile :)

\cc @johnpryan For your thoughts, as this will be necessary so DartPad embeds in previous versions of the Flutter API docs continue to work.

Let's see if we can configure this in our Firebase Hosting file, but a GoRouter redirect would probably work too.

Fixed by https://github.com/dart-lang/dart-pad/commit/d645c1c17ab18746926504c468746cf7b037a721
Thanks!


Enable race_condition test that uses pthread_create/join

Since pthread_create/join hooks/shimmer has been implemented in tests/libcxx, able to enable one more test (Was marked broken in #151 and then moved to tests.unsupported).

Sand-box run Passed.


chore(wasm): update NPM build script

References #3428
Additionally, looking into other compile-time techniques to further reduce wasm binary size from 8.5 MB:
[profile.release]
opt-level = 's'
lto = true

I published penumbra-zone-test in the NPM registry for testing purposes (updated version is 0.63.3-preview-8 per the changes in #3432).

I'm realizing that this package is not really enough for a consumer to load the proving keys easily.

Javascript bundlers cannot easily load bin files. The consumers have to roll a special webpack config to be able to include these files in the bundle.
Loading is not super straightforward. The consumers need to be able to pull the bin file into memory somehow. Probably fetch. However, in order to do that, the above needs to be setup to import the paths to those files.

Some ideas:

We could expose a new function that handles the challenges of loading+fetching
We could stringify the bin file and exported it. Something like:

 const convertBinToBase64 = (filePath: string): string => {
        const data = readFileSync(filePath);
        return data.toString('base64');
      };

      binaryFiles.forEach(file => {
        const sourcePath = path.join(binaryDir, file);
        const targetPath = path.join(targetBinaryDir, file);
        copyFileSync(sourcePath, targetPath);

        const base64Data = convertBinToBase64(targetPath);
        const exportName = path.basename(file, '.bin');
        const tsFilePath = path.join(targetPackageDir, `${exportName}.ts`);
        const tsContent = `export const ${exportName} = "${base64Data}";\n`;
        writeFileSync(tsFilePath, tsContent, 'utf-8');
      });

In any case, exposing new files/methods is not trivial. Wasm-pack outputs a fully-formed npm package that we'd have to manually manipulate via scripts. Or, perhaps best, we create a new npm package that imports the wasm-pack package. That way we have control to expose new functions as well as re-export the wasm functions. In this case, we'd need to use a bundler like webpack/parcel.
What do you think?

Javascript bundlers cannot easily load bin files. The consumers have to roll a special webpack config to be able to include these files in the bundle.

Naive questions, but:

Are there binary assets that bundlers do support?
Why does a consumer need to put the proving keys in a bundler, rather than loading them from some other means (e.g., downloading them, loading them from a file, etc)?

@hdevalence We canmimic Aztec's strategy in bb.js and download the CRS files from a centralized server: https://github.com/AztecProtocol/barretenberg/blob/master/ts/src/crs/net_crs.ts#L27. Reverting this PR to a draft until we decide.

@hdevalence does Penumbra use any cloud-based object storage service (like Amazon S3)? Where is the sqlite3 database for the ceremony hosted?

@grod220 I experienced similar challenges trying to modify the web-pack config in the webgpu repository to get the javascript bundlers to load the bin files. I suggest we skip all this unnecessary complexity and indirection and simply fetch the proving keys from a cloud provider.
I modified the script to only bundle the proving keys into the three NPM packages if the --bundle-bin is passed (npm run publish-wasm -- --bundle-bin).

Are there binary assets that bundlers do support?

We need to eventually pass it to the wasm function as a Unit8Array (right?). We could just store it as that and allow folks to import it from the npm package and simply pass it to the function. This still would require us making the npm package that wraps/re-exports the output from wasm pack.

Why does a consumer need to put the proving keys in a bundler, rather than loading them from some other means

In theory, this package doesn't have to provide the keys at all and the consumer is responsible for going to get it. Perhaps there are some benefits to this (?). The downside is that there would be runtime fetching costs. If they wanted to avoid this, they'd have to go through the same exercise we are talking about now (fetching from source &  storing in bundler-compatible way).

@hdevalence What cloud-based object storage services does Penumbra use? Where is the sqlite3 database for the ceremony hosted, Amazon S3?

Currently we use git-lfs hosted by Github (the download-proving-keys feature has a hand-rolled LFS client that's just capable enough to fetch the resources we need) but there's not a long-term plan yet.
Currently our storage infra is built around a model where there are few users (us) and frequent changes to the keys. But once we finish the ceremony, we'll have fixed proving keys and we'll be in a different problem context.  At that point, I think it would make sense to host the proving keys on a CDN.
One option worth looking into is whether we can use Cloudflare's IPFS gateway, but Cloudflare's normal CDN is also probably a good bet.
The full ceremony transcripts are a different class of problem -- they'll probably be close to 1TB in size, and clients shouldn't need to download them unless they want to manually re-verify the transcripts.

@grod220 and I agreed to load the keys over the network and revisit the "wrapper npm package" proposal later. I think this is ready to merge.


Bug: Opening Query with uncompiled graph causes Invalid UI State

Similar issues

[X] I have searched and found no existing similar issues

How are you using Studio?
Legend Studio
Current and expected behavior
When opening a query with an uncompiled graph, text mode is opened but the query builder modal is also opened on top. This causes an invalid state as the query being editable is no longer part of the graph. It also does not let you close the query builder modal causing users to lose their local changes.
Steps to reproduce
Open the query builder for the service, try to drag and drop in prop2, a derived property
Hit Save Query
Try to close the query builder
We should see the query builder becomes blank
https://user-images.githubusercontent.com/13574879/188937269-11d8cd56-d7b1-49f7-ae11-532c02533b5c.mov
Model data
###Service
Service model::MyService
{
  pattern: '/45f40337-e6d2-45fe-93c1-82ef3eccb2ea';
  documentation: '';
  autoActivateUpdates: true;
  execution: Single
  {
    query: |model::A.all()->project([x|$x.prop1], ['Prop1']);
    mapping: model::MyMapping;
    runtime: model::MyRuntime;
  }
}

###Pure
Class model::A
{
  prop1: String[1];
  prop2(param: Date[1]) {''}: String[1];
}

###Mapping
Mapping model::MyMapping
(
  *model::A: Pure
  {
    ~src model::A
    prop1: $src.prop1
  }
)

###Runtime
Runtime model::MyRuntime
{
  mappings:
  [
    model::MyMapping
  ];
  connections:
  [
    ModelStore:
    [
      connection_1:
      #{
        JsonModelConnection
        {
          class: model::A;
          url: 'data:application/json,%7B%7D';
        }
      }#
    ]
  ];
}

Environment
No response
Possible solution and workaround
No response
Contribution

[ ] I would like to work on the fix for this issue

Updated the description


How do I change the font face used by default in wetty?

I would like change the font used by wetty to another font (terminus)
How is the default font chosen/changed?

Since 5cc2e68ca you can modify settings to choose any of installed system fonts easily. This wouldn't work for CDN webfonts though.

https://github.com/xtermjs/xterm.js/issues/1164 refers to measures that need to be taken in order for proper handling of external webfonts.

Since 5cc2e68 you can modify settings to choose any of installed system fonts easily. This wouldn't work for CDN webfonts though.

Is there a way I can provide a custom font from the server side without the user having to do anything?
I am providing my command line application through the use of wetty and it's doing great, but I still would like to set a different default font, as not all my users are tech savy enough to change it.

I have the exact same problem, but just with "fontSize". I would like wetty to start with a bigger font size (24) so the users do not have to change any configuration value. That is why I opened issue #216


Add a CONTRIBUTING.md file

Closes #32
@AlainMuller @dumoulinjb @xgouchet Since you contributed to gyro very recently (thanks again for that!), I'm interested in your feedback as first-time contributors to gyro, about that long overdue CONTRIBUTING.md documentation 😉
That's just reading 📖 CONTRIBUTING.md and tell me what you think (typos, missing info like doc about things that were not clear for you when you contributed, …)
Thanks!

@AlainMuller Cool thanks a lot!
Not too verbose or scary/hard to follow?


Create an Alumni group for users not active in the program.

Coverage decreased (-0.01%) to 91.97% when pulling 6fab29db903a54480ea857afa32daac02c699448 on akatsoulas:1100800-alumni into 63256f8b74b1fa3fccdb4096d2a6ccec1eb3e60e on mozilla:master.

Coverage decreased (-0.03%) to 91.95% when pulling 54596e4c7f55a5eb04e382a3698026459c08e417 on akatsoulas:1100800-alumni into 63256f8b74b1fa3fccdb4096d2a6ccec1eb3e60e on mozilla:master.

Coverage decreased (-0.03%) to 91.96% when pulling e273353d591aca0877c9971bfd985a76860f4e1d on akatsoulas:1100800-alumni into 45966faafb42570f74aca34f8bda1f7c835d68e9 on mozilla:master.

Looks good and it works fine local. r+ :coffee:

Thanks @comzeradd !


Can't post over HTTPS, when enabled invalidCertificate, the post gets delivered but over HTTP not HTTPS

this is my code;
__block AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
__block UIBackgroundTaskIdentifier backgroundTaskIdentifier = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:^{
[manager.operationQueue cancelAllOperations];
[[UIApplication sharedApplication] endBackgroundTask:backgroundTaskIdentifier];
}];
manager.requestSerializer = [AFJSONRequestSerializer serializer];
manager.responseSerializer = [AFHTTPResponseSerializer serializer];
//     manager.securityPolicy.allowInvalidCertificates = YES;
   [manager POST:@"https://url" parameters:mutableDic
    success:^(AFHTTPRequestOperation *operation, id responseObject)

{
NSLog(@"Session sent succesfully\n Response:");
}
failure:
^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Something went wrong when sending the session data. \n ERROR: %@",error);
}];
}
i seem to send over HTTP without a problem but cant send over HTTPS, when i set
manager.securityPolicy.allowInvalidCertificates = YES;
the post made out, but not over https.
What am i doing wrong?

This is type of question best suited for stackoverflow. Github is for reporting bugs and feature requests.
:beers:

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.


Why beam search results are sorted based on loss, not on ROUGE scores

Currently results of the beam search are sorted based on the loss :
sorted(results, key=lambda h: -h.avg_log_prob)[:beam_size] (here)
And then rouge score taken is the score corresponding to the first result :
 r1 += scores[0]['1_f'] (here)

Why such a decision ? Aren't we looking for a better ROUGE score (we don't really care of the loss at testing time, do we ?) ?

@xcfcode, any idea ?

I was confused. Sorry for the mess.

Note for myself later :
Of course you can't do that ! It's testing, which means we are not supposed to see the golden abstract. Prediction should be done without seeing the golden labels, therefore without access to the ROUGE score.


Fix casing in named placeholder in code sample Worker.cs

Summary
This fixes invalid camelCase in the logging code sample Worker.cs in favour of PascalCase which should be used.
.NET uses the structural logging. The structural logging should use PascalCase for named placeholders. Details are explained in the CS1727 analyzer.
The updated page is inconsistent. The proper casing is used at other samples on the page, but not in Worker.cs which is very first example on the page.. This change removes the page inconsistency.
The current state is confusing for less experienced .NET developers.

@IEvangelist Any updates on this PR? It is very simple update.


clang 7.0 support - individual warning levels

this not a really good pull request, I started it, to keep working on these c++17 warnings...

there are two warnings regarding array bound checks somewhere in the catch.hpp dependency (think its marco expansion?)

/Users/gabrielnuetzi/Desktop/rttr/src/rttr/../rttr/detail/impl/array_range_impl.h: In function 'void ____C_A_T_C_H____T_E_S_T____139()':
/Users/gabrielnuetzi/Desktop/rttr/src/rttr/../rttr/detail/impl/array_range_impl.h:200:105: warning: array subscript is below array bounds [-Warray-bounds]
     return (empty_() ? const_reverse_iterator{m_begin, this} : const_reverse_iterator{m_begin - 1, this});

lots of no-except warnings:

/Users/gabrielnuetzi/Desktop/rttr/src/rttr/../rttr/detail/registration/registration_impl.h:205:60: error: mangled name for 'rttr::registration::bind<rttr::detail::meth, Class_Type, F, acc_level> rttr::registration::class_<Class_Type>::method(rttr::string_view, F, acc_level) [with F = long unsigned int (std::__cxx11::basic_string<char>::*)() const noexcept; acc_level = rttr::detail::public_access; Class_Type = std::__cxx11::basic_string<char>]' will change in C++17 because the exception specification is part of a function type [-Werror=noexcept-type]
 registration::bind<detail::meth, Class_Type, F, acc_level> registration::class_<Class_Type>::method(string_view name, F f, acc_level level)

@gabyx
I will merge this now.
thx

thx too for your efforts


fix: yurtadm join can't work when kubernetes version large than v1.27.0

What type of PR is this?
/kind bug
What this PR does / why we need it:
fix: yurtadm join can't work when kubernetes version is large than v1.27.0
Which issue(s) this PR fixes:

Fixes #1675
Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

/rerun

@YTGhost PTAL

/rerun

/rerun

/backport release-v1.4

@rambohe-ch does this PR mean, that versions >1.27 are supported by openyurt?

@rambohe-ch does this PR mean, that versions >1.27 are supported by openyurt?

@siredmar yes, some users are using OpenYurt v1.4 with K8s v1.27. and this PR is used for improving yurtadm join tool.

Are there any use cases that do not work properly >1.22.17? Is it possible to make an official statement that OpenYurt works using 1.27?


dummy pr

trying to see if we can push assets to github
@kiblitz see if you can run the game on you're machine, it looks like this on my machine

I cannot see this when I run it, although I do see the assets in Assets/RPGW_Caves. How does your hierarchy look like?


Update bcprov-jdk15to18 to 1.74

About this PR
📦 Updates org.bouncycastle:bcprov-jdk15to18 from 1.73 to 1.74
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.bouncycastle", artifactId = "bcprov-jdk15to18" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.bouncycastle", artifactId = "bcprov-jdk15to18" }
}]

labels: library-update, commit-count:1

Superseded by #605.


libkolibri_daemon_dbus: Parameterize bus name of the DBus

Cherry-picked from https://github.com/endlessm/endless-key-flatpak/pull/11.

I'm closing this as I'm basically asking to revert the whole thing :b I cherry-picked the little log message fix in 27bf68f9b38efade5469950bdf94860ed3882e8e.


A little help please

Hey guys,
with the last update for the honda jet its behaving the same way.
the altitude is setting to the previous value....I checked the HPFD.js file....everything looks good....can you point me to the right direction...thanks in advance.
Discussed in https://github.com/calibx/msfsdeck/discussions/114

Originally posted by RubiXKube October  6, 2022
Hi,
I'm using the Honda Jet from FlightFX in MSFS,
There is a little bug with a loopedeck encoder only with this plane
I can't set an autopilot altitude with the encoder, it's always go back to previous value
I try to find a solution but i'm not developer
Honda jet developper ask me...
Marwan Gharib — Aujourd’hui à 17:54(on flight fx discord)
Hello, what default sim event is the loopdeck live triggering?
specifically these are the commands used for the HJET
ALT SEL KNOB -> INCREASE/DECREASE AUTOPILOT REFERENCE ALTITUDE
other commands might not work as intended as they don't change the needed variables
I don't have any answer to this, i don't know how your plugins works..
Could you help me ?
Thanks !

It's a Honda Jet bug, the only way to set altitude for the moment is to use LVAR
I'm using a midi control with spad.next for the moment

For now the plugin cannot handle L/HVars, it will come but it is not easy to add.
Maybe you can try with the new miscellaneous input to trigger another event


apply_function method for Epochs object

In the braindecode project we've tried to unify the preprocessing of raw and epoched data under a single class (https://github.com/braindecode/braindecode/blob/master/braindecode/datautil/preprocess.py#L61). We currently use a hybrid approach that relies on Raw.apply_function() when possible, and would benefit from having an equivalent method for the Epochs object (discussion here: https://github.com/braindecode/braindecode/issues/160).
If of interest I'd be happy to submit a PR for this - I would just like to know whether it would make sense to share the implementation for Raw and Epochs via something like a utility function or a mixin?
Thanks!

mne.Epochs.apply_function() was added last month in #9088, and was patched yesterday in #9235.  Can you try current MNE-Python main to see if it works for your use case?

Oops I missed that, sorry. It does work as expected for me on the latest main, thanks!


[Question]  mmupnp can’t find “SONY KJ-43X8000H” deviceType Basic?

Could you support why mmupnp can’t find “SONY KJ-43X8000H” deviceType Basic?
Firstly SONY KJ-43X8000H has 3 deviceType.
-MediaRender,dial,Basic
UPnP Tool for Developer Ver.1.5.2 can find “SONY KJ-43X8000H” 3 deviceType,
-MediaRender
-dial
-Basic

The following My App’ code uses mmpunp can’t find “SONY KJ-43X8000H” deviceType Basic.
Even if tap on Reload button (R.id.btReload) and execute “cp.search()”, mmupnp can’t find “SONY KJ-43X8000H” deviceType Basic.
Add the cp.search argument “ssdp:all”, still can’t find that.
The screenshot of My App is at the bottom.
class DeviceList : AppCompatActivity() {

    private val cp: ControlPoint = ControlPointFactory.create().also {
        Log.d(TAG,"controlPoint create ${it}")

        it.addDiscoveryListener(discoveryListener({ deviceListUpdate() }, { deviceListUpdate() }))
        it.initialize()
        it.start()
        it.search()
    }

    private var xdevices = MutableLiveData<List<Map<String,String?>>>()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_device_list)

        // List View for DeviceList
        val lvDeviceList = findViewById<ListView>(R.id.lvDeviceList)
        lvDeviceList.onItemClickListener = ListItemClickListener()

        xdevices.observe(this) { devices ->
            val from = arrayOf("friendlyName", "ipAddress", "deviceType")
            val to = intArrayOf(R.id.tvfriendlyName, R.id.tvipAddres, R.id.tvdeviceType)

            val adapter = SimpleAdapter(
                applicationContext,
                devices,
                R.layout.device_list_item,
                from,
                to
            )
            lvDeviceList.adapter = adapter
        }
    }
    private fun deviceListUpdate() {
       val devices = cp.deviceList.map { device ->
            mapOf("friendlyName" to device.friendlyName,
                "ipAddress" to device.ipAddress,
                "deviceType" to device.deviceType,
                //"baseURL" to device.baseUrl, // not ScalarWebAPI base Url
                "modelName" to device.modelName,
                "manufacture" to device.manufacture,
                "udn" to device.udn
            )
        }.sortedBy { it["friendlyName"] }

        xdevices.postValue(devices)
    }

    override fun onOptionsItemSelected(item: MenuItem): Boolean {
 　　　　　…
        when (item.itemId) {
           …
            R.id.btReload -> {
                cp.search()
            }
       }
        return true
    }

I don't know about the device, is there any error log? See below for log output
https://github.com/ohmae/mmupnp#debug-log-output

Thank you for your advice how to get mmupnp Log.
I attach the LOG which puts out mmupnp about the issue, not whole log.
I pick up the about the issues from LOG.

Are the following Warning and Information but have Exception ... cause that mmupnp can't find the device "Basic" issue?
2022-04-07 09:06:19.998 18242-18276/com.example.myavremote W/ControlPointImpl: loadDevice: java.io.IOException: HTTP/1.1 404 Not Found
2022-04-07 09:06:19.998 18242-18276/com.example.myavremote W/ControlPointImpl: 	at net.mm2d.upnp.HttpClient.download(HttpClient.kt:241) ... 12 more
2022-04-07 09:06:19.998 18242-18276/com.example.myavremote W/ControlPointImpl:
2022-04-07 09:06:20.000 18242-18276/com.example.myavremote I/ControlPointImpl: DeviceBuilder
...
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl: DESCRIPTION:null
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl: java.io.IOException: HTTP/1.1 404 Not Found
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.HttpClient.download(HttpClient.kt:241)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.HttpClient.downloadString(HttpClient.kt:215)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.internal.parser.ServiceParser.loadDescription(ServiceParser.kt:52)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.internal.parser.DeviceParser.loadServices(DeviceParser.kt:60)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.internal.parser.DeviceParser.loadDescription(DeviceParser.kt:54)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.internal.impl.ControlPointImpl.loadDevice(ControlPointImpl.kt:155)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.internal.impl.ControlPointImpl.access$loadDevice(ControlPointImpl.kt:38)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.internal.impl.ControlPointImpl$loadDevice$1.invoke(ControlPointImpl.kt:146)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.internal.impl.ControlPointImpl$loadDevice$1.invoke(ControlPointImpl.kt:38)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at net.mm2d.upnp.internal.thread.ExecuteFunctionKt$toRunnable$1.run(ExecuteFunction.kt:19)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:     at java.lang.Thread.run(Thread.java:923)
2022-04-07 09:06:20.002 18242-18276/com.example.myavremote I/ControlPointImpl:

I attached the whole Log. Could you check the whole Log for more detail.
Note. D/DeviceList is my App's Log.
SonyKJ-43X8000HBasicNotFound.log

I agree. The cause is that the device is returning 404.
This library is designed to ignore devices for which information cannot be obtained normally. That device is ignored because one of the service descriptions cannot download.
It's a device's problem.

I understand the device's problem? and mmupnp library specification.
But ...
Since "UPnP Tool for Develoer" can find device Type "Basic",
mmpunp also can find the device Type "Basic".
I attach the device xml file "dd.xml" which is not the same one before but has same issue.
With using this attached "dd.xml", colud you ADAPT to find "Basic" device.
Because mmupnp is very nice library and my App depends on it's functionality.
Note that dd.txt is dd.xml file, change suffix to xml when using it.
Because issue board does support xml suffix to attach.
dd.txt

The problem is <SCPDURL>/DIALSCPD.xml</SCPDURL>

This looks like a DIAL.
DIAL is a protocol like UPnP, but it violates the UPnP specification.

With your comment, I checked if curl can fetch each service's xml in device "Basic:1" xml.
DeviceType Basic:1's xml has 3 serviceType like folllwoing xml.

ScalarWebAPI
dial
IRCC

foo@hoge ~/tmp> curl http://<IP_ADDRESS>:40886/sony/webapi/ssdp/dd.xml
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
  ...
  <device>
    <deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
    ...
    <modelName>KJ-43X8500H</modelName>
    ...
<iconList>
    ...
</iconList>
    <serviceList>
      <service>
        <serviceType>urn:schemas-sony-com:service:ScalarWebAPI:1</serviceType>
        ...
        <SCPDURL>/sony/webapi/ssdp/scpd/WebApiSCPD.xml</SCPDURL>
        ...
      </service>

       <service>
           <serviceType>urn:dial-multiscreen-org:service:dial:1</serviceType>
           ...
           <SCPDURL>/DIALSCPD.xml</SCPDURL>
           ...
       </service>

      <service>
        <serviceType>urn:schemas-sony-com:service:IRCC:1</serviceType>
        ...
        <SCPDURL>http://<IP_ADDRESS>/sony/ircc/IRCCSCPD.xml</SCPDURL>
        ...
      </service>
    </serviceList>
    ...
  </device>
</root>

About dial service, curl NO OUTPUT means can not find DIALSCPD.xml
foo@hoge ~/tmp> curl http://<IP_ADDRESS>:40886/DIALSCPD.xml
foo@hoge

Other services, curl CAN FETCH its own xml about other services.
I'm not familiar with upnp,but The aboeve result,
I guess that mmupnp judge this xml content is none as an error.
Could you ADAPT not to judge error or skip this kind of error.
On My app, I just only want to list up deviceType "Basic" and no need to devices Services.

That needs to be carefully considered.
It would be inconsistent with the design policy of this library, which is to find only error-free devices.

It was difficult to determine, but it is true that a DIAL could result in a 404.
I have released v.3.1.4 with a change to ignore the Exception if the device type is DIAL.
While I am not yet certain that this is the right decision, I have decided to make this change because it will not affect other library users, if they use this library carefully.
https://search.maven.org/artifact/net.mm2d.mmupnp/mmupnp/3.1.4/jar

Thank you for release.
I update the mmupnp 3.14 and build the my app.
Unfortunately, mmupnp still can't list up the following.
SONY KJ-43X8000H
ST: urn:schemas-upnp-org:device:Basic:1

I attatched the log with mmupnp 3.14 and my app screen shot.
Could you keep supporting me.
SonyKJ-43X8000HBasicNotFoundWithmmupnpv314.log


Travis CI build failures in test/test-find-python.js

As discussed at https://github.com/nodejs/node-gyp/pull/1820#issuecomment-510967560

Node Version:  master
Platform:  Travis CI (Linux)
Compiler:
Module:  test

Verbose output (from npm or node-gyp):
In #1815 at https://travis-ci.com/nodejs/node-gyp/jobs/214789663#L4479-L4504

https://bugs.python.org/issue18338

python2 --version writes to stderr
python3 --version writes to stdout

https://github.com/nodejs/node-gyp/blob/master/test/test-find-python.js#L16-L26
I thought that the following would do the trick but it broke even more tests.
-       t.strictEqual(stdout, '')
-       t.ok(/Python 2/.test(stderr))
+       t.ok(/Python 2/.test(stderr) || /Python 3/.test(stdout))


Fix fabioh5 float conversion

Take care of exponent to choose floating-point size
Use numpy.longdouble if available (instead of float128/float96)
Fallback using float64
Create a dedicated module silx.utils.number

Relative to #1829
Closes #1830

my main concern is about float16 which are not handled by CPU and need to be packed/unpacked for every single operation on them

Thanks for the feed back.
I will fix that.

The way to deal with the exponent overestimates the minimum required type:
In [5]: min_numerical_convertible_type(str(numpy.float32(1.1e30)))
Out[5]: numpy.float128

It should be considered independently of the number of digits: does the exponent value fits the range of values provided by a specific type? (e.g., exponent in [-37, 37] for float32 (to keep using "normalized")

On Thu, 24 May 2018 05:07:01 -0700
Thomas VINCENT<EMAIL_ADDRESS>wrote:

BTW, this functions seems of general interest, what about moving it somewhere like silx.utils?

I agree with Thomas twice (about exponant values as well)

I think there is a much simpler way: convert string to longfloat and then check if it can be safely cast to a dtype:
    value = numpy.longfloat(string)
    for dtype in (numpy.float16, numpy.float32, numpy.float64):
        if numpy.can_cast(value, dtype):
            return dtype
    return numpy.longfloat

BTW, numpy.longfloat should always be defined (either float128, float96 or float64)

Looks fine.
There is a corner case where it overestimates the dtype, it is for numbers like: 0.00[...]0001
In [17]: min_numerical_convertible_type('0.000001')
Out[17]: numpy.float32
In [18]: numpy.float16('0.000001')
Out[18]: 1e-06

Yes, i did not take tralling 0 after the ".".
Anyway i also only support float16 containing 3 digits without exponent, as it should not be often use. But it could be considered as a normal case without problem.

According to https://github.com/silx-kit/silx/issues/680 float64 looks to be enough.

It's fine now. The precision was too strong. A float64 looks to be always enough for the result of time.time().

In [2]: numpy.longdouble
Out[2]: numpy.float64

In [3]: numpy.longdouble == numpy.float64
Out[3]: False

Well well...


Error when "cordova run android" in command line

FAILURE: Build failed with an exception.

Where:
Settings file 'C:\Users\USER\AndroidStudioProjects\CordovaProjectsApp\platforms\android\settings.gradle'

What went wrong:
Could not compile settings file 'C:\Users\USER\AndroidStudioProjects\CordovaProjectsApp\platforms\android\settings.gradle'.

startup failed:
General error during conversion: Unsupported class file major version 61

Thank you for your interest in Gradle!
Your issue appears to be a question about how to use Gradle. Your question might be answered in Gradle documentation or on our community Slack or forums. Find links to these resources on help.gradle.org.
If you think you have come across a Gradle bug, please file a new issue describing the problem and how to reproduce it.
If you think Gradle is missing a feature, please file a new issue describing your use case for the feature.


Rspec test - uninitialized constant Knock::AuthToken

I'm trying to create a helper for test authentication. But I get the error below. Debugger shows Knock only has Engine constant and no AuthToken
[1, 10] in /home/adones/Projects/Rails/unsakini/spec/support/auth_helper.rb
    1:
    2: module AuthHelper
    3:
    4:   def auth_headers(user)
    5:   	debugger
=>  6:     token = Knock::AuthToken.new(payload: { sub: user.id }).token
    7:
    8:     {
    9:       'Authorization': "Bearer #{token}"
   10:     }
(byebug) Knock.constants
[:Engine]
(byebug)

(byebug) Knock::AuthToken
*** NameError Exception: uninitialized constant Knock::AuthToken

nil
(byebug)

You probably need to configure it in rails_helper.rb:
require 'support/auth_helper'

# ...

config.include AuthHelper


Strange scroll bars appear when reloading object file

Version and Platform (required):

Binary Ninja Version: 3.2.3983-dev
OS: Ubuntu Linux
OS Version: 22.04
CPU Architecture: x64

Bug Description:
Strange scroll bars appear when reloading object file which are recognized as "Mapped (Python)" not as ELF files.
Steps To Reproduce:

Analyze file that are recognized as "Mapped (Python)" not as ELF files.  (1~4s)
Change view to ELF file view. (5~10s)
Close project. (11s)
Reopen project. (12s~)
Then, a strange scroll bar appears around the bottom of "ELF▼ Linear▼".

Screenshots:
Screencast from 01-13-2023 07:56:17 AM.webm
poc.zip

This may be caused by a rogue UI plugin. Try running with plugins disabled (./binaryninja -p) and see if the issue still persists. If it is indeed caused by a plugin, let me know if it's one in our repository (or one you wrote yourself).

I run binja with disabling plugin, then the scroll bar didn't shown. Thnaks!!.
This bug was probably caused by this sample plugin.
https://github.com/Vector35/binaryninja-api/blob/dev/python/examples/mappedview.py

Can I send a pull request with a bug fix, even something as trivial as a bug in the sample plugin?

I was just about to submit this. mine was due to https://github.com/gaasedelen/lighthouse.
thank you guys!

If you've got a fix, yes feel free to send a PR. Just heads up that we might take a bit to accept it right now since we're currently preparing a stable release.

I understand about PR.
ok. Thank you for your efforts to release a stable version. I look forward to every release.


Create Issue templates

Creating issues should be more defined. Using templates would be great.

Need this

Yeah, the project hasn't been active lately. I'll add these this week probably.


Remove container registry from arc control deploy

Fixes https://github.com/microsoft/azuredatastudio/issues/12152
We should come back and revisit these dialogs since there's a lot of useless blank space - but seeing as we're completely refactoring the deployment experience we can do it as part of that.
Note that for testing purposes users will still be able to specify a private docker repo by setting the DOCKER_USERNAME and DOCKER_PASSWORD env vars themselves prior to running. If needed we can look into adding that as a setting or something to make it easier for users to use but that's enough of an edge case I think we should be fine just removing it for now.

Pull Request Test Coverage Report for Build 259761961

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 38.358%

Totals

Change from base Build 259722307:
0.0%

Covered Lines:
19103

Relevant Lines:
45651

💛  - Coveralls


Pipenv support (Python)

Pipenv is a popular package and virtualenv manager for Python.
Like Ruby's Bundler which has Gemfile and Gemfile.lock, Pipenv has Pipfile and Pipfile.lock.
Note that Pipenv can produce a requirements.txt file, which I tried to use with licensed, but no luck.
$ pipenv lock --requirements > requirements.txt

$ head requirements.txt
-i https://pypi.org/simple
-e .
absl-py==0.6.1
astor==0.7.1
boto3==1.9.62
boto==2.49.0
botocore==1.12.62
bz2file==0.98
certifi==2018.11.29
chardet==3.0.4

$ licensed list
Displaying dependencies for datascience core package

$ cat .licensed.yaml
sources:
  pip: true

Read the licensed pip docs and specified the virtualenv directory in .licensed.yaml.
sources:
  pip: true
python:
  virtual_env_dir: "/Users/dennis/.local/share/virtualenvs/core-06DYXQgl"

Trying again errors with the following trace
$ licensed list
Displaying dependencies for datascience core package
  pip dependencies:
Traceback (most recent call last):
	22: from /Users/dennis/.rbenv/versions/2.6.0/bin/licensed:23:in `<main>'
	21: from /Users/dennis/.rbenv/versions/2.6.0/bin/licensed:23:in `load'
	20: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/exe/licensed:5:in `<top (required)>'
	19: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
	18: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
	17: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
	16: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
	15: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/cli.rb:30:in `list'
	14: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/cli.rb:59:in `run'
	13: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:12:in `run'
	12: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:12:in `each'
	11: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:14:in `block in run'
	10: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:14:in `chdir'
	 9: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:15:in `block (2 levels) in run'
	 8: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:15:in `each'
	 7: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:20:in `block (3 levels) in run'
	 6: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:33:in `dependencies'
	 5: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:22:in `dependencies'
	 4: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:22:in `map'
	 3: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:23:in `block in dependencies'
	 2: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:45:in `package_info'
	 1: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:54:in `pip_command'
/Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/shell.rb:17:in `execute': command exited with status 2 (Licensed::Shell::Error)
  /Users/dennis/.local/share/virtualenvs/core-06DYXQgl/bin/pip --disable-pip-version-check show "-i https://pypi.org/simple
"
    Usage:
      pip show [options] <package> ...

    no such option: -i

@dideler what version of pip are you using?

$ /Users/dennis/.local/share/virtualenvs/core-06DYXQgl/bin/pip --version
pip 18.1 from /Users/dennis/.local/share/virtualenvs/core-06DYXQgl/lib/python3.6/site-packages/pip (python 3.6)

ah ok so it looks like the two opening lines of requirements.txt are unexpected.
-i https://pypi.org/simple
-e .

Is there a way to have pipenv generate the requirements file without those lines?  Otherwise I'd be happy to accept a PR if you wanted to submit a fix 😄 .  Seems like licensed could ignore any lines that aren't of the format <package>=<version>?

Thanks @jonabc, manually removed those lines and it works!
I don't think there is a way for pipenv to not generate those lines. (Note the -e . is because of a local package dependency that was added to the Pipfile with pipenv install --editable .)
I'll try to submit a patch once I've finished going through all our remaining dependencies I'm auditing.

Closed by https://github.com/github/licensed/pull/167 :tada:


Document query parameters

Document the currently available query parameters.
Example query params: https://satvis.space/?gs=48.2663,11.6683&sat=MOVE-II

These queries are interesting - I seem to be able to query with gs= and get the ground stations, but whatever i do with the sat= setting the satvis.space page seems to default to the MOVE satellites. Looking through the source I found what i assume is the default setup in embedded.html, but attempts to work from that to make https://satvis.space/?elements=Point,Label,Orbit&layers=OfflineHighres&gs=50.99,-0.199&tag=METEOR-M 2&sat=METEOR-M 2 default to showing Meteor-M2 around my Lat/Lon dont work - it always defaults to MOVE (althpugh the gs= and elements= settings seem to work, so I assume the hosted system on satvis.space is forcing the default MOVE satellites?).  For my limited amount of use I
Is there a 'trick' in the URL formation or something missing?
Happy to help with the documentation - I am still picking through the source to find out where and how it is all handled.
(amazing project by the way :)

These queries are interesting - I seem to be able to query with gs= and get the ground stations, but whatever i do with the sat= setting the satvis.space page seems to default to the MOVE satellites. Looking through the source I found what i assume is the default setup in embedded.html, but attempts to work from that to make https://satvis.space/?elements=Point,Label,Orbit&layers=OfflineHighres&gs=50.99,-0.199&tag=METEOR-M 2&sat=METEOR-M 2 default to showing Meteor-M2 around my Lat/Lon dont work - it always defaults to MOVE (althpugh the gs= and elements= settings seem to work, so I assume the hosted system on satvis.space is forcing the default MOVE satellites?).  For my limited amount of use I
Is there a 'trick' in the URL formation or something missing?
Happy to help with the documentation - I am still picking through the source to find out where and how it is all handled.
(amazing project by the way :)

So after quite some picking through code
https://satvis.space/?elements=Point,Label,Orbit%20track,Sensor%20cone&layers=OfflineHighres&gs=50.8515,-0.1446&tags=Weather&sat=NOAA%2018
Now takes me direct to NOAA18.  Which is awesome.
But since i only track the Amatuer APT signals i would ideally like to show NOAA 15,18,19 and METEOR-M2, but given this would seem to require a custom 'tag' or some other way to define this list and having gone through the code I think my query above is likely to be as good as I can do without forking / self hosting and modifying the source..
..unless I am missing something :)

So after quite some picking through code
https://satvis.space/?elements=Point,Label,Orbit%20track,Sensor%20cone&layers=OfflineHighres&gs=50.8515,-0.1446&tags=Weather&sat=NOAA%2018
Now takes me direct to NOAA18.  Which is awesome.
But since i only track the Amatuer APT signals i would ideally like to show NOAA 15,18,19 and METEOR-M2, but given this would seem to require a custom 'tag' or some other way to define this list and having gone through the code I think my query above is likely to be as good as I can do without forking / self hosting and modifying the source..
..unless I am missing something :)

Hey there, sorry for the slow response as always, quite busy with other projects during the week.
Right now it is only possible to enable/disable groups of satellites based on their tags through the URL params.
The sat params determines which satellite is tracked/ focused on so only allows a single satellite.
Exposing the active satellites directly seems like a useful thing for multiple use cases, I'll try to add it in the next few weeks.

Hey there, sorry for the slow response as always, quite busy with other projects during the week.
Right now it is only possible to enable/disable groups of satellites based on their tags through the URL params.
The sat params determines which satellite is tracked/ focused on so only allows a single satellite.
Exposing the active satellites directly seems like a useful thing for multiple use cases, I'll try to add it in the next few weeks.

Awesome!

Hey @Flowm - wondering if you wanted to point me at the logic around the tags if it would be as simple as me creating a tag containing Noaa 15,18 and 19, and METEOR M 2 (and offering a PR) which are the 4 that the amateur sat chasers are hungry for. For context, last autumn I embedded Satvis in my own weather satellite project which caught the eye of the folks driving https://github.com/jekhokie/raspberry-noaa-v2 so the embed and my hotlinks to the satellites in satvis have been included as an option :) - I am now quite active with that group. At the moment the issue is that when you hot link you still have many other default satellites showing which are not the 4 being tracked! (Hence the interest to polish that corner :) )

Hey @Flowm - I had a read of the code and worked out what might be a way forward. The tags are populated by the contents of the tle files from NORAD. we kinda need a shortlist 'grepped' from the weather.txt to be 'Amweather.txt' or similar which only contains the Noaa 15,18,19 and Meteor M2 satellites.  Then we can pull the tag in this way and only show the 4 we are keen on:
https://satvis.space/?elements=Point,Label,Orbit%20track,Sensor%20cone&layers=OfflineHighres&tags=Amweather
I realise its a bit tall to ask you to make that tweak on your hosted version, but if you do that would 'solve' (or at least workaround) the issue our side :)


Don't Merge! PR real time test for webhook case

Docs Build status updates of commit 7c4dd65:
:clock10: Pending: waiting for processors (30 builds ahead of you)
:warning: Docs Build is busy, currently there are 30 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 7c4dd65:
:clock10: Full build: the average full build time is 5 min(s) 55 sec(s), this is based on the last 745 build(s) for this repository.

Docs Build status updates of commit 7c4dd65:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/testing.md
:bulb:Suggestion
View (azure-cli-latest) View (azure-cli-2017-03-09-profile) View (azure-cli-2018-03-01-hybrid)
Details

docs-ref-conceptual/testing.md

[Suggestion] Missing attribute: title. Add a title string to show in search engine results. NOTE: This Suggestion will be elevated to a Warning on 9/1/2019.
[Suggestion] Missing attribute: title. Add a title string to show in search engine results. NOTE: This Suggestion will be elevated to a Warning on 9/1/2019.
[Suggestion] Missing attribute: title. Add a title string to show in search engine results. NOTE: This Suggestion will be elevated to a Warning on 9/1/2019.

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


[Y2K-148] syncing folder dark background

cc @keybase/y2ksquad
Before:

After:

@jakob223 I think this PR is a big improvement over what's there right now. Let's merge it and then fix it if we're still unhappy with it.


refactor getting index

Pyserini retriever uses a dictionary of indices to find the right index name based on dataset and retrieval method combination

1- Pyserini retriever uses a dictionary of indices to find the right index name based on dataset and retrieval method combination
2- Pyserini_retriever now has the proper path config so that it works as a script


Warning device_state_attributes after update to 2021.12

Getting the following warning after update to 2021.12:
2021-12-11 21:53:27 WARNING (MainThread) [homeassistant.helpers.entity] Entity climate.ac_living_room (<class 'custom_components.panasonic_cc.climate.PanasonicClimateDevice'>) implements device_state_attributes. Please report it to the custom component author.
It looks like it is just a name change from "device_state_attributes" to "extra_state_attributes" name change.
Anyone knows how to fix this? Is it just to replace all "device_state_attributes" by "extra_state_attributes" in all files?

Solved through this


refactor package infrastructure/kubernetes

refactor package to reuse code :

use Applier to create/update/delete Kubernetes resources
use ResourceRender to render resource for Proxy/RateLimit
move common functions to utils package

cc @arkodg

@qicz can you also help review this PR since you've done some refactoring in this area in the past, thanks in advance !

No problem. in fact, i have already reviewed a few days ago without.note, i will do this again.