[USERSNAP] Search tool to find drep by name

Taken at: https://gov.tools/drep_directory
Fields:

Name of the idea or new feature: Search tool to find drep by name
Please summarize your idea or new feature: When I search using the current search tool, when I put in the name of the drep I can see already, no results return! So my idea is to have a search tool that actually searches and returns a result. Go check for yourselves.
Any additional details: Bizzare how you didn't have this most basic of functions available or useable.

Browser: Chrome 128 (macOS Catalina)
Screen size: 1938x1158
Open #84 in Usersnap
Powered by Usersnap.

This is a known issue, and there is a ticket for it: #1893


fix(jest-preset-hops): add missing files to package.json

https://www.youtube.com/watch?v=FHnNIoNUZig

Will be resolved by #207.


MSPSDS-550: Fixes for record email flow

Fixes addressing these test results (with some points resolved in subsequent comments)

Pull Request Test Coverage Report for Build 1651

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.0007%) to 97.073%

Files with Coverage Reduction
New Missed Lines
%

../models/correspondence/email.rb
1
87.5%

Totals

Change from base Build 1645:
0.0007%

Covered Lines:
3880

Relevant Lines:
3997

💛  - Coveralls


Standardise return values of strategy harvests

Added missing TreeDistribution events to harvest() of all active strategies wherever rewards were being sent to BadgerTree

Modified harvest() of all active strategies to return uint256 instead of a harvest struct. The return value is either the want gained during harvest or the reward tokens harvested (eg. xSushi)

FlashbotsHarvester (0xA9C0252dcB258F41ABF99348F9C103bedac678fA) pays the miner directly by forwarding ether to block.coinbase. It takes a minHarvestExpected argument (measured in want) and reverts the tx if the strategy harvests less than that

fyi, they are onto tricrypto3 now...

fyi, they are onto tricrypto3 now...
Thanks for the heads up!
Do you know around when they are planning on launching it?


Android 14

I tested it on Android 14 and having some problems there.
The vpn connection will stablish but
value.state == "DISCONNECT" will remain true .
I'm using other packages on project too
So I'm not sure if flutter_v2ray is making problem or one of those.
I will test more to make sure.

Your condition should be like this
value.state == "DISCONNECTED"

Your condition should be like this
value.state == "DISCONNECTED"

Yeah i write value.state == "DISCONNECTED" on my code
I just forget it when writing the issue here
Also I'm using 1.03 version I'll try with latest


Dataset Check before operation

Noticed that running the model on the given image or video doesn't require dataset check.
For testing with the trained weights:  check p.mode to avoid unnecessary tusimple check.

Thank you!!!!!


Deprecation warning

When using the plugin I get the following deprecation warning:

The plus(Iterable) method and using the '+' operator in conjunction with an Iterable object have been deprecated and are scheduled to be removed in 3.0.  Please use the plus(FileCollection) method or the '+' operator with a FileCollection object instead.

duplicate of #209

Oops, didn't see that, thanks. I'll wait for 0.10.5 to be released.


 I don't want this. When users click on the pause and resume buttons, the video will start and stop. I want this. Can someone help me?

This is the same as #675, I'll close this since we already have an internal ticket for #675. @STARGAMERMJ the idea would be to use the same settings as #675 to make this work for your use case.


feature-4954-Updated Trade Tick and Quote Tick Downloads

