'Getting Started with Typescript' documentation neglects replicas property of WebServiceOptions

Description of the bug:

I was going through the documentation for the 'Getting Started with Typescript' example and noticed that it appears the replicas property of WebServiceOptions is not being used.
We see several other nullable properties being assigned default values in the constructor, such as in the case of
const port = options.containerPort || 80;

However, there is not an equivalent line to this for replicas. Instead, in the deployment spec, replicas is always set to 1, regardless of any user-supplied value for replicas.
new Deployment(this, 'deployment', {
  spec: {
    replicas: 1,
    selector: {
      matchLabels: label
    },
    template: {
      metadata: { labels: label },
      spec: {
        containers: [
          {
             name: 'app',
             image: options.image,
             ports: [ { containerPort } ]
          }
        ]
      }
    }
  }
});

Reproduction Steps:

Define a WebService in the constructor of MyChart as such:
new WebService(this, "hello", {
  image: "paulbouwer/hello-kubernetes:1.7",
  replicas: 10,
});

This produces the following k8s manifest:
apiVersion: v1
kind: Service
metadata:
  name: hello-hello-service-cf7c398a
spec:
  ports:
    - port: 80
      targetPort: 8080
  selector:
    app: hello1B298237
  type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: hello-hello-deployment-83984d2d
spec:
  replicas: 1
  selector:
    matchLabels:
      app: hello1B298237
  template:
    metadata:
      labels:
        app: hello1B298237
    spec:
      containers:
        - image: paulbouwer/hello-kubernetes:1.7
          name: app
          ports:
            - containerPort: 8080

Note that replicas is set to 1, despite requesting 10 in our typescript.
Error Log:

Environment:

Framework Version: 0.26.0
OS: macOS High Sierra Version 10.13.6

Other:

I would expect a line such as
const replicas = options.replicas || 1

to appear with the other assignments in the constructor, and for the deployment's spec to use
new Deployment(this, 'deployment', {
  spec: {
    replicas: replicas,
    selector: {
      matchLabels: label
    },
    template: {
      metadata: { labels: label },
      spec: {
        containers: [
          {
             name: 'app',
             image: options.image,
             ports: [ { containerPort } ]
          }
        ]
      }
    }
  }
});

or possibly even the shorthand, like below, depending on your style preference
new Deployment(this, 'deployment', {
  spec: {
    replicas,
    selector: {
      matchLabels: label
    },
    template: {
      metadata: { labels: label },
      spec: {
        containers: [
          {
             name: 'app',
             image: options.image,
             ports: [ { containerPort } ]
          }
        ]
      }
    }
  }
});

This is :bug: Bug Report

fixed in https://github.com/awslabs/cdk8s/commit/0f70a4fa0a471b27b3c75e25d0609935060b44ed


[AutoPR web/resource-manager] VnetInfo CertBlob format changed to string

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5655

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/4631


Commit repository with adequate structure

In the current prototype repository a few things are missing to create an initial commit:

.gitignore file
LICENSE file
README.md file
build/watch commands for working on the project (backend files already work with this but not the client code)

gitignore was simple enough, but running dotnet watch run in parallel with webpack --mode=development --watch seems to be non trivial, at least that is what search engines will lead you to believe :D

gitignore was simple enough, but running dotnet watch run in parallel with webpack --mode=development --watch seems to be non trivial, at least that is what search engines will lead you to believe :D

Seems for now I will not pester myself with the one-liner watch command, it requires additional research. A new issue will be created.

Seems for now I will not pester myself with the one-liner watch command, it requires additional research. A new issue will be created.

resolved and committed

resolved and committed


Request support for [Water Timer Via WG01 WiFi BLE gateway]

HA fails spectacularly to add this device and creates no logs about DPS.
This is for Water Timer: "category": "sfkzq"
{
"result": {
"properties": [
{
"code": "switch",
"custom_name": "",
"dp_id": 1,
"time":<PHONE_NUMBER>850,
"value": false
},
{
"code": "fault",
"custom_name": "",
"dp_id": 4,
"time":<PHONE_NUMBER>385,
"value": 0
},
{
"code": "battery_percentage",
"custom_name": "",
"dp_id": 7,
"time":<PHONE_NUMBER>385,
"value": 100
},
{
"code": "time_use",
"custom_name": "",
"dp_id": 9,
"time":<PHONE_NUMBER>850,
"value": 1498
},
{
"code": "weather_delay",
"custom_name": "",
"dp_id": 10,
"time":<PHONE_NUMBER>385,
"value": "cancel"
},
{
"code": "countdown",
"custom_name": "",
"dp_id": 11,
"time":<PHONE_NUMBER>850,
"value": 0
},
{
"code": "work_state",
"custom_name": "",
"dp_id": 12,
"time":<PHONE_NUMBER>850,
"value": "idle"
},
{
"code": "smart_weather",
"custom_name": "",
"dp_id": 13,
"time":<PHONE_NUMBER>897,
"value": "sunny"
},
{
"code": "switch_weather",
"custom_name": "",
"dp_id": 14,
"time":<PHONE_NUMBER>385,
"value": false
},
{
"code": "use_time_one",
"custom_name": "",
"dp_id": 15,
"time":<PHONE_NUMBER>000,
"value": 600
},
{
"code": "cycle_timing",
"custom_name": "",
"dp_id": 16,
"time":<PHONE_NUMBER>455,
"value": "AA=="
},
{
"code": "timer",
"custom_name": "",
"dp_id": 17,
"time":<PHONE_NUMBER>555,
"value": "AA=="
}
]
},
"success": true,
"t":<PHONE_NUMBER>467,
"tid": "b8f4e34c103311ef9d60feae420aa81f"
}
{
"result": {
"model": "{"modelId":"00000208kg","services":[{"actions":[],"code":"","description":"","events":[],"name":"默认服务","properties":[{"abilityId":1,"accessMode":"rw","code":"switch","description":"","extensions":{"iconName":"icon-dp_power","attribute":"640"},"name":"阀门开关","typeSpec":{"type":"bool"}},{"abilityId":4,"accessMode":"ro","code":"fault","description":"","extensions":{"attribute":"128"},"name":"故障上报","typeSpec":{"type":"bitmap","label":["low_battery","fault","lack_water","sensor_fault","motor_fault"],"maxlen":5}},{"abilityId":7,"accessMode":"ro","code":"battery_percentage","description":"","extensions":{"attribute":"192"},"name":"电池电量","typeSpec":{"type":"value","max":100,"min":0,"scale":0,"step":1,"unit":"%"}},{"abilityId":9,"accessMode":"rw","code":"time_use","description":"","extensions":{"attribute":"640"},"name":"累计使用时间","typeSpec":{"type":"value","max":2592000,"min":0,"scale":0,"step":1,"unit":"s"}},{"abilityId":10,"accessMode":"rw","code":"weather_delay","description":"","extensions":{"iconName":"icon-shidu","attribute":"640"},"name":"天气延时","typeSpec":{"type":"enum","range":["cancel","24h","48h","72h"]}},{"abilityId":11,"accessMode":"rw","code":"countdown","description":"","extensions":{"iconName":"icon-timer1","attribute":"640"},"name":"灌溉时间","typeSpec":{"type":"value","max":86400,"min":0,"scale":0,"step":1,"unit":"s"}},{"abilityId":12,"accessMode":"ro","code":"work_state","description":"","extensions":{"attribute":"640"},"name":"工作状态","typeSpec":{"type":"enum","range":["auto","manual","idle"]}},{"abilityId":13,"accessMode":"rw","code":"smart_weather","description":"","extensions":{"attribute":"128"},"name":"智能天气","typeSpec":{"type":"enum","range":["sunny","cloudy","rainy","snowy"]}},{"abilityId":14,"accessMode":"rw","code":"switch_weather","description":"","extensions":{"attribute":"640"},"name":"智能天气","typeSpec":{"type":"bool"}},{"abilityId":15,"accessMode":"ro","code":"use_time_one","description":"","extensions":{"attribute":"128"},"name":"单次使用时间","typeSpec":{"type":"value","max":86400,"min":0,"scale":0,"step":1,"unit":"s"}},{"abilityId":16,"accessMode":"rw","code":"cycle_timing","description":"","extensions":{"attribute":"128"},"name":"循环定时","typeSpec":{"type":"raw","maxlen":128}},{"abilityId":17,"accessMode":"rw","code":"timer","description":"可按要求自定义时间完成阀门开启/关闭、以及灌溉时间，可自定义多组，支持周循环、奇偶日、隔天循环定时。","extensions":{"attribute":"128"},"name":"定时","typeSpec":{"type":"raw","maxlen":128}}]}]}"
},
"success": true,
"t":<PHONE_NUMBER>347,
"tid": "b3c74b35103411ef9a8e62f092a4528b"
}
"category": "sfkzq",
"model": "SOP10",
"name": "Water Timer",
"product_id": "nxquc5lb",
"product_name": "一出一水阀（网关+BLE)",
This is for WG01: "category": "cz",
{
"result": {
"model": "{"modelId":"000003352e","services":[{"actions":[],"code":"","description":"","events":[],"name":"默认服务","properties":[{"abilityId":38,"accessMode":"rw","code":"relay_status","description":"","extensions":{"iconName":"icon-dp_battery","attribute":"736"},"name":"上电状态设置","typeSpec":{"type":"enum","range":["off","on","memory"]}}]}]}"
},
"success": true,
"t":<PHONE_NUMBER>650,
"tid": "a17fa8f6103c11ef9a8e62f092a4528b"
}
That's the only DPs reported:
{
"result": {
"properties": [
{
"code": "relay_status",
"custom_name": "",
"dp_id": 38,
"time":<PHONE_NUMBER>658,
"value": "off"
}
]
},
"success": true,
"t":<PHONE_NUMBER>633,
"tid": "07753254103d11efa19236780218d147"
}
"model": "WG01",
"name": "Wi-Fi hub",
"product_id": "yncyws7tu1q4cpsz",
"product_name": "水阀网关",

Not planning to support this @make-all ?

It is not possible without logs

What logs do you need? How can I retrieve them? Happy to try stuff if needed.

Hi @make-all I found the problem! the UUID must be used as "sub-device ID" when setting up the device in tuya-local.
Steps:

