New package: IntervalWavelets v0.2.0

Registering package: IntervalWavelets
Repository: https://github.com/robertdj/IntervalWavelets.jl
Created by: @robertdj
Version: v0.2.0
Commit: 527f01b3a4b27a2d72d97afbbb18ee9c401d2379
Reviewed by: @robertdj
Reference: https://github.com/robertdj/IntervalWavelets.jl/issues/5

Once upon a time before Pkg3 IntervalWavelets was registered. I believe the version then was 0.1.0.
Should I start over with the version numbers? If not, I believe 0.2.0 is appropriate.

Any news regarding this?


add optional branch flag to pipeline delete command

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 37.81%.  Consider uploading reports for the commit 0d5d3b4 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #549   +/-   ##
=======================================
  Coverage   37.81%   37.81%
=======================================
  Files          50       50
  Lines        3165     3165
=======================================
  Hits         1197     1197
  Misses       1843     1843
  Partials      125      125

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Automatic width

Barcode width can be automatic, by specifying 0 as witdh

Partly solves issue 14

@nomaddamon thanks for the contribution.


Busybox and posix shell support

Great work, very useful!
Is it an idea to make it a tiny bit more "generic" so that it can run, for example, in an Alpine distro with default shell?
I have been working on a version which seems close:
https://github.com/sakai135/wsl-vpnkit/compare/main...albertony:busybox
Most of it is quite straight forward changes I think, but the trap/cleanup logic is a bit hard to get right. When first making the script valid #! /bin/sh I kept getting two vpnkit-tap-vsockd left after exit (Ctrl+C) - when running from Alpine's sh, but also Debian's sh. This never happens when running with bash, in fact I could even remove the existing kill $PID_RELAY $PID_TAP and it seems to always stop all the the subshells/processes on exit! The only way to make it kill the vpnkit-tap-vsockd was to add a kill 0 at the end of the close function, which I guess is a bit dirty?

Thanks, and sorry for my late response.
kill 0 does do the job for cleaning up, so I'm good with merging your current changes if you want to make a PR.


refactor: Modify implementation of TLS

Summary

This PR modifies the implementation of TLS, which was originally implemented in #322
Checklist

[X] Tested and/or added tests to validate that the changes work as intended, if applicable.
[ ] Added the documentation in README.md, if applicable.

