text:
Error when installing package from Umbraco backend

When I try to install it as a package in the Umbraco backend, I get this error message (I am still able to install the package as NuGet inside my Visual Studio although it does not appear in the list of installed packages there):

An error occured
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object. at OurUmbraco.Repository.webservices.Repository.fetchPackageByVersion(String packageGuid, String repoVersion) --- End of inner exception stack trace --- at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at PackageRepoWebservices.Our.Repository.fetchPackageByVersion(String packageGuid, String repoVersion) in C:\WIP\Repo\our\Repository.cs:line 378 at PackageRepoWebservices.Repository.fetchPackageByVersion(String packageGuid, Version schemaVersion) in C:\WIP\Repo\Repository.asmx.cs:line 334
EXCEPTION DETAILS
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object. at OurUmbraco.Repository.webservices.Repository.fetchPackageByVersion(String packageGuid, String repoVersion) --- End of inner exception stack trace --- at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at PackageRepoWebservices.Our.Repository.fetchPackageByVersion(String packageGuid, String repoVersion) in C:\WIP\Repo\our\Repository.cs:line 378 at PackageRepoWebservices.Repository.fetchPackageByVersion(String packageGuid, Version schemaVersion) in C:\WIP\Repo\Repository.asmx.cs:line 334
STACKTRACE
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at umbraco.cms.businesslogic.packager.repositories.RepositoryWebservice.fetchPackageByVersion(String packageGuid, Version schemaVersion)
at umbraco.cms.businesslogic.packager.repositories.Repository.fetch(String packageGuid, String key)
at umbraco.cms.businesslogic.packager.repositories.Repository.fetch(String packageGuid, Int32 userId)
at Umbraco.Web.Editors.PackageInstallController.Fetch(String packageGuid)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()

Which version of Umbraco are you using?
The error message appears to be from the Our Umbraco package repo, not Nested Content.

I am using the latest v7.5.2 since a couple of weeks. At which time, I upgraded my Visual Studio 2015 solution from v7.4.3 or something just by upgrading it as a NuGet package. I have not had any other "issues" after the upgrade. Everything that had worked before that still worked after.

Thanks @madrus. Have you installed any other packages via the back-office?
You should be able to download and install the package manually.

Yes, I tried successfully to install and uninstall uSync.
And I can definitely install packaged manually or via NuGet. So, personally I have no problem.
I have communicated this issue in hope that it could possibly be some bug that can be fixed.

Thanks @madrus.  The bug has been raised with the Umbraco team: #OUR-420, a fix is currently under review.

authors: leekelleher madrus

repo: leekelleher/umbraco-nested-content


text:
Tensorflow data pipeline, Need test

Add tf.data pipeline inherit from tf.keras.utils.sequence

OK

Add train_step for each model to fit_generator train models.

Next, I will test the availability of codes after making all data.

source: gharchive/pull-request

repo: leelew/PHydro

license: MIT

license_type: permissive

license_source: github-api


text:
How to about this framework

Thanks for this great framework.
With simply copy paste, we can add features, routes, components.
I have put all compoents under common/componets/subs,
and home/components/subs, add routes to home/routes, and works well.
I have some questions, because I am a learner of Angular:
How to use html template for components. How to use Jquery in controllers,
How to output $ctrl.variables into html document.
I have tried like {{variables}} and {{$ctrl.variables}}, but not working.
Thank you very much.

OK, it seems you are not familiar with angularJS and AngularJS styleguide (ES2015). It would be good if you read them first.
I am going to answer your questions in following section, and all my tutorials shall be based on the home feature.
How to use $http service
Pick up the /js/features/home/service/HomeService.js, and inject $http service:
export default class {

    /*@ngInject*/
    constructor($q, $http) {
        this.$q = $q;
        this.$http = $http;
    }

    getInitTodos() {
        return this.$q(resolve => {
            setTimeout(function() {
                resolve([
                    {
                        finished: true,
                        txt: 'Learn JavaScript'
                    },
                    {
                        txt: 'Learn AngularJS'
                    },
                    {
                        txt: 'Learn webpack'
                    },
                    {
                        txt: 'Learn node'
                    }
                ]);
            }, 1500);
        });
    }

    getGithubUser() {
        return this.$http.get('https://api.github.com/users/leftstick');
    }
}

Use it in /js/features/home/components/home.co:
export default {
    template: `
        <logo></logo>
        <description></description>
        <github></github>
        <todo-app list="$ctrl.todos" loading="$ctrl.loading" on-toggle="$ctrl.toggleTodo(todo)" on-add="$ctrl.addTodo(todo)" on-archive="$ctrl.archive()"></todo-app>

    `,
    controller: class {
        /*@ngInject*/
        constructor(HomeService) {
            this.HomeService = HomeService;
        }

        $onInit() {
            this.HomeService
                .getGithubUser()
                .then((info) => {
                    console.log('user ', info);//info shall be printed here
                });
        }

    }
};

If you are going to execute my snippet locally at your laptop, be sure turn off $httpProvider.defaults.withCredentials = false; in /js/fw/config/SSOConfig.js due to CORS credential issue

How to html template for component
That super easy, let's update js/features/home/components/home.co a bit:
import './home.css';
import tpl from './home.html';
export default {
    template: tpl,
    controller: class {
        /*@ngInject*/
        constructor(HomeService) {
            this.HomeService = HomeService;
        }

        $onInit() {
            this.HomeService
                .getGithubUser()
                .then((info) => {
                    console.log('user ', info);
                });
        }
    }
};

And create /js/features/home/components/home.html right next to home.co, with template content:
<logo></logo>
<description></description>
<github></github>
<todo-app list="$ctrl.todos" loading="$ctrl.loading" on-toggle="$ctrl.toggleTodo(todo)" on-add="$ctrl.addTodo(todo)" on-archive="$ctrl.archive()"></todo-app>

How to use jquery in controller
Technically, you shouldn't use jquery in controller. You are lacking of basis of MVC structure.
I believe your question is what you should do if you really need manipulating DOM, right?
That's why i put a directive at js/features/common/directives/autofocus.js, and you would see it is used at js/features/home/components/subs/todo/index.co:
<input autofocus type="text" placeholder="Typing here..." ng-keyup="$ctrl.addTodo($event)">

How to use variable in template
{{$ctrl.variables}} should work, and the example is everywhere in this scaffold, like $ctrl.todos, $ctrl.loading.
If you cannot get it in template, it means you might miss define it or define it in wrong place

Thank you very much!
I have output variable in home.co like this:
{{greeting.text}}
controller: class {
        /*@ngInject*/
        constructor(HomeService, $scope) {
             $scope.greeting = {text: 'Hello'};
        }
}
But in todos/index.co, you are using $ctrl.variables like:
Loading...
what's the diffrence to use $ctrl or $scope.
And , I was confused by this code, how to handle it?
bindings: {
loading: '<',
list: '<',
onAdd: '&',
onToggle: '&',
onArchive: '&'
},

there is no output that's weird, cause i am pretty sure it's valid code. Maybe you got some errors?
If you are using $scope.greeting = {text: 'Hello'}; for variable definition, then just {{ greeting.text }} should working.
If you are asking difference between $ctrl and $scope, even bindings issue, you should check out: component-doc for more detail about component.

Yes, I can see console.log output from firefox console's logging tab, it shows:
Error: this.$http is undefined.

Have you done like i did in /js/features/home/service/HomeService.js as following:
/*@ngInject*/
constructor($q, $http) {
        this.$q = $q;
        this.$http = $http;
}

Without giving it to this.$http, it shall be undefined by default

Thank you!It solved.
I have another question about template, can I change template dynamically, because I want to put all components in home feature, don't want to make a lot of features, and change the home.co's template when route changes.

OK, so you want just one feature, but with routes involved, right? I think it goes away from my original ideal. And requires significant change to the scaffold

Because every feature include the same logo, menu, footer, although I have put these compnents into common feature, but in every route's template, I have to include the same set of componets(logo,menu,footer).
Is there a way to switch only the content component, and define the logo, menu, footer only in one template file?
If I can use "ui-view" to switch the content when routes changes, so I only need one home feature with diffrent routes.
Is it possilble?

Can I use bootstrap with this framework? How to import bootstrap?

Of course you can use bootstrap,
First of all, install it with npm install --save bootstrap;
Then just open js/fw/ext/main.js, import css:
import 'angular-route';
import 'bootstrap/dist/css/bootstrap.css';
//if you need js, import it as well. But don't forget use directive as wrapper of js functions. calling bootstrap.js functions from controller is absolutely not a good idea
import 'bootstrap/dist/js/bootstrap';

export default ['ngRoute'];

Hi, I want to use $urlRouterProvider and $stateProvider, which can support ui-view,  may you modify routeConfig.js to support $stateProvider?

Since ui-router is more powerful & complicated, i can not give you a simple way to do that, cause too many scenarios need to be concerned. You have to find your own way.

I have inject $stateProvider into routerConfig.js and add below code into config(), but it not work.

ext/main.js
import 'angular-route';
import uiRouter from 'angular-ui-router';
export default ['ngRoute',uiRouter];
routerConfig.js
routes.forEach(function(ro) {
$stateProvider
.state(ro.id, {
url: ro.when,
template: ro.template
});
});

nothing displayed in the home page.
Can you help me out of this, I have no idea.

I haven't tried ui-router before. Not sure if your usage is correct.  You need to check if error occurs, then read more usage from ui-router website

When I import jquery, the console tells below error:
import 'angular-route';
import $ from 'jquery';
export default ['ngRoute',$];
Error: [$injector:modulerr] Failed to instantiate module demo due to:
[$injector:modulerr] Failed to instantiate module function ( selector, context ) due to:
[$injector:unpr] Unknown provider: selector
http://errors.angularjs.org/1.6.2/$injector/unpr?p0=selector
minErr/<@http://127.0.0.1:8080/0.bundle.js:2429:12
createInjector/providerCache.$injector<@http://127.0.0.1:8080/0.bundle.js:7011:19
getService@http://127.0.0.1:8080/0.bundle.js:7164:1
injectionArgs@http://127.0.0.1:8080/0.bundle.js:7189:1
invoke@http://127.0.0.1:8080/0.bundle.js:7215:18
loadModules/<@http://127.0.0.1:8080/0.bundle.js:7122:28
forEach@http://127.0.0.1:8080/0.bundle.js:2718:11
loadModules@http://127.0.0.1:8080/0.bundle.js:7101:5

jquery is not an angular module, why you want to export it as an angular module?
remove it from export, just:
import 'angular-route';
import 'jquery';

export default ['ngRoute'];

Thank you!
I want to use $ in html, but console says：
Error: $ is not defined

$ is not a global variable, and it should not be.
So you have to import $ from 'jquery' first where you need it.
This is about modularization, you should learn about it before start coding

where shall I put the import code?
Like:
import $ from 'jquery'.
I am migrating exsiting jquery html source into your framework.
So they use below code in the head of the html.

