add checksum func to hashwriter util

seems like a better idea than jumping through the hoops to use the bagit funcs for the same.

I don't know what the checksum func will do. As an FYI you can get the checksum out of a hash writer by doing this:
hw := util.NewHashWriterPlain()
io.copy(hw, r) // r is your data source as an io.Reader
md5, _ := hw.CheckMD5(nil)

now md5 is []byte containing the md5 checksum of r.

The utility of the hashwriter is that it calculates BOTH the md5 and sha256 hashes. If you only need one it is easier to just use the standard library functions.
import "crypto/md5"

w := md5.New()
io.copy(w, r) // again r is an io.Reader
hash := w.Sum(nil)

hash now contains the md5 checksum of r

I'm always a day behind you on this- I just  figured that out looking at hashwriter_test

I would be happy to use  only one or the other for purposes of file
checking during upload.
On Wed, Dec 23, 2015 at 10:28 AM, Don Brower<EMAIL_ADDRESS>wrote:

The utility of the hashwriter is that it calculates BOTH the md5 and
sha256 hashes. If you only need one it is easier to just use the standard
library functions.
import "crypto/md5"
w := md5.New()
io.copy(w, r) // again r is an io.Reader
hash := w.Sum(nil)
hash now contains the md5 checksum of r
—
Reply to this email directly or view it on GitHub
https://github.com/ndlib/bendo/issues/54#issuecomment-166924278.


Tests error with Golang 1.13 beta 1

I don't know if some rounding changed but I'm experiencing issues with Golang 1.13:
Testing    in: /builddir/build/BUILD/statik-0.1.6/_build/src
         PATH: /builddir/build/BUILD/statik-0.1.6/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
       GOPATH: /builddir/build/BUILD/statik-0.1.6/_build:/usr/share/gocode
  GO111MODULE: off
      command: go test -buildmode pie -compiler gc -ldflags "-X github.com/rakyll/statik/version=0.1.6 -extldflags '-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '"
      testing: github.com/rakyll/statik
github.com/rakyll/statik/fs
--- FAIL: TestOpen (0.00s)
    --- FAIL: TestOpen/Files_should_retain_their_original_file_mode_and_modified_time (0.00s)
        fs_test.go:195: ModTime(/file.txt) = 2019-03-20 18:56:11 +0000 UTC; want 2019-03-20 18:56:10 +0000 UTC
    --- FAIL: TestOpen/Images_should_successfully_unpack (0.00s)
        fs_test.go:195: ModTime(/pixel.gif) = 2019-03-20 18:56:11 +0000 UTC; want 2019-03-20 18:56:10 +0000 UTC
    --- FAIL: TestOpen/'index.html'_files_should_be_returned_at_their_original_path_and_their_directory_path (0.00s)
        fs_test.go:195: ModTime(/index.html) = 2019-03-20 18:56:11 +0000 UTC; want 2019-03-20 18:56:10 +0000 UTC
        fs_test.go:195: ModTime(/sub_dir/index.html) = 2019-03-20 18:56:11 +0000 UTC; want 2019-03-20 18:56:10 +0000 UTC
    --- FAIL: TestOpen/listed_all_sub_directories_in_deep_directory (0.00s)
        fs_test.go:195: ModTime(/a) = 2019-03-20 18:56:11 +0000 UTC; want 2019-03-20 18:56:10 +0000 UTC
        fs_test.go:195: ModTime(/aa/bb/c) = 2019-03-20 18:56:11 +0000 UTC; want 2019-03-20 18:56:10 +0000 UTC
FAIL
exit status 1
FAIL	github.com/rakyll/statik/fs	0.011s

This might be due to this change in 1.13: https://github.com/golang/go/commit/20995f627422a3dce2039f06b5dfe1dc0ca174c6


JBEAP-7598 Fix memory leak in JMX protocol

Also cleanup how arquillian services are created and use injection instead of params in constructor.

I need to look at this in more detail, but for a 2.0.x release we definitely can't have the first commit. Would you mind explaining a bit on why the first commit is required? If it's just some clean up that's fine, we just might need to hold off is all.

Why can't we definitely have first commit?
Code changes how references to deployment are done, which in results in easier GC as we are using injected values for DeploymentUnit instead of manual lookup and passing in constructor.
Also logic for creating and maintaining lifecycle of ArquillianConfig
In my testing it also shows that it is also somewhat faster with this change.
it should be tested bit more for sure, but I don't see why we cannot merge it.
If that means 2.1.x will be release version, sure, let that be it. As long as we get release that we can use for testing WildFly. As this changes only affect wildfly/eap as we are the only users of JMX protocol.

The main reason is the ArquillianConfigBuilder change from public to package-private. While I agree package-private is the correct scope, we just can't do it in a macro release IMO. I'll look in more detail at the other changes though.

package-private is only concern I don't mind reverting that

The changes seem okay. I kind of wonder if we should just redo a bunch of the service stuff from scratch though. It all looks, as I'm sure you saw :), a bit messy. For example we should look at removing the ServiceListener since it's deprecated.
What do you think? Obviously this would have to be in a 2.1 release, but we may need to bump the core version anyway for Elytron so maybe we just make master 2.1 anyway and make a 2.0.x branch.

BTW I'm not suggesting you do a rewrite, unless you want to, just getting your opinion on it :) I can try to find some time to do it if you also think it's a good idea.

Yeah, this PR also does first step in this direction, it changes the way how whole services are crated to be much ,much cleaner.
It is first step, we need to improve also that.
could you merge this and do 2.1.Beta1 release or something like that.
I could take a look at how to remove service listener as well.


Add Elecrow CrowPanel 7.0" in README

Add Elecrow CrowPanel 7.0" in README

Hi @lboue, do you think we can release the new version v0.1.6?


Added OpenVINO 2021.4 blob

Added OpenVINO 2021.4 blob and support for depthai <IP_ADDRESS>

Thanks @tersekmatija !


feat: Add key required key field in PassFieldContent

Title
Enhance FieldContent Struct with is_relative Date Handling and Required key Field
Type of Change

[x] New feature

Description
This PR introduces the following change to the FieldContent struct:

key field: A mandatory unique string that identifies each FieldContent instance.

These changes extend the flexibility of date representations and improve the system’s data integrity by ensuring that each field has a unique identifier.
Testing

Validation logic for the key field is tested to confirm it enforces a non-empty string value.

Impact

The key field ensures that each FieldContent has a unique identifier, improving clarity and preventing potential conflicts in data processing.

Additional Information
No breaking changes were introduced, and backward compatibility is maintained. Reviewers should focus on validation logic and its interaction with the rest of the FieldContent struct.
Checklist

[x] My code adheres to the coding and style guidelines of the project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.

resolves #152


Proposal: Discontinue Python 2 support

I want to propose dropping support for Python 2. The library is pretty stable as is, and there are barely any open bugs, so any remaining python 2 users can continue to use the current version.

To drop P2, we have to release a new major version.  As per SemVer, we need to do that if we introduce backward incompatibility, which we are in a way.


Updated README - TensorFlow v1.5 required

Updating README - TensorFlow version 1.5 is required and not 1.2

Thanks - this has been accepted internally and will be in the next public version which we should be pushing this week.

Merged in c522ae682f321397832bc4d5c012bc48f5f5c46b


Will there be any limit?

would like to know will there be any limitations upon several searches and any expiry on installation Id ?

See this #19


Enable WriteCore feature for apicenter

We need to enable WriteCore feature to apicenter. Therefore add use-write-core: true and do a regen.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.ApiCenter


Error of css

https://developer.microsoft.com/en-us/advocates/index.html
Open this page some css error occur on this page
Check  User
Ryan Levick
@ryan_levick
Rust / Functional Programming / JavaScript/TypeScript / Architecture
its content showing outside the div

I can't repro this @sushilkumar4051:

What's the browser that you're using?

Hello,
i used chorme browser and it display like that
[image: image.png]
On Tue, Feb 19, 2019 at 3:19 AM Maira Wenzel<EMAIL_ADDRESS>wrote:

I can't repro this @sushilkumar4051 https://github.com/sushilkumar4051:
[image: image]
https://user-images.githubusercontent.com/12971179/52977884-ea87a000-3383-11e9-8955-934c5b1bf8c0.png
What's the browser that you're using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/feedback/issues/1168#issuecomment-464892618,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZNp6u-eAI2MOEoHMYkXMFcusQ8l15tSks5vOx_lgaJpZM4a_Ydh
.

Attachments unfortunately are not shown when you reply by e-mail 😢

Given we could not reproduce, I'm closing this issue. If you have more information about this, please let us know and we can reopen it.


:bug: fix(navigation): hide arrow if no overviewLink is set

Current Behavior
single arrow is shown
Expected Behavior
no arrow is shown if no overviewLink is set
Steps to Reproduce

Version
15.1.0
Browsers
No response
Device
No response
Code Reproduction URL
No response
Additional Information
https://baloise-reb.qa.aperto.systems/baloise-qa/fr/clients-entreprises.html
https://baloise-reb.dev.aperto.systems/baloise-qa/fr/clients-entreprises.html
https://jira.ibmix.de/browse/BARE-1883
Code of Conduct

[X] I agree to follow this project's Code of Conduct

/cib


RFM - openshift-cli

Current Maintainer

[ ] I am the maintainer of the package and wish to pass it to someone else;

Checklist

[x] Issue title starts with 'RFM - '

Existing Package Details
Package URL: https://chocolatey.org/packages/openshift-cli
Package source URL: https://github.com/chocolatey/chocolatey-coreteampackages/tree/master/automatic/openshift-cli

Will be handled via a different channel.


write announcements and post Tues

We need to write announcments today! Midor your skills are required

[ ] pombelist
[ ] linked in (own and Pombase)
[ ] twitter
[ ] google+
[ ] facebook

What should we post....front page snapshot?

[ ]  news item for front page news feed
[ ]  notice for the front page for the "whoa what happened here?" people

The pombelist announcement and news item will be text only.

suggestion for

banner/notice for the front page

You are using the new PomBase site, released on October 24, 2017.

OK, here's what I've got so far. I've gone for brevity in these drafts - we have soooo much exciting new stuff that I thought if we included explanations and examples for everything the email would be so long no one would read it.

news:
New, improved PomBase goes live
The new PomBase web site, which has been under development during 2017, has been released.
The new site features:

Nightly data updates
New publication pages
New genotype pages
Improved ontology term pages
Improved summary views for annotation displays
Phenotype annotation display filtering
Faster querying in the advanced search
Front page research and community curation highlights
Streamlined back-end data storage and retrieval

We thank the members of the fission yeast research community who have followed its progress via the preview site, and welcome feedback from all users.

email:
subject: The new, improved PomBase is here!
body:
Dear fission yeast researchers,
Today, Tuesday 24 October 2017, the new, improved PomBase web site is going live at www.pombase.org.
The new site carries on our mission to integrate all types of information to support your research, and now offers:

Nightly data updates
New publication pages
New genotype pages
Improved ontology term pages
Improved summary views for annotation displays
Phenotype annotation display filtering
Faster querying in the advanced search
Streamlined procedures "behind the scenes"

The new PomBase home page links to examples of the new and updated pages as well as highlighting recent fission yeast research, community curation, and selected PomBase features.
Many of you have explored these changes via the preview site (preview.pombase.org), where we will continue to test further additions and enhancements to PomBase. We appreciate your helpful comments on the preview, and your patience while we have worked to bring the new site to you.
If you have any problems, questions, or comments on the new site, please let us know - email<EMAIL_ADDRESS>
I'm happy to send the email out tomorrow.

Nice, you go for it with the e-mail  and news tomorrow ....

and @kimrutherford  # wellcome in the twitter post.;)

and post a news item to the biocurator mailing list.
"Generic website for a MOD using Chado" ;)

suggestion for banner/notice for the front page
You are using the new PomBase site, released on October 24, 2017.

Should we have a "Read more ..." link as well that goes to the text of the announcement?

news:

I've added the text as a news item.  I'll check in a bit later.

You are using the new PomBase site, released on October 24, 2017.

I've added that text.

Should we have a "Read more ..." link as well that goes to the text of the announcement?

I've done that, but it's easy to remove the link if we don't need it.
The link goes here:
https://preview.pombase.org/about/new-pombase
A while ago we talked about having a page where we promote the site and especially show off new features.  Could the "new-pombase" page do that?  Currently I've just pasted Midori's announcement text but perhaps we could add links to example gene, term and publication pages?  I agree with Midori that it's good to keep the announce text short but we can be a bit more verbose on a web page.

OK, I've sent the pombelist announcement. Do you want me to muck about adding stuff to the new-pombase web page?

Do you want me to muck about adding stuff to the new-pombase web page?

If you think that page is a good idea, yes please.
I'm happy to help.

back to this idea ...

and post a news item to the biocurator mailing list

Kim - is there anything inaccurate about this part of the draft I've got going? :
"Unlike the previous PomBase site, the new site is updated daily, and generates pages for genes, genotypes, publications, and ontology terms directly from an underlying Chado database, using modular code that can easily be reused for any other MOD-style organism database."

For the new-pombase page, I've added more text and linkies. If it's horrible, go ahead and revert it, or make whatever further changes you want.

sent the biocurator list mail

For the new-pombase page, I've added more text and linkies. If it's horrible, go ahead and revert it,
or make whatever further changes you want.

Thanks for that.  I think it looks good.  It went up on the site yesterday.

I think we sufficiently saturated the market with our posts.
Nearly 1500 unique users in 3.5 days ......43.8% returning already  :)


Custom color palette for spateo viewer

Dear spateo viewer team,
Thanks for creating such an awesome tool! I recently ran into an issue when trying to visualize an aligned object created with spateo. The object displayed correctly but I cannot figure out how to use custom color palette for different categorical variables. I can only choose from the color maps included in spateo viewer. Is custom color palette currently supported in spateo viewer? Thank you very much!

Hi, @Harrison-Q-Ma.Thank you very much for using spateo-viewer. Your idea is very good, and we have found a great solution to this problem and will update it later.

Hi @Harrison-Q-Ma , currently static-viewer provides a way to customize the colormap, I think it should be helpful to you.

How to upload custom colors

The colors to be uploaded should be saved in the uploaded anndata object, which should be stored in anndata.uns in the
form of a list. Examples are as follows:
Uploaded colors list (the key of colors ends with "colors"):
adata.uns["anno_tissue_list_colors"] = ["#ef9b20", "#f46a9b", "#ece05a", "#ede15b", "#ea5545", "#9a82e0", "#87bc45", "#ec5646", "#bdcf32"]


Update Filters.php File.

application/Config/Filters.php  file the globals array, when before's except is defined as a string, ci is running exceptionally.
show demo:
public $globals = [
'before' => [
'csrf' => ['except' => 'home/*']
],
'after'  => [
// 'toolbar'
]
];

Good catch. Thanks.


Configurable auth URL

Change
This PR adds the ability to configure the openapi specification yaml using jinja2 templating to add the auth URL as an option.
Reason
Without this it is unfortunately not possible to run on a local deployment which would be nice.
Caveat
Note that this removes the user:user in the docker file as I could not figure out how to run the templating script as the user without running into PermissionError: [Errno 13] Permission denied: 'optimizerapi/openapi/specification.yml'
#77

frontend version 1.6.3 is incompatible with the latest version of the API, the fix is to use the latest version of the frontend


TAG Observability Wiki

As mentioned on Slack, lots of the information shared in conversations and written chats is getting lost. Separately, whitepapers need a long time to be created and become outdated or only get updated by a small group of people. (This is partially due to the formal nature of a whitepaper.)
https://cloud-native.slack.com/archives/CTHCQKK7U/p1699643328722899?thread_ts=1699583604.842659&cid=CTHCQKK7U
There are lots of open issues for the whitepaper and I wonder if those could be addressed faster if people were not asked to contribute to a whitepaper but to a wiki.
Additionally, it would be great to have a place where professionals in the space can share their knowledge and use case "solutions"/approaches. These might be based on informal conversations, formal discussions, or use cases - such as those presented at KubeCon.
Difference to Observability Whitepaper:

More dynamic -- the Wiki can be based on multiple more minor discussions and informal working groups
Rather than focusing on explanations and theory, the wiki could be more centred around use cases and CNCF projects as well as locations where additional information can be found i.e. the goal should not be to repeat already available information but to make resources more accessible. I would think of it as an "evolving document".

To me, this seems aligned with the scope of the TAG; by formalising conversations and working towards contributions to the Wiki, it is easier to identify gaps, curate information, educate and inform users etc.
Maybe people in the TAG already thought about something similar, or there have already been conversation related etc. 🙂

Thanks for raising this concern @AnaisUrlichs.
I'd be interested in hearing your thoughts whether what you've described would fit within the Observe k8s WG that the TAG operators?

Hi @kenfinnigan -- I guess it could be one of the objectives to kick-start a Wiki, define goals, and processes so that people outside the working group also know how to contribute?
Ideally, the Wiki should survive the working group -- it could be under the repo proposed/worked on
I mean these are all my takes, I am sure some people have different ideas and I would love to hear them, too

Hi. Hope you are good.
I wrote this after some research and wanted to hear your toughts on the TAG Observability landing page.
https://cloud-native.slack.com/archives/CTHCQKK7U/p1700249237274639


Ignore difference between null or empty array

Can be usefull to add a the possibility in LenientJsonArrayPartialMatcher to ignore difference between null array, array field not exist or empty array.
So this three example become the same
{
    name: "example"
    array : null
}

{
    name: "example"
    array : []
}

{
    name: "example"
}

Hi @paulux84,
I need a little bit refactoring on the library to be able to implement this feature easily,
But you can already do something to manage the comparison between [] and null.
You can implement your own JsonMatcher to replace the default CompositeJsonMatcher, you can write something like that:
public class AdvancedJsonArrayMatcher implements JsonMatcher {
    private final PartialJsonMatcher<ArrayNode> jsonArrayPartialMatcher;
    private final PartialJsonMatcher<ObjectNode> jsonObjectPartialMatcher;
    private final PartialJsonMatcher<ValueNode> primitivePartialMatcher;

    public AdvancedJsonArrayMatcher(
            PartialJsonMatcher<ArrayNode> jsonArrayPartialMatcher,
            PartialJsonMatcher<ObjectNode> jsonObjectPartialMatcher,
            PartialJsonMatcher<ValueNode> primitivePartialMatcher
    ) {
        this.jsonArrayPartialMatcher = jsonArrayPartialMatcher;
        this.jsonObjectPartialMatcher = jsonObjectPartialMatcher;
        this.primitivePartialMatcher = primitivePartialMatcher;
    }

    @Override
    public JsonDiff diff(Path path, JsonNode expected, JsonNode received) {
        // check comparison between array and null values
        if (
                (expected.isEmpty() && received.isNull())
                || (received.isEmpty() && expected.isNull())
        ) {
            return new MatchedPrimaryDiff(path, expected);
        }

        // default JsonMatcher code
        if (expected instanceof ObjectNode  && received instanceof ObjectNode) {
            return this.jsonObjectPartialMatcher.jsonDiff(path, (ObjectNode) expected, (ObjectNode) received, this);
        } else if (expected instanceof ArrayNode && received instanceof ArrayNode) {
            return this.jsonArrayPartialMatcher.jsonDiff(path, (ArrayNode) expected, (ArrayNode) received, this);
        } else if (expected instanceof ValueNode && received instanceof ValueNode){
            return this.primitivePartialMatcher.jsonDiff(path, (ValueNode) expected, (ValueNode) received, this);
        } else {
            return new UnMatchedPrimaryDiff(path, expected, received);
        }
    }
}

And you this class like you use the CompositeJsonMatcher.
For the case:
actual
{
    name: "example"
    array : []
}

and
expected
{
    name: "example"
}

This case il already covered by the LenientJsonObjectPartialMatcher, since it ignore extra values.
To avoid to be able to implement custom JsonMatcher I need to rewrite the PartialJsonMatcher since for now this interface allow to compare two values with the same type, but null and [] don't have the same type.

Seems not working...i have nested arrays and are not working


Stock creation via API fails