Now the system can properly download Tick & Quote data
Description
-Implemented Suspicious Flag using naive implementation
-Added stub code for extended polygon data model, but not using for now
-Added stub parallel foreach of downloader for symbols and dates
-Added additional arguments for ToolboxArgumentParser
-Edited JSON schemas for trades and quotes
-Fixed null results issues in JSON schema
-Added stub code for quote & trade corrections
-Added SIP mappings
-Updated Toolbox project to use latest version of C#
Related Issue
https://github.com/QuantConnect/Lean/issues/4954
Motivation and Context
Adds the condition mapping, suspicious flag logic, and other needed parameters
Requires Documentation Change
None
How Has This Been Tested?
Ran quote and trades downloader and verified dat
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Refactor (non-breaking change which improves implementation)
[ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Non-functional change (xml comments/documentation/etc)

Checklist:

[X] My code follows the code style of this project.
[X] I have read the CONTRIBUTING document.
[] I have added tests to cover my changes.   Not applicable
[X] All new and existing tests passed.
[X] My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

This fixes the missing Trade Conditions and Suspicious Tick Flags for the Trade and Quote tick downloads.   Also, adds some additional robustness for null json responses.

This fixes the missing Trade Conditions and Suspicious Tick Flags for the Trade and Quote tick downloads.   Also, adds some additional robustness for null json responses.


There is a limit to the size of the message?

Hi,
There is a limit to the size of the message?

Not really. Since the send and receive are byte arrays you could crash a server with low amount of memory with giant messages. As far as websocket specs in general, see https://tools.ietf.org/html/rfc6455#section-5.2 where it describes max message size as 18,446,744,073,709,551,615 bytes.
My advice if you want to deal with large messages, break them up and create a sub protocol to handle splitting and merging as well as use a machine with a large amount of memory.


cosmosdb sql database throughput migrate giving error message.

Hi,
I am tring to validate throughput migration from manual to autoscale via cli but I am getting error message like "Entity with the specified id does not exist in the system. More info: https://aka.ms/cosmosdb-tsg-not-found
ActivityId: 3cf8bdc0-ae18-11ed-aefd-b63dd93e76bc, Microsoft.Azure.Documents.Common/2.14.0"
I am not able to find any gap in the command. I have validated that db already present so Entity found is not looking valid"
I had also tried similar commands on 3 month old cosmosdb but same result.
Commands: - 3rd one failing
az cosmosdb create --name cdb-virender --resource-group rg-bi --default-consistency-level Eventual --locations regionName="UK South" failoverPriority=0 isZoneRedundant=False --locations regionName="South Central US" failoverPriority=1 isZoneRedundant=False
az cosmosdb sql database create -a cdb-virender -g rg-bi -n cdb-virender-abc
az cosmosdb sql database throughput migrate -a cdb-virender -g rg-bi -n cdb-virender-abc -t autoscale
I added container manually and tried below command but same error:
az cosmosdb sql container throughput migrate -a cdb-virender -g rg-bi -d cdb-virender-abc -n container1 -t autoscale
If I remove/misspelle any aurgment/value then I am getting proper error for incorrect syntex.
but command with correct values throwing error "Entity with the specified id does not exist in the system"
Regards,
Virender

route to CXP team

I hope someone looking into the issue.

@JainVirender You are getting this error because you have not configured a database throughput while creating it.  Please note that if a database or container is initially created without throughput, it cannot then be changed to have throughput. You must create a new database or collection with throughput to later change it.
I have tested this with a new database using a CLI having throughput or max-throughput and later changed it to have a Manual throughput using az cosmosdb sql database throughput migrate and it worked as expected.

Please let me know if you have any questions.  Thanks.

Thank You @SaurabhSharma-MSFT, Your solution seems working.
I need to check it further by including it in main script which will take time because it depends on others. I will update on it till next weekend.
Thank you
Virender

@JainVirender Sure, thanks for the updates.


Can not declare protected methods without implementation in TS 2.0

Sometimes I use mixins to share some protected logic between several classes:
class Mixin {
	protected doSomething(): void {
	}
}

class Base {
}

class Sample extends Base {
	run() {
		this.doSomething();
	}

	protected doSomething(): void; // error TS2391: Function implementation is missing or not immediately following the declaration.
}

// uncomment the following code to fix the complilation in v1.8 and earlier
//namespace Sample {
//}

// extend Sample.prototype from Mixin.prototype

The code above raises the error TS2391. But uncommenting namespace Sample after the class definition changed behavior: the compilation became successful before version 2.0. Maybe it was a bug or undocumented feature, I don't know. But it worked and I used it since early versions (about 1.3 or 1.4), including 1.8.10. This behavior changed in 2.0, now introducing the namespace don't fix compilation:(
I can declare mixining method as a property:
class Sample extends Base {
	protected doSomething: () => void;
}

But in this case I can't override this method later:
class Child extends Sample {
	protected doSomething(): void { // error TS2425: Class 'Sample' defines instance member property 'doSomething', but extended class 'Child' defines it as instance member function.
		super.doSomething(); //  error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword.
	}
}

Also this way is inconvenient and confusing.
If method doSomething would be public, I can declare it in interface Sample and TypeScript merge it with the class. But this trick does not work with protected methods.
I tried to mark the method as optional (although it is mandatory in fact):
	protected doSomething?(): void;

But now compilation with --strictNullChecks throws an error error TS2532: Object is possibly 'undefined'.
The only workaround that I found is to add a fake implementation to the method:
	protected doSomething(): void { }

But this generates redundant JavaScript and misleads code reviewers. Unacceptable:( So this is real blocker for me to update to version 2.0.
Adding a namespace with the same name was not clean of course. The solution would be to allow using declare inside a class body:
class Sample extends Base {
	run() {
		this.doSomething();
	}

	declare protected doSomething(): void;
}

I suppose it is not so difficult to implement this.
P.S. Sorry for my English:(

I can declare mixining method as a property:
...
But in this case I can't override this method later:

You can override it be assigning to it in the derived class, but it does change it from a method to a property which may not be desirable.
This does not work because only derived classes have access to protected members. Sample does not derive from Mixin and if it did, it could not derive from Base.
I believe the pattern you want to follow is detailed here https://www.typescriptlang.org/docs/handbook/mixins.html

@aluanhaddad: The example from the handbook uses public methods. I am trying to do the same but with protected methods. By the way that example does not allow overriding mixed-in methods in inherited classes too.

@mhegazy, @DanielRosenwasser, @ahejlsberg or anybody else from TypeScript team, could you comment please?

This is working as intended. It's was never intended to be allowed to declare a method without an implementation in a non-ambient class.

Maybe this was not intended, but this worked before 2.0 (if you add a namespace with the same name). I think this is the useful feature (not only for me). So why don't allow it? Via declare inside a class as I suggested above of somehow else. Don't you agree?

Hi.
The solution with protected methods in a mixin and empty methods worked fine for us. I can't see why do you consider it as a bug (anyway it's a breaking change not mentioned anywhere in release notes).
Even if it's working as indended now we still need an ability to share protected/private logic between classes. How do you suggest doing this now?
These empty methods are kind of an interface of a class for itself. So actually it's an implementation of multiple inheritence. Where extends is used for outer contract and mixin injecting for inner contract.

Hi.
Is these any news on issue?
We're stuck at 1.8 because of our codebase is breaking with 2.0 as we were broadly using that "mixin" feature.

My recomendation is to use interface/class merging to get this working.
class Mixin {
    protected doSomething(): void {
    }
}

class Base {
}

interface Sample {
    doSomething(): void; // no implementation needed
}

class Sample extends Base {
    run() {
        this.doSomething();
    }
}

(new Sample()).doSomething();

@mhegazy thank you! we'll give it a try.

@mhegazy Your solution makes mixin methods public, not protected.

Can you explain the scenario you are trying to achieve then?

@mhegazy
Here're 3 classes: PartWithFilterMixin - common methods for working with a "filter", they are mixed into ObjectList and ObjectTree. ObjectList and ObjectTree cannot inherit from PartWithFilterMixin because they have their own hierarchies.
PartWithFilterMixin.ts:
abstract class PartWithFilterMixin  {
    protected filter: IFilterPart;
    protected initFilter(options: PartWithFilterMixinOptions): void { /* init this.filter */ }
    protected getFilterRestrictions(): any { /* collecting filter restrictions */}
}
declare namespace PartWithFilterMixin {
	export interface PartWithFilterMixinOptions { }
}
export = PartWithFilterMixin;

ObjectList.ts:
import PartWithFilterMixin = require("PartWithFilterMixin");
class ObjectList extends List<DomainObject> {
    /* ObjectList's own logic */
    public load() {
        let args = this.getFilterRestrictions(); ...
    }

    // PartWithFilterMixin: begin
    protected initFilter(options: PartWithFilterMixin.PartWithFilterMixinOptions): void;
    protected getFilterRestrictions(): any;
    // PartWithFilterMixin: end
}
ObjectList.mixin(PartWithFilterMixin);
namespace ObjectList {
    export interface Options extends List.Options, PartWithFilterMixin.PartWithFilterMixinOptions {}
}
export = ObjectList;

ObjectTree.ts:
import PartWithFilterMixin = require("PartWithFilterMixin");
class ObjectTree extends Tree {
    /* ObjectTree's own logic */
    public load() {
        let args = this.getFilterRestrictions(); ...
    }

    // PartWithFilterMixin: begin
    protected initFilter(options: PartWithFilterMixin.PartWithFilterMixinOptions): void;
    protected getFilterRestrictions(): any;
    // PartWithFilterMixin: end
}
ObjectTree.mixin(PartWithFilterMixin);
namespace ObjectTree {
    export interface Options extends Tree.Options, PartWithFilterMixin.PartWithFilterMixinOptions { }
}

mixin is our static method in the very base class which copies method between prototypes.
ObjectList and ObjectTree know that they have a filter, but they don't contain implementation for working with it, only contract (for themselves).
It is (was!) a pretty handy method to share private/protected methods among classes.
Hope it makes sense for you. Please let us know if it's still unclear.
//cc @Koloto

A quick note about adding members to a class outside the main class declaration for posterity. you have multiple options,
Optional methods:
this to say that the member may or may not be there, a user would have to check for the member existance before using it under --strictNullChecks. e.g.:
class ObjectList extends List<DomainObject> {
     protected initFilter?(options: PartWithFilterMixin.PartWithFilterMixinOptions): void;
     protected filter?: IFilterPart;
}

// later on:
if (condition) {
    ObjectList.prototype.initFilter = funciton(...) {}
}

Interface/class declaration merging
A simple way to visualize this, is you can declare additional members on a class without impementing them.
interface ObjectList {
    filter: IFilterPart;
    getFilterRestrictions():
}

class ObjectList extends List<DomainObject> {
    public load() {
    }
}

(new ObjectList()).load();
(new ObjectList()).filter;
(new ObjectList()).getFilterRestrictions();

In the example above you wanted to "inherit" the properties of another class, and not define new ones, since private and protected members can only be inherited to be considered equivalent.
For that, you can just use extends on the interface, since interfaces can extend classes:
interface ObjectList extends PartWithFilterMixin {
}

class ObjectList extends List<DomainObject> {
    public load() {
        this.load(); // local
        this.filter; // inherited from PartWithFilterMixin
        this.getFilterRestrictions(); // inherited from PartWithFilterMixin
    }
}

(new ObjectList()).load(); // only load available here since the others are protected

Using intersection
The  other option is to use intersection types to represent the result of a mixing operations, e.g.:
function getObjectListWithFilter(): ObjectList & PartWithFilterMixin {
    return extend(new ObjectList(), PartWithFilterMixin);
}

where, extend would be a routine that copies helpers from PartWithFilterMixin onto your new object instance at runtime.
hope that helps.

@mhegazy Your second solution works like a charm! Thank you very much.
Could you explain a bit. Do I understand right that an interface can also have the inherited protected members if it extends a class? I am about this:
interface ObjectList extends PartWithFilterMixin {
}

We can't explicitly declare any protected members in the interface. But we can do it implicitly by extending a class. Is this a feature?

@mhegazy I was too optimistic when said "works like a charm":)
Actually all our components inherit from the class Part which has protected method doRender. If this method is overridden somethere in class hierarchy then suggested solution doesn't work:( Working demo:
class Part {
    renderStatus: "unloaded" | "ready";

    render(): void {
        this.doRender();
        this.renderStatus = "ready";
    }

    // "virtual" method to override
    protected doRender(): void { }
}

// This class is never instantiated but is also inherits from Part
// to have access to its members in compile-time
class PartWithFilterMixin extends Part {
    protected getFilterRestrictions(): any {
        if (this.renderStatus !== "ready") {
            return null;
        }
        return {};
    }
}

class List extends Part {
    protected doRender(): void {
        super.doRender();
        // something else
    }
}

class ObjectList extends List {
    public load() {
        this.getFilterRestrictions(); // inherited from PartWithFilterMixin
    }
}

// Error:
// Interface 'ObjectList' cannot simultaneously extend types 'List' and 'PartWithFilterMixin'.
// Named property 'doRender' of types 'List' and 'PartWithFilterMixin' are not identical.
interface ObjectList extends PartWithFilterMixin {
}

There is a compile error in this scenario, you can see it at the end of the example.

in cases of conflicting declarations, you will have to redefine them in the interface. doing so changing the visibility to public though. do not think there is a way around this.

Do I understand right that an interface can also have the inherited protected members if it extends a class?

yes, the interface inherits all the members from the class. protected and private members can only be declared in a class though. so this is the only way an interface can get a protected or a private member.

@mhegazy Thank you very much for your help. We achieved the desired result.


Re-publish OpenAPI-Suite for OpenExchange

Hi @lscalese , after your review it would be great if you could re-publish the latest changes to OpenExchange.
I would actually welcome a brief call to walk you through the series of changes I worked on. It is possible there are still issues that need to be ironed out.
I'll send my contact details in an email.

Hi @isc-tstolker ,
This week, I should be able to find the time for this :)
I want to retrieve all related changes for the release note.

I published the version 1.1.0.
Thank you @isc-tstolker !


filepaths.xml: Error: Unsupported type 'external-path'

/Users/emremengukan/Documents/Projects/Mengukan/Emlak/android/app/src/main/res/values/filepaths.xml: Error: Unsupported type 'external-path'
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:mergeDebugResources'.

/Users/emremengukan/Documents/Projects/Mengukan/Emlak/android/app/src/main/res/values/filepaths.xml: Error: Unsupported type 'external-path'

android/app/src/main/res/xml/filepaths.xml
<?xml version="1.0" encoding="utf-8"?>
  <paths xmlns:android="http://schemas.android.com/apk/res/android">
      <external-path name="myexternalimages" path="Download/" />
  </paths>

<provider
       android:name="android.support.v4.content.FileProvider"
       android:authorities="${applicationId}.provider"
       android:grantUriPermissions="true"
       android:exported="false">
       <meta-data
           android:name="android.support.FILE_PROVIDER_PATHS"
           android:resource="@xml/filepaths" />
   </provider>

   </application>

seems like another unsuccessful linking. Please see this repo for android manual linking. https://github.com/yeomann/react-native-share-android-test

@yeomann  i followed same https://github.com/yeomann/react-native-share-android-test
but getting  error:
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:mergeDebugResources'.

Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details

 yeoman@Danishs-MacBook-Pro   ~/Development/Xeront/testing  git clone git@github.com:yeomann/react-native-share-android-test.git
Cloning into 'react-native-share-android-test'...
remote: Counting objects: 83, done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 83 (delta 3), reused 83 (delta 3), pack-reused 0
Receiving objects: 100% (83/83), 199.04 KiB | 293.00 KiB/s, done.
Resolving deltas: 100% (3/3), done.

 yeoman@Danishs-MacBook-Pro   ~/Development/Xeront/testing  ls                                         679  16:18:37 
ReactNativeReduxCasts-master    react-native-share-email-issue
react-native-share-android-test shareTest
 yeoman@Danishs-MacBook-Pro   ~/Development/Xeront/testing  cd react-native-share-android-test         680  16:18:38 
 yeoman@Danishs-MacBook-Pro   ~/Development/Xeront/testing/react-native-share-android-test     master  ls
App.js       android      app.json     index.js     ios          package.json yarn.lock

 yeoman@Danishs-MacBook-Pro   ~/Development/Xeront/testing/react-native-share-android-test     master  yarn
yarn install v1.7.0
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "react-native > metro-babel-register ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>warning "react-native > metro-babel-register > @babel/plugin-proposal-optional-chaining ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| ^7.0.0-0".
[4/4] 📃  Building fresh packages...
warning Your current version of Yarn is out of date. The latest version is "1.9.4", while you're on "1.7.0".
info To upgrade, run the following command:
$ brew upgrade yarn
✨  Done in 13.07s.

 yeoman@Danishs-MacBook-Pro   ~/Development/Xeront/testing/react-native-share-android-test     master  react-native run-android
Scanning folders for symlinks in /Users/yeoman/Development/Xeront/testing/react-native-share-android-test/node_modules (22ms)
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :react-native-share:compileDebugJavaWithJavac
Note: /Users/yeoman/Development/Xeront/testing/react-native-share-android-test/node_modules/react-native-share/android/src/main/java/cl/json/ShareFiles.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :app:transformNativeLibsWithStripDebugSymbolForDebug
Unable to strip library '/Users/yeoman/Development/Xeront/testing/react-native-share-android-test/android/app/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi/libicu_common.so' due to missing strip tool for ABI 'ARMEABI'. Packaging it as is.
Unable to strip library '/Users/yeoman/Development/Xeront/testing/react-native-share-android-test/android/app/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi/libimagepipeline.so' due to missing strip tool for ABI 'ARMEABI'. Packaging it as is.

[adb]: * daemon not running; starting now at tcp:5037
[adb]: * daemon started successfully

> Task :app:installDebug
Installing APK 'app-debug.apk' on 'SM-G610F - 6.0.1' for app:debug
Installed on 1 device.

BUILD SUCCESSFUL in 51s
48 actionable tasks: 48 executed
Running /Users/yeoman/Library/Android/sdk/platform-tools/adb -s 33001d2a91e75469 reverse tcp:8081 tcp:8081
Starting the app on 33001d2a91e75469 (/Users/yeoman/Library/Android/sdk/platform-tools/adb -s 33001d2a91e75469 shell am start -n com.sharetest/com.sharetest.MainActivity)...
Starting: Intent { cmp=com.sharetest/.MainActivity VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} }

