text:
RadSideDrawer integration

Anyone succeeded in integrating RadSideDrawer with nativescript-angular, (I’ve tried everything here in terms of general setup: https://github.com/tjvantoll/nativescript-template-drawer)… just doesn’t display anything.
component:
import {Component} from 'angular2/core';
import {registerElement} from 'nativescript-angular/element-registry';

registerElement('Drawer', () => require('nativescript-telerik-ui/sidedrawer'));

@Component({
  selector: 'app',
  templateUrl: './app.component.html'
})
export class AppComponent {}

app.component.html:
<Drawer:RadSideDrawer>
  <Drawer:RadSideDrawer.mainContent>
    <StackLayout>

    </StackLayout>
  </Drawer:RadSideDrawer.mainContent>
  <Drawer:RadSideDrawer.drawerContent>
    <StackLayout class="container">

    </StackLayout>
  </Drawer:RadSideDrawer.drawerContent>
</Drawer:RadSideDrawer>

No errors in console at all. App launches just fine. (no exceptions. nothing. normal log)
Displays absolutely nothing. Just a white screen app. Very puzzling.

I should mention I've also tried this just for kicks. Tried several things to no avail.
component:
import {Component} from 'angular2/core';
import {registerElement} from 'nativescript-angular/element-registry';

registerElement('RadSideDrawer', () => require('nativescript-telerik-ui/sidedrawer').RadSideDrawer);

@Component({
  selector: 'app',
  templateUrl: './app.component.html'
})
export class AppComponent {}

app.component.html:
<RadSideDrawer>
  <RadSideDrawer.mainContent>
    <StackLayout>

    </StackLayout>
  </RadSideDrawer.mainContent>
  <RadSideDrawer.drawerContent>
    <StackLayout class="container">

    </StackLayout>
  </RadSideDrawer.drawerContent>
</RadSideDrawer>

Same thing. Just white app. I thought maybe it needed some height/width so I tried adding height="100%" and width="100%" on several nodes but still nothing. Stumped.

I feel like I should have a play. It certainly needs the register element.
'<RadSideDrawer.mainContent>' ... would that need a directive ... maybe. Take a look at:
tab views

@matt4446 good thinking... I'll try that when I get the chance.

Using directives does fix it. I have a working implementation with this:
@Directive({
    selector: 'RadSideDrawer'
})
export class RadSideDrawerDirective {
    public drawer: RadSideDrawer;

    constructor(private element: ElementRef) {
        this.drawer = element.nativeElement;
    }
}

@Directive({
    selector: '[mainContent]'
})
export class RadSideDrawerMainDirective {

    constructor(
        private owner: RadSideDrawerDirective,
        private templateRef: TemplateRef,
        private viewContainer: ViewContainerRef
    ) {
    }

    ngOnInit() {

        const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.mainContent = realViews[0];
        }
    }
}

@Directive({
    selector: '[drawerContent]'
})
export class RadSideDrawerContentDirective {

    constructor(
        private owner: RadSideDrawerDirective,
        private templateRef: TemplateRef,
        private viewContainer: ViewContainerRef
    ) {
    }

    ngOnInit() {

        const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.drawerContent = realViews[0];
        }
    }
}

with a view like this:
<RadSideDrawer>
  <RadSideDrawer.mainContent *mainContent>
    <StackLayout class="container">

    </StackLayout>
  </RadSideDrawer.mainContent>
  <RadSideDrawer.drawerContent *drawerContent>
    <StackLayout class="container">

    </StackLayout>
  </RadSideDrawer.drawerContent>
</RadSideDrawer>

The * is very important.
I can clean this up and create a plugin? Or does the core team want to integrate this into nativescript-angular ?

In part this works... still have a little issue with drawerContent... but looks like this will work.

I created pretty much the same thing but it didnt work. I wonder what is significantly different.
Copy and paste code time. :+1:

Yeah maybe paste it here, lemme see what the difference is.

exactly the same now (including the template)
I added some logging and the significant parts are hit:
this.owner.drawer.mainContent = realViews[0];
this.owner.drawer.drawerContent = realViews[0];
I just end up with a big blank page. It is either the directives (maybe I've not assigned them to the components correctly) or it is page-router-outlet ... hmmm
Maybe I'll test it without the page-router-outlet tomorrow.
seeing as the code is reached it probably has nothing to do with the directives.
Sleep is needed now ;-)

Ok so the implementation is not quite right yet. Maybe @hdeshev or @vakrilov may know.
It looks like the layout containers like StackLayout are not included and ends up with just a Label.
You can see in this demo that the layout containers are not present:

This occurs with a view setup like this:
<RadSideDrawer id="drawer">
  <RadSideDrawer.mainContent *mainContent>
    <StackLayout class="container">

    </StackLayout>
  </RadSideDrawer.mainContent>
  <RadSideDrawer.drawerContent *drawerContent>
    <StackLayout class="drawer-content">

    </StackLayout>
  </RadSideDrawer.drawerContent>
</RadSideDrawer>

And using the directive setup like this:
import {ElementRef, Directive, Input, TemplateRef, ViewContainerRef} from "angular2/core";
import {TabView, TabViewItem} from "ui/tab-view";
import {RadSideDrawer} from 'nativescript-telerik-ui/sidedrawer/sidedrawer';

@Directive({
    selector: 'RadSideDrawer'
})
export class RadSideDrawerDirective {
    public drawer: RadSideDrawer;

    constructor(private element: ElementRef) {
        this.drawer = element.nativeElement;
    }
}

@Directive({
    selector: '[mainContent]'
})
export class RadSideDrawerMainDirective {

    constructor(
        private owner: RadSideDrawerDirective,
        private templateRef: TemplateRef,
        private viewContainer: ViewContainerRef
    ) {
    }

    ngOnInit() {

        const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.mainContent = realViews[0];
        }
    }
}

@Directive({
    selector: '[drawerContent]'
})
export class RadSideDrawerContentDirective {

    constructor(
        private owner: RadSideDrawerDirective,
        private templateRef: TemplateRef,
        private viewContainer: ViewContainerRef
    ) {
    }

    ngOnInit() {

        const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.drawerContent = realViews[0];
        }
    }
}

The problems occurs somewhere with this:
const viewRef = this.viewContainer.createEmbeddedView(this.templateRef);
        //Filter out text nodes, etc
        const realViews = viewRef.rootNodes.filter((node) =>
                            node.nodeName && node.nodeName !== '#text')

        if (realViews.length > 0) {
            this.owner.drawer.drawerContent = realViews[0];
        }

This looks very cool, but I think it would be better and more angular-friendly if we get rid of the RadSideDrawer.mainContent tags. I was thinking about possible ways to integrate components having multiple templates, and the best I came up with was something like:
<RadSideDrawer id="drawer">
  <template #main>
    <StackLayout class="container">

    </StackLayout>
  </template>
  <template #drawer>
    <StackLayout class="drawer-content">

    </StackLayout>
  </template>
</RadSideDrawer>

Of course, that would require that we create a component for the RadSideDrawer selector and manage templates there.
We are thinking of using the same approach for other components exposing multiple templates like the RadListView, for example.

@hdeshev I like your suggestion.
I'm trying to find a way forward on this to implement right away and curious if there's any specific implementation details I need to make your suggestion work?   Similar to directives approach above or if there's sample code you could point me to I could try?  Thank you.

I'd be willing to help create a separate module (maybe nativescript-telerik-ui-ng) which would contain all the telerik-ui components for angular consumption. Would need just a couple pointers and help with the first 1 (this one) or 2 to get me started.  That way it keeps these custom (3rd party lib) components out of nativescript-angular.

@NathanWalker, this will be done by the telerik-ui team. They will focus on this after their initial release at the end of March. If you want them earlier you are more than welcome to do so, but please be in sync with @ginev who is leading that team internally, so that we can later reuse your work :).

Sounds good @valentinstoychev thanks!

For anyone who stumbles on this thread from a google search make sure to check out the UI for {N} documentation at http://docs.telerik.com/devtools/nativescript-ui/Controls/Angular/SideDrawer/getting-started, as well as the samples in https://github.com/telerik/nativescript-ui-samples-angular/tree/release/sdkAngular/app/sidedrawer.

i added tns create my-app --ng & done tns plugin add nativescript-telerik-ui
this is my app.component.ts
`
import { Component, ViewChild, ChangeDetectorRef } from "@angular/core";
import { RadSideDrawerComponent, SideDrawerType } from "nativescript-telerik-ui/sidedrawer/angular";
@Component({
selector: "my-app",
templateUrl: "app.component.html"
})
export class AppComponent {
@ViewChild(RadSideDrawerComponent)
public drawerComponent: RadSideDrawerComponent;
private drawer: SideDrawerType;
public pages: Array;
constructor(
    private _changeDetectionRef: ChangeDetectorRef) {
    // List all pages here
    this.pages = [
        { name: "Home" },
        { name: "About" },
        { name: "Contact" }
    ];
}

ngOnInit() {
    this.drawer = this.drawerComponent.sideDrawer;
    this._changeDetectionRef.detectChanges();
}

public openDrawer() {
    console.log("drawer called...........................", JSON.stringify(this.drawer));
    this.drawer.toggleDrawerState();
}

}
`
app.component.html

but i am getting errors on load and clicking the side drawer icon :