find the sub-device UUID  not the device_id from iot.tuya.com Query Device Details:
{
"result": [
{
...
"category": "sfkzq",
"create_time":<PHONE_NUMBER>,
...
"id": "DOESN'T_MATTER_USED_ONLY_FOR_CLOUD",
.....
"model": "SOP10",
"name": "Water Timer",
"product_id": "nxquc5lb",
"product_name": "一出一水阀（网关+BLE)",
"sub": true,
"uuid": "THIS_IS_WHAT_YOU_NEED"
}

It works perfectly fine now! You are the best, I wish this was documented somewhere as I spent 2 days trying other stuff.

I didn't write the hub/subdevice support myself, so I may be misunderstanding it. My understanding is that the hub id should be used as the device id, and the cid is a separate id that only sub devices have, listed somewhere else in the device details.  Maybe the uuid for some sub-devices matches the cid, just as the device id matches the uuid for some (but not all) standalone devices.

no need to explain, I hope this makes it easier for other people to find the solution now. Perhaps an addition to the documentation encouraging people to try other ids would help too. I found out the hard way by playing with TinyTuya and desperately trying other stuff.
Nevertheless, you just saved my roses garden as I am prepping for long summer holidays and didn't want to rely on the Chinese cloud to make sure it will keep them watered or not flood them.
Thanks again for this great integration.


Ferdi Tools - Custom UserAgent

Is your feature request related to a problem? Please describe.
I would like to open custom Microsoft ToDo server in the Ferdi Tools on MacOS. However I can't do that without enrolling my devices into their tracking service, because of the UserAgent value
Describe the solution you'd like
I want to change the UserAgent value for Ferdi Tools as we can do it for the receipts in index.js
Is there such an index.js for the Ferdi Tools?
Describe alternatives you've considered
Open a custom receipt in the Ferdi Tools section.

Now it seems to be relevant again

please upvote this PR: #1380 to get some traction going on there.

please see if manually upgrading the recipes fixes the issue. Please follow steps outlined here

Using the nightly 5.6.0 Google Chat is working fine.
Thanks!
On Thu, 2021-05-20 at 06:53 -0700, Vijay Raghavan Aravamudhan wrote:

please see if manually upgrading the recipes fixes the issue. Please
follow steps outlined here
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
--
Nestor Alonso
Director of Information Technology
DFHeinz, LLC
(786) 230-8081
@.***

thanks for confirming that it works @dfhz-nestor ! Please continue to use Ferdi and report bugs/suggest improvements.
@andreiverdes - could you also please confirm the fix? Also, if it does work, please close the issue.

Closing since the OP hasn't responded in more than 2 months.


Update gradle to 5.0

intellij doesnt sync properly with 5.0 and i think the intellij plugin needs an update before this is good to go

We were seeing a fair amount of errors from the intellij plugin (running as a part of the sqldelight plugin) that looked like:
Cannot load project: java.lang.IllegalStateException: @NotNull method com/intellij/openapi/progress/ProgressManager.getInstance must not return null

It wouldn't surprise me if an update to the plugin is required for 1.0.0.

I also bumped into the gradle plugin not working properly with gradle 5. The source is generated correctly, but the runtime dependency doesn't seem to be added properly. This causes compilation errors of the generated source code.
As a side note, this issue took me a while to figure out as someone trying sqldelight for the first time. The README doesn't go into much detail about what does or doesn't need to put in the gradle build file. There is no mention of database drivers, but the sample project lists one as a dependency. I looks like the plugin is supposed to add the runtime dependency for you, but I found other projects on github that explicitly list the runtime as a dependency.

The main one. Looking through the release candidate one more carefully, there is a line talking about explicitly including the runtime as a dependency, but it is in the section explaining how to migrate from very old version. I didn't not expect that section to contain information needed to run the RC when starting a new project.
As for documentation about the drivers: The RC readme does mention the android driver, but it is not in the sample build.gradle under the Android/Gradle heading. And there is no mention about if drivers are need when not using android.

This upgrade will be possible with kotlin 1.3.30, since bundled K/N support has fixes for gradle 5


chore(master): release 0.4.21

:robot: I have created a release beep boop
0.4.21 (2024-08-24)
🐞 Bug Fixes

fix pool ready status with zero min size dynamic pool (cebb8d8)

🧪 Tests

add pool empty event test (e353778)
optimize pool empty event test (e49f64a)

📚 Documentation

refine a code comment (1dc8bf2)

🤖 Automation

deps: Bump sonarsource/sonarcloud-github-action (#59) (d35a85f)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.4.21
:sunflower:


Exit codes when waiting for jobs

Recent changes in BatchEuphoria made the implementation of the exit code equaling the number of failed jobs hard.
In de.dkfz.roddy.Roddy#performCLIExit(de.dkfz.roddy.client.RoddyStartupModes, int) implement

collect all actually executed ExecutionContexts (i.e. for all datasets)
get all jobs from the IDs
for each job get the job state with queryJobStates

first, get them from the job manager
for those already lost from the terminated job cache, get the exit code from the jobStateLogfile.txt

Duplicate of #167


Allow fallback to 'id' key

If identity is a dictionary, identity = getattr(identity, 'id') or identity['id'] fails with AttributeError: 'dict' object has no attribute 'id'
Setting the default allows the id key to be used.

Same as #63

I second this


datetime-malformed-no-z fails

$ toml-test -testdir ~/src/toml-test/tests ./toml_test3.py
Test: datetime-malformed-no-z (invalid)

Expected an error, but no error was reported.

77 passed, 1 failed

Duplicate of #39


Update request to work with the new Global Variables

Request for update for being able to be used with Global Variables

@reev-create : Can you please explain bit more or provide an example scenario ?


Vimcomplete Options Not Respected in Vimscript?

I would like to use vimcomplete, but my .vimrc has been built over the years in vimscript, not vim9script. I have tried converting the sample options given in the documentation to vimscript syntax (sorry, employer seems to have disabled screenshot uploads here):
let vcoptions = {
\   "buffer": {"enable": 1, "priority": 10},
\   "lsp": { "enable": 0},
\   "omnifunc": { "enable": 1, "priority": 11 }
\}
autocmd VimEnter * g:VimCompleteOptionsSet(vcoptions)

When I open a file with vim I can tell that vimcomplete is operational, but it appears to only be getting completions from the buffer completer. If I manually use <C-X><C-O> to activate omnicompletion, I am presented with a different set of completions (ones that are object-member aware for python builtin packages). This is even true when I disable buffer completions.
I suspect that the configuration options in my .vimrc are not being respected, possibly because there is some fatal error occurring in the translation of vimscript to vim9script. Am I on to something? Is there anyway I can use vimcomplete without re-writing my (perhaps way to long) .vimrc in vim9script?
This is my vim version if it helps:
$ vim --version
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Mar 05 2024 19:39:07)
...

It's unlikely a vim9 vs vim issue. Can you do :echo &omnifunc and check? Also do :VimCompleteCompletors and check that omnicompletion is active. What type of file is this? Is this your own custom omnifunc?

Should enable be set to false? Perhaps I am confused about what enable means in this context...
In any event, assuming that was a typo, the output of echo &omnifunc is:
python3complete#Complete

and the output of :VimCompleteCompletors is:
{'name': 'path', 'priority': 13, 'completor': function('vimcomplete#path#Completor')}
{'name': 'buffer', 'priority': 12, 'completor': function('vimcomplete#buffer#Completor')}

I find this especially odd. I defined the priority of buffer completion to be 10 in the configuration settings...
I feel that this is more evidence that my .vimrc settings above are not being read properly somehow. This behavior is still present with a minimal .vimrc that just contains the plugin install and the configurations supplied above

Just for completeness, I want to relay the output of an additional setting. Even though my buffer had a python file in it, I explicitly gave the omnifunc completer the filetypes as you suggested:
let vcoptions = {
\   "buffer": {"enable": 1, "priority": 10},
\   "lsp": { "enable": 0},
\   "omnifunc": { "enable": 1, "priority": 11, "filetypes": ['python', 'javascript']}
\}
autocmd VimEnter * g:VimCompleteOptionsSet(vcoptions)

and the output of the echo &omnifunc and :VimCompleteCompletors commands was the same as I wrote above. I even set "enable":0 (in legacy vimscript) to match your enable: false suggestion (in vim9script) with no change in behavior.
Not sure how to resolve this at this point

My apologies, "enable" needs to be set to true (1 or v:true). Also, I simplified the configuration. You do not need to specify filetype, unless you want to restrict omnifunc to specific file types.
"omnifunc": { "enable": 1}

I have installed your updates, however the problem persists. I have found a minimal example you can perhaps test yourself. Using this legacy vimscript .vimrc you should be able to reproduce the issue:
call plug#begin()
Plug 'girishji/vimcomplete'
call plug#end()

let vcoptions = {
\   "buffer": {"enable": 0, "priority": 10},
\   "lsp": { "enable": 0},
\   "omnifunc": { "enable": 1, "priority": 11, "filetypes": ['python', 'javascript']}
\}
autocmd VimEnter * g:VimCompleteOptionsSet(vcoptions)

With this .vimrc when I start a new vim process with a file, the VimCompleteCompleters command produces this output:
{'name': 'path', 'priority': 13, 'completor': function('vimcomplete#path#Completor')}
{'name': 'buffer', 'priority': 12, 'completor': function('vimcomplete#buffer#Completor')}

Not only was the omnifunc not enabled, but but the buffer completer was not disabled.
Listing all the autocommand functions for the VimEnter event with :autocmd VimEnter we get this:
--- Autocommands ---
VimEnter
    *         g:VimCompleteOptionsSet(vcoptions)
              lsp.Setup()
    *         doau <nomodeline> User VimCompleteLoaded
FileExplorer  VimEnter
    *         sil call s:VimEnter(expand("<amatch>"))

So at least the command itself was registered.
However, if I use this equivalent vim9script .vimrc(at least I think it's equivalent):
vim9script
plug#begin()
Plug 'girishji/vimcomplete'
plug#end()

var vcoptions = {
   buffer: {enable: false, priority: 10},
   lsp: { enable: false},
   omnifunc: { enable: true, priority: 11}
}
autocmd VimEnter * g:VimCompleteOptionsSet(vcoptions)

Then things work as expected. In a new vim process  VimCompleteCompleters command produces this output:
{'name': 'path', 'priority': 13, 'completor': function('vimcomplete#path#Completor')}
{'name': 'omnifunc', 'priority': 11, 'completor': function('vimcomplete#omnifunc#Completor')}

Which is more in line with what I would expect. The buffer completer was disabled correctly and the omnifunc completer was included.
I'm not so familiar with the behaviors of either scripting language to be honest, but to me this looks like something is going on when using one versus the other.

This is strange. It works for me as follows. my ~/.vimrc:
if empty(glob('~/.vim/autoload/plug.vim'))
    silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
                \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif

call plug#begin()
Plug 'girishji/vimcomplete'
call plug#end()

let vcoptions = {
\   "buffer": {"enable": 0, "priority": 10},
\   "lsp": { "enable": 0},
\   "omnifunc": { "enable": 1, "priority": 11, "filetypes": ['python', 'javascript']}
\}
autocmd VimEnter * call g:VimCompleteOptionsSet(vcoptions)

Then I did :PlugUpdate.
Then open test.py, and I get
{'name': 'path', 'priority': 13, 'completor': function('vimcomplete#path#Completor')}
{'name': 'omnifunc', 'priority': 11, 'completor': function('vimcomplete#omnifunc#Completor')}
Press ENTER or type command to continue

Yes I just found that as well. See! There was an issue with translating from vim9script to vimscript. It was that I don't know how to do it properly! Doh!
Sorry about that. I don't often venture into writing autocommands so I wasn't aware of the syntax. I did look at the vim help docs for this but it said:
:au[tocmd] [group] {event} {aupat} [++once] [++nested] {cmd}

I didn't realize call was part the syntax for cmd in legacy vimscript and not vim9script.
Perhaps one example in your readme with the legacy syntax might prevent this issue for others?  I think there is a chance others will have an issue with this. I feel that syntactical difference is probably not well known to the casual vim user and, unfortunately, no obvious errors were thrown to let me know there was an issue.

Perhaps one example in your readme with the legacy syntax might prevent this issue for others?

I realized this and added a prominent note already.

I didn't realize call was part the syntax for cmd in legacy vimscript and not vim9script.

{cmd} usually refers to Ex commands that you execute in command-line. In this context it also includes function calls and other 'expressions'. Because of this 'polymorphism' it just fails to throw an error when it should. There are many other quirks with legacy script. Vim9script is more predictable. This is why I would not touch legacy script if I don't have to.


New rule: partial-no-import

Implements #28
Decided to change the name since it is partials that seem to be the thing (tha THIIIING!) here, not imports.
Was also happy to be able to peep a test example (not only scss code, but filenames have to be checked here) in stylelint repo :)

Ok, merging this. If there are any quirks, please add comments to commit code.

Besides that one variable name query, this looks great to me!

it is partials that seem to be the thing (tha THIIIING!) here

:)


el2g: Include links to el2g documentation

Signed-off-by: Andy Doan<EMAIL_ADDRESS>Readiness

[x] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
We now have documentation from NXP we can share
Checklist
Optional. Add a 'x' to steps taken.
You can fill this out after opening the PR. "Did I..."

[x] Run spelling and grammar check, preferably with linter.
[ ] Avoid changing any header associated with a link/reference.
[ ] Step through instructions (or ask someone to do so).
[ ] Review for wordiness
[ ] Match tone and style of page/section.
[x] Run make linkcheck.
[x] View HTML in a browser to check rendering.
[x] Use semantic newlines.
[ ] follow best practices for commits.

[ ] Descriptive title written in the imperative.
[ ] Include brief overview of QA steps taken.
[ ] Mention any related issues numbers.
[ ] End message with sign off/DCO line (-s, --signoff).
[ ] Sign commit with your gpg key (-S, --gpg-sign).
[ ] Squash commits if needed.

[ ] Request PR review by a technical writer and at least one peer.

Comments
Any thing else that a maintainer/reviewer should know.
This could include potential issues, rational for approach, etc.

Docs for 8a938b076334388af0afff078bfde99697eb048e are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1690/docs/artifacts/html/index.html


[SSoC 2.0] Music Guessing Game

Project title
Title - Music Guessing Game
Project Description

This game can be played by more than 2 members.
In this game, a song tune will play which is of around 10 seconds.
After listening this tune, four options are visible having the name of songs.
Out of four options, one option having the name of that song and pressed on that option.
In this way, scoreboard will update.

Doc Domain

[x] Other , feel free to mention below
( Only using HTML, CSS, and JS )

Are you contributing under any open-source program ?
Yes, SSoC 2.0

@Vikash-8090-Yadav please assign this task to me for a successful contribution under SSoC 2.0 program

Hey @Avdhesh-Varshney did you get this issue ?

Hey @Avdhesh-Varshney did you get this issue ?

@MohdSultanGit Yes, this issue is assigned to me and i have completed it at mid-night.

Alright @Avdhesh-Varshney


Migrate the Pangeo Tutorial gallery into cookbooks

Migrate the Pangeo Tutorial Gallery into the Pythia cookbook gallery.
There are four tutorials in this collection (Dask, geopandas, intake, and Xarray). The xarray tutorial may be a bit repetitive of existing Pythia content

I can take start working on this.


Expression has changed after it was checked. Previous value: 'active: false'. Current value: 'active: false'.

Bug Report or Feature Request (mark with an x)

[ ] Bug report -> please search issues before submitting
[ ] Feature request
[ ] Documentation issue or request

Current behavior
从不同页面进入，选中的都是第一个tab
Expected behavior
从不同页面进入，选中当前menu
Environment
<weui-navbar class="menu">
  <weui-tab *ngFor="let menu of menuService.userMenu" heading="{{menu.name}}" active="{{path===menu.name}}" (select)="routerChange($event)">
  </weui-tab>
</weui-navbar>

Angular version: X.Y.Z

ngx-weui version: X.Y.Z

Browser:

[ ] Chrome (desktop) version XX
[ ] Firefox version XX
[ ] Safari (desktop) version XX
[ ] IE version XX

Others:

请尽可能通过 https://stackblitz.com/edit/ngx-weui 重现问题


Deno binary version mismatch between local and function app

Repro steps:

publish to your function app
update/change deno binary in your system
publish again

then, the version of deno binary in the function app is different from the one updated/changed locally at step 2.

#16 was closed because it is wrong approach.

Already fixed.


Create video from png image files

Hi All,
I tried a couple of ways to create a video from png image files with jcodec from googling, but all failed, some ways are from the old jcodec version, but the code is not even backward compatible, finally I tried the 0.2.0 version of the jcodec in the github with SequenceMuxer class as following:
            File file = new File("test.mp4");
	  SequenceMuxer smuxer = new SequenceMuxer(file);

	  for(int ii=1; ii<6; ii++){
		  File imageFile = new File("image0"+ii+".png");
		  smuxer.encodeImage(imageFile);
	  }
	  smuxer.finish();

The video file test.mp4 is created, but no video player can even play it, It complained format is not supported.
I also tried this way:
File out2 = new File("TestVideo.mp4");
        AWTSequenceEncoder8Bit enc2 = AWTSequenceEncoder8Bit.create2997Fps(out2);

        for (int i = 0 ; i < 5 ; i++ ){

           BufferedImage bi = ImageIO.read(new File("image0"+(i+1)+".png"));

           enc2.encodeImage(bi);
        }
        enc2.finish();

I got the video, and it can play, but only shows the first still image.
What have I done wrong? please help!! and thanks in advance.
Best Regards.

Hi, thank you for reporting. Some video players will behave weirdly with jcodec-encoded videos, I will need to look into that. However ffmpeg and vlc should be fine.
If you just need to encode a bunch of PNGs you can have a look at a Transcoder class. The high-level example of usage is actually the TranscodeMain class.
You are bringing up interesting issues in your report though, I'll look into this meanwhile.

Hi, thanks very much for your response, I downloaded VLC and tested the two video files created from above code, it works, but it is very fast with 0 duration, also if I play with QuickTime, it does not work.
Also followed the TranscodeMain approach, and tested it, it worked as well even on quicktime, but also played very fast with 0 duration,  how do I control time/frame rate, and control when to play which image?
Thanks for your help.


Updating version in makefile

It looks like when v.0.6.1 was cut, the makefile wasn't updated to reflect the new version. This affects manifest generation (not too sure the implications beyond this).

Going to merge this and re-release 👍


with_ syntax is long

The with_ syntax for adding an element is rather long, assuming this gets used to build some rather large HTML structures, it seems like a lot of unnecessary typing, perhaps you could consider dropping the with_?

Thanks for commenting!
I'm not a huge fan of the idea of shortening the names. Personally, I like having the with_ because it makes both the self-consuming (with) and self-modifying (add) APIs more parallel, without showing direct preference for either approach. From a UX perspective, I think that making one version of the API shorter would cement it as the "default" choice, when each version is correct in different circumstances. For example, if I was aggregating an iterator with a fold, I might prefer to use the with methods, whereas if I was using a for loop, I might prefer to use the add methods.
I also like having the verb because it makes reading the code feel a little more like natural language, similar to using is_empty() rather than just empty() to check whether a slice has any elements in it. Obviously, this is all completely semantic and philosophical, so we're free to disagree on whether that's worth a few additional keystrokes! :slightly_smiling_face:
In general, I don't know that I would prefer build_html for very large constructs. If I was writing lots of HTML, say for a more complicated page, I might try to extract the parts that don't change and write them as their own HTML file that can be formatted and linted by my editor. I would use build_html primarily to fill in the pieces that I need to generate programatically. Then, I could embed the HTML file with the include_str!() macro and patch in the extra HTML pieces with format!(). That's not to say that you can't use build_html to make something bigger, but once things start to get complicated, I find that it's nice to have my editor tooling help me work in actual HTML.
If you do want to generate a large page completely from within Rust, (and I acknowledge that there are definitely a few reasons that you might want to!) my first thought might be to look at macros. Hypothetically, a higher-level macro-based API could rely on build_html under the hood to make something even more ergonomic than just shortening the method names. Those macros could be split out into an ecosystem of crates providing different APIs for different use cases. For example, maybe one API could be used to help simplify generating react components, while another helps apply styles to your HTML.
As I said, most of this is semantic and personal preference, so there's certainly room to disagree.

Thanks! I respect your reasoning. I used https://docs.rs/html-builder/latest/html_builder/ in another project, which generates the html for a page entirely in Rust. I enjoyed using it, and wanted to explore the space further (thus finding your library) before starting on the next one. For me, the main motivation to use this approach is to have code that is in a single well established programming language, that is simple (ideally no extra dependencies), easy to understand and easy to refactor using standard tools if required. In my opinion, the macro based approaches lose on this, I would almost rather use one of the template language implementations, at least they are approaching some kind of well established standard rather than some kind of bespoke DSL.


when searching, survive errors for multiple registries

when searching multiple registries for images, if we get an error on one
of the searches, we should keep going and complete the search.  if there
is only one search registry however, we will return an error.
Resolves: #1255
Signed-off-by: baude<EMAIL_ADDRESS>

Sure
LGTM
@rh-atomic-bot r+

I think we might need to get rh-atomic-bot added to the containers org, maybe?

@rh-atomic-bot r+

@rh-atomic-bot r+

I think I straight broke the papr tests by manually merging the systemd cgroups stuff

@rh-atomic-bot retry


Wait for 'ready' event

If the event 'ready' has not been fired yet, the apis request, join, allocateToMe and whoami will throw. This pr fixes that.

it conflicts with the other one :)