I think you don't have android necessary tools installed. I added a small readme in repo please make sure you have SDK and build tools installed for api version 27


refactor menu config

Aha, Now I understand what you meant. I agree. This is the best way.

But for some reason its not working.

Maybe It is better to take a look at here. The thing you say is pretty standard.


Support for Handlers

Kamelet Binding`s offer a mechanism to specify an error policy to adopt in case an event produced by a source or consumed by a sink. Through the definition of an errorHandler you will be able to apply certain logic to the failing event, such as simply logging, ignoring the event or posting the event to a Sink.

https://camel.apache.org/camel-k/1.8.x/kamelets/kameletbindings-error-handler.html
We need to support handlers like this one.
Depends on https://github.com/KaotoIO/kaoto-backend/issues/61

https://camel.apache.org/components/3.16.x/eips/dead-letter-channel.html


Still cant get ad to work

Im developing an ionic app.
Ive tried and did everything on the net and in books relating to this admob plugin.
Please can you help me cheers.
var admobid = {};
// select the right Ad Id according to platform
if( /(android)/i.test(navigator.userAgent) ) {
admobid = { // for Android
banner: 'ca-app-pub-4881521875911156/1450315427',
interstitial: 'ca-app-pub-6869992474017983/1657046752'
};
} else if(/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {
admobid = { // for iOS
banner: 'ca-app-pub-6869992474017983/4806197152',
interstitial: 'ca-app-pub-6869992474017983/7563979554'
};
} else {
admobid = { // for Windows Phone
banner: 'ca-app-pub-6869992474017983/8878394753',
interstitial: 'ca-app-pub-6869992474017983/1355127956'
};
}
    if(window.AdMob) AdMob.createBanner( {
        adId:admobid.banner,
        position:AdMob.AD_POSITION.BOTTOM_CENTER,
        autoShow:true} );

Ive followed everything in the installation guide, still no ads show up.

Dont really know how to read the error messages since im using an android emulator instead of the actual android studio.

As you are testing, please tell AdMob to present a test Ad.
        if(window.AdMob) AdMob.createBanner( {
            adId:admobid.banner,
            position:AdMob.AD_POSITION.BOTTOM_CENTER,
            isTesting:true,
            autoShow:true} );

Solved problem thanks.
Just had to start all over again.
On Tue, Apr 5, 2016 at 9:12 PM, Raymond Xie<EMAIL_ADDRESS>wrote:

As you are testing, please tell AdMob to present a test Ad.
    if(window.AdMob) AdMob.createBanner( {
        adId:admobid.banner,
        position:AdMob.AD_POSITION.BOTTOM_CENTER,
        isTesting:true,
        autoShow:true} );

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/floatinghotpot/cordova-admob-pro/issues/352#issuecomment-205722292

Solved problem by starting all over again.


sst integration

https://serverless-stack.com/
https://github.com/nuxt/framework/discussions/4471

Isn't that a build tool?

@pi0 No, Serverless Stack is similar to the Serverless Framework, though with some advantages, including:

Live Lambda development
Sits on top of CDK, and there's an escape hatch for every SST construct

Surely. I put the nitro and serverless framework in the same category. Nitro dev has HMR and outputs (also as) a lambda format from the same code and provides similar constructs for Storage, etc. Doing the same thing but different approach. I don't see the point of combining two server frameworks like this together. But you can chain .output of nuxt to them.

The point of combining SST + Nuxt is so that they exist together (with Nuxt as a yarn workspace) and Nuxt can simply import functions from the back end code, instead of making API calls. In other words, it reduces latency by going from:
API Gateway -> Nuxt app (cold start) -> API Gateway -> Lambda func (cold start) -> business logic
to this:
API Gateway -> Nuxt app (cold start) -> business logic

Indeed but actually Nitro also exactly does that too! When you use fetch in a server environment, it directly calls them instead of making a new HTTP call. Both Nuxt SSR and API routes live in same build (lambda function)

I'm not familiar with Nitro at all, but will it let you define a several sets of CloudFormation stacks and deploy them? Along with Lambda funcs of course, and being able to test locally?

Example structure of SST + Nuxt:
.
├── cdk.context.json
├── nuxt
│   ├── app.vue
│   ├── lambda.js -> .output/server/index.mjs
│   ├── nuxt.config.ts
│   ├── package.json
│   ├── public
│   │   └── favicon.ico
│   ├── tsconfig.json
│   ├── tsconfig.node.json
│   └── yarn.lock
├── package.json
├── src (all business logic lives here, including Lambda funcs)
├── sst.json
├── stacks (SST stack definitions)
│   ├── WebAppStack.ts
│   └── index.ts

SST's Lambda funcs (and GraphQL APIs, etc) can import modules from src, as can Nuxt, so there's a single shared codebase.

Further context: my back end (built with SST) is a highly complex set of stacks including S3 buckets, SQS queues, Lambda functions, Step Functions, and more. By bundling our Nuxt app into that repo, it has direct access to all the same core code that the various AWS services do.

If you like to use a wrapper of SST to integrate your backend with Nuxt 3, it should be possible to adjust the .output format but I'm afraid the development experience would be painful and full of edge cases.
I think it might be worth investigating solutions to make your backend compatible with Nitro instead of wrapping it to another framework.
Normally with Nuxt 3 it should be like this:
├── nuxt
│   ├── app.vue
│   ├── lambda.js -> .output/server/index.mjs
│   ├── nuxt.config.ts
│   ├── package.json
│   ├── public
│   │   └── favicon.ico
│   ├── server
│   │   └── api/
│   │   └── routes/
│   │   └── plugins/
│   ├── tsconfig.json
│   ├── tsconfig.node.json
│   └── yarn.lock

Business logic sits in the Nuxt 3 app (as a full-stack framework inside nuxt/server/ directory and finally converted into a lambda function altogether with the app. Using the same toolchain (Nitropack)
Nitro is following a similar goal of Serverless and SST but with a different approach of being provider agnostic layer for Nuxt and supporting output formats beyond lambda.

But I think the latency savings will be worth the effort.

I can assure you Latency saving with nitro, if not more than other solutions, isn't less. We only need to find a solution to migrate your backend into compatible format :)

Well, the main cost savings is Nuxt having direct access to our database. But it would be sloppy to copy the necessary code from our back end to Nuxt and duplicate all of that. The front-end app also needs to access the same bit of code.
front end -> API Gateway/Lambda -> Operation A (for example, 1000 lines of code to fetch from DB, process data, etc)
Nuxt app -> Operation A (wouldn't make sense to copy all of this into the Nuxt repo)
And of course, the Nuxt app could just call the same API Gateway endpoint that the front end does, but again, I want to avoid calling API Gateway twice and having the user potentially experience two Lambda cold starts.
Any thoughts/ideas?

@pi0 from what I understand, I don't think Nitro and SST are in the same category

SST does many thing, but I look at it as an "IaC framework", ie it's functionally closer to something like Terraform / Pulumi, altough it's built on AWS CDK so it's AWS specific and allow you to do more aws-y stuff.

SST has a NextJS construct that handles SSR/SSG/API/ISR and image optimisation and also a [Vite one] (https://docs.serverless-stack.com/constructs/v1/ViteStaticSite) (for SPAs)

I'm not sure what would be the right approach to make these 2 work together, but perhaps it would involve a Nuxt construct on the SST side and a Nitro plugin ?
Nitro doesn't really replace SST, so I think there's value in making these 2 play well together.
Or is Nitro meant to support generic IaC as well through plugins ? For example I could see maybe a CDK plugin, or a Pulumi plugin, although I'm not familiar enough with the codebase to say if that's what you intend for Nitro.

Shouldnt the SST preset actually be a NuxtsiteStack in SST? It looks like this is not really a nuxt framework topic, but something that SST should support just like NextjsSite is supported by SST. Nuxt should just support AWS Lambda@edge functions which is currently an approved PR already so I expect it to be in quite soon.
So maybe create a PR on SST to have the stack setup in as described in the docs of this commit

Referencing these upstream issue and PR :
https://github.com/serverless-stack/sst/issues/2314
https://github.com/serverless-stack/sst/pull/2989

It'd be cool to support it directly in nitro but i think @chris-visser and @Hebilicious are correct in that I think the responsibility of integration lies on the sst project.

It'd be cool to support it directly in nitro but i think @chris-visser and @Hebilicious are correct in that I think the responsibility of integration lies on the sst project.

It'd be cool if the integration with sst considers their new project, ion, willing to ditch Cloudformation for open source Terraform providers. https://sst.dev/blog/moving-away-from-cdk.html


PullAsync: Failed to read the item from local store

I want to update LocalDB record to Azure and it has failed.
There are few steps in my testing plan.

First Sync LocalDB & AzureDB.
Update 'PhoneCallHistory' item record in LocalDB by UI
Manually update 'PhoneCallHistory' item record on Azure
Try to Sync data and force overwrite LocalDB record to Azure

In step 4 got the error as follows.

Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceLocalStoreException: Failed to read the item from local store.
System.InvalidOperationException: Table with name 'PhoneCallHistory' is not defined.

How could I catch those conflict items at MobileServicePushFailedException event?
p.s. using Microsoft.Azure.Mobile.Client version 3.0.3

The error would indicate that your local offline sync store is not set up properly.  What does your store initialization code look like?
For conflict resolution, see the docs at https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-dotnet-how-to-use-client-library#a-nameofflinesyncawork-with-offline-tables

Hi,
Here are my code snippet.
Each action will call  Initialize(); to make sure the DB has been initiated.
I got this issue when I made actions (delete, update or insert) more than twice.
`
public class AzureDataManager<T> : IAzureDataManager<T> where T : IAzureEntity
{
    public IMobileServiceSyncTable<T> SyncTable { get; set; }
    public MobileServiceClient client { get; set; } = null;
    private const string defaultQueryId = "alldata";
    private string queryId;
    private IMobileServiceTableQuery<T> customQuery;
    public Func<T, bool> customQueryLocal;