In the quest for adding stock via API, the following script:
`import coreapi
auth = coreapi.auth.BasicAuthentication(
username='user',
password='pass',
)
client = coreapi.Client(auth=auth)
schema = client.get("http://test:8000/api-doc/")
action = ["stock", "add > create"]
params = {
"allocated": 0,
# "batch": ...,
# "build_order": ...,
# "belongs_to": ...,
# "link": ...,
"location": 2,
# "notes": ...,
"part": 11,
"quantity": 20,
# "sales_order": ...,
"serial": 0,
# "supplier_part": ...,
"status": 10,
"tracking_items": 0,
# "uid": ...,
}
result = client.action(schema, action, params=params)
produces:/usr/bin/python3.6 /d2/hm/mario/src/InvenTree/post.py
Traceback (most recent call last):
File "/d2/hm/mario/src/InvenTree/post.py", line 8, in
schema = client.get("http://test:8000/api-doc/")
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/client.py", line 136, in get
return transport.transition(link, decoders, force_codec=force_codec)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/transports/http.py", line 380, in transition
result = _decode_result(response, decoders, force_codec)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/transports/http.py", line 294, in _decode_result
result = codec.load(response.content, **options)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/base.py", line 24, in load
return self.decode(*args, **kwargs)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 306, in decode
doc = _primative_to_document(data, base_url)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 234, in _primative_to_document
content = _get_content(data, base_url=url)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 132, in _get_content
for key, value in item.items()
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 133, in
if key not in ('_type', '_meta')
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 276, in _primative_to_document
content = _get_content(data, base_url=base_url)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 132, in _get_content
for key, value in item.items()
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 133, in
if key not in ('_type', '_meta')
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 276, in _primative_to_document
content = _get_content(data, base_url=base_url)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 132, in _get_content
for key, value in item.items()
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 133, in
if key not in ('_type', '_meta')
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 267, in _primative_to_document
for item in fields if isinstance(item, dict)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 267, in
for item in fields if isinstance(item, dict)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 58, in _get_schema
return decode_schema_from_corejson(schema_data)
File "/d2/hm/mario/.local/lib/python3.6/site-packages/coreapi/codecs/corejson.py", line 48, in decode_schema_from_corejson
return schema_cls(title=title, description=description)
TypeError: init() missing 1 required positional argument: 'enum'
`
It seems to choke on the Status enum.
I'm nt sure whether i did something wrong, but it seems to not work. As i'm new to django, i can't muster up a patch yet either.

Trying the Python interface, i don't see any way to programmatically add stock.
Is there a way to do tis at all?

Hey @mariosk8s yes this is possible, I'd strongly suggest using the python API
Please note that you should upgrade to the latest version (0.0.9) using pip:
pip install --upgrade inventree

Also make sure that you have the latest version of InvenTree too - I've literally just fixed a bug with stock-creation via the API.
Here is an example for creating new items using the API:
https://inventree.github.io/docs/extend/python#creating-new-items

That is sweet.


tunnel ssh windows 10 not works

Good morning,
I'm trying to make an ssh tunnel from windows 10 but it doesn't work.
PS C:\Users\scrcpy-win64-v2.7\scrcpy-win64-v2.7> ssh -CN -L5038:localhost:5037 -R27183:localhost:27183 xx.xx.xxx.xxx -pxxxx
ssh: connect to host xx.xx.xxx.xxx port xxxx: Connection timed out
Can you help me ?

With -N (in your -CN), it is expected that nothing visible happens. But the tunnel should be established. Add -v for verbosity.

ssh -v -N -L5038:localhost:5037 -R27183:localhost:27183 xx.xx.xxx.xxx -pxxxx
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Connecting to xx.xx.xxx.xxx [xx.xx.xxx.xxx] port xxxx.
debug1: connect to address xx.xx.xxx.xxx port xxxx: Connection timed out
ssh: connect to host xx.xx.xxx.xxx port xxxx: Connection timed out

yes


Issue 3879 - Changelog for release 0.27

Make sure you have checked all steps below.
Issue

[x] My PR addresses the following issues and references them in the PR title. For example, "Issue 1234 - My Sleeper
PR"

Resolves https://github.com/gchq/sleeper/issues/3879

Tests

[x] My PR adds the following tests OR does not need testing for this extremely good reason:

Just changelog

Documentation

[x] In case of new functionality, my PR adds documentation that describes how to use it, or I have linked to a
separate issue for that below.
[x] If I have added or removed any dependencies from the project, I have updated the NOTICES file.

On hold until we're ready to release.


Add notes on fixing "Connecting to kernel" failures.

This adds to the docs on the issue of fixing "Connecting to kernel" failures. This questions seems to arise often among a variety of users and may be worth providing guidance on how to address it.
For reference, here is a list of times where this issue has arisen, played a role or could be helped by a better understanding here:
https://github.com/JuliaLang/IJulia.jl/issues/975
https://github.com/JuliaLang/IJulia.jl/issues/1001
https://github.com/JuliaLang/IJulia.jl/issues/1002
https://github.com/JuliaLang/IJulia.jl/issues/1021
and on Discourse:
https://discourse.julialang.org/t/ijulia-kernel-not-starting-unless-ijulia-is-installed-in-the-global-environment-ie-v1-1/21172/4
https://discourse.julialang.org/t/launch-jupyter-kernel-with-e-using-somepackage-flag/47980

Thanks.  Should those issues be closed now?


chore: add nightly rustfmt rules

Per conversation in slack

[@scsmithr condensed on the current set of options over slack]

Holding back on this pr till the DF upgrade lands.


Oudated page content

[Enter feedback here]
The content of the section Upload the root certificate to Application Gateway's HTTP Settings is outdated. Currently the SSL certificate is uploaded not in the Backend settings creation page - here is the current pane view:

but it is created in the Add listener creation pane:

and the important change is that the PFX file is uploaded instead of the CER and it should be password-protected.
Thus the help page content should be added with commands how to generate the PFX password-protected certificate file from the generated self-signed CA and server key/certs. It also makes sense to outline if that file should contain just the server certificate or the whole bundle (including the CA). It is highly important since I currently face the issue when the whole Application Gateway (created with Terraform) gets the Failed state just because of the uploaded certificate.

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

ID: 3b0e716d-54fc-0b48-e2aa-9f5b126072ae
Version Independent ID: cda1facc-d299-a154-e824-a1b695f812d8
Content: Generate self-signed certificate with a custom root CA - Azure Application Gateway
Content Source: articles/application-gateway/self-signed-certificates.md
Service: application-gateway
GitHub Login: @greg-lindsay
Microsoft Alias: greglin

@taimish , thank you for your feedback. We'll review this and get back to you shortly!

@taimish , the screenshot you shared for your backend setting has "HTTP" selected and hence you don't see the certificate upload option. If you select "HTTPS" in the backend setting, you will find the same options as in the doc:

And the doc seems to be correct as it talks about certificate for the backend.
You can find the details here:
https://learn.microsoft.com/en-us/azure/application-gateway/ssl-overview#end-to-end-tls-with-the-v2-sku

https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-backend-health-troubleshooting#trusted-root-certificate-mismatch-no-root-certificate-on-the-backend-server

We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.

@GitaraniSharma-MSFT , indeed, thank you for pointing this out. Sorry for the inconvenience.


RTPReceiver.Read() EOF behaviour

Perhaps I'm using the wrong pattern here, but I have a goroutine reading packets out of a Track and pumping them elsewhere.
At some point I will want to close the PeerConnection, and I think that the code below could signal this in two different ways to my goroutine:

The function will return fmt.Errorf("RTPSender has been stopped")
The function will return err = EOF from r.rtcpReadStream.Read()

https://github.com/pions/webrtc/blob/3426d00e2cda2eba9dfff3cb71be6ffda68d813c/rtpreceiver.go#L101-L108
Is my evaluation correct? Can this be done a different way such that I can more gracefully handle a PeerConnection being torn down?

This might be wrong, but I think you should check the associated PeerConnection for its ICEConnectionState

r.rtcpReadStream.Read(b) could return a bunch of different errors in the future, so I wouldn't check an enum
WebRTC API doesn't have a closed property or anything like that
Looking around this seems like how people do it in the browser so I feel like we should follow the same pattern

I could totally be wrong here though @backkem this seem crazy wrong at all?

The above link may not be 100% correct.  In our testing a Disconnect state is temporary.  The connection may come back and continue to function.  For that reason we check on Failed.

I did end up doing this for SCTP:
http://github.com/pions/sctp/blob/a43306d926b0aeaa717ac012d96271e309d69948/association.go#L820
This gives you a way to signal normal shutdown up the stack.
My thoughts:

I think we should implement onconnectionstatechange. That's probably the best way to keep track of the PeerConnection state, not just the ICE state.
Related:  ICEConnectionState = 'disconnected' is the best we've got right now but I think that state is recoverable. In the API ICEConnectionState = 'Failed' is the actual end state for ICE itself.
We do still need to make sure the SRT(C)P Read methods return. Otherwise there is no good way to end the read loops.
Picking io.EOF to signal 'normal shutdown' would make it easier on the user to handle closure.
There may be other cases where we want to signal 'normal shutdown' other than closing the PeerConnection, e.g.: renegotiation. In that case using io.EOF could be useful as well.
I think this probably as a relation to what we do with pions/rtpengine.

I'd say, overall I think io.EOF isn't a bad choice if we want to provide this.

So I've been uhm'ing and uhh'ing about this for a couple of days now, and I think it might be possible to tackle this from a different perspective.
My understanding is that RTPReceiver.Read() cannot block on a closed RTPReceiver RTPReceiver.Close() echoes down to the RTPReceiver.rtpReadStream.
Based on that, I think there is a potential race condition when in RTPReceiver.Read() when RTPReceiver.Close() is called at the same time. The error returned will either be fmt.Errorf("RTPSender has been stopped") or the error from RTPReceiver.rtpReadStream.Read().
In light of that, should the check of RTPReceiver.closed be removed from RTPReceiver.Read() altogether? And the return value/error from RTPReceiver.Read() should be a direct return of RTPReceiver.rtpReadStream.Read()?

Just leaving this here for future reference:
This Internet Draft contains some useful information about RTP/RTCP closing of streams https://tools.ietf.org/html/draft-zeng-rtsp-end-of-stream-00 . Of course, in the context of WebRTC it needs to be considered alongside SDP. And in the context of current pions-webrtc it needs to be considered alongside the requirement that RemoteDescription() can only be set once.