JS:     at /data/data/org.nativescript.myapp/files/app/tns_modules/zone.js/dist/
zone-node.js:532:18
JS:     at ZoneDelegate.invokeTask (/data/data/org.nativescript.myapp/files/app/
tns_modules/zone.js/dist/zone-node.js:314:38)
JS:     at Object.NgZoneImpl.inner.inner.fork.onInvokeTask (/data/data/org.nativ
escript.myapp/files/app/tns_modules/@angular/core/src/zone/ng_zone_impl.js:44:41
)
JS:     at ZoneDelegate.invokeTask (/data/data/org.nativescript.myapp/files/app/
tns_modules/zone.js/dist/zone-node.js:313:43)
JS:     at Zone.runTask (/data/data/org.nativescript.myapp/files/app/tns_modules
/zone.js/dist/zone-node.js:214:48)
JS:     at drainMicroTaskQueue (/data/data/org.nativescript.myapp/files/app/tns_
modules/zone.js/dist/zone-node.js:432:36)
JS: Unhandled Promise rejection: Cannot read property 'sideDrawer' of undefined
; Zone: angular ; Task: Promise.then ; Value: TypeError: Cannot read property 's
ideDrawer' of undefined
JS: Error: Uncaught (in promise): TypeError: Cannot read property 'sideDrawer' o
f undefined
JS: EXCEPTION: TypeError: Cannot read property 'sideDrawer' of undefined
JS: STACKTRACE:
JS: TypeError: Cannot read property 'sideDrawer' of undefined
JS:     at AppComponent.ngOnInit (/data/data/org.nativescript.myapp/files/app/ap
p.component.js:15:43)
JS:     at DebugAppView.View_AppComponent_Host0.detectChangesInternal (AppCompo
nent.template.js:29:81)
JS:     at DebugAppView.AppView.detectChanges (/data/data/org.nativescript.myapp
/files/app/tns_modules/@angular/core/src/linker/view.js:243:14)
JS:     at DebugAppView.detectChanges (/data/data/org.nativescript.myapp/files/a
pp/tns_modules/@angular/core/src/linker/view.js:348:44)
JS:     at ViewRef.detectChanges (/data/data/org.nativescript.myapp/files/app/t
ns_modules/@angular/core/src/linker/view_ref.js:131:65)
JS:     at /data/data/org.nativescript.myapp/files/app/tns_modules/@angular/core
/src/application_ref.js:435:84
JS:     at Array.forEach (native)
JS:     at ApplicationRef_.tick (/data/data/org.nativescript.myapp/files/app/tns
modules/@angular/core/src/application_ref.js:435:38)
JS:     at ApplicationRef._loadComponent (/data/data/org.nativescript.myapp/fil
es/app/tns_modules/@angular/core/src/application_ref.js:406:14)
JS:     at /data/data/org.nativescript.myapp/files/app/tns_modules/@angular/core
/src/application_ref.js:393:19
JS: EXCEPTION: TypeError: Cannot read property 'sideDrawer' of undefined
JS: ns-renderer: ERROR BOOTSTRAPPING ANGULAR
JS: ns-renderer: Cannot read property 'sideDrawer' of undefined
JS:
JS: TypeError: Cannot read property 'sideDrawer' of undefined
JS:     at AppComponent.ngOnInit (/data/data/org.nativescript.myapp/files/app/ap
p.component.js:15:43)

Hi @sarvagayatri it looks like the error you are experiencing is caused by an bug in the zone.js which is part of the Angular 2 library. Here is the logged issue for reference. To resolve the issue simply change the "zone.js": "^0.6.21" in the devDependencies to "zone.js": "0.6.17".
We are working with the Angular team to resolve this breaking change caused by the zone.js package, in the mean while we are upgrading any project templates that use Angular 2.0.0 to not depend on the latest versions of zone.js.

I have done this command before the tns run android
npm install zone.js@0.6.12
Or else i got some "timers" exception

How can I implement expandable (Nested) side drawer in android and ios using RadSideDrawer ?

@srnaik What do you mean by "nested", in order to use the RadSideDrawer in {N} + Angular you can follow the short introduction article here.

@VladimirAmiorkov Thank you responding to my question, I have already referred to the article that you have posted and I could able to implement the side drawer with the help of that article. My question is that  I would like to add child elements inside every side-drawer item. Please refer to the below piece of code.

Here, how can I add "Primary nested Item -1" & "Primary nested Item -1" as child elements inside "Primary" ?
P.S. The piece of code that I have written is to give you an idea of Nested feature that I am trying to achieve, I hope it was helpful.

@VladimirAmiorkov Thank you responding to my question, I have already referred to the article that you have posted and I could able to implement the side drawer with the help of that article. My question is that  I would like to add child elements inside every side-drawer item. Please refer to the below piece of code.
**<StackLayout class="sideStackLayout">

</StackLayout>**

Here, how can I add "Primary nested Item -1" & "Primary nested Item -2" as child elements inside "Primary" ?
P.S. The piece of code that I have written is to give you an idea of Nested feature that I am trying to achieve, I hope it was helpful.

@VladimirAmiorkov This is what I would like to achieve in side-drawer using RadSideDrawer, but I am unable to  do so. Please suggest me the correct approach.

@srnaik You can accomplish what you want to do by using a container element instead of a label element, you can use a StackLayout for example, create the "Primary" label inside the StackLayout and then add the other two labels, if you want to make them look different you can create a style (CSS class) for the "Primary" label and then another style for the "nested" labels by applying a margin-right (as example).

Thanks @viniciodeltoro , that was helpful !

Hi @viniciodeltoro,
I have another question related to wrapping the long text in the Label field. I am trying to wrap a long text in the side-drawer, but it is getting truncated,  I tried using style = "word-wrap: break-word;width:125px" css property for label, but even then I am not able to wrap the text to the next line.
Please let me know your thoughts on wrapping the text in sidedrawer

Hi @srnaik. You have to use the 'textWrap' property in the label, I believe it doesn't work if you try to add it in your CSS class. Your label code will be something like this.

Thank @viniciodeltoro , That worked :-)

I'm also having the same issue as @sarvagayatri using  "zone.js": "~0.8.2", any way to resolve this?

@chrillewoodz Our NativeScript UI sdk examples are currently using the ^0.6.21 version of zonejs without any issues, you can check out all of the package.json dependencies here. Is there a particular reason for using the ~0.8.2 version over ^0.6.21 in your project?

@VladimirAmiorkov That's what the cli created. Seems odd that after 6 months the bug still remains in zonejs..

@chrillewoodz You can track the status of the zonejs issue here.  Could you share with me which version of NativeScript (tns --version) are you using?

@VladimirAmiorkov I'm using 2.5.3.

