text:
How to parcel an entity without setId() ?

Hi there,
I've got a specific Android topic.
Lets assume I requested a list of MyDataEntity:
@Entity
public interface MyData extends Persistable {

    @Key
    @Generated
    int getId();

    String getName(); // shown in SingleChoiceDialogFragment

    String getSomething();
}

I want to show a SingleChoiceDialogFragment in order to choose one.
I need to pass in the MyDataEntity as Parcel.
Implementing the Parcel interface (or using some library like Parceler) is quite easy, I need to put in every member and fetch them in the same order.
public class MyDataParcelConverter implements ParcelConverter<MyData> {

    @Override
    public void toParcel(final MyData entity, final Parcel parcel) {
        parcel.writeInt(entity.getId());     // <-- this getter is available
        parcel.writeString(entity.getName());
        parcel.writeString(entity.getSomething());
    }

    @Override
    public MyData fromParcel(final Parcel parcel) {
        final MyDataEntity entity = new MyDataEntity();

        entity.setId(parcel.readInt());     // <-- this setter isn't available
        entity.setName(parcel.readString());
        entity.setSomething(parcel.readString());

        return new MyDataEntity();
    }
}

But right now I am missing the primary key setter method setId(). There is a getter but no setter.
I understand the reason for making the primary key a secret, but how can I solve my problem?
I want to avoid doing database queries in my DialogFragment...
Cheers,
DaRolla

Hi,
why do you want to avoid database queries? I'm using them in all sort of activities and fragments without any problem. Just pass over the id and then query db, it's very fast. If you still want to do it, you can either let your entitiy implement Parcelable (then you can access the fields without set), let it implement Serializable (not necessarily slower than Parcelable) or make the id field public or package private.

In general you should avoid parceling whole objects. You should just parcel instead just the id of the object and then use entitystore.findByKey to look up the object in your Fragment. If the entity is cached in memory then there is no overhead in doing this, if the db has to be queried then the penalty is generally small but you could always use RxJava (recommended) or another loading method to do it asynchronously.

authors: Agraphie DaRolla npurushe

repo: requery/requery


text:
ManytoMany with JunctionTable(type) or JunctionTable(name) not loading

I have a model with two ManytoMany relationships. Both of them do not get populated when the model is loaded.
@Entity
public abstract class AbstractSubscriber implements Parcelable{
  @Key
  @SerializedName("id")
  protected String id;

  @ManyToMany
  @JunctionTable(name = "subscriber_category")
  List<Category> subscriberCategories;

  @ManyToMany
  @JunctionTable(type=SubscriberBroadcastList.class)
  List<BroadcastList> subscriberBroadcastLists;
}

When I run the following query, both subscriberCategories and subsciberBroadcastLists are empty.
I have verified that, both of them have data in the db.
data.select(Subscriber.class)
            .get().observable().subscribeOn(Schedulers.computation())
            .observeOn(Schedulers.io()).blockingGet()

What am I doing wrong here?

How do you check the list contents? through the getter method? also are you sure the many entries are mapped to the Subscriber you've selected?

source: gharchive/issue

authors: jagan-veeraraghavan npurushe

license_type: permissive

license_source: bigquery


text:
fix: update Lodash to version 4.17.12

#49
Please release next version soon

Coverage remained the same at 100.0% when pulling a2fc9851267b5463765b2a1c524b56ab3520cb5b on aw-davidson:fix/update-lodash into 2ae195a597ee92861e70fa6edda30c9a68a9caf2 on request:master.

Also waiting on this :) Snyk is not happy!

The lodash changed in this PR is only a dev dependency. I am in the process of updating the lodash version used by request-promise-core that is used by this library. With the next version of request-promise-native the security vulnerability will be fixed.

source: gharchive/pull-request

authors: analog-nico aw-davidson cnnranderson coveralls

repo: request/request-promise-native

license: isc


text:
Request-promise error wrapping

I am mocking request-promise with nock library. If I replyWithError and throw Error: something awful happened and in the mocking, catch block gets RequestError: Error: something awful happened
Is this intended behaviour?
It is like every error thrown in request-promise is wrapped and all errors are put into as string in RequestError.message.

Yes. That is intended.
Well, it’s not like this for all errors. It rather seems this way because of how you mocked the library. All errors that are thrown by the underlying request library are indeed wrapped into a RequestError. But there are also other error types like a StatusCodeError that request-promise introduces.

authors: analog-nico tosbaha

repo: request/request-promise


text:
put stream fails with larger files >64kB

this is hopefully not an issue,  just a "understanding" problem on my side.
BTW:  I first asked at https://stackoverflow.com/questions/48776919/node-js-request-module-put-stream-fails-with-larger-files-64kb  but probably its better here.
I use a small node.js express server to test/simulate a file upload download server with HTTP put/get:
app.use(express.static(SERVER_DIR))
app.put('/put/:filename', (req, res) => {
  req.pipe(fs.createWriteStream( SERVER_DIR + req.params.filename));
  res.send('OK')
})

the above server works fine if tested with (shell) curl put/get:
curl "http://localhost:8765/put/" -T 100MB.file
curl "http://localhost:8765/100MB.file" -o 100MB.get

(tested up to 1GB - check if uploaded /downloaded files are equal with cmp)
My problem ist to upload (put) the files with a node.js client using the request module:
fs.createReadStream(filename).pipe(request.put(SERVER_URL+'put/'+filename))

this upload works fine with small files > 64kB but it fails for larger. uploading file with 65400Byte is working / file with 65450Byte is not working - it stops after 65410Byte / EOF error.
How can I change this limit ?
BTW: download (get) with the node.js request client app:
request(SERVER_URL+filename).pipe(fs.createWriteStream(filename))
works with large 1GB files.

Same with:
request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))
If file size is >64.39KB I get only part of the file up to 64.39KB only.

repo: request/request

license_source: github-api


text:
setting light mode

Hello,
I'm playing with .\rerun\crates\re_ui\examples\re_ui_example.rs and I'm trying to change the theme to light.
I have added only one line in the fn update:
    egui::TopBottomPanel::bottom("bottom_panel")
        .frame(self.re_ui.bottom_panel_frame())
        .show_animated(egui_ctx, self.bottom_panel, |ui| {
            ui.strong("Bottom panel");
            egui::widgets::global_dark_light_mode_buttons(ui); // this line is added
        });

Effect is strange: only central panel applies the theme. It can be seen in an attached video.
Any help would very appreciated.
https://github.com/rerun-io/rerun/assets/104624770/cf9a8e50-f6f1-4a7d-be5d-a5ce285be531

The out of the box theme settings are bound to not work properly in rerun as we sadly change a lot of the theming colors in Rerun on-the-fly. At least I suspect that's what's most of the issue here.
That said, (re)adding a light mode is something we want to do eventually.
Are you just trying out things or is a Rerun light theme something you'd like to have as well?

Thank you for your response. I'm currently in the process of developing an app using re_ui, and while the absence of a light mode isn't a critical issue, having that feature would certainly be a welcome addition.

authors: Wumpf edulecom

repo: rerun-io/rerun


text:
Mark ellipsoid archetype as unreleased

What
Should fix link checker error in CI. Introduced in #6853
Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[x] I've included a screenshot or gif (if applicable)
[x] I have tested the web demo (if applicable):

Using examples from latest main build: rerun.io/viewer
Using full set of examples from nightly build: rerun.io/viewer

[x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
[x] If applicable, add a new check to the release checklist!
[x] If have noted any breaking changes to the log API in CHANGELOG.md and the migration guide

PR Build Summary
Recent benchmark results
Wasm size tracking

To run all checks from main, comment on the PR with @rerun-bot full-check.

@kpreid since you are going to add more archetypes in the future, you may be interested in this trick to keep the link checker happy :)

I see!


text:
mdlint: check for backticks in links

What
To prevent:

https://github.com/rerun-io/rerun/pull/6987/files

Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[x] I've included a screenshot or gif (if applicable)
[x] I have tested the web demo (if applicable):

Using examples from latest main build: rerun.io/viewer
Using full set of examples from nightly build: rerun.io/viewer

[x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
[x] If applicable, add a new check to the release checklist!
[x] If have noted any breaking changes to the log API in CHANGELOG.md and the migration guide

PR Build Summary
Recent benchmark results
Wasm size tracking

To run all checks from main, comment on the PR with @rerun-bot full-check.

Good https://github.com/rerun-io/rerun/actions/runs/10100236412/job/27931127344?pr=7002#step:4:25


text:
TLS not enforced for docs.resin.io

docs.resin.io does not redirect to https://docs.resin.io (it seems like it should).

it would be nice to have, indeed

authors: brownjohnf emirotin

repo: resin-io/docs


text:
Modify the repo to support serving content on a subpath

The path defaults to /docs, but can be overridden by setting
PATH_PREFIX as an env var. To actually work, this will require a newer
version of resin-io/doxx. PR coming for that repo.
Change-type: major
Signed-off-by: Jack Brown jack@balena.io

The PR this is waiting on is https://github.com/resin-io/doxx/pull/20

Okay, this should be ready for review/merge.


text:
Support for surround output.

In addition to binaural and ambisonic output, allow the export of arbitrary speaker layouts, with presets for common layouts such as stereo, 5.1, and 7.1.

Marked as "feature request"

Hello!
Are there any plans to implement this feature?
It would be really cool if e.g. Apple's Spatial Audio with AirPods would work out of the box.  As there wasn't any activity for 3 years, I assume the development of this project has stalled. If you could guide me in the right direction I'd love trying to implement that 🤞

authors: drewbitllama jkammerl scriptify

repo: resonance-audio/resonance-audio-web-sdk


text:
[RESTEASY-1824] NullPointer exception in ResteasyWadlWriter

Backported from commit 62b4a1c653c6eb812cda7a10073bb106e8e2ba17

Actually I merged your commit from master directly, thanks anyway.

authors: asoldano jurakp

repo: resteasy/Resteasy


text:
[WFLY-13790] added sync block

https://issues.redhat.com/browse/WFLY-13790

@asoldano Please review these changes.

@rsearls Please edit the PR description and add a link to the JIRA. Thanks!

@rsearls , actually this https://github.com/resteasy/Resteasy/pull/2539 is what I had in mind. Do you believe contextResolver.getContext(..) poses any concurrency risk?

@asoldano I don't think so.

@rsearls , ok, then I'm closing this and merging the other PR (for which a review is welcome anyway)

authors: asoldano bstansberry rsearls


text:
error after disk full: index is not complete

restic 0.12.0 compiled with go1.16rc1 on linux/amd64
After a disk full situation, I've moved all restic repo data to a new, larger disk. A restic prune now gives me:
[...]
2 snapshots have been removed, running prune
loading indexes...
loading all snapshots...
finding data that is still in use for 34 snapshots
[4:55] 100.00%  34 / 34 snapshots
searching used packs...
{<data/00619cce> <data/00e787f2> <data/0428247a> <data/053d12a9> <data/06df710b> <data/06ea5c1c> <data/07d8c650> <data/08f40976> <data/0f4657ff> <data/0ff4dcbc> <data/19714f2e> <data/1c3c9c6f> <data/23ba2740> <data/28797cbf> <data/2bcd6111> <data/2dd70643> <data/30885ca2> <data/30b41826> <data/30fd8e78> <data/3111e060> <data/32d3494b> <data/3360da02> <data/337baff7> <data/380c681d> <data/384acc81> <data/3d0ec991> <data/3ed94393> <data/3fe5e29d> <data/3ff36cb1> <data/40f488f6> <data/44047d4f> <data/459b40de> <data/470ec79b> <data/49eb26b8> <data/4bf115e5> <data/4ccd8004> <data/4de95371> <data/53c1cb0e> <data/5774dcda> <data/59074944> <data/5b385a5d> <data/5b9e6afa> <data/5f0eb332> <data/62542538> <data/633958a2> <data/65b8a177> <data/66524710> <data/666a92fb> <data/668fe578> <data/691b4549> <data/6a186c75> <data/6b11aa49> <data/6b271514> <data/6b43dee2> <data/6b7159ec> <data/6bdd4e1f> <data/6c01f1c1> <data/6c1edea4> <data/6e86aa3b> <data/6f0fefc1> <data/70bd703c> <data/7114c9a4> <data/73dfe2ea> <data/759d9f83> <data/7ab8f290> <data/7b7c1f00> <data/7c072cb0> <data/7f7a4d3a> <data/814d209d> <data/81d1634c> <data/83255b72> <data/8760d9a1> <data/89891177> <data/899c21e1> <data/8bafc5e4> <data/8e54e4c8> <data/8f0a2c4d> <data/95001289> <data/955da312> <data/97187741> <data/98784ac7> <data/9a814bcd> <data/9ed3e630> <data/9ef49891> <data/a646b8e0> <data/a9a29d79> <data/ab825e02> <data/ab8d528d> <data/abf165bf> <data/ac05d0e0> <data/ac67260e> <data/afbc3b4e> <data/b40d2a1e> <data/b6fd373b> <data/b7bae8cd> <data/bd08c691> <data/be0ab901> <data/c337e8d7> <data/c7b93e2a> <data/cadf6256> <data/ce1f186b> <data/d19fa040> <data/d8c08bd4> <data/d9e24927> <data/de26c14d> <data/defb21f5> <data/e08faae9> <data/e104c671> <data/e35ab780> <data/e4a7ca25> <data/e7365664> <data/e86f258e> <data/e950bbca> <data/f0efa134> <data/f0fe2502> <data/f1597d70> <data/f1d1bfbf> <data/f2c441c4> <data/f433630e> <data/f4bc171b> <data/f6552c7c> <data/f8d49ab5> <data/f9ccd4c5> <data/fb93c905>} not found in the index

Integrity check failed: Data seems to be missing.
Will not start prune to prevent (additional) data loss!
Please report this error (along with the output of the 'prune' run) at
https://github.com/restic/restic/issues/new/chooseFatal: index is not complete[

I've rebuild the index (but without --read-all-packs) before doing the prune.

Which backend do you use to store the files? What errors did restic report when the disk ran out of space? Is this the first failing prune run?
Please run the check --read-data command to verify the repository integrity. That will read and check the whole repository including all pack files. If this would cause huge traffic costs then just run check.
Which warnings did rebuild-index report?
It would be helpful to know which snapshots are missing blobs: Please run restic find --blob 00619cce 00e787f2 0428247a 053d12a9 06df710b [...] (with the ids of the blobs reported as missing) to find the affected snapshots.

same error to ...
root@backup006:~# restic -r /data/server.internal/folder prune
repository 0f9ecf83 opened successfully, password is correct
warning: running prune without a cache, this may be very slow!
loading indexes...
loading all snapshots...
finding data that is still in use for 15 snapshots
[0:16] 100.00%  15 / 15 snapshots
searching used packs...
{<data/bb98b328>} not found in the index
Integrity check failed: Data seems to be missing.
Will not start prune to prevent (additional) data loss!
Please report this error (along with the output of the 'prune' run) at
https://github.com/restic/restic/issues/new/chooseFatal: index is not complete

@unclesamwk Did you also have a full disk during the backup? Or is just the error message the same. In the latter case please open a separate issue. Otherwise please provide the information I've requested above.

There was a time when the hard disk was full and backup runs. This caused the error in the repo. I can't get rid of it now.

@unclesamwk Please provide the information I've requested in comment https://github.com/restic/restic/issues/3400#issuecomment-855224026.

Maybe I had same problem ,but I dont think it cauesed by disk full;
I encounter this almost everyday and cant reslove it, or even understand what trigger it;
It really took me a lot of time, restic is a good tool, I hope that sb can give me a little help;
Well, I'll describe my problem and operations as follows:
restic 0.12.0 CentOS release 6.6
I backup my mysql-data via restic with mount remote repostory to local file system
Firstly, restic -r /mnt/backup/repo1 backup  /root/mysql_bak/ --password ...
OK，it succeed.but i think there is something wrong with this snapshot.
Secondly,restic -r /mnt/backup/repo1  check  --password-file=...
it failed with following error log
using temporary cache in /tmp/restic-check-cache-956472566
repository 6890ac2a opened successfully, password is correct
created new cache in /tmp/restic-check-cache-956472566
create exclusive lock for repository
load indexes
check all packs
pack daac2bc1: unexpected file size: got 0, expected 4765734
check snapshots, trees and blobs
[0:00] 100.00%  6 / 6 snapshots
Fatal: repository contains errors

umhhh,,,,maybe it caused by Corrupted file，but I dont know what lead to this error;
this problem appeared many times with high frequency;
i think my  server is stable and disk is abundant；
Thirdly,i tried to resolve this problem
restic -r /mnt/backup/repo1 prune 75f16341 --password-file=... --verbose
75f16342 is the error snapshot
it failed with following error
`repository 6890ac2a opened successfully, password is correct
loading indexes...
loading all snapshots...
finding data that is still in use for 6 snapshots
[0:00] 100.00%  6 / 6 snapshots
searching used packs...
{<data/423e668c> <data/4c5f1a17> <data/a24f19fc>} not found in the index
Integrity check failed: Data seems to be missing.
Will not start prune to prevent (additional) data loss!
Please report this error (along with the output of the 'prune' run) at
https://github.com/restic/restic/issues/new/chooseFatal: index is not complete
searching used packs...
collecting packs for deletion and repacking
pack daac2bc1: calculated size 4765732 does not match real size 0
`
Forthly ,restic rebuild-index
also failed, but i miss the log
Fifthly, restic backup again, it falied
Save(<data/e893418011>) returned error, retrying after 552.330144ms: Sync: sync /mnt/backup/repo1/data/e8/e893418011982ce20fa4064d1: input/output errorak/test/file1_210712_040001.sql.gz_split021
Save(<data/952f81102b>) returned error, retrying after 720.254544ms: Sync: sync /mnt/backup/repo1/data/95/952f81102b181b2e503f22724d8424d2974c3c38794f9bab0ef972d20d5aee25: host
is downysql_bak/test/file2_210712_040001.sql.gz_split021
Save(<data/fb88f1e58b>) returned error, retrying after 582.280027ms: Sync: sync /mnt/backup/autodb2/repo1/data/fb/fb88f1e58bf4034a1076c5cdf391e17d4a8d6016acd9b2779b9bc7ce39253e4f: input/output error

I don't understand what's going on with those message
Sixthly, restic check
repository 6890ac2c opened successfully, password is correct
loading indexes...
loading all snapshots...
finding data that is still in use for 6 snapshots
[0:00] 100.00%  6 / 6 snapshots
searching used packs...
{<data/423e668d> <data/4c5f1a17> <data/a24f19fc>} not found in the index

Integrity check failed: Data seems to be missing.
Will not start prune to prevent (additional) data loss!
Please report this error (along with the output of the 'prune' run) at
https://github.com/restic/restic/issues/new/chooseFatal: index is not complete

Oh, man, intersting I was completely dumbstruck，i had rebuild the repository, but id didnt work;
who can help me, at least,tell me how to operate to resolve this problem，Thank you very much
i have used resic for three months, i really ran into a lot of problems and solved them manually every time

@saberya I've moved your comment to issue #3455 which you created with an empty description.

Closing this issue as the requested information was not provided.

authors: MichaelEischer cstrotm saberya unclesamwk

repo: restic/restic


text:
document how to create a full backup without running restic as root

What is the purpose of this change? What does it change?
Add an example section to the documentation that explains how one can use restic to create a full backup without having to run it as root.
Was the change discussed in an issue or in the forum before?
The idea occurred in discussing issue #1473.
Checklist

[x] I have read the Contribution Guidelines
[ ] I have added tests for all changes in this PR
[x] I have added documentation for the changes (in the manual)
[ ] There's an entry in the CHANGELOG.md file that describe the changes for our users
[ ] I have run gofmt on the code in all commits
[x] All commit messages are formatted in the same style as the other commits in the repo
[x] I'm done, this Pull Request is ready for review

Codecov Report

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

@@           Coverage Diff            @@
##           master   #1483     +/-   ##
========================================
- Coverage   51.59%   46.5%   -5.1%
========================================
  Files         138     138
  Lines       11073   11073
========================================
- Hits         5713    5149    -564
- Misses       4487    5101    +614
+ Partials      873     823     -50

Impacted Files
Coverage Δ

internal/backend/b2/b2.go
0% <0%> (-78.84%)
:arrow_down:

internal/backend/azure/azure.go
0% <0%> (-76.71%)
:arrow_down:

internal/backend/swift/swift.go
0% <0%> (-75.89%)
:arrow_down:

internal/backend/gs/gs.go
0% <0%> (-71%)
:arrow_down:

internal/backend/swift/config.go
36.95% <0%> (-54.35%)
:arrow_down:

internal/archiver/archiver.go
64.81% <0%> (-0.22%)
:arrow_down:

internal/checker/checker.go
71.33% <0%> (+3.77%)
: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 e353b00...f9fd54e. Read the comment docs.

authors: codecov-io dstosberg


text:
Add helm config variables for image versions

Description
What:

Add helm variables for the NGSA, webv and logging side car images

Why:

Improve developer experience to make it easy deploying applications with a specific version

When:

Whenever a deploy is taking place

Where:

Any AKS cluster needing helm deployments

Tasks

[ ] Add helm variables for the NGSA and Log Sidecar image repo versions. https://github.com/retaildevcrews/ngsa/issues/117

Acceptance Criteria

Newly added helm variables should be in helm-config.yaml override files
Allow dev to pass in custom image parameters in helm install
Documentation should be complete

Constraints

N/A

References:

References #43

Will be replacing with Fluentd implementation #123.  May need to close this as no longer needed once #123 is complete.

authors: jofultz sivamu

repo: retaildevcrews/ngsa

license: MIT


text:
Setup CI

Setup a CI to automatically build RetroHub for all supported systems, as well as necessary dependencies:

[x] Compile Godot export templates
[x] Compile godot-videodecoder libs
[ ] Package default themes
[ ] Bundle it all up

Most work is completed with https://github.com/retrohub-org/retrohub/commit/39c7ca85923165a5f0560da88150a28eb29fdbb9. All that's left is to implement default and user themes in UI to start packaging with default theme.

repo: retrohub-org/retrohub


text:
UCAF - Rightclick on ATM Sign

Aus welchem Grund ist die Idee oder Erweiterung hilfreich?
Man hat eine einfachere Übersicht über die Guthaben und muss nicht gucken wieviel schon eingezahlt wurde, oder einfach zur besseren und schnelleren Information.
Was soll passieren, wie soll die Idee oder Erweiterung umgesetzt werden?
Die Nachricht, die beim klicken aufs ATM Schild kommt wird überschrieben, sodass wenn man auf das Schild klickt eine Nachricht bekommt die das Bankkonto, wenn vorhanden das Gruppierungskonto und, wenn vorhanden, den Fraktionsbankstand (evtl. auch wieviel eingezahlt wurde, wegen steuern) anzeigt.
Sonstiges
Beispiel:
=== Kontoauszug ===
Bankguthaben: XY
Gruppierungskasse: XY
Fraktionsbank: XY (Z$ bis Steuern)

Der Fraktions-Kontoauszug besteht aus dem eigentlichen Betrag und der Aufteilung von Ein- und Auszahlung. Somit ist die extra Berechnung nicht notwendig ;)

authors: Gelegenheitscode rettichlp


text:
Unable to find this setting

I want to find mature content settings in anilib

Did you login? Also, is it enabled in anilist.co? After that you can find it inside Settings -> Anime & Manga

Thanks for your help @rev0lgenX


text:
[BUG] Cannot have a guided half_joiner2 with an unguided one in the same model

Cannot have a guided half_joiner2 with an unguided one in the same model as in the following snippet:
	 half_joiner2(h = 15, l = 10, w = 7, screwsize=3);
	 right(20) half_joiner2(h = 15, l = 10, w = 7, screwsize=3, guides = false);

Here is the output when rendering the model:
   OpenSCAD 2021.01
   https://www.openscad.org/

   Copyright (C) 2009-2021 The OpenSCAD Developers
   This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

   Loaded design '/pariNAma/3Dprint/JoinersTest.scad'.
   Compiling design (CSG Tree generation)...
   Compiling design (CSG Products generation)...
   Geometries in cache: 55
   Geometry cache size in bytes: 125760
   CGAL Polyhedrons in cache: 27
   CGAL cache size in bytes: 1706576
   Compiling design (CSG Products normalization)...
   Normalized tree has 2 elements!
   Compile and preview finished.
   Total rendering time: 0:00:00.549

   Parsing design (AST generation)...
   Compiling design (CSG Tree generation)...
   Rendering Polygon Mesh using CGAL...
   ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e_below != SHalfedge_handle() File: /usr/include/CGAL/Nef_3/SNC_FM_decorator.h Line: 418
   ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e_below != SHalfedge_handle() File: /usr/include/CGAL/Nef_3/SNC_FM_decorator.h Line: 418
   Geometries in cache: 57
   Geometry cache size in bytes: 137720
   CGAL Polyhedrons in cache: 27
   CGAL cache size in bytes: 1706576
   Total rendering time: 0:00:00.172
   WARNING: No top level geometry to render

It looks like half_joiner fails CGAL.  It doesn't even have any obvious way to fail, being just an assembly of cubes.
Note that it's not that you used two joiners that triggered the error, but that you had a joiner and anything else.  If you combine a joiner with a cube it fails.

I changed the construction of half_joiner() and that seems to fix this.

authors: adrianVmariano pfelecan revarbat


text:
Added participant_type to get_info.

Hey, I added participant_type to get_info as requested in #45.
Let me know if there are any changes to be made.

I've made the requested changes.
One thing that I noticed is that the string form of UserRole is the string that was requested is stakeholdermanager but the enum ManagerStakeholder, please let me know if I should change one of them to the other to avoid confusion

Since there is a change of StakeholderManager from ManagerStakeholder, should it have its own commit? There is an interleaving between the commits that are required in the same squash, which can't be done I think. So what do you propose the final list of squashed commits be?

Since there is a change of StakeholderManager from ManagerStakeholder, should it have its own commit?

I think so, yes.

So what do you propose the final list of squashed commits be?

I think the best one would be the refactoring first, then the new feature.

Also -and i forgot this in my previous comment- any new feature needs tests. Given it's a small thing here, no need for it to be too elaborated. A simple addition to the sanity check for this RPC command in the functional tests would do:
https://github.com/revault/revaultd/blob/d014e662a5b3ace996362bfd2ba63fd1b6fad8ea/tests/test_rpc.py#L23-L33

Needs rebase now that #384 is merged. Thanks for adding a test. This still needs commits to be squashed:  a6ac762d8501975248ee2465693457dab8a3ea2d and 9a5dbf703f4824cbf6425ccdc7198938eba10005 should be merged together.

This PR can be closed since there is a more updated one with commits arranged as required

Please not for next time to not duplicate pull requests, you can just force-push to this one.

repo: revault/revaultd


text:
Settings page crash on v220

Going to the settings page causes a crash.
im using the testflight version of discord v220 and an iPhone X on ios 15.4.1
if you need screenshots of any error codes olease let me know! (Im not sure wether to send stack trace or the other ones)

Screen record the issue and send the stack trace

Screen record the issue and send the stack trace

Sorry for sending this so late i never use github
Stack Trace:
TypeError: Cannot convert undefined value to object
at hasOwnProperty (native)
at call (native)
at shouldRender (Revenge:5:19833)
at anonymous (Revenge:5:20659)
at filter (native)
at ut (Revenge:5:20623)
at getLayout (Revenge:5:20869)
at anonymous (Revenge:5:24383)
at call (native)
at rr (Revenge:1:591)
at d (Revenge:1:1727)
at apply (Revenge:1:1802)
at proxy trap (native)
at renderWithHooks (/workdir/discord_ios/build_output/main.jsbundle:271:50929)
at updateFunctionComponent (/workdir/discord_ios/build_output/main.jsbundle:271:66253)
at updateSimpleMemoComponent (/workdir/discord_ios/build_output/main.jsbundle:271:65347)
at updateMemoComponent (/workdir/discord_ios/build_output/main.jsbundle:271:64818)
at beginWork$1 (/workdir/discord_ios/build_output/main.jsbundle:271:118205)
at performUnitOfWork (/workdir/discord_ios/build_output/main.jsbundle:271:100786)
at workLoopSync (/workdir/discord_ios/build_output/main.jsbundle:271:100668)
at renderRootSync (/workdir/discord_ios/build_output/main.jsbundle:271:100377)
at performSyncWorkOnRoot (/workdir/discord_ios/build_output/main.jsbundle:271:96719)
at flushSyncCallbacks (/workdir/discord_ios/build_output/main.jsbundle:271:31447)
at batchedUpdatesImpl (/workdir/discord_ios/build_output/main.jsbundle:271:118995)
at batchedUpdates (/workdir/discord_ios/build_output/main.jsbundle:271:16921)
at _receiveRootNodeIDEvent (/workdir/discord_ios/build_output/main.jsbundle:271:17404)
at receiveTouches (/workdir/discord_ios/build_output/main.jsbundle:271:18326)
at apply (native)
at __callFunction (/workdir/discord_ios/build_output/main.jsbundle:49:4266)
at anonymous (/workdir/discord_ios/build_output/main.jsbundle:49:825)
at __guard (/workdir/discord_ios/build_output/main.jsbundle:49:2908)
at callFunctionReturnFlushedQueue (/workdir/discord_ios/build_output/main.jsbundle:49:796)
https://github.com/revenge-mod/Revenge/assets/113779460/fbe34800-f056-4dc7-afbf-89ae0f40816f

repo: revenge-mod/Revenge


text:
Event loop gets completely stuck with uv backend

Using the reproducer @ https://paste.daniil.it/uv.tar.xz (https://github.com/danog/MadelineProto @ commit 0e838c79a56f160143ad88f0dd65d64dc102d2c4 + an aaa.php test file), running the following command on arch linux yields a total hang of the entire application around once every 10 tries, without even the periodic "Still alive" message, manually set up using EventLoop::repeat(1.0, fn () => var_dump("Still alive")); in aaa.php.
rm -rf aaa.madeline; php aaa.php

Sending CTRL-C unblocks the application, gdb shows it's stuck on an epoll syscall inside uv.
Sometimes a partial hang occurs (i.e. reads on some sockets stop returning anything, but the periodic messages are still printed), other times a full hang occurs.

Example gdb backtrace:
(gdb) back
#0  0x00007ffff732f5fd in epoll_pwait () from /usr/lib/libc.so.6
#1  0x00007ffff4d343f8 in uv__io_poll (loop=0x7ffff4879c38, timeout=322) at src/unix/linux.c:1359
#2  0x00007ffff4d1a20f in uv_run (loop=loop@entry=0x7ffff4879c38, mode=mode@entry=UV_RUN_ONCE) at src/unix/core.c:447
#3  0x00007ffff7fa655b in zif_uv_run (execute_data=<optimized out>, return_value=<optimized out>) at /home/daniil/repos/ext-uv/php_uv.c:3625
#4  0x000055555ee8b824 in ?? ()
#5  0x00007ffff4904540 in ?? ()
#6  0x00007fff00000001 in ?? ()
#7  0x0000000000000000 in ?? ()
(gdb) zback
[0x7ffff48ce200] uv_run(object[0x7ffff48ce250], 1) [internal function]
[0x7ffff48ce190] Revolt\EventLoop\Driver\UvDriver->dispatch(true) /tmp/amp/vendor/revolt/event-loop/src/EventLoop/Driver/UvDriver.php:135
[0x7ffff48ce0f0] Revolt\EventLoop\Internal\AbstractDriver->tick(true) /tmp/amp/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php:486
[0x7ffff48ce070] Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}() /tmp/amp/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php:548
[0x7ffff48ce020] (main) [internal function]
[0x7ffff4815100] Fiber->resume() [internal function]
[0x7ffff4815090] Revolt\EventLoop\Internal\AbstractDriver->Revolt\EventLoop\Internal\{closure}() /tmp/amp/vendor/revolt/event-loop/src/EventLoop/Internal/AbstractDriver.php:93
[0x7ffff4814f90] Revolt\EventLoop\Internal\DriverSuspension->suspend() /tmp/amp/vendor/revolt/event-loop/src/EventLoop/Internal/DriverSuspension.php:99
[0x7ffff4814ec0] Amp\Future->await(NULL) /tmp/amp/vendor/amphp/amp/src/Future.php:251
[0x7ffff4814e40] danog\MadelineProto\WrappedFuture->await() /tmp/amp/src/WrappedFuture.php:57
[0x7ffff4814d90] danog\MadelineProto\Connection->methodCallAsyncRead("req_DH_params", array(6)[0x7ffff4814df0]) /tmp/amp/src/MTProtoSession/CallHandler.php:103
[0x7ffff4814930] danog\MadelineProto\Connection->createAuthKey(false) /tmp/amp/src/MTProtoSession/AuthKeyHandler.php:200
[0x7ffff48147f0] danog\MadelineProto\DataCenterConnection->initAuthorization() /tmp/amp/src/DataCenterConnection.php:163
[0x7ffff4814700] danog\MadelineProto\Connection->sendMessage(object[0x7ffff4814750], true) /tmp/amp/src/Connection.php:439
[0x7ffff48145c0] danog\MadelineProto\Connection->methodCallAsyncWrite("auth.exportLoginToken", array(2)[0x7ffff4814620], array(2)[0x7ffff4814630])
/tmp/amp/src/MTProtoSession/CallHandler.php:194
[0x7ffff4814510] danog\MadelineProto\Connection->methodCallAsyncRead("auth.exportLoginToken", array(2)[0x7ffff4814570], array(1)[0x7ffff4814580]) /tmp/amp/src/MTProtoSession/CallHandler.php:99
[0x7ffff4814470] danog\MadelineProto\MTProto->methodCallAsyncRead("auth.exportLoginToken", array(2)[0x7ffff48144d0]) /tmp/amp/src/MTProtoTools/CallHandler.php:47
[0x7ffff48143c0] danog\MadelineProto\MTProto->qrLogin() /tmp/amp/src/Wrappers/Login.php:92
[0x7ffff48142e0] danog\MadelineProto\MTProto->start() /tmp/amp/src/Wrappers/Start.php:60
[0x7ffff4814280] danog\MadelineProto\InternalDoc->start() /tmp/amp/src/InternalDoc.php:1778
[0x7ffff4814200] danog\MadelineProto\AbstractAPI->startAndLoopLogic("a", reference) /tmp/amp/src/AbstractAPI.php:76
[0x7ffff4814130] danog\MadelineProto\AbstractAPI->startAndLoopInternal("a") /tmp/amp/src/AbstractAPI.php:65
[0x7ffff4814090] danog\MadelineProto\EventHandler->startAndLoop("aaa.madeline", object[0x7ffff48140f0]) /tmp/amp/src/EventHandler.php:73
[0x7ffff4814020] (main) /tmp/amp/aaa.php:20

Now that I think of it, I'm actually using opcache with JIT=1255, so that might be the root cause of the issue, because I can't reproduce after disabling opcache and JIT...

Fixed by the latest tag.

repo: revoltphp/event-loop


text:
Handle prefix dirs in S3 folder structure

If the partitions exist under a prefix this fix will ignore the prefix and work on the partitions only
e.g. S3 path with a prefix before partitions:
events/year=2020/month=03/day=25/hour=22/
The code was breaking on my setup until I made this change.

Thanks for your contribution!


text:
Running Handlebars with different configurations

I'd like to write a webservice which takes template and parameters in and returns rendered text.
It looks like to achieve thatI need to run two handlebars instances in parallel, with different configurations. One will be used for html templates and the other for plain text templates (sms). In the latter case I'll provide custom ITextEncoder. I'm afraid that using static HandlebarsConfiguration from Handlebars class will lead to race conditions (constantly changing ITextEncoder in configuration, running Handlebars.Compile with wrong ITextEncoder will lead to errors in the resulting text).
Is this use case currently supported? I saw a pull request from mikeofireland. He exposed HandlebarsEnvironment, so it can be instancinated with independent configurations. Are there any drawbacks of such approach?

This is possible,
see this unit test
https://github.com/rexm/Handlebars.Net/blob/ed2c609fd30bdefb2ebbd17e25749df0b8afad26/source/Handlebars.Test/CustomConfigurationTests.cs

This is already supported by calling Handlebars.Create and passing in a configuration object.

Thanks!

authors: GennadyPonomarev JvanderStad rexm

license: mit


text:
How to treat 0 as truthy

I tried using
testing Var:
{{#if var includeZero=true}}
    var is set to {{var}}
{{/if}}

but I get
Unhandled Exception: System.InvalidOperationException: Sequence contains more than one element
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
   at HandlebarsDotNet.Compiler.ConditionalBlockAccumulatorContext..ctor(Expression startingNode)
   at HandlebarsDotNet.Compiler.BlockAccumulatorContext.Create(Expression item, HandlebarsConfiguration configuration)
   at HandlebarsDotNet.Compiler.BlockAccumulator.ConvertTokens(IEnumerable`1 sequence)+MoveNext()
   at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1 enumerable)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at HandlebarsDotNet.Compiler.ExpressionBuilder.ConvertTokensToExpressions(IEnumerable`1 tokens)
   at HandlebarsDotNet.Compiler.HandlebarsCompiler.Compile(TextReader source)
   at HandlebarsDotNet.Handlebars.HandlebarsEnvironment.Compile(String template)

Handlebars doesn’t support arbitrary statements, only helpers.

Cool thanks,
Turns out this syntax applies to the JS parser:
https://github.com/wycats/handlebars.js/issues/608

authors: rexm sellomkantjwa


text:
Update to support .NetStandard 1.3

Add support for .NetStandard 1.3
Add .NETPortable,Version=v4.0,Profile=Profile24

The NetStandard project contains now 3 frameworks:

net45
netstandard1.3
portable40-net45+sl5

You can use the _build nuget.cmd file to create a NuGet whihc you can directly commit to NuGet.org

Yeah, when will this get released?

I'll try to get it out sometime today.

ping

Hi, when You release new version? Net standard would be great feature.

authors: StefH axelheer rexm sbebrys


text:
validator.nu is down

See https://github.com/validator/validator/issues/325

Not really much I can do about this. S

Could we switch to one of the other validator relays such as https://checker.html5.org? This was suggested in validator/validator#325
I tried to follow the instructions https://github.com/rexxars/html-validator#using-a-self-hosted-version-of-the-api to use checker.html5.org but it didn't work.

The one you linked to doesn't seem to be the same codebase - it didn't expose the same validator endpoints that return JSON responses. I don't want to scrape HTML to get the result back, but if you find a different validator with an API...

The default validator is returning a 500 error now
GuzzleHttp\Exception\ServerException: Server error: `POST https://validator.nu?out=json&parser=html5` resulted in a `500 Internal Server Error` response:

<title>500 Internal Server Error</title>

500 Internal Server E (truncated...)

but I just switched to $validator = new HtmlValidator\Validator('http://validator.w3.org/nu/'); and it's working again.

authors: esetnik rexxars

repo: rexxars/html-validator


text:
V1.4.1 add predicate push down

What is this PR?
This is a:

[ ] documentation update
[ ] bug fix with no breaking changes
[x] new functionality
[ ] a breaking change

All pull requests from community contributors should target the main branch (default).
Description & motivation

Checklist

[ ] I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)

[x] BigQuery
[ ] Postgres
[ ] Redshift
[ ] Snowflake
[ ] Databricks

[ ] I have updated the README.md (if applicable)
[ ] I have added tests & descriptions to my models (and macros if applicable)
[ ] I have added an entry to CHANGELOG.md

Tenets to keep in mind

A metric value should be consistent everywhere that it is referenced
We prefer generalized metrics with many dimensions over specific metrics with few dimensions
It should be easier to use dbt’s metrics than it is to avoid them
Organization and discoverability are as important as precision
One-off models built to power metrics are an anti-pattern

I've tested this in dev, and it works with all the metrics we have defined (including those that don't pass in the base_filter and base_filter_field arguments


text:
图没有数据问题（即启用collector的方法）

我是在kubernets 上部署的node-exporter，请问一下启用 netstat vmstat ，是在镜像启动添加args 参数吗 ？ 我的写法为
- image: prom/node-exporter:latest
imagePullPolicy: IfNotPresent
name: prometheus-node-exporter
args:
- --collector.netstat.fields=(.) --collector.vmstat.fields=(.)  --collector.interrupts
启动没有问题，但是图还是没有补全。请执教

Sorry but I don't understand your message.


text:
Receive emails when new ads appears on results

Added a ready-to-cron demo able to send incremental emails on new ads on result page.

Thanks for the PR and for the donation. It's been appreciated ;)

authors: ninsuo rfussien

repo: rfussien/leboncoin-crawler


text:
Update stable version in repo from 1.8.5 to 1.8.6

Think about update stable version to 1.8.6
Version: stable=1.8.5 (74 days old) => latest=1.8.6 (15 days old)
Installs: stable=12 (54.55%), latest=9 (40.91%), total=22
Click to edit

PR creeated

authors: GermanBluefox rg-engineering


text:
A download issue

I want to download the latest version in win7,but it always prompt the sofware is virus and canceld by win7.I don't know why

2 possibilities:

It's a false alert. VirusTotal says it's safe: https://virustotal.com/en/file/3360d5d5610898f958a84ab085570bee9b82816981f27bb60c4753303a3331aa/analysis/
Your file is contaminated. Check its SHA256 checksum and the GPG signature.

What file is it?

The latest Windows binary: https://yt-dl.org/downloads/2016.07.26.2/youtube-dl.exe

license: Unlicense


text:
Support vudu?

Hi! Does youtube-dl support's vudu.com?

Carefully read new issue template and provide all requested information.

authors: dstftw shadowfolder


text:
facebook video not working

reports a 500 internal server error, but video is playing in browser. Maybe youll need to use another useragent to pass tests on the facebook server...
$ youtube-dl --verbose https://www.facebook.com/axel.klos.7/videos/1636612619944995/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'https://www.facebook.com/axel.klos.7/videos/1636612619944995/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.02.13
[debug] Python version 2.7.9 - Linux-4.2.0-0.bpo.1-amd64-x86_64-with-debian-8.2
[debug] exe versions: avconv 2.6.3, avprobe 2.6.3, ffmpeg 2.6.3, ffprobe 2.6.3, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] 1636612619944995: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 500: Internal Server Error (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 354, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1905, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

plaese fix that
thanks in advance, regards

Duplicate of #8504. See my comments there.


text:
ERROR: Unsupported URL

[generic] : Requesting header
WARNING: Falling back on generic information extractor.
[generic] : Downloading webpage
[generic] : Extracting information
ERROR: Unsupported URL: http://wixvi.cc/abigail-mac-a-domestic-dicking/; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.

This looks like copyrighted content. youtube-dl does not support sites dedicated to copyright infringement. Do they have rights to distribute this? If not provide an example URL that does not violate any copyrights.

authors: dstftw isanketsaha


text:
usage of "ETA" is ambiguous and non-standard, "time remaining" should be used

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.04.06. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[ ] I've verified and I assure that I'm running youtube-dl 2016.04.06

Before submitting an issue make sure you have:

[ ] At least skimmed through README and most notably FAQ and BUGS sections
[ ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2016.04.06
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue required an account credentials please provide them or explain how one can obtain them.
this is trying to reopen issue 9072
(capitals here are not meant as shouting)
WHILE DOWNLOADING, YOUTUBE-DL GIVES FEEDBACK SUCH AS
[download] 35.1% of 576.20MiB at 360.25KiB/s ETA 17:42
IN THIS LINE, THE USE OF "ETA" IS INCORRECT. WHAT YOU WANT TO SAY IS THAT THE DOWNLOAD IS EXPECTED TO FINISH 17 MINUTES FROM NOW. ETA ALWAYS MEANS AN ABSOLUTE TIME (ESTIMATED TIME OF ARRIVAL). INSTEAD OF "ETA" IT SHOULD SAY "remaining time" OR "remaining". IT'S NOT ETA, PLEASE CHANGE THIS, THANKS.
Even if you close my ticket and even if you cite Bittorrent as using it, it is an incorrect usage. The term comes from aviation and I asked pilots who confirm this is only used with absolute time.
Look it is not essential for me that you don't make fools of yourselves. I am just trying to help you. But if you resist, I give up on you and your attitude. I will also submit a bug report to bittorrent, maybe they have more sense. Which bittorrent client did you mean?
The fact fact that I am right is clear from how in some applications both ETA and remaining time is displayed (e.g. Waze). In this case both are referred to correctly. I am really puzzled by why you insist confusing your users by using an incorrect, or at least ambiguous term.

We are not pilots to strictly follow aviation terminology. Most of existing downloaders use ETA as time remaining and I see no point changing this wording. Needless to say this will break clients who parse progress and rely on this template.

authors: dstftw petfold


text:
[WSJ] Extract videos embedded in articles, too

[x] Improvement

Sorry, I was doing some research for this comment when you typed yours, so this is kind of duplicative.

What's the point extracting it here?

Sorry, I don't understand the question. But maybe it's irrelevent with a wsj: shortcut.

Instead of this extraction should be delegated to WSJIE via url_result.

Err...I'm definitely not sure that I did this right.
It kind of feels like introducing a wsj: pseudoURL  is overkill here. But maybe I should have done that instead? Clearly.
I added a template but unfortunately:
    _VALID_URL = r'''(?x)https?://
        (?:
            video-api\.wsj\.com/api-video/player/iframe\.html\?guid=|
            (?:www\.)?wsj\.com/video/[^/]+/
        )
        (?P<id>[a-zA-Z0-9-]+)'''
    TEMPLATE_URL = 'https://wsj.com/video/./%s'

It really doesn't seem like it's appropriate to put anything at all in first field, so I went with /./; and constructing the iframe URL sees kind of wrong, too.
Incidently, I also wasn't really sure how to name this template function, there seems to be a lot of variety:
pb3:extractor jhawk$ gsed -n -e 's/^\s*//' -e '/TEMPLATE[A-Z_]* *=/s/=.*//p' *py| sort | uniq -c | sort -nr
  14 BRIGHTCOVE_URL_TEMPLATE
  12 _URL_TEMPLATE
   6 _API_URL_TEMPLATE
   5 _TEMPLATE_URL
   5 _PAGE_TEMPLATE
   2 _VIDEO_PAGE_TEMPLATE
   2 _VIDEO_ID_TEMPLATE
   2 _VALID_URL_TEMPLATE
   2 _MOBILE_TEMPLATE
   1 _VIDEO_INFO_TEMPLATE
   1 _URL_VIDEO_TEMPLATE
   1 _THUMBNAIL_URL_TEMPLATE
   1 _SUB_LANG_TEMPLATE
   1 _SONG_URL_TEMPLATE
   1 _SONG_FILE_URL_TEMPLATE
   1 _SERVICE_PROVIDER_TEMPLATE
   1 _SECURITY_URL_TEMPLATE
   1 _PLAYER_URL_TEMPLATE
   1 _PAGE_DATA_TEMPLATE
   1 _MOVIE_TEMPLATE
   1 _EPISODE_URL_TEMPLATE
   1 _AUTHORIZATION_URL_TEMPLATE
   1 _API_QUERY_TEMPLATE
   1 _API_BASE_TEMPLATE
   1 _AGECHECK_TEMPLATE
   1 TP_RELEASE_URL_TEMPLATE
   1 TEMPLATE_URL
   1 SOAP_TEMPLATE
   1 PROGRESSIVE_URL_TEMPLATE
   1 PG_URL_TEMPLATE
   1 META_DATA_URL_TEMPLATE
   1 ADAPTIVE_URL_TEMPLATE
pb3:extractor jhawk$

I guess the one takeaway is I should use a leading underscore. I really don't understand why youtube-dl uses them so much, they seem to add a lot of confusion and (not here) make docstrings not work.
If only there were a "A model, well-commented extractor" to look at :)
#11968


text:
First Run after successful install

lol dumb question, everything installed without issue on my Mac, Just not sure how to run it after the install?

Hey @TheVedrick
To re-run the script, just run the script: ./auto_gpt_easy_install.sh
Hope this helps

authors: TheVedrick rgalloni

repo: rgalloni/Auto-GPT-sandbox-wizard


text:
Job for tomcat.service failed because the control process exited with error code.

See "systemctl status tomcat.service" and "journalctl -xe" for details.
Well systemctl status tomcat.service outputs
● tomcat.service - Apache Tomcat Web Application Container
   Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since sáb 2018-03-17 08:37:00 -05; 2min 26s ago

mar 17 08:37:00 compres-server systemd[1]: Starting Apache Tomcat Web Application Container...
mar 17 08:37:00 compres-server systemd[1]: tomcat.service: Control process exited, code=exited status=203
mar 17 08:37:00 compres-server systemd[1]: Failed to start Apache Tomcat Web Application Container.
mar 17 08:37:00 compres-server systemd[1]: tomcat.service: Unit entered failed state.
mar 17 08:37:00 compres-server systemd[1]: tomcat.service: Failed with result 'exit-code'.

journalctl -xe doesn't output any relevant information. I did run as sudo, as I was prevented from running it as regular user.

@Kreijstal Hi! This script is not used for a long time and it's pretty dumb anyway.
I would recommend you to use Docker for your applications.
If you still want to use this script only thing I can advise is to google this error code tomcat.service: Control process exited, code=exited status=203
Good luck.

authors: Kreijstal rgiyf

repo: rgiyf/tomcatScript


text:
🛑 Sito Web is down

In f884bd5, Sito Web (https://www.comune.preganziol.tv.it) was down:

HTTP code: 403
Response time: 564 ms

Resolved: Sito Web is back up in 303d396 after 33 minutes.

repo: rglauco/upptime


text:
🛑 Servizi Online is down

In 680aebb, Servizi Online (https://servizionline.comune.preganziol.tv.it) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Servizi Online is back up in 4a2f762 after 11 minutes.


text:
🛑 MDI Maui is down

In dfb73b1, MDI Maui (https://mdimaui.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MDI Maui is back up in 58bc1b2 after 9 minutes.

repo: rgstephens/upptime


text:
Support editing PEM bundles lacking trailing newline

See commit messages for more information

/test baremetalds-sno-recert-cluster-rename
/test e2e-aws-ovn-single-node-recert-serial
/test e2e-aws-ovn-single-node-recert-parallel

/test e2e-aws-ovn-single-node-recert-serial

/test baremetalds-sno-recert-cluster-rename
/test e2e-aws-ovn-single-node-recert-serial
/test e2e-aws-ovn-single-node-recert-parallel

/retest

/test baremetalds-sno-recert-cluster-rename
/test e2e-aws-ovn-single-node-recert-serial
/test e2e-aws-ovn-single-node-recert-parallel

/test baremetalds-sno-recert-cluster-rename
/test e2e-aws-ovn-single-node-recert-serial
/test e2e-aws-ovn-single-node-recert-parallel

/test baremetalds-sno-recert-cluster-rename

/lgtm
/approve

authors: eranco74 mresvanis omertuc

repo: rh-ecosystem-edge/recert


text:
Function can not be resolved with Dynamic when registering via Module::set_native_fn

The following code added to tests/modules.rs throws an error:
#[test]
fn test_module_dynamic() -> Result<(), Box<EvalAltResult>> {
    fn test_fn(input: Dynamic) -> Result<INT, Box<EvalAltResult>> {
        let s = input.into_string().unwrap();
        Ok(s.len() as INT)
    }

    let mut engine = rhai::Engine::new();
    let mut module = Module::new();
    module.set_native_fn("test", test_fn);

    let mut static_modules = rhai::module_resolvers::StaticModuleResolver::new();
    static_modules.insert("test", module);
    engine.set_module_resolver(static_modules);

    assert_eq!(
        engine.eval::<INT>(r#"import "test" as test; test::test("test");"#)?,
        4
    );

    Ok(())
}

Error:
---- test_module_dynamic stdout ----
Error: ErrorFunctionNotFound("test::test (&str | ImmutableString | String)", 1:30)
thread 'test_module_dynamic' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `0`: the test returned a termination value with a non-zero status code (1) which indicates a failure', /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/test/src/lib.rs:187:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Seems like this is a bug, or is dynamic not supported when using Module::set_native_fn?
I'd be willing to make a PR, but would appreciate some guidance where to look.
Thanks for the hard work you have put into rhai.

Good catch.
It seems like module functions do not support Dynamic parameters.  I'll look into it.

Good catch.  It seems like Dynamic parameters are not supported for loaded module functions.
Qualified (i.e. called with a path) function calls go through a different code path than non-qualified (i.e. called without a path) function calls.  I'll need to add searching for Dynamic parameters to it.

I'd be willing to make a PR, but would appreciate some guidance where to look.

Glad for you to offer, but it seems to be in a tricky position in the code that requires in-depth knowledge of how Rhai works, so it might be better that I fix it.

If you'd pull from https://github.com/schungx/rhai  you can try out the fix.

Thanks, works great.

I'm thinking, since this has been there for so many versions, I'll wait until 1.7 for this fix to land.  You OK with this?

Fine by me. Feel free to close this if you want.

authors: schungx soerenmeier

repo: rhaiscript/rhai


text:
Builds should be published?

Builds of each integration should be published somewhere official? Might be something for @bigkevmcd and @mnuttall to discuss depending on the future of this code

will it be integrated with odo or standalone?
does it need a short term home whilst things are decided?

Short term home is quay.io/redhat-developer/gitops-cli.
Longer-term home depends on https://github.com/openshift/odo/pull/2733

authors: dibbles mnuttall

repo: rhd-gitops-example/services


text:
Update to typechain v3

Hi, i tried out the pluging and it didnt work.
There was an error generating the types, later I figured it was typechain:
I generated manually the types by updating to typechain@3.0.0 and ts-generator@0.1.1
and ran typechain --target ethers-v5 --outDir tmp './artifacts/*.json'
Types were generated successfully.
Best

Had the same issue. I'm getting syntax error from prettier trying to parse import type ...

It looks like @typechain/ethers-v5 removed the explicit dependency on prettier >= 2 which is required to parse import type declarations. The prettier >= 2 dependency is now in the typechain package so as @andreujuanc said, upgrading to typechain v3 should fix it.
For a temporary workaround use @typechain/ethers-v5@1.0.0

authors: andreujuanc crab-aldridge

repo: rhlsthrm/buidler-typechain


text:
Update registry.access.redhat.com/ubi8/go-toolset:1.21 Docker digest to 4ec05fd

This PR contains the following updates:

Package
Type
Update
Change

registry.access.redhat.com/ubi8/go-toolset
stage
digest
bd20572 -> 4ec05fd

[!WARNING]
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

Configuration
📅 Schedule: Branch creation - "before 1pm on saturday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for the registry.access.redhat.com/ubi8/go-toolset 4ec05fd update again.
If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

repo: rhoai-rhtap/model-registry-explore


text:
🛑 BOS2 is down

In 65444be, BOS2 ($URL_BOS2) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BOS2 is back up in 0fcb8fd after 15 minutes.

repo: rholak/upptime


text:
Error when creating chunks with no jobs

It was trying to iterate a variable that was defined just in case that we have jobs. Now if there's no jobs then it won't throw any error and finish successfully

Fix OSPCRE-585

repo: rhos-infra/cibyl


text:
v1.1.9

This repository contains GitHub workflows for managing releases automatically.
Please name this issue what you would like the new release to be called. E.x. "v1.0.0"
The following slash commands are available to use in comments on this issue:

Command
Description
Parameters

/release
Creates a new released based on the current state of the master branch
frontend=<version>backend=<version>gitapi=<version>status=<version>dispatcher=<version>agnosticv=<version>anarchy=<version>poolboy=<version>

/promote
Promotes the created release to the next environment
N/A

/cancel
Cancels the current release (and closes this issue)
N/A

/finish
Completes the current release (and closes this issue)
N/A

/release frontend=v1.1.4 backend=v1.0.9 gitapi=v1.0.7 status=v1.0.0 dispatcher=v1.0.12

/promote

/promote

/finish

/finish

Promoted to production - closing

repo: rht-labs/lodestar-deployment


text:
接收不到行情数据

用户登录:RspInfo(ErrorID=0, ErrorMsg=b'CTP:No Error')
交易日期: b'20171020'
连接市场数据: RspInfo(ErrorID=0, ErrorMsg=b'CTP:No Error')

[2018-03-03 20:12:43.020316] INFO: system_log: 同步数据中。
Traceback (most recent call last):
File "TraderApi.pyx", line 701, in ctp._TraderApi.TraderSpi_OnRspQryInvestorPosition (ctp/TraderApi.cpp:17799)
File "/home/supervisor/venv/rq/lib/python3.5/site-packages/rqalpha_mod_ctp/ctp/api.py", line 47, in wrapper
result = func(api, pData, pRspInfo, nRequestID, bIsLast)
File "/home/supervisor/venv/rq/lib/python3.5/site-packages/rqalpha_mod_ctp/ctp/api.py", line 256, in OnRspQryInvestorPosition
if pInvestorPosition.InstrumentID:
AttributeError: 'NoneType' object has no attribute 'InstrumentID'
我也遇到类似的问题

我这里也遇到了相同的问题。
配置文件
# http://rqalpha.readthedocs.io/zh_CN/stable/intro/run_algorithm.html
version: 0.1.6

# 白名单，设置可以直接在策略代码中指定哪些模块的配置项目
whitelist: [base, extra, validator, mod]

base:
  # 数据源所存储的文件路径
  data_bundle_path: ~
  # 启动的策略文件路径
  strategy_file: strategy.py
  # 策略源代码
  source_code: ~
  # 回测起始日期
  start_date: 2015-06-01
  # 回测结束日期(如果是实盘，则忽略该配置)
  end_date: 2050-01-01
  # 设置保证金乘数，默认为1
  margin_multiplier: 1
  # 运行类型，`b` 为回测，`p` 为模拟交易, `r` 为实盘交易。
  run_type: p
  # 目前支持 `1d` (日线回测) 和 `1m` (分钟线回测)，如果要进行分钟线，请注意是否拥有对应的数据源，目前开源版本是不提供对应的数据源的。
  frequency: tick
  # Benchmark，如果不设置，默认没有基准参照。
  benchmark: ~
  # 在模拟交易和实盘交易中，RQAlpha支持策略的pause && resume，该选项表示开启 resume 功能
  resume_mode: false
  # 在模拟交易和实盘交易中，RQAlpha支持策略的pause && resume，该选项表示开启 persist 功能呢，
  # 其会在每个bar结束对进行策略的持仓、账户信息，用户的代码上线文等内容进行持久化
  persist: false
  persist_mode: real_time
  # 设置策略可交易品种，目前支持 `stock` (股票账户)、`future` (期货账户)，您也可以自行扩展
  accounts:
    # 如果想设置使用某个账户，只需要增加对应的初始资金即可
    stock: ~
    future: 100000
  # 设置初始仓位
  init_positions: {}
  # 根据价格最小变动单位调整发单价格
  round_price: false

extra:
  # 选择日期的输出等级，有 `verbose` | `info` | `warning` | `error` 等选项，您可以通过设置 `verbose` 来查看最详细的日志，
  # 或者设置 `error` 只查看错误级别的日志输出
  log_level: verbose
  user_system_log_disabled: false
  user_log_disabled: false
  # 通过该参数可以将预定义变量传入 `context` 内。
  context_vars: ~
  # force_run_init_when_pt_resume: 在PT的resume模式时，是否强制执行用户init。主要用于用户改代码。
  force_run_init_when_pt_resume: false
  # enable_profiler: 是否启动性能分析
  enable_profiler: false
  is_hold: false
  locale: zh_Hans_CN
  logger: []

validator:
  # close_amount: 在执行order_value操作时，进行实际下单数量的校验和scale，默认开启
  close_amount: true

mod:
  ctp:
    enable: true
    # CTP 登录信息
    login:
      user_id: ""
      password: ""
      broker_id: "9999"

    # 事件相关设置
    event:
      # 是否使用默认的 CTP 实时数据源
      enabled: true
      # 是否在非交易时间段内触发行情事件
      all_day: false
      #address: "tcp://180.168.146.187:10011"
      address: "tcp://180.168.146.187:10031"

    # 交易相关设置
    trade":
    # 是否使用默认的 CTP 交易接口
      enabled: true
      #address: "tcp://180.168.146.187:10001"
      address: "tcp://180.168.146.187:10030"

使用的是simnow的模拟ctp

authors: KimChow asxzy rickyall

repo: ricequant/rqalpha-mod-ctp


text:
This is SUDO code (never executed) but serves as a suggested change. AWS...

... has more granular permissions these days and accounts that do not have permission to "list buckets" cannot use said bucket method because it instantiated and loops through all buckets and fails with an authentication error.

The other thing I just noticed is when the bucket does not exist, previously nil would have been returned and now you would return a Bucket instance regardless (which presumably would be not functional?).

I did ask for it. Maybe Bucket should have a create method?
On Wed, Nov 30, 2011 at 6:00 PM, Rich Meyers <
reply@reply.github.com

wrote:

The other thing I just noticed is when the bucket does not exist,
previously nil would have been returned and now you would return a Bucket
instance regardless (which presumably would be not functional?).

Reply to this email directly or view it on GitHub:
https://github.com/rightscale/right_aws/pull/102#issuecomment-2969823

--
Jared

Hi
Could you try out out development branch plz?
it has a workaround for the issue: https://github.com/rightscale/right_aws/commit/bdcd8e343ebc343d5f6532cf3225f606200259a3
Does it work as expected?
Thanks


text:
Write Model Queries

fetch_user_points(user_id) ///Query which return user point
fetch_tutor_rate(tutor_id)  //Query which return tutor rate
update_booking_points(user_id, tutor_id) //Reduces rate point from user and add rate points to tuto

Solved with #51

repo: rikenshah/WolfTutor


text:
all profiling queries should in theory work for STRUCT types

STRUCT columns usually represent a nested column of some kind. The values have the same schema. Therefore, we can in theory profile each field of a STRUCT and generate a profile.
Unfortunately in our case, I get a binder error if I attempt this:
"Binder Error: Referenced column \"raw_log.id\" not found in FROM clause!
Candidate bindings: \"transactions.raw_log\"\nLINE 1: ...nt(*) AS count FROM \"transactions\" GROUP BY \"raw_log.id\" ORDER BY count DESC, value...\n                                                  ^"

Not 100% sure how this should work, but I'm seeing now that we're so close to being able to support a better story with STRUCT columns.

We probably don't want to remove the escaping of input columns as that creates other problems. Some other ideas:

Check if column name exists in table. If not, parse dots (or square brackets) and treat as struct access.
Instead of a single column name, the API should accept an array of names designating a struct access "path". (One array entry would be a regular column profiling.)
Add a separate struct profiling analytical API, that recursively profiles the struct and returns the full result. (This would probably have better performance as well.)

Added this issue to platform backlog.

Moving this out of any specific version until the backend work gets scoped by platform

authors: begelundmuller hamilton

repo: rilldata/rill-developer


text:
Plugin stopped working with helm

I have a docker helm tillerless docker image that uses alpine/helm:latest as base image, recently and new image was released and the plugin stopped working.
 $ docker run --entrypoint /bin/bash --name helm -ti --rm -v ~/.kube/config.yaml:/root/.kube/config prnjanuario/helm-tillerless:latest
bash-5.0# helm tiller start integration
Error: unknown shorthand flag: 'c' in -c
Installed Helm version
Installing Tiller v ...
Usage:
  semver bump (major|minor|patch|release|prerel <prerel>|build <build>) <version>
  semver compare <version> <other_version>
  semver --help
  semver --version

Arguments:
  <version>  A version must match the following regex pattern:
             "^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(\-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$".
             In english, the version must match X.Y.Z(-PRERELEASE)(+BUILD)
             where X, Y and Z are positive integers, PRERELEASE is an optionnal
             string composed of alphanumeric characters and hyphens and
             BUILD is also an optional string composed of alphanumeric
             characters and hyphens.

  <other_version>  See <version> definition.

  <prerel>  String that must be composed of alphanumeric characters and hyphens.

  <build>   String that must be composed of alphanumeric characters and hyphens.

Options:
  -v, --version          Print the version of this tool.
  -h, --help             Print this help message.

Commands:
  bump     Bump <version> by one of major, minor, patch, prerel, build
           or a forced potentialy conflicting version. The bumped version is
           shown to stdout.

  compare  Compare <version> with <other_version>, output to stdout the
           following values: -1 if <other_version> is newer, 0 if equal, 1 if
           older.
Error: plugin "tiller" exited with error
bash-5.0# helm version
version.BuildInfo{Version:"v3.0.0-alpha.1", GitCommit:"b9a54967f838723fe241172a6b94d18caf8bcdca", GitTreeState:"clean"}
bash-5.0# exit
exit

NOTE: The image prnjanuario/helm-tillerless:latest is now based on alpine/helm:2.14.0 so, to easily test this just pull the repository and change the base image to latest.

I know that helm 3 is a redesign and should not require this plugin anymore so mostlikely is not something to solve.

yes, plugin works with helm v2.
helm v3 is still in alpha, I would not  recommend to use it for any production yet :)

and I would also recommend to pin Tillerless-helm plugin version in your prnjanuario/helm-tillerless

@rimusz I use it in the CI/CD pipeline with the docker image I mentioned, I downgraded it to 2.14 to ensure things would work instead of using the latest tag.

How can i pin the plugin version? Tag?
helm plugin install https://github.com/rimusz/helm-tiller:v0.8.2

downloaded the file first, then:
$ tar -xzf  helm-tiller-0.8.2.tar.gz
$ helm plugin install helm-tiller-0.8.2/

authors: pjanuario rimusz

repo: rimusz/helm-tiller


text:
Authorization Question & Extending Controllers

I'm evaluating options for JSON API in nestJS  - and i'm trying to understand more about how this module works.
Is it possible to add metadata to Individual routes? I have a decorator that adds  'scopes' metadata to the method (or controller)
Additionally -
Some (not all) of my models will have complex requirements. Namely - not all the data will be populated from a DB Some i want to pull from an internal API and merge in. Is there a way i can extend on a method by method basis - without loosing all the existing transformation work?
Thanks

You can modification response or request using Interceptors.
All controller with decorator JsonApi has implementation 'JsonApiController' interface.
So you can override default behavior.
ex:
@JsonApi(Addresses, {
  allowMethod: ['getAll', 'getOne', 'patchOne'],
})
export class AddressesController implements JsonApiController {
 public constructor(protected someService: SomeService) {}
  @InjectService() protected service: JsonApiService;

  @UseInterceptors(AddressesInterceptors)
  public async patchOne(
    id: number,
    body: RequestResourceData,
  ): Promise<ResponseResourceObject> {
    if (!this.someService.check()) {
       throw new Error();
    }
    const responseJsonApi = await this.service.patchOne({ route: { id }, body });
    responseJsonApi.meta = {}
  }
}

Ahhhh thanks that's the piece I was missing - overriding the methods in the controller.
I might not have it quite right yet because I needed to tag the method with @Get/@Post etc to get the methods to be recognised. (But your example, and now I know what to look for, the example controller in your repo, do not have tagged overrides)
I will keep trying next week.
Thanks so much for an amazing community contribution!

The method of controller does not have key word of override, because controller only implements interface JsonApiController. It does not extend. Controller class creates dynamically using config of decorator)
The decorator @Get or @Post does not need, because I tried to implement JSON API specification and all methods are strongly defined there.
feel free to contact me if needed)

I have made some progress!
I have created a small repo that shows an issue. I have found that i can work around the issue - by adding @Get
In my controller, I must specify @Geton the method,  or I get an error - from Swagger. I think the error is suggesting missing metadata - the meta data is being added when I decorate with method with @Get I am still new to Nest, and I am learning some concepts so i don't know if it is a bad idea to add this decorator here.
See my method here: https://github.com/arcticShadow/nest-jsonapi-example/blob/master/src/account/account.controller.ts#L16
(Note - you can run this repo - start it with docker compose up to get databases going properly

authors: arcticShadow klerick

repo: ringcentral/nestjs-json-api


text:
Drop POSIX wrapper and switch to java.nio

Java 7 has a lot of POSIX-related stuff in the java.nio package. We could try to replace the jnr-posix layer with plain java.nio by using classes like PosixFileAttributes. Using java.nio avoids any native calls via the JNI / jaffl interface.
This issue depends on #268
Update: candiates for the nio switch are the fs and file utils.

Initial work started in the 293 branch.

Windows doesn't support POSIX file permissions. I see two approaches to this problem:

ignore the mode if defaultFS.supportedFileAttributeViews() doesn't contain posix; just create the file / directory without any mode
throw an exception / throw back the Java exception

If I look on other POSIX-based Windows code, I see a general preference for the first way.

+1 for the first way
Philipp Naderer notifications@github.com schrieb am Mo., 20. Juli 2015
19:15:

Windows doesn't support POSIX file permissions. I see two approaches to
this problem:

ignore the mode if defaultFS.supportedFileAttributeViews() doesn't
contain posix; just create the file / directory without any mode
throw an exception / throw back the Java exception

If I look on other POSIX-based Windows code, I see a general preference
for the first way.
—
Reply to this email directly or view it on GitHub
https://github.com/ringo/ringojs/issues/293#issuecomment-122956654.

:+1: for option 1: throwing an exception would be way too harsh.

I think https://github.com/ringo/ringojs/commit/c99bce63e7bc32f4431aaec5ce140a079ac24f06 shows how the new fs methods will look like. imho this is a better approach since we drop the custom POSIX stuff and rely on the JRE to do the right things for us like applying the current umask.
In the first run I dropped the fs.Permissions class. The implementation relied on POSIX and was not filesystem agnostic. Instead, I moved the POSIX stuff into a utility class PosixPermissions which knows all the details and converts between octal, symbolic and Java enum notation. See https://github.com/ringo/ringojs/commit/7a8ab5ed149215e4dc417e37be506cf4b1fc43e7 for utility class.

one nitpick: you're throwing strings as errors in various methods in the utility class, which means there is no stack trace available, and thus makes debugging much harder. you could/should use
 throw new Error("message")

instead. other than that your changes look really good! :+1:

Argggghhhh, too much client side stuff in the last months. Will fix it.

I created a pull request: #307, so any discussion should happen in the PR.

authors: botic grob kmfdm1

repo: ringo/ringojs


text:
Update composer.json

replace "felixkiss/uniquewith-validator": "dev-l9-compatibility" due to non existant branch with read only repository. The original repo has been abandoned.
Please allow CI runs to make sure this still works properly. Only changes on this is the laravel shift commit + package name + tag
See all changes here: https://github.com/mattvb91/uniquewith-validator/compare/3.4.2...3.4.3

@Omranic sorry I didnt realize there was no CI on this repo, can you give this a look over to see if you can spot any issues im not sure how to best test this.
The original repository doesnt actually have the dev-l9-compatibility branch so you cant pull this laravel-support repo since 6.1.0

Thank you @mattvb91, however the repo you provided 'https://github.com/mattvb91/uniquewith-validator/compare/3.4.2...3.4.3' is abandoned!
Despite that, I don't see a need for any change as the current instructions still work correctly. If you followed the instructions, you won't be pulling the dev-l9-compatibility from the original repo, instead it's gonna be pulled from here https://github.com/laravel-shift/uniquewith-validator

@Omranic of course its abandoned... so is the original. The difference here is that this version works. The current dev-l9-compatibility  DOES NOT WORK if your pulling in various CI tools due to the overrides requiring custom composer aut tokens.

I understand, thank you for your input. I’d still rather stick with the existing shift fork at the time being until there’s a more reliable solution. I agree it’s not perfect, but it is what it is. I hope this package could be maintained pr replaced one day.

FYI, we dropped the felixkiss/uniquewith-validator dependency from this package 🙂 https://github.com/rinvex/laravel-support/commit/2bf69b8dcbf6f18ecd97c2c7b43ae441d58765cd

repo: rinvex/laravel-support


text:
Validator key manifests

Fix some things
Add the manifest.py command-line tool for creating new config entries
Support ephemeral validator keys in UniqueNodeList
Add new ManifestCache
Trade validator key manifests via peer gossip

Tag reviewers please.

Reviewers: @scottschurr @ximinez

I see a few issues remaining.  Is a revoking manifest supposed to include a new ephemeral signing key that will be ignored?  Because right now that's required.

Is it really necessary to verify() before calling maybe_insert()?  Because maybe_insert() calls unpackManifest(), which calls verify().  And why have a separate would_accept()?

A quick scan through suggests the bulk of the code here is in python.  Does it make sense to have @rec as a reviewer?

I definitely think that @rec should be tagged as a reviewer on this because of the Python bits.

There's some commit bloat going on here

Build failure in Windows:
cl /Fobuild\msvc.debug\src\ripple\unity\overlay.obj /c src\ripple\unity\overlay. cpp /TP /nologo /bigobj /EHa /fp:precise /Gd /Gm- /GR /Gy- /FS /MP /openmp- /Zc:forScope /Zi /errorReport:none /nologo /W3 /WX- /wd"4018" /wd"4244" /wd"4267" /wd"4800" /GS /MTd /Od /RTC1 /DOPENSSL_NO_SSL2 /DDEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER /DHAVE_USLEEP=1 /DDEBUG /D_DEBUG /D_WIN32_WINNT=0x6000 /D_SCL_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS /DWIN32_CONSOLE /D_CRTDBG_MAP_ALLOC /IC:\boost_1_57_0 /IC:\OpenSSL-Win64\include /Isrc /Isrc\beast /Ibuild\proto /Isrc\soci\src /Isrc\protobuf\src /Isrc\protobuf\vsprojects
overlay.cpp
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xstring(1271) : error C2280: 'ripple::AnyPublicKey &ripple::AnyPublicKey::operator =(const ripple::AnyPublicKey &)' : attempting to reference a deleted function
        c:\Dev\rippled-merge\src\ripple/protocol/AnyPublicKey.h(105) : see declaration of 'ripple::AnyPublicKey::operator ='
        This diagnostic occurred in the compiler generated function 'ripple::Manifest &ripple::Manifest::operator =(const ripple::Manifest &)'
scons: *** [build\msvc.debug\src\ripple\unity\overlay.obj] Error 2
scons: building terminated because of errors.

I'll bet you're expecting a move assignment here, but, IIRC, msvc is terribly negligent about auto-creating move constructors and operators.

@scottschurr No, VER_NODE_PUBLIC is also used in UniqueNodeList.cpp.

Adding @rec as a reviewer for the Python bits.  (And feel free to comment on the rest as well, if you like.)

@scottschurr Oops, VER_NODE_PUBLIC should be used in Manifest.cpp.  It just isn't.

Passing a journal by const ref works as long as the object is in scope.  This one belongs to the overlay.

I renamed mIn and mOuttoinboxandoutbox`.

As long as we're renaming why not in and out

Because saving three bytes/columns per use isn't worth the loss of descriptiveness, IMHO.

inbox is no more descriptive than in

Windows scons builds succeed and tests pass with https://github.com/josh-ripple/rippled/commit/14f90fbcc388abcbe1fa72f8f80881acea5e0aa4.
The .vcxproj files are out of date.

We're importing someone else's code here - but it's in the same directory as our code.
This isn't a good idea for a lot of reasons, if only because I'm not entirely sure which is existing code that can be more or less rubber stamped and which is new code that I need to fully review.
Using sys.path, you can easily make have the third-party code in a separate subdirectory and still have appear where it needs to in the Python dependencies.  But it looks as if they use entirely relative paths, so you can probably just drop it into a subdirectory!
I'm also starting to wonder whether we shouldn't be pulling out this Python as a separate repository?

(Oh, and I concentrated on the Python because the C++ seemed to be well in hand.  let me know if you want comments on the C++...)

The third party code is in the wrong subdirectory!
Putting it in the ripple namespace implies its our code, when it isn't. And if we used some other third party library that also used ecdsa, it wouldn't work.
Unfortunately, our Python root directory is in bin/.  I didn't like that at the time.
Three choices

Put this code in bin/ecdsa
Put this code in bin/third_party/ecdsa and then do some magic with sys.path.
Move our Python to bin/python/ripple and have this as bin/python/ecdsa.

The Python needs work

would you like to pull it out as a separate change?
I could take it and massage it...?

@rec Yes I think that would be best. Just start a new branch off b22, manually copy the manifest.py program and then use your best judgement for the 3rd party libraries.

OK.  On it almost immediately.

Is there more work to do here?  Or is it time for a squash and a rebase?

I left comments related to AnyPublicKey copy constructor and logging levels which I don't see have been addressed yet.

This pull request is superseded by https://github.com/ripple/rippled/pull/990.

I am closing this PR since it's been superseded. Existing comments will remain here for posterity. Use the new PR for any comments going forward.

authors: josh-ripple nbougalis rec scottschurr vinniefalco ximinez

repo: ripple/rippled

license: ISC


text:
DRAFT: Implement syscall for receipt verification

Description
This commit implements a new syscall allowing the guest to verify a specific receipt, rather than simply verifying that some receipt is known which satisfies the claim.
This commit implements the requisite syscall but omits the crucial step of recursively invoking the Rust verifier when the host claims that the provided receipt is invalid. This omission is intentional, since the Risc0 verifier currently does not run on Risc0.

@preston-evans98 the code to perform receipt verification for composite, succinct, and compact receipts has landed in main just now from this PR: https://github.com/risc0/risc0/pull/1776. I've added a test that you can use as a starting place:
Host Code:
https://github.com/risc0/risc0/blob/53ada25b03fd22c9bb9c13065bb5022c10574bb6/risc0/zkvm/src/host/server/prove/tests.rs#L602
Guest code:
https://github.com/risc0/risc0/blob/53ada25b03fd22c9bb9c13065bb5022c10574bb6/risc0/zkvm/methods/std/src/bin/verify.rs#L17
Seeing as this is now implemented, I'll close this PR. Feel free to reach out if you have any questions!


text:
Missing descriptions for HWCFG0.peis on Section 2.7 Error Reactions

Hi all,
The description "HWCFG0.peis is 1 if an implementation supports sire, siwe, or sixe." is in spec V0.9.1 but is removed from the latest commits (3369da4 7a76c5d).
HWCFG0.peis (IOPMP implements interrupt suppression per entry) is only mentioned in register description of HWCFG0 now.
It would be better if the description is in Section 2.7 like HWCFG0.pees (IOPMP implements the error suppression per entry).

Thanks for the suggestion. Added back the description, will be available on next release.

authors: channingt tyshyu

repo: riscv-non-isa/iopmp-spec


text:
Could the system support multiple SMEMs in SoC?

For Coresight, usually one ETR is used in SoC. While, the RV spec doesn't define the number of SMEM.
If we want to put TE and an SMEM near each hart, and trace data from every hart can be sent to target memory directly, rather than collect the trace data from every TEs to single SMEM.
Can this multiple SMEMs scheme be supported by RISC-V Spec?

There is nothing in either the E-Trace spec, the Unformatted Trace & Diagnostic Data Packet Encapsulation spec nor the about to be ratified Trace Common Control trace spec that would preclude either of these arrangements.
Iain
From: zhangdujiao @.>
Sent: 27 September 2024 03:38
To: riscv-non-isa/riscv-trace-spec @.>
Cc: Subscribed @.***>
Subject: [riscv-non-isa/riscv-trace-spec] Could the system support multiple SMEMs in SoC? (Issue #148)
For Coresight, usually one ETR is used in SoC. While, the RV spec doesn't define the number of SMEM.
If we want to put TE and an SMEM near each hart, and trace data from every hart can be sent to target memory directly, rather than collect the trace data from every TEs to single SMEM.
Can this multiple SMEMs scheme be supported by RISC-V Spec?

Reply to this email directly, view it on GitHubhttps://github.com/riscv-non-isa/riscv-trace-spec/issues/148, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQOPSQDFIF5KBWQJR77WLLZYTAKDAVCNFSM6AAAAABO6HS35KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2TCOBXGEZTIOI.
You are receiving this because you are subscribed to this thread.Message ID: @.@.>>

Thanks!

authors: IainCRobertson zhangdujiao

repo: riscv-non-isa/riscv-trace-spec


text:
Minor fixes

These are the items from my list that should mostly speak for themselves.

This change also fixes https://github.com/riscv/riscv-cheri/issues/84

repo: riscv/riscv-cheri