Hey @rob-deutsch
I followed up on all your ideas here! Everything is now properly enumed (so we don't have the same operation returning different enums)
I also used io.EOF and io.ErrClosedPipe (hopefully) in the right places.


Don't ignore empty array in "whereIn" method

I've noticed the whereIn method doesn't apply the "where" clause when the array is empty.
    public function whereIn($column, array $options = array())
    {
        // when the options are empty we skip
        if ( empty( $options ) )
        {
            return $this;
        }

        return $this->where($column, 'in', $options);
    }

I think this is kind of obscure behavior.
The current implementation of the method seems like doing this:
if (count($items) == 0) {
    $query->execute();
} else {
   $query->whereIn('item', $items)->execute();
}

I think the case scenario where you would want to do this is an exception rather than the norm, meaning I would not like it as a default behavior.
What happened in my project...
I thought of giving a real-life example to illustrate why this might be undesirable.
I'm working in a project where user is authenticated in one or more offices.
I ran a whereIn query to see if user_id appears in "offices" table.
When the user doesn't appear in any table, instead of getting a MySQL error, I get as a return all of the offices.
If the user is not well configured, I would rather see him having an empty screen (where in () is invalid SQL, so it would crash the app), rather than giving him access to all offices!
In conclusion
Dont' make whereIn ignore the second argument if an empty array is passed.
I can send a PR since I've already implemented this change in a commit of my fork of the repo.
Thanks for reading
Edit:
Another option would be that, if whereIn has an empty array, make it the SQL equivalent of where false.
I think that's a sensible default and wouldn't cause a MySQL error. After all, it's technically true that there should be no records if you pass an empty argument in such a query.

I completely agree, this should throw an exception. If the second argument is empty whereIn should not be called in the first place.
As for now I do not want to implement this change on v1 because it might break current  implementations that expect empty whereIn statements to be ignored.
This might be the case in something like this:
$categories = explode(',', $payload->query->get('categories'));

$h->table('posts')
    ->select()
    ->whereIn('category', $categories)
    ->get();

This is something that definitely should be fixed for v2 (https://github.com/ClanCats/Hydrahon/tree/v2)

Ok, considering it involves a breaking change I will close the issue.
It's good to know its considered for next version.
Thanks


Minimal implementation of local cells

Description

Testing Instructions

#8780  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bgw and the rest of your teammates on  Graphite

Migrated to the next.js repo: https://github.com/vercel/next.js/pull/68469


feat: LogGroup

Description
Currently, the module enforces cloud watch log group for Redis. Added a variable named "create_cloudwatch_log_group" to provide flexibility of choice to the end user, to leverage or not to leverage via this module.
Motivation and Context
Why is this change required? What problem does it solve?
Enhances flexibility and effective internal usage.
How Has This Been Tested?
Could not use the existing examples as we have our own way of deriving networking information and for other reasons.
Created own/separate example which is not included in the code.
Tested the example code by enabling and disabling "create_cloudwatch_log_group" variable.
Both are working without any issues.
pre-commit run -a is executed successfully before creating PR.

Why is this change required? What problem does it solve?
Enhances flexibility and effective internal usage.

That doesn't explain anything


Tuya Breaker -  Socket had a problem and will reconnect to X (ECONNRESET)

Hi,
I bought a Tuya Breaker:
https://www.amazon.de/gp/product/B07TWN151L/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1
Unfortunately I couldn't find the ID and the key with the Smart Life App and your tuya-lan-find. With the Ucomen Home app it worked then.
Here is my Config:
{
"name": "Wohnzimmerlicht",
"type": "SimpleLight",
"manufacturer": "Luminea Home Control",
"model": "Wifi Mini Smart Life Outlet",
"id": "bfd782dxxxxn",
"key": "fd60xxxxxxx"
},
I also tried outlet.  Here the log:
Feb 19 08:13:20 hbridge2 homebridge[3130]: [2020-2-19 8:13:20 AM] [TuyaLan] Discovered Wohnzimmerlicht (bfd78xxxxxxxxxxx)
Feb 19 08:13:20 hbridge2 homebridge[3130]: [2020-2-19 8:13:20 AM] [TuyaLan] Connected to Wohnzimmerlicht
Feb 19 08:14:10 hbridge2 homebridge[3130]: [TuyaAccessory] Socket had a problem and will reconnect to Wohnzimmerlicht (Error: ERR_PING_TIMED_OUT)
Feb 19 08:14:10 hbridge2 homebridge[3130]: [TuyaAccessory] Closed connection with Wohnzimmerlicht
Feb 19 08:16:33 hbridge2 homebridge[3130]: [TuyaAccessory] Socket had a problem and will reconnect to Wohnzimmerlicht (EHOSTUNREACH)
Feb 19 08:16:33 hbridge2 homebridge[3130]: [TuyaAccessory] Slowing down retry attempts; if you see this happening often, it could mean some sort of incompatibility.
Then I switch the Ucoming Home app I get this in the Log:
[TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: '\u0012
ëeõ\u001dïR\nË3\u001a<' }
[TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: 'ìÙ¬6QÆ#X)K$É+_²e' }
[TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: ',\u000f\u000b)út?*\r\u0006ß)µûÜ' }
[TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: '\u0012mü::uU9bâÆ3 \n' }
[TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: 'ºê+ÆÃVÔóä¬¢\r\u0017µ' }
[TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: 'Ø¦JÁ\u001cV©\u001fÖO\f'¶²;á\u0013èd' }
[TuyaAccessory] Odd message from Wohnzimmerlicht with command 8: { cmd: 8, data: '!Æ²iÐ}Ü\u0016ù/ß¶Z÷' }
I hope you can help me. My older Devices (Sockets and Lights) runs perfectly.

Hi,
I get the id and key with this instruction:
https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md
But it also doesn´t work with this plugin :-( . Is there anything else I can do?


Add CUDA 11.8 builds

At the beginning of September 2023, conda-forge began a CUDA 11.8 migration: https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/4834
The migration was run for ~4 months before being closed in mid-January 2024 as completed: https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/5340
While nearly all feedstocks were either rebuilt with CUDA 11.8 or had a PR added for CUDA 11.8, there were a handful of feedstocks where a CUDA 11.8 migration PR was not opened. This feedstock was one of them (hence opening this issue to raise awareness about CUDA 11.8)
That said, the global CUDA build matrix includes CUDA 11.8. So simply re-rendering would add CUDA 11.8 (after fixing skips like these). Perhaps this feedstock can borrow the same strategy Arrow used to make it more resilient to CUDA upgrades
Currently this feedstock is building on CUDA 11.0, which was dropped in July 2023 ( https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/1708 ). Also CUDA 11.2 is pending deprecation in conda-forge, which move up the oldest CUDA to CUDA 11.8. Please see this announcement and this issue ( https://github.com/conda-forge/conda-forge-pinning-feedstock/issues/5339 ) for more details
So raising this issue to suggest adding CUDA 11.8 to keep this feedstock update on CUDA and also prepare for the removal of older CUDA 11.x's

It's worth noting that there is an ongoing maintenance lull: https://github.com/conda-forge/heavydb-ext-feedstock/issues/62

JFYI CUDA 11.2 has now officially been dropped


Q: I do not understand how to use this extension

Hi
debugging (mainly packages and quarto documents using these) was one reason why I changed from RStudio to VSCode to try it out - now I am using VSCode despite me not understanding the debugger...
Two questions:

Are there any examples / screencasts / HowTos / blog posts on how I can use the debugger? I simply do not get it to work (likely as I am not used to these type of debuggers).
There seems to be very little activity in this repo (egg, last closed issue in December 2023, before that June 1013 - the limited commits could point to a mature product). Is this the case? Is there a different way of debugging?

I would love to use this debugger, as I think that it could be a robust debugging tool.

How about this? https://code.visualstudio.com/docs/editor/debugging

I will take at that - thanks. But something more R specific / packet debugging could be useful as well.

Hi,
debugging packages should work, at least their R part. Quarto documents are not supprted at the moment. Regarding your two questions:

Not many that I'm aware of. See https://renkun.me/2020/09/13/debugging-r-in-vscode/ for a short blog post. There is a test workspace in https://github.com/ManuelHentschel/VSCode-R-Debugger/tree/master/test/R, but that does not contain any R package. Documentation of debug config entries can be found e.g. here: https://manuelhentschel.github.io/vscDebugger/articles/configuration.html#launch-requests.
The extension is more or less mature... I personal use it frequently to debug package code or complicated functions. For more "superficial" tasks I usually just use the terminal. I try to fix any bugs that I can reproduce, but due to time constraints I'm not really working on implemening new features.

If you give me a brief description what kind of code you are trying to debug or link a repo, I can create a sample debug config and make a quick screen capture how to get started (assuming your usecase is supported).

Thanks Manuel - that looks like a good starting point. But none really fits my workflow.

I have a quarto file, which I execute in an R session to do some things, load data, calculate stuff, etc
quite often, this involves own package(s), at the moment mainly https://github.com/IPBES-Data/IPBES.R
I have one function which does not work / give the expected result which I want to debug.

Now using the "debug function" would not work as, if I assume correctly, anew R session would be created, and the function relies on values loaded / calculated before, which are in the current environment.
I tried the "attach to running process" but I could not figure out what to do next.
Any help would be appreciated.
May I also suggest, to add these links which came up in this discussion, to a site in the repo or the official site of the extension?
Looking forward ti finally trying out the debugger!

As mentioned above, quarto is currently not supported. You can work around this e.g. by using knitr::purl() to convert the qmd to a simple R script file. Below is a recording of how to debug a function in your package. I added the following to files to the workspace:
debug.R:
# devtools::load_all() # not necessary, since the debugger loads the package

greetings <- "Hello world!"

print(greetings)

myData <- data.frame(
    iso2c = c('DE', 'CH'),
    x = c(1, 2)
)

tmp <- map_country_codes(myData)

.vscode/launch.json:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "R-Debugger",
            "name": "Debug R-File",
            "request": "launch",
            "debugMode": "file",
            "workingDirectory": "${workspaceFolder}",
            "file": "${file}",
            "loadPackages": [
                "."
            ]
        }
    ]
}

https://github.com/ManuelHentschel/VSCode-R-Debugger/assets/53863351/403be432-b837-485c-9619-fa66051aa832

Thanks a lot - I will look into that. It really looks like a solution.
I won't have time to look at it in detail for the next two weeks (meeting next week and preparation before) but I will definitely come back to it.
Concerning the video: it also does not work on Safari,  but I watched it on a Chromium based browser.


Nuget Package Explorer only loads several nuget packages

Description
I have uploaded about 2900 Nuget packages to a local installed gitea instance, which worked fine. I can see all packages in the package list of the organisation in the Web-UI an also search for specific Packages.
But if I try to load all Packages e.g. in Visual Studio or in nuget Packages Explorer, i only some several of these packages:

In gitea Web-UI it looks like this:

Anybody knows this issue?
I have not testet it on try.gitea.io.
Gitea Version
1.20.0+rc2-12-g102dcfa3a
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Docker on Debian
How are you running Gitea?
As docker image
Database
PostgreSQL

Cannot test on try.github.io - no Package support activated.

I was aware of that problem as it's related to #23191. The problem is the client calling the "list" endpoint with the parameters query?q=&skip=0&take=15. The take parameter specifies how many packages should be returned. Currently this count is passed into the function which queries the database for the package versions. This method finds take package versions while it should find take packages. I could not build a performant sql query which limits the count of packages but returns all available package versions of these packages.

Ok, I see the SetSessionPagination set the limit on the versions instead of the packages.
In SQLite the needed query with take = 1 and Skip = 0 would be - so that the limit is executed on the packages and not the pacakge_version table.
SELECT * FROM  (SELECT *  FROM package LIMIT 1 OFFSET 0) t1  INNER JOIN   (SELECT * FROM package_version) t2 ON t1.id = t2.package_id
But I have no experience in xorm and if it's possible to build such a query with the engine.

I looked into the problem yesterday and will create a PR later which fixes the problem. 👍
I created 50 packages with 20 versions each and the NuGet Package Explorer works fine now:


[BUG] MultiFileParquetPartitionReader can fail while trying to write the footer

Describe the bug
I was trying to test out #3509 and was not able to reproduce it locally. Instead on 3.2 I ran into some issues with reading parquet data.  Reading works fine when using PERFILE, but when I set it to AUTO or COALESCING it fails with errors in parquet.
It turns out that when we want to get the size of the footer we write out the footer, but newer versions of parquet actually check if our footer looks correct, no overlap in the blocks.  So this fails because we are using the blocks unmodified from different input files.
Steps/Code to reproduce bug
On Spark 3.2.1-SNAPSHOT (3.2.0) run locally with 1 executor and maxPartitionBytes of 1g.  Then setup TPCDS for Scale Factor 200 on parquet and run the query.
spark.time(spark.sql("select count(*) from store_sales, date_dim d1 where ss_sold_date_sk = d1.d_date_sk and d1.d_year between 1999 AND 1999 + 2").show)

It fails 100% of the time for me with errors like
Caused by: java.lang.IllegalStateException: Invalid block starting position:2106143682
  at org.apache.parquet.Preconditions.checkState(Preconditions.java:93)
  at org.apache.parquet.format.converter.ParquetMetadataConverter.toParquetMetadata(ParquetMetadataConverter.java:216)
  at org.apache.parquet.format.converter.ParquetMetadataConverter.toParquetMetadata(ParquetMetadataConverter.java:197)
  at com.nvidia.spark.rapids.ParquetPartitionReaderBase.writeFooter(GpuParquetScan.scala:517)
  at com.nvidia.spark.rapids.ParquetPartitionReaderBase.writeFooter$(GpuParquetScan.scala:486)

Expected behavior
It will pass
I am not 100% sure how to fix this. I could go muck around with the blocks passed in, but the starting offset comes from the first column's metadata, which means I would have to mess with each column's metadata too.

we just hit this in spark2a.


Nullable type error when using the filters on nullable types.

Getting error when trying to apply filters on Entity like this one. For example the GreaterThanOrEqual filter throws exception on id field.
 public partial class ProjectDatum
    {
        public string no { get; set; } = null!;
        public int? id { get; set; }
        public string? responsible_person { get; set; }
        public DateTime? order_date { get; set; }
        public DateTime? complete_expected_date { get; set; }
        public string? management_number { get; set; }
        public string? user_name { get; set; }
        public string? user_detail { get; set; }
        public string? contact_address { get; set; }
        public string? note { get; set; }
    }

fixed in PR #8


Deploy to IBM Cloud Followup

This followup to #25 addresses a few README comments and includes the link to the doc added in #26
This is blocked by #26 and will close #24

LGTM


[e2e]: maven workflow_dispatch main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/11283878681
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Fri Oct 11 00:10:42 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/11300879253
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.maven.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Sat Oct 12 00:10:24 UTC 2024
Tests are passing now. Closing this issue.


fix(versions): update Activiti/activiti-cloud-full-chart-security versions

UpdateBot pushed helm dependency: activiti-cloud-full-example to: 7.1.126

UpdateBot commands:
updatebot push-version --kind helm activiti-cloud-full-example 7.1.126


New version: Audacity.Audacity version udacity-3.4.2

Pull request has been created with Komac v1.11.0 :rocket:

For moderators
This account is automated by Github Actions and the source code was created by CoolPlayLin. If you have any questions about any pull request, don't hesitate to ping @Exorcism0666, I'll get a notification. It has the write permission of this account's fork so that it can resolve the issue directly.

[!important]
Please recheck these Pull Request carefully before merging. If it is a incorrect-removing Pull Request and the URLs don't have any issue while manual checking, please close this Pull Request directly(It's best to let Exorcism0666 know).

良い一日をお過ごしください！


Update CMakeLists.txt

This will allow the repository to be installed properly.

I just notice that this is similar than a previous pr: https://github.com/JenniferBuehler/gazebo-pkgs/pull/29

Thank you! Not sure why I had taken out the install directives, but it's fine for them to be back in.

Thanks for merging :)


DDC-217 - Improve result cache support

From the UPGRADE_TO_2_2 file:
ResultCache implementation rewritten
The result cache is completly rewritten and now works on the database result level, not inside the ORM AbstractQuery
anymore. This means that for result cached queries the hydration will now always be performed again, regardless of
the hydration mode. Affected areas are:

Fixes the problem that entities coming from the result cache were not registered in the UnitOfWork
leading to problems during EntityManager#flush. Calls to EntityManager#merge are not necessary anymore.
Affects the array hydrator which now includes the overhead of hydration compared to caching the final result.

The API is backwards compatible however most of the getter methods on the AbstractQuery object are now
deprecated in favor of calling AbstractQuery#getQueryCacheProfile(). This method returns a Doctrine\DBAL\Cache\QueryCacheProfile
instance with access to result cache driver, lifetime and cache key.

:+1: Awesome!

Nice addition. +1 for moving the caching layer up to DBAL.


Add matrix for class YYPowGate

Should be similar to class XXPowGate https://github.com/quantumlib/Cirq/blob/329765a96ec98e5856ba95ff41dec58f1e110452/cirq/ops/parity_gates.py#L37

@vtomole Hi! Can I work on this?

@ishanrai05 Sure!!


strlen function C tutorial

Populate 11-common-built-in-functions/strlen.c with tutorial and challenge on how to use the strlen() C function.

Please assign this to me

can i do this?

@hamzabohra  Sorry for slow response. Feel free to still make a PR if you wish!


Question: Is it possible to limit Row expand only when clicking on specific column?

Hi
Is it possible to limit Row expand only when clicking on specific column?
I'd like to show expanded info only when clicking "..." cell.
Many thanks
p

Sorry, I just noted this was already asked....
https://github.com/AllenFang/react-bootstrap-table/issues/1511


Settings not available

Description
I installed System Bridge using the supplied Documentation but sadly the settings are not available, there is a error reported in the GUI.
The error reported is the following:
Application error: a client-side exception has occurred (see the browser console for more information).
Where do I access the browser console in this situation? I sadly am not that fluent in Python.
What Platform / OS are you running?
Windows
What version are you running?
3.3.4
Anything in the logs or a references that might be useful?
No response
Additional information
No response

The easiest way to access the console is to access the GUI logs and copy the URL into your normal browser. You can the access the console the usual way (F12 for chrome based browsers)

Merging with #1779


Add WebFlux WebClient Support

Would be nice to add a link and some non feign usage examples.

This is the same as the reactive support.  WebFlux is Spring's reactive HTTP Client.  For now, you can write your own Client to use it, but the request will not be "reactive all the way down".  We spoken about this at length about it here: https://github.com/OpenFeign/feign/issues/361 and here: https://github.com/OpenFeign/feign/issues/1120
In short, core Feign will need to be updated to support this.

@kdavisk6 Thank you, I see it. What is the progress now for the reactive support. Can you give me some examples?

@SnowZhouJ  Sure. You can find a lot of examples here
https://github.com/Playtika/feign-reactive

@kptfh Are declarative annotations now supported？ Like @FeignClient

Yes. Spring auto configuration is fully supported. Check tests for examples.
Btw Playtika is using it in prod.
Here is the basic sample https://github.com/kptfh/feign-reactive-sample

@kptfh Application run Failed ,  Error info:
nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class reactivefeign.spring.config.ReactiveFeignClientsConfiguration
Is Spring Cloud Version Error ?

Take the last version of https://github.com/Playtika/feign-reactive
Now it supports Hoxton and 2.2.2 Spring boot

I tried to create a new project，Use Hoxton.RELEASE and 2.2.2.RELEASE Spring boot ,But Still failed to start，this is error info
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [reactivefeign.spring.config.ReactiveFeignClientsConfiguration]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class reactivefeign.spring.config.ReactiveFeignClientsConfiguration

@SnowZhouJ  Can you update or close this issue as it's already fixed in
feign-reactive

@kptfh

I'm getting an error (Could not autowire. No beans of 'CustomerClient' type found.) in IntellijIdea when using
@ReactiveFeignClient (name="department-service") public interface CustomerClient {  @GetMapping("/service/department/{departmentId}}")  Flux<Customer> findByDepartment(@PathVariable("departmentId") Long departmentId); }
and injecting it in constructor in another class (Service layer)
private CustomerClient customerClient; @Autowired public DepartmentService (CustomerClient customerClient) {      this.customerClient=customerClient;  }
Does it support fallbackFactory in parameters as it was in OpenFeign. For instance,
@FeignClient(name = "department-service", fallbackFactory = CustomerClientFallbackFactory.class) if not how can fallback classes be written?
*I'm using spring-cloud.version: Hoxton.SR1 and feign-reactor.version: 1.0.44

To enable auto-configuration of reactive feign clients you need to add @EnableReactiveFeignClients annotation to your Spring Boot configuration class. Thus all interfaces annotated with @ReactiveFeignClient annotation will be instantiated and configured as Spring beans

ReactiveFeignClient  supports fallbackFactory in parameters

Annotation @EnableReactiveFeignClients is already included. No changes. The warning still exists.

@SpringBootApplication
@EnableDiscoveryClient
@EnableReactiveFeignClients
@EnableHystrix
public class DepartmentServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(DepartmentServiceApplication.class, args);
    }
}