When I made a component, I will put my html template in a html file which with be imported into *.co file.
So in which file shall I import and how to import?

If you have jquery imported with script tag in your html. No need import it any more, just use $, it is global variable.

in the common feature , I have made controller directory, and define controller like this:
export default {
type: 'controller',
name: 'ControlerBase',
controllerFactory: function ($scope,$rootScope) {
}

}
and I write declareControls() and call it from main.js
export function declareControls(app, controls) {
controls
.filter(dir => {
const shouldUse = isInjectedFunction(dir.controllerFactory) && dir.name;
if (!shouldUse) {
console.warn('controller defined without property [name], or method [controllerFactory]');
}
return shouldUse;
})
.forEach(dir => {
//console.log(dir.name, dir.controllerFactory);
return app.controller(dir.name, dir.controllerFactory);
});
}
Then when I want to use my controller in home.co, like this:
controller: myController
It says myController is undefined.
Please help me!

source: gharchive/issue

license: mit

license_source: bigquery


text:
composer install

podrias revisar por que creo que no tienes composer install,

Hola. Puedes encontrar el archivo composer.json en el repo  https://github.com/leifermendez/sistema-prestamos/blob/master/composer.json recuerda debes tener instalado composer en tu computador para poder ejecutar el comando

Gracias era el composer no sabia que habia que instalarlo https://getcomposer.org/

Debes reinstalar tu composer en tu MacOS ya que parece que no lo tienes instalado o tu consola no reconoce el comando

Genial me alegra que te funcione. Cerraré el issue!

repo: leifermendez/sistema-prestamos


text:
Updated the library to follow good practices on library organization, added compatibility with browser

Hi! Newbie here.
First of all, thank you for your awesome projects.
Trying to use your project on a webapp, I've seen that it is incompatible with browser projects.
The reason is the file file_output.dart being dependant on the library dart:io.
In this pull request I've added file_output.dart as a conditional export.
More info
Sass example of conditional export
Also, I've updated the project to follow the advice on the official docs on creating libraries:

Note: You may have heard of the part directive, which allows you to split a library into multiple Dart files. We recommend that you avoid using part and create mini libraries instead.

I've followed the sass project as example.
Sorry if something is wrong and thank you for your work.

Not that I have anything to say about this repo, but since I am reading the code anyway... :)

The build fails. I think it has smt to do with the formatting. Can you run dartfmt against your branch?

@marcgraub I've agreed with @leisim that I'll be helping out with the maintenance of this package. Could you resolve the merge conflict, then I'll merge your contribution. After that I'll spent some time on the on the 5th of Nov.

I've gone ahead and fixed the minor merge conflict myself. Thanks for your contribution!

authors: haarts marcgraub

repo: leisim/logger


text:
add decimal points

add decimal point like in the image below

Request since Dec still no decimal

This has been added with the last update

repo: lejeffe/MonsterHP


text:
Fix ListView Component

The list view component was using the createMockComponent, even though there was a mock component written for the list view.
This PR activates this component, and fixes the problems in it.
Should fix #12

there's some more work to be done on the listview, but I think this will unblock some people so :+1:

authors: RealOrangeOne lelandrichardson

repo: lelandrichardson/react-native-mock


text:
在服务器使用茶簸箕的时候出现了一些bug并导致客户端崩溃

在服务器使用茶簸箕的时候出现了一些问题，当我在发酵模式下向茶簸箕内放入半组绿茶青叶之后再用“shift+左键”快捷放入一组便会导致崩溃，这里是崩溃报告：https://paste.dimdev.org/salawocuqe.rb

服务器版本：CatServer-1.12.2
客户端版本：1.12.2
Forge版本：14.23.5.2855
模组版本：TeaStory-3.3.2-B31.815-1.12.2

需要指出的是，在服务器内如放入茶叶数量超过24个（不含24个），处理时间便会变为负数，在单人模式下没有发现此问题，也没有因为上面的做法而崩溃。

1.12.2 最新版本为 3.3.3-B33.418
CatServer 环境造成的崩溃一概不予修复

repo: lemon-slice-studio/Tea-the-Story


text:
Spanish translation

{   "localizedName": "Español (MX)",   "pluginVersion": "2.1.3",   "authors": "lenis, Plazmaz",   "generalNotAuthenticated": "No estas registrado o ya has iniciado sesion!",   "generalNotLoggedIn": "No has iniciado sesion!",   "generalPasswordLength": "La clave debe tener entre %min% y %max% letras y/o numeros!",   "generalUnknownHash": "Tu cuenta utiliza un algoritmo desconocido, por favor reporta esto con un administrador.",   "loginTriesExceeded": "Has superado el limite de intentos (%max%)",   "loginFail": "Ha fallado el inicio de sesion! La clave introducida es incorrecta.",   "loginSuccess": "Sesion iniciada correctamente.",   "changeFail": "No se pudo modificar, clave incorrecta!",   "changeSuccess": "Clave modificada correctamente!",   "logoutFail": "No se pudo cerrar sesion! %error%",   "logoutSuccess": "Sesion cerrada correctamente!",   "registerAlready": "Esta cuenta ya esta registrada!",   "registerCaptcha": "Por favor introduce el captcha que aparece en el mapa por el chat!",   "registerSuccess": "Te has registrado correctamente.",   "commandError": "Ha ocurrido un error al ejecutar el comando: %error%",   "commandUnknown": "Comando desconocido! Usa %cmd% para obtener ayuda.",   "commandArguments": "Faltan argumentos! Usa %cmd% para obtener ayuda.",   "lacHelp": "Muestra esta pagina de ayuda.",   "lacRmpass": "Borra la clave de un jugador.",   "lacRmpassArgs": " <jugador>",   "lacNotRegistered": "No hay ningun jugador registrado con ese nombre!",   "lacResetPlayer": "Cuenta reiniciada correctamente!",   "lacImport": "Importar desde otra base de datos.",   "lacImportArgs": " <source> [args]",   "lacUnknownSource": "Tipo de base de datos desconocido, por favor mira la wiki!",   "lacImportFailed": "No se pudo importar, por favor mira el log!",   "sessionContinue": "Tu ultimo inicio de sesion se continuo a partir de %sec% seconds ago.",   "messageLogin": "Por favor inicia sesion usando /login <clave>",   "messageRegister": "Por favor registrate usando /register <clave>",   "errorRefreshProfile": "Tu cuenta ha sido modificada por staff, por favor vuelve a entrar!",   "errorNotRegistered": "El jugador no se ha registrado!",   "kickAlreadyOnline": "Ya hay un jugador con tu nombre en el servidor!",   "kickUsernameChars": "Tu nombre contiene caracteres ilegales!",   "kickUsernameLength": "Tu nombres es muy largo/corto! (%min% - %max% caracteres)",   "kickTimeOut": "Tiempo de inicio de sesion agotado!" }

https://github.com/lenis0012/Translations/wiki/Contribute
Please follow the isnstructions on there

xDD sorry, i dont use Github

@zuhir no problem. thew instructions are easy to follow :)

Author should also be "zuhir"

authors: Plazmaz lenis0012 zuhir


text:
You must specify the input hosts file(only one)

I can't run the update_hosts.py
Sorry to bother with such lame questions, but I cannot figure out how to manually specify the input or fix this problem..

Please first check the usage before you open an issue.
Sample: update_hosts.py host
usage: update_hosts [OPTIONS] FILE
A simple multi-threading tool used for updating hosts file.

Options:
  -h, --help             show this help message and exit
  -s DNS                 set another dns server, default: 2001:4860:4860::8844
  -o OUT_FILE            output file, default: inputfilename.out
  -t QUERY_TYPE          dig command query type, default: aaaa
  -c, --cname            write canonical name into hosts file
  -n THREAD_NUM          set the number of worker threads, default: 10

authors: lennylxx scdlzdh


text:
Lens stops updating pod listing with real time data for all clusters except the most recently connected

Describe the bug
Pod listings and list details stop updating for a connected cluster after opening a connection to another cluster in Lens. Performing actions on the listed pods also shows no change, for example, if I Evict a pod normally it will immediately change to Terminating state. In a cluster which was not the most recently connected cluster, if I Evict a pod, the status continues to state Running. I need to reconnect to the cluster to observe the updates.
This behaviour only started roughly within the last week or so.
To Reproduce
Steps to reproduce the behavior:

Connect to a cluster
Connect to 2nd cluster
Observe that listed pods or details such as pod CPU/RAM never update when going back to the 1st connected cluster, but continue to update in the 2nd connected cluster.
Disconnect/reconnect to the first cluster to fix this, but observe now that the 2nd cluster is instead no longer updating.

Expected behavior
All pods listings should continue to update for all connected clusters, not just the most recently connected cluster.
Environment (please complete the following information):

Lens Version: 2024.1.170738-latest
OS: Ubuntu 22.04
Installation method (e.g. snap or AppImage in Linux): AppImage

Logs:
In a scenario such as the following where the staging cluster is bugged and not updating, whilst develop is not bugged, both appear to be outputting similar logs as I switch between viewing each in Lens:
info:    ┏ [CLUSTER]: refresh +21s
info:    ┃ [1] {
info:    ┃ [2]   id: 'eb3c852577cef3c61182448eb714ccad',
info:    ┃ [3]   name: 'develop',
info:    ┃ [4]   ready: true,
info:    ┃ [5]   online: true,
info:    ┃ [6]   accessible: true,
info:    ┃ [7]   disconnected: false
info:    ┗ [8] }
info:    ┏ [CLUSTER]: refresh +9s
info:    ┃ [1] {
info:    ┃ [2]   id: 'd28a0b7e0f264652b5cb1db4e9462d5a',
info:    ┃ [3]   name: 'staging',
info:    ┃ [4]   ready: true,
info:    ┃ [5]   online: true,
info:    ┃ [6]   accessible: true,
info:    ┃ [7]   disconnected: false
info:    ┗ [8] }
info:    ┏ [CLUSTER]: refresh +21s
info:    ┃ [1] {
info:    ┃ [2]   id: 'eb3c852577cef3c61182448eb714ccad',
info:    ┃ [3]   name: 'develop',
info:    ┃ [4]   ready: true,
info:    ┃ [5]   online: true,
info:    ┃ [6]   accessible: true,
info:    ┃ [7]   disconnected: false
info:    ┗ [8] }
info:    ┏ [CLUSTER]: refresh +9s
info:    ┃ [1] {
info:    ┃ [2]   id: 'd28a0b7e0f264652b5cb1db4e9462d5a',
info:    ┃ [3]   name: 'staging',
info:    ┃ [4]   ready: true,
info:    ┃ [5]   online: true,
info:    ┃ [6]   accessible: true,
info:    ┃ [7]   disconnected: false
info:    ┗ [8] }

I have the same problem.

Thanks for reporting this! We are looking into it!

A fix should be included in the upcoming release.

Fixed with latest release: https://github.com/lensapp/lens/releases/tag/v2024.1.300751-latest

repo: lensapp/lens


text:
Message of type "MapShouldUpdateMessage" shown as change of undefined quality

Upon entering the Salt Steppes, I received the following messages:

{
	"messages": [
		{
			"type": "MapShouldUpdateMessage"
		},
		{
			"area": {
				"name": "The Salt Steppes",
				"id": 111160,
				"childAreas": [],
				"image": "zailing_steppes",
				"moveMessage": "The dark waters of the East. You zail the Salt Steppes.",
				"hideName": false,
				"showOps": true,
				"premiumSubRequired": false,
				"canChangeOutfit": true,
				"canMoveTo": false,
				"discovered": false,
				"unlocked": false,
				"parentAreaKey": "d4c9e4922b3de5c8bfc888051e5a8c98",
				"type": "District"
			},
			"type": "AreaChangeMessage",
			"message": "The dark waters of the East. You zail the Salt Steppes.",
			"image": "zailing_steppes",
			"tooltip": "The dark waters of the East. You zail the Salt Steppes."
		},
		{
			"possession": {
				"enhancements": [],
				"qualityPossessedId": 160481976,
				"name": "Zailing on:",
				"nameAndLevel": "Zailing on: The Salt Steppe",
				"levelDescription": "The Salt Steppe",
				"description": "What part of the Unterzee do you find yourself in?",
				"nature": "Status",
				"category": "Circumstance",
				"effectiveLevel": 4,
				"level": 4,
				"himbleLevel": 0,
				"equippable": false,
				"progressAsPercentage": 0,
				"allowedOn": "Character",
				"image": "waves4",
				"id": 142279
			},
			"changeType": "Decreased",
			"priority": 3,
			"isSidebar": false,
			"type": "QualityExplicitlySetMessage",
			"message": "The dark waters of the East. You zail the Salt Steppe.",
			"image": "waves4",
			"tooltip": "What part of the Unterzee do you find yourself in?"
		},
		{
			"possession": {
				"enhancements": [],
				"qualityPossessedId": 160482058,
				"name": "Zee Peril",
				"nameAndLevel": "Zee Peril Perilous",
				"levelDescription": "Perilous",
				"description": "How dangerous are the waters you are zailing on?",
				"nature": "Status",
				"category": "Circumstance",
				"effectiveLevel": 200,
				"level": 200,
				"himbleLevel": 0,
				"equippable": false,
				"progressAsPercentage": 0,
				"allowedOn": "Character",
				"image": "anglercrab",
				"id": 142290
			},
			"changeType": "Decreased",
			"priority": 2,
			"isSidebar": false,
			"type": "QualityExplicitlySetMessage",
			"message": "You zail on perilous waters.",
			"image": "anglercrab",
			"tooltip": "How dangerous are the waters you are zailing on?"
		},
		{
			"possession": {
				"enhancements": [],
				"qualityPossessedId": 160623572,
				"name": "Discovered: The Khanate",
				"nameAndLevel": "Discovered: The Khanate 1",
				"description": "",
				"nature": "Status",
				"category": "Hidden",
				"effectiveLevel": 1,
				"level": 1,
				"himbleLevel": 0,
				"equippable": false,
				"progressAsPercentage": 0,
				"allowedOn": "Character",
				"image": "khansheart_port",
				"id": 141670
			},
			"changeType": "Unaltered",
			"priority": 3,
			"isSidebar": false,
			"type": "QualityExplicitlySetMessage",
			"message": "An occurrence! Your 'Discovered: The Khanate' Quality is now 1!",
			"image": "khansheart_port",
			"tooltip": ""
		},
		{
			"possession": {
				"enhancements": [],
				"qualityPossessedId": 160482052,
				"name": "Zailing Route",
				"nameAndLevel": "Zailing Route 3 - Locally",
				"levelDescription": "Locally",
				"description": "",
				"nature": "Status",
				"category": "Hidden",
				"effectiveLevel": 3,
				"level": 3,
				"himbleLevel": 0,
				"equippable": false,
				"progressAsPercentage": 0,
				"allowedOn": "Character",
				"image": "evade2",
				"id": 142286
			},
			"changeType": "Decreased",
			"priority": 3,
			"isSidebar": false,
			"type": "QualityExplicitlySetMessage",
			"message": "An occurrence! Your 'Zailing Route' Quality is now 3 - Locally!",
			"image": "evade2",
			"tooltip": ""
		},
		{
			"possession": {
				"enhancements": [],
				"qualityPossessedId": 160482054,
				"name": "Zailing towards",
				"nameAndLevel": "Zailing towards 0",
				"description": "",
				"nature": "Status",
				"category": "Hidden",
				"effectiveLevel": 0,
				"level": 0,
				"himbleLevel": 0,
				"equippable": false,
				"progressAsPercentage": 0,
				"allowedOn": "Character",
				"image": "placeholder2",
				"id": 142281
			},
			"changeType": "Lost",
			"priority": 3,
			"isSidebar": false,
			"type": "QualityExplicitlySetMessage",
			"message": "Your 'Zailing towards' Quality has gone!",
			"tooltip": ""
		},
		{
			"possession": {
				"enhancements": [],
				"qualityPossessedId": 160482106,
				"name": "Zailing...",
				"nameAndLevel": "Zailing... 0",
				"description": "You are closing in on your destination.",
				"nature": "Status",
				"category": "Progress",
				"effectiveLevel": 0,
				"level": 0,
				"himbleLevel": 0,
				"equippable": false,
				"progressAsPercentage": 0,
				"allowedOn": "Character",
				"image": "waves3",
				"id": 142283
			},
			"progressBar": {
				"type": "Target",
				"leftScore": 0,
				"rightScore": 80,
				"startPercentage": 203.75,
				"endPercentage": 0
			},
			"changeType": "Lost",
			"priority": 2,
			"isSidebar": false,
			"type": "QualityExplicitlySetMessage",
			"message": "Zailing... has been reset! A new leg on your journey, or an arrival at port?",
			"image": "waves3",
			"tooltip": "0 points, 0% of the way to 80"
		},
		{
			"possession": {
				"enhancements": [],
				"qualityPossessedId": 160482145,
				"name": "Zee Legs",
				"nameAndLevel": "Zee Legs 56",
				"description": "How much have you acclimated to the Zee?
 At Wolfstack Docks, this quality can be used to increase your Zeefaring skill.",
				"nature": "Status",
				"category": "Progress",
				"effectiveLevel": 56,
				"level": 56,
				"himbleLevel": 0,
				"equippable": false,
				"progressAsPercentage": 0,
				"allowedOn": "Character",
				"image": "sailor",
				"id": 142289
			},
			"changeType": "Decreased",
			"priority": 2,
			"isSidebar": false,
			"type": "StandardQualityChangeMessage",
			"message": "You've gained 1 x Zee Legs (new total 56). ",
			"image": "sailor",
			"tooltip": "How much have you acclimated to the Zee?
 At Wolfstack Docks, this quality can be used to increase your Zeefaring skill."
		},
		{
			"possession": {
				"enhancements": [],
				"qualityPossessedId": 160482053,
				"name": "Distance to Zail",
				"nameAndLevel": "Distance to Zail 80",
				"description": "How far must you go?",
				"nature": "Status",
				"category": "Story",
				"effectiveLevel": 80,
				"level": 80,
				"himbleLevel": 0,
				"equippable": false,
				"progressAsPercentage": 0,
				"allowedOn": "Character",
				"image": "waves3",
				"id": 142288
			},
			"changeType": "Increased",
			"priority": 3,
			"isSidebar": false,
			"type": "QualityExplicitlySetMessage",
			"message": "An occurrence! Your 'Distance to Zail' Quality is now 80!",
			"image": "waves3",
			"tooltip": "How far must you go?"
		}
	]
}

Fixed in 0d2fd39c4f200056abbc092c01b4722c27e1bdca

authors: kkotenko lensvol

repo: lensvol/fl-quality-lantern


text:
Chosen: Keep Multiple Selection Order

I am using Chosen's Multiple selection with angular model. I want to be able to track user selected order. For example, if a user select option2 first then option1, I want to get the result in the order of option2 and option1. But chosen sorts user selected options. Is there a way I can tell chosen to not sorting the result?

Hi @Tomy1209, thanks for reporting your issue.
You can use a watcher that saves all your selections. So that would be a 2nd object which would be the history of all selections.
Something like that:
 $scope.$watch('chosenValue', function() {
      history.push(newItem);
  });

Thanks for your answer. but I'm not clear your solution.
I have a plunker that describes this problem, can you help me fixed it. Thank you a lot.
https://plnkr.co/edit/TnrmiHFffbItDB28855I?p=preview

Hi @Tomy1209,
I added a filter function and a list with your results.
Working on plunker https://plnkr.co/edit/jMECxUvAn9qUc0EgCF9i?p=preview

 $scope.selectedValues = [];

 $scope.$watch('countries', function(nowSelected, previousSelected) {
    if (!nowSelected) {
      // sometimes selected is null or undefined
      return;
    }

    var newItem = $scope.arr_diff(previousSelected, nowSelected);

    $scope.selectedValues.push(newItem);
  });

  $scope.arr_diff = function(a1, a2) {

    var a = [],
      diff = [];

    for (var i = 0; i < a1.length; i++) {
      a[a1[i]] = true;
    }

    for (var i = 0; i < a2.length; i++) {
      if (a[a2[i]]) {
        delete a[a2[i]];
      } else {
        a[a2[i]] = true;
      }
    }

    for (var k in a) {
      diff.push(k);
    }

    return diff;
  };

Hi @leocaseiro leocaserio,
I want select option3, then option 1 and option 2 so in html view will display similar,
and the model i get also similar that
Is there any way to fix it ?

Sorry @Tomy1209, I'm confused.
What do you meant "display similar".

oh sorry, my english is not good
i mean, it will display option3, option2, option1 but not option1, 2, 3

Hi @Tomy1209, now I understand what you meant.
You want to keep the order of your chosen while you select it.
Well, unfortunately, that's not a chosen functionality, I suggest you try to implement angular-ui which does exactly what you need: https://angular-ui.github.io/ui-select/
Otherwise, we would have to change the library to https://github.com/tristanjahier/chosen-order.

@leocaseiro, thanks for your suggestion

repo: leocaseiro/angular-chosen


text:
Threshold in arcface loss

In arcface loss a certain threshlod is used: theta_valid = tf.where(y_pred_vals > self.threshold, theta, self.theta_min - theta). I didn't understand why we should use this threshold, how to determine its value and finally if we violet the threshold we set the value to 'self.theta_min - theta' based on what this value is chosen? Thanks in advance.

That threshold is actually added by me, and it just controls the adjusted y_pred_vals will not go beyond its original value. We can plot to see how arcface is modifying the y_pred_vals.

Without the threshold check, that there will be some value on the tail go larger than its original value.xx = np.arange(-1, 1, 0.01)

for margin in np.arange(0.1, 1.0, 0.1):
    margin_cos, margin_sin = tf.cos(margin), tf.sin(margin)
    threshold = tf.cos(np.pi - margin)
    theta_min = -2

    theta = xx * margin_cos - tf.sqrt(1 - tf.pow(xx, 2)) * margin_sin
    # theta = tf.where(xx > threshold, theta, theta_min - theta)
    plt.plot(xx, theta, label="margin: {}".format(margin))
plt.grid(True)
plt.legend()

With the threshold check, and its just a simple adjust on the value, that turning the up down.xx = np.arange(-1, 1, 0.01)

for margin in np.arange(0.1, 1.0, 0.1):
    margin_cos, margin_sin = tf.cos(margin), tf.sin(margin)
    threshold = tf.cos(np.pi - margin)
    theta_min = -2

    theta = xx * margin_cos - tf.sqrt(1 - tf.pow(xx, 2)) * margin_sin
    theta = tf.where(xx > threshold, theta, theta_min - theta)
    plt.plot(xx, theta, label="margin: {}".format(margin))
plt.grid(True)
plt.legend()

You can also modify above plotting function to check your thoughts.

I really appreciate your effort but when I calculate cos(theta+margin) manually, I found that the first plot is correct and I think mathematically, the second plot is wrong as the cos of any angle should be within [-1, 1] but it exceeds -1.

Ya, if feed back into cos, it's not correct, Just this value here will multiply with scale and then go into categorical_crossentropy with from_logits=self.from_logits in next step, the value range doesn't matter. You can also use something like theta_valid = tf.where(y_pred_vals > self.threshold, theta, -1) or just comment off it.


text:
Probleme da Homegear bereits installiert ist

Hi,
ich habe auf meinem RPi3 bereits Homegear installiert, möchte ber nun mal YAHM testen da es HomematicIP kompatibel ist. Ich habe nun einfach mal YAHM installiert, kann aber mein Funkmodul nicht akitivieren, bekomme folgende Fehlermeldung:
@openHABianPi:~# yahm-module -m hm-mod-rpi-pcb enable
Executing hm-mod-rpi-pcb module_install()
Found hardware: Raspberry Pi 3
Trying to disable bluetooth on Raspberry Pi 3 to use HM-MOD-RPI-PCB
Trying to disable serial console
Serial already disabled
Preparing devices inside LXC container
Creating symlink /dev/mmd_bidcos...
ln: failed to create symbolic link 'mmd_bidcos': File exists

Was kann ich tun?

Welches Modul hast du aktiviert?
Von meinem iPhone gesendet

Am 13.02.2018 um 18:52 schrieb Tech4Ever notifications@github.com:
Hi,
ich habe auf meinem RPi3 bereits Homegear installiert, möchte ber nun mal YAHM testen da es HomematicIP kompatibel ist. Ich habe nun einfach mal YAHM installiert, kann aber mein Funkmodul nicht akitivieren, bekomme folgende Fehlermeldung:
failed to create symbolic link 'mmd_bidcos': File exists
Was kann ich tun?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Das hm-mod-rpi-pcb von ELV.

Ich meine welches YAHM Modul du verwendest ;)
Von meinem iPhone gesendet

Am 13.02.2018 um 19:29 schrieb Tech4Ever notifications@github.com:
Das hm-mod-rpi-pcb von ELV.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Mmh, gute Frage... Ich habe es einfach nach dieser Anleitung installiert https://openhabdoc.readthedocs.io/de/latest/HomeMatic_YAHM/
Also :
wget -nv -O- https://raw.githubusercontent.com/leonsio/YAHM/master/yahm-init | sudo -E bash -s quickinstall
Und dann :
yahm-module -m hm-mod-rpi-pcb enable
Nun wollte ich :

yahm-module -m homematic-ip enable
Ausführen und scheitere an og Fehlermeldung..

Hi
Bitte pivccu-driver als Modul verwenden.
Von meinem iPhone gesendet

Am 13.02.2018 um 19:46 schrieb Tech4Ever notifications@github.com:
Closed #163.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

ok, werde es später ausprobieren und hier berichten.
Nur um sicher zu gehen: nach Installation von YAHM auf meinem RPi3 mit installiertem hm-mod-rpi-pcb Funkmodul kann ich dann Homematic sowie Homematic IP Geräte steuern, richtig?
Ich lese halt ständig in unterschiedlichen Foren widersprüchliche Aussagen...

Du musst zwischen Hard und Software unterscheiden
Hardware hm-mod-rpi-pcb Funkmodul kann ab fw 2.0 Homematic IP
YAHM hm-mod-rpi-pcb Modul kann nur homematic
YAHM pivccu-driver Modul kann beides
Gruß
Leo
Von meinem iPhone gesendet

Am 14.02.2018 um 06:52 schrieb Tech4Ever notifications@github.com:
ok, werde es später ausprobieren und hier berichten.
Nur um sicher zu gehen: nach Installation von YAHM auf meinem RPi3 mit installiertem  Funkmodul kann ich dann Homematic sowie Homematic IP Geräte steuern, richtig?
Ich lese halt ständig in unterschiedlichen Foren widersprüchliche Aussagen...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Hardware hm-mod-rpi-pcb Funkmodul kann ab fw 2.0

Ok, Danke für die Info. Jetzt stellt sich mir die Frage, wie bekomme ich die FW Version meines Hardware Moduls heraus und wie update ich es gegebenenfalls? Kannst Du mir da auch nochmal weiterhelfen?

Sag mal was treibst du mit dem Funkmodul? Hab im eq3/OCCU kurz gesehen?
Update geht mit eq3configcmd Tool der ccu
Schau einfach im homematic Forum da gibt es genug Beispiele
Bin bis Sonntag unterwegs und kann dir kein Befehl liefern.
Von meinem iPhone gesendet

Am 14.02.2018 um 07:19 schrieb Tech4Ever notifications@github.com:
Hardware hm-mod-rpi-pcb Funkmodul kann ab fw 2.0
Ok, Danke für die Info. Jetzt stellt sich mir die Frage, wie bekomme ich die FW Version meines Hardware Moduls heraus und wie update ich es gegebenenfalls? Kannst Du mir da auch nochmal weiterhelfen?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

naja, ich bekomme diese eq3configcmd Tool einfach nicht zum Laufen, vermutlich wegen fehlender Linux Kenntnisse. Habe es bereits über git gecloned und auch install.sh ausgeführt, jetzt komme ich nicht weiter.
Bei Ausführung bekomme ich einen Fehler:
@openHABianPi:~# eq3configcmd update-coprocessor -p /dev/ttyAMA0 -c -v -d /opt/hm/firmware
-bash: eq3configcmd: command not found

Bin am we zurück und schicke dir die Befehle
Ist bei YAHM dabei. Musst du Library path setzen. Ist Kleinigkeit kann es aber von unterwegs nicht nachsehen.
Gruß
Leo
Von meinem iPhone gesendet

Am 15.02.2018 um 16:20 schrieb Tech4Ever notifications@github.com:
naja, ich bekomme diese eq3configcmd Tool einfach nicht zum Laufen, vermutlich wegen fehlender Linux Kenntnisse. Habe es bereits über git gecloned und auch install.sh ausgeführt, jetzt komme ich nicht weiter.
Bei Ausführung bekomme ich einen Fehler:
@openHABianPi:~# eq3configcmd update-coprocessor -p /dev/ttyAMA0 -c -v -d /opt/hm/firmware
-bash: eq3configcmd: command not found
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Hallo Leonsio,
erstmal vielen Dank, dass Du trotz Reisetätigkeit stets geantwortet hast!
Ich habe es endlich geschafft meine FW zu aktualisieren!! Das Thema ist somit erledigt. Das Anlernen eines HomematicIP Heizkörperthermostats hat auch bereits geklappt!
Nun bekomme ich allerdings keine Verbindung zu meinem alten Homematic (ohne IP) Rolladenaktor. Muss ich
yahm-module -m hm-mod-rpi-pcb enable
auch noch ausführen (hab ich nämlich noch nicht gemacht nach dem ich ein altes image aufgespielt habe) oder soll der pivccu-driver sowohl Homematic als auch HomematicIP Geräte abdecken?

Der Treiber kann beides.
Von meinem iPhone gesendet

Am 16.02.2018 um 18:23 schrieb Tech4Ever notifications@github.com:
Hallo Leonsio,
erstmal vielen Dank, dass Du trotz Reisetätigkeit stets geantwortet hast!
Ich habe es endlich geschafft meine FW zu aktualisieren!! Das Thema ist somit erledigt. Das Anlernen eines HomematicIP Heizkörperthermostats hat auch bereits geklappt!
Nun bekomme ich allerdings keine Verbindung zu meinem alten Homematic (ohne IP) Rolladenaktor. Muss ich
yahm-module -m hm-mod-rpi-pcb enable
auch noch ausführen (hab ich nämlich noch nicht gemacht nach dem ich ein altes image aufgespielt habe) oder soll der pivccu-driver sowohl Homematic als auch HomematicIP Geräte abdecken?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Super, jetzt klappt alles (musste meinen Rolladenaktor mal resetten). Vielen Dank für die Hilfe!!

repo: leonsio/YAHM


text:
AutoSuggestBox's popup will not follow and cannot be turned off with Esc/LostFocus

Describe the bug
AutoSuggestBox's popup will not follow and cannot be turned off with Esc/LostFocus
To Reproduce
Steps to reproduce the behavior:
1.<ui:AutoSuggestBox ItemsSource="{Binding MyData}" PlaceholderText="Search..." />
2. Type some text to open popup
3. Scroll page
4. See error: popup not follow AutoSuggestBox, and can't press Esc or click blank position to close it
Expected behavior

Popup follow AutoSuggestBox
Press Esc or click blank position to close popup

Screenshots

Desktop (please complete the following information):

OS: [e.g. Windows 11]
.NET: [e.g. net6.0-windows11-22000.739]
Version: 2.01

Similarly, if you move the main window around, the AutoSuggestBox results is not snapped to the input field. Also it remains in front of other external windows if something comes in front of the main window.

authors: CodingOctocat rynm

repo: lepoco/wpfui


text:
My short onboarding experience

Hi there, I'm trying to get into web development with Leptos but experience some rough edges with this repo in particular:

My 1st problem is that the examples are excluded from the root Cargo workspace, which makes it harder to explore them in my text editor (VS Code) because rust analyzer can't work on excluded packages (I know that this topic was brought up here and there, but I don't quite get what the outcome is)
running examples with cargo-make my experience was a little rough because

I didn't switch rust to nightly, there is a nightly note in the toplevel readme, but in the readme in examples there are no notes that you should switch to nightly to run the examples
When you cd into some example A and perform rustup override set nightly everything is fine, but then you wanna check out other example, you cd there and now rust is set to stable again => you are confused.
for it to work normally you either need to cd to root of the repo and do a rustup override set nightly there, or set nightly as the default which I don't wanna do. Another option is to add a rustuptoolchain.toml which this repo does not for some reason, there is a PR: #1979 for that I guess.

restarting/stopping examples: main examples readme says how to run examples, but not how to stop them. I had to explore examples/cargomake/process.toml to see a stop task there, I think that the examples readme has to teach not only how to start things but also how to stop them.

P.S. onboarding matters, the book is great but that is more about the theory. The repo is more about practice (imo).

opting out of workspaces also include this issues:

heavy total examples size
longer compile times
when packages are in a workspace they share same compiled libraries so there is no need to recompile them every time and they don't use extra space on disk.

is it just me or cargo make in the root of the repo causes it to test everything in circles? I see the same running 46 tests (output) over and over again.

Appreciate the feedback, let's take a look at some of this

I would not recommend using cargo make, instead I would use either the standard cargo leptos watch command or trunk, depending on the example. Our README IMO should not recommend that. I'll talk with the team
This one depends on how you configure your rust. If you're using rustup, you can do rustup default nightly, and then you won't have to do that. Alternatively, the PR you mentioned is for a different nix issue

Re: having the examples in a workspace — I know we've gone back and forth on this several times. It's currently set up hte way it is because the cargo-leptos tool is designed for the use case of people's actual apps, not the use case of having 20 unrelated examples in a repo. So for example, if I add examples/todo_app_sqlite to the root Cargo.toml workspace members, and then use cargo leptos watch from examples/todo_app_sqlite, it compiles and then panics because it can't find Todos.db. This is because the binary is now located in target in the root of the repo, not in the example directory where I'm running it, etc., so the relative path is wrong. The same thing may well be true for the static file serving setups, etc. I'm sure this could all be fixed (PR welcome) but each of the examples is written to be a standalone project that can be pulled out of the repo and used on its own, so any fix would have to be compatible with that.
Re: running/stopping the examples — thanks for the feedback. I'll clarify the examples README to add info about cargo make stop, and also to clarify that using cargo make is not a necessary part of running the examples or of using Leptos, which is a confusion I've seen elsewhere. I guess we could add rust-toolchain.toml files too — I'll create a separate issue for that.

Thanks for making this issue! I'm having a fairly similar experience (though less with cargo-make). I figured I may as well tag in here for an additional users experience (albeit i'm not a web-dev but data-science fella).
The last point in the post-script you mentioned I think is very important. I'm trying to rely on the book as it's the only source of documentation I've been able to find (an unfortunate dearth of blog posts etc). It mentions very briefly some concepts that are obviously very important! But then does not illustrate how to implement them in some minimal examples. Chapter 3 where it walks through progressively improving the counter example was very helpful. I found it to be the most applicable. From thereon, though, the content cannot be reproduced on my end.
The jump from the book to the examples is very tough! The examples are workspaced, so they can't be plucked out, and they can't be created as a template using cargo leptos because of the mono-repo structure. And lastly, the examples have Cargo.toml files that are 100+ lines long! That alone is a lot to try and take i.t
All that said, this is a really great tool and I'm enjoying being able to use it. It's just the uptake is very slow and tough!

From thereon, though, the content cannot be reproduced on my end.

@JosiahParry I'm a little confused by this part: Up through Chapter 9 (the router), almost every subsection ends with a CodeSandbox with a complete, working example illustrating the concepts. What do you mean by the content not being reproducible?

The jump from the book to the examples is very tough! The examples are workspaced, so they can't be plucked out, and they can't be created as a template using cargo leptos because of the mono-repo structure.

I'd suggest git cloning the repo and then cp or copy and pasting any of the example directories and mess around with them.

Thanks for making this issue! I'm having a fairly similar experience (though less with cargo-make). I figured I may as well tag in here for an additional users experience (albeit i'm not a web-dev but data-science fella).
The last point in the post-script you mentioned I think is very important. I'm trying to rely on the book as it's the only source of documentation I've been able to find (an unfortunate dearth of blog posts etc). It mentions very briefly some concepts that are obviously very important! But then does not illustrate how to implement them in some minimal examples. Chapter 3 where it walks through progressively improving the counter example was very helpful. I found it to be the most applicable. From thereon, though, the content cannot be reproduced on my end.
The jump from the book to the examples is very tough! The examples are workspaced, so they can't be plucked out, and they can't be created as a template using cargo leptos because of the mono-repo structure. And lastly, the examples have Cargo.toml files that are 100+ lines long! That alone is a lot to try and take i.t
All that said, this is a really great tool and I'm enjoying being able to use it. It's just the uptake is very slow and tough!

If you're getting stuck in the book, feel free to ask for help in our Discord, or create a different issue with specifics. We'd love to hear what specifically you're having issues with, so that our book writers can get good back

I've added simpler, non cargo-make instructions back to the examples and we've added toolchain files for all the examples, so I'm going to close this issue now as I don't think there's further concrete action to take.

just saw this one and understood the toolchain setup (nightly) is difficult and confusing.
just a small pointer, you can define the toolchain for a specific task/s in the makefile:
https://github.com/sagiegurari/cargo-make?tab=readme-ov-file#usage-toolchain
for example:
[tasks.rustc-version-nightly]
toolchain = "nightly"
command = "rustc"
args = [ "--version" ]

it will set it up for you and reduce the confusion for users.

authors: JosiahParry adsick benwis gbj sagiegurari

repo: leptos-rs/leptos


text:
Subset selection noting working for jobs

Feature to add:
-See that an input file is 'Select'
-Read particles.star from Select directory
-Find the Extract/{folder ID}
-Then see if it exists in .aws_relion

Fixed issue with commit:
https://github.com/leschzinerlab/AWS/commit/e515d4b90fe1e1e14a36356be0ac8e12d59863c5

repo: leschzinerlab/AWS


text:
Cannot printCallStack for a parallel step with a complex map

I've suggested a test with a complex map like.
s = [s1:[name:"action1-name", body:{
      node() {
        sh 'sleep 3'
        error 'message'
      }
    }], s2:[name: "action2-name", body:{
        node() {
            sh 'sleep 4'
        }
    }]]

    parallel(
      "$s.s1.name":s.s1.body,
      "$s.s2.name":s.s2.body,
      failFast:true
    )

It seems that the script itself works fine, however I get the exception on printCallStack()
``
java.lang.ClassCastException: org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String

#40

We had this issue a while ago and if i remember correctly we had a fix. It is clearly a regression. I'll merge your PR and prepare a fix.

Hey, I can try to use bisect, maybe I can found the commit wit that fix

No, that's ok. It is a problem with Groovy.
You can reproduce it by
    @Test
    void name() throws Exception {
        String s1 = '1234'
        def m = [
            "$s1":1,
            aKey:2
        ]
        assertTrue(m instanceof Map)
        m.sort()
    }

I removed the unnecessary sort.

authors: headcrabmeat ozangunalp

repo: lesfurets/JenkinsPipelineUnit


text:
Use a major-mode

I was just playing around with the demos. One issue I had was that all the bindings are overridden by my custom bindings. This is what I expect when I use something new in emacs, and normally requires me to just write a few lines that go in the hook of the major mode. However, it seems sturgeon buffers use fundemental mode by default which obviously I cannot add hooks to.
So it might be good to create a major-mode for sturgeon buffers. It doesn't need to do anything, just provide builtin hooks for running code when a sturgeon app is run.
(I see the buttons are coming from button.el, possibly I should be trying to edit the keymaps in button.el, but that is always much more annoying that just editing my own keymap in a hook).

Done. Latest version includes a sturgeon-mode.

repo: let-def/sturgeon

license: isc


text:
Add server, health and config sub-cmd to regproxy cmd

Proposed changes
This PR adds server, health and config sub-command to regproxy command.
It changes a command syntax in regproxy command.

Before

ngsi --stderr info regproxy --host orion-with-keyrock

After

ngsi --stderr info regproxy server --host orion-with-keyrock

Types of changes
What types of changes does your code introduce to the project: Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Update only documentation, not any source code.

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

[X] I have read the CONTRIBUTING doc
[X] I have signed the CLA
[X] I have added tests that prove my fix is effective or that my feature works
[X] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
N/A

Coverage remained the same at 100.0% when pulling 5122bae47ab5b14c70a49e307ee8c13498bb3461 on fisuda:improve/regproxy into f5256a8715f23671bc6329528f79decdf2897875 on lets-fiware:main.

authors: coveralls fisuda

repo: lets-fiware/ngsi-go


text:
Allow a Message to be decomposed into a MessageBuilder

Hey y'all!
This library is really nice to use. I'm working on a project whose flow is essentially the following:

Fetch emails FROM certain addresses and TO certain addresses only via imap
Convert messages from imap's protobuf types to the (much more ergonomic) Message type in this crate.
Clone each Message, changing the FROM address and adding a few BCC addresses.
Send the original message to a file using this library, and the modified message out to the world.

There are a few ways I could go about this, but the easiest thing was to enable decomposing a Message back into a MessageBuilder.
Let me know if y'all are okay with this.
Thanks,
Alex

I think it makes sense to be able to edit a Message (which may come from anywhere: external lib, etc.), and converting it back to a builder is probably the easiest way.

I have been a bit lazy on reviewing this PR but before releasing this I'll have to try a few edge cases, because going from memory on the message builder implementation this implementation may contain a few footguns.

So here are the problems I have with this:
envelope
If the envelope isn't explicitly set when the MessageBuilder is built it gets derived from the To, Cc and Bcc headers. Your current implementation keeps the envelope when converting Message back into a MessageBuilder, effectively setting it as a custom envelope. This means that even if the To, Cc or Bcc headers were to be modified the envelope would stay the same. This is a big footgun. If manually generating the envelope wasn't necessary on the freshly built MessageBuilder it shouldn't have to be done on a MessageBuilder built from a "recycled" Message.
double body encoding
Taking an already encoded body, converting it into a Vec<u8> and then calling into_body on it means that if maybe_encoding were to be set to quoted-printable or base64 the body would get encoded for a second time. This is clearly wrong. Body::dangerous_pre_encoded should have been used here.
revisiting the use-case
Message could be seen as an immutable MessageBuilder. When converting from imap types couldn't you keep the message as a MessageBuilder for the whole time, avoiding the useless MessageBuilder -> Message -> MessageBuilder conversion?

authors: afldcr amousset paolobarbolini

repo: lettre/lettre


text:
Lattice Symmetries

This is a first attempt to formalize the incorporation of lattice symmetries into collision models. For now it mainly automates finding the symmetries of each stencil and converting them into the respective index permutations. The current version at least allows us to check if a collision model obeys all desired lattice symmetries (see the last test in test_symmetry.py)
The code for such a check would look like this:
import lettuce as lt
stencil = ... # some stencil
collision = ... # some collision model
f = ... # some f
symmetry_group = lt.SymmetryGroup(stencil)
for permutation in symmetry_group.permutations:
    assert torch.allclose(collision(f[permutation]), collision(f)[permutation])

Breaking Change:
Swapped the order of transform and relaxation_parameters in the MRT collision model constructor.
@McBs

Hello @Olllom! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file lettuce/collision.py:

Line 17:80: E501 line too long (87 > 79 characters)
Line 53:80: E501 line too long (119 > 79 characters)
Line 58:80: E501 line too long (102 > 79 characters)
Line 60:80: E501 line too long (89 > 79 characters)
Line 64:9: E265 block comment should start with '# '
Line 65:9: E265 block comment should start with '# '
Line 130:80: E501 line too long (100 > 79 characters)
Line 209:80: E501 line too long (101 > 79 characters)

In the file lettuce/symmetry.py:

Line 22:80: E501 line too long (82 > 79 characters)
Line 39:80: E501 line too long (92 > 79 characters)
Line 50:80: E501 line too long (93 > 79 characters)
Line 166:80: E501 line too long (82 > 79 characters)
Line 190:12: E111 indentation is not a multiple of four
Line 191:80: E501 line too long (80 > 79 characters)
Line 195:80: E501 line too long (86 > 79 characters)
Line 197:63: E231 missing whitespace after ','
Line 211:1: W391 blank line at end of file

In the file tests/conftest.py:

Line 10:80: E501 line too long (88 > 79 characters)

In the file tests/test_collision.py:

Line 94:1: W391 blank line at end of file

In the file tests/test_symmetry.py:

Line 67:80: E501 line too long (85 > 79 characters)
Line 107:80: E501 line too long (80 > 79 characters)
Line 119:5: E731 do not assign a lambda expression, use a def
Line 120:80: E501 line too long (82 > 79 characters)
Line 132:80: E501 line too long (82 > 79 characters)

repo: lettucecfd/lettuce


text:
Reran inventories

@maryewal @angela-mc @SimonGreenhill I re-ran the generated inventories now the ABVD data has been updated and the Malekula profiles are fixed. Attached the inventory counts for all of Oceanic and Malekula to this issue for easy viewing. Numbers make sense?
https://share.eva.mpg.de/index.php/s/X6zsJeZxWjS6TFL -> All Oceanic
https://share.eva.mpg.de/index.php/s/NeYQxKPXRJecPMB -> Malekula
Note to myself on how to use my own script >_<:
cldfbench abvdoceanic.inventories --family ocea1241 --output output/inventories.tsv
cldfbench abvdoceanic.inventories --family mala1539 --output output/malekula.tsv

Thanks @antipodite, I think the next step is to look at the distribution here -- what's the average inventory size and does it make sense for POc or Malekula, what are the outliers with massive or tiny inventories and do they make sense. It would also be good to get some independent verification of these (e.g. compare to inventories in phoible?)

Okay, I’ll make some numbers and crosscheck NewCaledonia with my own database. Phoible’s coverage for Oceanic is extremely patchy so unlikely to be of much use. We can do what Mattis did originally again, map the inventory sizes and then the experts in the respective areas can eyeball it and see if it makes sense.

Thanks, Isaac! And, yes, please, I'd like to see a map of inventory sizes. That would be helpful.

cool I'll sus it by monday

@antipodite - thanks. It looks way more sensible at first glance. Still a few high numbers in Malekula, but not nearly as many. Polynesia looks right too. I'll have a closer look and we can see what everyone thinks at the meeting on Thursday too. Sound good to you timewise @angela-mc ?

authors: SimonGreenhill antipodite maryewal

repo: lexibank/abvdoceanic


text:
Map unmapped concepts

Some concepts (mostly language specific) are not linked but are available in Concepticon.

We don't have a built-in mechanism now to merge or add concepts with concept lists in pylexibank. Do you think we should have this? Alternatively, and better - I think - would be to actually add these concepts to the WOLD concept list in Concepticon, although that's a bit painful, with the number of items being baked into the IDs in Concepticon.

Depends also on the concepts: if they are very rare, I would not necessarily bother now, and as wold has this fixed number of 1430 (or 1460?) concepts, any modifications in concepticon should somehow indicate that these concepts are not the primary ones, to keep the original name of the list.

As far as I know, there's already the "core meaning" flag in WOLD which flags meanings not in IDS.

Yes, but I would not want to change from Haspelmath-2009-1460 to Haspelmath-2009-1498, given that these 1460 concepts are the ones usually discussed, and that this list-name was linked and used in quite a few projects and websites so far.

BTW, @tresoldi, could you give some examples, please?

@natalia-morozova wanted to do this, as she will later move to the orthographic profiles (could not mention her before as she was not a contributor).
As for concept mapping, @xrotwang is right, and our blog posts on using pyconcepticon are a good starting point: https://calc.hypotheses.org/1820
@LinguList as for examples, they are those at the bottom of https://github.com/lexibank/wold/blob/master/cldf/parameters.csv : in some cases they are missing because the gloss ("the river"), in other cases because they were added to Concepticon ("the cassava flour"). But I can see the point of not coming up with a Haspelmath-2009-1498 list, and manually adding the missing ones with the installation script does not sound so elegant. Do you prefer to leave the concept list untouched?

Each of the authors (or author teams) provided counterparts (translational equivalents) for items on a fixed list of 1,460 items, called the LWT meaning list (§3).

The addons are a result of people changing individual info in their wordlists, so you could link them to haspelmath-2009-1460, but I'd be strictly against changing the name, although this is no problem for th econcepticon, as we have other lists, like Matisoff, where the name does not reflect the number of items, as the author SAYS to use 200, but effectively uses so many a, b, and c subsections that the list is more than 210 items...

But this is also "classical" concepticon practice, and the identifiers by WOLD are all with 9999, so even they reflect that this is a secondary individual meaning, non-canonical. Just wanted to make this point clear.

We could then keep the Haspelmath-2009-1460 name/list, but including new entries, keeping the ID pattern, and trying as much as possible to only link to concepts already used in the list so we don't miss the "intralist" comparability (which is the right thing in most cases, with "river" and "the river" as equivalents).

I think @LinguList is right that these meanings/forms are another class of data in WOLD, which may even come with less quality control. So spending effort on making data comparable which was to some extent dismissed by the WOLD editors may not be worth it.

It may be interesting to actually look at NUMBERS of how many "the river" is there, as opposed to "the river or stream". But if we agree that the purpose of concepticon is to share the actual wold list, as it is presented in the literature, lexibank-wold may additionally link more concepts to share the data, but with an additional concepts.csv, which would spare us the updating of concepticon here.

There 414 entries which are not mapped (of 66283, 0.6%). Guess we should drop the issue?

It shows how important it is to check the dimensions of inconsistencies.

authors: LinguList tresoldi xrotwang

repo: lexibank/wold


text:
Deprecated Twig_Filter_Method in CurrencyExtension

Hi guys !
I'm getting the following warnings :
The Twig_Filter class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFilter instead.
Using an instance of "Twig_Filter_Method" for filter "currency_convert" is deprecated. Use Twig_SimpleFilter instead.
...
Have you planned to do to something about it ?

Hi, I've updated the Twig extension.

Cool Thanks !! I'll close this issue when you release !

authors: cedric-g etioun

repo: lexik/LexikCurrencyBundle


text:
Ignore time zone at all

Hello!
How can I completely turn off time zone function?
I need to see on a ruler exact time I specified in my script, regardless time zones.
It is possible? tzOffset: 0 didn't help...
Thanks.

The issue I faced with (why I'm asking how to turn off time zones) is the following.
Lets say base definitions - it is time, hardcoded in the script, regardless time zone.
I have everything on timeline - base definitions+3hrs (the ruler starts at 13.00, instead of 10.00, event starts at 15.00, instead of 12.00). Only timeline shows current time correctly regardless time zone. Because of this, it is sometimes out of the left border and doesn't show. And all this with tzOffset: -180. Why?..

I used to replace date.setUTCHours(hours, minutes, 0, 0); to date.setHours(hours, minutes, 0, 0); in today helpers function.

repo: lexkrstn/jquery-sked-tape


text:
Some resources files are not renamed for WinForms apps

When forms or user controls have related .resources files, Obfuscar does not rename them properly and then runtime exceptions can happen.

Fixed in 271e5897aa1637052db945253aa4b435c3f515c0

repo: lextm/obfuscar


text:
Replace abstract Validator with ValidatorBuilder

Fixes #11 (Improves)
Key notes:

Totally decoupled ServerRequestValidator and ResponseValidator
Validators are created using builder
Schemas are created with designated schema factories. The should be probably moved to Schema-level namespace and reused from other components
Tried to make psr/cache optional (suggested) in composer.json, since there is a way without using its classes for PSR-7 validator for now. But we should go for it further and refactor other cache usages or revert this change

Also:

No additional unit tests are written at the moment, neither old refactored. I'll create them after architectural agreements are reached

BTW, I hope we should enable phpcs`phpcbffortests` also. Some files look messy.

Notes about the PR:

src/Foundation/CachingProxy.php no more used, a candidate to deletion

Notes about the PR:

src/Foundation/CachingProxy.php no more used, a candidate to deletion

@lezhnev74 any other comments here? should I go further?

@scaytrase Sorry, I've added all those comments but forgot to publish the review :( Please see my comments above.

Looks like every comment is addressed

Yeah, go ahead. It gets better and better!

@lezhnev74 I hope I've finished at this iteration. There is more to do, but I think there is nothing to do around builder and cache usage.
Key changes on cache usage could be observed with this test
https://github.com/lezhnev74/openapi-psr7-validator/pull/16/files#diff-9d635c77879d37c32c6dab1b889d0fb2
I'll update README and ready to fix your comments

Looks like a perfect time to tag 0.12.0. This probably will be interesting to @judgey in #17


text:
relax pattern for baseos

In some cases we have just lfedge/eve:pr-kvm-amd64 and I can't find any reason not to reduce the parameters of the template.
Signed-off-by: Petr Fedchenkov giggsoff@gmail.com

LGTM

authors: giggsoff rvs

repo: lf-edge/eden


text:
Implement CloudSync according to the new design

Can we accept this raised PR as initial complete working model for CloudSync and a separate PR with the design discussed and finalised can be raised as next PR since the design changes are for all the data structure, I would suggest completing the functionality in this PR and rasing new PR for design
Originally posted by @nitu-s-gupta in https://github.com/lf-edge/edge-home-orchestration-go/pull/532#issuecomment-1082689932

In the Design Consideration We also need to store the client object.
Lets consider a scenario where there are two brokers say Broker1.com, Broker2.com
Now Client1 request for Broker1.com(publish) Then Client 2 for Broker2.com(subscribe), Client 3 for Broker1.com(subscribe)
The following info would be stored in the follwoing datastructures

URLData<string,[]string>(url,clientid array): Since its a first time entry the url entry shall be made in URLData with clientid(client1).
PublishData<{topic,url},data>: The entry for the published data shall be made in the PublishData
For Next Step, Since broker2.com is not present in URLData so the entry for it is made, and connection object for the broker is created.
SubscriptionInfo<{topic,url},[]clientid>Entry to the subscriptionInfo is also made with client id of client2
Now Client 3 request for again broker1.com. Now since we havent stored the client object for the Broker1.com, We cannot reuse the current homeedge object since the object is currently for connection to Broker2.com
Hence I would suggest to store clientobjects in separate hashmap mapped to urls. i.e. for every new url entry in the URLData, a entry to MQTTClient is made with url,clientobject
so In all there will be 4 Hashmaps
MQTTClient: <string,*Client>: Storing client object for every new url connection that homeedge makes.
URLData<string,[]string>: For every request publish/subscribe, If the user is not present for the url, entry to the Hashmap is made.
SubscriptionInfo<{topic,url},[]clientids>:For subscritpion request the client id is append for the key combination of topic,url if not present.
4.PublishData<{topic,url},data>: For every subscribed topic, entry to publish data is made with the latest data published by any client on the same url for the topic subscribed.
Plz let me know if any changes required

In the Design Consideration We also need to store the client object. Lets consider a scenario where there are two brokers say Broker1.com, Broker2.com Now Client1 request for Broker1.com(publish) Then Client 2 for Broker2.com(subscribe), Client 3 for Broker1.com(subscribe) The following info would be stored in the follwoing datastructures

URLData<string,[]string>(url,clientid array): Since its a first time entry the url entry shall be made in URLData with clientid(client1).
PublishData<{topic,url},data>: The entry for the published data shall be made in the PublishData
For Next Step, Since broker2.com is not present in URLData so the entry for it is made, and connection object for the broker is created.
SubscriptionInfo<{topic,url},[]clientid>Entry to the subscriptionInfo is also made with client id of client2
Now Client 3 request for again broker1.com. Now since we havent stored the client object for the Broker1.com, We cannot reuse the current homeedge object since the object is currently for connection to Broker2.com
Hence I would suggest to store clientobjects in separate hashmap mapped to urls. i.e. for every new url entry in the URLData, a entry to MQTTClient is made with url,clientobject
so In all there will be 4 Hashmaps
MQTTClient: <string,*Client>: Storing client object for every new url connection that homeedge makes.
URLData<string,[]string>: For every request publish/subscribe, If the user is not present for the url, entry to the Hashmap is made.
SubscriptionInfo<{topic,url},[]clientids>:For subscritpion request the client id is append for the key combination of topic,url if not present.
4.PublishData<{topic,url},data>: For every subscribed topic, entry to publish data is made with the latest data published by any client on the same url for the topic subscribed.
Plz let me know if any changes required

Thanks for your idea! I agree that client objects are necessary.
Please update the design diagram considering this concern share with us.

Resolved by #544, #549

repo: lf-edge/edge-home-orchestration-go


text:
perf: Avoid string copying during JSON parsing

This submission implements a performance optimization for JSON parsing by avoiding the copying of strings into byte arrays.

Could you please also paste your benchmark result for the hack package.

Could you please also paste your benchmark result for the hack package.

Could you please also paste your benchmark result for the hack package.

Amazing improvement! Are there any risks? Additionally, is it better to rename the package 'hack'? How do you like to move it to cast package, which already have functions of type conversions.

@ngjaying
Since Go strings are immutable, the byte arrays must be immutable.
func main() {
	str := "abc"
	a := string2bytes(str)
	fmt.Println("len:", len(a))
	fmt.Println("cap:", cap(a))
	fmt.Println(a)
	a[0] = 'd'
	fmt.Println(a)
	fmt.Println(str)
}

func string2bytes(str string) []byte {
	return unsafe.Slice(unsafe.StringData(str), len(str))
}
// output:
// len: 3
// cap: 3
// [97 98 99]

// segment fault at a[0] = 'd'

it can be used if the byte array is read-only

@ngjaying
Because len=cap, the append operation will expand the byte array, so the append operation is safe.
func main() {
	str := "abc"
	a := string2bytes(str)
	fmt.Println("len:", len(a))
	fmt.Println("cap:", cap(a))
	fmt.Println(a)
	fmt.Printf("address of bytes before append : %x\n", (*reflect.SliceHeader)(unsafe.Pointer(&a)).Data)
	a = append(a, 'e')
	fmt.Printf("address of bytes after  append : %x\n", (*reflect.SliceHeader)(unsafe.Pointer(&a)).Data)
	a[0] = 'd'
	fmt.Printf("address of bytes after  change : %x\n", (*reflect.SliceHeader)(unsafe.Pointer(&a)).Data)
	fmt.Println(len(a))
	fmt.Println(cap(a))
	fmt.Println(a)
	fmt.Println(str)
}

func string2bytes(str string) []byte {
	return unsafe.Slice(unsafe.StringData(str), len(str))
}

//output
//len: 3
//cap: 3
//[97 98 99]
//address of bytes before append : ca7ea5
//address of bytes after  append : c00001c0f8
//address of bytes after  change : c00001c0f8
//4
//8
//[100 98 99 101]
//abc

Thank you!

authors: huskar-t ngjaying

repo: lf-edge/ekuiper


text:
Doc tests

Description

Addresses part of #205, specifically getting pytest --doctest-modules to pass

I was able to get most of the doc tests to pass without affecting the readability (I think) of the examples. I haven't turned on pytest --doctest-modules because we still having failing tests that have to do with get_segment_from_frame. One example error looks like this
075     This is called by `transform`, don't call `_wrap_class` directly, always use `transform`.
076
077     Example:
078     >>> @transform
079     ... class MyClass:
080     ...     def __init__(self, x):
081     ...         self.x = x
082     ...     def __call__(self, args):
083     ...         return self.x + args
084     >>> myobj = MyClass('hello')
UNEXPECTED EXCEPTION: FileNotFoundError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/Users/sebastianlee/Aleph-One-Gmbh/padl/padl/dumptools/inspector.py", line 295, in get_segment_from_frame
    full_source = caller_frame.f_globals['_pd_source']
KeyError: '_pd_source'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/doctest.py", line 1329, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest padl.wrap._wrap_class[1]>", line 1, in <module>
  File "/Users/sebastianlee/Aleph-One-Gmbh/padl/padl/wrap.py", line 108, in __init__
    trans_class.__init__(self, ignore_scope=ignore_scope, arguments=args)
  File "/Users/sebastianlee/Aleph-One-Gmbh/padl/padl/transforms.py", line 1003, in __init__
    call = inspector.get_segment_from_frame(caller_frameinfo.frame, 'call')
  File "/Users/sebastianlee/Aleph-One-Gmbh/padl/padl/dumptools/inspector.py", line 297, in get_segment_from_frame
    full_source = get_source(caller_frame.f_code.co_filename)
  File "/Users/sebastianlee/Aleph-One-Gmbh/padl/padl/dumptools/sourceget.py", line 37, in get_source
    with open(filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: '<doctest padl.wrap._wrap_class[1]>'

I would say this is not a priority to fix since I'm sure it has to do with the special situation of a pytest. However, @wuhu if you think this would be a good opportunity to learn about how dumptools works, I would appreciate working on resolving this issue with your help.

nice! looks good.
i wonder if the imports can be avoided.
Also for all the definition within the file like from padl import identity

Very nice!

authors: jasonkhadka sjrl wuhu


text:
Initcron patch 1

test

closing


text:
HTTPS Public Key Pinning HPKP

Would be great if badssl had a test for HPKP voilations.

Before I forget: we should have a preloaded pinning violation like https://pinningtest.appspot.com/

https://pinning-test.badssl.com should trigger a pinning failure in tomorrow's Chrome Canary: https://codereview.chromium.org/1413513003

Whee!

Looks nice, now go to bed!

Nice, but you should not write: This site is preloaded with a bad HPKP pin starting in Chrome 48
Because HPKP is a name for the "dynamic pinning".
So probably "preloaded key pinning" would be a better name to differentiate this.

BTW could you also open an issue for inclusion of this key pin in Firefox?

Because HPKP is a name for the "dynamic pinning".

I prefer to use HSTS and HPKP consistently to make them more recognizable.
As far as I understand, preloaded HPKP is still key pinning for HTTP – it just wasn't served using an HTTP header. (Whereas I the "H" distinguishes this mechanism from, say, the SSH known_hosts mechanism.)
Your link and the spec are unclear on this; the most I can is a suggestive description of it as trust on first use. But I'd like to get it right; do you know of a good citation for it?

BTW could you also open an issue for inclusion of this key pin in Firefox?

Will do.

BTW could you also open an issue for inclusion of this key pin in Firefox?

Will do.

Filed: https://bugzilla.mozilla.org/show_bug.cgi?id=1218515

I got no warning on Chromium 48.0.2564.116 (Developer Build) Ubuntu 15.10 (64-bit) and Firefox 44.0.2

I got no warning on Chromium 48.0.2564.116 (Developer Build) Ubuntu 15.10 (64-bit) and Firefox 44.0.2

Developer builds don't have HPKP enabled. Did you build this yourself?

I got the warning on 49.0.2623.64 (Official Build) beta-m (64-bit) Windows x64.
but not on 48.0.2564.116-0ubuntu0.15.10.1.1221 0 from Ubuntu wily

Same result here, no warning on Chromium Version 53.0.2785.89 Built on 8.5, running on Debian 8.5 (64-bit). This is true on my work computer as well. Additionally, a coworker verified that Google Chrome on Linux did block access. Maybe Debian packages it weird?

Should I open a separate issue?

No, this is expected behaviour.
Non-official builds disable static key pinning data, to avoid stale entries whose updates are not controlled by Google.

Maybe worth a note, then, that the static test is only valid for Google Chrome.

Ah... and my Firefox ESR 45 probably "fails" the test because the static pins have expired! Yeah, I think some of these tests need a special marker indicating that they only work for some browser/version/build combinations and are not expected to work across the board.

tests need a special marker

This is not a bad idea, and we are working on improving the descriptions (#202).
However, this behaviour is known to most people who use badssl.com on a regular basis, and it's not quite our goal to cater to every use case, so I don't consider this a high priority right now.
Could you let us know more about your use case?

Well, the tagline of the repo is "Memorable site for testing clients against bad SSL configs." so I assumed it was for broader use than just on the official vendor-built binaries. When I found that neither of Chromium 53 or Firefox ESR 45 "passed" the pinning test I was all set to file bugs, then found this thread. So I think there's a lot of value in noting which tests are broadly applicable (e.g. no browser should accept expired certs) vs. specific to a particular set of builds (e.g. preloaded HPKP).

When I found that neither of Chromium 53 or Firefox ESR 45 "passed" the pinning test I was all set to file bugs, then found this thread.

So you were testing for HPKP support in your Chromium/Firefox installs? Sounds like a reasonable case. Could you file a more specific bug, so that you'll be in the loop when we update the language?

authors: jkldgoefgkljefogeg lgarron marumari mozfreddyb rugk timmc


text:
problem with posts sorting

Hello and thank you for this plugin.
I found a problem with the posts : they are all marked as "published at"  the same time (the time I built the site) and can therefore not be sorted well.
Did I miss something ?
Thanks

Are you using GitHub Pages? By default, the 'checkout' action performs a 'shallow clone', which only takes the most recent commit, and thus all the time stamp used to sort is the last commit time. The solution is illustrated here.
If it's not the case, please provide more detail on your project.


text:
Setting all months to 30 days

Hi there,
I hope it's ok to create an issue for this here, I haven't found another means to contact you.
I'd like to create a calendar for a roleplaying game I'm running, and I'd like to have every month have 30 days. Is there a way to set this cdcalendar up for something like that?

Well, the TikZ calendar library works with ISO dates and the Gregorian calendar. I could be mistaken but I think it won't work with non-Gregorian calendars.

Right, yes, that makes sense.
Thanks for the feedback, and for the really useful package. :)

You're welcome!

authors: liantze thom-github

repo: liantze/cdcalendar


text:
🛑 Hacker News is down

In e235716, Hacker News (https://news.ycombinator.com) was down:

HTTP code: 502
Response time: 288 ms

Resolved: Hacker News is back up in 71f23ea after 12 minutes.

repo: lianwuyeah/upptime


text:
"cargo build" errors:  'bpf/bpf_helpers.h  file not found' or   'Failed to generate skeleton ... Failed to spawn rustfmt '

when "cargo build --release",  this error (screenshot error1) came at first, I found the "bpf/bpf_helpers.h" was generated in 2 pathes ( find /home/vagrant/libbpf-bootstrap/ -name "bpf_helpers.h"  got "screenshot find"), so cop  bpf directorys one to /usr/include  (in fact I fixed "vmlinux.h not found" error in the same way after being generated by bpftool ), but got another error: screenshot error2, I got no way to continue...  BTW.  it works well for the C version in /home/vagrant/libbpf-bootstrap/examples/rust/
screenshot error1

text:
   Compiling xdp v0.1.0 (/home/vagrant/libbpf-bootstrap/examples/rust/xdp)
error: failed to run custom build command for `xdp v0.1.0 (/home/vagrant/libbpf-bootstrap/examples/rust/xdp)`

Caused by:
  process didn't exit successfully: `/home/vagrant/libbpf-bootstrap/examples/rust/target/release/build/xdp-ea3972c5b26f2632/build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Build("Failed to compile obj=/tmp/.tmpIAhV9L/xdppass.o with status=exit code: 1\n stdout=\n \n stderr=\n ./src/bpf/xdppass.bpf.c:2:10: fatal error: \'bpf/bpf_helpers.h\' file not found\n#include <bpf/bpf_helpers.h>\n
         ^~~~~~~~~~~~~~~~~~~\n1 error generated.\n\n")', xdp/build.rs:19:47
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

screenshot find

screenshot error2

text
~/libbpf-bootstrap/examples/rust$ sudo cargo build --release
   Compiling tracecon v0.1.0 (/home/vagrant/libbpf-bootstrap/examples/rust/tracecon)
   Compiling xdp v0.1.0 (/home/vagrant/libbpf-bootstrap/examples/rust/xdp)
error: failed to run custom build command for `xdp v0.1.0 (/home/vagrant/libbpf-bootstrap/examples/rust/xdp)`

Caused by:
  process didn't exit successfully: `/home/vagrant/libbpf-bootstrap/examples/rust/target/release/build/xdp-ea3972c5b26f2632/build-script-build` (exit code: 101)
  --- stderr
  libbpf: elf: skipping unrecognized data section(4) .rodata.str1.1
  libbpf: elf: skipping unrecognized data section(4) .rodata.str1.1
  Warning: unrecognized map: license
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Generate("Failed to generate skeleton for /tmp/.tmpPpu8kb/xdppass.o: Failed to spawn rustfmt")', xdp/build.rs:19:47
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

@hick https://github.com/libbpf/libbpf-bootstrap/pull/49 should fix all the issues. I've released latest libbpf-rs (you'd get compilation errors if you were to update to 0.13.0 version), but the immediate problem you ran into was missing vmlinux.h symlink, which was missing because someone accidentally added vmlinux into .gitignore.
Please let me know if that fixed your issue.

authors: anakryiko hick

repo: libbpf/libbpf-bootstrap


text:
Video supplements

eLife allows videos to be included as supplements to main figures.
User Stories
Author

As an author, I want to be able to play a video supplement so that I can check that it is the correct video.
As an author, I want to be able to clearly see the relationship between a video supplement and the main figure with which it is associated so that I can check this has been captured correctly.
As an author, I want to be able to edit the title and legend for a video supplement so that I can fix any errors with the text.
As an author, I want to be able to add a reference or asset citation to a video supplement title and legend so that I can cite other articles or assets in this context.
As an author, I want to be able to clearly identify any source data or code that is directly associated with a video supplement so that I can confirm this relationship has been captured correctly.

Production staff

As production staff, I want to be able to replace a video supplement so that I can fix any issues with the video itself.
As production staff, I want to provide an explanation for why I am replacing a video so that I can record the reason for the change.
As production staff, I want to be able to add a new video supplement to the manuscript so that I can include new content at the request of the author.
As production staff, I want to be able to remove an existing video supplement on behalf of the author, so that the manuscript is up to date for publishing.

But what if . . . ?

Considerations

The labelling scheme for video supplements is:

Figure 1

Figure 1—video 1

Figure 2

Figure 2—video 1
Figure 2—video 2

At eLife, videos are currently hosted externally for display on our website, so if videos are added, replaced, deleted within the texture framework this information would need to be sent across to the host.
Examples of video file types eLife has used in the past:

mov
avi
mp4
wmv
f4v
mpeg
m4v
3gp

XML requirements
Videos which are supplements to figures are captured in the same fig-group as the corresponding main figure.
<fig-group>
    <fig id="fig1" position="float">
        Figure 1.

            <title>...</title>

...

        <graphic xlink:href="..." mimetype="application" mime-subtype="postscript"/>
    </fig>
    <media id="fig1video1" xlink:href="http://static-movie-usa.glencoesoftware.com/mp4/10.7554/839/6eb7150a5e63d806971b60e5c01a0ad2f1002d7b/elife-44431-fig1-video1.mp4" mimetype="video" mime-subtype="mp4">
        Figure 1—video 1.

                <title><italic>Tg(prox1a:tagRFP;pou4f3:gfp)</italic> during regeneration.</title>

A dividing <italic>prox1a</italic>-positive cell downregulates <italic>prox1a:tagRFP</italic> and upregulates the hair cell marker <italic>pou4f3:gfp.</italic>

    </media>
</fig-group>

They have every XML requirement that videos do.
Taken from: https://github.com/elifesciences/TextureRequirements/issues/40

Currently unavailable in texture. Videos are assumed to follow the same design pattern as figure supplements
See inVision file for design proposal

authors: FAtherden-eLife NickDuf

repo: libero/producer


text:
[feature request] adding something like JOGL's GLJPanel to the JOGL Backend

It's said that JOGL's GLJPanel works with Java 8's SwingNode, allowing it to be embedded into JavaFX. How it works is to do GLJPanel -> JFXPanel -> SwingNode -> Scene.
Currently, using LibGDX' LWJGLCanvas does not work with SwingNode, and nothing is displayed. Workarounds exist, such as the LWJGL-FX project, but it's not fully suited for production, as stuff like Box2dLights don't get rendered. A JOGL port of this project was made, but it forked from an earlier point of LWJGL-FX.
I wanted to know if an implementation similiar to GLJPanel for the JOGL backend is feasible / possible. Using LWJGL-FX has been great, in my experience, though I've recently found that Box2dLights doesn't render (maybe something to do with FBO). I'm hoping a port of GLJPanel will resolve things, once and for all, for devs who want to use JavaFX and LibGDX, at the same time.
Thanks.
Edit: Found that there was JOGL backend, and it's not the one for LWJGL (obviously).

Hi
If it's up to be, it's up to me as usual:
http://forum.jogamp.org/GLJPanel-for-LibGDX-JOGL-backend-td4034741.html
You can close this report as the JogAmp LibGDX backend is actively maintained by the JogAmp community.

Sorry to say this on a closed ticket, but the JogAmp team came through and we now have a working solution for embedding a LibGDX app in a JavaFX UI. It displays everything correctly, unlike the other JavaFX-based solutions found on the web, which fail to display stuff like Box2dLights, and likely, other FBO-types. as well
There're still things that need to be addressed, like getting the FPS count up, and memory usage, the latter of which the other solutions also suffer from.
Thanks gouessej :)

authors: adam-law gouessej

repo: libgdx/libgdx


text:
Lack of information about obtaining nightly builds via gradle

Please ensure you have given all the following requested information in your report.
Issue details
Lack of information about obtaining nightly builds via gradle.
I cannot find the sonatype nightly repo anywhere to put into a maven repository for gradle.
Perhaps we need to be building to a repository every day if we're not?
Version of LibGDX and/or relevant dependencies
Latest
Please select the affected platforms

[x] Android
[x] iOS (robovm)
[x] iOS (MOE)
[x] HTML/GWT
[x] Windows
[x] Linux
[x] MacOS

Read here https://github.com/libgdx/libgdx/wiki/Updating-LibGDX#switching-libgdx-versions

I have read that page, it does not give any URLs of snapshot repositories or anything relating.
Attempting to obtain 1.9.11-SNAPSHOT from maven central returns an error.

I agree with this, the libgdx maven coordinates (and repo url for snapshots) should be more visible. I know that it is somewhere on the wiki (or at least it was), but it should be more visible. We could even add a maven badge to the readme or to the wiki.
Also it seems that the link in the README for "Working with the Source" is half dead - it points to https://github.com/libgdx/libgdx/wiki/Running-demos-%26-tests which is supposedly deprecated and links to https://libgdx.badlogicgames.com/documentation/hacking/Working from source.html. I didn't even know that there is documentation on badlogicgames.com.

You also could use (example from https://blog.gradle.org/introducing-source-dependencies):
dependencies {
    implementation 'org.gradle.cpp-samples:utilities:1.0'
}

and
sourceControl {
    gitRepository("https://github.com/gradle/native-samples-cpp-library.git") {
        producesModule("org.gradle.cpp-samples:utilities:1.0")
    }
}

Doesn't the project setup include the snapshot repo?

@MobiDevelop not anymore.

it is, see here and here
A badge in README is a good idea.

@mgsx-dev yes i mentioned that it isn't displayed on the gui anymore.

New badges have been merged.

authors: Darkyenus MobiDevelop Monarchis SimonIT mgsx-dev noblemaster thechubbypanda