Im getting this error
JS:     at PageRouterOutlet.activateOnGoForward (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/nativescript-angular/router/page-router-outlet.js:150:57) JS:     at PageRouterOutlet.activateWith (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/nativescript-angular/router/page-router-outlet.js:139:18) JS:     at ActivateRoutes.placeComponentIntoOutlet (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/@angular/router/bundles/router.umd.js:4584:16) JS:     at ActivateRoutes.activateRoutes (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/@angular/router/bundles/router.umd.js:4565:26) JS:     at file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/@angular/router/bundles/router.umd.js:4501:58 JS:     at Array.forEach (native) JS:     at ActivateRoutes.activateChildRoutes (file:///data/data/org.nativescript.MyAppTest/files/app/tns_modules/@angular/router/bundles/router.umd.js:4501:29)
any idea? thanks

I have tested this and it works fine with this in package.json:
"@angular/animations": "~4.1.0",
"@angular/common": "~4.1.0",
"@angular/compiler": "~4.1.0",
"@angular/core": "~4.1.0",
"@angular/forms": "~4.1.0",
"@angular/http": "~4.1.0",
"@angular/platform-browser": "~4.1.0",
"@angular/router": "~4.1.0",
"nativescript-angular": "~3.0.0",
"nativescript-ng2-fonticon": "^1.3.4",
"nativescript-telerik-ui": "^2.0.1",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.3.0",
"tns-core-modules": "~3.0.0",
"zone.js": "~0.8.2",
"email-validator": "^1.0.7",
"nativescript-iqkeyboardmanager": "1.0.1",
"nativescript-social-share": "~1.3.2",
"nativescript-unit-test-runner": "^0.3.3"
But when I set this versions...
"@angular/animations": "~4.2.3",
"@angular/common": "~4.2.3",
"@angular/compiler": "~4.2.3",
"@angular/core": "~4.2.3",
"@angular/forms": "~4.2.3",
"@angular/http": "~4.2.3",
"@angular/platform-browser": "~4.2.3",
"@angular/router": "~4.2.3",
"nativescript-angular": "next",
"nativescript-ng2-fonticon": "^1.3.4",
"nativescript-telerik-ui": "^2.0.1",
"nativescript-theme-core": "^1.0.4",
"reflect-metadata": "^0.1.8",
"rxjs": "^5.4.0",
"tns-core-modules": "next",
"zone.js": "^0.8.11",
"email-validator": "^1.0.7",
"nativescript-iqkeyboardmanager": "1.0.1",
"nativescript-social-share": "~1.3.2",
"nativescript-unit-test-runner": "^0.3.3"
It doesn't show the drawer.
Thanks

authors: 98falcon NathanWalker VladimirAmiorkov chrillewoodz ecolasurdo hdeshev matt4446 sarvagayatri srnaik tjvantoll valentinstoychev viniciodeltoro


text:
Logistic Regression Training Problem

I am trying to use logistic regression classifier for classifying tweets. However I am facing with a very long training time. for 1000 training objects it doesn't even finish in one day.
I have attached my code. every part is working and I am not sure if the problem is with my code or with the repository.
I really appreciate any helps or tips.
LR.txt

If you are attempting to use a very large dataset I would suggest using a more performant library such as theano or scikit, which runs the actual testing code in C as opposed to javascript (both have a python API).

1000 tweets does not sound like a large dataset.

that program is short enough to inline
var async = require("async");
var jsonfile = require('jsonfile');
var util = require('util');
var cutter = require('../controller/removeTags.js');

var natural = require('natural');
var classifier = new natural.LogisticRegressionClassifier();

//////////// TRAINING DATA /////////////////
var trainingData = {
    path: '../path/to/Training/test-data.JSON'
};
var testData = {
    path: '../path/to/Training/test-data.JSON'
};
var dictionary = {
	path:'../path/to/Dictionary/LR_dictionary.JSON'
};

var count = 0;

// Starting to Load Logistic Regression

	var count = 0;
	jsonfile.readFile(trainingData.path, function(err, obj) {
	async.each (
			obj,
			function (item, done) {
				classifier.addDocument(cutter.trim(item.text),item.sentiment)
				count ++;
				console.log(count);
				done();
			},
			function (err) {
				if(err){console.log("Error")}
				else{
					classifier.train();

					classifier.save(dictionary.path, function(err, classifier) {

					console.log(classifier) })
				}
			}
		);
	})

I don't know if this is related but I have found that for some texts the LR classifier training function calls descendGradient and this function never ends, specifically here:
`while(!learningRateFound) {
var i = 0;
last = null;
    while(true) {
        var hypothesisResult = hypothesis(theta, Examples);
        theta = theta.subtract(Examples.transpose().x(
        hypothesisResult.subtract(classifications)).x(1 / Examples.rows()).x(learningRate));
        current = cost(theta, Examples, classifications);

        i++;

        if(last) {
        if(current < last)
            learningRateFound = true;
        else
            break;

        if(last - current < 0.0001)
            break;
        }

        if(i >= maxIt) {
            throw 'unable to find minimum';
        }

        last = current;
    }

    learningRate /= 3;
}`

I have found that learningRateFound is false all the time, for literary hours. Can you try logging this and see if this is indeed the issue?

Same here.

source: gharchive/issue

authors: MichaelPaulukonis goudarzi8 morenoh149 mvillaizan pasupulaphani zacharyfmarion

repo: NaturalNode/natural

license: mit

license_type: permissive

license_source: bigquery


text:
Unclaimed value stopped counting today even though Daily rewards should be around 26 brrr - logged out/ logged in - started to work fine

Hi there,
My amount of "Unclaimed" tokens stopped rising since yesterday (it was all good before).
Also, "Claim All Rewards" menu item does nothing. It was also working before.

logged out/ logged in - started to work fine

repo: NearDeFi/burrow-cash

license: Unlicense

license_source: github-api


text:
data mover daemon RPM build does not contain github commit hash

The RPM build does not provide the correct GitHub commit hash, so the daemon is reporting v0.0.1-unknown
When using the build-daemon make target, the commit hash is loaded from git https://github.com/NearNodeFlash/nnf-dm/blob/d5df11f4b1eaeabaf1857fc37d5dbde75439f4f6/Makefile#L123-L126
If this fails, the default value is "unknown" https://github.com/NearNodeFlash/nnf-dm/blob/d5df11f4b1eaeabaf1857fc37d5dbde75439f4f6/daemons/compute/server/version/version.go#L30

Closing this as @matthew-richerson merged #87.

authors: NateThornton bdevcich-hpe

repo: NearNodeFlash/nnf-dm


text:
[WIP] - Temporarily remove cachix from publishing

Description of PR
Running into failures with having a newer version of the nix container + cachix. Runs into the same problems when have had historically with actions and node :slightly_frowning_face:
Previous Behavior

Cachix removed from publish_imgs workflow

New Behavior

Publish_imgs workflow works with changes that were made in https://github.com/Nebulaworks/nix-garage/pull/51

Tests

TBD

publish

Forgot it reads off master for its workflow file: https://github.com/Nebulaworks/nix-garage/actions/runs/2199940947

source: gharchive/pull-request

repo: Nebulaworks/nix-garage


text:
Performance Issues

There seems to be a huge performance issue when loading. Balance remains at 0 for a very long time and transactions don't show. I have not dug into the issue but it seems that it is a address/transaction scanning issue as it seems the problem increases with more transactions and addresses.

You have to unlock the wallet, currently unlocking the wallet takes in the ballpark of 10 minutes, longer on slow machines. There's a plan already in place to speed the wallet up. It's not going to be ready by June, but the wallet unlocking performance issues should be ready in July.

authors: ByronAP DavidVorick

repo: NebulousLabs/Sia


text:
password/seed input prompt in siac 1.3.1 broken on Windows

Bug Report
It appears that when a password/seed input prompt is invoked in siac, an error is triggered giving the output below. There is no actual input accepted, the command exits immediately.
Issue is reproducible in both 'cmd' and 'powershell'. Tried executing "Get-Content seed.txt | .\siac wallet init-seed" in powershell, but doesn't help.
Stack Trace or error message

.\siac wallet unlock
Wallet password:
Reading password failed: The handle is invalid.

.\siac wallet init-seed
Seed:
Reading seed failed: The handle is invalid.

Environment

Sia version: 1.3.1 binaries downloaded from https://sia.tech/apps/ on 27. Dec
OS: Windows 10

I would recommend using the SIA_WALLET_PASSWORD env variable instead of trying to pass it in via stdin.  This feature is not well documented (yet) but the PR below outlines how it works.
https://github.com/NebulousLabs/Sia/pull/2351

Same here. Win10 with v1.3.1 does not work in the cmd window. I backtracked and found that v1.3.1RC1 was still working, RC2 not anymore.

Possibly related to #2593

// passwordPrompt securely reads a password from stdin.
func passwordPrompt(prompt string) (string, error) {
fmt.Print(prompt)
pw, err := terminal.ReadPassword(0)
fmt.Println()
return string(pw), err
}
I think this is a documented Go bug
https://github.com/golang/go/issues/11914
GitHub
x/crypto/ssh/terminal: ReadPassword broken on windows · Issue #11914 · golang/go
On go1.4.2 windows/amd64 with golang.org/x/crypto/ssh/terminal revision 56474dfd625f18739b46f075b138fd0133717491. ReadPassword seems to be broken. Reproduction Case: package main import ( "fmt" ...
Quoted from link above: Does it work if you use terminal.ReadPassword(syscall.Stdin) ?
Quoted from link above: The fact that 0 == syscall.Stdin on Unix system does not mean that that holds true on Windows.(edited)
Quoted from link above: You're correct, I made the mistake of assuming that syscall.Stdin was 0 on windows. I never considered that it would be different on windows (silly windows), and the docs on stdin were a little misleading. Thank you for the clarification!(edited)

Not working, even with the SIA_WALLET_PASSWORD env variable set, siad.exe reports Auto-unlock failed.

authors: Fiktik betaboot hackneyb radegeddon tbenz9


text:
BfA Gem Support

Update to support the new gem levels introduced with Battle for Azeroth.
Note that this will require a new localization string, but as the string would need to be updated anyway I felt that wasn't too much of an additional burden.

Been using this version with no problems.  Should definitely be merged.  Only suggestion would be to default to the 40 version of secondaries since they are inexpensive.

I integrated the changes, but wanted to have a more generic name so I don't have to update 50 variables with the name of the "new" primary stat gem every expansion.

authors: Arcanemagus Necroskillz kschroeder31

repo: Necroskillz/StatWeightScore


text:
🛑 Becpl Angular UI is down

In fdeac3d, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in 7a8ba80 after 15 minutes.

repo: NehalDamania/becpl-uptime

license: MIT


text:
🛑 Becpl Angular UI is down

In d8b7b36, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in bed64a1 after 29 minutes.


text:
🛑 Becpl Angular UI is down

In 3cd196f, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in 26e32c5 after 17 minutes.


text:
🛑 Becpl Angular UI is down

In 2f7950a, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in 57e4911 after 11 minutes.


text:
🛑 Becpl Angular UI is down

In f212c7a, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in b35d388 after 5 minutes.


text:
🛑 Becpl Angular UI is down

In 1bd4277, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in f35946b after 5 minutes.


text:
🛑 Becpl Angular UI is down

In b41fd8d, Becpl Angular UI ($BECPL_ANGULAR_URL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Becpl Angular UI is back up in 28a40bd after 5 minutes.


text:
Make offline-plugin work with webpack-dev-server

This includes live reload and Hot Module Replacement. In those cases offline-plugin's cache functions should do nothing, i.e. not handle fetch event.
Reasons: someone may want to test push notifications / background sync in dev mode with webpack-dev-server.
(Probably even reload SW file's code when it changes)

Let me know if you need any hooks from webpack-dev-server (I'm the maintainer).

@SpaceK33z Yeah, I know :-) Will do. Thanks for offering help, that's really appreciated 👍
I have a friend willing to take over this issue, so I created it for him. Not sure when this will happen though. I'll let you know if something will be needed (though I hope everything is there already).

The difference between normal compilation and webpack-dev-server compilation: https://www.diffchecker.com/MSt07Pj1
Seems pretty trivial to check for MemoryFilesystem usage and react appropriately.
/cc @SpaceK33z I know it isn't bullet-proof detection way but seems pretty solid to me, given that I don't know any other webpack tools using memory fs. What you think?

@NekR yeah that seems like a good idea for now. Note that MemoryFilesystem is set in webpack-dev-middleware, so it will also detect users that only use the middleware.

Note that MemoryFilesystem is set in webpack-dev-middleware, so it will also detect users that only use the middleware.

@SpaceK33z
Yeah, I think that's what I want + a flag to turn normal behavior of the plugin back even when MemoryFilesystem is used. Thanks for info 👍

repo: NekR/offline-plugin


text:
Usage with .htpassword protected websites

We introduced .htpassword protection to our staging environment today, which seems to be breaking service worker as poor guy can't gets 401 (Access denied) when trying to install.
Any way to add authentication headers or something to the service worker so he can access protected files?

I actually have no idea how .htpassword works. Does it use cookie for auth or Authentication header? If it uses header, then how do you request scripts anyway?

Anyway, I think you need this option:
new OfflinePlugin({
  ServiceWorker: {
    prefetchRequest: {
      credentials: 'same-origin'
    }
  }
})

This should work with Basic HTTP Auth, which I assume is used by .htpassword.
It by default should be equal to same-origin, so if you interested in it then contributions are very welcome: https://github.com/NekR/offline-plugin/issues/123

authors: IljaDaderko NekR


text:
aster2asp error?

Why do I keep getting errors when I run aster2asp?

Our own nightly build runs aster2asp just fine. I am not sure how you set up your environment. The libcspice.so.66 is being shipped, and in your case should be in lib/, if your aster2asp is in bin/. As a fallback measure, you can do export LD_LIBRARY_PATH=/path/to/your/lib:$LD_LIBRARY_PATH, but normally this should not be necessary.
If all fails, you can try getting a new tarball from https://github.com/NeoGeographyToolkit/StereoPipeline/releases, untar it somewhere, and use it from that location.

Thank you very much! Does this have to be PYTHon3.6 with conda?

ok! Thank you very much!

I have successfully installed ASP. The error as shown in the figure appeared when I was processing ASTER remote sensing image. Why is that?

Nice self-portrait in your screenshot. :)
Your log does not provide enough information. Try to execute that failing command on the last, line, so
/home/gyp/StereoPipeline/libexec/stereo_parse -t aster ...
It failed quite badly with no output at all.
You can also execute the same way
/home/gyp/StereoPipeline/bin/stereo_pprc -t aster ...
This will avoid parallel_stereo and stereo_parse, but will call the wrapper around stereo_pprc while setting up all the right env variables, which the libexec/stereo_parse call does not.
Among these two maybe some error message can be discerned.

I have successfully installed ASP. The error as shown in the figure appeared when I was processing ASTER remote sensing image. Why is that?

I also encountered this problem, do you have resolved it?

yes,you keyijiawoqq  984975164

I don't know based on the information I get. I will suggest executing the stereo_parse command which fails, as above:
/your/path/libeexec/stereo_parse -t aster ...
and see if a fuller error message gets encountered, which perhaps you can share.
It is likely a system issue. You can also share what Linux distribution you are running.
One can also run ASP from the tarball, as obtained from the GitHub release site, and not with conda.

thanks for responding. when i run /your/path/libeexec/stereo_parse -t aster ... , the error still exist as:

and my computer operation system is Mac OS version 12.1.
moreover, I also try running the paralle_stereo command from the traball, the same error occurs.

Ah. Our Mac version is 11.6.2. Normally it should run on yours as well. Maybe you have the non-Intel CPU, then yeah, ASP was not ported to that yet.

Actually, i used the intel CPU, and my computer processer is Intel Core i5.

Thank you for letting me know. I honestly don't know what to say. I see from your prompt that you are in the "asp" conda env, which is how it should be.
I wonder if other tools are crashing. You can try to "cd" into your miniconda3/envs/asp/bin directory and then do:
./zstd --help
./map2map --help
./gdal_translate --help
./hillshade --help
./stereo_pprc --help
Some of these tools are not even compiled by us. I am trying to understand if something is very wrong with conda on your system, or our own tools are built badly. The last two tools above are ours.
If no luck whatsoever, maybe you have a Linux box lying around, at least as a VM. I know it is not a great solution, I am just running out of ideas.

Thanks for replying. when I check the commands as you mentioned, the outputs are:

This is all very good. Now you can "cd" to your data dir and do
~/miniconda3/envs/asp/bin/stereo_pprc --help
(This is the same command as the last one you had, but run from your data dir.)  If this goes well, then you can do also in your data dir:
~/miniconda3/envs/asp/bin/stereo_pprc -t aster --subpixel-mode 3 out-band3N.tif ....
so basically your previous command you ran some time earlier, but with stereo_pprc instead of stereo_parse.
I am starting to guess that maybe the --help command will work and the -t aster command will fail, which will mean your conda installation is good but our code has a bug. Then I would have to fetch a dataset and run it myself. It has been a while since we worked with ASTER data.
I did try to get one dataset, following the instructions at https://stereopipeline.readthedocs.io/en/latest/examples.html#aster, but that fetched archive lacks VNIR data, rather it has TIR data, whatever these may mean.
Anyhow, waiting to hear if any of those two commands above running in your data dir would crash or not.

thank you for your kind reply. a new bug exists when i use: ~/miniconda3/envs/asp/bin/stereo_pprc -t aster --subpixel-mode 3 out-band3N.tif ....
if you need an aster data for trying the parallel_stereo function, I can send my data to you through email.
it is noticeable that according to the asp document, the command line: parallel_stereo -t rpc --subplixe-mode 3 ... could run successfully. however, the command line: parallel_stereo -t aster --subplixe-mode 3 ... always fails.

i also try the command line on my ubuntu 18 computer, the same bug occurs.

I appreciate your patience. This was actually a serious bug. We also did not run any ASTER dataset in our nightly tests, which I fixed now.
I put a fix. It will be in build 2022-01-21 at https://github.com/NeoGeographyToolkit/StereoPipeline/releases in maybe 12 hours from now.
The results of of running stereo with -t aster and -t rpc are quite similar now. Some small shift is seen among the DEMs but that is expected.

Thank you for your patience too. I will follow the latest version of asp tool. The asp document says with -r aster is more accurate in DEM generation, thus I insist on performing the DEM processing with -r aster even though I don't know what's the difference between these two methods.

You should also try --stereo-algorithm asp_mgm. This is a newer option (and I put a mention now in the aster manual page), and with it the ASP DEM shows more detail.

hi, I updated the latest asp version by using conda install..., however, the same bug still exists when i use parallel_stereo -t aster..., are you sure that the bug has been fully fixed, or any mistake in my implementation.

The conda build did not change. Sorry that was not clear. You should fetch a build from https://github.com/NeoGeographyToolkit/StereoPipeline/releases
This does not use conda, it has the build in an archive. It needs to be unzipped, and run from that location without installation. There is more info here: https://stereopipeline.readthedocs.io/en/latest/installation.html

Uh. I did not see this one before. Our software, according to its license, is a "use at your own risk" kind of thing (https://github.com/NeoGeographyToolkit/StereoPipeline/blob/master/LICENSE#L153). So not sure about the "notarization" part. :)
Maybe you need to ask your system administrator for advice and/or permission to run it.

hi, i have tried the code in my Ubuntu 18.4 computer, a new bug exits as.

Congratulations. You found another bug. Sorry about that. The reason I did not catch it on my side since the nightly test I set up runs on a clip, and I was not aware a certain camera loading gets done differently for full images.
I put a fix. You can do one of three things:

Wait for maybe 6-10 hours for the build at https://github.com/NeoGeographyToolkit/StereoPipeline/releases to update to version 2022-01-24-daily-build.

Run your existing build with the options --left-image-crop-win 1 0 10000 10000 --right-image-crop-win 1 0 10000 10000

This will cut a clip out of your images with just the first column removed. You will get a correct DEM, just a tiny bit smaller. I am very sure this will work with your build, and maybe it is good enough till the real fix arrives.

Trick your existing build to run with the full images, without clipping as above, by telling it that adjusted cameras are used, the lack of which, as you can see in your error message, is a problem. That can be done as follows:

mkdir -p ba
echo 0 0 0 > ba/run-out-Band3N.adjust
echo 1 0 0 0 >> ba/run-out-Band3N.adjust
echo 0 0 0 > ba/run-out-Band3B.adjust
echo 1 0 0 0 >> ba/run-out-Band3B.adjust
Then run stereo as:
parallel_stereo -t aster --subpixel-mode 3 out-Band3N.tif out-Band3B.tif out-Band3N.xml out-Band3B.xml out_stereo/run --bundle-adjust-prefix ba/run
All this does is to pretend that bundle adjust happened and the adjustment is the 0 0 0 translation and 1 0 0 0 quaternion.

repo: NeoGeographyToolkit/StereoPipeline


text:
Merge convert ops sequence

JIRA: https://jira.devtools.intel.com/browse/CVS-28831
Plan:

Convert following sequences of ops:

collapse duplicates in a row
remove intermediate narrowing conversion (eg. int64 -> int32 -> int64) ?
what else?

I dont have access to JIRA yet. My questions:

Should this be an algebraic_simplification pass or a new one by itself?
what all conversions are to be targeted?
Does shapes have any impact?

@swapna-intel one pattern i notice is char -> convert(uint8) -> convert(f32). I think the middle convert can be removed?

authors: ashokei swapna-intel

repo: NervanaSystems/ngraph


text:
Doxygen documentation for fused op decomposition pass

This is how the output looks like

TESTNOW


text:
#302: add specific message beside the "no result" one for search back…

Fix #302
Test URLs:

Before: https://main--cn-website--netcentric.hlx.page/search?terms=aem
After without error: https://302-specific-search-error-message--cn-website--netcentric.hlx.page/search?terms=aem
After with error: https://302-specific-search-error-message--cn-website--netcentric.hlx.page/drafts/ahaller/search?terms=aem

@jonatan-lledo-netcentric the issue was actually a wrong function call I added in the showResults function. Fixed it and it works now, please re-check.

repo: Netcentric/cn-website


text:
Could the documentation for HystrixServletFilter also include how to deal with async servlets?

I couldn't make sense of when in the lifecycle to shutdown the HystrixRequestContext while running in an asynchronous servlet as the documentation assumes a threading model using regular blocking threads.
If I'm correctly you could leverage the Servlet's AsyncContext listeners to close the HystrixContext at callback once the response has been written, instead of when the servlet filter returns.
Is this strategy viable, and if so, should it be added to the docs?
In my example I'm using Spring servletfilters, but that is just a convenience and the same could be applied with regular servlet filters.
import com.netflix.hystrix.strategy.concurrency.HystrixRequestContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * See https://github.com/Netflix/Hystrix/wiki/How-To-Use#RequestContextSetup
 */
@Slf4j
public class HystrixRequestContextServletFilter extends OncePerRequestFilter {

    @Override
    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {
        if (request == null || request.getRequestURI().contains("hystrix")) {
            chain.doFilter(request, response);
            return;
        }

        HystrixRequestContext context = HystrixRequestContext.initializeContext();
        try {
            chain.doFilter(request, response);
        } finally {
            shutdownContext(context, request);
        }
    }

    private void shutdownContext(HystrixRequestContext hystrixContext, HttpServletRequest request) {
        if(request.isAsyncStarted()){
            final AsyncContext asyncContext = request.getAsyncContext();
            asyncContext.addListener(new HystrixContextShutdownListener(hystrixContext));
        } else {
            hystrixContext.shutdown();
        }
    }

    private class HystrixContextShutdownListener implements AsyncListener {
        private final HystrixRequestContext context;

        HystrixContextShutdownListener(HystrixRequestContext context) {
            this.context = context;
        }

        @Override
        public void onComplete(AsyncEvent asyncEvent) throws IOException {
            context.shutdown();
        }

        @Override
        public void onTimeout(AsyncEvent asyncEvent) throws IOException {
            context.shutdown();
        }

        @Override
        public void onError(AsyncEvent asyncEvent) throws IOException {
            context.shutdown();
        }

        @Override
        public void onStartAsync(AsyncEvent asyncEvent) throws IOException {}
    }
}

Great! I'm a bit unsure about how to do PR's against the wiki rather than the main repo.
I'd be more than willing to do so if you have any good instructions. Otherwise I made the changes here.
https://github.com/billybong/Hystrix-wiki/commit/6036dcc7b5941b82f6741dbcf51b75ecc3c352dd

On the Wiki, I see a link that you can clone from: https://github.com/Netflix/Hystrix.wiki.git.  I believe that cloning that, then submitting a pull request, should appear in the PRs for the Hystrix project.

Closing due to inactivity

authors: billybong mattrjacobs

repo: Netflix/Hystrix


text:
Split the PropertyTest.test into testPropertyValuesUpdateAndEffect and testServiceInitializationWithDefaultProperties

Fix #714
Description
Refactored PropertyTest to split the combined test() method into two distinct tests: testServiceInitializationWithDefaultProperties and testPropertyValuesUpdateAndEffect. This change improves test clarity by isolating specific behaviors into separate tests.
Key Changes

Removed test() method to avoid redundancy.
Added testServiceInitializationWithDefaultProperties to test service initialization with default settings.
Added testPropertyValuesUpdateAndEffect to test the behavior upon updating property values.

Thank you for these improvements :-)

authors: Codegass rgallardo-netflix

repo: Netflix/archaius


text:
Sortable columns

bpftop should let you sort the entries by column, in ascending or descending order. This would require us to track the selected program by its ID rather than its index in the items vec.

Should the sort be applied to only a single column at a time, or would it be more useful to have each column track it's own sort state (asc/desc)?

Only a single column at the time

I just submitted a PR #26 for this feature that's ready for review. 🙂

Merged! Thank you again for your contribution. I'm releasing v0.4.0 with this feature.

authors: jfernandez tyrone-wu

repo: Netflix/bpftop


text:
Bug 2678- tcp protocol support for es6

Pull Request type

[✓] Bugfix
[ ] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
[ ] Other (please describe):

Changes in this PR
Support for tcp protocol in es6
Describe the new behavior from this PR, and why it's needed
Issue #
https://github.com/Netflix/conductor/issues/2678
Alternatives considered
Describe alternative implementation you have considered

@apanicker-nflx Shared the PR

Please run ./gradlew spotlessApply to fix formatting errors in the build.

Please run ./gradlew spotlessApply to fix formatting errors in the build.

Yes.. since our changes are only in es6 module, I ran ->  ./gradlew :conductor-es6-persistence:spotlessApply

@apanicker-nflx @aravindanr requested changes are incorporated. Let me know if there are more..

authors: apanicker-nflx deoramanas

repo: Netflix/conductor


text:
Prevent the creation of Loggers in the Hotpath.

Pull Request type

[x] Bugfix
[ ] Feature
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Other (please describe):

Changes in this PR
This PR moves all loggers to be available through a companion object.
This will prevent instances of loggers to be created as part of the request execution/hotpath.
Although this was initially identified in the DataFetcherInvoker, via a JFR analysis, we are also
favoring consistency and apply the same pattern across all components.
From the image below the time associated with creating the logger per DataFetcherInvoker is visible on the right.

Nice find!

@berngp the above analysis was done w/ JFR? Anything special to get that going - or just follow their docs? I have been interested in looking into JFR more and the above reminds me about it. Thx for that.

@bono007 the specific graph above is generated by an internal tool we have. That said, I use JMC to do some further analysis on generated JFR files for jvms that I run locally or remote instances in test. There is a decent guide here. Note that in Mac OS you will most likely need to start JMC from the command line. Tip, use JDK 11+.
JMC can attach to running instance and do Flight Recording or you can use jmcd to create a jfr and then open it in JMC.
You could attach to a running JVM, jps -f to see the instances running.
jcmd <pid> JFR.start duration=60s filename=myrecording.jfr settings=profile

You could also have the JVM generate a JFR at startup time if you are interested on how the jvm looks like when its booting up.
-XX:+FlightRecorder -XX:FlightRecorderOptions=stackdepth=1024 -XX:StartFlightRecording=duration=30s,filename=/some/path/to/mystartuprecording.jfr

My 2¢, to analyze the request path you want...

Have a jvm that has been already running and in a steady state.
Be able to generate the request you intend to analyze.
Be ready to capture a flight recording which time window is sufficient to capture that particular request and doesn't extend too much. This will avoid noise in your JFR.
Coordinate when you start sampling/capturing for you JFR and send the request(s). Attempting to minimize noise in the jvm by stopping other things that are not related with that particular request you intend to analyze. If possible isolate the jvm and have only one request go through or have requests go trough in sequence where you wait for the previous to complete before you generate a new one.

authors: berngp bono007 paulbakker

repo: Netflix/dgs-framework


text:
use logger and not System.out for thread statement, remove pre/post newlines

https://github.com/Netflix/ndbench/blob/master/ndbench-core/src/main/java/com/netflix/ndbench/core/NdBenchDriver.java#L229

Fixed in #95

authors: amcp ipapapa

repo: Netflix/ndbench


text:
Fix minor watcher bugs

Type: generic-bugfix
Why is this change necessary?
Several watchers had minor defects which caused them to fail in
various situations
This change addresses the need by:
Handling the errors
Potential Side Effects:
No known side effects

Coverage decreased (-0.02%) to 54.395% when pulling f901db2e4fe76c9f69d53711e2657e354cd2fe33 on Bridgewater:10068_FixWatcherBugs into 83e572a83a9c003efe79399631873b232c7086f6 on Netflix:develop.


text:
reboot.min.css getting 404

reboot.min.css getting from http://reboot.prod.netflix.net/css/dist/reboot.min.css
and its return code is 404.

Try http://netflix.com/css/dist/reboot.min.css instead.

When i try it, getting 301 moved permanantly;
$ curl -I http://netflix.com/css/dist/reboot.min.css
HTTP/1.1 301 Moved Permanently
cache-control: no-cache, no-store
Content-Type: text/css;charset=UTF-8
Date: Wed, 08 Apr 2015 12:55:52 GMT
Edge-control: no-cache, no-store
Location: https://www.netflix.com/css/dist/reboot.min.css
Server: wwwservice i-406baebd
Set-Cookie: memclid=28db211c-8093-4265-9922-200b860df66d; Domain=.netflix.com; Expires=Thu, 07-Apr-2016 12:55:53 GMT; Path=/
Set-Cookie: tlr=TR|1428497753366; Domain=.netflix.com; Expires=Sat, 02-Apr-2016 12:55:53 GMT
Strict-Transport-Security: max-age=0; includeSubDomains
via: 1.1 i-68caaf94 (us-east-1)
X-Content-Type-Options: nosniff
X-Netflix.nfstatus: 1
X-Originating-URL: http://netflix.com/css/dist/reboot.min.css
X-Xss-Protection: 1; mode=block
Connection: keep-alive

You must follow the redirects, try using wget instead. I have fetched the file and am serving it locally.

When i follow the redirects, i ve fetched a html page.
I think it due to my county (turkey) and try another host which at europe,
but i ve fetch same page.

We should consider bundling that css file within vector too, so the deployed app is self-contained.

Yes. If i could download the css file, i would sent a patch about that.

@kozdincer by the way, I didn't see any problem running vector, without that .css file being available.  In what way does it not seem to be "running properly"?

@fche You right. Its not to be good description. its just 404 problem. Thanks. I ll fix that sentences.

Just pushed a change to fix it. https://github.com/Netflix/vector/commit/cd382324cbf9ac3eba58714f989a8fa327e94754

authors: fche gustavorauber kozdincer spiermar

repo: Netflix/vector


text:
Undefined constant - showing the error at line number 56

The below error is showing after installing the plugin.
Undefined contant at line number 56
I removed the line and working. Any suggestion.
if ( !defined( "NWSI_FOLDER_NAME" ) ) {
define( NWSI_FOLDER_NAME, basename( DIR ) );
}

Fixed!
Fyi, NWSI_FOLDER_NAME is now renamed to NWSI_DIR_NAME.


text:
Neurobench structure table and datasets description

Neurobench structure table in readme.rst
Datasets brief descriptions in neurobench.datasets.rst.

Tutorials folder with static non-editable tutorials versions created.
TO DO : add links to the editable notebooks in the neurobench/neurobench/examples sub-folders

Tutorials folder with static non-editable tutorials versions created.
TO DO: add links to the editable Notebooks in neurobench/neurobench/examples subfolders

repo: NeuroBench/neurobench


text:
export itksnap singularity container: GUI fails

Problem:
Exported itksnap container won't run gui
Expectation:
itksnap container could run itksnap gui
Environment:
Ubuntu 22 with apptainer 1.2.5
Steps to recreate:
export container=itksnap_4.0.1_20230609
curl -X GET https://objectstorage.us-ashburn-1.oraclecloud.com/n/sd63xuke79z3/b/neurodesk/o/${container}.simg -O
singularity shell itksnap_4.0.1_20230609.simg
Singularity> which itksnap
/opt/itksnap-4.0.1/bin//itksnap
Singularity> itksnap
Launching ITK-SNAP
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
Aborted (core dumped)

Note that command-line tools do seem to be available:
Singularity> c3d
PICSL convert3d tool - from the creators of ITK-SNAP
For full documentation and usage examples, see
http://www.itksnap.org/c3d
To get help on available commands, call
c3d -h

Any suggestions would be appreciated!

Dear @dkp,
This seems to be related to your ubuntu version. It seems that you are running Wayland and this is not supported yet. It works on a Ubuntu 22 system without Wayland:

However, I can reproduce your problem when forcing wayland:

I see if I can somehow add Wayland support.

Dear @dkp,
Can you try to run this before starting itksnap?
export QT_QPA_PLATFORM=xcb

does this help?

Like magic!  That was perfect and it starts.  Thank you!
[dema:~ () 2024] $ apptainer shell itksnap_4.0.1_20230609.simg
Singularity> export QT_QPA_PLATFORM=xcb
Singularity> itksnap
Launching ITK-SNAP
QStandardPaths: error creating runtime directory '/run/user/1001' (No such file or directory)
-Dianne

Although this worked perfectly on my local ubuntu machine, the signularity container fails on the HPC with a new message:
$ apptainer shell itksnap_4.0.1.sif
INFO:    underlay of /etc/localtime required more than 50 (78) bind mounts
Singularity> itksnap
/opt/itksnap-4.0.1/lib/snap-4.0.1/ITK-SNAP: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
Singularity> export QT_QPA_PLATFORM=xcb
Singularity> itksnap
/opt/itksnap-4.0.1/lib/snap-4.0.1/ITK-SNAP: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
Singularity>
The HPC is centOS7.  Any suggestions would be appreciated.

Dear @dkp,
it sounds like your HPC sets an LD_LIBRARY_PATH. Can you start it the same way that neurocommand would install the container?
singularity exec --cleanenv --env DISPLAY=$DISPLAY  itksnap_4.0.1_20230609.simg itksnap

$ singularity exec --cleanenv DISPLAY=$DISPLAY itksnap_4.0.1.sif itksnap

FATAL:   While checking container encryption: could not open image /home/u7/dkp/DISPLAY=:1: failed to retrieve path for /home/u7/dkp/DISPLAY=:1: lstat /home/u7/dkp/DISPLAY=:1: no such file or directory
$ singularity exec --cleanenv itksnap_4.0.1.sif itksnap
INFO:    underlay of /etc/localtime required more than 50 (78) bind mounts
/opt/itksnap-4.0.1/lib/snap-4.0.1/ITK-SNAP: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory

and, since you mention it:
$ echo $LD_LIBRARY_PATH
/groups/dkp/neuroimaging/workbench/libs_rh_linux64_software_opengl:/groups/dkp/neuroimaging/workbench/libs_rh_linux64_software_opengl

There is a typo in your command. Can yo please try:
$ singularity exec --cleanenv --env DISPLAY=$DISPLAY itksnap_4.0.1.sif itksnap

@vbitz

Dear @dkp,
I verified that libQt6Core.so.6 is in the neurodesk itksnap image and it is available there and working for me on my test systems. Could it be that you didn't download our itksnap image but got it from somewhere else? The reason I am asking is: our images do not end on .sif and they contain a date version in the filename. Maybe you renamed it, but currently it doesn't make 100% sense to me.
I rebuild ITK snap for you in a new version which also contains the fix from earlier on in this issue. Can you please try exactly that image and see if everything works for you there on both your systems?
curl -X GET https://objectstorage.us-ashburn-1.oraclecloud.com/n/sd63xuke79z3/b/neurodesk/o/temporary-builds/itksnap_4.0.2_20240108.simg -O
singularity shell itksnap_4.0.2_20240108.simg
itksnap

Thank you
Steffen

I DID rename your image to shorten the name and change the extension to sif.  But I tried it with the old name to ensure I hadn't introduced a problem (sorry I didn't explain).
$ curl -X GET https://objectstorage.us-ashburn-1.oraclecloud.com/n/sd63xuke79z3/b/neurodesk/o/temporary-builds/itksnap_4.0.2_20240108.simg -O
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  300M  100  300M    0     0  44.3M      0  0:00:06  0:00:06 --:--:-- 53.3M
$ singularity shell itksnap_4.0.2_20240108.simg
INFO:    underlay of /etc/localtime required more than 50 (78) bind mounts
Singularity> itksnap
/opt/itksnap-4.0.2/lib/snap-4.0.2/ITK-SNAP: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory

I also tried:
$ singularity exec --cleanenv --env DISPLAY=$DISPLAY itksnap_4.0.2_20240108.simg itksnap
INFO:    underlay of /etc/localtime required more than 50 (78) bind mounts
/opt/itksnap-4.0.2/lib/snap-4.0.2/ITK-SNAP: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
$ singularity exec --cleanenv --env DISPLAY=$DISPLAY itksnap_4.0.2_20240108.simg
Error for command "exec": requires at least 2 arg(s), only received 1

Usage:
  apptainer [global options...] exec [exec options...] <container> <command>

Run 'apptainer --help' for more detailed usage information.

😟
Thanks so much for working on it.

Dear @dkp,
That's very strange then :( So far I haven't been able to reproduce this problem and it doesn't make sense yet. The library is there and should be found.
Which version of singularity or apptainer are you using?
Thank you
Steffen

The HPC reports the following:
$ which apptainer
/usr/bin/apptainer
$ apptainer --version
apptainer version 1.2.4-1.el7

I tested it with 1.2.3-1.el8 and can't reproduce the behaviour. Not sure what else it could be.
Would you have time for a quick interactive debug session?

Absolutely, I have the HPC desktop open now.

https://uqz.zoom.us/j/84452277285

conclusions for now:

excluded any environment problems with cleanall, containall, no-home
/opt/itksnap-4.0.2/bin//itksnap calls /opt/itksnap-4.0.2/lib/snap-4.0.2/ITK-SNAP, which then has the library problem. When directly calling it, it gives me that error:

/opt/itksnap-4.0.2/lib/snap-4.0.2/ITK-SNAP: error while loading shared libraries: libQt6OpenGLWidgets.so.6: cannot open shared object file: No such file or directory

-

when I set
export LD_LIBRARY_PATH=/opt/itksnap-4.0.2/lib/snap-4.0.2

and then start  /opt/itksnap-4.0.2/lib/snap-4.0.2/ITK-SNAP it works for me, but not for @dkp (can you please confirm again?)

Here's what I see.  I'm glad you are identifying the culprit here!
singularity shell --cleanenv itksnap_4.0.2_20240108.simg
INFO:    underlay of /etc/localtime required more than 50 (78) bind mounts

Singularity> export LD_LIBRARY_PATH=/opt/itksnap-4.0.2/lib/snap-4.0.2

Singularity> itksnap
/opt/itksnap-4.0.2/lib/snap-4.0.2/ITK-SNAP: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory

This seems to be the problem and solution: https://github.com/apptainer/apptainer/issues/1698

Fascinating!  Thank you!
Does this mean I need to apply these flags: -no-feature-renameat2 -no-feature-getentropy when I invoke apptainer?  Or is there something you need to do internally to the container?
It sounds like our HPC needs to update apptainer...true?  It isn't clear to me that a revised apptainer version is available.

@dkp - itksnap has to be build differently- there shouldn’t be a change necessary on your side. We will build a new container and I let you know when it’s ready for testing .

Dear @dkp,
We haven't found a way of getting ITK snap 4.x to work on Centos 7. The problem is that the QT library is incompatible with the old kernel. This could theoretically be fixed through a compiler setting for this library, but so far, we haven't been successful.
Would the following workaround work for you? Could you use ITK snap 3.8? This version uses the older version of the QT library and still works in Centos 7:
curl -X GET https://objectstorage.us-ashburn-1.oraclecloud.com/n/sd63xuke79z3/b/neurodesk/o/itksnap_3.8.0_20201208.simg -O
Than you
Steffen

Thanks so much for all your work on this!  I've learned a lot. It looks like itksnap 3.8 works fine:
$ apptainer shell  itksnap_3.8.0_20201208.simg
Singularity> itksnap
(the gui starts)
I really appreciate your time and this project!

Ok, great. Then I close this issue here for now. Should modern versions of itksnap work in any way on that old kernel I will post an update here.

@dkp ,
I might have given up a few hours too early :)
Can you try this version?
curl -X GET https://objectstorage.us-ashburn-1.oraclecloud.com/n/sd63xuke79z3/b/neurodesk/o/temporary-builds-new/itksnap_4.0.2_20240117.simg -O

Here, I applied a fix to the libraries that works on my testsystem, but I am unsure if this breaks anything else:
find /opt/itksnap-4.0.2/ -name '*.so.*' | xargs strip --remove-section=.note.ABI-tag

Whoa, that is SO nice! I was able to launch it in two different ways:
$ singularity shell itksnap_4.0.2_20240117.simg
INFO:    underlay of /etc/localtime required more than 50 (81) bind mounts
Apptainer> itksnap
Launching ITK-SNAP
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-dkp'
Return code : 0
Apptainer> c3d
PICSL convert3d tool - from the creators of ITK-SNAP
For full documentation and usage examples, see
    http://www.itksnap.org/c3d
To get help on available commands, call
    c3d -h
Apptainer> exit
exit

and
$ singularity run itksnap_4.0.2_20240117.simg itksnap
INFO:    underlay of /etc/localtime required more than 50 (81) bind mounts
Launching ITK-SNAP
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-dkp'
Return code : 0

Not only that, but some weird text overlay problem from 3.8 no longer appears AND I can get access to the command line tools, like c3d from this new container (I could not find them in the 3.8 container).
I'm thrilled!  This is absolutely perfect!

Wonderful to hear @dkp  - thank you for confirming that this works! I will release this version then to all people and consider this solved for now :)

repo: NeuroDesk/neurocommand


text:
Add basic progress bar for multi-session conversions

fix #129

Any way to make a story for this? Demonstrating what it would look like at various points during iteration?

Should be good to review. Will automatically play an animation that shows all the available states between 0-50 out of 50.

authors: CodyCBakerPhD garrettmflynn

repo: NeurodataWithoutBorders/nwb-guide


text:
Better indentation handling for comments in verify_exercises.py

This allows the W0D2 tutorials to pass. I also spot-checked a few later tutorials and they continue to pass and broke a few lines in a tutorial and this still caught them.

I'm running this on all current notebooks now.

I've confirmed that this works on W0D2 and doesn't seem to break on the other days.
It's a little weird in that it ends up with a "comment" line that doesn't have a comment hash mark in it. That may produce confusing reports in the future when there are actual issues, and I wonder if it will through off the matching in other ways. Am I thinking about this correctly?

This isn't quite right. It doesn't handle inline comments correctly (W2D1_T3, for example). I was attempting to pre-pend any indentation and handle xkcd. I'll take another pass at this later today.

W2D1 failures are unrelated, I think. During W3, the code was updated to include inline comments.
I think your changes are locally correct, I just wonder about unintended consequences.

Gonna close this as we should not need to comment out exercise code going forward, which will obviate a lot of these headaches.

authors: JesseLivezey mwaskom

repo: NeuromatchAcademy/course-content


text:
Currently Tied to the HTTPlug Guzzle Adaptor

For ease of installation, the HTTPlug Guzzle 6 adapter is in require. You can certainly add another adapter and use that when creating the client, but that leaves unused code under /vendor and provides no good way to remove the Guzzle dependency if there's some version conflict (say another package using Guzzle 5).
Not having any adapter required would mean installation took two commands (with the first replaceable by another adaptor):
composer require php-http/guzzle6-adapter
composer require nexmo/client

Is that an issue? Could a composer hook be used to interactively prompt for an adaptor if one doesn't exist?

Yes, If you require the virtual package php-http/client-implementation then composer will fail and ask you to install a HTTPlug client. See http://docs.php-http.org/en/latest/httplug/library-developers.html

You could also use http-php/discovery to remove the dependency to zendframework/zend-diactoros

@Nyholm Yeah, understand the value of using php/client-implementation. Main concern is having to communicate that you need to both require nexmo/client and pick an adaptor. Shipping with one by default helps solve that, but certainly not a perfect solution.
Haven't fully explored this, but do you know if there's any way to interrupt composer's error (when missing a client implementation), and dynamically add guzzle as a default?
I did play with http-php/discovery, but found puli kind of hard to work with / understand. I didn't take a lot of time with it though.

Depending on php-http/client-implementation will interrupt composer if a client is missing, but you can't provide a default one. You could say something like:

to install this lib run composer require nexmo/client php-http/guzzle6-adaper

Have you seen the discovery lib after version 1.0? Puli is no longer a requirement. :)

Puli is no longer a requirement. :)
I'll take another look.

I wrote it myself. I'm pretty sure :)
You can use puli but it is no requirement.

I had a chat with @tjlytle about this yesterday. We're planning on renaming nexmo/client to nexmo/client-core and have nexmo/client be an empty package that requires nexmo/client-core and php-http/guzzle6-adapter.
Any reason that this wouldn't work?

Sure. That would work. Then people that do not want to use Guzzle can require nexmo/client-core. It works and is is okey. But the alternative would be to have an extra line in the readme saying:
composer require nexmo/client php-http/guzzle6-adaper
FYI: nexmo/client would be the same as our "quick start": https://github.com/php-http/httplug-quickstart

Why use http-php if your force feed a specific version of the guzzle adapter... I can't use http-plug/guzzle6-adaptor in my Laravel (5.7) project because somehow this frigging library got added as a requirement (which is not the fault of the maintainers of this repo). Removing the requirement and adding the virtual package is indeed the solution...
A half decent solution would also be to update the adapter version to ^2...

I'm also blocked from installing this package due to the v1 adapter requirement.
For the moment i'll have to fork and install that :(

Thanks for commenting! Sorry for the delay, we're putting in a few changes for a v2 release but one of them will remove this problem - I'll try to keep you all posted as we go along, I think PR #182 is the most relevant here

This is quite a big problem actually. It is now impossible to use version 2 of php-http/httplug within Laravel 5.7, as:

laravel/framework requires laravel/nexmo-notification-channel:^1.0
laravel/nexmo-notification-channel requires nexmo/client:^1.0
nexmo-client requires php-http/guzzle6-adapter:^1.0
php-http/guzzle6-adapter requires php-http/httplug:^1.0

Requiring the guzzle6-adapter sort of defeats the purpose of having your package be setup to accept any httpplug compliant http client in my opinion. You can use the suggest keyword in composer.json instead. For instance:
"suggest": {
    "php-http/guzzle5-adapter": "Install this package if Guzzle 5 is available in the application.",
    "php-http/guzzle6-adapter": "Install this package if Guzzle 6 is available in the application.",
    "php-http/curl-client": "Install this package if Guzzle is not available in the application, but curl is."
  }

@denniskoster We hope to have this fixed with the upcoming v2 release here within the next few weeks, because as you've noticed this is becoming more and more of an issue.

@dragonmantank Thanks for the quick response.
That's good news. However, laravel will still require ^1.0 indirectly, through ^1.0 of laravel/nexmo-notification-channel, so releasing v2 will not solve this problem.
Any chance there's a fix for this in v1?

It's something we need to play around with, because swapping out this is a potentially BC-breaking change for existing installs, which under semver would be a new version. We are actively looking into solving this (and working with the nexmo-notification-channel plugin) as seamlessly for everyone as possible.

Hello everyone who has given feedback on this issue. We are just about finished with the new release, but one thing we need to make sure we handle is this specific issue. We've done some testing and we think it's handled, but we are not sure 100% about projects in the field.
The current plan of creating a metapackage to allow users to have a version with guzzle and a core version without so far is working great in testing.
We do know that stock Laravel and this package seem to be fine, so we are looking to track down what other "normal/common" Laravel package might be bringing in a conflict. If possible, could anyone that has encountered this issue share their composer.json file? I would love to real confirmation that this is handled properly.
Thank you!

Hi @dragonmantank,
Thanks for taking the time to look at this.
I've been unable to install this in a Laravel 5.8 project (neither directly nor as a dependancy of the laravel/nexmo-notification-channel package) due to issues with httplug and guzzle.
I've attached a copy of the composer require errors and my composer.json file. Hopefully these help with your testing.

composer.json
Composer Error (direct)
Composer Error (as a dependancy)

Thank you @gbuckingham89 !
This helped be determine that the conflict seems to actually be between us a sentry/sentry-laravel. Once I removed that package, I could require our regular packages. This does not help you in this case though, as I'm going to guess you are installing that package because you need it :P
Switching to our new 2.0.0 test package without guzzle let it install properly:
○ → composer require nexmo/client-core                                                                                Using version ^2.0 for nexmo/client-core
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing nexmo/client-core (2.0.0): Cloning d4d31ccbdc from cache

So we are doing good on that front. Even with sentry/sentry-laravel our new guzzle-less package installs fine.
We have in our deployment roadmap a PR prepped for laravel/nexmo-notification-channel which should switch it to this new nexmo/client-core package and alleviate the problem from a purely Laravel standpoint. I looked over the package and I don't see anything that would break by them upgrading to our new 2.0.0 package.
Again, thank you very much, this helped immensely! For anyone else, I am happy to test their composer.json files as well. The larger the sample size, the better.

@dragonmantank where can this "nexmo/client-core" package be found?
ALso I wonder if this issue can be revisited? At the moment I have a project that would need interfacing with nexmo but as it's tied to php-http/guzzle6-adapter (v1.1.1), it's impossible as we have another dependency requiring php-http/guzzle6-adapter (v2.0.1) thus causing a conflict and nexmo can't be installed.
Is there a way to force nexmo to use Diactoros ?

@andrei-dascalu It's actually going to be this repo once we do some package name flip-flopping this week (we're down to one final test we need to work out). Essentially this repo will no longer require guzzle, but we will provide a wrapper nexmo/client that still provides guzzle out-of-the-box. This will be a drop-in replacement for users.
In your case, the idea would be you switch to nexmo/client-core, and provide your own Http\Client\HttpClient implementation when making a \Nexmo\Client object. If you want, you can look at the v2-alpha branch (CAUTION: consider it alpha until we merge it in) and see if it helps.

Version 2.0.0 has been released, which should take care of this issue!
This repo is now named nexmo/client-core in packagist, so if you are having Guzzle issues change your composer.json to:
"nexmo/client-core": "^2.0"

This will switch to using the Guzzle-less version of our SDK, and you can pass in an HTTPlug-compatible adapter as the third parameter for a Nexmo\Client:
$httpAdapter = new Symfony\Component\HttpClient\HttplugClient();
$client = new Nexmo\Client($authObject, $options, $httpAdapter);

I'll leave this issue open for a bit in case anyone has any problems, but crosses fingers I think we finally got this fixed!

Finally closing this issue out. I think it's been solved to the best of our abilities, and we've been talking about expanding this further in v3, among other changes.

authors: Ilyes512 Nyholm andrei-dascalu atymic denniskoster dragonmantank gbuckingham89 lornajane mheap tjlytle

repo: Nexmo/nexmo-php


text:
Make:observer is not listing when i try command php artisan list

Hey !
I have install all the dependencies.
Have also ran the command : composer require nicksynev/make-observer-command
But when I do php artisan list make:observer is not listed.
Using : Lumen (5.7.2) (Laravel Components 5.7.*)

Hello! Thanks for the feedback. I have not tested it on the Lumen, only Laravel. I'll investigate.

repo: NickSynev/make-observer-command


text:
[Feature Request] please add guidance to tell the user how insert Date/Time in Name of file

Is your feature request related to a problem? Please describe.
it just indicate insert Date/Time in "??",but didnt tell use which word
i try many times,and find that:

D:Date with the day of week
HH:hour
FF: seconds
MM:month
but..where is mins?or day of month

@Dr-Kaisa Didn't check the code but I would assume it uses the standard .NET DateTime custom formats. So mins would be 'mm', day of the month would be "dd" would be the day of the month. 'ff' - I is the fraction of a second (in this case 1/100th). Seconds would be 'ss'.
See: https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings

@NickeManarin I think it would be nice addition to for example this page https://github.com/NickeManarin/ScreenToGif/wiki/Help-▪-Editor-✏-▪-Exporting-your-project-💾#-basic-workflow-for-exporting-our-project to include info about the possible options.

Insert the DateTime between ?, for example: ?yyyy-MM-dd?.

authors: Dr-Kaisa pawlos yuyeqianxun

repo: NickeManarin/ScreenToGif

license: MS-PL


text:
DOC/BUG: config class docstrings are not appearing in reference section of docs

Must have happened after switching to furo?

Looks like this is happening on readthedocs because sndilfe library is not found
WARNING: autodoc: failed to import class 'config.config.Config' from module 'vak'; the following exception was raised:
Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 70, in import_module
    return importlib.import_module(modname)
  File "/home/docs/.asdf/installs/python/3.8.12/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/vak/__init__.py", line 13, in <module>
    from . import (
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/vak/annotation.py", line 6, in <module>
    import crowsetta
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/crowsetta/__init__.py", line 13, in <module>
    from .transcriber import Transcriber
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/crowsetta/transcriber.py", line 6, in <module>
    from . import formats
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/crowsetta/formats.py", line 8, in <module>
    setattr(current_module, entry_point.name, entry_point.load())
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2458, in load
    return self.resolve()
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2464, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/crowsetta/birdsongrec.py", line 14, in <module>
    import soundfile
  File "/home/docs/checkouts/readthedocs.org/user_builds/vak/envs/latest/lib/python3.8/site-packages/soundfile.py", line 142, in <module>
    raise OSError('sndfile library not found')
OSError: sndfile library not found

I think the fix is to install libsndfile with apt in .readthedocs.yml

I think the fix is to install libsndfile with apt in .readthedocs.yml

as shown here:
https://github.com/readthedocs/test-builds/blob/use-apt/.readthedocs.yaml

repo: NickleDave/vak


text:
Use Keep A Changelog Format

Keep a Changelog

Fixed in https://github.com/NicoHood/gpgit/commit/094224a9eac1497da2f7be4c4de3036f5fc70bab

Fixed in https://github.com/NicoHood/gpgit/commit/094224a9eac1497da2f7be4c4de3036f5fc70bab

repo: NicoHood/gpgit


text:
🛑 cedro is down

In eda720e, cedro (https://www.cedro.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cedro is back up in 2b7576b.

repo: NicolasAbihaggle/serviciosestados


text:
Image saved with border

Hi !
I'm using Stick it and the system works quite well.
The problem that I have is that the saved image contains transparent borders, because it seems to perform a screenshot (the view contains border caused by image ratio that can't fit into the screen).
What could be the solution to remove these borders ?
Thanks !

Hey @Matancy, sorry for the late reply.
Could you show me how you implemented the component in your screen and an example image that is giving you troubles?
I'm not the original owner of the package, just implemented it to be useable with null-safety. Nevertheless I can take a look, if I can reproduce your issue.

Hi @NicolasDurant
I think that the problem is that the capture done with the stickers is made with the size of the window (phone in my case) and not with the image size. If the image don't fully cover the window, the result will have invisible borders.
The first illustration shows an image that does not fit correctly in the window (it comes from photo camera)
The second illustration shows on 1 the image that came from stick it, and the 2 is an other image displayed with the same rules (border radius). As you can see, the 1 does not have the rounded corners, because the rounded corners are applied on the invisible section (as you can find on a PNG).

For my code, this is the widget displayed :
Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: const Color.fromRGBO(41, 50, 57, 1),
        elevation: 0,
        leading: IconButton(
          icon: const Icon(Icons.arrow_back_ios),
          onPressed: () {
            Navigator.pop(context);
          },
        ),
      ),
      body: Stack(
        children: [
          stickIt = StickIt(
            panelHeight: 100,
            child: Image.file(File(widget.background)),
            stickerSize: 150,
            devicePixelRatio: MediaQuery.of(context).devicePixelRatio,
            stickerList: [
              Image.asset('assets/img.png'),
            ],
          ),
          Padding(
            padding:
                EdgeInsets.only(top: MediaQuery.of(context).size.height - 170),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                isLoading
                    ? const CircularProgressIndicator()
                    : RoundedButtonWidget(
                        "Envoyer",
                        null,
                        EdgeInsets.zero,
                        () => sendImage(),
                        true,
                      ),
              ],
            ),
          ),
        ],
      ),
    );

And this is the function used to save the image :
Future<void> sendImage() async {
    final imageList = await getImageList();
    final image = await stickIt.exportImage();
    final directory = await getApplicationDocumentsDirectory();
    final path = directory.path;
    final uniqueIdentifier = DateTime.now().millisecondsSinceEpoch;
    File file = await new File('$path/$uniqueIdentifier.png').create();

    file.writeAsBytesSync(image);

    Navigator.of(context).push(
      MaterialPageRoute(
        builder: (context) => DisplayRecapUploadScreen(),
      ),
    );
  }
}

I remove some code into the function (code not related to stick it).
Thanks for you help !

Hey, so I took a deeper look yesterday at what is going on.
In short: the author never intended this to fit to the widget size you are providing, meaning, if the StickIt class is given a space of let's say 500px by 200px in your layout, then the stickers will always be applicable in that area. If you provide an image that is just 100x100px as background, you will still get 500x200 images as result, because you can lay the stickers over and outside the image boundaries and those stickers still need to be "screenshotted". So, in that sense, I feel like the intended purpose is correct.
Possible solutions:

A simple fix would be to make your Image extend to the box size no matter what, in your screen. This will of course result in some stretches or cutoffs of the original image and might not suit your case, but wouldn't result in transparent borders.:

body: Stack(
        children: [
          stickIt = StickIt(
            panelHeight: 100,
            child: Image.file(File(widget.background)),  <-- add fit: BoxFit.cover
            stickerSize: 150,
            devicePixelRatio: MediaQuery.of(context).devicePixelRatio,
            stickerList: [
              Image.asset('assets/img.png'),
            ],
          ),

The following would be a more hacky approach, since you have to rewrite how the widget works. Because the original package was not intended to just make a screenshot of the widget size you are providing, I won't add this as update to the package. You can copy these two files into your project and rename the classes https://github.com/NicolasDurant/stick_it/tree/main/lib/src to whatever you like, and use them as you do with any local widget you are coding. Then you have to do the following adjustments:

https://github.com/NicolasDurant/stick_it/blob/c970cab6c2cbff1a096aeafeb759ed28773b78cf/lib/src/stick_it.dart#L119 remove the Expanded, which allows it to take all available space
https://github.com/NicolasDurant/stick_it/blob/c970cab6c2cbff1a096aeafeb759ed28773b78cf/lib/src/stick_it.dart#L123, https://github.com/NicolasDurant/stick_it/blob/c970cab6c2cbff1a096aeafeb759ed28773b78cf/lib/src/stick_it.dart#L133 remove the StackFit.expand in both places
Now you have to tell the RepaintBoundary how much space it is allowed to take via a child Container, this would need to be your provided image size
The result should look something like this

Column(
      children: <Widget>[
        RepaintBoundary(
          key: key,
          child: Container( <- shrinks the RepaintBoundary and therefore the area of the screenshot
            height: 100, <- should be the calculated height of ur image, that you need to pass via the class
            width: 100, <- should be the calculated width of ur image, that you need to pass via the class
            child: Stack(
              children: <Widget>[
                LayoutBuilder(
                  builder: (BuildContext context, BoxConstraints constraints) {
                    viewport = Size(constraints.maxWidth, constraints.maxWidth);
                    return widget.source;
                  },
                ),
                Stack(
                  children: attachedList,
                )
              ],
            ),
          ),
        ),

I have made a visualisation that might help you, if you need to make further tweaks of your own. You have a RepaintBoundary that makes the screenshot and as you suspected is the whole available space, since the columns and stacks always take the most available space. Since there are two layers, the underlying image and the stickers on top, even if your image is smaller than the available space, the sticker layer will take the space and therefore the RepaintBoundary will make a screenshot of the whole view.

authors: Matancy NicolasDurant


text:
About data augmentation

Hi,
I'm wondering, does the augmentation increase the number of samples or just do random deformation on existing samples and the total sample size remains the same?  I know that augmentation implies increase in sample size but from what I read in "image_reader.py", it doesn't seem that 's how it works.  Also, is it possible to know roughly how much data we can get after augmentation?  Thanks so much!

Hi @YilinLiu97  the augmentation layers will be applied on the existing samples, total training elements will still be batch_size x number of iterations x num_gpus. There is a demo here: https://github.com/NifTK/NiftyNet/blob/dev/demos/unet/U-Net_Demo.ipynb

repo: NifTK/NiftyNet


text:
Fixes to test framework and GitHub workflow

After many tries, I think I finally manage to find the right combination of
tweaks to make pytest, tox, and GitHub actions to work.
This also adds caching of the librocksdb compilation, which is a very slow
step, and splits the building of wheels and other artifacts to run them only when
pushing to main.
CC: @dato who has more experience with this than I.
CC2: Debugging this is HELL, it is turtles all the way down!

Comments addressed, enabled building and testing for multiple rocksdb and python versions, and all still works! PTAL?

repo: NightTsarina/python-rocksdb


text:
Module Structure

This is a discussion for module structure and what should be included in the base of each, so we have a general idea of everything.
Location
Modules should be located in lib/modules, this makes the most sense.
Configuration
As there will be only one global configuration file, each module can (if necessary) get configuration variables from a specified block. This block should be named like the module so no confusion is caused.
Example:
mumble:
  address: "mumble.example.com"
  port: "64738"
  username: "servunite"

irc:
  address: "irc.example.com"
  port: "6667"
  username: "servunite"
  realname: "ServUnite Bridge"

General
Each modules needs to have a thread that can be joined in the main servunite-process. This thread contains all logic and handlers to process commands and events happening on the specified service.

@pixeldesu will, dass ich meinen Senf dazu gebe.

Lecker Senf

authors: TheRealKingS nilsding pixeldesu

repo: Nightbug/servunite


text:
:card_file_box: Perform database-related updates

This commit is necessary to update the movie quotes database.  It also
fixes errors received when running the npm test module, namely:

Update the database with my own movie quotes!
Fix entries without properly formatted spacing
Fix certain year entries previously submitted as string objects
"year": "2012" updated to "year": 2012

Following these updates all tests now pass!

@joeetuso Thank you!


text:
feat: Implement Display for enums

I've updated the template and run update_openapi.sh.
It should make it easier for Rust devs a bit. Please test as I'm not that familiar with openapi-generator (it does compiles and renders nice docs though).
(btw, I've also locally used podman instead of docker which has a nice effect of not having to require a docker daemon)
Fixes: https://github.com/Nitrokey/nethsm-sdk-rs/issues/32

Thank you!

authors: robin-nitrokey wiktor-k

repo: Nitrokey/nethsm-sdk-rs


text:
gpg does not recognized the nitrokey

Hello, I’ve upgraded the nitrokey into the latest firmware, and the operation ran fine:
(nitrokey) sebastien@trunk:~$ nitropy nk3 status
Command line tool to interact with Nitrokey devices 0.4.36
UUID:               B9EF61DC738B0E569C389B06AA249067
Firmware version:   v1.4.0-rc.2
Init status:        ok
Free blocks (int):  60
Free blocks (ext):  478

However, the card is not recognized by gpg:
(nitrokey) sebastien@trunk:~$ LANG=C gpg --card-status
gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device

If I plug a nitrokey start instead the key is identified so this does not seems to be a configuration error from gpg:
(nitrokey) sebastien@trunk:~$ LANG=C gpg --card-status
Reader ...........: Nitrokey Nitrokey Start (FSIJ-1.2.19-43131736) 00 00
Application ID ...: D276000124010200FFFE431317360000
Application type .: OpenPGP
Version ..........: 2.0

Am I missing something ?

Is pcscd running on your system (i. e. does pgrep pcscd show some output)?  If yes, what is the output of pcsc_scan -r when the Nitrokey 3 is connected?

Hello, I’ve tried with both the nk3 and the nitrokey start.
With the nk3, the application does not return, just waiting:
sebastien@trunk:~$ pcsc_scan -r
Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader... /

At the opposite, with the nitrokey start, I have an answer directly:
sebastien@trunk:~$ pcsc_scan -r
Using reader plug'n play mechanism
Scanning present readers...
0: Nitrokey Nitrokey Start (FSIJ-1.2.19-43131736) 00 00

For your information, the nk3 comes from a pre-order batch from 2021/04

What distribution do you use?  Can you find out the version of libccid on your system?

I’m using debian stable. The version of the library is 1.4.34-1

Okay, 1.5.0 is the first release of pcscd that supports the Nitrokey 3.  Please try the following steps to fix this problem:

Backup the current /etc/libccid_Info.plist file.
Obtain a current Info.plist file:

You can download it from this repository.
You can extract it from the Debian package for 1.5.0 or later.
You can build it from source:  Download the latest release from https://ccid.apdu.fr/files/ and run make Info.plist inside src.

Make sure that the file contains the string Nitrokey 3.
Copy the new Info.plist file to /etc/libccid_Info.plist.
Restart pcscd and re-run pcsc_scan -r.

I’ve backported the version from testing on my PC and this works now.
For the other people using debian stable, here is the documentation I’ve followed and the steps I’ve used for that:
mkdir backports && cd backports/
apt source ccid
cd ccid-1.5.2/
sudo mk-build-deps --install --remove
dch --bpo
fakeroot debian/rules binary
dpkg-buildpackage -b -us -uc
cd ..
sudo apt install ./libccid_1.5.2-1~bpo11+1_amd64.deb

And now the key is recognized by gpg:
sebastien@trunk:~$ LANG=C gpg --card-status
Reader ...........: Nitrokey Nitrokey 3 [CCID/ICCD Interface] 00 00
Application ID ...: D276000124010304000FB9EF61DC0000
Application type .: OpenPGP
Version ..........: 3.4

Thanks for your help, the issue is solved!

I have the same problem. With latest ccid pcsc_scan detects the key, but not  gpg --card-status

authors: Artiom-M Chimrod robin-nitrokey


text:
Create sum_of_the_elements_in_the_array.c

Related Issue
Closes: #692
Describe the changes you've made
I have created a program to count the sum of all elements in the array
Describe if there is any unusual behaviour of your code(Write NA if there isn't)

NA

Language used for coding

C

Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[ ] I have documented the code.
[x] New and existing unit tests pass locally with my changes.

Your folder name should be same as Problem name on platform which is "1D Arrays in C"

Your folder name should be same as Problem name on platform which is "1D Arrays in C"

can you check it once I have made required changes now


text:
Allow increasing gpu_mem for Raspberry PI

Hello :wave: ,
After installing NixOS and using nixos-hardware to setup my Raspberry Pi 4, the allocated GPU memory is 76M.
# vcgencmd get_mem gpu
gpu=76M

I'd like to increase it to at least 128M. I believe the standard way would have been:
  boot.loader.raspberryPi = {
    enable = true;
    firmwareConfig = ''
      gpu_mem=128
    '';
  };

But I've read in an other issue that firmwareConfig is gonna be deprecated.
I'm not quite sure what it the proper way to increase the memory allocation for the GPU.
Any help would be appreciated :)

Not sure if this can be actually deprecated because I assume that the bootloader won't respect dts. At least this is my understanding. So firmwareConfig is probably still the way to go?

Thank you for your answer.
I've tried the snippet above which produced the following error :
Failed assertions:
       - Only Raspberry Pi >= 3 supports aarch64.

(Coming from here) when the target is a Raspberry pi 4 with
 nixos-hardware.nixosModules.raspberry-pi-4 in it's flake.
So, upon further inspection, it seems that It might be because firmwareConfig requires loader.raspberryPi (Here) where nixos-hardware defaults to the generic one (here).
Documentation for loader.raspberryPi.enable states:
Whether to create files with the system generations in /boot. /boot/old will hold files from old generations.

These options are deprecated, unsupported, and may not work like expected.

So it does feel like this might be not the right way to go with this, but again, I'm not quite sure how to change the gpu_mem otherwise.
Would you have any advice by any chance?

You may need to set the version to 4 as well to avoid the evaluation error that you see.

repo: NixOS/nixos-hardware