The warning disappears only when interface is annotated with @Component annotation.

@paro87 Check this sample project

@kptfh
I encountered with above mentioned bean problem while including FallbackFactory to the parameters as:
@FeignClient(name = "service_statistics", fallbackFactory = StatisticFallbackFactory.class)
public interface ServiceFeignClient {
    @GetMapping("/users/{id}/statistics")
    public List<UserModel> getStatistics(@PathVariable String id);
}

where in OpenFeign FallbackFactory comes from feign.hystrix
import feign.hystrix.FallbackFactory;
@Component
public class StatisticFallbackFactory implements FallbackFactory<ServiceFeignClient> {
    @Override
    public ServiceFeignClient create(Throwable cause) {
        return new ServiceFeignClientFallback(cause);
    }
}

but in Reactive one, it comes from reactivefeign.FallbackFactory. Maybe there is some Hystrix support problem or bean conflict that causes that error.
Shortly speaking, "example1" and "example2" (adapted to ReactiveFeign) from this repository https://github.com/ksereda/Spring_Cloud_Netflix_Microservices/tree/master/hystrix works fine, but the problem occurs in "example3".

@paro87 please, create the issue in the reactive feign repo. I would appreciate if you create not working example (you may use fork of the sample project)

@paro87 Hi paro! I will close this issue, please create new issue in the reactive feign repo( feign-reactive).