UserWarning: masked_fill_ (...) please use a mask with dtype torch.bool instead.

When running NCRF++ in training mode with the demo file, it spews out a massive amount of the following error:
UserWarning: masked_fill_ received a mask with dtype torch.uint8, this behavior is now deprecated,please use a mask with dtype torch.bool instead.
Looking at previously closed issues, I see that manually modifying the code to cast all variables named "mask" to bool by using .bool() in stead of .byte() fixed the issue then, and apparently the issue was closed without a fix.
However, in the current version there are also other masks like this out there. I found those that are named "mask" and recast them by using .astype(bool) where .bool() wouldn't work, but I'm still getting a lot of warnings of the same type (also there does seem to be less of them).
I really don't want to go through the code with a fine-toothed comb to find every instance where an array of integers is actually used as a mask (but not named one) - can someone who's worked on the code before provide a fix?

I was faced the same problem.
And I solved the problem by downgrading pytorch to satisfy the requirements
Python: 2 or 3
PyTorch: 1.0

This is a workaround, I guess, but I'd really like to run PyTorch > 1.0. Any idea why this workaround works? What was the update (to Pytorch) that broke it (and which part of NCRFpp did it break)?

@espenhk @gorou-gnm   Same problem was solved by https://github.com/jiesutd/NCRFpp/issues/137
I will upgrade the code soon.