@chr1st1ank if you could test it on your end, I would appreciate it (just to make sure I didn't accidentally break anything 😂), but no pressure.

@TwiN , yes I tested the new version locally and it works perfectly with the same config and certificates as before.
Nice move mit the omitempty for the whole TLSConfig object. That makes the error handling easier.


Pressing Cancel while 'deleting by edit' message blocks sending messages

My Setup

Operating System: Ubuntu 18.04.3 LTS x86_64
App Version: 2.16.2 (and also 2.14.x, so it's not new bug)
Installation type: snap install rocketchat-desktop (if this is what I had to post here)

[x] I have tested with the latest version
[x] I can simulate the issue easily

Description

If you send text to someone and after second thought you want to delete it so you edit message, remove all text and press enter BUT then you have third thought that this message was okay so you press Cancel, then you are done. You can't write anymore to this person/group unless you restart the app.

Send message to someone
RMB->Edit/ArrowUp to edit
Remove all characters
Press Enter (window with "are you sure?" pops up)
Press Cancel
Done

Current Behavior
You can't write to this person/group anymore, unless you restart the app. Anything you type and press enter just disappears. You can't edit or delete anything.
Expected Behavior
You can.

It seems to be an issue in Rocket.Chat itself.


link in menu to api (documented api)

fix in : https://github.com/Jumpscale/jumpscale_portal8/commit/122437377c3384f63d1cb72e2c58f3f7f373db53


possible problems with our list comprehension [x to y]

The problem with our list comprehension is that it never produces an empty list.  Consider,
> [1 to 1]
[1]
>

or
> [1 to 0]
[1,0]
>

I think at least one of these cases needs to produce an empty list for the proper behavior of lists, especially in the context of for loops. Let's take a look at some use cases.  Iterating over lists, non-edge case,
> let l = ["zero","one"].
> for i in [0 to len(l)-1] do
.    io @println(l@i).
. end
zero
one
>

That looks ok.  Next case, iterating over lists first edge case, list length of 1,
> load io.
> let l = ["zero"].
> for i in [0 to len(l)-1] do
.   io @println(l@i).
. end
zero

That also looks ok. Next case, trying to iterate over an empty list,
> load io.
> let l = [].
> for i in [0 to len(l)-1] do
.   io @println(l@i).
. end
error: list index out of range
>

Here is the problem!  The list comprehension computes a list of indexes that don't exist in the actual list,
> [0 to len(l)-1]
[0,-1]
>

I think the problem here is our "autodetect" of the step direction.  In the previous incarnation with explicit step directions like step 1 or step -1 the last case would have generated an empty list because there is not way to get from 0 to -1 with an implied default step of positive 1.
How do we fix this?  Any ideas?

This may be the very reason python disallows implicated step values. I don't really see a simple way of getting around this. Hmm...

Perhaps we need to reinstate the idea of a step value instead of a stride?
On Wed, Jul 13, 2022 at 4:36 PM Oliver Wendell McLaughlin <
@.***> wrote:

This may be the very reason python disallows implicated step values. I
don't really see a simple way of getting around this. Hmm...
—
Reply to this email directly, view it on GitHub
https://github.com/asteroid-lang/asteroid/issues/181#issuecomment-1183653043,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADXERT35A5V2V3AHSVP4RITVT4SFJANCNFSM53P2BGCA
.
You are receiving this because you authored the thread.Message ID:
@.***>

That seems to make sense to me. I've been toying for a few minutes but the way we have it now doesn't really give any room to accommodate this case. I think it's reasonable to go back to step based list comprehensions

I have another idea:  we change the behavior of the list comprehension to match the behavior of the range construction in Python. E.g.
Python 3.8.9 (default, Oct 26 2021, 07:25:53)
[Clang 13.0.0 (clang-13<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> list(range(0,2))
[0,1]
>>> list(range(0,1))
[0]
>>> list(range(0,0)) # this case and the next are semantically identical
[]
>>> list(range(0,0,-1))
[]
>>> list(range(0,-1,-1))
[0]
>>>

except that we don't have to specify the explicit step value since it will be inferred by the list comprehension unless you would like a stride other than 1.  The Python examples written in Asteroid's list comprehension,
> [0 to 1]
[0]
> [0 to 0]
[]
> [0 to -1]
[0]
> [0 to -2]
[0,-1]

Then the problematic edge case from above would be,
load system io.
let l  = [].
for i in [0 to len(l)] do
  io @println(l@i).
end

and would print nothing since the list comprehension,
> [0 to len(l)]
[]

Notice that this approach also simplifies the canonical case of generating indexes for a particular list -- no pesky -1 needed on the list length.

I like this!!! I can implement this today if you'd like :)

Hold on. Just identified two more edge cases that will fail.  We have to go
back to the step notation ☹
On Thu, Jul 14, 2022 at 10:59 AM Lutz Hamel @.***> wrote:

Sounds good.  I wonder how much in our test suite will break due to this
change 😒 Plus we need to update the documentation...
On Thu, Jul 14, 2022 at 10:20 AM Oliver Wendell McLaughlin <
@.***> wrote:

I like this!!! I can implement this today if you'd like :)
—
Reply to this email directly, view it on GitHub
https://github.com/asteroid-lang/asteroid/issues/181#issuecomment-1184507722,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADXERT644BYJUKJR6LT2GVTVUAO2NANCNFSM53P2BGCA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Ahh brutal!

Fixed with #187

Sounds good.  I wonder how much in our test suite will break due to this
change 😒 Plus we need to update the documentation...
On Thu, Jul 14, 2022 at 10:20 AM Oliver Wendell McLaughlin <
@.***> wrote:

I like this!!! I can implement this today if you'd like :)
—
Reply to this email directly, view it on GitHub
https://github.com/asteroid-lang/asteroid/issues/181#issuecomment-1184507722,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADXERT644BYJUKJR6LT2GVTVUAO2NANCNFSM53P2BGCA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Changing ball material for gameplay

For some reason, when I attempt to swap the ball material from the orange and blue balls to the realistic texture, it works for the static pregame arrangement of balls, but once the game starts, it defaults back to blue and orange. I have dug through seemingly every option and cant see what I have done wrong. Perhaps I should not be manually switching textures. Perhaps there is an actual setting somewhere I have missed to toggle between the different customization. I for the life of me cannot find it though and I don't see any documentation on customization outside the initial setup guide. Is this a bug or intended behavior?

If you can't figure it out, I'd class that as a bug - this stuff should be easy. At the moment I'd probably outright swap the textures in the prefab.

@atomiklan In the "Materials" section of the UdonBehavior, there should be a dropdown called "Sets" which contains the references to the textures that get swapped depending on which gamemode you select at the beginning. If you want to change the textures of the balls at runtime- do it there. Changing the material for the static objects themselves only makes them look differently before a game is played (which is often also desirable for worlds with custom skins)


Add --explain

Relates to https://github.com/charliermarsh/vscode-ruff/pull/26.
> cargo run -- --explain C600
error: Invalid value 'C600' for '--explain <EXPLAIN>': Matching variant not found

> cargo run -- --explain C403 .
C403 (flake8-comprehensions): Unnecessary `list` comprehension (rewrite as a `set` comprehension)

> cargo run -- --explain C403 --format json .
{
  "code": "C403",
  "category": "flake8-comprehensions",
  "summary": "Unnecessary `list` comprehension (rewrite as a `set` comprehension)"
}

Cool, this looks good to me. I'd like to spruce up --explain but it doesn't need to block this PR.


comment out lifecycle

so schema will take effect

Task linked: CU-33uy9p8 Add custom attributes to api and app user pools to track tenant and optionally app


Enable ruff import sorting

Topic: import_sorting

#
head
base
diff
date
summary

0
e48ec2e1
d0fe85a4
diff
Dec 26 18:12 PM
13 files changed, 20 insertions(+), 24 deletions(-)

Reviews in this chain:
└https://github.com/riffusion/riffusion/pull/38 Enable ruff import sorting


setuptools adding hyphen to beginning and ending of version

I'm trying to upload my package onto PyPI but it will not work.  It looks like PyPi or setuptools is adding - before and after my version name.  Originally, I had the following version: ß-2018.8 but I don't think unicode characters work.  I then moved it to beta-2018.8 but that didn't work either.  I even tried a basic 2018.8 but still the same error?!
Can anyone help me figure out what is happening?
My pip version:
pip 18.0 from /Users/mu/anaconda/envs/py3_clone/lib/python3.6/site-packages/pip (python 3.6)

My command:
python setup.py register sdist upload

My error:
Submitting dist/thisismypackagename--2018.08-.tar.gz to

https://upload.pypi.org/legacy/
Upload failed (400): '-2018.08-' is an invalid value for Version. Error: Start and end with a letter or numeral containing only ASCII numeric and '.', '_' and '-'. See https://packaging.python.org/specifications/core-metadata
error: Upload failed (400): '-2018.08-' is an invalid value for Version. Error: Start and end with a letter or numeral containing only ASCII numeric and '.', '_' and '-'. See https://packaging.python.org/specifications/core-metadata

My __init__.py:
# =======
# Version
# =======
__version__="beta-2018.08"

My setup.py
import re
from setuptools import setup

# Version
version = None
with open("./thisismypackagename/__init__.py", "r") as f:
    for line in f.readlines():
        line = line.strip()
        if line.startswith("__version__"):
            version = line.split("=")[-1].strip()

setup(name='thisismypackagename',
      version=version,
      description='package description',
      author='Josh L. Espinoza',
      packages=["thisismypackagename"],
      zip_safe=False)

This is my directory structure:
thisismypackagename
    | thisismypackagename
    | thisismypackagename | __init__.py
    | setup.py

Your version is literally "beta-2018.08" including the quotation marks, which are turned into - characters when the version is normalized.

changing it to a float:
2018.08
fixed the problem.  thank you.

@jolespin I wouldn't recommend turning it into a float, this might cause problems if you eventually cast it to a string somewhere, e.g.:
>>> str(2018.10)
'2018.1'
>>> str(2018.1)
'2018.1'

If you really need your version to exist somewhere other than inside of setup.py, I'd recommend doing something similar to what pip does here: https://github.com/pypa/pip/blob/master/setup.py#L18-L28


[FTB Ultimate Reloaded 1.0.1 Multiplayer] I can't make progress in the "Thaumic Tinkerer" Tree

I can not complete the missions "Transvector Interface" and "Tome of Knowledge Sharing", even tho I have made an arcane workbench, how can I complete those missions or is this even possible?
I attached the photos of it not responding, it just sits there saying "Completing..." all day long and after i close it and reopen it, it gets set back to the beginning state.

you should probably post this for the thaumic tinkerer mod thats not actually a part of (vanilla) thaumcraft


Camera display type crashes rviz (Melodic) when deselected or deleted

Camera display type crashes rviz when it it deselected or deleted. Recreated with multiple cameras on multiple machines.
To recreate

Add any camera with a valid calibration

Camera display image should be displayed with overlay

Either delete or de-select Camera display to cause crash.

Your environment

OS Version: Ubuntu 18.04

ROS Distro: Melodic

RViz, Qt, OGRE, OpenGl version as printed by rviz:
rviz version 1.13.3
compiled against Qt version 5.9.5
compiled against OGRE version 1.9.0 (Ghadamon)
Stereo is NOT SUPPORTED
OpenGl version: 4.6 (GLSL 4.6).

Console output

Gtk-Message: 12:27:56.341: GtkDialog mapped without a transient parent. This is discouraged.
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
  what():  boost: mutex lock failed in pthread_mutex_lock: Invalid argument
[1]    25031 abort (core dumped)  rviz

Install type
Aptitude

I'd like to bump this as a fairly major issue. The program crashes on moving camera windows around.

Upstream issue: https://github.com/ros/geometry2/pull/402.

after 25d2c81cfd6a8660a7dfb953cfd67e5659cbeede this issue reappear @rhaschke


change fileretrievaldynamic to NetworkPartition

@svetomir this PR is not good, discovered bug in chaos-mesh for NetworkChaos, it can be only merged after that bug is fixed upstream

@svetomir this PR is not good, discovered bug in chaos-mesh for NetworkChaos, it can be only merged after that bug is fixed upstream

Can you give a detail bug of chaos-mesh or file an issue in here? We will look into it and fix as soon as possible

Since Chaos Mesh have already join CNCF sandbox, we need to move it to chaos-mesh org, If update Chaos Mesh, please also update apiVersion to chaos-mesh.org/v1alpha1

We have refine the network partition, could you please update chaos mesh and test it again? @vandot
Thank you very much

tested and commented here https://github.com/chaos-mesh/chaos-mesh/issues/763#issuecomment-671404255


Fixed-Layout epubs and page-spread-* properties

Epubjs does not appear to honor the spine properties for page-spread-*
see: http://idpf.org/epub/fxl/#properties-page-spread
As a result, fixed layout epubs often have mis-aligned spreads.
Expected pagination:
[ ][R]
[L][R]
[L][R]
[L][ ]

Actual epubjs pagination
[R][L]
[R][L]
[R][L]

This a common issue with epubs exported from Adobe Indesign using fixed-layout conversion.
Other readers such as Apple's Books will show the initial page on its own and subsequent spreads are correctly aligned.

sorry, moving this to epub.js issues


Title + description for Google

This was annoying me somewhat, so I went ahead and fixed it.

Thanks a lot!


no error info to nonexist dataset when getting dataset

as this url:
http://localhost:9091/dataset/get?acc=PXD001998&database=PRIDE

no result, no error response.
It would be better to return some error info when the dataset is not exist.

@baimingze I will return an empty object like:
{
id: null,
source: null,
name: null,
description: null,
keywords: null,
organisms: null,
publicationDate: null,
protocols: null,
instruments: null,
experimentType: null,
labMembers: null,
full_dataset_link: null
}
Let me know if you are ok to close this issue.

done


Refactor PushListActivity and PushListAdapter

Refactor PushListActivity/PushListAdapter
Overview of Changes

Renamed variables for clarity.
Extrapolated methods into saller chunks for maintainability.
Reformated java code to meet Google Java Guide standards.

Strategy

My overall strategy is to refactor a bit of the codebase at a time (as I need to, I refactored these classes because they will affect my MQTT work coming up!)

Looks good, i don't know anything about android development so wait a few minutes so i can compile it

Merge lays the groundwork for #1 & #2


CLI exits with status 1 in npm commands

package.json
"fix:sort": "import-sort -o ./"
command
npm run fix:sort
debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.2.1/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'fix:sort' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prefix:sort', 'fix:sort', 'postfix:sort' ]
5 info lifecycle radar-dashboard@0.0.1~prefix:sort<EMAIL_ADDRESS>6 info lifecycle radar-dashboard@0.0.1~fix:sort<EMAIL_ADDRESS>7 verbose lifecycle radar-dashboard@0.0.1~fix:sort: unsafe-perm in lifecycle true
8 verbose lifecycle radar-dashboard@0.0.1~fix:sort: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/Herc/Documents/RADAR/RADAR-Dashboard/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/Herc/Library/Android/sdk/platform-tools:/Users/Herc/Library/Android/sdk/platform-tools
9 verbose lifecycle radar-dashboard@0.0.1~fix:sort: CWD: /Users/Herc/Documents/RADAR/RADAR-Dashboard
10 silly lifecycle radar-dashboard@0.0.1~fix:sort: Args: [ '-c', 'import-sort -o ./' ]
11 silly lifecycle radar-dashboard@0.0.1~fix:sort: Returned: code: 1  signal: null
12 info lifecycle radar-dashboard@0.0.1~fix:sort: Failed to exec fix:sort script
13 verbose stack Error<EMAIL_ADDRESS>fix:sort: `import-sort -o ./`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
13 verbose stack     at emitTwo (events.js:125:13)
13 verbose stack     at EventEmitter.emit (events.js:213:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
13 verbose stack     at emitTwo (events.js:125:13)
13 verbose stack     at ChildProcess.emit (events.js:213:7)
13 verbose stack     at maybeClose (internal/child_process.js:921:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /Users/Herc/Documents/RADAR/RADAR-Dashboard
16 verbose Darwin 16.7.0
17 verbose argv "/usr/local/Cellar/node/8.2.1/bin/node" "/usr/local/bin/npm" "run" "fix:sort"
18 verbose node v8.2.1
19 verbose npm  v5.3.0
20 error code ELIFECYCLE
21 error errno 1
22 error<EMAIL_ADDRESS>fix:sort: `import-sort -o ./`
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>fix:sort script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Note:
Running npx import-sort -o ./ exits without errors.

The exit code is the number of modified files, (https://github.com/renke/import-sort/blob/master/packages/import-sort-cli/src/index.ts)
Problem is, in Unix system, status code 0 is "Everything is ok", every other status is "There's an error"
https://github.com/renke/import-sort/pull/33 should to fix this, but it's a big breaking change, and I don't know if this will be merged.

@briced for --diff and --status it makes senses to exit with 1 as it means they have found errors.
It's only when you're doing --write that it shouldn't exit with 1 because the files have been successfully changed, so they should be correct and there are no errors in them. The write command should only exit with 1 if there's an error writing the files.

@herkulano
--status, as I understand it, returns the status code, without doing the rewriting (kind of dry-run), so it's coherent to make it return 0.
For --diff the work is done, so it's normal to return a status code "everything is ok".
If it fails, it will call bail() and return -1

Here's how to suppress the status code when different than 0:
"fix:sort": "import-sort -o './' || true"


Copying fragments from the fragments tab copies parent structure

After the fragmentation of a molecule, it is not possible to copy fragments from the "Fragments" tab in the "Structure" column.
Steps to reproduce:

load one or more molecules into MORTAR
make a fragmentation of your choice via the lower left button with the algorithm name
navigate to the "Fragments" tab
copy a fragment from the Structure column, by right clicking on the picture and clicking copy, like shown in the picture

open the file explorer of your choice and paste the picture (png file) into an directory
if you open the pasted picture, it shows the parent structure and not the fragment copied

See #136


Added missing commit: 439bd3a055df4acba9bb9ce3dc36ed1e0633e11c

Codecov Report

Merging #6130 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #6130      +/-   ##
============================================
- Coverage     83.15%   83.12%   -0.03%
+ Complexity    12529    12524       -5
============================================
  Files          1453     1453
  Lines         47444    47444
  Branches       5827     5827
============================================
- Hits          39452    39440      -12
- Misses         5284     5292       +8
- Partials       2708     2712       +4

Impacted Files
Coverage Δ
Complexity Δ

...n/java/io/crate/exceptions/JobKilledException.java
0% <0%> (-66.67%)
0% <0%> (-1%)

...io/crate/protocols/postgres/types/VarCharType.java
70.83% <0%> (-29.17%)
9% <0%> (-2%)

...o/crate/analyze/SafeExpressionToStringVisitor.java
83.33% <0%> (-16.67%)
7% <0%> (-1%)

...ration/collect/collectors/OrderedDocCollector.java
90% <0%> (-10%)
5% <0%> (-1%)

...ticsearch/indices/recovery/BlobRecoveryStatus.java
63.63% <0%> (-9.1%)
3% <0%> (-1%)

.../collect/collectors/LuceneOrderedDocCollector.java
76.47% <0%> (-5.89%)
14% <0%> (-1%)

...ate/operation/merge/RamAccountingPageIterator.java
94.44% <0%> (-5.56%)
8% <0%> (-1%)

...ration/reference/doc/lucene/IpColumnReference.java
72.72% <0%> (-4.55%)
5% <0%> (+1%)

...in/java/io/crate/lucene/match/CrateRegexQuery.java
43.47% <0%> (-4.35%)
4% <0%> (-1%)

...otocols/postgres/RetryOnFailureResultReceiver.java
88.46% <0%> (-3.85%)
10% <0%> (-1%)

... and 27 more

Continue to review full report at Codecov.

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


Consistent ValueError in 0.3.4 when used with a HashedFilesMixin-based class as STATICFILES_STORAGE

The error message is
ValueError: The file '' could not be found with <xxxx.storage.S3HashedFilesStorage object at 0x7f5e67f8b590>.
This issue is caused by https://github.com/marcgibbons/django-rest-swagger/commit/e460e0a2be87859dbbe3b1fadaeb00b972ba84b2
Passing empty string to static tag is not allowed in HashedFilesMixin.

Fixed in latest stable/0.3.x and v2


Get rid of jackson-core at runtime

from what I can tell, timeshape only needs jackson-core at compile time (in the builder project), where it parses actual json which it then serialized to protobuf format.
the final timeshape.jar no longer needs jackson: its bundled data.tar.zstd is in protobuf format understood by geojson-proto (which itself also doesn't need jackson, but only protobuf and commons-compress to parse that data).
the change in this PR should result in a .pom that does not list jackson-core as dependency.

Thanks for your contribution! I'll have to take a closer look, but since the tests pass I believe it should be fine to merge it as is. Now I wonder why I haven't thought of removing this dependency earlier.

I think it looks good when merged. Thanks again @cb-nezasa! Do you need a release (non-snapshot) with this change any time soon?

Thanks a lot @RomanIakovlev ! A new release would be appreciated, but it's not urgent, as we currently use this workaround in our code:
"net.iakovlev" % "timeshape" % "2020d.12" excludeAll ExclusionRule("com.fasterxml.jackson.core")


Dealabs search bridge - Recherche : amazon failed with error 0

Error message: Call to a member function getTimestamp() on boolean
Query string: action=display&bridge=Dealabs&q=amazon&hide_local=on&priceFrom=&priceTo=&format=Atom

I can't reproduce the problem, have you got the latest version of rss-bridge ?

since updating to latest version, the issue has gone.
Thanks


Rflink: added support for lights with toggle type

Description:
I recently installed a Livolo switch which requires the same command to be sent to turn the switch on and off, by sending the 'on' command for both. Since this isn't possible yet, I decided to implement it.
However, unfortunately even though the code itself looks to be okay from my side, when I use the following entry for the configuration.yaml:
light:
  platform: rflink
  devices:
    Livolo_1_8:
      name: Livolo
      type: toggle

The switch doesn't show up on the HA interface.
I also tried the following configuration.yaml entry:
light:
  platform: rflink
  devices:
    Livolo_1_8:
      name: Livolo
      type:
        - toggle

However, this leads to the following error:
ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [light.rflink]: not a valid value for dictionary value @ data['devices']['Livolo_1_8']['type']. Got ['toggle']. (See ?, line ?). Please check the docs at https://home-assistant.io/components/light.rflink/

Even though I properly put the files in the right structure in the custom_components folder and the new type has been added to be accepted by voluptuous. I'd be glad if anyone could have a look!
As soon as everything is working, I'll add tests and update the documentation.
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

Looking good, thanks for taking the effort to add support for this. As discussed in private, please add tests to keep the coverage of this component. I think the easiest would be to copy this test and modify it to you needs: https://github.com/home-assistant/home-assistant/pull/5969/files#diff-eaba5262fab26b70c0f8f3fabf32fbeaR396
If you need any help getting it up just let me know.

Hey @aequitas, I tested if it works again using the github repository in a development environment this time instead of overriding via custom_components and the code worked beautifully!
I tried adding a test but something is still wrong. On line 407 I always get:
>       assert hass.states.get('light.toggle_test').state == 'on'
E       AssertionError: assert 'off' == 'on'
E         - off
E         + on

I don't know why, since the state change worked without any issues in the frontend and I could not find any other errors... I'd be glad if you could have a look and tell me if you can find anything.

This PR can be merged when @aequitas approves and the test works

@martinfrancois I'll check later today and come back on it, from what I can see quickly everything looks all right, maybe you are just hitting some race condition here?

You treat the _state object as a plain boolean whereas its actually a tristate (unknown, True, False). Not the best example of proper code on my part.
The initial state on any rflink entity is unknown as it can't be known. If this value is notd it resolved to False (non-empty string == True). It would be best I think to rewrite the logic to account for the initial state. The question would then be what state should they take?
Currently the rflink component does not use the newly added state persistence, but I might add support for that soon. That would reduce some state issues with these kind of devices I think as the initial state will then be queried from last recorded state in the database.

Ah I see! I missed that, I just saw that the state is being set as true or false in some cases and assumed it was a boolean. I'll change the code to reflect that, thanks!
I think I will initialize it as off. It may not be the the best solution but I think it's not that bad, you can still in some cases press the physical switch to have it be properly synced again and adding persistence would sure help a lot!


[CSM-426] WIP - Serve Swagger doc from wallet endpoint

How to test?

Build everything by running ./scripts/build/cardano-sl.sh
Run wallet api

tmux
scripts/launch/demo-with-wallet-api.sh

Test endpoint

curl --cacert {xxx}/cardano-sl/scripts/tls-files/ca.crt -v https://localhost:8090/api/wallet-api-swagger.json

So it serves json ? I thought it will serve html produced documentation? @sectore

Wow, for a difficult thing you ask for

@Martoon-00

Wow, for a difficult thing you ask for

how come we have html generated in cardano docs ?

@akegalj The goal is to use SwaggerUI. The first attempt was to serve a *.json file, but this is deprecated now. Please note that this PR is still labeled as WIP.

I think it's important to move this instance somewhere to wallet as well
https://github.com/input-output-hk/cardano-sl/pull/1439/files#diff-5f87d064029e0a5c3e34d82a1668aefcR46

I think it's important to move this instance somewhere to wallet as well

@Martoon-00 Which instances in detail?

Sorry, broken link. This one: https://github.com/input-output-hk/cardano-sl/blob/23f4aa0202971ad35fbbb3ca2a503956bcbfada0/wallet/web-api-swagger/Main.hs#L47


Propagate file changes in realtime

Re-render FakeImage instances when their associated ImageFile is deleted or updated to show the new pixels.

To the backlog it goes.


ChangeLog addition: SR-7139: Support enforcement of exclusive memory

…ase builds.

@swift-ci smoke test.

@atrick You'll also need to add a URL to the end of this file.
 [SR-4248]: <https://bugs.swift.org/browse/SR-4248>
+[SR-7139]: <https://bugs.swift.org/browse/SR-7139>
 [SR-7251]: <https://bugs.swift.org/browse/SR-7251>


Feature  - Develop metadata service in Java

Create a microservice in Java that will store the static metadata about the option available on UI, It will communicate with the gateway through Rest API.

Added code for microservice in java that can return JSON objects.


Cleanup strings.xml: removed duplicates, Google sign in button now us…

Changes as discussed in issue  #242, please verify @samtstern

2016-08-09 21:52 GMT+02:00 googlebot<EMAIL_ADDRESS>
I signed it!

@peterhav one comment, otherwise LGTM.

LGTM, thanks!


[VL] Pass file size and modification time to split

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
(Fixes: #ISSUE-ID)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Can you comment a bit how these info are used by Velox? Is it aligned with Spark's behavior?

can't we leverage metadatacolumns for this since it already contains fileSize and modifyTime ?

can't we leverage metadatacolumns for this since it already contains fileSize and modifyTime ?

Does metadatacolumns always contain file size and modification time? I understood it as containing these only if they are being queried. In this case I want it to always be passed in the split.

Can you comment a bit how these info are used by Velox? Is it aligned with Spark's behavior?

In Spark, properties are present in the split and obtained during listing. Earlier Velox would make one additional call to remote storage to fetch file length per openFileForRead call on a path even though this information is already present upstream wihle constructing the split. Velox now allows these values to be passed from the caller. By making this change we can eliminate one additional call to remote storage per path (RTT is in the order of 10s of milli seconds).


Stack reallocation issue

Hi Robert,
There is a problem in wrenEnsureStack in file wren_value.c: you adjust the pointers into the reallocated stack by adding an offset to them computed as this:
   long offset = fiber->stack - oldStack;

This is incorrect for at least 2 reasons:

the difference of 2 pointers, of type ptrdiff_t might not fit in type long.  Indeed it does not on Windows 64-bit as pointers are 64-bit wide and type long only has 32 bits for ugly compatibility reasons.

the difference of 2 pointers not pointing to the same array is explicitly described in the C Standard as having undefined behavior.  Indeed, even on architectures with a flat addressing space, the 2 pointers might be at a distance that is not a multiple of the size of the type pointed to.  The difference will be computed as the byte offset divided by the size of the object (type in this case Value) and whenever this offset is added to a pointer, the actual adjustment might be incorrect if the division had a remainder.  In the current implementation, with NAN tagging, the size of type Value is the same as his alignment value, so it is not a problem, but without NAN tagging, the size is twice the alignment value: definitely a problem...

I suggest you change the code to this:
if (vm->apiStack >= oldStack && vm->apiStack <= fiber->stackTop)
{
  vm->apiStack = vm->stack + (vm->apiStack - oldStack);
}

And correct the other fix-ups in this function.  There is a good chance the compiler will generate efficient code for this anyway.

Thanks for noticing this!


Once again use singer-io/target-csv instead of our own fork

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2338
Originally created by @DouweM on 2020-09-03 16:10:03

As reported by Jan Feřtek on Slack, https://gitlab.com/meltano/meltano/-/issues/2197 was unintentionally reversed back by https://gitlab.com/meltano/meltano/-/commit/12a30889ee3c99cb96b4d09d7d5c6a9c27a36782#24ea2aafd68d8e0f82ee51382a8c17793e2b99c8.

View 1 previous comment from the original issue on GitLab


Fixed emitEvent does not check if object is TransactionResponse

Codecov Report

Merging #20 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage    98.6%   98.61%   +<.01%
==========================================
  Files           3        3
  Lines         143      144       +1
  Branches       17       17
==========================================
+ Hits          141      142       +1
  Partials        2        2


Initial Project

Create project
Initial Base (Management API call, Handle Error)

Close as https://github.com/namnh-0652/flutter_movie_clean/pull/15


MC encryption documentation probably needs updating

https://github.com/minio/mc/pull/4962

Will do as part of #1253


Summary list component: add ability to add multiple action links to a row

The GDS Nunjucks component takes an array of items for a row’s action links, something this gem currently doesn’t allow.

Just tried doing this with the Nunjucks macros and it looks a bit weird with multiple actions. I amended the code from the first example on the summary list page by adding 'Remove' and 'Confirm':
{{ govukSummaryList({
  rows: [
    {
      key: {
        text: "Name"
      },
      value: {
        text: "Sarah Philips"
      },
      actions: {
        items: [
          {
            href: "/change",
            text: "Change"
          },
          {
            href: "/remove",
            text: "Remove"
          },
          {
            href: "/confirm",
            text: "Confirm"
          }
        ]
      }
    },
    // ✂
  ]
}) }}

The output definitely looks wrong.

I'm either calling it incorrectly or there's an underlying bug. I'll go ahead and implement the component regardless and keep in mind it might need adjusting prior to merge.

Interesting. That certainly looks like a bug. I can file an issue on the design system repo, but it does demonstrate that multiple actions is an intentional part of the component, given the separators between each link. Probably not spotted before because it's not often a row has multiple actions associated with it (or the labels are very short when they do).

Fixed by #222


Execution of detached programs

Description
The LogStream::readFully() associated with a detached exec seems to return an empty String.
Background: We would like to run a detached program that may take a while to finish, and so we would like to abort waiting for it under certain circumstances (we're shutting down, or a timeout has been reached). So we have code similar to what's shown below. Unfortunately, stream.readFully() unexpectedly returns an empty String when !running, which is strange because if we use a non-detached version, we can confirm the output is non-empty as it should be.
Our hypothesis is that stream.readFully() returns an empty String, always, on a detached exec instance. Is this true? As mentioned above, we would like to be able to terminate the waiting of the completion of the command, how can this be accomplished? The API suggests it may be possible to interrupt the thread, however we would strongly prefer to avoid interrupting threads (for many reasons).
String execId = docker.execCreate(name, args,
        DockerClient.ExecCreateParam.attachStdout(),
        DockerClient.ExecCreateParam.attachStderr());
try (LogStream streamTmp =  docker.execStart(execId, DockerClient.ExecStartParameter.DETACH)) {
    long startNanoTime = System.nanoTime();
    long sleepMillis = 10;
    while (!condition.shouldAbort()) {
        try {
            ExecState state = docker.execInspect(execId);

            if (!state.running()) {
                return new ProcessResult(state.exitCode(), stream.readFully());
            }
        if (System.nanoTime() - startNanoTime > timeout.toNanos()) {
            // TODO: Would be great if we could attach stdout/stderr
            // ... unfortunately LogStream.readFully() blocks.
            throw new TimeoutException("Command " + args + " for container " + containerName
                    + " timed out after " + timeout.toMillis() + " ms");
        }

        sleepMillis = Math.min(2 * sleepMillis, 1_000);
        try { Thread.sleep(sleepMillis); } catch (InterruptedException e) { }
    }
}

How to reproduce
See above
What do you expect
I would have expected the LogStream to be connected to the stdout/stderr as defined by our DockerClient.ExecCreateParam to execCreate(), and LogStream::readFully() after the program has completed should return the full stdout/stderr (depending on the DockerClient.ExecCreateParam).
What happened instead
An empty string is returned.
Software:
Client:
Version:      1.9.1
API version:  1.21
Go version:   go1.4.2
Git commit:   a34a1d5
Built:        Fri Nov 20 13:29:22 UTC 2015
OS/Arch:      linux/amd64
Server:
Version:      1.9.1
API version:  1.21
Go version:   go1.4.2
Git commit:   a34a1d5
Built:        Fri Nov 20 13:29:22 UTC 2015
OS/Arch:      linux/amd64

docker version: [Add docker version here, client and server]
docker-client version: 3.5.12

Hi @hakonhal ,
Since this project went on mature status, please re-open this issue (if it still stands) to https://github.com/dmandalidis/docker-client. Thanks


putting a  node into a component doesn't show the view but opens a download window

If I put a <geospatial view> into a component it generally gives me the view in the composite view. Now that I expanded the component, changed some connections (introduced flow variable connections) and created the component again, I get a pop-up window which asks me to download the index.html whenever a <geospatial view> is executed. I am not entirely sure if I can reproduce but I will keep the affected workflow.

I guess this has been solved @sturmkev ?

Yeah, I also didn't face the issue anymore recently.


[FEATURE REQUEST] more descriptive tags for the buttons and an audioldm feature

Hello, I am visually impaired and some of the tags on the buttons confuses me. For example from what I can remember, there is a button with a rocket emoji, a generate button, and another emoji which I cant remember. Can there be additional texts be added to make it more understandable? Because I could not found a manual  which explained these buttons.
For the audioldm request, I believe audioldm can also take an audio as an input. Is it possible to make it so it can get both text and audio as input as well? Thank you very much!

Yes, audioLDM does support audio as input.
The rocket emoji loads a model, the bomb emoji unloads a model.
I will see if i can add some javascript code to add tooltips, as gradio does not support them out of the box.

oh that is great to know thank you. Does that mean audio WebUI support input or, the app supports it but the webUI currently does not support it yet? I am slightly confused there :) Because yesturday I've tried to see if it is available, and found no way to use an audio

AudioLDM itsself supports audio as input, so adding it won't take very long! It's not in audio-webui currently though. But i'll add it soon, along with tooltips for buttons. (mainly word descriptions for emoji buttons for now)

  thank you very much! I will be looking forward to it. Cheers💯

ha yes the emojis are fun, probably inspired by huggingface gradio, 🤗 but it would be real nice if it would use some more professional and clear icons and labels. The rocket is also used on Workspaces, kind of confusing.🚀
Stable diffusion uses tooltips with some code in hints.js, maybe interesting.

ha yes the emojis are fun, probably inspired by huggingface gradio, hugs but it would be real nice if it would use some more professional and clear icons and labels. The rocket is also used on Workspaces, kind of confusing.rocket
Stable diffusion uses tooltips with some code in hints.js, maybe interesting.

yeah, hints.js was the main reason i added js loading support. So now i just have to add it. Module scripts are supported too so i can just have it load it from the main script.

I will close the issue, but i will make sure to avoid things being too unclear in future commits.


Make using different CAM16 UCS spaces for ∆Ecam16 possible

∆Ecam16 can now have the UCS space specified via "space". This can be any space derived from CAM16UCS.

@gir-bot lgtm


Update cloud environment variables

Updates the cloud environment variables to match what Grafana Java and .NET instrumentations use.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0507db1) 79.52% compared to head (dc1fa17) 44.25%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #422       +/-   ##
===========================================
- Coverage   79.52%   44.25%   -35.27%
===========================================
  Files          61       59        -2
  Lines        4883     4770      -113
===========================================
- Hits         3883     2111     -1772
- Misses        792     2530     +1738
+ Partials      208      129       -79

Flag
Coverage Δ

integration-test
?

unittests
44.25% <ø> (+0.10%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files
Coverage Δ

pkg/internal/export/otel/grafana.go
76.19% <ø> (ø)

pkg/internal/export/otel/metrics.go
70.00% <ø> (-5.00%)
:arrow_down:

pkg/internal/export/otel/traces.go
77.23% <ø> (-4.90%)
:arrow_down:

... and 40 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


File path is too long on windows

When downloading the package on windows, I get the error message that the file path is too long. The problem is in example/node_modules/socket.io.
It would be nice if you could remove that example or just put it in another package (elm-socketio-example)

...Seriously, Microsoft?
I suppose I could include a package.json file so people would download the node modules themselves.
Do you have the exact text of the error?

Do you approve of this plan? (y/n) y
Downloading elm-lang/core
Downloading mgold/elm-socketio
Error: failed with 'mgold-elm-socketio-ddd55d2/examples/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/arraybuffer.slice/package.json: openBinaryFile: does not exist (No such file or directory)' when sending request to
http://github.com/mgold/elm-socketio/zipball/2.0.2/

How does that indicate that the filepath is too long?

Oops sorry I got the wrong error, the funny things is that the error is different depending on the context, sometimes I get the earlier error, sometimes I get this one
To install mgold/elm-socketio I would like to add the following
dependency to elm-package.json:
"mgold/elm-socketio": "2.0.2 <= v < 3.0.0"

May I add that to elm-package.json for you? (y/n) y
Some new packages are needed. Here is the upgrade plan.
Install:
mgold/elm-socketio 2.0.2
Do you approve of this plan? (y/n) y
Downloading mgold/elm-socketio
Error: failed with 'CreateDirectory "mgold-elm-socketio-ddd55d2\examples\node_modules\socket.io\node_modules\engine.io\node_modules\engine.io-parser\node_modules\arraybuffer.slice": does not
exist (The filename or extension is too long.)' when sending request to
http://github.com/mgold/elm-socketio/zipball/2.0.2/

Okay, I'll release a fix for this today or tomorrow.

Fix has been pushed to master. I'm going to let it sit for a few hours before releasing the package so I can see if there's anything else I want to include in the patch release.

Thanks :)

2.0.3 is published. :tada:


hide mhr tile, update to assets tile

https://github.com/bcgov/entity/issues/15396

changes needed to set hidden=false in prod for mhr product

/gcbrun


[RFE] Add systemd-cryptenroll PKCS11 support to unlock LUKS encrypted volumes using HSMs

Current situation
Systemd does not support PKCS11 URIs.
$: sudo systemd-cryptenroll --pkcs11-token-uri=list
PKCS#11 tokens not supported on this build.

Implementation options
Add the pkcs11 flag to systemd build.
Optional: Add dev-libs/opencryptoki for Software Token support.
Optional: Add softhsm2 integration testing in Mantle.

Can you provide more about information on how you expect this to be used? What is the use case compared to a TPM?

Can you provide more about information on how you expect this to be used? What is the use case compared to a TPM?
Best example I could find is the systemd test implementation:
https://github.com/systemd/systemd/blob/main/test/units/testsuite-24.sh#L235

That shows unlocking against a softhsm process running on the same system. How would that be used with an actual HSM?
I'd like us to understand the use case and then decide together whether it is worth implementing or not.

The PKCS11 URI can be changed to a soft token implementation or other opencryptoki implementation (see https://github.com/opencryptoki/opencryptoki?tab=readme-ov-file#requirements SWToken ). Once opencryptoki gets built with the SWToken enabled, the .so library obtained will replace the softhsm .so one and the URI format gets changed accordingly). The SWToken library implements TCP over SSL to access the HSM (HSM needs to be compatible with the opencryptoki SWToken implementation, of course).
Then it's a matter of systemd-cryptenroll to be configured to use the proper .so library file.
This has to be confirmed on a real HSM (once I get access to such device).
I have created this issue in case there are potential users of this feature, there are quite alot of black boxes to be sorted out HSM hardware wise.

Similar PR might be needed for HSM too: https://github.com/flatcar/bootengine/pull/93


Adding I2C(TWI) support in Openthread gives error while linking

Hello Team,
I am using Opnethread running on the nRF52840 device. I just want to add a few supports with my client application such as I2C, SPI, etc. But as soon as I add the code for I2C it gives me errors while linking.
Environment setup
I have cloned the new repo OT-nRF52840 and using the thread client app(openthread/examples/apps/cli/main.c)
I have added the below code to the app to test first if it compiles:
#include "../../../../third_party/NordicSemiconductor/nrfx/drivers/include/nrfx_twi.h"

static nrfx_twi_t m_twi;
void twi_handler(nrfx_twi_evt_t const * p_event, void * p_context)
{
}
extern nrfx_err_t nrfx_twi_init(nrfx_twi_t const *        p_instance,
                         nrfx_twi_config_t const * p_config,
                         nrfx_twi_evt_handler_t    event_handler,
                         void *                    p_context);

void twi_init()
{
    const nrfx_twi_config_t twi_config = {
       .scl                = 26,
       .sda                = 27,
       .frequency          = 100,
       .interrupt_priority = 1,
       //.clear_bus_init     = false
    };
    m_twi.drv_inst_idx=0;
    nrfx_twi_init(&m_twi, &twi_config, twi_handler, NULL);
}

Error I get
main.c:(.text.twi_init+0x26): undefined reference to `nrfx_twi_init'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I have also enabled the TWI and its instance in sdk_config.h file. Still, it shows the error.
I don't know where I am making the mistake, I wish to add the whole I2C code once it solves.
Thanks in advance,
Hardik

Hi @Hard1kPrajapati ,
For complex applications running OpenThread on nRF52840 device with more subsystems enabled, I would recommend to use nRF Connect SDK instead of OT-nRF52840. This SDK is available in Github: https://github.com/nrfconnect/sdk-nrf. In the SDK you get support for all peripherals available in nRF5 platform including I2C and SPI. I'm afraid enabling support for complex applications in OT-nRF52840 would require much effort.
As an alternative, you could have a look at nRF5 SDK for Thread and Zigbee, an older but still maintained solution.

Closing stale issue.


type-graph-Any.svg seems to be generated always

Whenever you do documentable start, this message always shows up
file 'html/images/type-graph-Any.svg'

To Reproduce
Run
documentable start -a -v --highlight

Well, all classes subclass Any, so this makes sense. There's no cache JJ/Raku-Doc-TypeGraph#15, so we don't know if it's being regenerated or not. Bear it in mind when cache in Doc::TypeGraph is introduced.


How to perform variable binding in SOQL query?

I have an array of ids of a certain custom object. I need to query all the children of that object records represented in the array. However, it won't do variable binding and gives error saying:

Bind variables only allowed in Apex code] name: 'MALFORMED_QUERY'

My query looks something like this:

select Id, field_1__c, field_2__c from Child_Obj__c where Parent_Obj__c in parentObjIdArray

Where parentObjIdArray is an array of ids of the parent object.
Any ideas or suggestions on how to do this?

@neeraj87 You can't do the variable binding natively in REST API because it doesn't support right now. However the JSforce's SObject#find() do the similar thing to developers.
var parentObjIdArray = [ '', '', '', ... ];
conn.sobject('Child_Obj__c').find({
  ParentObj__c : parentObjIdArray
}, [ 'Id', 'field_1__c', 'field_2__c' ]).then(function(records) {
   // ...
});


Add sleep in WebSocket poll

CPU usage for the testclient was 100% because it was in a hot loop. I added a 500ms delay. Feel free to modify this as you'd like.

Lets switch this down to 50ms, to make sure things don't go too slowly during handshaking. Other than that looks great :)

Done.


added yaml file, result of playing with the multicast join to get things interop'ing  ...

Thanks Tony! Pulled it in.


Write metadata alongside features during feature generation

Just the question about needing a List from me, otherwise, 👍  Given the significance of the change, I'd also be interested to know if @toddmowen has any more thoughts before it is merged to make sure he's happy with how his comments were addressed.
The writing abstraction can wait for another PR unless you have any ideas about it at this stage.

:+1: as it stands, but ideally change the List[MetadataSet[Any]] arguments to MetadataSet[Any] first.

👍


build(share_plus)!: Target Java 17 on Android

Description
Same as #2723
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[x] Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
[ ] No, this is not a breaking change.

Since this PR I'm getting the following error when trying to build for Android:
Execution failed for task ':share_plus:compileReleaseKotlin'.
> Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (17) and 'compileReleaseKotlin' (1.8).

Could you explain what kind of migration is neccesary?

Could you explain what kind of migration is neccesary?

You need to change your build.gradle like it was changed in this PR to specify Java 17 to use during compilation of Kotlin code. From your error it looks like you have 1.8 specified in kotlinOptions section of your build.gradle file.

Do we need to upgrade to Gradle 8.4 even though it's in beta?

You are confusing Android Gradle Plugin and Gradle itself. While Android Gradle Plugin 8.4 is indeed in beta, Gradle 8.4 itslef isn't in beta. We require Gradle wrapper version to be 8.4. Gradle wrapper is specified in files like this inside any project: https://github.com/fluttercommunity/plus_plugins/blob/main/packages/share_plus/share_plus/android/gradle/wrapper/gradle-wrapper.properties

Thanks Volodymyr.
I have updated to Java 17 and Gradle Wrapper 8.4. I have kept Gradle Plugin at 8.2.2 due to a bug with 8.3.
Unfortunately this only replaced ther error with:
Execution failed for task ':games_services:compileReleaseKotlin'.
> Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlin' (17).

I'm not sure why, since the game_services plugin does not specify a Java or Kotlin version? link
As a final result, based on this Stackoverflow post, I added kotlin.jvm.target.validation.mode = IGNORE to my gradle.properties file. This doesn't sound great. But did fix the build issue.

And what about Java compile options? Did you also change it to 17 like it is done in this PR?
Both Java compile and Kotlin compile tasks should have the same Java target version.
These 2 lines are the ones responsible for Java version for Java compile: https://github.com/fluttercommunity/plus_plugins/pull/2730/files#diff-2607f8958e631dcb7f1ce17b341b8520cde253d7cde36a0bafc64d98676f4270R33

What is game_services plugin? 🤔 Not sure I understood that line

Yes, I did replaced the compile options with Java 17 as well. Here is the full app/build.gradle file: https://pastebin.com/ZQMH5NLf
And the settings.gradle file is: https://pastebin.com/WeXLHTab
Sorry for the broken link for the game_services plugin. I've updated it above.


Add notes for betas for Chocolatey components

Description Of Changes
Add release notes for beta releases of all Chocolatey components
Motivation and Context
There are releases coming up, and we need to get this documented
Testing

[x] I have previewed these changes using the Docker Container or another method before submitting this pull request.

Change Types Made

[ ] Minor documentation fix (typos etc.).
[x] Major documentation change (refactoring, reformatting or adding documentation to existing page).
[ ] New documentation page added.

Change Checklist

[ ] Requires a change to menu structure (top or left hand side)/
[ ] Menu structure has been updated

Related Issue
N/A

@pauby I have fixed up your suggestions, can you have another review? Thanks!


Fixed PIC16 instruction MOVIW ("Status Affected: Z")

Added setResultFlags(W); for PIC16 instruction MOVIW, because this instruction affects Z, according to the PIC documentation.

Looks good to me.  Thanks for the fix.


[BUG] Sock Bind error in Apache Functions Python in local

Rancher Server Setup

Rancher version: Rancher Desktop 1.16.0
Installation option (Docker install/Helm Chart): brew install rancher

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):

Proxy/Cert Details: N/A
Mac Sequoia 15.1.1

Information about the Cluster

Kubernetes version: N/A - Rancher Desktop
Cluster Type (Local/Downstream):

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):

User Information

Tested starting Rancher Desktop with administrative privileges too, no change

Describe the bug
I'm testing Apache Functions and I'm trying to test my function locally
For this, I have started the local server with
fn start --log-level DEBUG --port 8080

and I'm trying to create, deploy and invoke a test function with
fn use context default
fn update context registry mylocalregistry

fn -v init --runtime python fn-local

cd fn-local

fn -v deploy --create-app --app app-local --local
fn invoke app-local fn-local

Result
The invocation (last line) fails with Error invoking function. status: 502 message: Container failed to initialize, please ensure you are using the latest fdk and check the logs
In the server logs I see that the problem is a python socket creation
...
time="2024-12-21T19:48:40Z" level=debug msg="  File \"/python/fdk/__init__.py\", line 62, in start\n" app_id=01JFN9NJFZNG8G00GZJ0000001 container_id=01JFNC7J7ZNG8G00GZJ0000003 fn_id=01JFNC6GG1NG8G00GZJ0000001 image="mylocalregistry/fn-local:0.0.2" tag=stderr
time="2024-12-21T19:48:40Z" level=debug msg="    sock.bind(phony_socket_path)\n" app_id=01JFN9NJFZNG8G00GZJ0000001 container_id=01JFNC7J7ZNG8G00GZJ0000003 fn_id=01JFNC6GG1NG8G00GZJ0000001 image="mylocalregistry/fn-local:0.0.2" tag=stderr
time="2024-12-21T19:48:40Z" level=debug msg="PermissionError: [Errno 1] Operation not permitted\n" app_id=01JFN9NJFZNG8G00GZJ0000001 container_id=01JFNC7J7ZNG8G00GZJ0000003 fn_id=01JFNC6GG1NG8G00GZJ0000001 image="mylocalregistry/fn-local:0.0.2" tag=stderr
time="2024-12-21T19:48:40Z" level=info msg="hot function terminated" app_id=01JFN9NJFZNG8G00GZJ0000001 container_id=01JFNC7J7ZNG8G00GZJ0000003 cpus= error="container exit code 1" fn_id=01JFNC6GG1NG8G00GZJ0000001 idle_timeout=30 image="mylocalregistry/fn-local:0.0.2" memory=256

...

Expected Result
Execution of function
Screenshots
N/A
Additional context

Sorry you should file this one with Rancher Desktop GH
https://github.com/rancher-sandbox/rancher-desktop


Handling for precision greater than 38 BIGNUMERIC  in BQ

Added adjustment on the precision to change it to 38 in BigQuerySqlDialect class if the datatype is BIGNUMERIC and precision is greater than 38

L1 is done.


Make DeleteDatabase in DropCreateDatabaseWhenModelChanges virtual

To allow custumer deleting or backup of database before dropping

thanks for your work!


add important requirement

Added Important note to requirements section to make the customer aware that they must have an Azure AD Joined Machine to RDP to a windows VM with Azure AD Auth enabled.
The missing requirement caused myself and several other Azure engineers to fail to get this working several times.
There is a similar not much farther down in the document, but putting all requirements in the requirements section makes it easier for customers to get this working.

@DeanCefola : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Tp2000 652  force rule check after real edit

TP2000-652 force rule check after real edit

Why
Successful business rule checks on a workbasket are currently valid for as long as the head transaction of the workbasket is equal to (actually less than or equal in Tamato’s code) the transaction check. As soon as a new transaction is created in a workbasket, it is ahead of the last transaction check and so becomes invalid.
However, real edits do not create new transactions, but instead update them. This could allow hidden invalid workbaskets should an edit cause a change that would otherwise cause a business rule to fail.
What

add TimestampedMixin to TransactionCheck
add TimestampedMixin to TrackedModel
data migration for TransactionCheck which takes the TrackedModelCheck timestamps to set TransactionCheck timestamps
data migration for TrackedModel which takes the Transaction timestamp to set TrackedModel timestamps
updated unchecked_or_errored_transactions to check that the TransactionCheck is created after the last TrackedModel in the workbasket was updated. (A real edit)
unit tests for a real edit
unit tests for data migrations

Checklist

Requires migrations? - Yes
Requires dependency updates?

Codecov Report
Attention: 33 lines in your changes are missing coverage. Please review.

Comparison is base (1e21300) 93.37% compared to head (f78d689) 93.31%.

Files
Patch %
Lines

common/tests/test_migrations.py
22.72%
17 Missing :warning:

checks/tests/test_migrations.py
23.80%
16 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1130      +/-   ##
==========================================
- Coverage   93.37%   93.31%   -0.07%
==========================================
  Files         571      572       +1
  Lines       42488    42550      +62
  Branches     3048     3049       +1
==========================================
+ Hits        39675    39706      +31
- Misses       2226     2255      +29
- Partials      587      589       +2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


price rounding in the admin

Description: The rounding of the prices in the admin is not working correctly
Expected result:
Price (gross) : 19.99 | Price (net) : 16.79
Actual result:
Price (gross) : 19.99 | Price (net) : 16.7983193277311
Price (gross) : 19.9801 | Price (net) : 16.79
_"We only transfer net values to our ERP and therefore our ERP calculates the gross values.
Due to the high decimal places in shopware, we now receive a difference in the checkout from the gross value of approx. 0.01€ for each order."_

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-31631
[created from NEXT-31631, comment 514435]


ReferenceError: generate is not defined

Describe the bug
If you run that code in React, an error will occur. Why?
To Reproduce
import type { Template } from '@pdfme/common';
import { BLANK_PDF } from '@pdfme/common';
import { generate } from '@pdfme/generator';

const template: Template = {
            basePdf: BLANK_PDF,
            schemas: [
                {
                    a: {
                        type: 'text',
                        position: { x: 0, y: 0 },
                        width: 10,
                        height: 10,
                    },
                    b: {
                        type: 'text',
                        position: { x: 10, y: 10 },
                        width: 10,
                        height: 10,
                    },
                    c: {
                        type: 'text',
                        position: { x: 20, y: 20 },
                        width: 10,
                        height: 10,
                    },
                },
            ],
        };

        const inputs = [{ a: 'a1', b: 'b1', c: 'c1' }];

        generate({ template, inputs }).then((pdf: Uint8Array) => {
            console.log('!', pdf);

            // Browser
            // const blob = new Blob([pdf.buffer], { type: 'application/pdf' });
            // window.open(URL.createObjectURL(blob));

            // Node.js
            // fs.writeFileSync(path.join(__dirname, `test.pdf`), pdf);
        });

Expected behavior

Your Environment
- @pdfme/common: "^3.4.3"
- @pdfme/generator: "^3.4.3"
- @pdfme/ui: "^3.4.3"

Your Error Log
ReferenceError: generate is not defined

Additional context

Hey @wonjongjang
Can you give me a reproducable repo?

Mozilla defienes a reference errors as:
The ReferenceError object represents an error when a variable that doesn't exist (or hasn't yet been initialized) in the current scope is referenced.

Seems to me that your error lies with import { generate } from '@pdfme/generator';
The function generate isn't referencing anything.
Seems strange as I would expect you to get an error during the import, but as hand-dot says, it's hard to reproduce without an error as the code above should work.
Seems to me the error is not within the PDFme code but within your project, causing generate to reference nothing.


net: ip: Does not reset expired TCP session

Describe the bug
A TCP client can be programmed to use a fixed TCP source port. When we perform a power cycle to a target running the fixed-source-port TCP client that has already connected to the TCP server, the target will make a new TCP session with the same TCP source port, but the old TCP session is still kept by the TCP server which replies with the old ACK number.
For Linux TCP client, RST is issued if the TCP server ACKed unseen segment, and then the TCP server can accept new SYN with the same TCP source port.
(At packet No. 93, the TCP client restarts and sends a new SYN.)

If the Linux TCP client issues random-source-port SYN after a power cycle and hence the new connection is established immediately, the TCP server still issues TCP Keep-Alive for the old session, and the Linux TCP client will reset the old connection when it receives  TCP Keep-Alive.
(At packet No. 107, the TCP client restarts and sends a new SYN.)

For Zephyr TCP client, ACK is ignored if the TCP server ACKed unseen segment, and the Zephyr TCP client keeps retransmitting SYN, the connection cannot be established until the old TCP session kept by the TCP server reaches TCP-Keep-Alive timeout.
(At packet No. 49, the TCP client restarts and sends a new SYN.)

To Reproduce

Power the Zephyr TCP client up to make a TCP connection to the TCP server.
Power the Zephyr TCP client down, and then power the Zephyr TCP client up again.

#include <zephyr/net/socket.h>

int main(void)
{
    int fd, ret;
    struct sockaddr_in sin, servaddr;
    struct in_addr inaddr;

    fd = zsock_socket(AF_INET, SOCK_STREAM, 0);

    sin.sin_family = AF_INET;
    sin.sin_addr.s_addr = INADDR_ANY;
    sin.sin_port = htons(4044);
    zsock_bind(fd, (const struct sockaddr *)&sin, sizeof(sin));

    inet_pton(AF_INET, "<IP_ADDRESS>", (void *)&inaddr);

    servaddr.sin_family = AF_INET;
    servaddr.sin_addr = inaddr;
    servaddr.sin_port = htons(502);

    ret = zsock_connect(fd, (const struct sockaddr *)&servaddr, sizeof(servaddr));
    printk("zsock_connect()=%d\n", ret);

    return 0;
}

Expected behavior
Zephyr will reset the expired TCP session kept by the peer when the peer replies with an unexpected ACK number.
Environment

OS: Linux
Toolchain: Zephyr SDK
Commit: https://github.com/zephyrproject-rtos/zephyr/commit/433a85e7bf32ffc77ba194bb903bcca84c44c047

@chih-hung-yu Please give https://github.com/zephyrproject-rtos/zephyr/pull/64029 a try.

@chih-hung-yu Please give #64029 a try.

For fixed-source-port Zephyr TCP client, the behaviour is now the same as Linux TCP client.

For random-source-port Zephyr TCP client, RST is sent for unexpected TCP Keep-Alive packet, and an extra ICMP Port unreachable is also sent.

For random-source-port Zephyr TCP client, RST is sent for unexpected TCP Keep-Alive packet, and an extra ICMP Port unreachable is also sent.

Zephyr stack currently sends ICMP Destination Unreachable for any IP-based protocol, so it indeed duplicates with the RST behavior introduced. What's the expected behavior for TCP, shall it reply with RST only, and forfeit error reporting at the ICMP level?
Also @jukkar, regarding the Kconfig option to disable RST sending for unbound ports - shall we still send ICMP error in case RST's are disabled, or just silently ignore the packet?
In any case, adjusting this behavior is just a matter of minor tweaks in the code at this point, we just need to agree on the expected behavior.


⚠ AGE-Vicmap_Geomark-MS has degraded performance

In 892ec07, AGE-Vicmap_Geomark-MS (https://vicmap.land.vic.gov.au/hosting/rest/services/vicmap/Vicmap_Geomark/MapServer/0/query?where=1%3D1&resultRecordCount=1) experienced degraded performance:

HTTP code: 200
Response time: 14801 ms

Resolved: AGE-Vicmap_Geomark-MS performance has improved in 518abee after 17 minutes.


Cluster MSI follow-up

Which issue this PR addresses:
https://issues.redhat.com/browse/ARO-4360
What this PR does / why we need it:
This PR has a few small changes in response to feedback on the original cluster MSI PR. This branch also includes the contents of https://github.com/Azure/ARO-RP/pull/3863, so you should wait for that to be merged before reviewing this.
Test plan for issue:
CI and E2E
Is there any documentation that needs to be updated for this PR?
I don't think so, but let me know if you know of any.
How do you know this will function as expected in production?
E2E during the next release :D

The final commit LGTM!!

/azp run


Unreadable due to colors

This tutorial is unreadable because of the poor color contrast. The first line of the first example:
const std = @import("std");
I can only read the = sign if I use very big fonts since the contrast between red and black is so low.
I know that black is very fashionable as a background but it is useless for reading.
On a side note the instructions for setting the path in Windows don't mention using Control Panel; they should at least mention that possibility since not everyone uses powershell.

I don't mean this offense, or as an attack in anyway. But are you color blind?
The = sign is not red but pink for example. The background is not black but grey.
For me it all looks fine. Or maybe you tallk about an older version.

I am not color blind. The colors look red and black to me. But anyway that is really beside the point: what matters is that the contrast is so poor that the tutorial is unreadable.

Are the colors on the image the same as on the website for you?

Yes black background. I agree that what I thought was red is some kind of
dark pink. However the = and == are so blurred that they look like -
and --; it is only the context which makes it clear to me that they are
='s. Also I'm guessing that 1 * has a * and similarly 3 *. So it seems
that for some reason the dark pink is especially hard for me to read.
On Mon, 28 Dec 2020 at 10:28, Doeke Wartena<EMAIL_ADDRESS>wrote:

Are the colors on the image the same as on the website for you?
[image: poor_colors]
https://user-images.githubusercontent.com/738650/103207894-bb3b0600-48ff-11eb-8260-c8bb17850153.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Sobeston/ziglearn/issues/56#issuecomment-751665213,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANQ6JH2ZTADOEU5HAK6XLLSXBMVJANCNFSM4S6GPY6A
.

--
Mark Summerfield, Qtrac Ltd., www.qtrac.eu

Can it be that you have a monitor with really bad contrast?

No, since the same effect happens on my big-screen desktop and the laptop
I'm replying on.
On Mon, 28 Dec 2020 at 10:35, Doeke Wartena<EMAIL_ADDRESS>wrote:

Can it be that you have a monitor with really bad contrast?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Sobeston/ziglearn/issues/56#issuecomment-751667086,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANQ6JG2LTHY2XZBI6XRWI3SXBNNZANCNFSM4S6GPY6A
.

--
Mark Summerfield, Qtrac Ltd., www.qtrac.eu

I'm working on some front-end upgrades at the moment. Everything should be available in both light and dark mode soon-ish (respecting your OS/browser preferences). I just need to figure out how to get different syntax highlighting working on the light theme and all is good.
For the mean time, you should be able to view the content clearly from the github repo itself - github renders all the markdown well as far as I can tell.

I'm working on some front-end upgrades at the moment. Everything should be available in both light and dark mode soon-ish (respecting your OS/browser preferences). I just need to figure out how to get different syntax highlighting working on the light theme and all is good.
For the mean time, you should be able to view the content clearly from the github repo itself - github renders all the markdown well as far as I can tell.

Closed in https://github.com/Sobeston/ziglearn/pull/197


Error initializing connector

I receive below error when trying to initialize the core connector;
  Property 'actions' is protected but type 'Connector' is not a class derived from 'Connector'.ts(2344)

Below is my code;
import { CoreWallet } from "@avalabs/web3-react-core-connector";
import { initializeConnector } from "@web3-react/core";

export const [coreWallet, coreWalletHooks] = initializeConnector<CoreWallet>(
  (actions) => new CoreWallet({ actions })
);

I think it's related to the old beta version of the web3-react core, I have the latest  "@web3-react/core": "^8.2.3" installed,

still an issue in September 2024!
Last publish 2 years ago!


Config option to disable sslproxy header

Trying to keep my http headers as clean as possible, but always can see sslproxy header, finally just disabled it in the code:
+++ src/protohttp.c
@@ -612,11 +612,13 @@ protohttp_filter_request_header(struct evbuffer *inbuf, struct evbuffer *outbuf,
                }
                free(line);

+               /*
                if ((type == CONN_TYPE_PARENT) && ctx->divert && !ctx->sent_sslproxy_header) {
                        ctx->sent_sslproxy_header = 1;
                        log_finer_va("INSERT= %s", ctx->sslproxy_header);
                        evbuffer_add_printf(outbuf, "%s\r\n", ctx->sslproxy_header);
                }
+               */
        }

        if (http_ctx->seen_req_header) {

Is it possible to make some option in config to add this header optionally?

Of course it is possible, but I don't understand the use of it. Don't you return the packets back to sslproxy (you need the dynamically assigned return address in the SSLproxy line for that)? How do you determine the actual source and destination addresses of the connection? Don't you need the other information in the SSLproxy line?

Does it really work? Since that's not the intended use of sslproxy, there may be (hidden) problems, even if it seems to work.
For example, if the listening program, nginx in this case, does not return the packets to sslproxy listening on a dynamically assigned return address, (1) sslproxy will time the connection out in 120 seconds by default, which can be configured by the ConnIdleTimeout option, (2) during which time the connection will consume resources, as sslproxy will have allocated file descriptors and structs for it. (You can decrease this timeout as much as possible to reduce resource usage.)
If your setup really works, then I guess nginx doesn't need the source and destination IP addresses of the connection. Is this correct?
Squid cache has problems if it does not know if the original connection was encrypted or not (especially if a connection is redirected from plain to secure web site), but I guess nginx or your setup does have such problems, or it doesn't use a cache. Is this correct?
If you can make sure that this is really a viable use of sslproxy, and there are no (hidden) problems as I tried to mention a few of them above, in other words if that's really what you want, then I can add an option like that on a new branch, so you can test it properly.

@sonertari thank you for fast and detailed explanation, I'm new to sslprxoy and ay be not understand all it's parts. Main purpose for nginx usage is heavy response processing so I'm analyzing only port 443. I'm doing extra dns resolution which probably can avoid by using sslproxy header. Also I think I can suppress sslproxy header on nginx side, in this case I don't need this option. Let me try this approach and I'll get back to you soon.

Just suppressed header on nginx side, probably this is ok.
@sonertari but I have another issue, getting empty response for uk.wikipedia.org
SNI peek: [uk.wikipedia.org] [complete], fd=44
Connecting to [<IP_ADDRESS>]:443
===> Original server certificate:
Subject DN: /CN=*.wikipedia.org
Common Names: *.wikipedia.org/*.m.mediawiki.org/*.m.wikibooks.org/*.m.wikidata.org/*.m.wikimedia.org/*.m.wikinews.org/*.m.wikipedia.org/*.m.wikiquote.org/*.m.wikisource.org/*.m.wikiversity.org/*.m.wikivoyage.org/*.m.wiktionary.org/*.mediawiki.org/*.planet.wikimedia.org/*.wikibooks.org/*.wikidata.org/*.wikimedia.org/*.wikimediafoundation.org/*.wikinews.org/*.wikipedia.org/*.wikiquote.org/*.wikisource.org/*.wikiversity.org/*.wikivoyage.org/*.wiktionary.org/*.wmfusercontent.org/mediawiki.org/w.wiki/wikibooks.org/wikidata.org/wikimedia.org/wikimediafoundation.org/wikinews.org/wikipedia.org/wikiquote.org/wikisource.org/wikiversity.org/wikivoyage.org/wiktionary.org/wmfusercontent.org
Fingerprint: EF:9C:F2:C9:64:3B:E7:20:E5:5F48:BD:BF:8C:96:5E:79:7B:F0:05
Certificate cache: MISS
===> Forged server certificate:
Subject DN: /CN=*.wikipedia.org
Common Names: *.wikipedia.org/*.m.mediawiki.org/*.m.wikibooks.org/*.m.wikidata.org/*.m.wikimedia.org/*.m.wikinews.org/*.m.wikipedia.org/*.m.wikiquote.org/*.m.wikisource.org/*.m.wikiversity.org/*.m.wikivoyage.org/*.m.wiktionary.org/*.mediawiki.org/*.planet.wikimedia.org/*.wikibooks.org/*.wikidata.org/*.wikimedia.org/*.wikimediafoundation.org/*.wikinews.org/*.wikipedia.org/*.wikiquote.org/*.wikisource.org/*.wikiversity.org/*.wikivoyage.org/*.wiktionary.org/*.wmfusercontent.org/mediawiki.org/w.wiki/wikibooks.org/wikidata.org/wikimedia.org/wikimediafoundation.org/wikinews.org/wikipedia.org/wikiquote.org/wikisource.org/wikiversity.org/wikivoyage.org/wiktionary.org/wmfusercontent.org
Fingerprint: 71:DE:C3:BA:BD:25:8A:21:1E:B479:9F:73:F9:04:39:97:6A:A2:64
HTTPS connected to [<IP_ADDRESS>]:443 TLSv1.3 TLS_AES_256_GCM_SHA384
CLIENT_RANDOM C2C1A9CF540DF349865C2FA4F90D63CEA758981FCD97C69C65EBEA44EE4BAD6D<PHONE_NUMBER>00000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Certificate cache: KEEP (SNI match or target mode)
Certificate cache: KEEP (SNI match or target mode)
HTTPS connected to [<IP_ADDRESS>]:443 TLSv1.3 TLS_AES_256_GCM_SHA384
CLIENT_RANDOM 92D478F9DE26B3E10A955D5516155E687E16B920B2145388F3882104D80C264B 49C0775704A69A642E84A2E6BD52B18ECDD7F93FE939B011E8C72DA254888DB9D1E00F3102D4DEB347397DD64E757E46
SSL_free() in state 00000001 = 0001 = SSLOK  (SSL negotiation finished successfully) [accept socket]
SSL_free() in state 00000001 = 0001 = SSLOK  (SSL negotiation finished successfully) [connect socket]
^CReceived signal 2
Main event loop stopped (reason=2).
Received privsep req type 00 sz 1 on srvsock 8
Child pid 103332 exited with status 0

PS: same for ru.wikipedia.org
can you help with it?


Bugs found in ehsm

Hello~
Heap OOB
enclave_decrypt defined in EDL set cmk_size as cmk's size, but attacker can feed cmk_size smaller then sizeof(ehsm_keyblob_t), and TBridge only malloc cmk_size for it.
public sgx_status_t enclave_decrypt([in, size=cmk_size] ehsm_keyblob_t* cmk, size_t cmk_size,
                            [in, size=aad_size] ehsm_data_t *aad, size_t aad_size,
                            [in, size=ciphertext_size] ehsm_data_t *ciphertext, size_t ciphertext_size,
                            [in, out, size=plaintext_size] ehsm_data_t *plaintext, size_t plaintext_size);

Then in function enclave_decrypt, cmk->keybloblen will out-of-bound access invalid memory, e.g. cmk->keybloblen is at offset 0x30, but cmk_size is fed with 0x20.
sgx_status_t enclave_decrypt(ehsm_keyblob_t *cmk, size_t cmk_size,
                             ehsm_data_t *aad, size_t aad_size,
                             ehsm_data_t *ciphertext, size_t ciphertext_size,
                             ehsm_data_t *plaintext, size_t plaintext_size)
{
    sgx_status_t ret = SGX_ERROR_UNEXPECTED;

    if (cmk == NULL ||
        cmk_size != APPEND_SIZE_TO_KEYBLOB_T(cmk->keybloblen) ||
        cmk->keybloblen == 0 ||
        cmk->metadata.origin != EH_INTERNAL_KEY)
        return SGX_ERROR_INVALID_PARAMETER;
    ...
}

Stack OOB
static bool rsa_decryption_with_pkcs_oaep(map<string, string> test_vector)
{
    uint8_t _plaintext[VECTOR_LENGTH("plaintext")] = {0};

    RSA_private_decrypt(RSA_size(key), &*ciphertext, _plaintext, key, 4);
}

_plaintext is a stack buffer with size VECTOR_LENGTH("plaintext"), however openssl ask at least RSA_size(rsa) - 42 (RSA_PKCS1_OAEP_PADDING mode) for to buffer(i.e. _plaintext).  (See doc.)

RSA_private_decrypt() decrypts the flen bytes at from using the private key rsa and stores the plaintext in to. flen should be equal to RSA_size(rsa) but may be smaller, when leading zero bytes are in the ciphertext. Those are not important and may be removed, but RSA_public_encrypt() does not do that. to must point to a memory section large enough to hold the maximal possible decrypted data (which is equal to RSA_size(rsa) for RSA_NO_PADDING, RSA_size(rsa) - 11 for the PKCS #1 v1.5 based padding modes and RSA_size(rsa) - 42 for RSA_PKCS1_OAEP_PADDING). padding is the padding mode that was used to encrypt the data. to and from may overlap.

In case 1 in aes_gcm_crypto_test_vectors, VECTOR_LENGTH("plaintext") is 28 while RSA_size(rsa) is 128, then 28 < 128 - 42

Thus, in RSA_private_decrypt, a stack OOB has occurred.

Thanks for pointing the issues.
for the 2nd one, we will take a look and fix it soon. (also welcome for your contribution if you want to..)
for the 1st one, could you provide more details, since i'm not quite understand your point. Because it will return error directly when it hits the below condition: cmk_size != APPEND_SIZE_TO_KEYBLOB_T(cmk->keybloblen)

Above EDL rule in enclave_hsm.edl for enclave_decrypt will create funtion sgx_enclave_decrypt in enclave_hsm_t.c, sgx_enclave_decrypt is a wrapper in TBridge called by SGXSDK's trts_ecall (with a function lookup operation), and sgx_enclave_decrypt will call real enclave_decrypt.
If you specify size of cmk with [in, size=cmk_size] ehsm_keyblob_t* cmk, TBridge will malloc size of ms->ms_cmk_size for it, and followed by a memory clone operation to ensure [in] pointer is resided in Enclave. Here, _in_cmk is the cmk for real enclave_decrypt, and malloc-ed size is cmk_size. More detail you can refer to SGXSDK's manual.
static sgx_status_t SGX_CDECL sgx_enclave_decrypt(void* pms)
{
	...
	ehsm_keyblob_t* _tmp_cmk = ms->ms_cmk;
	size_t _tmp_cmk_size = ms->ms_cmk_size;
	size_t _len_cmk = _tmp_cmk_size;
	...

	if (_tmp_cmk != NULL && _len_cmk != 0) {
		_in_cmk = (ehsm_keyblob_t*)malloc(_len_cmk);
		if (_in_cmk == NULL) {
			status = SGX_ERROR_OUT_OF_MEMORY;
			goto err;
		}

		if (memcpy_s(_in_cmk, _len_cmk, _tmp_cmk, _len_cmk)) {
			status = SGX_ERROR_UNEXPECTED;
			goto err;
		}

	}
	...

	ms->ms_retval = enclave_decrypt(_in_cmk, _tmp_cmk_size, _in_aad, _tmp_aad_size, _in_ciphertext, _tmp_ciphertext_size, _in_plaintext, _tmp_plaintext_size);
	...
}

I think if you want to specify ehsm_keyblob_t *cmk only point to one ehsm_keyblob_t object, you can only set [in] EDL attibute, if you want to transfer more then one element, you can set [in, count=xxx], this will malloc count * sizeof(ehsm_keyblob_t) for cmk

for the 1st one, could you provide more details, since i'm not quite understand your point. Because it will return error directly when it hits the below condition: cmk_size != APPEND_SIZE_TO_KEYBLOB_T(cmk->keybloblen)

About this, before APPEND_SIZE_TO_KEYBLOB_T is executed, cmk will firstly index it's member variable keybloblen, and at this point, cmk may be malloc-ed with insufficient heap memory, and then cmk->keybloblen will cause Out-of-Bound access

for the 2nd one, we will take a look and fix it soon. (also welcome for your contribution if you want to..)
OK, I'll try to fix

for the 1st one, could you provide more details, since i'm not quite understand your point. Because it will return error directly when it hits the below condition: cmk_size != APPEND_SIZE_TO_KEYBLOB_T(cmk->keybloblen)

About this, before APPEND_SIZE_TO_KEYBLOB_T is executed, cmk will firstly index it's member variable keybloblen, and at this point, cmk may be malloc-ed with insufficient heap memory, and then cmk->keybloblen will cause Out-of-Bound access

Yes, Thanks.
It seems is a common issue for all of the interfaces defined in the EDL file. Currently, we transferred a data structure but the size is used another variable rather than the size of original structure.
But for your suggestion "you can set [in, count=xxx], this will malloc count * sizeof(ehsm_keyblob_t) for cmk", it may not suitable for this case, because the buffer appended to the structure is not an integer multiple of an existing structure.
How do you think if we add more checks in each interfaces to check whether the in_size is larger than the size of structure before doing the existing checks? or do you have some better idea to handle it?

Yes, I find [in, count=xxx] is not suitable for this case.
Maybe we can pass another parameter to specify len of keyblob, and check at enclave whether "keyblob_len * sizeof(uint8_t) + sizeof(ehsm_keyblob_t) == cmk_size" and then "cmk->keybloblen == keyblob_len", but it seems ugly.

Oops, lot's of interfaces in EDL like enclave_sign has same problem as enclave_decrypt, better to figure out a general way to fix them

Yes, it's a common issue now.
A quick fix is to add a check at the beginning of the original checks, to make sure the size is larger than the expected structure size in each interfaces.

Forget to set return value
You seems fortget to set ret to -1 at line 92, it's already failed, and fiforesponse will not set to an valid memroy
https://github.com/intel/ehsm/blob/7a54667c3f2ea880faff15a0eb6e9f36a9581bfe/core/App/fifo.cpp#L92
https://github.com/intel/ehsm/blob/7a54667c3f2ea880faff15a0eb6e9f36a9581bfe/core/App/fifo.cpp#L61-L144
However, if not return -1, msgresp is still null, and will cause crash in memcpy at line 167
https://github.com/intel/ehsm/blob/7a54667c3f2ea880faff15a0eb6e9f36a9581bfe/core/App/untrusted_enclave_msg_exchange.cpp#L159-L167

Thanks for pointing the issues. Could you provide a patch to fix them? Thanks

@yang8621 OK

@yang8621  https://github.com/intel/ehsm/pull/270

Thanks @LeoneChen.  We may need a static code scan in the future.

Good! Hope EHSM become more and more popular

Thanks for your contribution.

Hi. I am trying to test this sgx-based project. May I ask how you discovered these bugs mentioned above. Did you use some fuzzing tools or just manually check the code?

Hi~
We've developed a fuzzing tool to detect this bugs.

Thanks~ Is this tool public? If so, could u share a link?

We will open source after paper is accepted

ok. Looking forward to it~


Implement OpenID4VP

Description
Add OpenID4VP standard to the Agent for requesting and verifying credentials. Similarly to OpenID4VCI implementation, the agent must have a method to generating an auth_request that can be displayed as a QR-code on the "front-end" (of the implementer). This should be exposed by the REST API. The Presentation Definition should probably be pre-registered in the settings with an identifier, which is then used in the API call to trigger the correct data request. Feel free to make a better design if you have it ;)
The Validation of received Verifiable Presentations need to allow either of two solutions depending on the chosen policy (defined beforehand in the settings):

Internal Validation: Which is a strict validation (signature must be valid, not expired etc...), including a simple pre-defined trust list.
2: External Validation: Sends an event with the VP information for it to be validated externally to the Agent. The Event must be responded to with the results of the External Validation.

At the end of the process, another Event should be sent out with the conclusions of the exchange. This includes the data and the validation results.
Feel free to add missing information or ideas to this issue.
Motivation
Increase SSI functionality with Validation.
Resources
No response
To-do List

[ ] Implement OpenID4VP interactions
[ ] Allow pre-defined Presentation Definitions
[ ] Allow pre-defined Trust List (Including "*" for catch-all)
[ ] Implement Internal Validation
[ ] Implement External Validation
[ ] Implement Results Event

Additional context based on internal discussions:

 Implement OpenID4VP


Perform french translations

Remaining TODO : SettingsAppearanceAcrylicSidebar.Text, + some unclear details

@KaKi87 Would you like me to hold off merging until you finish?

Yes, thanks

Done.

@KaKi87 Thank you so much!


adds volatile state directory to the fs plan for cntrs/pods/fifo

Carry on #692.
Signed-off-by: Mike Brown<EMAIL_ADDRESS>

Change looks reasonable since most of it is mechanical. LGTM with some nits

Change looks reasonable since most of it is mechanical. LGTM with some nits

@yujuhong Yeah, the only meaningful change is that we moved shm and FIFOs into `/run/containerd/xxx"

@mikebrow Note I added one commit to add symlink follow logic into the unmount util function.
Although containerd default state directory is in /run/containerd, but someone may still configure it as /var/run/containerd, in that case we'll need to follow the symlink for shm unmount.

New disk layout:
# find /var/lib/containerd/io.containerd.grpc.v1.cri/
/var/lib/containerd/io.containerd.grpc.v1.cri/
/var/lib/containerd/io.containerd.grpc.v1.cri/containers
/var/lib/containerd/io.containerd.grpc.v1.cri/containers/0ff7ae148469358dbfca2b54822f8cf36ed349c703f9031d6be29aea571b657f
/var/lib/containerd/io.containerd.grpc.v1.cri/containers/0ff7ae148469358dbfca2b54822f8cf36ed349c703f9031d6be29aea571b657f/status
/var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes
/var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/48bcddd947615ebc6fd24041bf358841e65a42eb82e5464dd84c18227e59d160
/var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/48bcddd947615ebc6fd24041bf358841e65a42eb82e5464dd84c18227e59d160/hosts
/var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes/48bcddd947615ebc6fd24041bf358841e65a42eb82e5464dd84c18227e59d160/resolv.conf
# find /run/containerd/io.containerd.grpc.v1.cri/
/run/containerd/io.containerd.grpc.v1.cri/
/run/containerd/io.containerd.grpc.v1.cri/containers
/run/containerd/io.containerd.grpc.v1.cri/containers/0ff7ae148469358dbfca2b54822f8cf36ed349c703f9031d6be29aea571b657f
/run/containerd/io.containerd.grpc.v1.cri/containers/0ff7ae148469358dbfca2b54822f8cf36ed349c703f9031d6be29aea571b657f/io
/run/containerd/io.containerd.grpc.v1.cri/containers/0ff7ae148469358dbfca2b54822f8cf36ed349c703f9031d6be29aea571b657f/io/576643420
/run/containerd/io.containerd.grpc.v1.cri/containers/0ff7ae148469358dbfca2b54822f8cf36ed349c703f9031d6be29aea571b657f/io/576643420/0ff7ae148469358dbfca2b54822f8cf36ed349c703f9031d6be29aea571b657f-stderr
/run/containerd/io.containerd.grpc.v1.cri/containers/0ff7ae148469358dbfca2b54822f8cf36ed349c703f9031d6be29aea571b657f/io/576643420/0ff7ae148469358dbfca2b54822f8cf36ed349c703f9031d6be29aea571b657f-stdout
/run/containerd/io.containerd.grpc.v1.cri/sandboxes
/run/containerd/io.containerd.grpc.v1.cri/sandboxes/48bcddd947615ebc6fd24041bf358841e65a42eb82e5464dd84c18227e59d160
/run/containerd/io.containerd.grpc.v1.cri/sandboxes/48bcddd947615ebc6fd24041bf358841e65a42eb82e5464dd84c18227e59d160/shm

Just add FollowSymlinkInScope into os interface, and use the os interface in pkg/server. Apply LGTM based on https://github.com/containerd/cri/pull/697#pullrequestreview-106684708

looks good


Datastore: Incorrect parameter name in Filter.In() , and lacking documentation

The first argument for the Filter.In() method used for Datastore queries is called value, which has two issues (if I understand correctly how this method works):

It's misleading, as it suggests it's the value we're filtering by and not the property name of the entity used for the filter
It's inconsistent with the other filtering methods such as Equal, NotEqual, GreaterThan, etc., where the same parameter is correctly called propertyName.

This was confusing me when I tried using the SDK and saw the parameter name in IntelliSense, at first I though I was trying to use the SDK wrong until I checked the source code.
The ideal solution I'd prefer is to have this parameter by called propertyName, also in the method NotIn.
I don't know how easy it would be to rename the parameter, whether that's backwards-compatible or a breaking change. If it's non-breaking, I can issue a PR for this.
And the other problem is that the documentation suggests that it's not possible to do an IN query with C#: https://cloud.google.com/datastore/docs/concepts/queries#datastore-datastore-in-query-csharp
There are examples for Go/Java/Python, but the C# tab says "Not applicable":

Hi @markvincze , thank you for spotting this.

Changing the parameter name in Filter.In will be a breaking change. We have noted this issue and will address it in our next major version release. In the meantime, we will add some documentation to the code to clarify the situation.

The feature is supported, but the sample has not yet been added. This is why it is showing as "Not Applicable". We will add the sample soon to demonstrate the feature.

This issue is now closed. The issue has been addressed in this pull request:
https://github.com/googleapis/google-cloud-dotnet/pull/10214
Another issue will be created in this repository to track the sample work:
https://github.com/GoogleCloudPlatform/dotnet-docs-samples


TimeField should deal better with partial times

Description
Not technically a bug, but still annoying...
When using a timefield not in html5, when you enter a partial value (10:00) it will fail because it doesn't match the format (hh:mm:ss)... but that's also kind of too strict
I would suggest to expand value as needed (expand 10:00 to 10:00:00) if the input is smaller than the pattern
Additional context or points of discussion
Here is an example of what I did in my own class. Side benefit : no need to have a distinct handling of html5 vs non html5 inputs, they are all treated equal.
    /**
     * Convert frontend time to the internal representation (ISO 8601).
     * The frontend time is also in ISO 8601 when $html5=true.
     *
     * @param string $time
     * @return ?string The formatted time, or null if not a valid time
     */
    protected function frontendToInternal($time)
    {
        if (!$time) {
            return null;
        }
        $fromFormatter = $this->getFrontendFormatter();
        $toFormatter = $this->getInternalFormatter();

        // Expand time as needed by increment of 3 using :00
        $patternLength = strlen($fromFormatter->getPattern());
        while (strlen($time) < $patternLength) {
            $time .= ":00";
        }

        $timestamp = $fromFormatter->parse($time);

        // If timestamp still can't be detected, we've got an invalid time
        if ($timestamp === false) {
            return null;
        }

        return $toFormatter->format($timestamp);
    }

Validations

[X] You intend to implement the feature yourself
[X] You have read the contributing guide
[X] You strongly believe this feature should be in core, rather than being its own community module
[X] You have checked for existing issues or pull requests related to this feature (and didn't find any)

Sounds like a great idea! I'd definitely welcome a PR that implements this, provided it's BC safe of course.


Update commands.rst

Uninstalling a global command is done via DNU and not DNX

Hi @reliak, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

Nice catch! Merge d31ea3487872f5dff9936880b4215a05d2b63155.


invisable gate crashed

crash-2024-02-08_18.40.38-client.txt
gates near bedrock become invisable (i believe known issue) they work with admin (normally) when to put mwgate crystal and it crashed

fixed