Drag and drop is not working consistently.

When we try to drag and drop a command block into the sequence, it often doesn't work. We are using chrome.

This seems to be fixed in latest version


fix typo

certficate -> certificate

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

The typo fix looks good; thanks.


[] build failure

Host Environment

OS: [e.g. Windows/Linux etc...] win10
Compiler: revision

To Reproduce
Steps to reproduce the behavior:
vcpkg install hdf5:x64-windows
Computing installation plan...
The following packages will be built and installed:
hdf5[core,szip,zlib]:x64-windows
Starting package 1/1: hdf5:x64-windows
Building package hdf5[core,szip,zlib]:x64-windows...
-- Using cached E:/Program/vc/vcpkg/downloads/CMake-hdf5-1.10.5.tar.gz
-- Using source at E:/Program/vc/vcpkg/buildtrees/hdf5/src/hdf5-69d2d96f64
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
Command failed: "D:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v
Working Directory: E:/Program/vc/vcpkg/buildtrees/hdf5/x64-windows-dbg
See logs for more information:
E:\Program\vc\vcpkg\buildtrees\hdf5\install-x64-windows-dbg-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
ports/hdf5/portfile.cmake:62 (vcpkg_install_cmake)
scripts/ports.cmake:90 (include)
Error: Building package hdf5:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: hdf5:x64-windows
Vcpkg version: 2020.02.04-nohash
Additionally, attach any relevant sections from the log files above.
Failure logs
-Cut and past the appropriate build messages from the console output.
-Please attach any additional failure logs mentioned in the console output.
E:\Program\vc\vcpkg\buildtrees\hdf5\install-x64-windows-dbg-out.log
src\CMakeFiles\hdf5-shared.dir\H5Topaque.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Torder.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Tpad.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Tprecis.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Tstrpad.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Tvisit.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Tvlen.c.obj
src\CMakeFiles\hdf5-shared.dir\H5TS.c.obj
src\CMakeFiles\hdf5-shared.dir\H5VM.c.obj
src\CMakeFiles\hdf5-shared.dir\H5WB.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Z.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Zdeflate.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Zfletcher32.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Znbit.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Zscaleoffset.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Zshuffle.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Zszip.c.obj
src\CMakeFiles\hdf5-shared.dir\H5Ztrans.c.obj
src\CMakeFiles\hdf5-shared.dir__\shared\H5Tinit.c.obj
src\CMakeFiles\hdf5-shared.dir__\shared\H5lib_settings.c.obj E:\Program\vc\vcpkg\installed\x64-windows\debug\lib\zlibd.lib E:\Program\vc\vcpkg\installed\x64-windows\debug\lib\szip_D.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
LINK : fatal error LNK1168: cannot open bin\hdf5_D.dll for writing
ninja: build stopped: subcommand failed.
but i found hdf5_D.dll in  E:\Program\vc\vcpkg\buildtrees\hdf5\x64-windows-dbg\bin .
Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.

Cannot reproduce. Did you ran out of disk space or lack permissions in this folder? This the most common issue for this kind of error.


[QA] Meta Residence Tower not loading

Explorer Alpha build versions:

v0.21.0

Issue Description:
The Meta Residence Tower fails to load when visiting the scene at coordinates 117,-26.
STR:

Launch the explorer.
Teleport to coordinates 117,-26.
Observe whether the Meta Residence Tower loads in the scene.

Expected behavior:

Current behavior:

Fixed with the recent changes in AB converter infra


feat: GitHub branches table

github branches table that returns branch information from a github repository
Usage
Select * from github_repo_branches('mergestat','mergestat')
Select * from github_repo_branches('mergestat/mergestat')
Closing #219

Codecov Report

Merging #220 (b7cf4e5) into main (8fd8a6e) will increase coverage by 0.42%.
The diff coverage is 84.21%.

@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
+ Coverage   69.82%   70.24%   +0.42%
==========================================
  Files          47       48       +1
  Lines        2505     2581      +76
==========================================
+ Hits         1749     1813      +64
- Misses        481      487       +6
- Partials      275      281       +6

Impacted Files
Coverage Δ

extensions/internal/github/github_branches.go
84.00% <84.00%> (ø)

extensions/internal/github/github.go
75.00% <100.00%> (+0.58%)
:arrow_up:

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 8fd8a6e...b7cf4e5. Read the comment docs.


Update owners with JIRA

High-level description
This will be used with mergebot override feature.
Corresponding DC/OS tickets (obligatory)
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:
https://jira.mesosphere.com/browse/DCOS-19647

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label ready for review

@mellenburg  - addressed.

@mesosphere-mergebot bump-ee

The tests were successful prior the spell fix. Applying  ship-it label.

@mesosphere-mergebot label ship-it


Does this plugin work with context lookups?

I did try to use this plugin to deploy a CDK app cross account.
But it failed on looking up vpc and R53 hosted zone. Does this plugin also having same limitation as cdk pipelines?

@zxkane this plugin does work with context lookups, but only for top level stacks. If you are using Stages (required by cdk pipelines) then context lookups do not work. The CDK does not currently support context lookups for stacks defined within a Stage, and this applies to this plugin as well.

Thanks for your explanation.  Looks like I'm blocked by #13 . I'll try to fix it locally. Will submit PR if it works.


Perlin summation

Use radial summation function from simplex in perlin, significant speed win.

Looks good!


App crashes right away

Cloned, built and ran on iPhone 15 pro with iOS 17.2 crashes right away.
No crash logs in the Logs/CoreSimulator directory

Hi. Can you tell me if you have the testflight version of the app working?


Review the message shown when the app is not installed.

Review the message.
Should we change something with automatic app installation?

@ajinkya599  were these reviewed?

Closing this issue. Assuming @azooinmyluggage has no apprehensions 😄


JRuby test bumps

The JRuby versions in both streams of puppetserver were recently updated. This PR bumps the versions of JRuby used in tests accordingly.

We should update branch protection rules after approval to reflect this change.


cli: implement spec command

Add spec command that  that generates a basic config.json for kata.
fixes #188
Signed-off-by: Ruidong Cao<EMAIL_ADDRESS>

Sorry, forget to update dep. Wait

I'm wondering if these vendor files added by dep tool? Please update the vendor with dep tool, one reference link is:
https://github.com/kata-containers/runtime/pull/141

Could you add a test case the makes sure we can run a kata container using the default spec? There is [an example in runv] (https://github.com/hyperhq/runv/blob/master/tests/go-integration/test_data/Makefile) for creating a busybox bundle that might help you.

@bergwolf Sure. Thanks. I'm working on this.
@WeiZhang555 Yes.  I will update with dep together with unit test.

@WeiZhang555 Vendor updated.
@bergwolf After testing, the default spec can work with busybox. Do you mean that add a test case in spec_test.go to explicitly call kata-runtime run with default spec and busybox bundle ?

@caoruidong I don't think we can do it in spec_test.go. I was thinking some place in https://github.com/kata-containers/tests. It does not block this PR though.

@bergwolf So I think test_data/Makefile should be moved to https://github.com/kata-containers/tests.

@caoruidong Feel free to use it when adding new tests. I just pointed to the runv tests for your reference.

@devimc PTAL.

@jodh-intel @WeiZhang555 PTAL

LGTM after rebase.
Nice patch!

Rebased!

Can this be merged?

Done on https://github.com/kata-containers/documentation/pull/48/commits/2f2956e38c6668e70973fbc9b694e6651ae4a70c.

Tests fine in stand-alone mode fwiw (using the strategy below for kata-runtime):

https://github.com/clearcontainers/runtime/wiki/Running-standalone

The only thing stopping the merge is the red codecov reports - if we are happy with that @jodh-intel , then let's merge...

@grahamwhaley It's green last time... I'll update aggin.
@jodh-intel SPDX-ing together.

yep - let's do this! ;)


Fix: nft edit in create now works again

What does this PR do and why?
Closes JB-652
https://linear.app/peel/issue/JB-652/edit-nft-in-create-broken
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] (if relevant) I have tested this PR in all supported browsers.
[ ] (if relevant) I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #3940   👈

This comment was auto-generated by Graphite.


[DOCS]: Add Kinsta to list of providers

👋 Hey LangChainJS maintainers
We're fans of LangChain here at Kinsta, thus we thought we'd extend your documentation with our starter template repository to make our and LangChain users' life easier a bit. ❤ (just like we did at the Python lib)

Thanks @kristofdombi!


Question: What is the best way to retry failed request?