Fix encoding for document IDs containing colons

Introduce HierarchicalUriComponents for URI encoding, based on
code from the Spring Framework. See file for full attribution.
Add tests for replication of documents containing the colon (:)
character. Previously this was incorrectly handled.
Update tests to reflect encoding of [ and ]
characters. Previously these were not encoded. RFC 3986 suggests
that it is correct to encode these characters.

LGTM +1

@ricellis updated to use UTF-8

+1


Discussing rule: max-lines-per-function

While I agree with this rule in principle, I find myself fighting with it a lot. It's particularly problematic in files where we pass lots of parameters around (see https://github.com/netlify/build/blob/master/.eslintrc.js#L38-L46).
In this particular case, I like how explicit we are about the parameters we receive and pass to each function. By doing this, we can be conservative about what we expose to other functions downstream. But this makes the code more verbose, which conflicts with this rule.
Any thoughts?

I agree.
What about either:

Increasing the number of max-lines-per-function?
Disabling max-lines-per-function and only relying on max-statements (which we already do)?

I think especially that prettier has the hand over most of the styling, sometimes it is also out of our hands to "fix" this rule.
like
const {a,b,c,d,f,g} = function();

which prettier might format to
const {
  a,
  b,
  c,
  d,
  f,
  g
} = function();

So I'm also for disabling this and rather rely on max-statements

So I'm also for disabling this and rather rely on max-statements

Sounds good! 🚀


Fix pause within pause

This fixes the issue raised in vinteo/hass-opensprinkler#276.
It passes in my environment, but given the nature of it I think it makes sense to be well tested by someone else before we merge/release it.

I couldn't get it to work without adding a delay:
        if seconds > 0 and self.pause_active:
            await self._set_pause(0)
            time.sleep(1)

Hmm I was afraid of this. I tried to avoid such a delay because I think the sprinklers will turn on (for that 1 second) before pausing again. You might get away with it dependingon the kind of solenoids you have but it doesn't feel like a good solution.
Out of curiosity, what hardware are you running OpenSprinkler on @EdLeckert? I have Rpi3+ & OpenSprinklerPi and didn't need a delay, but it seems I was right to worry about the timing issues on other platforms.
If this is all true we might genuinely need to fix it in the sprinkler firmware instead, which will take a bit longer.
Thanks for trying it out anyway.

Out of curiosity, what hardware are you running OpenSprinkler on @EdLeckert?

OS3.0 AC-powered with wired Ethernet module

Hmm I was afraid of this. I tried to avoid such a delay because I think the sprinklers will turn on (for that 1 second) before pausing again.

Probably. My sprinklers are blown out for the winter, but I'm sure they would. I never said it was a good idea. 😏

If this is all true we might genuinely need to fix it in the sprinkler firmware instead, which will take a bit longer.

This is absolutely an API problem, either with the firmware or the docs. Have we tried reporting it? We should.
But even if the firmware were changed tomorrow, some users would never get the fix. So I think we should again take a hint from the UI and assume that the docs are wrong. Once paused, the only thing you can do from the UI is unpause, and this is the worldview that most users will have anyway, not the API docs.
Unless you have a better idea, I suggest we throw an error if already paused, and document this behavior. Users could use something like a conditional card to provide an appropriate UI experience similar to the OpenSprinkler UI.

Unless you have a better idea, I suggest we throw an error if already paused, and document this behavior. Users could use something like a conditional card to provide an appropriate UI experience similar to the OpenSprinkler UI.

I agree with this. My opinion is pyopensprinkler should definitely throw an error if already paused. But hass-opensprinkler can handle this and check if pause active when calling a service and then doing nothing or throw an error, I am not that familiar with how HA handles errors in services. Then for automations and HA UI, its up to the user to handle the scenario by unpausing first if they want to

This all seems a bit awkward, so I've been thinking about how the UI could work. As an alternative to a Conditional Card, a Template Switch might also work. A Template Switch combined with an Input Number or Input Datetime would be "on" if the controller is paused, and the user would have to turn it "off" and back "on" for a new pause duration to take affect. We could document an example of how this would look.

Haven't had any time to work on this, but have just raised OpenSprinkler/OpenSprinkler-Firmware#258 to see what they think.
I largely agree with @EdLeckert's latest suggestion but think it should be a switch & number we provide in the integration rather than a template the user has to set up themselves, just to make it easier.


Can't reproduce results training

With the provided splits, I can not reproduce the results when training from scratch.  I get an f1 scores of 61.33% and 47.79% for TVSum and SumMe respectfully.  I am thinking that maybe the seed of 1234 is not the correct seed to be used for generating these results from scratch?
Thanks!

Hi Mallorbc,
The published results were produces with the the github code as is, that is, including the seed. Later on we
found out that the results slightly differed with later pytorch versions.  It you setup you machine with the
package versions documented in the readme.md you should be able to get the published values.
Sorry I'm not able to help more.
Best
Jiri

No, thats plenty of help and makes perfect sense. Thanks
I do have a follow up though:
How did you go about selecting the seed and the splits used for the final result? Using different seeds and or different splits leads to a noninsignificant change in the results.
Thanks again!


Linux VM hosts variable

Hi, I have managed to create Azure VM with the complete Playbook on Azure Cloud Shell.
However, I noticed that running the same Playbook will not work on Linux VM on Azure, because the hosts is set to localhost.
And I cannot figure out the variable for "hosts" in this case (running Ansible on Linux VM).

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

ID: 510094c2-581d-6df4-f091-60dde3899e85
Version Independent ID: 97865acf-0bee-d4f4-6f29-c3f9e5bb9aa3
Content: Use Ansible to create a Linux virtual machine in Azure
Content Source: articles/virtual-machines/linux/ansible-create-vm.md
Service: ansible
GitHub Login: @TomArcherMsft
Microsoft Alias: tarcher

@kchan54hk Thanks for the Comment. We are actively investigating and will get back to you soon.

@kchan54hk I have tested and reproduced the complete scenario given in the article successfully. Am not sure but looks like you get the error because the entries like <IP_ADDRESS>, localhost, ::1 in the /etc/hosts file are missing. As it is hard to say what is causing you to hit the issue, support is able to determine this but unfortunately I can not. Here are the steps to raise a support tickets with Azure technical support. If you already have a support plan. If you don't, please send mail to<EMAIL_ADDRESS>with your subscription ID and a link to this Github thread (for context) and we will assist you with engaging Azure technical support.

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


fix: reword flow-mode into flow_mode [ 3.10.x ]

Issue
gravitee-io/issues#7625
Description
Currently on master we can not set the organization flow mode. It's due to a simple wording error on the ui-component. ( see https://github.com/gravitee-io/gravitee-ui-components/pull/598 ) To avoid to see this issue coming back we will reword all flow-mode to flow_mode on all supported versions.
The Json property has always been fixed to flow_modeso this fix only concerns the frontend and the way we map the data.

🚀 CI was able to deploy the build of this PR, so you can now try it directly here
Notes: The deployed app is linked to the management API of APIM master. (Same login and password as APIM master)

Waiting for this one https://github.com/gravitee-io/gravitee-api-management/pull/2034


ERR_SSL_PROTOCOL_ERROR when trying to access docker handbrake via Synology

Hi Team, I recently launched the latest version of docker-handbrake on my Synology via the package center's Docker app, and I believe I configured everything correctly. I made sure the USER_ID and GROUP_ID matched my shell, I used port 5800 by configuring port forwarding on my router and via DSM's router config. When launching handbrake via the desktop icon, it opens a new tab to https://:5800/ and throws a 'ERR_SSL_PROTOCOL_ERROR', I suspect this has to do with the fact that I use SSL (HTTPS) and have a cert configured. I'm not sure how I can go about this. Reading , it looks like I can set SECURE_CONNECTION = 1, however I'm not sure how or if I can do this with the package center docker. Thoughts? Thanks!

So I found this https://github.com/jlesage/docker-handbrake/issues/20, seems to point my in the right direction, but I'm not sure if I mapped the volumes correctly, or if I put the cert in the proper directory. Do I also need to chance the env variables?

So what are you trying to achieve exactly?  Setup access to HandBrake from the Internet ?

I guess, yes. It’s running on my Synology via Docker. I think at this point
I just need help with the mappings. It doesn’t seem to detect the .pems.
On Sun, Jun 7, 2020 at 21:33 Jocelyn Le Sage<EMAIL_ADDRESS>wrote:

So what are you trying to achieve exactly? Setup access to HandBrake from
the Internet ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jlesage/docker-handbrake/issues/126#issuecomment-640315982,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGULEFNEEEP6ZMFIOHK7I5TRVQ5YBANCNFSM4NQHB62Q
.

You need to set SECURE_CONNECTION = 1.  Probably under the Environment tab of your container's settings?

Note that exposing the container directly to the internet is dangerous, since anybody can access it...

Thanks @jlesage I will give that a shot. Totally ack on the security concern. Is there no way to enforce auth when accessing it? I was trying to set this up - https://youtu.be/E6HgHsxdWIo?t=390.

If you need/want some sort of authentication, you probably need to access the container behind a reverse proxy....

I'm experiencing the same problem.
Did you find a solution @jlesage ?

It was. not clear what was the problem.  Can you share more details about yours ?

Closing this issue.  Please re-open if needed.


AccurateClipPolygonWithLine can't clip the polygon well,it have bug

when the polygon has holes ,clip the polygon, the result is that the hols all be filled,result is wrong.
Who has the right version，thank you！

If you want to take a look at the code it is here: https://github.com/DotSpatial/DotSpatial/blob/cf2b523ed00e67e42cd0d645a351b975772c4c38/Source/DotSpatial.Tools/ClipPolygonWithLine.cs#L65


refactor: css rewrite error summary

Summary | Résumé
CSS rewrite for the error summary component to add new CSS features like layers, etc.
Part of fix for https://github.com/cds-snc/design-gc-conception/issues/627

Figured out what was missing.


Quality assurance of the MONAI/examples folder

Is your feature request related to a problem? Please describe.
As the size and content scope of the MONAI/examples folder increase,
it's necessary to figure out the hardware/software requirements for running the examples,
and also provide some forms of quality assurance of the example codes.
Describe the solution you'd like
could automatically run the examples as a part of the automated CI/CD pipeline?
Describe alternatives you've considered
manually verifying all the examples regularly (tedious and error-prone)
Additional context
see also https://github.com/Project-MONAI/MONAI/issues/296

addressed by #107 , please file new issues for any follow-up

addressed by #107 , please file new issues for any follow-up


Register a custom URI schema so the application can be opened from the web browser

This will be necessary to support SSO/cognito sign-in callbacks (#103)

Unnecessary with the approach chosen in #153


Multiple bugs for evaluating selfplay

In README, Section 5 Scoring:

airdialogue score --pred_data ./data/out_dir/dev_selfplay_out.txt \
                  --true_data ./data/airdialogue/tokenized/dev.selfplay.eval.data \
                  --true_kb ./data/airdialogue/tokenized/dev.selfplay.eval.kb \
                  --task selfplay \
                  --output ./data/out_dir/dev_selfplay.json

It loads tokenized true_data and  true_kb.
However according to
https://github.com/josephch405/airdialogue/blob/c74072f8667d92839dc39e98b386ce8e932c8c68/airdialogue/evaluator/evaluator_main.py#L240-L256
, it actually needs json files.
May be change it to
                  --true_data ./data/airdialogue/json/dev_data.json \
                  --true_kb ./data/airdialogue/json/dev_kb.json \

?

After fixing the previous bug, another one appears:

https://github.com/josephch405/airdialogue/blob/c74072f8667d92839dc39e98b386ce8e932c8c68/airdialogue/evaluator/evaluator_main.py#L247
it process pred_json_obj['action'] using action_obj_to_str. This step, however, has been done when generating dev_selfplay_out.txt
maybe remove action_obj_to_str?

After that, another one appears:
https://github.com/josephch405/airdialogue/blob/c74072f8667d92839dc39e98b386ce8e932c8c68/airdialogue/evaluator/evaluator_main.py#L252

pred_json_obj is not compatible with json_obj_to_tokens, where pred_json_obj do not have key dialogue. Instead pred_json_obj has a key called utterance
I can get the program run via replacing that line by
pred_raw_text = pred_json_obj['utterance'].replace('<t1> ','').replace('<t2> ','').split(' ')

However, it think that may not be the optimal solution.

This is addressed in a working version of a PR at the Airdialogue repository - will close once both are merged in with the README updates. At the moment we're basically doing what you mention in question 3 of transforming between utterances and dialogues, but on the Airdialogue cli side.

Address in #10


Create extra Travis job to clone and test the starter pack

Proposed changes:

related to https://github.com/RasaHQ/rasa_core/issues/1427
Add an extra stage to the travis script which clones the NLU starter pack and tests it upon successful NLU build

Status (please check what you already did):

[x] made PR ready for code review
[x] added some tests for the functionality
[ ] updated the documentation
[x] updated the changelog

Can you please change this to run the stages in parallel (the same way I did in core)

No, because we don't do the same integration tests in rasa_nlu as in rasa_core, we only test the repo and deploy

@tmbo we can test the nlu components of both packs in parallel, with an extra cost of 90 seconds build time


How do I use ReplyKeyboardMarkup?

Hi, how do I use ReplyKeyboardMarkup?

It can be initialized with an Array(Array(String)): the value of the buttons, then sent as reply_markup, when the user clicks a button it's value will be sent as a message
keyboard = ReplyKeyboardMarkup.new [["left", "right"], ["down"]]
send_message chat_id, "choose an option", reply_markup: keyboard

see: https://core.telegram.org/bots#keyboards and https://core.telegram.org/bots/api#replykeyboardmarkup


Segfault on selecting from Kafka engine table

Version <IP_ADDRESS>
When running
SELECT *
FROM table
SETTINGS format_schema = 'message:Message'

It segfaults the server:
Exception on client:
Code: 32. DB::Exception: Attempt to read after eof: while receiving packet from localhost:9000, <IP_ADDRESS>

Connecting to localhost:9000 as user default.
Code: 210. DB::NetException: Connection refused (localhost:9000, <IP_ADDRESS>)

The table is as follows:
CREATE TABLE IF NOT EXISTS table (
    TimeRecvd UInt32,
    Device    String,
    SrcIP     String
)
    ENGINE = Kafka SETTINGS
        kafka_broker_list = 'localhost:9092',
        kafka_topic_list = 'src_topic',
        kafka_group_name = 'clickhouse',
        kafka_format = 'Protobuf',
        kafka_num_consumers = 1;

Relevant logs:
Info log
# cat /var/log/clickhouse-server/clickhouse-server.log | grep "2019.03.20 22:01:37.560"
2019.03.20 22:01:37.560000 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364872
2019.03.20 22:01:37.560032 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560046 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364873
2019.03.20 22:01:37.560041 [ 154 ] {} <Error> BaseDaemon: ########################################
2019.03.20 22:01:37.560079 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560089 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364874
2019.03.20 22:01:37.560122 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560125 [ 154 ] {} <Error> BaseDaemon: (from thread 142) Received signal Segmentation fault (11).
2019.03.20 22:01:37.560130 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364875
2019.03.20 22:01:37.560152 [ 154 ] {} <Error> BaseDaemon: Address: NULL pointer.
2019.03.20 22:01:37.560168 [ 154 ] {} <Error> BaseDaemon: Access: read.
2019.03.20 22:01:37.560179 [ 154 ] {} <Error> BaseDaemon: Unknown si_code.
2019.03.20 22:01:37.560189 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560199 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364876
2019.03.20 22:01:37.560239 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560251 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364877
2019.03.20 22:01:37.560283 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560291 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364878
2019.03.20 22:01:37.560323 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560331 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364879
2019.03.20 22:01:37.560378 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560388 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364880
2019.03.20 22:01:37.560429 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560441 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364881
2019.03.20 22:01:37.560475 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560484 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364882
2019.03.20 22:01:37.560518 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560526 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364883
2019.03.20 22:01:37.560557 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560567 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364884
2019.03.20 22:01:37.560606 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560618 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364885
2019.03.20 22:01:37.560651 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560660 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364886
2019.03.20 22:01:37.560694 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560703 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364887
2019.03.20 22:01:37.560760 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560775 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364888
2019.03.20 22:01:37.560814 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560825 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364889
2019.03.20 22:01:37.560875 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages
2019.03.20 22:01:37.560887 [ 141 ] {} <Trace> StorageKafka (table): Committing message with offset 140364890
2019.03.20 22:01:37.560995 [ 141 ] {} <Trace> StorageKafka (table): Polled batch of 1 messages

Error log
# tail -n 8 /var/log/clickhouse-server/clickhouse-server.err.log
2019.03.20 22:01:37.560041 [ 154 ] {} <Error> BaseDaemon: ########################################
2019.03.20 22:01:37.560125 [ 154 ] {} <Error> BaseDaemon: (from thread 142) Received signal Segmentation fault (11).
2019.03.20 22:01:37.560152 [ 154 ] {} <Error> BaseDaemon: Address: NULL pointer.
2019.03.20 22:01:37.560168 [ 154 ] {} <Error> BaseDaemon: Access: read.
2019.03.20 22:01:37.560179 [ 154 ] {} <Error> BaseDaemon: Unknown si_code.

I have not found any more information. Any ideas? Thanks!

A possible reason for that bug has been fixed (in master).
However to work correctly your queries should be edited:

Instead of

CREATE TABLE IF NOT EXISTS table (
    TimeRecvd UInt32,
    Device    String,
    SrcIP     String
)
    ENGINE = Kafka SETTINGS
        kafka_broker_list = 'localhost:9092',
        kafka_topic_list = 'src_topic',
        kafka_group_name = 'clickhouse',
        kafka_format = 'Protobuf',
        kafka_num_consumers = 1;

use
CREATE TABLE IF NOT EXISTS table (
    TimeRecvd UInt32,
    Device    String,
    SrcIP     String
)
    ENGINE = Kafka SETTINGS
        kafka_broker_list = 'localhost:9092',
        kafka_topic_list = 'src_topic',
        kafka_group_name = 'clickhouse',
        kafka_format = 'Protobuf',
        kafka_schema = 'message:Message',
        kafka_num_consumers = 1;

Instead of

SELECT *
FROM table
SETTINGS format_schema = 'message:Message'

use just
SELECT * FROM table

I.e. specify schema in the command where you specify the format Protobuf.

I was not able to segfault anymore, looks like it's fixed. Thanks!


Message ordering for gcp_pubsub output

Tested with and without ordering keys and seems to be working as intended.
Couldn't find any integration tests for gcp_pubsub. Where's a good place to start?

Hey @torfjor, the gcp pubsub tests are in a legacy location: https://github.com/Jeffail/benthos/blob/master/lib/test/integration/gcp_pubsub_test.go

Okay I just totally fumbled a rebase, merging and will correct it.


docker-resin-supervisor-disk: Don't manage supervisor with systemd

With the work of healthcheck balena might restart supervisor in case of an
issue detected. This would mean that systemd will have to not trace the balena
run process. This needs changes in update-supervisor too as it will need to
manage the supervisor with balena and not with the systemd service.
Change-type: patch
Signed-off-by: Andrei Gherzan<EMAIL_ADDRESS>

Build finished.

@pcarranzav yup, thanks, will add that!

Build finished.

@pcarranzav it is still started by systemd. At boot. But once done, it assumes everything else is handled directly through the balena client. Basically systemd will not track the process. The service will start as soon as it triggered the start of the container.

Right but what I'm saying is that with --restart=always, after the first reboot, balena will start the resin_supervisor container as soon as it starts, and the resin-supervisor.service will pretty much be a noop. So any dependencies of the supervisor have to happen before balena starts

Build finished.

Superseeded by https://github.com/resin-os/meta-resin/pull/928


Multi table input for new MR. Closes #749

Modified new MapReduce builder and implemention to allow multiple
tables through the same fluent API as AccumuloInputFormat
Removed redundant getInputTableConfig methods, replacing with InputConfigurator

@mikewalch it looks like TabletServerGivesUpIT sometimes fails, usually when I run it on the command line.  But it will pass when I run it in Intellj so... ¯_(ツ)_/¯

@milleruntime, i was to fix the IT with https://github.com/apache/accumulo/pull/830/commits/c61b348cc28d42eddc82a66515c86d60aff7b5a4


Provide examples on how to extend the component

I see in some of the components "provide examples on how to extend the component"
* - RemoveerrorColor and provide examples on how to extend the component
Is this already possible?
If not ...
It would be nice to be able to get access to either the styles (directly) or the styled css i.e. StyledButton
https://github.com/UKHomeOffice/govuk-react/blob/master/components/button/src/index.js
Maybe something like
https://github.com/emotion-js/emotion/issues/109#issuecomment-313829050
To allow for overriding button colours etc...

@timarney we've had a few discussions on this internally.
On the one side, if we say that any CSS property could be overridden by the parent application, this is pretty broad and makes it hard to track breaking changes (e.g. if a parent application started overriding margin or display properties, and then we changed a component to start using flexbox or CSS Grid, then this could break the peer application). My preference is to not encourage specific CSS overrides by a peer application, especially while the library is still evolving.
However, we would want the component library to support what peer applications need.
My personal preference is that, if an override is needed (such as button colour), these are added case by case as features/props to the components.
I would be interested to hear how other component libraries handle this. We have a few listed in the project readme.
Does this make sense to you? If you have any further thoughts on this then let us know. If you want, we could set up a call some time.

@marksy @Loque- @stevesims @gavinorland may have some thoughts on this

@penx thanks for the quick response.
Some control over the font and colours would be a great starting point.
I'll gather thoughts and ideas from some interested people on my end and yes a call at some point would be good.
We took a copy and paste approach here:
Example:
https://github.com/cds-snc/ircc-rescheduler/blob/master/src/components/forms/Button.js#L89
URL:
https://vancouver.rescheduler-dev.cds-snc.ca/register

we would want the component library to support what peer applications need

There's another project as CDS currently being worked on,  that is looking at using this repo "more directly"  likely a good use case but perhaps too early.

Fantastic all - I'll be meeting a few people to discuss on my end later today.
I've heard of but haven't tried  polished yet.  Will have a look.
@stevesims we're in Ottawa, Ontario ... can look into arranging something :)
Exciting stuff.

@penx

I would be interested to hear how other component libraries handle this. We have a few listed in the project readme.

Figured I would ping the creator of emotion
https://twitter.com/tkh44/status/1055890071813943296
He notes https://primer.style/components/docs/primer-theme as one to look at.

I briefly started looking at using styled-system a while back:
https://github.com/penx/govuk-styled-system
https://www.npmjs.com/package/govuk-styled-system
My understanding is that we should make a standalone govuk-styled-system repository working first, then we could make this project use it.

I think styled-system (or something like it) would be the most flexible approach.  Defaults + easy overrides if needed.  Personally I would like to explore this route.
For now - one of the teams at CDS is going to fork this repo and play around with a passing props type of approach.  We'll see how that goes.
Like the simple override properties part here:
let imageStyle = Object.assign(
      {},                               // target (starting with)
      { ...sensible defaults... },  // some pre-defined default React inline-style for the component
      this.props.style              // allow consumers to override properties
    );

Overall would be worth a call to discuss pain points such as getting styling updates from upstream, fonts etc...

Interesting discussion! Thanks for being so engaged!
I don't have a specific implementation to suggest, but I figured I would throw in a little anecdote, spurred by reading @penx's comment above.
Granted it was a couple years back now, but when I was working on the Digital Marketplace, I was going to the frontend meetings pretty regularly.  One of the discussions that came up was whether or not to allow the disabled attribute to be set on  elements, because typically disabling buttons is a bad idea.
The decision that was reached was “let people do whatever they want, but warn them strongly against disabling buttons, which they do both in govuk-elements and in the design system.
Effectively, it was agreed that it was better to err on the side of developer flexibility (ie, allowing developers more freedom) and warn against potential pitfalls rather than being overly restrictive.
Again, not trying to suggest anything specific and it's great to see the conversation develop, just thought that might be helpful context.

Current update is that we added support for changing button colours a while back.
Many, if not most of our components do allow re-styling via simply passing the component to styled (whether using the older emotion release, or the new forthcoming styled-components based version).  There may however be some problems when doing that - if problems are found though fixes should be relatively simple, so filing issues should result in quick fixes.
Adding in proper support for theming however would be a good and sensible thing to do though.  At present we've not given this much thought - just not had quite enough time.  Part of the issue would be how to arrange themes - at present the data that comprises the "theme" is split between @govuk-react/constants and govuk-colours, so this would need a rethink.

due to the overhead of maintaining theming in govuk-react and available time of the current maintainers, we're not planning on tackling theming
also @timarney I only just today realised you made react-app-rewired 👍

@timarney are you still using govuk-react?

@penx thanks for the ping
Maintaining...

overhead of maintaining/supporting + available time of the current maintainers

Makes sense
Update on our end
We're currently not using govuk-react but continue utilizing bits and pieces of gov uk components in our work.  Given the pandemic our work has shifted around to say the least but a design system being talked about.
This project forms project is the most active we have re: react components https://github.com/cds-snc/platform-forms-client/tree/main/components/forms
react-app-rewired
:)


Dont work v2 swap on ston.fi

Use this code https://github.com/nessshon/tonutils/blob/main/examples/jetton/dex/stonfi/v2/swap_ton_to_jetton.py
Try swap ton to  major
https://app.ston.fi/swap?chartVisible=false&ft=TON&tt=MAJOR
Address of the Jetton Master for swapping
TO_JETTON_MASTER_ADDRESS = "EQCuPm01HldiduQ55xaBF_1kaW_WAUy5DHey8suqzU_MAJOR"  #
Number of decimal places for the Jetton
JETTON_DECIMALS = 9
Amount of TON to swap (in base units, considering decimals)
TON_AMOUNT = 0.1
Example transaction
https://tonviewer.com/UQClY81dCu9tE2zqeM2jygPfxNXEiINnx0i-ocKR6WxC2jWl
Seems sdk generate not  right contract call

@stufently try to specify this router address EQCDT9dCT52pdfsLNW0e6qP5T3cgq7M4Ug72zkGYgP17tsWD.
to, value, body = await StonfiRouterV2(client, router_address=Address("EQCDT9dCT52pdfsLNW0e6qP5T3cgq7M4Ug72zkGYgP17tsWD")).get_swap_ton_to_jetton_tx_params(...)

its work thnx
how get router address for another jetton  and for v1 pools?

@stufently You can find the router address on the page https://api.ston.fi/swagger-ui/#/Dex/dex_simulate_swap. If you are exchanging TON for Jetton, the offer_address parameter should contain the master address of the pTON token. Specify the desired token in the ask_address field, execute the request, and the response will include the router_address field that you need to use.
I recommend reviewing the Stonfi documentation for more information.

Good idea add it to examples code
https://github.com/nessshon/tonutils/blob/main/examples/jetton/dex/stonfi/v2/swap_ton_to_jetton.py


PAX Check loss and perf

Adds baselines for 4 of the PAX mgmn tests
Adds pytest files to compare tensorboard file result of mgmn tests against baselines
Adds job to run above pytest in workflow

It would be neat to surface the results of this either in a GITHUB_STEP_SUMMARY or a badge somewhere. Any thoughts about adding that?

Agreed, that's my next step 😄.  Just wanted to split into two PRs.

How are the baseline numbers in the JSON files derived? We need to document the source of the data so that when a significant change happens, we know where to look for the diffs.
If they are from a particular Workflow run, maybe we can simply reference it and checkout the associated artifacts? This way, the source and methodology of the data is self-explanatory.

@yhtang Raises a good point about baseline provenance.
What about in addition to the python file that create the baseline jsons from artifacts, you add a script that takes jobids and pulls the artifacts and calls this python script? That way from the jobid, we can encode the URL of the workflow run and the date it ran in the JSON for inspection and repeatability?

What about in addition to the python file that create the baseline jsons from artifacts, you add a script that takes jobids and pulls the artifacts and calls this python script? That way from the jobid, we can encode the URL of the workflow run and the date it ran in the JSON for inspection and repeatability?

I like this idea. Essentially, we can wrap this up as a reusable workflow, say _compare_metrics.yaml, which we can mentally regard as a function. This workflow/function will accept 2 workflow/job IDs, download the associated artifacts, and determine if the differences between certain metrics (can be specified via an input) is large.
This way, we can reuse this workflow for comparing results for PAX, T5X, JAX, TE, etc...


Fix FOUC on expand/collapse (osx only?)

White background when expanding/collapsing

Ok, it works now. The show/hide is kinda weird in Windows though


[Core][minor] imporve the getCacheLocs method in DAGScheduler

The current implementation include searching a HashMap many times, we can avoid this.
Actually if you look into BlockManager.blockIdsToBlockManagers, the core function call is this, so we can call blockManagerMaster.getLocations directly and avoid building a HashMap.

Can one of the admins verify this patch?

This seems like a worthwhile perf improvement.
Does this code have any test coverage that would help verify we're not introducing a regression here?

@JoshRosen can you also take a quick look at this? it looks alright to me.

While looking this over, I noticed that BlockManager.blockIdsToExecutorIds isn't called anywhere, so we should be able to remove that method.  After removing that method and this patch's change, BlockManager.blockIdsToHosts is the only place which calls blockIdsToBlockManagers, so we could fold those into a single method in order to remove some unnecessary layers of indirection / collection creation.

This seems like a nice change to me.  I'm in favor of doing a bit of extra cleanup by removing the unused BlockManager companion object methods and combining two of the methods, as described above.  It would also be nice to file a JIRA for these changes.

Hi @JoshRosen , I have done the cleanup, could you give it a test?

Jenkins, this is ok to test.

Test build #28770 has started for   PR 5043 at commit 203c493.

This patch merges cleanly.

Test build #28770 has finished for   PR 5043 at commit 203c493.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28770/
Test FAILed.

Test build #28771 has started for   PR 5043 at commit e959d12.

This patch merges cleanly.

Test build #28771 has finished for   PR 5043 at commit e959d12.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28771/
Test PASSed.

LGTM, so I'm going to merge this into master (1.4.0).  Thanks!


[backport] Update links to forums in README

Backport of #4345

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit 2861ac01d7d5fa6d5e74d4ec126d299e3dd50bda, target branch v8) failed with status FAILURE.


Remove references to app port from copilot

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:
A short explanation of the proposed change:
Bump the cf-copilot gem and make appropriate changes to the copilot syncer and adapter given the change in interface.
An explanation of the use cases your change solves

we never used it, and never will
its presence was confusing to other teams
i want negative line numbers in my commit history

Links to any other associated PRs
jk none of these are prs
https://www.pivotaltracker.com/story/show/167441185
https://cloudfoundry.slack.com/archives/CFX13JK7B/p1563487183216500
https://cloudfoundry.slack.com/archives/CFX13JK7B/p1562885895169700

[x] I have reviewed the contributing guide

[x] I have viewed, signed, and submitted the Contributor License Agreement

[x] I have made this pull request to the master branch

[x] I have run all the unit tests using bundle exec rake

[x] I have run CF Acceptance Tests

I went ahead and pulled my fix for the code climate complaint because my fix was ridiculous, but you should admire it anyway.


get right response of request

1,the vm state machine doesn't handle unexpected event(request), there will be no response to this request, this will cause the caller blocked to waiting for response.
first patch fixs this by sending unexpected response to request if request needs
2, right now we don't check if exec event is handled correctly. the second patch add this check, so we don't try to read stream callback if exec event failed. And other events get response through response chan, this patch makes exec event consist with other events. This patch also introduces Replyto field to
Vmresponse, with this field, request can check if the response is what it expected.
3, Fix possible getting incorrect response for read/write file event
TODO: Fix possible getting incorrect response for RunPod,StopPod events

LGTM


preload don't work

how to print the preload sql , I mean "Preload("Top2Comments")"'s executing processes

Your Question
1、how to print the preload sql , I mean "Preload("Top2Comments")"'s executing processes
2、where "Preload("Top2Comments")."should be placed before "Table("social_update su")." or after

The document you expected this should be explained
https://gorm.io/zh_CN/docs/preload.html
Expected answer
1、how to print the preload sql  to make sure the preload worked
2、the right sequence of "Preload("Top2Comments")." and "Table("social_update su")."


wordcount.css added multiple times

I've discovered wordcount.css being added multiple times to the  due to multiple instances of ckeditor on a single page. I've found that moving that line to onload method of plugin definition resolves the issue.
moving below line from init to onload of plugin definition:
if (config.loadCss === undefined || config.loadCss) {           CKEDITOR.document.appendStyleSheet(this.path + "css/wordcount.css");         }

Can you make a pull request for that?


Create/Update Hub BGP Connection

Package Name: azure-mgmt-network
Package Version:  19.1.0
Operating System: Linux
Python Version: 3.6.9

Describe the bug
Unable to create or update a BGP peer resource of virtual HUB. The following is the code used -
DEFAULT_TRANSIT_VNET_CONN_NAME = "Prisma-SD-WAN-Transit-VNET_Connect"
`        network_mgmt_client.virtual_hub_bgp_connection.begin_delete(
resource_group_name=resource_group,
virtual_hub_name=vhub_name,
connection_name=peer
).wait()
    vnet_conn_id = '/subscriptions/' + azure_subscription_id + '/resourceGroups/' + resource_group + '/providers/Microsoft.Network/virtualHubs/' + vhub_name + '/hubVirtualNetworkConnections/' + DEFAULT_TRANSIT_VNET_CONN_NAME
    print(vnet_conn_id)

Prints: /subscriptions/440774a6-0e13-4c66-ac90-007c493478ba/resourceGroups/CGXTestRG1-vHub/providers/Microsoft.Network/virtualHubs/Prisma-SD-WAN-vHub/hubVirtualNetworkConnections/Prisma-SD-WAN-Transit-VNET_Connect
    bgp_peer_parameters = network_models.BgpConnection(
        id=vnet_conn_id,
        name=DEFAULT_TRANSIT_VNET_CONN_NAME,
        peer_asn=300
        peer_ip='<IP_ADDRESS>'
    )

        bgp_peer_resource_oper = network_mgmt_client.virtual_hub_bgp_connection.begin_create_or_update(
            resource_group_name=resource_group,
            virtual_hub_name="Prisma-SD-WAN-vHub",
            connection_name="Prisma-SD-WAN-vIon1-Peer",
            parameters=bgp_peer_parameters
        )

            bgp_peer_resource_oper.wait()`

The hub virtual network connection named Prisma-SD-WAN-Transit-VNET_Connect has been provisioned successfully.
The error I get is:
{'err': HttpResponseError('(HubBgpConnectionMustReferenceFullyProvisionedHubVirtualNetworkConnection) HubBgpConnection /subscriptions/440774a6-0e13-4c66-ac90-007c493478ba/resourceGroups/CGXTestRG1-vHub/providers/Microsoft.Network/virtualHubs/Prisma-SD-WAN-vHub/bgpConnections/Prisma-SD-WAN-vIon1-Peer must reference existing provisioned HubVirtualNetworkConnection.\nCode: HubBgpConnectionMustReferenceFullyProvisionedHubVirtualNetworkConnection\nMessage: HubBgpConnection /subscriptions/440774a6-0e13-4c66-ac90-007c493478ba/resourceGroups/CGXTestRG1-vHub/providers/Microsoft.Network/virtualHubs/Prisma-SD-WAN-vHub/bgpConnections/Prisma-SD-WAN-vIon1-Peer must reference existing provisioned HubVirtualNetworkConnection.',)}
Any advise?
Thanks!

@ksridhar57 thanks for reaching out, we'll investigate it ASAP.

According to the log info, it seems that some of your parameter is not valid for service. It needs domain knowledge from service team to help.

I ran into same issue on terraform. What is the status of the fix?
https://github.com/hashicorp/terraform-provider-azurerm/issues/17872

Can you check the latest azure-mgmt-network library to see if it is fixed?


Too much Lua may cause Lags

Describe your bug here.
I don't know, if that is entirely true, but I kind of noticed, that a lot of use of Lua (in a short time?), may cause it to lag.
For example, I charted a song and have an event that puts the Lyrics on the screen (with replacing the strings conent from before)
After a while I got about two lag spikes.
Or another one, where I made little Icons appear on screen and they bop a bit on beat and move in the same direction, as the arrows are pointing at
On faster/longer songs it got a few lag spikes. Or even on Triple Trouble (where I then simply replaced the icon and it's position), but with the exception, that the game just straight up crashed.
So I think, that using too much lua/making too many lua calls, might lag out the game quite a bit.
But IDK if it can be "fixed" or my computer then simply is too weak.
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
Lua changes/examples are written, source code is none

It's a memory leak

I know that, that is the only that causes lags-
but it is still annyoing, if the game freezes for a bit while you should be hitting ntoes

Idk even before I fixed it myself it didn't lag

Idk even before I fixed it myself it didn't lag

You have a fest PC lol

I very much don't

The only way I see is trying to optimise your code, like trying to change any "onUpdate()" to "onCreate()"

Though I didn't change very much-
It was literally that thing probably-
"FNF Freeplay", the mod I modified, is a bit bigger, but I really didn't do too much in it.
So I think it really might be the probably constant call of "onBeatHit()" which would then again be sadly stupid-
It's like implementing a feature, where it is good from the idea, but the game will crash each time-


[sophora-server] optimize creation of serviceaccount

make "serviceAccount" a first-class citizen as it is used by the whole pod, not only by serverModeLabeler

Reminder: Add a breaking changes note to the Readme.
And one side note: in order to fully support proxy sidecars for the postgres connections we should make sophora.server.persistence.postgres.secret optional, see https://github.com/subshell/helm-charts/blob/main/charts/sophora-server/templates/statefulset.yaml#L77

We should also rename serverModeLabeler.enabledOnClusterServers to the more standard-like serverModeLabeler.enabled.

I tend to remove the ability to disable the serviceAccount as it is needed for the serverModeLabeler.
If one would disable the creation of the SA, the serverModeLabeler would fail as it depends on the SA which is not clear right away.
Otherwise we should write a check if serviceAccount.create is enabled when serverModeLabeler.enabled is set.


Does this support spanish?

Does this plugin work based on the phone lang.
Thanks!

No but take a look at this fork : https://github.com/cavej03/Cordova-Text-To-Speech-Plugin


fix: improve rollup build time

fix #65.
Switching to vite for build leads to the error below
Error: Algorithm "sha256"  not supported. supported values: sha1, md5, passthrough
console.<computed> @ VM5:2
(anonymous) @ VM5:2
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2

It seems vite always assumes the app is going to be running in browser and embeds polyfill for 'crypto' package which supports only digests listed in the message above.
Rollup works fine, except the build.js script is very slow because it packages node_modules folder into .cdix archive.
This PR addresses it buy using .extfiles that specifies what to package. The result is a build that works much faster - 3 vs 300 seconds.

I'm still wondering why we can't use vite we were able to switch all podman desktop extensions to vite

you're specifying build.target to be node ?

@benoitf I figured out why digest is missing, tried different solutions. Making module 'object-hash' external works. See explanation in commit comment.

awesome 😎


Alert Manager should have a software alert

There are cases where it is useful for software to trigger alert escalation (e.g. boot ROM or other software encounters an exceptional condition and wants to shut everything down).
Add a software alert source to alert manager and add a register interface to trigger the software alert.

This should not be difficult to add. How soon is this feature needed?
I have a couple of other pending alert handler tasks and would bunch this together with those if this is not urgent (post silver).

i dont' think it's super urgent, so definitely okay to be post-silver.
Michael if you get tied up with other things, let me know also, i can help
look at it.
On Wed, Mar 31, 2021 at 5:28 PM Michael Schaffner @.***>
wrote:

This should not be difficult to add. How soon is this feature needed?
I have a couple of other pending alert handler tasks and would bunch this
together with those if this is not urgent (post silver).
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/issues/5896#issuecomment-811553260,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSU4JMFS2J2HGDSXO4TTGO42ZANCNFSM42F244MA
.

@msfschaffner
since we have to add a device module for ibex to capture all of its alerts for forwarding, I'm thinking we can add the software triggered alerts there as well.  That way we don't have to change anything about the existing alert_handler, other than expand the number of connections.

Good idea, That sounds good to me!
On Mon, Apr 12, 2021 at 3:42 PM tjaychen @.***> wrote:

@msfschaffner https://github.com/msfschaffner
since we have to add a device module for ibex to capture all of its
alerts for forwarding, I'm thinking we can add the software triggered
alerts there as well. That way we don't have to change anything about the
existing alert_handler, other than expand the number of connections.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/issues/5896#issuecomment-818289960,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ3RJJMCBRRE7ONTRBSHFVTTINZL3ANCNFSM42F244MA
.

Closing this issue down for now, since such SW alerts are now implemented as described above. Feel free to reopen if something is missing.


support for Armageddon's Blade

Hi. Any plans to extend support to Armageddon's Blade and other HOMM3 entries? Noticed it won't recognize save files from AB. Not sure why they're different.

Can you share a savegame from AB?

Sure, attached. The message I'm getting is "not a valid save file".
125.zip

Thank you. Looks like adding support for the older versions is very doable, at least for Armageddon's Blade. Will also look into supporting the original Restoration of Erathia.

Does this export look about right for the savefile you provided?
Heroes from 125.zip

Does this export look about right for the savefile you provided? Heroes from 125.zip

Yes, that's correct. Thanks so much.

Released v2.1, with support for savefiles from Armageddon's Blade, and also the original Restoration of Erathia.
Let me know if there are any problems.


setViewport with animation:false did not work.

wrong native function was used to set the viewport without animation

Thank you for this.
Any thoughts on how we could set up an e2e regression test for this?


Minimap to visualize large histories

When creating a complex history tree, some sources may go out of the page. For these cases, it would be useful to have a minimap with an overview of the content and a square highlighting the current view. This would be even better if the minimap is interactive and the highlighting square can be dragged around to navigate the page.
Examples of this functionality I can think of are imageJ (when you zoom on an image) or the Pubmed Central figure viewer.
Some libraries that could be use to accomplish this are:
https://github.com/antoniojps/react-simple-minimap
https://github.com/jeremy-carbonne/react-minimap

This could be a bit tricky, but it would be cool. Something I have also been considering is to allow to hide part of the history(you could click on a sequence and hide the upstream history.


[FEATURE REQUEST] Add testimonial section

Description
Is your feature request related to a problem? Please describe.
I want to add a testimonial section where customers and tailors can give testimonials about how this website has helped them.
Describe the solution you'd like
Add testimonial section
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional Information
Context
Provide any additional context or information that helps explain the feature request.
Potential Implementation (optional)
If you have any ideas or suggestions on how the feature could be implemented, please share them here.
Screenshots or Mockups (optional)
If applicable, include any screenshots, mockups, or visual representations of the requested feature.
Priority (optional)
Please indicate the priority level of this feature request (e.g., High, Medium, Low).
Additional Notes (optional)
Add any other notes or comments about the feature request here.

hey @sumitkr2000 where will you be adding the testimonial section, is it on the Main landing page?

Where ever you say...if you want it on the landing page I can add it on the landing page else I can create a new page for testimonials.

@sumitkr2000  okay go ahead and add it to a landing page

@sumitkr2000 How is work on testimonial section going?

@Siddhant-Patil0203 i told you to help me to go through the code....i added the testimonials section but it's not showing. Can you help me?

@Siddhant-Patil0203 Can you get connected on discord for 2 minutes?

@Siddhant-Patil0203 i told you to help me to go through the code....i added the testimonials section but it's not showing. Can you help me?

Sure

Are u free rn?

I joined the Duo channel, but i guess you where not online at that moment.
Can you describe what exactly you are facing with the issue?

hey @sumitkr2000 can you pls pin me your forked repository and tell me where this issue is arising ?

hey @sumitkr2000 can you pls pin me your forked repository and tell me where this issue is arising ?

The problem is solved now. It's almost done. I will create the pr today.


Accept request body from stdin

When body is too big usually you will have it in a file a pretty version
that you will edit and in that case it way easier to do:
cat body.json | lymph request service.func -

Than the alternative which is copy-paste.

:+1: :tropical_drink:

Including the example in the command's description would be very helpful. Not everyone's familiar with the - convention.

https://github.com/deliveryhero/lymph/pull/242


[ADD ME TO THE ORGANIZATION]

Name: Omkar Ramishte
Location: India
Interest: Designing, coding, blog writing.
Discord username(optional):-omkar#1549
Why do you want to join?

I am already member of this community server. this community helps in many ways for helping contribution of open source project to upskilling as  well through blogging challenges.

You can also join our Discord community here
Feel free to check out other cool repositories of the DevsInTech Community here.

@omk-coder Thanks for your interest. Invitations have been sent to you. Kindly accept it and make your membership public.


node config file linux

litecash-node (v2.5) is looking for beam-node.cfg file instead of litecash-node.cfg

naming issue has been fixed.


mime/multipart: sort written headers

CL from @sthulb at  https://go-review.googlesource.com/#/c/17497/6 for Go 1.7.

Fold into https://github.com/golang/go/issues/13522?

Indeed. Thanks.


Fix zip version and rework docker image build

Thanks for the PR, but I have multiple issues with it:

It switches from Ubuntu to Debian, which I would like to prevent, as all tests are run for Ubuntu and I don't want to provide support for two distributions
It rebuilds Kellnr, which is already build in the Github pipeline. By using the prebuild binaries, it's guaranteed that Kellnr in the container image and Kellnr for bare-metal are the same.
The start.sh is missing. It's crucial, as it imports the certificates needed to correctly setup TLS for Kellnr

Regarding https://github.com/rust-lang/rustup/issues/2949, I would prefer to check, how the official Rust image prevents the issue and port that to Kellnr.
What are your thoughts?

Hi @secana,
Here my replies:

about Ubuntu/Debian, I think Debian is more appreciated in term of security, and Kellnr is quite important in term of security. And Rust handle multi-os very well, and Debian and Ubuntu are so closed. I'm not sure you have to take care about it. Maybe we can add Debian in the CI if you prefers, but for me it's quite useless.
I'm not sure to ensure the second point. For me I found to rebuild into the docker (using build image, than copy executable into runtime image) is the best in term of compatibility. For me distribute for bare metal and docker is 2 different use cases. And as new developper, I found that way less understandable (with the VERSION parameter, it means you can build a docker image with any version of Kellnr, so in term of versioning it's not safe for me)
about certificates, we can document to mount a volume to the right place with certificates. So I didn't see the reason to keep the start script.

Feel free to re-comment my remarks, and if it's simplest we may discuss by visio this week.

Hi,
I'm sold on the switch to Debian. But I think, I didn't understand the issue with the version. To release a new version of kellnr, a tagged git release e.g. git tag -a vX.X.X triggers the workflow that builds kellnr and releases the binaries to github release. These releases are than taken to build a docker image with the same version. To be more precise with the tags vX.X.X, vX.X and vX.
What would you like to change about that?
Q: How do you mount certificates at runtime into the container? I don't like that a start.sh script is needed just to import the certificates, but I could not find another way to achieve a reliably import of certificates.

Hi,
Cool for Debian :D
For version, it's about Cargo.toml (https://github.com/kellnr/kellnr/blob/main/crates/kellnr/Cargo.toml#L5) it's in 0.1.0 and the tag in 5.0.0. using tool like cargo release will update you all Cargo.toml, create a conventionnal commit, and add a tag (we use that for as internal process).
With docker, you can mount anywhere a volume (https://docs.docker.com/storage/bind-mounts/). So anyone can mount into /usr/local/share/ca-certificates/ any volume with it's data. By adding it in the documentation, no script is required. And I think it's relevant (for security and operations reasons) to not build image with included certificates.

Mounting a certificate is documented here: https://kellnr.io/documentation#rustdoc but it only works because the start.sh runs update-ca-certificates before kellnr is started in the container.
I tried a simple example with mounting a certificate into an empty container and a curl to a webpage that requires the cert and the request failed, as the cert was not imported with update-ca-certificates.
Did I miss something and it's possible to import a certificate at runtime without running update-ca-certificates? Getting rid of the start.sh would be great, but it seems to me that the minimum required is a update-ca-certificates && kellnr.

I see, for you in that case you have to redefine the command (CMD).
2 options are available:

update the Dockerfile and do: CMD update-ca-certificates && kellnr
let the user to do it, docker run [OPTIONS] IMAGE [COMMAND] [ARG...], means we can run: docker run -v ./certs:/usr/local/share/ca-certificates/ kellnr "update-ca-certificates && kellnr"

Option one is quite the most elegant for end-users, the second is more adapted to specific use cases (kellnr may have other custom configuration like that and may provide a long start-time).

I'll close this PR, as I need to rework the whole CI pipeline to switch to Debian without introducing a breaking change in binary compatibility with ubuntu.
Tests on the devel branch have shown that building in docker takes 4.5h on Github instead of the 15 minutes, if kellnr is build outside of a container. Even if the build split to multiple runners with a few Docker tricks (https://docs.docker.com/build/ci/github-actions/multi-platform/), it would take ~1.5h to build.
The long build times are due to how docker buildx for multi-architecture images works. As the CI runner is x86_64, the ARMv7 and AARCH64 are emulated with qemu, which takes forever. On the other hand cross-compiling for a different architecture likes the current approach does it, has no performance drawbacks.
The most promising way seems to be to build a static binary with musl that can be run on any linux and copy that to the Debian image like it's done with the Ubuntu image currently.
This will not break binary compatibility with Ubuntu and the build times are acceptable. One more advantage is that Kellnr can run on any distribution, not Ubuntu exclusively.

Kellnr 3.2.4 is now based on the official rust image. I'll close this PR.

Kellnr 3.2.4 is released and based on the official rust image. Thanks for the push in that direction!


Configuration migration expects configuration example existence

Web configuration migration process expects file lms/lmsweb/config.py.example while readme instruction will remove this file by -
mv lms/lmsweb/config.py.example lms/lmsweb/config.py

Yup, that's absolutely a bug.
I see you've addressed it in #179, but that's actually not the way I want to solve it.
Check what causes the program to crush and solve it methodically, please :)

Your solution was correct, after all ^^"
@Liad-n took the time to explain me why. It's now fixed, thank you both for the effort.


the review dialog doesn't appear

hi @grizzly thanks for the library
i have an issue the review dialog doesn't appear
2020-09-10 13:24:58.738 17214-17214/com.facebook.lite I/PlayCore: UID: [10289]  PID: [17214] ReviewService : requestInAppReview (com.facebook.lite)
2020-09-10 13:24:58.746 17214-17497/com.facebook.lite I/PlayCore: UID: [10289]  PID: [17214] ReviewService : Initiate binding to the service.
2020-09-10 13:24:58.779 17214-17214/com.facebook.lite I/PlayCore: UID: [10289]  PID: [17214] ReviewService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.inappreviewservice.InAppReviewService})
2020-09-10 13:24:58.782 17214-17497/com.facebook.lite I/PlayCore: UID: [10289]  PID: [17214] ReviewService : linkToDeath
2020-09-10 13:24:58.855 17214-17349/com.facebook.lite I/PlayCore: UID: [10289]  PID: [17214] OnRequestInstallCallback : onGetLaunchReviewFlowInfo
2020-09-10 13:24:58.863 17214-17497/com.facebook.lite I/PlayCore: UID: [10289]  PID: [17214] ReviewService : Unbind from service.

The review dialog does not appear in debug mode. Furthermore change the settings to fulfill your requirements. Standard settings will open the review dialog not before the app was installed for at least two days and before the app was used several times. This will help getting only good reviews. People which don't like your app will normally uninstall it within the first 2 days. So only happy users will remain and see the dialog.


Refactor " : nil" used in ternary operators

Refactor " : nil" used in ternary operators.  Replace with try.

Reverted other occurrences and rebased.

@wburns84 Hmm looks like some dupe commits were added but the squashing wasn't quite right. If you need help squashing, here's a quick howto, otherwise if the "Allow maintainers to edit" checkbox is selected I can squash it for you.

Squashed.

@wburns84 Thanks for your contribution! 💙