    public async Task Initialize()
    {
        if (client?.SyncContext?.IsInitialized ?? false)
            return;
        this.client = new MobileServiceClient(AppSettings.AzureMobileAPPUrl);

        var path = AppSettings.SQLiteDBName;

        path = Path.Combine(MobileServiceClient.DefaultDatabasePath, path);

        var store = new MobileServiceSQLiteStore(path);

        store.DefineTable<T>();

        await this.client.SyncContext.InitializeAsync(store, new MobileServiceSyncHandler());

        this.SyncTable = client.GetSyncTable<T>();
    }

    public async Task SaveTaskAsync(T item)
    {

        var saveableEntity = item as IAzureEntity;
        if (saveableEntity == null)
            throw new ArgumentException("item should be of type IAzureEntity");

        await Initialize();

        if (saveableEntity.Id == null)
        {
            await SyncTable.InsertAsync(item);
        }
        else
        {
            try
            {
                await SyncTable.UpdateAsync(item);
            }
            catch (MobileServicePreconditionFailedException<T> ex)
            {
                Debug.WriteLine(ex.ToString());
                //local item first
                item.Version = ex.Item.Version;
                await SaveTaskAsync(item);
            }
            catch (MobileServiceInvalidOperationException ex)
            {
                // ...push failed
                // ...do manual conflict resolution
                Debug.WriteLine(ex.ToString());
            }
        }
    }

    public async Task<ObservableCollection<T>> GetTasksAsync(bool syncItems = false)
    {
        try
        {
            await Initialize();

            if (syncItems)
            {
                await this.SyncAsync();
            }

            var items = await SyncTable.ToEnumerableAsync();

            if (customQueryLocal != null)
            {
                items = items.Where(customQueryLocal);
            }

            return new ObservableCollection<T>(items);
        }
        catch (MobileServiceInvalidOperationException msioe)
        {
            Debug.WriteLine(@"INVALID {0}", msioe.Message);
        }
        catch (Exception e)
        {
            Debug.WriteLine(@"ERROR {0}", e.Message);
        }
        return null;
    }

    public async Task DeleteTaskAsync(T item)
    {
        try
        {
            await Initialize();
            await SyncTable.DeleteAsync(item);
        }
        catch (MobileServiceInvalidOperationException msioe)
        {
            Debug.WriteLine(@"INVALID {0}", msioe.Message);
        }
        catch (Exception e)
        {
            Debug.WriteLine(@"ERROR {0}", e.Message);
        }
    }

    public virtual async Task SyncAsync()
    {
        ReadOnlyCollection<MobileServiceTableOperationError> syncErrors = null;
        try
        {
            if (!(await CrossConnectivity.Current.IsRemoteReachable(client.MobileAppUri.Host, 443)))
            {
                Debug.WriteLine($"Cannot connect to {client.MobileAppUri} right now - offline");
                return;
            }

            await Initialize();

            await this.client.SyncContext.PushAsync();

            if (string.IsNullOrEmpty(queryId) && customQuery == null)
                await SyncTable.PullAsync(defaultQueryId, SyncTable.CreateQuery());
            else
                await SyncTable.PullAsync(queryId, customQuery);

        }
        catch (MobileServicePushFailedException exc)
        {
            Debug.WriteLine(exc.Message);
            //For the offline case, the code would look like this:
            if (exc.PushResult != null)
            {
                syncErrors = exc.PushResult.Errors;
            }
        }
        catch (MobileServicePreconditionFailedException<T> exp)
        {
            Debug.WriteLine(exp.Message);

        }
        catch (MobileServiceConflictException cex)
        {
            Debug.WriteLine(cex.Message);
            throw;
        }
        catch (Exception ex)
        {
            Debug.WriteLine(ex.Message);
            throw;
        }

        await HandleSyncErrors(syncErrors);
    }

    public virtual async Task HandleSyncErrors(ReadOnlyCollection<MobileServiceTableOperationError> syncErrors)
    {
        // Simple error/conflict handling. A real application would handle the various errors like network conditions,
        // server conflicts and others via the IMobileServiceSyncHandler.
        if (syncErrors != null)
        {
            foreach (var error in syncErrors)
            {
                if (error.OperationKind == MobileServiceTableOperationKind.Update && error.Result != null)
                {
                    //Update failed, reverting to server's copy.
                    await error.CancelAndUpdateItemAsync(error.Result);
                }
                else
                {
                    // Discard local change.
                    await error.CancelAndDiscardItemAsync();
                }
            }
        }
    }

    public void SetQuery(string queryId, IMobileServiceTableQuery<T> query)
    {
        customQuery = query;
        this.queryId = queryId;
    }

`
Android Project
`
-- MainActivity.cs
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();
global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
`

Do you have an azuredatamanager per table?  If so, you are going to run into problems.  The MobileServiceClient is meant to be global, and you will bump into issues with multiple tables, as you are re-initializing the table each time.

Yes, I already know this issue.
I will try to fix my code and refer to "TaskList" sample code.
Thanks for your help.

Great - glad you found this issue.  I'll leave this open for another 2 weeks.  If you have more issues beyond that one, then please add on some detail.  If not, feel free to close, or I will in 2 weeks time.


Implement a music API

We have good support for playing sound effects at this time, which can technically be used to play music, however SDL2_mixer has a music channel that's far more optimal for this, so we should build an API around it.

Done.


n_tiles [1,1,1] produces black volume

Hi,
when I run cryoCARE on my local setup, it typically crashes with a OOM error and then tries n_tiles (1,1, 2) and runs through. The results look fine :-)
If I run the same cryoCARE setup on our cluster with RTX6000 GPUs it only produces a black volume. However, if you set n_tiles to (1,1,2) in the prediction config, it works well.
So, there seems to be bug when running it only on a single  tile. Any ideas @tibuch ?
Best,
Thorsten

Hi,
Thank you for reporting!
I think the issue originates from here. Instead of writing the prediction into the provided output it is returned :frowning:
Best,
Tim-Oliver

Ah, interesting! Thanks for the hint! I think it should be straight forward to fix it? I just need to have a look on format of the output volume. Or do you know off the top of your head how to fix it?

Unfortunately not. Maybe this works? But I would have to dig a bit to understand again what I did there :sweat_smile:

Alright, analysed it a bit:
output shape is: (104, 232, 232, 1)
pred shape is: (104, 232, 232, 1)
I will try a fix ^^

The fix works for me. If you are find with it, I would merge it.

Looks good to me, please go ahead.

Thanks for checking! I merged it. I close this issue.


Consider using lodash-es modules

Any interest in migrating to lodash-es? Could be nice from a Webpack2 / tree-shaking perspective (dependent on statically analysable imports)
Example here: https://github.com/reactjs/redux/pull/1372/files

As far as I understand, this would help reduce the bundle size a bit. Is there any other impact that I'm missing?

Better support in IDEs that perform inline static analysis (Atom + Tern.js, IDEA-based, etc.) is another up-side. Not aware of any negative impacts.

Good idea. But I don’t like this Lodash plugin, I think just importing modules as lodash-es/func is enough.

@oliverturner Do you want to make a PR for that?

Happ to :)
Sent from my iPhone

On 16 Feb 2016, at 20:03, Artem Sapegin<EMAIL_ADDRESS>wrote:
@oliverturner Do you want to make a PR for that?
—
Reply to this email directly or view it on GitHub.

@oliverturner Ping ;-) Do we still want it?

@oliverturner Feel free to reopen or send a pull request ;-|

Hey @sapegin really sorry for the delay... been swamped for ages :(
Closing for now: will reopen as soon as time permits


Make GraphQL and REST endpoints configurable by env vars

Fixes: https://github.com/Granola-Team/mina-block-explorer/issues/597
To change the GraphQL and REST URLs export the following variables
export GRAPHQL_URL=http://localhost:8080/graphql
export REST_URL=http://localhost:8080

nix develop --command just dev

Nice work


Update to version 0.11.0

The bot probably didn't trigger because the repo moved.
All patches can be dropped.
Closes gh-10

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

One new test error, need to look into that:
______ ERROR at setup of test_pep518[sdist_to_wheel-purelib-and-platlib] _______

tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7ff6fde5f350>, _basetemp=PosixPath('/tmp/pytest-of-conda/pytest-0')))

    @pytest.fixture(scope='session')
    def pep518_wheelhouse(tmpdir_factory):
        wheelhouse = tmpdir_factory.mktemp('wheelhouse')
        meson_python = str(package_dir.parent.parent)
        # Populate wheelhouse with wheel for the following packages and
        # their dependencies.  Wheels are downloaded from PyPI or built
        # from the source distribution as needed.  Sources or wheels in
        # the pip cache are used when available.
        packages = [
            meson_python,
        ]
>       subprocess.run([sys.executable, '-m', 'pip', 'wheel', '--wheel-dir', str(wheelhouse), *packages], check=True)

...

E               subprocess.CalledProcessError: Command '['$PREFIX/bin/python3.11', '-m', 'pip', 'wheel', '--wheel-dir', '/tmp/pytest-of-conda/pytest-0/wheelhouse0', '$SRC_DIR']' returned non-zero exit status 1.

...

=========================== short test summary info ============================
ERROR tests/test_pep518.py::test_pep518[sdist_to_wheel-purelib-and-platlib] - subprocess.CalledProcessError: Command '['$PREFIX/bin/python3.11', '-m', 'pip', 'wheel', '--wheel-dir', '/tmp/pytest-of-conda/pytest-0/wheelhouse0', '$SRC_DIR']' returned non-zero exit status 1.
ERROR tests/test_pep518.py::test_pep518[wheel_directly-purelib-and-platlib] - subprocess.CalledProcessError: Command '['$PREFIX/bin/python3.11', '-m', 'pip', 'wheel', '--wheel-dir', '/tmp/pytest-of-conda/pytest-0/wheelhouse0', '$SRC_DIR']' returned non-zero exit status 1.
=================== 59 passed, 2 skipped, 2 errors in 30.17s ===================

I predicted this in https://github.com/mesonbuild/meson-python/pull/214#discussion_r1028042027 and the solution would have been to add -m "not isolated" to this recipe - but I was assured that "conda was already running in our CI" and this won't break, and told to "not add undiscoverable pytest magic". :shrug:
Technically, this should be skipped - isolated builds are not supposed to be supported on conda, isolated builds are designed for a PyPI-only environment.

I predicted this in mesonbuild/meson-python#214 (comment) and the solution would have been to add -m "not isolated" to this recipe - but I was assured that "conda was already running in our CI" and this won't break, and told to "not add undiscoverable pytest magic".

Good point, it will probably come up from other packaging ecosystems sooner or later. Let's raise an issue upstream and patch the sdist accordingly here.


2.34.0 : T265 pipe.start() stuck

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
T265

Firmware Version
2.34.0

Operating System & Version
Windows 10

Platform
PC

SDK Version
2.34.0

Language
C++

Segment
AR

Issue Description
Our project uses 2 cameras, D435I and T265, and it worked well on 2.31. Because we want to improve our project's accuracy, we upgraded SDK version to 2.34, refer to its release note, that improves IMU. However it doesn't work after upgrade SDK.
Below is the reduced code that reproduces the issue.
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015-2017 Intel Corporation. All Rights Reserved.

#include <librealsense2/rs.hpp> // Include RealSense Cross Platform API
#include <iostream>

int main(int argc, char * argv[]) try
{
	rs2::context                ctx;            // Create librealsense context for managing devices
	std::vector<rs2::pipeline>  pipelines;

	std::cout << "Starting device" << std::endl;
	// Start a streaming pipe per each connected device

	for (auto&& dev : ctx.query_devices())
	{
		std::cout << dev.get_info(RS2_CAMERA_INFO_NAME) << std::endl;
		std::cout << dev.get_info(RS2_CAMERA_INFO_FIRMWARE_VERSION) << std::endl;
		rs2::pipeline pipe(ctx);
		rs2::config cfg;
		std::cout << "enable device" << std::endl;
		cfg.enable_device(dev.get_info(RS2_CAMERA_INFO_SERIAL_NUMBER));
		std::cout << "start pipe" << std::endl;
		pipe.start(cfg);
		pipelines.emplace_back(pipe);
		std::cout << "Done " << dev.get_info(RS2_CAMERA_INFO_NAME) << std::endl;
		std::cout << "------------------------------" << std::endl;
	}

	std::cout << "Device started" << std::endl;

	return EXIT_SUCCESS;
}
catch (const rs2::error & e)
{
	std::cout << "RealSense error calling " << e.get_failed_function() << "(" << e.get_failed_args() << "):\n    " << e.what() << std::endl;
	return EXIT_FAILURE;
}
catch (const std::exception & e)
{
	std::cout << e.what() << std::endl;
	return EXIT_FAILURE;
}

and here is the output.
Starting device
Intel RealSense D435I
<IP_ADDRESS>
enable device
start pipe
Done Intel RealSense D435I
------------------------------
Intel RealSense T265
<IP_ADDRESS>6
enable device
start pipe

Process stucks after print start pipe, and terminated.

I confirm the same issue on 2.33.1.
Generally, pipeline::start(config) hangs if specific device is enabled in rs2::config:
rs2::config config; config.enable_device(deviceSerialNumber); config.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF); const auto profile = m_pipeline.start(config);
While this works just fine:
 rs2::config config; config.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF); const auto profile = m_pipeline.start(config);
Worth to notice that in both cases
profile.get_device().get_info(RS2_CAMERA_INFO_SERIAL_NUMBER) == deviceSerialNumber

Hi @piotr-tanski, thanks for your advice and code snippet. I fixed my code :
for (auto&& dev : ctx.query_devices())
{
	rs2::pipeline pipe(ctx);
	rs2::config cfg;
	cfg.enable_all_streams();
	pipe.start(cfg);
	pipelines.emplace_back(pipe);
}

and it works fine.
However, the issue still remains, since the code that doesn't work is from the example.

I struggle with the same problem on T265 only with 2.33.1. When I communicate with the device, e.g. to read or set sensor options as it is done in the rs-sensor-control example and then try to start the pipe for getting sensor data, pipe.start always blocks. When I jump over communication with the device the same code runs.
This is very annoying. Is there a workaround for this? Obviously it seems to run in the realsense viewer somehow.

Hi @pjessesco,
When you say it freezes, what is the behaviour? Does it cause the camera to stop working until you do a power cycle?
I ask as I'm having a similar issue with a D415 that throws errors on a pipeline start.

Having the same issue while connecting T265 and D435i together time if I do:
rs2::pipeline pipe(_context); rs2::config cfg; cfg.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF);        pipe.start(cfg);
then it hangs at pipe.start, but if I do:
rs2::pipeline pipe(_context); rs2::config cfg; cfg.enable_all_streams();        pipe.start(cfg);
it hangs at  pipe.wait_for_frames
realsenseSDK 2.24.0 , sample rs-tracking-and-depth is not working as well having the same issue

I was somehow successful by using dev.hardware_reset(); after configuring the device options and before starting the pipe. Doing so the pipe works, but i am not quite sure, if the settings are still all there. In a first quick check it seemed for me that they are still there.

I have the same issue with SDK 2.34.0. I run the following code:
            std::vector<rs2::pipeline *> pipelines;             rs2::pipeline *pipe = new rs2::pipeline(ctx);             rs2::config cfg;             std::string sn1("948422110659"); // also tried<PHONE_NUMBER>110659             cfg.enable_device(sn1);             cfg.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF);             std::cout << "starting pipeline" << std::endl;             pipe->start(cfg);             std::cout << "pipeline started" << std::endl;             pipelines.emplace_back(pipe);
pipe->start(cfg) gets stuck and after about 15 seconds it throws an exception with the following message:
RealSense error calling rs2_pipeline_start_with_config(pipe:0x7edd28, config:0x814908):     No device connected
I noticed if I do not call cfg.enable_device(sn1); it will work fine, but I want to get data from two T265 cameras at the same time, therefore I need two pipelines with one camera enabled in each.
I tried this example:
[https://github.com/IntelRealSense/librealsense/tree/master/examples/multicam] (https://github.com/IntelRealSense/librealsense/tree/master/examples/multicam)
I had the same error. Is there any known way or preferably example code to use two 265 cameras simultaneously?

I have the same issue with SDK 2.34.0. I run the following code:
 std::vector<rs2::pipeline *> pipelines;
 rs2::pipeline *pipe = new rs2::pipeline(ctx);
 rs2::config cfg;
 std::string sn1("948422110659"); // also tried<PHONE_NUMBER>110659
 cfg.enable_device(sn1);
 cfg.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF);
 std::cout << "starting pipeline" << std::endl;
 pipe->start(cfg);
 std::cout << "pipeline started" << std::endl;
 pipelines.emplace_back(pipe);

pipe->start(cfg) gets stuck and after about 15 seconds it throws an exception with the following message:
RealSense error calling rs2_pipeline_start_with_config(pipe:0x7edd28, config:0x814908):
    No device connected

I noticed if I do not call cfg.enable_device(sn1); it will work fine, but I want to get data from two T265 cameras at the same time, therefore I need two pipelines with one camera enabled in each.
I tried this example:
https://github.com/IntelRealSense/librealsense/tree/master/examples/multicam
I had the same error. Is there any known way or preferably example code to use two 265 cameras simultaneously?

For me, as temporary solution, it helped to roll back to 2.29.0 version everything works just fine using it.

The error persist in 2.34.1

I have the same issue with SDK 2.34.0. I run the following code:
 std::vector<rs2::pipeline *> pipelines;
 rs2::pipeline *pipe = new rs2::pipeline(ctx);
 rs2::config cfg;
 std::string sn1("948422110659"); // also tried<PHONE_NUMBER>110659
 cfg.enable_device(sn1);
 cfg.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF);
 std::cout << "starting pipeline" << std::endl;
 pipe->start(cfg);
 std::cout << "pipeline started" << std::endl;
 pipelines.emplace_back(pipe);

pipe->start(cfg) gets stuck and after about 15 seconds it throws an exception with the following message:
RealSense error calling rs2_pipeline_start_with_config(pipe:0x7edd28, config:0x814908):
    No device connected

I noticed if I do not call cfg.enable_device(sn1); it will work fine, but I want to get data from two T265 cameras at the same time, therefore I need two pipelines with one camera enabled in each.
I tried this example:
https://github.com/IntelRealSense/librealsense/tree/master/examples/multicam
I had the same error. Is there any known way or preferably example code to use two 265 cameras simultaneously?

For me, as temporary solution, it helped to roll back to 2.29.0 version everything works just fine using it.

Thanks, rolling back to SDK 2.29.0 worked for me as well.

FYI : multicam example is fixed, so closing this issue.


Sonarr/Radarr/etc  LVM drive mounting error

Which addon?
Sonarr/Radarr/etc

Addon name : *adarr
Addon version : n/a

Describe the bug
Attempting to mount localdisk that is LVM leads to the following error
mount: /mnt/sdb3: unknown filesystem type 'LVM2_member'.
[12:07:28] FATAL: Unable to mount local drives! Please check the name

To Reproduce
Attempt to mount a local disk that is created using LVM. The error will occur.

Full addon log
s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-aaa_dockerfile_backup.sh: executing...
[cont-init.d] 00-aaa_dockerfile_backup.sh: exited 0.
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
 Add-on: Sonarr NAS
 Can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them
-----------------------------------------------------------
 Add-on version: <IP_ADDRESS>7
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 11 (bullseye)  (amd64 / qemux86-64)
 Home Assistant Core: 2022.5.5
 Home Assistant Supervisor: 2022.05.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 01-migrations: executing...
[migrations] started
[migrations] no migrations found
[cont-init.d] 01-migrations: exited 0.
[cont-init.d] 02-tamper-check: executing...
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing...
-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/
Brought to you by linuxserver.io
-------------------------------------
To support the app dev(s) visit:
Sonarr: https://sonarr.tv/donate
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid:    0
User gid:    0
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-folders.sh: executing...
[cont-init.d] 20-folders.sh: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 92-local_mounts.sh: executing...
Local Disks mounting...
mount: /mnt/sdb3: unknown filesystem type 'LVM2_member'.
[12:07:28] FATAL: Unable to mount local drives! Please check the name.
[cont-init.d] 92-local_mounts.sh: exited 0.
[cont-init.d] 92-smb_mounts.sh: executing...
Mounting smb share(s)...
[12:07:28] FATAL: The structure of your "networkdisks" option : "<//SERVER/SHARE>" doesn't seem correct, please use a structure like //<IP_ADDRESS>/sharedfolder,//<IP_ADDRESS>/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future.
[cont-init.d] 92-smb_mounts.sh: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[Info] Bootstrap: Starting Sonarr - /app/sonarr/bin/Sonarr.exe - Version <IP_ADDRESS>7
[Info] AppFolderInfo: Data directory is being overridden to [/config/addons_config/sonarr]
[Info] Router: Application mode: Interactive
[Info] MigrationLogger: *** Checking database for required migrations data source=/config/addons_config/sonarr/sonarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] MigrationLogger: *** Checking database for required migrations data source=/config/addons_config/sonarr/logs.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3 ***
[Info] OwinHostController: Listening on the following URLs:
[Info] OwinHostController:   http://*:8989/
[Info] SonarrBootstrapper: Starting Web Server

Full addon config
PGID: 0
PUID: 0
localdisks: sdb3

System
Home Assistant Core 2022.5.5
Home Assistant Supervisor 2022.05.3
Kernel version 5.10.0-14-amd64
Agent version 1.2.2
Path to configuration.yaml: /config

[Developed by a bunch of awesome people.](https://www.home-assistant.io/developers/credits/)

Published under the Apache 2.0 license
Source: [server](https://github.com/home-assistant/core) — [frontend-ui](https://github.com/home-assistant/frontend)

Built using [Python 3](https://www.python.org/), [Lit](https://lit.dev/), Icons by [Google](https://fonts.google.com/icons?selected=Material+Icons) and [Material Design Icons](https://materialdesignicons.com/).

Frontend version: 20220504.1 - latest

I am attempting to mount the local filesystem to access a remote NFS mount. If there is another way to mount an NFS, please let me know. Thank you.

Hi, the localdisk feature only supports fat32, ext3 and ext4. Other formats are not universally supported on the différents distribs and can't be added.
For external disks, only smb is supported. Apart from exposing the nfs with smb, I don't see how to do it...

Mounting could in theory work as it simply executes a mount command, but it seems you need to use unique id and not the partition name https://askubuntu.com/questions/766048/mount-unknown-filesystem-type-lvm2-member

Mounting could in theory work as it simply executes a mount command, but it seems you need to use unique id and not the partition name https://askubuntu.com/questions/766048/mount-unknown-filesystem-type-lvm2-member

Oh interesting. I'll investigate. Thank you for the information.


[PowerToys Run] can't find running applications

Microsoft PowerToys version
0.64.1
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
can't find running applicaitons

TIM
zerotier

✔ Expected Behavior
I can get  applications like TIM back to the current window.
❌ Actual Behavior
I could only create new process for TIM or zeriter-one.
Other Software
No response

Is this issue still relevant in v0.74.1? /needinfo

Sorry for the delayed response.
Situation:
The issue still persists with TIM and zerotier.
To provide you with more information, I have written a Python script to collect the running processes as follows:
import psutil
import re
processes = psutil.process_iter()
pattern = re.compile(r'zerotier\w*')
process_info = ""

for process in processes:
    if pattern.match(process.name()):
        process_info += f"Process ID: {process.pid}, Process Name: {process.name()}\n"

with open("running_processes.txt", "w") as file:
    file.write(process_info)

print("Process collection complete.")

Steps:

Get the list of running processes:

 Process ID: 5996, Process Name: zerotier-one_x64.exe
 Process ID: 12328, Process Name: zerotier_desktop_ui.exe

Use PowerToysRun to check if this solution works.

After that, run the script to obtain the list of all processes matching the pattern zerotier-*.exe:

   Process ID: 5996, Process Name: zerotier-one_x64.exe
   Process ID: 7328, Process Name: zerotier_desktop_ui.exe
   Process ID: 12328, Process Name: zerotier_desktop_ui.exe
   Process ID: 12688, Process Name: zerotier_desktop_ui.exe
   Process ID: 13124, Process Name: zerotier_desktop_ui.exe
   Process ID: 17244, Process Name: zerotier_desktop_ui.exe

Summary:
The issue still persists in PowerToysRun 0.74.1. I suggest adding a feature in which a running process list with higher priority is displayed when searching for a keyword.

Once again, I apologize for the delayed response. I hope this information is helpful.

version:  v 0.76.2
Hi, new findings, when I minimize zerotier, I can't find it. But If I run this application in a different window_4(for example), I can use PowerToys Run to find it.
My question is why I can't find  minimize applications. Hope I can get your help.
Thanks .


Starting mainnet server on testnet bridge results in unfriendly error message.

Release
Operating System
Cause

next
Linux
Code  v Configuration v Environment v Human v Unknown

Context
Starting mainnet server on testnet bridge (or vice-versa) results in unfriendly error message.
Steps to Reproduce

cardano-http-bridge start --port 8080 --template mainnet
cardano-wallet serve --network testnet

Expected behavior
More user friendly error message could be presented, e.g.:
Corresponding http-bridge appears to be running on "mainnet" network
while cardano-wallet server was started on "testnet".
Please start server on the same network as http-bridge.

Actual behavior
[iohk.#messagecounters.switchboard:Warning:ThreadId 10] [2019-06-17 10:55:38.61 UTC] time_interval_(s) = 0
cardano-wallet: ErrUnexpectedNetworkFailure (Link {_segments = ["testnet","tip"], _queryParams = []}) (FailureResponse (Response {responseStatusCode = Status {statusCode = 400, statusMessage = "Bad Request"}, responseHeaders = fromList [("Content-Length","20"),("Content-Type","text/plain"),("Date","Mon, 17 Jun 2019 10:55:38 GMT")], responseHttpVersion = HTTP/1.1, responseBody = "Invalid network name"}))

Resolution Plan

Add a new error constructor to ErrNetworkUnreachable → ErrInvalidNetwork.
Handle "400 Bad Request" - "Invalid network name" when making requests to node backend.
Format error message for ErrInvalidNetwork. It will not be able to say what network the http-bridge appears to be running on.

PR

Number
Base

#538
master

QA

There is an integration test lib/http-bridge/test/integration/Cardano/Wallet/HttpBridge/NetworkSpec.hs.

lgtm :+1:
I've added additional integration test in #546.


bug: Linked Website 404's

Please provide the environment you discovered this bug in.
The repo itself
Which area/package is the issue in?
docs
Description
This URL, posted in the repo main area: SaulMoro.github.io/ngrx-rtk-query/
Appears to 404 when clicked.
Please provide the exception or error you saw
No response
Other information
No response
I would be willing to submit a PR to fix this issue

[ ] Yes
[ ] No

Sorry for the delay in responding. I am in the process of migrating to the new monorepo format and creating new documentation; the previous documentation was an autogenerated version of the README.
Is there something specific I can help you with?


new flask test

{"response": [{"details": "Change Summary\n\nHigh-Level Description:\n\nThis code update introduces several enhancements and bug fixes to improve the overall functionality and user experience of the application.\n\nKey Changes:\n\n* New Feature: Enhanced Search Functionality (+10 lines)\n    * Added a new search bar to the application, allowing users to quickly and easily search for specific content.\n    * Implemented a more efficient search algorithm to improve search performance.\n* Bug Fix: Resolved Data Validation Issue (-5 lines)\n    * Fixed a bug where invalid data was being accepted by the application.\n    * Implemented additional data validation checks to ensure data integrity.\n* Performance Optimization: Improved Page Load Speed (+15 lines)\n    * Optimized the codebase to reduce page load times.\n    * Implemented caching mechanisms to improve performance for frequently accessed data.\n* UI Enhancements: Updated User Interface (+20 lines)\n    * Refactored the user interface to improve usability and aesthetics.\n    * Added new icons and visual elements to enhance the user experience.\n\nPotential Impact:\n\n* The enhanced search functionality will significantly improve the user experience by making it easier to find specific content.\n* The bug fix will ensure data integrity and prevent invalid data from being processed.\n* The performance optimizations will result in faster page load times, improving the overall responsiveness of the application.\n* The UI enhancements will provide a more modern and user-friendly interface."}]}

{"response": [{"details": "\n$diff_file_content\n"}]}


hello friends i have some problems

I got some errors at runtime!-RuntimeError: Found dtype Long but expected Float. I suspect it is line 78 in run.py, loss.backward(), can you tell me why? Or an upload error?Thank you very much！

I would like to ask if this code can be used for image data   like  mnist, cifar data


Use GitHub Markdown Alert Extension on README

GitHub's Markdown flavor has an alert extension. It's basically a fancy render for notes, tips, warnings and other advices on Markdown.
It looks like this

Thank you for this, I had no idea!


Add XmlReport (JUnit)

Add an XML output format with --xml. This creates a JUnit xml formated output. This makes it easy to display the test result for CI.

Nice MR.
Any update about a merge?

@harlekeyn can you look at this, please?

Hi, any updates regarding the merge?

Hi @0xjjoyy would you like fix/resolve in the code the comment reviews done by Rafael? I can review/test and merge the PR ASAP if those comments are resolved in the code.


PP: Should we add a 'Check before you start'?

We should see in user research whether or not people read the text on the start page and work out whether we need to include a 'Check before you start' eligibility checker flow before making users Verify.

Closing this as it's not an issue yet


I've seen this problem a few times but with no real Solutions that have helped me

Expected Behavior
bot to run
Actual Behavior
(PokemonGo-Bot) Erics-MBP:PokemonGo-Bot ericfelber$ docker run --name=pokego-bot1 --rm -it -v $(pwd)/configs/config-account1.json:/usr/src/app/configs/config.json pokemongo-bot
2016-08-07 23:27:10,256 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-07 23:27:10,260 [       cli] [INFO] Error: No /configs/config.json or specified config
usage: pokecli.py [-h] [-cf CONFIG] -a AUTH_SERVICE [-u USERNAME]
[-ws WEBSOCKET.SERVER_URL]
[-wss WEBSOCKET.START_EMBEDDED_SERVER]
[-wsr WEBSOCKET.REMOTE_CONTROL] [-p PASSWORD] [-l LOCATION]
[-lc LOCATION_CACHE] [--forts.spin FORTS.SPIN] [-w WALK]
[-k GMAPKEY] [-e SHOW_EVENTS] [-d DEBUG] [-t TEST]
[-du DISTANCE_UNIT] [-ec EVOLVE_CAPTURED]
[-rt RECONNECTING_TIMEOUT] [-hr HEALTH_RECORD]
[-ac FORTS.AVOID_CIRCLES] [-mcs FORTS.MAX_CIRCLE_SIZE]
[--catch_randomize_reticle_factor CATCH_RANDOMIZE_RETICLE_FACTOR]
[--catch_randomize_spin_factor CATCH_RANDOMIZE_SPIN_FACTOR]
[--map_object_cache_time MAP_OBJECT_CACHE_TIME]
pokecli.py: error: argument -a/--auth_service is required
(PokemonGo-Bot) Erics-MBP:PokemonGo-Bot ericfelber$
(my configs file is named config.json and is in the config folder, I have entered all the presets, and I have also validated it with http://jsonlint.com/    I'm on a mac everyone else I saw with this same problem was also on a mac maybe there is a file directory problem i don't know, and I apologize if this is the wrong place for this issue I'm not really sure where to get help please let me know if theres a better place to post this question)
Steps to Reproduce
Other Information
OS: OS X El Captian
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
Python Version: (run 'python -V' and paste it here)

(PokemonGo-Bot) Erics-MBP:PokemonGo-Bot ericfelber$ docker run --name=pokego-bot1 --rm -it -v $(pwd)/configs/config-account1.json:/usr/src/app/configs/config.json pokemongo-bot

I don't know what this command do, but are you sure that it'll set the custom config through --config parameter? On Windows, I specify custom config this way:
python pokecli.py --config ./configs/config-1.json

Hi Eric,
I had the same issue..
Navigate to your PokemonGo-Bot/configs/ folder and rename your preferred config file to the name used in your docker command
(I.E. If using the following command:
docker run --name=pokego-bot1 --rm -it -v $(pwd)/configs/config-account1.json:/usr/src/app/configs/config.json pokemongo-bot
Then rename your config file to config-account1.json
Docker may have created a folder with that name, If so delete it and rename the config file.
Happy Botting,
SBJ

thank you so much Sam it works now
they should add that command to the wiki


Shopify API Integration - Gift Cards 🎁

Description
When new members join ColorStack, they go through an "activation" process where if they complete a set of required steps, they will be able to claim a swag pack. Unfortunately, SwagUp, our swag pack provider, does not support sending certain items in our swag pack internationally (including Puerto Rico).
Obviously, we still want to reward these members for completing their activation process. What we've historically done is issue them a $50 gift card to our merch store, which is about the same value as our swag pack. The issue is that the process for issuing this gift card has been a bit tedious.
We want to implement an integration with Shopify (which powers our merch store), so that issuing a gift card is extremely easy to do within our Admin Dashboard. Luckily, Shopify has a Gift Card API that should make this process easy.
Acceptance Criteria
This issue should do the following:

Implement the ability to create a gift card, using the Shopify API (ie: POST /gift_cards.json).

Note: I haven't dug into the API documentation too much yet, but we might have to create a Shopify "customer" first (ie: POST /customers.json) and use that customer ID in the gift card endpoint.
I would like to avoid introducing any new SDKs (ie: Shopify) to avoid potential bloating. Let's just use the native fetch API to build this integration.

In the Admin Dashboard -> Students page, add an option when clicking on the row's option to "Send Gift Card". This should open a modal which contains a form asking for the "Amount".
Upon submitting the form above, this should send the gift card to the member. This should also send an internal Slack notification.

Don't worry about testing this - just implement 90% and I'll jump in to help testing with a real Shopify API key.
Additional Context

Here is the dropdown that controls the options available for a row in the students table in the Admin Dashboard.

I would love to work on this!

Would love to work on this!

@sajjad-source All good. You could work on this if you really want to!

There's actually another very similar integration that we need to build with Goody, which is what we use to administer DoorDash gift cards after Fam Fridays.
So @Joyeleke you can work on this Shopify integration, and then @sajjad-source when I put up the Goody issue, you can work on that!

Hey @ramiAbdou been running into a couple problems while trying to work on this over the weekend. I can't test out the functionality of gift cards using admin api (unless I get a Plus Account which requires all kinds of business verification). Do you have any ideas?

From Support:

Ohh just read the description again! Looks like you want me to create the backbone and forget about testing for now right?

hi, i would love to help on this issue if help is still needed

@Joyeleke yeah don't worry about testing for now - just try to get as far as you can without testing and I'll jump in with you to drive it home!

@ramiAbdou Just wanted to say I paused on this for a while because I am on a little personal break. Should be able to work on this and hopefully have something by next week though!

I really appreciate the heads up! There's no rush on this ticket so no pressure at all!

Hey @Joyeleke, lmk if you're still working on this issue or if we can open this issue up for someone else!

Going to open up this issue!

A couple weeks ago, we learned that our swag pack provider, SwagUp, now supports shipping to Canada and Puerto Rico! That being said, the use case for sending Shopify gift cards is a lot less relevant given that we only generated them for members that were unable to claim swag packs. Closing this issue!


Feature Request: mercurial support

Mercurial support would make you almost equivalent to bitbucket

Thanks your feedback!
But I do not think Gogs will support in near future (I mean in the two to three years), and it loses main focus of development.

Please re consider.

There is already an issue for that #125


Glance Widget WIP

This is the first draft / MVP of a widget for SociaLite built with Glance.

Hey guys I've done some updates. I've collapsed the PR down to two commits. The first is the "base" to be cherry picked for the codelab starter and the second is the solution for the codelab

@ashnohe @yaraki @arriolac Friend ping, can you guys PTAL? This code is the solution to the codelab for glance and adds a widget to SociaLite.
There is going to be a design review this week and there may be some changes from that, but if possible I would like to try and get them in a follup PR.


Use devDependencies install for development deps

Thanks for the PR but this is done intentionally. We install everything as regular dependencies. See #6180 (comment) for more information.


Error at the endpoints for app store handling

Describe the bug
I have installed a DSC version 6.2.0 and follow the documentation (https://international-data-spaces-association.github.io/DataspaceConnector/CommunicationGuide/v6/IdsEcosystem/AppStore#step-2-create-app-store-entity)
But when I delete this app sotre ID and try to create another one with the same arguments it is giving an error message.
To Reproduce
Steps to reproduce the behavior:

Create the following App Store

POST /api/appstores
{
"title": "Example AppStore",
"description": "Some description",
"location": "https://binac.fit.fraunhofer.de/api/ids/data"
}

Response body:

2. Delete the App Store created

DELETE /api/appstores/{id}

Create again the App Store

POST /api/appstores
{
"title": "Example AppStore",
"description": "Some description",
"location": "https://binac.fit.fraunhofer.de/api/ids/data"
}

Expected behavior
It should be possible to create the App via the Swagger UI call of Step 3.

Looks to me like deleting an AppStore only sets a flag for deleted to true and does not remove the AppStore itself. At the same time, however, it is required to have the localtion unique in the database. So after deleting the old AppStore-entry still exists with deleted=true, and when trying to add a new AppStore-entry with the same location, it fails because of the unique location-requirement in the AppStore-table.
https://github.com/International-Data-Spaces-Association/DataspaceConnector/blob/8f685199b061326cdce9a531893488c85530c0b2/src/main/java/io/dataspaceconnector/model/appstore/AppStore.java#L41
https://github.com/International-Data-Spaces-Association/DataspaceConnector/blob/8f685199b061326cdce9a531893488c85530c0b2/src/main/java/io/dataspaceconnector/model/appstore/AppStore.java#L57

Is this the expected operation?
because if so, it is not possible to recreate an app store with that location once deleted.


Github social buttons in the footerbar

Is your feature request related to a problem? Please describe.
It would be nice if you could fork, star or watch this repo from to website.
Describe the solution you'd like
I think this might be possible with something like shields but I have to test to find out.
Describe alternatives you've considered
An U G L Y link.
Additional context
I want something like this:

Edit: It's now a reality

This was removed when converting to nuxt


Debugging guide and docs tweaks

[ ] New Debugging Guide webpage: /docs/guides/debugging-guide
[ ] Add link to the Debugging Guide in the /docs/guides sidebar menu
[ ] Change style of /docs main overview page black cards. Made the purple icons smaller and removed the subtitles. This should make the the content (headers) of those cards stand out more.
[ ] Replace third card (of /docs main overview page black cards) with a link to the new debugging guide. It formerly linked to a block post about getting started.

The new debugging guide references content that will be deployed with https://github.com/livepeer/livepeer-com/pull/157.

@angyangie can you please take another look at the copy. I left comments on your comments


Restful API

is it support multi-language functionality? Are you have any plan to provide this functionality? and also Rest full API as well.

Multi-language functionally will comes once we move to Laravel 5.4, but properly not before that.
Also there are already multiple issues about that, so I am changing the name for your issue to be only about the restfull API.
However a restfull API would be interesting.

What would be some use cases for an API with voyager?
Would it be just for the routes and controls used by voyager?

API can be useful to retrieve and save BREAD data. But, I'm not sure we need to add that to core functionality of Voyager because we will need to implement different Auth method such as OAuth2 using Laravel Passport or JWT. Another approach will be an extension package to support this API.

I agree. I think API functionality can be a "plugin" for voyager and should be viewed as it's own project.

@mimrank Api with Passport should not be much of a problem to do.
Could you provide a use case for the API?
Would you plan to use Voyager through api and perhaps code a client in Vue/React/Angular or something of the like?

Any plans/news on REST API?
It would be great to generate and administer a backend with Voyager, and then consume it with a mobile app via the REST API.
I have seen several admin packages, but haven't found one yet that has this feature.

You likely haven't seen that feature in an Admin package because it generally goes beyond the scope of an admin package.  An admin tool simply provides one means of accessing/editing data associated with your site.  Your site is another means of accessing/displaying this data.  An API may be a 3rd, but is not directly associated with the Admin view.

I'm closing this for now since nobody has been able to provide a valid use-case for this.  We may revisit the idea if a use-case manifests itself.

I search all the issues and I saw that there were cases asked about a REST Full API feature. I use to work with Laravel API + Angular or Ionic for websites and mobile apps. Most of the times, I have to build an admin as well to add/edit users and edit data from the models. This was so time consuming, that I had second thoughts about using Laravel. Is there anyone who has worked on a plugin to include JWT and API resources? Or has done it manually on Voyager and can share his code?

@ventouris, this issue has been closed for 5 months now.  If you have an issue, you should create your own instead of commenting on one that has been closed for so long.  Also, your comment is a question, not an issue, so it would be best asked in our Slack group or other means.  Github issues should be reserved for issues with the Voyager code, not questions about implementation.

It would be nice for Voyager to be RESTful to provide easier means of managing a mobile apps content which uses API

@karneaud, please read my previous comment.
Voyager does not need an API, since it interacts with the database. If your app needs an API for mobile purposes, then build one. It'll pull from the same database, so Voyager is still managing the data.  Voyager is an admin tool, not a CMS


container_internal: don't ignore error from cleanupNetwork()

Signed-off-by: Giuseppe Scrivano<EMAIL_ADDRESS>

LGTM once tests green

@rh-atomic-bot r+

I'll probably need to rebase on top of #1001 before tests are happy

Test failure are #1001 - retrigger the merge once that's in and it should be good

LGTM once merge and test happiness is complete.

Alright, #1001 is merged.
@rh-atomic-bot retry


AutoRotate direction argument

Let's add an argument to AutoRate that is the "direction" of the rotation.  This argument should be a set of constants on the class or an Enum. Though, I believe that a constant is simple enough and preferable in this case.
Abstracting this out from a 'sign' on the degrees to turn will help to reduce confusion on current and future programmers as well as observers of our code.
Also, please add documentation in the code that describes what is going on.
Example of what I'd expect to see as an end result would be:
// Rotate to the left 60 degrees.
AutoRotate leftCommand = new AutoRotate(60, AutoRotate.LEFT);

// Rotate to the right 60 degrees.
AutoRotate rightCommand = new AutoRotate(60, AutoRotate.RIGHT);

Fixed in 3d0108d


Form onFocus

Let me know if this feature is ok with you and I'll add unit tests.

Tests and types added.

I'm happy with the changes but just would like us to consider the name of the function before merging because I'd like to make sure that it is fully meaningful.

Btw. There is already onChange property of type OnFormChange on the form and it is triggered when the field is changed.

@blabno If you can change the name that would be good. Sorry for the slow response on this PR :(

@draperd rename applied


Update autorest client generator version

Description

Update autorest client generator version
Regenerating the rest client for v2023-04-01-preview based on latest client generator

Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


change config to have proper defaults

having upnp disabled by default wastes users time who dont want to, or are unable to (such as lang barriers) to read the wiki.
it also just makes the server faster for initial setup, which is good :D

UPNP is unsupported in a significant amount of networks. UPNP is also already enabled by default in in-game server creation screen, and disabled for dedicated servers specifically - if you're willing to run a dedicated server, you should be comfortable with opening required ports


assert num_timesteps == config.sample.num_steps AssertionError

Thank you for your excellent work!
I attempted to perform RLHF on anything-v4.5's human body defects based on the dataset and prompts you provided publicly. However, an error occurred during training, same to the title.
The training details conducted in runpod are provided below.
Additionally, I upload base.py and train.py to https://huggingface.co/datasets/sdtana/anything-v4.5_dpo.
As a non-specialist, I apologize for reaching out to you directly without undergoing extensive testing.
Could you provide advice on where I made a mistake?
I1202 14:25:55.659013<PHONE_NUMBER>63488 logging.py:60]
allow_tf32: true
logdir: logs
mixed_precision: fp16
num_checkpoint_limit: 10
num_epochs: 5
pretrained:
model: /workspace/anything-v4.5
revision: main
prompt_fn: anything_prompt
prompt_fn_kwargs: {}
resume_from: ''
reward_fn: jpeg_compressibility
run_name: anythingdpo_2023.12.02_14.25.53
sample:
batch_size: 2
eta: 1.0
guidance_scale: 5.0
num_batches_per_epoch: 100
num_steps: 20
save_interval: 100
save_freq: 1
seed: 42
train:
adam_beta1: 0.9
adam_beta2: 0.999
adam_epsilon: 1.0e-08
adam_weight_decay: 0.0001
adv_clip_max: 5
batch_size: 1
beta: 0.1
cfg: true
gradient_accumulation_steps: 1
json_path: /workspace/data/epoch1/json
learning_rate: 1.0e-05
max_grad_norm: 1.0
num_inner_epochs: 1
sample_path: /workspace/data/epoch1
save_interval: 50
timestep_fraction: 1.0
use_8bit_adam: false
use_lora: true
text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["id2label"] will be overriden.
I1202 14:26:06.847579<PHONE_NUMBER>63488 logging.py:60] ***** Running training *****
I1202 14:26:06.847816<PHONE_NUMBER>63488 logging.py:60]   Num Epochs = 5
I1202 14:26:06.847866<PHONE_NUMBER>63488 logging.py:60]   Sample batch size per device = 2
I1202 14:26:06.847907<PHONE_NUMBER>63488 logging.py:60]   Train batch size per device = 1
I1202 14:26:06.847945<PHONE_NUMBER>63488 logging.py:60]   Gradient Accumulation steps = 1
I1202 14:26:06.847987<PHONE_NUMBER>63488 logging.py:60]
I1202 14:26:06.848022<PHONE_NUMBER>63488 logging.py:60]   Total number of samples per epoch = 200
I1202 14:26:06.848079<PHONE_NUMBER>63488 logging.py:60]   Total train batch size (w. parallel, distributed & accumulation) = 1
I1202 14:26:06.848118<PHONE_NUMBER>63488 logging.py:60]   Number of gradient updates per inner epoch = 200
I1202 14:26:06.848156<PHONE_NUMBER>63488 logging.py:60]   Number of inner epochs = 1
I1202 15:19:19.564940<PHONE_NUMBER>63488 logging.py:60] Saving current state to logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_0
I1202 15:19:19.665072<PHONE_NUMBER>63488 logging.py:60] Optimizer state saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_0/optimizer.bin                                                                                | 48/200 [53:07<2:30:54, 59.57s/it]
I1202 15:19:19.670379<PHONE_NUMBER>63488 logging.py:60] Gradient scaler state saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_0/scaler.pt
I1202 15:19:19.682694<PHONE_NUMBER>63488 logging.py:60] Random states saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_0/random_states_0.pkl
I1202 16:18:57.735666<PHONE_NUMBER>63488 logging.py:60] Saving current state to logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_1
I1202 16:18:57.821295<PHONE_NUMBER>63488 logging.py:60] Optimizer state saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_1/optimizer.bin                                                                                | 99/200 [1:52:45<2:39:23, 94.68s/it]
I1202 16:18:57.827801<PHONE_NUMBER>63488 logging.py:60] Gradient scaler state saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_1/scaler.pt
I1202 16:18:57.833970<PHONE_NUMBER>63488 logging.py:60] Random states saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_1/random_states_0.pkl
I1202 17:20:06.462761<PHONE_NUMBER>63488 logging.py:60] Saving current state to logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_2
I1202 17:20:06.565670<PHONE_NUMBER>63488 logging.py:60] Optimizer state saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_2/optimizer.bin█████████████████████████████████████████████████████▏                                                                   | 148/200 [2:53:54<1:34:02, 108.51s/it]
I1202 17:20:06.572802<PHONE_NUMBER>63488 logging.py:60] Gradient scaler state saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_2/scaler.pt
I1202 17:20:06.578633<PHONE_NUMBER>63488 logging.py:60] Random states saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_2/random_states_0.pkl
I1202 18:30:18.542086<PHONE_NUMBER>63488 logging.py:60] Saving current state to logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_3
I1202 18:30:18.639742<PHONE_NUMBER>63488 logging.py:60] Optimizer state saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_3/optimizer.bin█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎  | 198/200 [4:04:06<01:59, 59.57s/it]
I1202 18:30:18.645961<PHONE_NUMBER>63488 logging.py:60] Gradient scaler state saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_3/scaler.pt
I1202 18:30:18.650440<PHONE_NUMBER>63488 logging.py:60] Random states saved in logs/anythingdpo_2023.12.02_14.25.53/checkpoints/checkpoint_3/random_states_0.pkl
Traceback (most recent call last):
File "/workspace/d3po/scripts/train.py", line 424, in
app.run(main)
File "/usr/local/lib/python3.10/dist-packages/absl/app.py", line 308, in run
_run_main(main, args)
File "/usr/local/lib/python3.10/dist-packages/absl/app.py", line 254, in _run_main
sys.exit(main(argv))
File "/workspace/d3po/scripts/train.py", line 266, in main
assert num_timesteps == config.sample.num_steps
AssertionError

Hello, we have reviewed the parameters, including config.sample.num_steps, and observed that all values in our experiments and dataset are set to 20. Could you please confirm if you made any additional changes to the code? Additionally, could you provide the version of the anything v4.5 model you are using? Thank you.

Thank you for your interest in our work, and we apologize for the delayed response. According to your description, it appears there was an issue with 'num_steps'. However, I did not encounter any problems when running with 'num_epoch=1'. I have now identified the root cause: there is a bug in train.py when training with more than one 'num_epochs'. This bug resulted in the overwriting of the 'sample', leading to errors. The problem has been addressed, and we have updated train.py. We hope this resolution addresses your problem : )

I apologize for the late response. The training went well. Thank you for your work. 😄


about MAF in vits

Hi, I want to ask why  p-vits or bert-p-vits cancel the monotonic align stage?  Thanks

Hi,
Because we prepare phoneme-frame alignment by Montreal Forced Aligner before training, we don't need monotonic alignment in training.
That said, it’s possible to use monotonic alignment during training, but it would require modifications to the implementation.

Hi,
Because we prepare phoneme-frame alignment by Montreal Forced Aligner before training, we don't need monotonic alignment in training. That said, it’s possible to use monotonic alignment during training, but it would require modifications to the implementation.

Thank you for your reply. Now I have an idea. If we only extract the pitch and calculate the loss, will there be an improvement in naturalness, such as interrogative tone?

@shanhaidexiamo hello,  p-vits or bert-p-vits, can share url？
I used the phoneme duration obtained from MFA to train the VITS model, but the convergence of KL_loss is particularly slow. Do you have any experience in this area？
THX!!!


I wrote a similar library

Hello I wrote a library very similar in intent to yours:
https://github.com/tacone/pipes (pipes/pipes on packagist)
I am contacting you because I thought you may have be interested in checking out a slightly different approach and/or (eventually) to unite efforts one day.
I hope to not have bothered you too much, feel free to close this issue when you prefer. Bye!

Hello Tacone,
Thank you for making me aware of your library.  I had not see it before.  It is very cool to see that someone else had the same idea.
I just took a look at it.  It is nicely documented and clean.  You are right, they are similar. It is also nice to see how someone else approached the same problem.
We have made a conscious effort to keep the number of methods in Sequence low while trying to expand the set of functions that can be used with Sequence.
I can see how useful sleep might be.  We would add sleep as a misc function, fnSleep($seconds) and use it in combination with ->tap, ->tap(fnSleep(5)).
I find it very cool that we had similar ideas.  Do you use Pipe a lot in your code?
Cheers,
Jason

I never used it until now. Now I am pushing it into a scraping software, because it encourages me to refrain to use side-effects. I used to write object oriented schedulers, but those pesky classes are terribly difficult to unit-test. While I yet have to write unit-tests for the sw I am working on, I am sure it will be much easier.
The reason I don't use it is, plainly said, that for the most part it does not allow you anything you couldn't do with a plain (and faster) foreach.
Despite that, I am starting to see interesting features I could implement:

a ->maxTime($seconds) to end the iteration when the time is over
allow to emit more than a value from the map($func) function. So that it starts to work like a real map reducer:

p($array)->map(function($pipe){
    foreach($pipe as $v) {
          foreach(explode(',', $v) as $token){
                yield $token;
          }
    }
});

in general, better integrating generators, would allow for a easy quick way to keep a limited state while iterating, and thus, for example, yielding a value based on what happened during the previous iterations
finallly, the biggest feature I miss is creating lazy (incomplete) pipes to achieve reusal:

$encrypt = p()->map('trim')->map('str_rot_13');

foreach ($encrypt($array1) as $v) {
//...
}
foreach ($encrypt($array2) as $v) {
//...
}
foreach ($encrypt($array3)->sleep(0.5) as $v) {
//...

Hello Tacone,
We use Sequence in our code to reduce side-effects.  Each step in the sequence should have a single purpose.  Our focus is more on maintainability and correctness than on speed.  PHP by nature is not fast.
As far as late binding (lazy pipes), we have taken a couple of approaches:

just wrap it in an anonymous function.
use FnSequence.  It is part of the Sequence library.

Cheers,
Jason