Hi, is there an option to set retry for failed request?

Hi @vitalis, thanks for reaching out. There is no builtin thing that could be used.


Run CompatHelper once per hour

What about running only once a day? There's no hurry to update bounds within one hour, anyway it's unlikely that a developer will be there to merge it in less than one day.

What about running only once a day? There's no hurry to update bounds within one hour, anyway it's unlikely that a developer will be there to merge it in less than one day.

It’s entirely up to the owner of each package. Just edit the cron entry to whatever you like :)
I chose one hour as the default because several users told me they wanted a quick turnaround. But I think it’s very reasonable to change it to once a day on your repos.
This cron entry will run CompatHelper once a way. Just edit the .github/workflows/CompatHelper.yml file in your repo and change the cron entry to:
- cron: '00 00 * * *'

See e.g. https://github.com/JuliaData/DataFrames.jl/pull/2044

Thanks for the PR! I know I can edit the files, but I had no idea of the string to use to run CRON once a day. :-)
I still think once a day would be a better default (if only for ecological reasons), but of course that's up to you.


[BUG]: EAPIs not compiling

There are a couple of header changes that are needed to get the EAPIs to fully compile with testing enabled.

Fixed


return identifier of created Entry

As mentioned in https://gitter.im/federatedbookkeeping/timesheets?at=630353709994996293fe509b
This might be related to #127, I think we already return the movement ID but I will find out.

Ah, I see the problem:
curl -i -d'["22 Aug 2022", "nlnet-timesh", "Federated Timesheets", 6]' http://michiel:****@localhost:8080/v1/worked-hours
HTTP/1.1 200 OK
Host: localhost:8080
Date: Mon, 22 Aug 2022 10:57:22 GMT
Connection: close
X-Powered-By: PHP/8.1.4
Content-type: text/html; charset=UTF-8

[
    {
        "worker": "michiel",
        "project": "nlnet-timesh:Federated Timesheets",
        "timestamp_": "2022-08-22 00:00:00",
        "amount": "8",
        "description": ""
    }
]

Could you please update the docs for this?

@ishifoev can you do this docs update as part of your work on #101 next week?


New Website time

All of the changes to make the website look better. :) Mrs. G approved

Jekyll Build failed. Going to make a new pull request that hopefully doesn't fail


Add an ability to repeat a previous order («Reorder»)

Expected behavior
It would be nice to provide an ability to customers to repeat their previous orders with a «Reoder» button:

An example from Magento 2:

Actual behavior
There is no such ability...
Steps to reproduce the behavior
Place an order and go to your own account (profile).
Versions

Node: 9.4.0
NPM: 5.6.0
Meteor Node: 8.9.3
Meteor NPM: 5.5.1
Reaction CLI: 0.24.2
Reaction: 1.6.4
Reaction branch: master

Moved this to example-storefront since it should be possible to implement this entirely in the storefront without API changes.

@janus-reith All good questions. It seems the first two simple implementations of this would be an Add to Cart button next to each item when viewing previous orders, and an Add All to Cart button for the order itself.
For more of a one-click reorder, it might be possible to skip the cart entirely. You can call placeOrder without there ever having been a cart. But we haven't really tested this approach in a UI, there could be bugs or unintentional dependencies on cart during checkout that we'd need to fix. Plus you would have to write a slightly different checkout page that builds OrderInput without saving anything to cart.


Fix map menu color

This fixes #83 by replacing the default HTML <select> menu for the map selection with the new custom menu styling, as seen with hero selection. This will result in a more consistent appearance across browsers and operating systems.

/cc @RobThePM

Thanks Chesh. This looks great. Sorry for the late reply. I've been SUPER busy lately.

No worries, Rob! 😀


In hexo 3.0, it's not work.

Hexo 3.0 change hexo.file to require('hexo-fs') and need to install hexo-fs to make sure it works.
I write some code for this reason, but I deem it not the best way to solve this problem.

index.js

//var file = hexo.file;
var file = require('hexo-fs');

@Svtter
Thanks for @ntalbs. He has fixed the bug and now you may have a try.
Thanks for your feedback!


Version message at top of resource incorrect at top of landing page

When there is a newer version of a resource the message at the top is supposed to state "A newer version of this resource is available that replaces this version" as below.

However for this resource https://www.hydroshare.org/resource/e0cbe52ad4524c07bb5b7ff8c373a343/ the message is incorrect

Versioning was worked on in #4633  and #4637.  Look first at those changes to see if they introduced this bug.

Resources that I've found impacted:
https://www.hydroshare.org/resource/0f02af18e5344ae7a65dfa7fe1444f34/
https://www.hydroshare.org/resource/e0cbe52ad4524c07bb5b7ff8c373a343/
https://www.hydroshare.org/resource/bfdfd782ffc74c42b0347690ae543961/
From my initial investigation, it seems like this occurs when someone creates a new version of a resource and publishes that new version before the celery create_new_version_resource_task is actually fully completed.
working on a fix...

scratch that. what causes this is update_relation_meta which was added in https://github.com/hydroshare/hydroshare/pull/4442. This method updates all of the relation metadata on page load. Which is fine. Except that it has the same bug that caused https://github.com/hydroshare/hydroshare/issues/4633. So my fix will be the same as in PR https://github.com/hydroshare/hydroshare/pull/4637


Add namespace to PSR-4 autoloader

The PR inserts the missing namespace under the psr-4 key.
https://getcomposer.org/doc/04-schema.md#psr-4
I also would recommend moving all files from src/Neoflow/Session to src/.

Thanks, I will take a look into your changes in a few hours.

What is the benefit to shortify the path? Shorter directory tree?

What is the benefit to shortify the path? Shorter directory tree?

It's shorter and more common practice.


Clone Command

As a developer, I want to quickly clone and create a session all in one step, so I can be more efficient.

Include --dir flag

See https://github.com/joshmedeski/t-smart-tmux-session-manager/issues/100

More to do:

Show cloning stdout so the user sees progress
Support owner/repo to clone with the gh CLI (if installed)
Add unit tests (integrated with git)

Passing I/O between cmnds
cmd := exec.Command(.....)

cmd.Stdin = os.Stdin // probably shouldn't be needed for this use-case
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Env = os.Environ()

err := cmd.Run()
// error handling here...

Might do a PR if I get time.


Updated broken links and cell outputs in thinking_in_jax.ipynb to reflect the current JAX behavior

I updated the broken links and cell outputs (including error messages and some related texts) to reflect the current JAX behavior

I didn't get it, why the check is failed with the message:
[jupytext] Error: the git index is outdated.
Please add the paired notebook with:
git add docs/notebooks/thinking_in_jax.ipynb

You can find information on our approach to notebooks at https://jax.readthedocs.io/en/latest/developer.html#update-notebooks; in short, you can git add your changes and then run jupytext --sync to fix the issue
That said, I'd prefer we avoid the large (mostly meaningless) metadata diffs in the notebook format here; I'd suggest reverting the change to the ipynb, and then re-generating it from the markdown with jupytext.
Sorry for the complication here – notebooks and git just don't mix all that well.

Thanks for the help! Working on this

Read the Docs build is still failing, and I cannot understand what's the issue with it. It looks like two cells cannot be parsed (there are warnings there) but I cannot identify which ones and what's exactly the reason :(

I suspect the issue is the back-ticks within the traceback messages (e.g. line 238 of the ipynb file)

Still cannot fix it, so I'll close the PR for now to understand better what's wrong

I removed cell output changes from the notebook as I cannot identify what exactly makes tests fail. So I kept only text changes regarding the broken URLs and updated text to better align with the output of current versions of the JAX library.

Thanks! Sorry for the confusion about this. For what it's worth, I think the issue is that myst-nb cannot handle error messages that contain back-tick characters, despite the fact that some of JAX's current error messages contain back-ticks. We could either fix this by patching myst-nb, or by modifying JAX's error messages to remove the back-ticks.


[Server] handling of token and cookies, auth and session middleware

Notes for Reviewers
This PR fixes #

The autoselect was not enabled if the server is configured to use a specific provider unless the provider is Meshery.
This caused an issue where users were being redirected to 401 Unauthenticated page when server was configured to use a specific provider (None) but because auto-select doesn't; happen on the Provider UI page, if the user selects a provider different than None it was being treated by the server as unauthorized (sending 401 response directly).

The PR ensures if the server is configured to use a specific provider, it gets auto-selected.
Before continuing the server to configure for auto-selection the provided env var PROVIDER is verified if it's supported.

SessionInjectionMiddleware was also performing auth checks in addition to checks being already done with AuthMiddleware.
Adding utilities to set and unset cookies to ensure expiry, name, value, path and other cookie-related configurations are identical.
Setting the expiry of all provider/token/session cookies to the correct value (24h).
Signed commits

[ ] Yes, I signed my commits.

@nebula-aac fyi

@sudhanshutech will you take care of the eslint issues?


#62 - [new] Add links to titles

Fix for: #62
Add the following options to render a link either as a tool tip, or inline:
'link'          => esc_url( 'https://google.com' ),
'link_type'     => 'tooltip', // Can be 'tooltip' or 'link'. Default is 'tooltip'.
'link_text'     => esc_html__( 'Learn More', 'orderable' ), // Default is 'Learn More'.
'link_external' => true, // Default is `true`.

Video demo: https://cln.sh/jLN6XC

@mattwatsoncodes I think it would be cleaner if we make link as a subarray and then have all link-related attributes inside it. Like this:
'link' => array(
   'url'           => esc_url( 'https://google.com' ),
   'type'        => 'tooltip', // Can be 'tooltip' or 'link'. Default is 'tooltip'.
   'text'         => esc_html__( 'Learn More', 'orderable' ), // Default is 'Learn More'.
   'external' => true, // Default is `true`.
),

@jamesckemp what do you suggest?

I did think of doing that, but there wasn't a precedent for it elsewhere in the settings.
Happy to go with either @jamesckemp @pramodjodhani.

yes, but we recently did it here: https://github.com/iconicwp/WordPress-Settings-Framework/pull/56

In that case I'll alter it, as it is much neater that way 👍


MariaDB "Create new connection" wizard disabled "Next >" button

Starting the "New Connection Wizard", then selecting "MariaDB" brings up a "Create new connection" dialog. You can change settings on first page and create the connection by pressing "Finish". However "Next >" button is disabled, so advanced settings (for example ssh tunnel) and naming the connection is not possible.

My workaround is to create a connection with wrong/incomplete settings, then right-clicking the connection and selecting "Edit Connection". The following dialog is fully functional.

Yp, we reorganized connection wizard a few versions ago - trying to make it simpler. Too many connection options confuses people, especially new users.
We can't remove next button because it is still used.
I'd wish to make this UI more obvious but I'm not sure how..

Perhaps just converting the links to buttons does the trick? As said, links looks like external web resources.

Like this:

?
Looks not very fancy as for me. But if is more convenient and obvious then we can keep it.

Let's use this one for now:


Update vendored godep workspace, add missing package.

Also remove three packages that are no longer imported.
Also remove testdata folder from vendored dependency, since it was being parsed by godep causing errors. This is due to a bug in godep reported at https://github.com/tools/godep/issues/140#issuecomment-98222302.

Fixes #33.

Travis fails, but it shows that issue #33 is indeed resolve.
Compare Travis output from master (https://travis-ci.org/sourcegraph/srclib-go/builds/60299661), it errors with:
$ make
go get github.com/tools/godep
godep go build -o .bin/srclib-go
depresolve.go:13:2: cannot find package "github.com/MarkMcCaskey/gddo/gosrc" in any of:
	/usr/local/go/src/github.com/MarkMcCaskey/gddo/gosrc (from $GOROOT)
	/home/travis/gopath/src/sourcegraph.com/sourcegraph/srclib-go/Godeps/_workspace/src/github.com/MarkMcCaskey/gddo/gosrc (from $GOPATH)
	/home/travis/gopath/src/github.com/MarkMcCaskey/gddo/gosrc
godep: go exit status 1
make: *** [install] Error 1
The command "make" failed and exited with 2 during .

On the other hand, this PR's Travis output (https://travis-ci.org/sourcegraph/srclib-go/builds/60890342) builds successfully but fails on internal tests:
$ go get -d -v golang.org/x/net/ipv6 golang.org/x/tools/go/types
Fetching https://golang.org/x/net/ipv6?go-get=1
Parsing meta tags from https://golang.org/x/net/ipv6?go-get=1 (status code 200)
get "golang.org/x/net/ipv6": found meta tag main.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net/ipv6?go-get=1
get "golang.org/x/net/ipv6": verifying non-authoritative meta tag
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
golang.org/x/net (download)
Fetching https://golang.org/x/tools/go/types?go-get=1
Parsing meta tags from https://golang.org/x/tools/go/types?go-get=1 (status code 200)
get "golang.org/x/tools/go/types": found meta tag main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/go/types?go-get=1
get "golang.org/x/tools/go/types": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
golang.org/x/tools (download)
install.7
5.16s$ make
go get github.com/tools/godep
godep go build -o .bin/srclib-go
1.22s$ src test -m program
cgo_sample FAIL
Diff failed for cgo_sample: exit status 1.cgo_sample FAIL
Running: [/home/travis/.srclib/sourcegraph.com/sourcegraph/srclib-go/.bin/srclib-go scan --repo github.com/sgtest/cgo_sample --subdir .]
  --> with input {}
SCANNERS (1)
 - sourcegraph.com/sourcegraph/srclib-go scan
SOURCE UNITS (1)
 - GoPackage: sourcegraph.com/sourcegraph/srclib-go/testdata/case/cgo_sample

Ah, removing gosrc was my mistake.


View Opportunity Page Revamp

Revamping of View Opportunity Page:

Post Opportunity button should redirect to Post Opportunity page of respective opportunity.
Select Opportunity dropdown should have:

Fulltime Jobs
Hackathons
Scholarships
Coding Competitions
Tech Conferences
Internships

The banner heading should change accordingly.

Follow this design

HI @vaishali614, Can I work on this?

@MennaMagdy2019 Sure. Go ahead.

sorry, Can you assign me again? @vaishali614

Thanks @vaishali614

Hi @vaishali614 , can I work on this issue?


Update Kubernetes supported versions to 1.8 (GKE) and 1.9 (Minikube)

Issue Ref: None
Description:
This PR includes an update for the platforms run in our CI. It also includes documentation about the supported platforms.
TODOs:

[X] Ready to review
[X] Automated Tests
[X] Docs

LGTM


Add a note about escaping backslashes in the ruleset FQCN

...and show a useful error message when the ruleset class does not exist.
Related to #70

Thank you @nicwortel !


Config db host is ignored

https://github.com/sensebox/OpenSenseMap-API/commit/632bec6344520f15432104fe2801cc1805469f7c#diff-0364f57fbff2fabbe941ed20c328ef1aR15
this causes the database host variable from the config to be ignored

Can you point me to the file where the database host ist defined in a config file and where it is used (before the commit 632bec6)

It was always localhost. There was no config parameter for database host.
But we should add it to https://github.com/sensebox/OpenSenseMap-API/blob/master/config/index.js


Check URLs passed to courlan functions extract_links and fix_relative_urls

Previously base_url
Could now be full_url

https://github.com/adbar/courlan/pull/46

This could also happen by calling the lxml method .make_links_absolute:
if include_links:
    tree.make_links_absolute(url, resolve_base_href=False)


font renderer

https://typedesign.netlify.app/tdrenderer.html

Inconsolata or JetBrains Mono are better

i'l not talking about font, but renderer of fonts

look at https://github.com/nothings/stb
and whole gui https://github.com/Immediate-Mode-UI/Nuklear
pity drawing directly are complicated in SDL2 , meybe use x11 or other library for main window. Meybe improve You a gui?
for gui exist https://github.com/rxi/lite but ugly licence

stb and nuklear, i know. nuklear is slow when there are a lot of objects that are drawn
i didn't know microui
anyway, they are just examples, because @lexborisov does not want dependencies and wants to write everything from scratch, iirc

from scratch?
library graphics and system too?
sorry but public domain is a good licence

@lexborisov has written a document parser for API documentation while doxygen exists, he wants to parse opentype fonts while freetype does it, same for unit tests (check liibrary exists)


Support custom game modes besides Standard.

https://github.com/supermedium/beatsaver-viewer/issues/36

@megalon done!


E-commerce

How I can configurate the e-commerce portal? I tried to. Configurated with the documentation but I need to create some. Entities. Somebody help me

Microsoft did not provide the retail portal data or its associated retail and e-commerce solutions that exist in Adxstudio Portals when they released the portals source code. The relevant source code is likely still in the codebase, but to use it would require replicating the schema and data yourself.


implement "update aborted"

-> During a Background() -updating
The "update aborted" function is used to check if the user has aborted the Background() -updating

no longer wanted


Serializing a motoko object with an array parameter of mixed types... is this even possible?

Thanks again for your wonderful library..
I have a question, is this even possible?  I'm trying to call an ETH RPC using HTTP outcalls. Everything works for simple requests, but when I need to send more complex parameters I'm hitting a blocker.
The required JSON to query for example, a chainlink feed to get the latest ETH/USD price is as such:
{"jsonrpc":"2.0","id":5423031679576389,"method":"eth_call","params":[{"data":"0xfeaf968c","to":"0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419"},"latest"]}
However, this type I think is impossible to construct in Motoko? As the params field looks like a mixed type array of object + strings?
Can you think of a structure that can support this for serialization/deserialization using serde?  I came up with this but doesn't work as the compiler throws a warning if you try to put mixed types in an array.  I'm thinking this type of call is not possible using custom types as the compiler will never allow an array of [?{}, ?Text] correct?

In one debug screenshot you can see the resulting serde jsonRequest params field is an empty object array
 Set jsonRequest: "{"id": 1, "jsonrpc": "2.0", "method": "eth_call", "params": [{}]}"

Closing this, realized the "latest" parameter is an extra field added by RPC providers and not specific to chainlink or their contracts.


Question about the Learning rate of the BotRGCN

hello, I have a simple question. What are the parameters for your BotRGCN. I found in your project https://github.com/BunsenFeng/BotRGCN, the learning rate is set to 0.001, but in this project, it is set to 0.01. which is the real parameter used in your paper, thank you.

@whr000001 @leopoldwhite I don't know which one of you should answer this, but please help!

Hi, thank you for your interest in our work. The value of the learning rate is related to the batch size, generally, a larger batch size means a larger learning rate.
In the code 'src/BotRGCN/twibot_22/train.py', we train BotRGCN without minibatch, so we choose the learning rate as 0.01.
You can also use the code 'src/GCN_GAT/train.py' to train BotRGCN with minibatch. You can run the following command to train it:
python train.py --dataset Twibot-20
The hyperparameters on dataset Cresci-15 and TwiBot-20 are default (learning rate 1e-4 and batch size 128).  On dataset TwiBot-22, we choose the learning rate as 1e-3 and the batch size as 1024, namely, you can run:
python train.py --dataset Twibot-22 --batch_size 1024 --lr 1e-3

Ok, Thank you!


Excluding some element inside draggable element

I'm submitting a ...
[*] feature request

What is the current behavior?
Right now if we put the directive into the parent div then its makes the whole div draggable, also it provides handler too through which we can drag using that handler

What is the expected behavior?
It should allow to exclude some elements inside that div by passing the ID or Class or any identifier in the directive as attributes so that if we drag that element then it should not drag!

Can you explain the use case for this?
Is there any possibility you can apply the directive to items within the div and not on the div itself?

@ObaidUrRehman Lets say i have a div which have draggable directive and inside that there is an input field, now if i want to select all the text inside that input field by clicking and drag then this is not allowing and the whole div start dragging!

@adeelhussain I had the same problem. As a workaround I found I could disable dragging when the mouse enters any of the input fields.
In the component code:
export class MyComponent {
    private dragEnable: boolean = true;
}

Then inside the html template:
<div class="my-container-class" draggable [dragEnabled]="dragEnable">
    <input (mouseenter)="dragEnable=false" (mouseleave)="dragEnable=true"></input>
</div>

@ed-alertedh i have done the same 😄

Any updates on this?
My use case is a table header, which can be dragged for resorting the columns order and also opens a popover on clicking the filter icon. The popover is draggable as well and I have the same problem with the inputs.
The suggested workaround would be pretty messy, because of component nesting.


Question about queue size

Is there a simple way to get the size of the pending jobs for a specific queue, including a sum of all the inflight jobs (from that queue) ?

Not currently. :frowning: