text:
scroller 出现的问题

先上图：

滑动页面中的列表最下面会出现这个undefine，不知道怎么配置
我自己配置的
        pulldownConfig: {
          content: '下拉刷新 ↓',
          downContent: '下拉刷新 ↓',
          upContent: '松开 ↑',
          loadingContent: '正在加载...'
        },
        pullupConfig: {
          content: '',
          downContent: '',
          upContent: '',
          loadingContent: '正在加载...',
          clsPrefix: 'xs-plugin-pullup-'
        },

使用的部分：
    <scroller height="-44" lock-x use-pulldown use-pullup :pulldown-config="pulldownConfig"
              :pullup-config="pullupConfig" ref="my_scroller"
              @on-pullup-loading="onLoadItem" @on-pulldown-loading="onRefresh">

    </scroller>

补充下版本。

版本：2.2.1-rc.5
我实在是不知道哪里写错了，水平还打不到看源码，只能每次在reset之后用这个方法。
function fixScroller() {
  let oUndefined = document.getElementsByClassName('xs-plugin-pullup-undefined');
  oUndefined[0].innerHTML = '没有更多了';
};

另外我想问问，有没有设置全局Scroller的方法？我就想设置一次就可以把那些上拉下拉的提示换成中文，麻烦告知一下，如果有我就自己找，也不麻烦您再介绍了。

@airyland

你的 script 代码也帖下吧。没有全局配置，你可以引用同一个 pullup config。

      onLoadItem() {
        let getData = '';
          axios.get()
          .then((response) => {
            if (response.status === 200) {
              response = response.data;

              // 判断是否加载到最后一页
              if (response.list.length === 0) {
                this.$refs.my_scroller.disablePullup();
              } else {
                this.$refs.my_scroller.enablePullup();
              }

              // 更新视图
              this.$refs.my_scroller.donePulldown();
              this.refreshScroller();
            } else {
              console.error('数据请求失败');
            }
          });
      },

      refreshScroller(isResetTop) {
        // 等待页面渲染，刷新，每次更新视图都要调用
        // https://vux.li/#/zh-CN/components?id=scroller
        let obj = isResetTop ? {top: 0} : {};

        this.$nextTick(() => {
          this.$refs.my_scroller.reset(obj);
          fixScrollerBug();
        });
      },
      onRefresh() {

        this.onLoadItem();
      },

您看看，我把业务代码都删了

因 scroller 组件已经不再维护 该 issue 关闭了。

@wh-Coder
调用enablePullup方法后，会调用内部的pullup组件的restart方法，这回导致内部的status变成default，你需要设置pullupConfig的defaultContent

调用this.$refs.my_scroller.donePullup()就行了
而且必须在enablePullup()或者disablePullup()之后

authors: airyland kele1990 wh-Coder xsdlr

repo: airyland/vux


text:
⚠ Turnos 24x7 has degraded performance

In 6e8a0ac, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 2524 ms

Resolved: Turnos 24x7 performance has improved in 94e1f81.

source: gharchive/issue

repo: aisa-status/status-upptime-dev

license: MIT

license_type: permissive

license_source: github-api


text:
⚠ BCR Bot has degraded performance

In b58afa4, BCR Bot (https://bcr.alternativasinteligentes.com/BCRApi/web/chatbot) experienced degraded performance:

HTTP code: 200
Response time: 906 ms

Resolved: BCR Bot performance has improved in 0882280.


text:
⚠ BCR Bot has degraded performance

In 5d010c6, BCR Bot (https://bcr.alternativasinteligentes.com/BCRApi/web/chatbot) experienced degraded performance:

HTTP code: 200
Response time: 972 ms

Resolved: BCR Bot performance has improved in 28fe3b0.


text:
⚠ BCR Bot has degraded performance

In 33e3137, BCR Bot (https://bcr.alternativasinteligentes.com/BCRApi/web/chatbot) experienced degraded performance:

HTTP code: 200
Response time: 1838 ms

Resolved: BCR Bot performance has improved in 517b7b6.


text:
Lijing/cn sense email

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration:

Test Configuration:

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

optimize default lang , translate Italy, German, Spain, French

source: gharchive/pull-request

repo: aitok-ai/LibreChat


text:
chainmaker BoatHlChainmakerTxInit Null pointer check

BoatHlChainmakerTxInit(const BoatHlchainmakerWallet* wallet_ptr, BCHAR* chain_id, BCHAR* org_id, BoatHlchainmakerTx* tx_ptr)
Each parameter should be checked for a null pointer

commit 4434b001b5ab4cb890a47777d208d103026b6dc7
Problem fixed

repo: aitos-io/BoAT-X-Framework


text:
aws_cloudwatch: fixed sender init to support log stream pagination

Fixes an issue where having more than page size log streams inside a log group, the log stream was not found and the sequence token needed for sending logs could not be set. Now we use pagination when listing the log streams inside the log group and paginate until the correct stream is found.

Looks like Travis is having problems again and tests aren't running

The tests seem to have gone through finally. I agree about the error handling. Somehow forgot to include it here. I'll make a separate PR for that as this is in a bit of a hurry to get in.

authors: rikonen tsharju

repo: aiven/journalpump

license_source: bigquery


text:
aiven_pg: Add an attribute for pgbouncer service port

What is currently missing?
With the aiven_pg resource, there is a service_port attribute, and a pg.port attribute. There is also a components array of objects (which cannot be referenced easily). There is no pgbouncer_port attribute. Right now, we have to assume this is service_port + 1.
How could this be improved?
Create a dedicated attribute for referencing the pgbouncer port.
Currently the components attribute looks like this:
    components              = [
        {
            component                   = "pg"
            host                        = "myservice-myproject.a.timescaledb.io"
            kafka_authentication_method = ""
            port                        = 23514
            route                       = "dynamic"
            ssl                         = false
            usage                       = "primary"
        },
        {
            component                   = "pg"
            host                        = "public-myservice-myproject.a.timescaledb.io"
            kafka_authentication_method = ""
            port                        = 23514
            route                       = "public"
            ssl                         = false
            usage                       = "primary"
        },
        {
            component                   = "pgbouncer"
            host                        = "myservice-myproject.a.timescaledb.io"
            kafka_authentication_method = ""
            port                        = 23515
            route                       = "dynamic"
            ssl                         = false
            usage                       = "primary"
        },
    ]

Note: there is a different bug here where ssl=false but TLS / SSL is required.
Is this a feature you would work on yourself?

[ ] I plan to open a pull request for this feature.

Hi @mbrancato!
There is special data source aiven_service_component. With that you can export any component's field.
I'll fix ssl=false asap, thanks.

authors: byashimov mbrancato

repo: aiven/terraform-provider-aiven


text:
This expression is not constructable, Type 'typeof import (filepath)has no construct signatures.

Hi all, I am pretty new with using AJV with Typescript. I am trying to import the Ajv module from ajv as such:
import Ajv from "ajv;
And, use it as I used to do it in plain JavaScript.
 const ajv = new Ajv({ allErrors: true });
However, I am getting an error from the ts compiler as such:
error TS2351: This expression is not constructable.
  Type 'typeof import("/Users/username/Documents/node_modules/ajv/dist/ajv")' has no construct signatures.

 const ajv = new Ajv({ allErrors: true });

Is there anything that I am doing wrong during the import process?
My TS config file is as below:
 `{
  "compilerOptions": {
    /* Visit https://aka.ms/tsconfig to read more about this file */

    /* Projects */

    /* Language and Environment */
    "target": "ES6",                                  /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */

    /* Modules */
    "module": "Node16",                                /* Specify what module code is generated. */
    "moduleResolution": "Node16",                          /* Specify how TypeScript looks up a file from a given module specifier. */

    /* JavaScript Support */

    /* Emit */
    "outDir": "./dist",                                  /* Specify an output folder for all emitted files. */

    /* Interop Constraints */
    "esModuleInterop": true,                             /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
    "forceConsistentCasingInFileNames": true,            /* Ensure that casing is correct in imports. */

    /* Type Checking */
    "strict": true,                                      /* Enable all strict type-checking options. */

    /* Completeness */
    // "skipDefaultLibCheck": true,                      /* Skip type checking .d.ts files that are included with TypeScript. */
    "skipLibCheck": true,                                 /* Skip type checking all .d.ts files. */

    "sourceMap": true,
    "rootDir": "src",
    "declaration": true,
    "types": ["node", "mocha"]
  },
  "include": ["src/**/*", ".env"],
  "exclude": ["dist/**/*", "node_modules", "test/**/*"]
}
`

Help would be appreciated. Thanks

Possibly esModuleInterop has something to do with it?

Thank you for your help but it didn't really make any difference. Will raise an similar issue in the typescript repo. Thanks again!

Or maybe you need module=commonjs
try copying tsconfig from ajv itself, one by one, if you need different settings in you project you may need to adjust imports accordingly - it’s more Typescript than Ajv question…

I was able to fix the issue by doing:
const ajv = new Ajv.default({ allErrors: true });
Thanks for your help!

repo: ajv-validator/ajv


text:
🛑 Main Domain is down

In 92306a2, Main Domain (https://www.anthonywarnick.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Main Domain is back up in fdc03bc.

repo: ajwarnick/monitor


text:
Crontab-friendly script

So, basically this will let the developers run their commands from crontab easily.
This essentialy is a solution for https://github.com/akalongman/php-telegram-bot/issues/156

But I always agree with them, they always are an improvement I just didn't came up with!

Finally gotten around to test this... Nice work!
I see that it doesn't add anything to the DB, obviously, as it gets an update ID of 0.
Was just wondering if there might be a situation where one would want that. Not sure about implementation then to keep it nice and separate from the main updates.
Also, it would be great if you could make a short wiki entry explaining what this does.
Namely, that this cron can be used to have the bot send messages to itself.
Regarding the short command example you give at the top of the cron.php file, it would be great to put more meaningful ones, as sending /whoami or /echo vegetable doesn't really do anything.
I assume you use this to call maintenance related commands?
Apart from that I'm happy to merge this, will wait for your response 👌

(...)
Was just wondering if there might be a situation where one would want that. Not sure about implementation then to keep it nice and separate from the main updates.

I have no idea why would someone want to put 'fake' updates coming from crontab into DB, at first I've been using setCustomInput and sent fake update to run my scheduled commands, but it was literally flooding db with useless things (running 3 commands every minute),

Also, it would be great if you could make a short wiki entry explaining what this does.

Will do!

Regarding the short command example you give at the top of the cron.php file, it would be great to put more meaningful ones, as sending /whoami or /echo vegetable doesn't really do anything.
I assume you use this to call maintenance related commands?

Well, I didn't want to put non-existing commands there as an example...

Awesome wiki entry, very nice!

authors: jacklul noplanman

repo: akalongman/php-telegram-bot

license: mit


text:
Is commercial license available for InstaVariety dataset?

Hi,  Is InstaVariety dataset for commercial use? If so, what is the contact info?

Hi,
The InstaVariety Dataset is only available for non-commercial academic use.
Best,
Jason

Jason,
Thank you!  Still very much appreciated your work.
Heidi
On Thu, Oct 1, 2020 at 4:16 PM Jason Zhang notifications@github.com wrote:

Closed #65 https://github.com/akanazawa/human_dynamics/issues/65.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/akanazawa/human_dynamics/issues/65#event-3831789765,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFAAGJLA7DSHKTKTJ5V3PMTSIUEUBANCNFSM4SA5QEUA
.

authors: heidi-zhenhai jasonyzhang


text:
Modify to display stat results when export-zip is output

概要
export-zip の出力時に stat 結果を表示するよう修正

出力結果
samplev3 % ~/work/akashic-games/akashic-cli/packages/akashic-cli-export/bin/akashic-cli-export-zip . -f
image: 771.38KB (27%)
text: 1.69KB (0%)
ogg audio: 1.96MB (71%)
mp4 audio: 1.12MB
aac audio: 162.53KB
m4a audio: 1.13MB
script: 11.95KB (0%)
other: 45.04KB (2%)
  game.json: 3.38KB
  @akashic-extension/akashic-hover-plugin: 5.14KB
  @akashic-extension/akashic-timeline: 36.52KB
[*] TOTAL SIZE (using ogg): 2.77MB (2904125B)
[ ] TOTAL SIZE (using aac): 992.58KB (1016405B)
[ ] TOTAL SIZE (using m4a): 1.94MB (2034824B)
[ ] TOTAL SIZE (using mp4): 1.94MB (2029419B)
WARN: MP4 (.mp4) is deprecated. Use AAC(.aac) or M4A(.m4a) instead.
INFO: Done!

repo: akashic-games/akashic-cli


text:
Unable to use open_gui on version 0.43

When I try using open_gui() while on pyansys 0.43.0 or 0.43.1, I get this error:
>>> import pyansys
>>> ansys = pyansys.launch_mapdl()
>>> print(ansys)
Product:         ANSYS Academic Research
MAPDL Version:   RELEASE  Release 19.0      BUILD 19.0      UPDATE 20171214
PyANSYS Version: 0.43.1

>>> ansys.open_gui()
2020-08-28 13:33:10,474 [INFO] pyansys.mapdl: *GET  __FLOATPARAMETER__  FROM  ACTI  ITEM=ROUT       VALUE=  0.00000000
2020-08-28 13:33:10,484 [INFO] pyansys.mapdl: ALL CURRENT ANSYS DATA WRITTEN TO FILE NAME= C:\Users\hallrc\AppData\Local\Temp\ansys_tmp\tmp.db\n  FOR POSSIBLE RESUME FROM THIS POINT
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\hallrc\AppData\Local\Continuum\anaconda3\envs\temp_install\lib\site-packages\pyansys\mapdl.py", line 477, in open_gui
    start_file = os.path.join(save_path, 'start%s.ans' % self.version)
  File "C:\Users\hallrc\AppData\Local\Continuum\anaconda3\envs\temp_install\lib\site-packages\pyansys\mapdl.py", line 1676, in version
    return self.parameters.revision
  File "C:\Users\hallrc\AppData\Local\Continuum\anaconda3\envs\temp_install\lib\site-packages\pyansys\parameters.py", line 132, in revision
    return float(self._mapdl.get_value("ACTIVE", item1="REV"))
  File "C:\Users\hallrc\AppData\Local\Continuum\anaconda3\envs\temp_install\lib\site-packages\pyansys\mapdl.py", line 1200, in get_value
    return self._get(entity=entity, entnum=entnum, item1=item1, it1num=it1num,
  File "C:\Users\hallrc\AppData\Local\Continuum\anaconda3\envs\temp_install\lib\site-packages\pyansys\mapdl.py", line 1068, in _get
    return self.get(*args, **kwargs)
  File "C:\Users\hallrc\AppData\Local\Continuum\anaconda3\envs\temp_install\lib\site-packages\pyansys\mapdl.py", line 1310, in get
    response = self.run(command, **kwargs)
  File "C:\Users\hallrc\AppData\Local\Continuum\anaconda3\envs\temp_install\lib\site-packages\pyansys\mapdl.py", line 1628, in run
    text = self._run(command)
  File "C:\Users\hallrc\AppData\Local\Continuum\anaconda3\envs\temp_install\lib\site-packages\pyansys\mapdl_corba.py", line 182, in _run
    raise MapdlExitedError('ANSYS exited')
pyansys.errors.MapdlExitedError: ANSYS exited

When using pyansys 0.42.2, open_gui() works as expected. I've tried this on Windows 10, with both Python 3.7.7 and 3.8.5, and Ansys 19.0 and 20.1. I have tried switching between pyansys versions using pip install --no-cache-dir --force-reinstall --no-deps pyansys==0.43.1(and 0.42.2) to ensure that pyansys is the only package that changes.
Here is the package list for a simple Anaconda environment where this problem occurs:
environment.txt
I'm happy to provide any other information you need.
Thanks for all your work!

I've fundamentally changed the launcher and since open_gui isn't part of the unit testing, it looks like I missed this on Windows.  Let me see if I can correct this today.

Fixed this in #264.  Would you mind installing pyansys==0.43.2 and testing it out?

Looks like that fixed it. Opening the GUI in 0.43.2 works correctly for me. Thanks!

authors: akaszynski rileychall

repo: akaszynski/pyansys


text:
Fixes #8 + adds support of non associative override declaration

This PR fixes issue #8.
Also it adds support of non associative override declaration to fit override docs.

ping

Thanks Pasha

authors: denisdulici pashamesh

repo: akaunting/setting


text:
How to show marker text

Actually, I want to show the marker name. when the user clicks on the marker then the name should show. please help me to do this.

Got it its in the onDirectionSuccess method
like
             mMap.addMarker(new MarkerOptions().position(leg.getStartLocation().getCoordination()).title(leg.getStartAddress()));


text:
Context

Hey there,
Firstly, thank you for your plugin.
I have managed to download and incorporate your library into Android Studio.
Please can you tell me when I enter this line into MainActivity.java, the Context complains error: class, interface, or enum expected:
BluetoothSPP bt = new BluetoothSPP(Context);
I'm new to this, however, muddling through.
Any help would be greatly appreciated.
Kind regards,
Dominic

It's ok, sussed it.
Thank you for your plugin, really appreciated =]

repo: akexorcist/BluetoothSPPLibrary


text:
Added basic tests for version and auth_test.

Beginning of https://github.com/aki017/slack-ruby-gem/issues/8, using VCR.
Enable Travis-CI in https://travis-ci.org/profile before merging this. Here's a build: https://travis-ci.org/dblock/slack-ruby-gem/builds/60445667

I working on spec branch to write :sweat:
pls check it

Oh. That can be merged on top or vice-versa, what do you want me to do? I think any tests is better than nothing right now, maybe no need for a branch?

im googling how to filter sensitive data and i learn config.filter_sensitive_data.
ok. now i merge :+1:

Do enable Travis-CI first!
The auth_test.yml VCR file was hand-edited to remove any passwords if that's what you mean?


text:
Consider removing duplicate default value and javadoc tags from configuration key's javadoc

The annotation processor does not handle javadoc tags and they are written as is in the json file. It's not a requirement for IDE to be able to parse this so the output may not be nice (I haven't tried though).
Also, please do not write "Defaults to XYZ" in the documentation since the default value is picked up by the initial value and IDE display that information when available already. If the metadata does not contain that value the defaultValue field in manual metadata is a much better option than in the description.
Thanks!

I hadn't  considered the output of the annotation processor.
Thank you for pointing out the issue.
I fixed it as follows: a7d4b8e075b52f4d61656a5826599638f991a62e

I removed Javadoc tags.
I removed duplicate descriptions of default values from Javadoc comments.
I decided not to use Optional.

If you are ok with this, I will release it as the next version!

LGTM

v1.4.0 has been released!
https://github.com/akihyro/orika-spring-boot-starter/releases/tag/v1.4.0

authors: akihyro snicoll

repo: akihyro/orika-spring-boot-starter


text:
ondemand lazy loading sometimes fails to load some images

If you are using ondemand lazy loading and the number of slides doesn't divide evenly into your slidesToShow/slidesToScroll, then skipping directly to the last page will make it so some of the images end up not rendering.
In this example, I'm using 7 images, showing 3 images at a time and sliding 3 images at a time. That means that page 3 should have the 5th, 6th, and 7th image. If you scroll one page at a time, that's what you'll get. However, if you skip directly to the last page, you'll see two blank spots before the 7th image, like in this picture:

Note
FWIW, the template for submitting an issue suggests a sandbox with broken CSS - it looks like you can't add separate head and body tags, but you can still add the css via HTML, like in this sandbox, or you can add it in index.css using @import.

Maybe I can take a look at this next week. Hopefully it's a simple fix

@phu1710 would you mind taking a look at #1661 to see if that helps? Looks like it was over 2 years ago when I made the PR, so it's been a while since I used it, but it doesn't look like that logic has changed since then, so it should still be relevant. I just updated with the latest code and fixed the merge conflicts.

repo: akiran/react-slick


text:
TypeError: Cannot read property 'getBoundingClientRect' of null

we are getting this error on Chrome Mobile 54.0.2840 Android and on page transitions (I have react-slick only on my landing page).
TypeError: Cannot read property 'getBoundingClientRect' of null
  at getWidth(~/react-slick/lib/mixins/helpers.js:108:0)
  at update(~/react-slick/lib/mixins/helpers.js:71:0)
  at apply(~/react-slick/lib/inner-slider.js:137:0)
  at apply(raven.js:379:28)
  at nrWrapper(/:13:14888)

I'm getting the same error in the browser

+1

Same as #555

authors: AlmogRnD EvgeniyLyakhov VeeteshJain akiran


text:
Is it possible to create a new variable for goneovim

hey @akiyosi
Vscode nvim uses a nvim instance to do the emulation.
while using vscode nvim the user has the option to set something like this

Important!: If you already have big & custom init.vim i'd recommend to wrap existing settings & plugins with if !exists('g:vscode') check to prevent potential breakings and problems. If you have any problems - try with empty init.vim first

which kinda separates the nvim and vscode nvim
so is it possible to replicate this with goneovim
we have to run this code at starting of goneovim (As far as i think)
if !exists("g:goneovim")
	let g:goneovim = 1
endif

so now we can add custom config for goneovim like
if (g;goneovim)
 " disable the airline
 " set custom statusline
endif

P.S If this is not how goneovim works close this issue

Hi,
Sorry for poor doc.
Your expected global variable is the g:gonvim_running.
e.g.
if exists('g:gonvim_running')
  set laststatus=0
  nnoremap <leader><leader> :GonvimWorkspaceNew<CR>
  nnoremap <leader>n :GonvimWorkspaceNext<CR>
  nnoremap <leader>p :GonvimWorkspacePrevious<CR>
endif

authors: DONofDESTROY akiyosi

repo: akiyosi/goneovim


text:
updating for testing

SUMMARY

ISSUE TYPE

Breaking Change
New or Enhanced Feature
Bug, Docs Fix or other nominal change

ADDITIONAL INFORMATION

Image succesfully built and deployed!

Image succesfully built and deployed!

repo: aknochow/awx-operator


text:
Git difftool is now at the top of the right-click context menu within tree-view

It seems some version added Git difftool to the top of the right-click context menu within the tree-view (where Search in Directory used to be). It sounds a little petty, but it's annoying that something I barely use is quicker to access than Search. Feel like this item should be at the bottom of the context-menu.
Screenshot: https://www.dropbox.com/s/tpqy9shsletptal/Screenshot 2016-10-05 12.05.19.png?dl=0

Exactly. It messes with our old brains. There are other packages also doing that, simply inserting more and more items in that menu. I get confused all the time.

Sorry guys, I don't think I have control over the order of options in the context menu. It seems other package's menu items get put on the top of those from the tree-view package because I sometimes see other options that appear on top of the git-plus ones.
That context menu is dynamic and the contents are based on which item you're focused on and which packages you have installed.
I'm adding separators so the git options are more clearly delineated but I can't do more than that

authors: Horta akonwi intellix

repo: akonwi/git-plus


text:
Feature request

I want to propose my idea regarding Face Mask Detection which is that we can add a feature that if a person without mask is detected then a beep sound should produce.

Go for it!!


text:
Issue/Suggestion: Change search label to city in upcoming event or filter by state feature

Before creating an issue, go through all open/closed issues to avoid getting your issue/suggestion marked as duplicate##
Issue and Steps to Reproduce:
Screenshots:

Expected: The upcoming events section has state as a search label which is supposed to be city. It can be misleading to the users
Actual: Change the label to city
Additional Details:
Please assign this issue to me under gssoc'24. I'll fix it @akshitagupta15june

someone is working on this issue!


text:
Want  to add carousel  into a front page

I want to add a carousel on the front page to  improve the user experience
Describe the solution you'd like
On the front page their only one image of dogs  we can use a carousel  to show different pets on the front page
Additional context

i would also want to contribure here

contributor are working on it


text:
this.props.navigationState return undifined (v4)

Can somebody provide a solution to get the children of a scene ?
I have this scenes
`<Scene key={'tabBar'} tabs tabBarIconContainerStyle={AppStyles.tabbar} pressOpacity={0.95}>
    <Scene {...navbarPropsTabs} title={'CV Builder'} key={'homeScreen'}
           icon={props => TabIcon({...props, icon: 'edit'})}
           component={HomeView}/>

    <Scene {...navbarPropsTabs}
           title={'Profile'}
           key={'profile'}
           icon={props => TabIcon({...props, icon: 'account-circle'})}
           component={ProfileView}/>
    <Scene
        key={'error'}
        {...navbarPropsTabs}
        title={'Jobs'}
        component={Error}
        icon={props => TabIcon({...props, icon: 'assignment'})}
    />
</Scene>`

and inside the drawer, I want to select the first child to be shown as default
 const state = this.props.navigationState; const children = state.children;    <SideMenu ref={(a) => {                     this.rootSidebarMenu = a;                 }}                 openMenuOffset={AppSizes.screen.width * 0.75}                 menu={                     <Menu                         closeSideMenu={this.props.closeSideMenu}                         ref={(b) => {                             this.rootSidebarMenuMenu = b;                         }}                     />                 }                 isOpen={this.props.sideMenuIsOpen}                 onChange={this.onSideMenuChange}                 disableGestures={true}             >                 <View style={{backgroundColor: '#000', flex: 1}}>                     <DefaultRenderer navigationState={children[0]} onNavigate={this.props.onNavigate}/>                 </View>             </SideMenu>
Thanks a lot

What's your status there? Little bit confused with your code and your explanations. Did you try to log Actions and see if there's the data you need?

authors: Ali-Dalal Blapi

repo: aksonov/react-native-router-flux


text:
Show Drawer's nav bar when drawer is open.

Version
Tell us which versions you are using:

react-native-router-flux v4.0.0-beta.31 (v3 is not supported)
react-native v0.55.4

Expected behaviour
Show Drawer's nav bar when Drawer is open
Actual behaviour
Drawer show parent nav bar
This is my router:
<Stack key="root" hideNavBar>
    <Scene
      hideNavBar
      key="launcher"
      title="LAUNCHER"
      {...DefaultProps.navbarProps}
      component={LauncherContainer}
      Layout={LauncherComponent} />

    <Stack key="app">
      <Scene
        hideNavBar
        key="login"
        title="LOGIN"
        {...DefaultProps.navbarProps}
        component={LoginContainer}
        Layout={LoginComponent} />
      <Scene
        hideNavBar
        key="fingerprint"
        title="FINGERPRINT"
        {...DefaultProps.navbarProps}
        component={FingerprintContainer}
        Layout={FingerprintComponent} />

      <Scene
        drawer
        key="drawer"
        title="Menu"
        {...DefaultProps.navbarProps} >
        <Scene
          key="home"
          title="HOME"
          renderRightButton={() => <Logout />}
          {...DefaultProps.navbarProps}
          component={HomeContainer}
          Layout={HomeComponent} />
      </Scene>
    </Stack>
  </Stack>

Some screens

If I understood it right, that's the expected behavior - and it's documented on react-navigation. To have it behaving the way you want, you will need to reorganize your scenes in a different and more complex way. But in a nutshell, the scene containing the drawer need to be at the top level, or it will be nested.

Nesting DrawerNavigation
Please bear in mind that if you nest the DrawerNavigation, the drawer will show below the parent navigation.
https://v1.reactnavigation.org/docs/drawer-navigator.html#nesting-drawernavigation

authors: cxrod daviscabral


text:
Timeouts of Uploads

GitHub seems to have a bit of server trouble lately,
and when uploading the upload sometimes dies, which should give a time-out or something like that. But this situation is not detected by github-release, so the command just runs 'forever'. Adding some kind of time-out detection (explicit or implicit) would be very useful.

This is a bit tricky to do in a fully automated way, as it would need to check whether an upload is not progressing at all instead of just progressing slowly. I'm not sure if any of the default timeout ways on http.DefaultClient/Transport/... has a know for connections that stall somewhere in the middle.
Would a generic --timeout flag also be good? It would mean that an upload was only attempted for X time and then it would halt, no matter what. It's not very flexble, as very large files might never be able to finish if the timeout is set too tight.
This post lists a few approaches: http://stackoverflow.com/questions/16895294/how-to-set-timeout-for-http-get-requests-in-golang

A generic --timeout would also e good, yes.
Most important though, would be to process the response headers of GitHub in such a way that an upload asset which is deemed to be failed at some point will be gracefully removed. Because currently the GitHub API does not expose any failed asset uploads, but the upload itself should have the asset ID, which it then should remove (otherwise it blocks any upload with the same name).
Also it would be useful to allow verbose logging of such uploads, since I am in contact with the GitHub people about this problem, and they would really like to gather more data about these failed uploads, which I currently cannot provide when killing the upload command :-/

@aktau would it be possible to take a look at this issue; it is one of the most painful problems at the moment with github-release/gothub that stalled uploads can't be detected in a sane manner.
https://github.com/itchio/gothub/issues/2

@mfonville I'll see when I get enough time for the ideas presented on https://github.com/itchio/gothub/issues/1#issuecomment-217632899. I hope soon.
As for the timeout though: I was adding it, but then I thought that there was an alternative that basically did the same thing without adding another option: http://man7.org/linux/man-pages/man1/timeout.1.html. Quite UNIXy, I like it. Would this work for you or is that somehow cumbersome?
Perahaps, if --timeout were present, github-release could attempt to roll-back the action if the timeout passes. Though this could would get finnicky. Perhaps really forcing the -R flag is the best approach.

@mfonville can you check whether 70ed556 does anything for you? That would be too sweet :).

@aktau I will check it out soon, I can't at this very moment because my production relies on it ;-)
I already use the linux timeout as a wrapper command, but it is kind of ugly, because it can't track the actual progress and thus any value I pass with it has to do rough worst-case estimates concerning bandwidth and the actual time it would take to do the upload.
The problem with the uploads is, afaik, that there is not so much a statuscode is directly/clearly passed back by the server, but that it just loses the connection, but that github-release doesn't know the connection has been dropped by the server, and it gets stuck. See https://github.com/itchio/gothub/issues/1#issuecomment-217709801

I had to rollback 70ed556 because it caused github-release to no longer be able to upload assets to draft releases. I'll see if I can adapt https://github.com/itchio/gothub/commit/589f120bd685af3d4d7888a62c773e3b5a21b115. Correctness is most important.

OK, I hope this one does it. @mfonville, can you give ce89c10 a try?

(It doesn't handle timeouts, but should make uploading quite a bit more robust).

@aktau thanks for these changes.
I was using gothub with the -R flag for when timeouts happened; if I replace gothub with this version of github-release, could I enable some logging easily to detect these events? That way I could verify and provide feedback

I added 1139b43 with some extra debugging hooks. Those should print a line with a predictable format in case the problem happens. Does that work for you?

I also added a HTTP inactivity checker which should hopefully make sure that the app never hangs more than a minute after github server dissapears from the internet. Let me know if it works out for you.

@aktau thanks, I will try this code on my production machine; is it also possible to print debug statements when that timeout happens?

silly question btw from me, but go get fetches the latest HEAD right?

go get -u will update and install from the latest head. I think go get without -u just does nothing if the repo is already present.

@aktau thanks, I will try this code on my production machine; is it also possible to print debug statements when that timeout happens?

When a timeout happens, you should get a very peculiar error message (it basically makes the http.Get call return nil-resp, non-nil-err, which will get printed unless you specify -q). If you want to see what this looks like, you can locally modify the HTTPReadWriteTimeout to be 1 * time.Millisecond, and it will fail even on very tiny upload.

It did not work the log is full with statements like:
error: can't create upload request to https://uploads.github.com/repos/opengapps/arm/releases/5977893/assets?name=open_gapps-arm-5.0-stock-20170405.zip, Post https://uploads.github.com/repos/opengapps/arm/releases/5977893/assets?name=open_gapps-arm-5.0-stock-20170405.zip: read tcp X.X.X.X:51768->192.30.253.96:443: i/o timeout

It seems only some small assets were able to get uploaded successfully, but almost all did (repeatedly) fail (the upload commands were with the -R flag)

That's interesting. I'll take a look when I get time (and revert the commit). I shouldn't have been experimenting on master branch, that's very bad form.
Let's do it on a PR branch and you can build experimental github-release's from there.

(It's especially weird that this seems to happen in a read request... and that the read request goes in this direction: read tcp X.X.X.X:51768->192.30.253.96:443)
Maybe we should give it a try with timeouts on the write methods only.

I don't know how the process works. But maybe that write is indeed only enough.
We could do some automated testing for when the PR would be in good shape

authors: aktau mfonville

repo: aktau/github-release


text:
accessory and icons imported from ui kitten not appearing

🐛 Bug Report
I have a checkbox and icons imported from UI kitten, they were simply working fine but all of a sudden they are not appearing at all.
UI Kitten and Eva version

Package
Version

"@ui-kitten/components"
"^5.0.0"

"@ui-kitten/eva-icons"
"^5.0.0"

ListItem properties have changed

repo: akveo/react-native-ui-kitten


text:
How to call zone cleaning (Viomi v2 PRO)

I'm using robot cleaner Viomi v2 PRO and I would like to call a service that starts zone cleaning with multiple zones given in params. Can anyone tell me how to do this?

Is viomi.vacuum.v22 ?

authors: IT-freak-Jake al-one

repo: al-one/hass-xiaomi-miot


text:
Clean Zone Viomi.V10

I have a xiaomi mop-p vacuum cleaner:
NAME: RoboBobo
ID: 3756...
MAC: 5C:6B:....
IP: 192.168.1.121
TOKEN: 4b7841....
MODEL: viomi.vacuum.v10
I have integrated it with mIot without problems, I can start, pause, send to docker... But the part of sending to zones or point gives me an error:

when trying to call the service:
service: xiaomi_miot_raw.call_action
data:
  entity_id: vacuum.v10_cloud_
  siid: 4
  aiid: 13
  inn:
    - 0
    - 1

I get this error:
Failed to call service xiaomi_miot_raw.call_action. Unknown error
any idea what i'm doing wrong?

xiaomi_miot_raw is not this component.

event_type: call_service
data:
  domain: vacuum
  service: send_command
  service_data:
    entity_id: vacuum.viomi_v10_804a_robot_cleaner
    command: app_zoned_clean
    params: [[-4.8, -7.4, -2.5, -3, 1]] # [[x1, y2, x2, y1, repeats]]

sweep:service: xiaomi_miot.send_command
data:
  entity_id: vacuum.viomi_v10_804a_robot_cleaner
  method: set_mode_withroom
  params: [0, 1, 0]

sweep mop:service: xiaomi_miot.send_command
data:
  entity_id: vacuum.viomi_v10_804a_robot_cleaner
  method: set_mode_withroom
  params: [1, 1, 0]

mop:service: xiaomi_miot.send_command
data:
  entity_id: vacuum.viomi_v10_804a_robot_cleaner
  method: set_mode_withroom
  params: [3, 1, 0]

Does it work ?

authors: al-one darcarper


text:
Load real scivision catalogs in frontend

Closes #353

Gets GH actions to copy the files to the appropriate location
Also adds a link to frontend on README

@ots22 will the frontend hosted at https://alan-turing-institute.github.io/scivision/ get auto-built when we push to main? I'm not sure how to test this, but we'll know it has if the recently added flower and butterfly datasets and models can be viewed in the UI

Perfect. One way would be to test on a personal fork (OAuth won't work of course, but shouldn't need it for this), although I think it should be okay just to deploy and fixup on main at this point.
GitHub pages can only be deployed from one branch which makes having a 'staging' deployment awkward. People seem to suggest doing this from another repo (e.g. https://github.com/orgs/community/discussions/21582) so perhaps we could experiment with a special fork somewhere for that (could have its own backend deployment/OAuth app to make OAuth work then too).

Ok nice this works on my fork, so I'll merge

repo: alan-turing-institute/scivision


text:
Pairwise transformers, kernels/distances on tabular data and panel data - base class, examples, extension templates

Related to #52 (oldest open issue!) and #1062.
This PR contains:

base classes for a new scitype: pairwise transformers, i.e., distance matrix makers and kernel matrix makers; there are two base classes for two different inputs, tabular (classical distances/kernels) and time series panels (e.g., time warping distances)
an example tabular distance ScipyDist that interfaces the scipy distances
an example panel distance AggrDist that uses any tabular distance to create an aggregate sample distance between time series, e.g., the mean Euclidean distance
extension templates for both scitypes

This may be useful for future extension of the clustering module, or refactorings and extensions of the TSC module, @chrisholder, @TonyBagnall.
Also pinging @jasonlines since this is a proposal how the existing distances (due to @jasonlines) could be refactored.
Notably, currently this contains no tests. Please look at the design first.

@goastler was also assigned to #52, so including FYI. Not sure whether that's still current.

Tests fail because the distances are not yet in the registry (base classes etc). Will deal with that later, please review the design first.

my first comment is I dont like the naming conventions. I have no idea what a TrafoPw is, I dont mind longer names if they can retain some meaning

I have no idea what a TrafoPw is, I dont mind longer names if they can retain some meaning

a pairwise transformer! What would you suggest instead?
Note that this has the same structure for distances and kernels, so choosing either would be misleading.

Maybe @Lovkush-A can help. He usually has strong but sensible opinions about variable names.

I have no idea what a TrafoPw is, I dont mind longer names if they can retain some meaning

a pairwise transformer! What would you suggest instead?

err, PairwiseTransformer?

Only if we can call it PairwiseseTransformerer, @chrisholder.

I apologise in advance if I've oversimplfied this or if I am missing an obvious use case for this which is why you've done it the way you have. From my understanding really we just want users to be writing the distance/kernal function rather than the transformer itself to get the matrix.
So my comment is about
def _transform(self, X, X2=None):
I think it's potentially a better idea to ask the user to write a distance/kernal function and leave the logic and optimisation of how the matrix is computed to sklearn. This isn't fully done but just quick mock up example (untested and written in github so sorry for any syntax errors)
from sklearn.metrics.pairwise import pairwise_distances

class BaseTrafoPw(BaseEstimator):

    def __init__(self, metric, n_jobs=none, kwds=none):
        self.metric = metric
        self.njobs = n_jobs
        self.kwds = kwds

    def transform(self, X, X2=None):
        X = check_series(X)

        if X2 is None:
            X = X2
            self.symmetric = True
        else:
            X2 = check_series(X2)
            self.symmetric = False

        return pairwise_distances(X=X,
                                      X2=X2,
                                      metric=self._calculate_distance,
                                      n_jobs=self.n_jobs,
                                      kwds=self.kwds)

    def _calculate_distance(self, X, Y):
        raise NotImplementedError

The sklearn pairwise_distances is incredibly well optimised (compiled to low level) and allows for threading as well so could be a better solution than making the user write the logic for it. In addition the pairwise_distance function accepts a string (that are the scipy distance metrics) or a distance function of the for d(X, Y), and so it would mean we only need this one class rather than another class just to accept string input. Here is the full documentation for pairwise_distance:
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise_distances.html#sklearn.metrics.pairwise_distances
There are also further Kernal pairwise metrics in the package and so pairwise_distances can be swapped out for something like sigmoid_kernel(X[, Y, …]) etc. very easily. Full list see here:
https://scikit-learn.org/stable/modules/classes.html#module-sklearn.metrics.pairwise
Again apologise if this is quite a narrow perspective or missing the bigger picture of how you intended this to be used.

I have no idea what a TrafoPw is

@fkiraly How do you come up with these variable names?!

Silly question, why do you think we're not leaving the implementation of the matrix computation to the concrete class or the interface package? _transform is where you would implement or interface it, in a concrete child class.
transform is just for input checking logic, no computation happens there.

@fkiraly How do you come up with these variable names?!

Haruspicy on weekdays, falling asleep on my keyboard on week-ends.

Silly question, why do you think we're not leaving the implementation of the matrix computation to the concrete class or the interface package? _transform is where you would implement or interface it, in a concrete child class.
See the scipy.dist interface as an example, the logic happens all in the highly optimized scipy functions.
transform is just for input checking logic, no computation happens there.

In def _transform() you have the comment
returns pairwise distance/kernel matrix between samples in X and X2 (equal to X if not passed) core logic
which implies you're letting a user implement this

which implies you're letting a user implement this

or interface from a package like scipy, have a look at the ScipyDist class which is an example for precisely this.
That you're in a function doesn't mean you can't call other functions? Getting increasingly confused there, mayby I'm grossly overlooking sth obvious.

O I see where we're missing each other. You're in favour of giving the user the option to do what they want. Im saying well how many people are going to need a custom solution that is not one of these prebuilt pairwises like sklearn or scipy and so just put it as default behaviour. If they want to use something custom then give them the option to override it but thats a more explicit choice.

You're in favour of giving the user the option to do what they want. Im saying well how many people are going to need a custom solution that is not one of these prebuilt pairwises like sklearn or scipy and so just put it as default behaviour. If they want to use something custom then give them the option to override it but thats a more explicit choice.

Not sure what the alternative is that you are comparing it to - just call some distance function from somewhere?
That alternative would not allow parameter inspection in composites, and tuning of parameters in distances.
Time warping distances and kernels notoriously have parameters that should be tuned, so they should be exposed.
E.g., if you write sth like KNeighborsClust(dist=DtwDist(skip_penalty=9), k=10), you want to be able to access the skip_penalty for tuning via the sklearn type deep parameter access convention by reference to dist__skip_penalty.
Another advantage of this design is that it makes any distances and kernels universally composable with methods that take distances or kernels. This is similar to how the the Gaussian Process module in sklearn works.
Given the above, and that time series distances will be a recurring motif across modules rather than just localized to one, I think this makes a lot of sense...

Yep actually I agree with you when you put it like that. Happy with that then looks good! How close is this to be being ready to pr just so I have an idea of timeline as I have a few distances I'd quite like to wrap in what you've done here.

How close is this to be being ready to pr just so I have an idea of timeline as I have a few distances I'd quite like to wrap in what you've done here.

I guess it's ready except if you want tests...
help is appreciated, but let's coordinate.

I can hop on the branch and write some tests if that would make your life easier?

yes, indeed - though I've had hoped that #1071 is merged first, that would make it easier to add the base class etc and the tests.

@chrisholder These templates are intended for developers, not end users (I think). Sounds like you thought Franz wanted users to create their own distance-matrix functions.
@fkiraly I am not a fan of the name 'PairwiseTransformers'. Calculating the distance between X[i] and X2[j] is not the same kind of thing as doing a log-transform or re-scaling or other transforms we already have. I couldn't think of a better alternative by myself, but fortunately the naming conventions in sklearn seem decent to me: https://scikit-learn.org/stable/modules/metrics.html#
Just use the word 'Pairwise' by itself for base items, then have PairwiseMetric or PairwiseKernel once you know what kind of thing it is.

while you rename all your variables

If you keep making fun of me like this, I will rename all variables to match the regular expression __*

Well im in no rush with it getting 100% finalised as I can still write my stuff and just merge it into contrib for now until this is finalised

am not a fan of the name 'PairwiseTransformers'

So, how about my newest suggestion, __________________________?

Make them into faces
-________-
x_______x

@chrisholder, ok, let me merge #1071 - it sounded like @mloning was all happy with it anyway, and then you can get started on tests while I work on variable names and registry, how about that?

So, @Lovkush-A, how about my newest suggestion, __________________________?

I'd prefer it if there were 42 underscores

@chrisholder, ok, let me merge #1071 - it sounded like @mloning was all happy with it anyway, and then you can get started on tests while I work on variable names and registry, how about that?

1071 is this PR...?

1071 is this PR...?

Sorry, I meant #1067 which I just merged.

Alright, @chrisholder, happy for you to write some tests - I'll register the base class and will rename it to BasePairwiseTransformer but will call it a day then. Would you like to PR to this branch?

Yea ill pr into the branch think that makes the most amount of sense

Alright, @chrisholder, happy for you to write some tests - I'll register the base class and will rename it to BasePairwiseTransformer but will call it a day then. Would you like to PR to this branch?

Does that mean you don't like BasePairwise?

Does that mean you don't like BasePairwise?

Pairwise what? I find this not descriptive enough and slightly misleading

Does that mean you don't like BasePairwise?

Pairwise what? I find this not descriptive enough and slightly misleading

Does that mean you don't like BasePairwise?

Pairwise what? I find this not descriptive enough and slightly misleading

I agree that Pairwise byitself leaves something missing, but:

Pairwise is used in sklearn (does not mean it is a good name, but it is an advantage of Pairwise)
I think PairwiseTransformer is more misleading than just Pairwise, because it makes it sound like it is a similar kind of thing as the other Transformers in sktime, which I dont think it is.

I think PairwiseTransformer is more misleading than just Pairwise, because it makes it sound like it is a similar kind of thing as the other Transformers in sktime, which I dont think it is.

But it is very similar, it's a direct generalisation! A transformer produces values for each input row. The pairwise transformer produces values for each pair of X input row and X input row. Strictly speaking (scitype model wise), you would have to allow multiple values to be produced and the result to be a 3D data frame, and the pairwise transforme to be fittable, but those are rare cases.
A triple-wise transformer would create values for each triple of rows of the inputs etc.

it's a direct generalisation!

The fact it is a generalisation is the issue; by generalising you have created a distinctly new kind of thing. (It is a similar reason I think 'semigroup' is a bad name; semigroups aren't groups, but a generalisation of them.)

A transformer produces values for each input row.

For me, this is a key feature of a transformer. Each data entry goes from some old representation to some new representation.

Lastly, the individual functions (e.g. euclidean distance metric) that are applied are not referred to as transformations; this is an indication that transformations are not the right word/concept. More explicitly, if you have two points in euclidean space, you'd say a rotation of the space is a transformation, but you wouldn't say that calculating the distance between them was a transformation.

It is a similar reason I think 'semigroup' is a bad name; semigroups aren't groups, but a generalisation of them.

I don't see this, @Lovkush-A, why is there a problem? Every group is also a semigroup, that's how it intuitively should be.
Like every vehicle that has two tires also has one tire (proof: choose one of the two, by assumption it's a tire on the vehicle). Similarly, an object that has 1 groupness is also an object that has 1/2 groupness (semi = 1/2 or partly, in Greek).

For me, this is a key feature of a transformer. Each data entry goes from some old representation to some new representation.

Yes. And in the pairwise transformer, each pair of data entries goes from some old representation to some new representation.

Lastly, the individual functions (e.g. euclidean distance metric) that are applied are not referred to as transformations; this is an indication that transformations are not the right word/concept.

But I refer to them as transformations. Pre-sklearn, you would probably also have hard times finding a source that refers to transformations as such.

Lastly, the individual functions (e.g. euclidean distance metric) that are applied are not referred to as transformations

But I refer to them as transformations. Pre-sklearn, you would probably also have hard times finding a source that refers to transformations as such.

what do you mean by this?

Did sklearn change how the word 'transformation' was used, and if so in what way?
Do you consider yourself in the majority or minority when you refer to things like euclidean metrics as transformations?

Anyway, I think we just have different prior perceptions of the word 'transformer' and the grammar of 'PairwiseTransformer'. Ideally, we would find out what other people's intuitions are about  the name 'PairwiseTransformers', but in the meantime, we might as well continue with your naming. It is easy to change later if other developers/users find it confusing.

Ideally, we would find out what other people's intuitions are about the name 'PairwiseTransformers', but in the meantime, we might as well continue with your naming. It is easy to change later if other developers/users find it confusing.

Well, it's the name for a base class, which most users won't ever see, or only rarely. Concrete classes would be called ScipyDistance or DtwKernel or similar.

Btw, @chrisholder, please may you describe the (precise, if possible) sequence of steps/commands you used to contribute to this PR? I have worked something out by googling around (but it feels convoluated), so knowing what you do will either show me a better way or reassure me.

@Lovkush-A Well I haven't contributed to it yet but currently im working in my fork. Fetched the branch and just committing on the branch. Then when it's ready I pr into the branch.
So in terms of steps just
In your fork
git fetch upstream trafo-distances
git checkout trafo-distances
do your changes and commit them to your fork
then pr from your forks trafo-distances branch into the main repos trafo-distances branch.

well, my preferred process would be a pull request to this branch, not direct commits, so I have an opportunity to review.
The workflow for that would be this:

clone the repo
create a branch based on trafo-distances, e.g., trafo-distances-plus-tests or similar
work on that branch
when done or ready to show, push to fork (if not core dev) or sktime (if core dev)
make a PR from trafo-distances-plus-tests into trafo-distances
I review, we discuss, we merge into trafo-distances
then we make a PR into main, and things proceed as usual

(but I don't mind direct commits either in this case)

O sorry if that wasnt clear that is how I was doing it @fkiraly

Thanks!
@fkiraly Direct pushes into 'trafo-distances' would only be possible if you gave write permission, right?
@chrisholder. did you create a fork of Franz's fork of sktime, or did you only need a fork of sktime?

then merge my trafo-distances into alan turing institutes sktimes branch trafo-distances.

Does the branch trafo-distances exist in sktime repo? I thought it was only in franz's fork.

Just a regular fork follow the steps https://www.sktime.org/en/latest/contributing.html#id9 to get your fork. Then when you need to update or grab the latest version of main you do
git fetch upstream
and if you want a specific branch
git fetch upstream <branch-name>

@fkiraly Direct pushes into 'trafo-distances' would only be possible if you gave write permission, right?

Yes, core devs have those permissions.

Sorry just to be clear on that point while you cant directly pr into branches and make it go in straight away, you can pr and wait for it to be approved just like you can for pring into main. So just pr into the branch and wait for Franz to approve it.

@chrisholder and @Lovkush-A, you need to re-review since changes were made by @chrisholder and merged into my PR

I'm not keen on the name dist_kernels, we should just pick one. Maybe a vote?

I don't mind the name, but how would it be clear that both distances and kernels go in there? People wouldn't expect either if we talk about "pairwise transformers".

But if we call the folder "avote" as per your suggestion, @TonyBagnall, that would also be non-obvious?

I'm not keen on the name dist_kernels, we should just pick one. Maybe a vote?

I don't mind the name, but how would it be clear that both distances and kernels go in there? People wouldn't expect either if we talk about "pairwise transformers".
I agree pairwise transformers is not a good name. I always thought distances and kernels were synonymous, and the differences were based on the origin of the research, but I am probably wrong and would appreciate enlightenment. If there is a significant difference I would have them in different packages. Otherwise I would prefer we pick one and stick with it. dist_kernels is suggesting to things, which is poor design imo. I also still dont like the abbreviated naming conventions used here which convey no meaning.

But if we call the folder "avote" as per your suggestion, @TonyBagnall, that would also be non-obvious?

that would be for the ensemble module ....

how about dists_n_kernels or dists_n_krnls? Serious suggestions (no, really!)

how about dists_n_kernels or dists_n_krnls? Serious suggestions (no, really!)

I would vote to keep it called distances, but would accept kernels. distances_and_kernels if you can provide a clear distinction between the two, although then I would separate them into distances and kernels

how about dists_n_kernels or dists_n_krnls? Serious suggestions (no, really!)

distances_and_kernels if you can provide a clear distinction between the two

I think we should create a "swear jar" for franz, in which every time he makes an abbreviation that somebody else finds unclear, he has to put some money into it. We'll be able to fund new contributors in no time! 😆

Suggestion, but probably better for future PR, as this pr is already getting dragged out (admittedly by me, but for good reason I hope):
Current design: in compose_tab_to_panel composers that create panel pairwise transformers from table pairwise transformers. (Minor note, is this a composition or a reduction?)
Alternative design: split this into two steps:

a composer/reducer that creates panel elementwise transformers from table pairwise transformers (i.e. just stick an aggfunc on the end of the pairwise transformer)
another function/class that creates panel pairwise transformers from panel elementwise transformers

If you agree with this alternative design, then best to create a new issue, rather than doing it in this pr.

Alternative design: split this into two steps:

@Lovkush-A, I don't understand what you are suggesting here.
Can you give an example, maybe with mathematical formulae, what the three objects would be?

Can you give an example, maybe with mathematical formulae, what the three objects would be?

Maybe the middle step should be elementwise tabular transformer, not elementwise panel transformer... lets see.
Pairwise tabular transformer, f say. Takes as input two dataframes X1 and Y1 and outputs a matrix of size (len(X1), len(Y1)). E.g. f(X1,Y1) = ScipyDist(X1,Y1)
Gets converted to elementwise transformer, g say. Takes as input two dataframes X1 and Y1 and outputs a single number. g(X1,Y1) would equal aggfunc(f(X1,Y1))
Gets converted to pairwise panel transformer, h say. Takes as input two sequences of dataframes X=(X1,...,Xm) and Y=(Y1,...,Yn) and outputs a matrix of size (m,n). h(X,Y)_ij would equal g(Xi, Yj).
Again, want to emphasise I am not not sure if this is a good idea, and if it is, would be better to create a new issue/PR for it.

@chrisholder, do you mind giving this another review, after I´ve addressed some of the issues around symmetric?

Gets converted to elementwise transformer, g say. Takes as input two dataframes X1 and Y1 and outputs a single number. g(X1,Y1) would equal aggfunc(f(X1,Y1)).

@Lovkush-A, that's not a good idea, since your "elementwise panel transformer" encapsulates the same scientific object as the "pairwise panel transformer" without any semantic or computational benefit.
The reason is similar to the old story why you want distances and kernels to be functions (n x r) matrix x (m x r) matrix -> (m x n) matrix rather than float x float -> float. The main reason here is that inputting samples allows vectorization techniques to be applied. The "pairwise panel transformer" is just the vectorized version of the "elementwise panel transformer" (interface-wise), hence the latter is superfluous.

I think we should create a "swear jar" for franz, in which every time he makes an abbreviation that somebody else finds unclear, he has to put some money into it. We'll be able to fund new contributors in no time!

Only if we also create a "variable rename jar" for you, @Lovkush-A 😉

Hi @fkiraly been bit busy but im going to take a look at this now ive already spotted some minor things but ill change them and push to the branch directly

Hi @fkiraly been bit busy but im going to take a look at this now ive already spotted some minor things but ill change them and push to the branch directly

fine with me, @chrisholder

@fkiraly I've resolved all the conversations I thought I could, could you take a look at the final 4?

Ill give this another review and then hopefully this will be ready to go in

So I resolved the rename comments but don't really want to push because then all the tests will have to rerun. Shall I just hold out so this can be merged?

So I resolved the rename comments but don't really want to push because then all the tests will have to rerun. Shall I just hold out so this can be merged?

Which rename comments? I thought I had resolved them already.

authors: Lovkush-A TonyBagnall chrisholder fkiraly

repo: alan-turing-institute/sktime


text:
delete extra tesla device?

not sure if this is a HA issue or Tesla Custom integration issue but I have 2 tesla device entries and one has all the controls/sensors working fine, but another entry has nothing (no sensors, controls, etc).
how do i delete the other tesla entry?

I have the same problem.

It's probably a HA error as the Device registration code hasn't changed. Possibly it's caused by a HA migration. You can manually delete the Tesla devices from the device registry from .storage/core.device_registry and they'd get recreated by the component at the next restart.

Thank you for the hint! It works. Best regards  Peer Gesendet von Mail für Windows Von: Alan TseGesendet: Sonntag, 6. Februar 2022 22:43An: alandtse/teslaCc: peerkn; CommentBetreff: Re: [alandtse/tesla] delete extra tesla device? (Issue #141) It's probably a HA error as the Device registration code hasn't changed. Possibly it's caused by a HA migration. You can manually delete the Tesla devices from the device registry from .storage/core.device_registry and they'd get recreated by the component at the next restart.—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: ***@***.***>

authors: alandtse peerkn xac1d

repo: alandtse/tesla


text:
[Feature Request] Provide active_route_minutes_to_arrival directly

Is your feature request related to a problem? Please describe.
See https://www.reddit.com/r/homeassistant/comments/14qepmu/comment/jqmore7/?context=3

I'm using HACS + Tesla Custom Integration and it worked gratefully for Charge-on-sun feature. But doing a simple automation as "When Tesla goes home, cast tts in how many time" is hard as hell.(+ when arrival time is less than 2 min, cast tts "Tesla is approaching")
Here's why:
1/ Tesla API give drive_state.active_route_minutes_to_arrival BUT alandtse use it to create an arrival datetime
2/ So this value "doesn't exist" on HA side and I have to recreate it myself
3/ Why the f4ck comparing datetime with offset is so hard it can fill at least a whole google page search
4/ Comparing is not enough, I need to get minutes remaining from this given date

Describe the solution you'd like
Provide the value of active_route_minutes_to_arrival as entity or attribute so it can be used directly in action
Describe alternatives you've considered
This one :(

Additional context
I think I know why it has been done this way: This value is useless as it will not update itself between each tesla API call.
Maybe we could provide our own computed active_route_minutes_to_arrival ? with an event each minute and update it on each API call?

I wouldn't like this integration to provide redundant data, but you can create a template sensor with one of these templates:
{{ (states('sensor.tesla_arrival_time') | as_timestamp - now() | as_timestamp) / 60 }}

or
{{ (states('sensor.tesla_arrival_time') | as_timestamp - now().timestamp()) / 60 }}

Replace "tesla" with your car's entity base name in HA. Name it, for example, sensor.tesla_arrival_in_minutes and use it in your automation. Note that the value will start to become negative once the car has arrived. You can prevent this with a (..., 0)| max filter at the end of the template.

Wooooh, fills perfectly the need, thanks a lot <3
But I really think this should be implemented directly into the integration. Can we consider this?

Also, for the record, the full config is:

template:
  - sensor:
    - name: "Tesla arrival time remaining"
      unique_id: "ts_arrival_time_remaining"
      unit_of_measurement: "minutes"
      state: "{{ (states('sensor.<tesla_name>_arrival_time') | as_timestamp - now().timestamp()) / 60 }}"


text:
Enhancement Added support for Server and DataCenter parameters to vCheck command line

Added support to vCheck allowing optional parameters Server and DataCenter.  The Server parameter defaults to whatever is entered during the configuration if it is not provided on the command line.  The DataCenter parameter allows the vCheck report to filter commands to a specific DataCenter.
Defaults
.\vCheck.ps1
Run for non-default server vcServer02
.\vCheck.ps1 -Server vcServer02
Filter for DataCenter DC01
.\vCheck.ps1 -DataCenter DC01
Filter for DataCenter DC01 on vcServer02
.\vCheck.ps1 -Server vcServer02 -DataCenter DC01

Leave a comment

repo: alanrenouf/vCheck-vSphere


text:
Internal Server error

After signing in & accepting OAuth for GitHub when I browse to my repo on: https://david-dm.org I'm getting a 500 Internal server error
I've tried removing the OAuth from Github, clearing everything from david-dm.org (Cookies, caches, histories, storage, browsing data) & then re-connecting my github account.
Same issue persists.

Same Here. Connected with github, added badge to readme get a 'pending' and https://david-dm.org/h-da/geli Throws a 500...

Same here, can't login at all.

Same here. Can't login.

@alanshaw is this being looked at?

Same for me

Started it up and configured the github options to point at public github with a new clientId and secret, works fine locally. Might just need to check the configuration on production.

@gabrielcsapo I replaced the url secrets. This is all I'm getting.

Is that running locally @OmgImAlexis? I am running it locally

Nope that's the actual site.

If anyone has time to submit a pull request that would be great!

@alanshaw What should the PR contain? I don't see a solution for this problem in this thread?
Or should someone debug through this and fix the problem?!

Error in the server logs:
Error: Failed to request access token: Unable to find user from token
    at gh.users.get (/home/david-www/david-www/dist/lib/auth.js:50:23)
    at /home/david-www/david-www/node_modules/github/lib/index.js:894:17
    at callCallback (/home/david-www/david-www/node_modules/github/lib/index.js:728:17)
    at IncomingMessage.<anonymous> (/home/david-www/david-www/node_modules/github/lib/index.js:792:25)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

I've even tried deactivating david-dm in Github's OAuth apps section and logging in again but it still gives me that error. I've used david-dm before so I don't know why this is only happening now.

Yeah I tried to reproduce the issue locally, I am not seeing it. @alanshaw maybe it is a deploy issue?

I am getting the same issue on the actual david-dm.org site.

I would like to try this but  I am getting the same issue on the actual david-dm.org site

Same here, cannot sign in to https://david-dm.org, receive "Internal Server Error".

I'm also getting this error 😞

still not working

Browser Log:
callback:1 Site cannot be installed: the page has no manifest <link> URL
callback:1 Refused to load the stylesheet 'data:text/css;base64,LyogCiAqIHNodXR1cC5jc3MKICogd2ViIC0gcGVhbnV0IGdhbGxlcn…RhYmxlLmRpZmYgLmNvbW1lbnQKCnsKCWRpc3BsYXk6IGluaXRpYWwgIWltcG9ydGFudDsKfQo=' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.

callback Failed to load resource: the server responded with a status of 500 (Internal Server Error)

@raulfdm that's not the issue, it's a server side error.

@OmgImAlexis I know it's, but is the same situation: I try to use OAuth to login and I receive an message internal server error and I can't login. I just copy the console log

still no progress? :( its just OAuth!!!

Has anyone been able to reproduce locally? It doesn't look like there is a clear cause

@gabrielcsapo as per https://github.com/alanshaw/david-www/issues/366#issuecomment-306742465 it looks like it's a Oauth issue. Maybe more logging needs to be added where the stack trace is from.

will see if I can add PR with that logging, give me 15 minutes 😄

I think I found the problem

upon second glance and complete rebase, the issue was the value being received from the get call, https://github.com/alanshaw/david-www/pull/380 should fix the issue 😄

Thanks @gabrielcsapo 😄

Yep, signing in works again :) Perfect :-*👌

Yay! :smile:

That's fixed it. 👍

Same Here. Connected with github, added badge to readme => 'pending'.
https://david-dm.org/h-da/geli Throws a 500...

How long do you think David-dm needs to check for new repos? I still get the 500 and the badge is still pending. I have signed in with github. Is it necessary to be a admin of the organisation to add a repo to David dm?

authors: OmgImAlexis adamdilibero aeimer alanshaw andrevenancio broccolini dashersw gabrielcsapo jeantimex kamronbatman m67hoff n1ru4l raulfdm

repo: alanshaw/david-www


text:
深入理解keras系列（一） - 杜雷鸣的博客 | Albert·Leiming·Du

https://albert-leiming-du.github.io/2018/12/08/deep_understand_keras_1/
一个只会hello world的程序员

666

@chansonzhang
666

thanks for you reply and continuous support.

I really don't why I am visiting the page right now because it should be the time when I should hang out with a girl but I am still coding or visiting some webs about code......Holy shit, what the hell am I doing.....coding make people stupid.

I really don't why I am visiting the page right now because it should be the time when I should hang out with a girl but I am still coding or visiting some webs about code......Holy shit, what the hell am I doing.....coding make people stupid.

I really don't why I am visiting the page right now because it should be the time when I should hang out with a girl but I am still coding or visiting some webs about code......Holy shit, what the hell am I doing.....coding make people stupid.

@albert-leiming-du you really really really need to new an object!

authors: albert-leiming-du chansonzhang


text:
🛑 Sataging is down

In f411195, Sataging (https://staging.dealmaker-dev.com) was down:

HTTP code: 502
Response time: 2280 ms

Resolved: Sataging is back up in bbc03fb.

repo: albertoferro/status


text:
centralize exchange backup interfaces

remove exchange category-type switches in favor of per-category interfaces for common backup behaviors.

Does this PR need a docs update or release note?

[x] :no_entry: No

Type of change

[ ] :broom: Tech Debt/Cleanup

Issue(s)

#1996

Test Plan

[x] :zap: Unit test
[x] :green_heart: E2E

@ashmrtn ready for final review, thank you!

repo: alcionai/corso


text:
stripeCheckout is undefined

Hey this is probably a silly issue but I can't seem to get the stripeCheckout object to be defined...
I installed via meteor-plans-stripe
I tried installing mrgalaxy:stripe because I noticed a reference to it in the repo.
Could this be Stripe erroring because I dont have my account fully activated?
Below is the error. When I look at the stripCheckout object at that moment it's undefined.
3meteor.js?hash=27829e9…:930 Exception in callback of async function: TypeError: Cannot read property 'open' of undefined
at Object.pay (http://localhost:3000/packages/aldeed_plans-stripe.js?hash=0a8eaa3c215833db72a0cb59d1fdcb9a819cf8cb:92:19)
at getToken (http://localhost:3000/packages/aldeed_plans.js?hash=4d1a36211fc583bfd30f999209f6b48e829a3a8a:295:15)
at http://localhost:3000/packages/aldeed_plans.js?hash=4d1a36211fc583bfd30f999209f6b48e829a3a8a:364:7
at http://localhost:3000/packages/meteor.js?hash=27829e936d09beae3149ecfbf3332c42ccb1596f:1105:22
at http://localhost:3000/packages/aldeed_plans.js?hash=4d1a36211fc583bfd30f999209f6b48e829a3a8a:143:5
at http://localhost:3000/packages/meteor.js?hash=27829e936d09beae3149ecfbf3332c42ccb1596f:1105:22
at Object.getAppPlansObject (http://localhost:3000/packages/aldeed_plans.js?hash=4d1a36211fc583bfd30f999209f6b48e829a3a8a:110:3)
at Object.getAppPlansObject (http://localhost:3000/packages/meteor.js?hash=27829e936d09beae3149ecfbf3332c42ccb1596f:231:23)
at Object.getCustomerId (http://localhost:3000/packages/aldeed_plans.js?hash=4d1a36211fc583bfd30f999209f6b48e829a3a8a:142:26)
at Object.getCustomerId (http://localhost:3000/packages/meteor.js?hash=27829e936d09beae3149ecfbf3332c42ccb1596f:231:23)

Why is this closed, I get it too

authors: AndyNormore barnesy

repo: aldeed/meteor-plans-stripe


text:
chore: remove peerDependencies from package.json

This PR removes peerDependencies from package.json to close #89.

Released in v4.0.5
Sorry for the wait :)

authors: aleclarson wadefletch

repo: aleclarson/vite-tsconfig-paths


text:
Build issue on 1.8.1

Getting an build issue on Go 1.6 or 1.7.5 for 1.8.1, 1.8.0 is fine.
$ go build .
# github.com/aleibovici/cryptopump/mysql
mysql/mysql.go:1080:6: GetGlobal redeclared in this block
        previous declaration at mysql/mysql.go:1051:123

@marcvsnet I'm compiling in prod with go1.16.2 with no issues. Also just updated to go1.17.5 and was able to compile without issues. Could you try updating to go1.17.5 and perhaps rebasing your branch from Main?

@marcvsnet thanks for letting me know. I believe I fixed the issue in v1.8.1.1
https://github.com/aleibovici/cryptopump/releases/tag/v1.8.1.1.

Thanks for that fix!

authors: aleibovici marcvsnet

repo: aleibovici/cryptopump


text:
🛑 ID is down

In 35c0cf8, ID ($XID) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ID is back up in 81ff407.

repo: alenhorvat/monitoring


text:
breaking change proposal re: errors

Requiring code that calls the Kinesis producer (or consumer) to live inside MonadError ConsumerError or MonadError ProducerError is honestly too much to swallow. Makes things very difficult to compose. Originally, I'd sort of designed it as a little DSL where you wouldn't even have to refer to the producer or consumer object by name, but that ship sailed a long time ago; it just doesn't scale up.
The obvious way forward is to return something like EitherT ConsumerError m a in the calls to the producer and consumer (or just m (Either ConsumerError a)). Alternative proposals are welcome.

I am a big fan of m (Either l r) although I could see how an EitherT might add convenience in this case.

Yes, I am coming to think that m (Either l r) provides a good sweet spot, which is readily composed with other code without introducing too many constraints on the environment. Thanks for your input @gregwebs!

I think that code that doesn't use anything but left and right from EitherT, could as well be kept in MonadError, since there is really no reason to not just use throwError and return. The benefit is that it seamlessly composes with Either and EitherT (and also Except, ExceptT, and even the maybe flavored monads, if really needed).
Also, I switch to preferring ExceptT over EitherT, since it is in transformers now and widely portable without introducing extra dependencies from the Edward Kmett universe.

ExceptT (transformers) dependencies:
library
  build-depends: base >= 2 && < 6

EitherT (either) dependencies:
library
  build-depends:
    base              >= 4       && < 5,
    bifunctors        >= 4       && < 5,
    exceptions        >= 0.5     && < 0.9,
    free              >= 4.9     && < 5,
    monad-control     >= 0.3.2   && < 1.1,
    MonadRandom       >= 0.1     && < 0.4,
    mtl               >= 2.0     && < 2.3,
    profunctors       >= 4       && < 5,
    semigroups        >= 0.8.3.1 && < 1,
    semigroupoids     >= 4       && < 5,
    transformers      >= 0.2     && < 0.5,
    transformers-base >= 0.4     && < 0.5

@larskuhtz I have found difficulty in convincing the compiler that a MonadError is in fact an EitherT. I will ask for your help next time.

@gregwebs that would be interesting. As long as there is an MonadError instance for EitherT the compiler should have really no trouble to instantiate anything with MonadError.
In my experience things usually only get painful when doing things like (a) changing the error type (although there a a few tricks that are not too bad) or (b) passing around functions with a parameterized and constraint context on the return type.

Thanks for the note about ExceptT; I repeatedly forget about this one... If I end up using a transformer, I'll use ExceptT, though I am leaning toward what Greg suggested before...

I found that most of the time, the only functions from EitherT that I am missing for ExceptT are fmapLT and exceptT. Both trivial enough to just define them in place and don't really justify the extra dependencies of EitherT.

Resolved by #20

authors: gregwebs jonsterling larskuhtz

repo: alephcloud/hs-aws-kinesis-client


text:
Bug: Relative time stamps changed to UTC

A recent commit changed all relative times to UTC.
I agree that relative time stamps may not be the best, but at the very least we could display them as local time?

Agreed.  Was just poking through the commit history to find the offending PR, I believe it was #69
The previous timestamps of "Last Batch: ___ minutes ago" was much more helpful and readable.

I was just about to comment on this. Local time or reverting back to relative time would be ideal. No one knows UTC.

I think relative time is better than just displaying a timestamp. It's easier to digest rather than having to do the time math yourself.

fixed

authors: eldirinice frewsxcv rmhoward therippa timroesner


text:
Signatures not properly verified with german umlauts

Hi,
I'm implementing a custom skill for alexa (german language). If recognized slots contain german umlauts (i.e. Küche), then the signature can not be verified.
I've fixed the problem, if I explicitly use Buffer with a given encoding und pass a Buffer object to the verifier.
...
var bodyData = [];
req.on('data', function(data) {
bodyData.push(new Buffer(data, "utf8"));
req.rawBody += data;
})
...
verifier(certUrl, signature, Buffer.concat(bodyData), function(er) {
....
}
BTW: I'm using Node.js 4.2 on my Synology NAS (a newer version is not available).
Regards
Arthur

This was already fixed, https://github.com/mreinstein/alexa-verifier/issues/19, can you check which version of alexa-verifier you're getting?
Also kudos on running this on a NAS! :)

I've updated alexa-verifier and now it works :-)
thanks.

authors: arthurbra dblock

repo: alexa-js/alexa-verifier-middleware


text:
Typescript deploy to lambda

Desktop (please complete the following information):

OS: Mac Catalina 10.15.07
VS Code version: .54.3

Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
Date: 2021-03-15T11:57:12.728Z (2 wks ago)
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin x64 19.6.0

Alexa Skill Toolkit extension version: v2.5.0

Question
I migrated my skill to Typescript. I have trouble updating the location of index.handler using the Alexa Skills Toolkit. I am using the Alexa Console built-in repository, lambda function, and cloud watch.
My code looks very similar to this sample skill. But they are not using the Alexa Skills Toolkit, so I am not sure how to integrate Typescript using the Toolkit.
My folder structure looks like follows:

.ask

.vscode

lambda

dist

src

index.js
index.js.map

node_modules

src

utils

types

data

index.ts
package.json
tsconfig.json

skill-package

assets

interactionModels

skill.json

.gitignore

Package.json currently points to "main": "dist/index.js",. When I upload the project to Alexa Console using the vs code plugin, the code viewer shows me the following code structure:

Skill Code

lambda

dist

index.ts
package.json
tsconfig.json

src

I receive the following error on Cloud Watch when I try to call my skill
{
    "errorType": "Runtime.HandlerNotFound",
    "errorMessage": "index.handler is undefined or not exported",
    "stack": [
        "Runtime.HandlerNotFound: index.handler is undefined or not exported",
        "    at Object.module.exports.load (/var/runtime/UserFunction.js:144:11)",
        "    at Object.<anonymous> (/var/runtime/index.js:45:30)",
        "    at Module._compile (internal/modules/cjs/loader.js:778:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
        "    at Module.load (internal/modules/cjs/loader.js:653:32)",
        "    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:585:3)",
        "    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)",
        "    at startup (internal/bootstrap/node.js:283:19)",
        "    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)"
    ]
}

Do I need to even add dist/ to the lambda or should I add it to .gitignore?
What's the best way to solve this issue using not aws commands but the plugin or the ask-cli. I am not hosting the lambda on my own and I am also not zipping the code but I deploy it using the Alexa Skills Toolkit. I could migrate to custom lambda and write myself a custom zip command but I would rather stick to the vs code plugin. Unsure how to proceed.
Thanks for your help!

I was able to make it work now.

I added the dist folder to git and deploy it to lambda using Alexa Skills Toolkit
I added a index.js inside lambda/ which just looks like follows:

const handler = require('./dist/index')

exports.handler = handler

Is this how TypeScript is supposed to work with Alexa Skills Toolkit or is there a better way to configure it?

Hey @andrelandgraf , sorry for the late response. So as you may already know, the Alexa Console built-in repository is just the normal AWS Lambda function over an AWS CodeCommit repository for the skill, handled by the Hosted skills service. AWS Lambda doesn't currently support Typescript out of the box, and the developers are expected to build the .ts files to .js files before uploading to the service. This is the reason why you would still need to upload the dist directory containing the js files.
Additionally, the default handler location for the AWS Lambda function for the hosted skills service is index.handler and at the moment, that service doesn't provide a way to configure this handler through the tools. This is the reason why you would have to re-import the handler from dist/index and export it back again, in your workaround. You can also configure your tsconfig.json to output the built files to the same lambda folder, and hence not do such workarounds. However, that would add both js and ts files in the same folder, leading to confusion and maintainability issues. I think your workaround is a good one, until the hosted skill service provides a way to configure the handler location.
As for the sample skill, it seems to have been built on the ask cli v1 structure. If so, skill devs can use this migration guide, to convert it to the ask cli v2 structure, which is compatible with the ASK Toolkit vscode extension. Hope this helps.
I am going ahead and closing this issue, considering you are unblocked at the moment. Please create an issue in case you have further questions or have any feedback on the extension. Thanks.

Thanks @nikhilym for the in-depth explanations! This cleared up a lot of assumptions I made. Great to hear that you recommend my workaround for now.

authors: andrelandgraf nikhilym

repo: alexa/ask-toolkit-for-vscode


text:
Vscode not importing amazon alexa projects

Desktop (please complete the following information):

OS: ubuntu 20
VS Code version: 1.49.3
Alexa Skill Toolkit extension version:2.1

Question
Projects in Amazon developer are not importable

the alexa projects I have in development on Amazon are not appearing when I try to import them into my VS code editor

Hey @tonygair , thanks for raising the issue. As mentioned in our docs, we currently only support cloning of Alexa-Hosted skills. Can you please confirm if the alexa projects you are trying to import, are indeed Alexa-Hosted skills and not self hosted?

thanks Nikhil, you put your finger on it. I have it downloading now. I only
have to get it to recognise the logging, and ask_sdk_core libraries :) now
On Thu, Oct 22, 2020 at 6:20 PM Nikhil Yogendra Murali <
notifications@github.com> wrote:

Hey @tonygair https://github.com/tonygair , thanks for raising the
issue. As mentioned in our docs
https://developer.amazon.com/en-US/docs/alexa/ask-toolkit/vs-code-ask-skills.html#skill,
we currently only support cloning of Alexa-Hosted skills. Can you please
confirm if the alexa projects you are trying to import, are indeed
Alexa-Hosted skills and not self hosted?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alexa/ask-toolkit-for-vscode/issues/46#issuecomment-714640480,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABC7666OOBYZCROAOS3H3RTSMBSV3ANCNFSM4S3OZU7A
.

Glad to know you got it working @tonygair . I am going ahead and closing this issue. Please let us know if you face any other problem with the toolkit or have any feedback to share 😄

authors: nikhilym tonygair


text:
when downloading the SDK WWW.PortAudio.Com website is down it seems. just retrying. is there any workaround for this or just need to wait for the website to respond?

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:

What is the expected behavior?

What behavior are you observing?

Provide the steps to reproduce the issue, if applicable:

Tell us about your environment:

What version of the AVS Device SDK are you using?
  <x.y.z>

Tell us what hardware you're using:

[ ] Desktop / Laptop
[ ] Raspberry Pi
[ ] Other - tell us more:

Tell us about your OS (Type & version):

[ ] Linux
[ ] MacOS
[ ] Raspbian Stretch
[ ] Raspbian Jessy
[ ] Other - tell us more:

Need to wait, it started working this morning

its working now...thank you

Please close the issue

worked after a day..

repo: alexa/avs-device-sdk


text:
PlaybackControls enchance

Great lib. You save my life time. However I suggest that add flag to PlaybackControls (e.g showNext ) to control display next/prev button although I can handle using css

Thanks, @mike623! Glad you're making use of it.
That sounds like a reasonable feature to me.

showPrevious and showNext props were added in https://github.com/alexanderwallin/react-player-controls/commit/2731ede1f0d4004577be01b7edfed9e676f3d807, published in 0.5.14.

repo: alexanderwallin/react-player-controls

license: ISC


text:
Feature request: set default line width

Would be really good to be able to set the default line width for all line graphs rather than for each item.
Even more important when adding items from the UI where it's not possible to set the line width.

You can configure line width for dynamically added entities using entityOptions. See here.

Thanks, I spent ages in the documentation and still missed that! I would still like to be able to set a default line width though, I do find the default to be too wide and I never mix widths on a graph. However, it's a nice have rather than need so I'll close this and leave the idea in the back of your mind....

In that case, you're welcome to open a feature request for that ! No guarantees on when/if it will make it into a release, but this would be a very simple addition.


text:
how can i update the bulletin after it was presented

how can i update the bulletin image after it the bulletin was presented

If you use the BLTNPageItem, you can access the image property and change the image from there.

authors: alexaubry pprevalon

repo: alexaubry/BulletinBoard


text:
Can't call .forget() on a Box

Unfortunately the forget() function requires Self: Sized, which Box<Future> doesn't implement.

Actually I just saw that there's impl<T, E> Future for Box<Future<Item=T, Error=E>> where T: Send + 'static, E: Send + 'static
I'm getting the following error:

src\main.rs:178:19: 178:25 error: the trait bound futures::Future<Item=std::opt ion::Option<Box<scene::Scene + Send>>, Error=Box<std::any::Any + Send>>: std::ma rker::Sized is not satisfied [E0277]
src\main.rs:178         new_scene.forget();
^~~~~~

Not sure why...

futures::Future::forget(new_scene); instead of new_scene.forget() works. Not sure if it's some sort of weird behavior in Rust.

Oh dear, that's odd! It's definitely intended to be able to call forget on Box<Future>. With the UFCS weirdness, I wonder if this is perhaps a compiler bug?

Oh my bad. The problem is actually that the trait was not imported. There's still the problem that the error message doesn't say that at all, but at least it's a logical behavior.

authors: alexcrichton tomaka

repo: alexcrichton/futures-rs


text:
Add shell completion for get/completion

Signed-off-by: Tuan Anh Tran me@tuananh.org
Add shell completion for bash and zsh
I've only add completion for get command. for other commands (info, install and update`, we will have to maintain a list of apps. If you want, i can add it.
Description
Add shell completion for bash and zsh
Motivation and Context
Attempt to close #158

[ ] I have raised an issue to propose this change (required)

How Has This Been Tested?
Test with bash on ubuntu

running arkade completion bash to generate completion for bash

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I've read the CONTRIBUTION guide
[x] I have signed-off my commits with git commit -s
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

[ ] I have tested this on arm, or have added code to prevent deployment

This gave me the idea for this PR: https://github.com/alexellis/arkade/pull/161/files
It should (if merged?) give us the ability to get a list of the apps for install by looping over the keys in that map?

authors: Waterdrips tuananh

repo: alexellis/arkade


text:
AxiBus.from_prefix does not recognize capital suffix

Hi,
I have a source file with capital suffix such as _ARADDR,it seems AxiBus.from_prefix() can not recognize it.

yes, this is a limitation of the cocotb bus object.

authors: alexforencich neutrala

repo: alexforencich/cocotbext-axi


text:
Live Example

This sounds like an amazing project ! Why don't you deploy this to Heroku or somewhere else to display a live demo of the quiz?

Some kind soul create a live demo: https://wiki-quiz.herokuapp.com/
Credit to @lutherism

authors: OrkoHunter alexgreene

repo: alexgreene/WikiQuiz


text:
Error idk why?

What i can say i have a BIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIG REAAAAAAL big table that i want to send.
I thought it would split up if its to big? or

Hello, idk if you still need help, but this network wrapper splits the data to chunks.

@tochnonement sorry if iam really late for that but the link doesnt work anymore

@tochnonement sorry if iam really late for that but the link doesnt work anymore

https://github.com/scuroinside/snippets/blob/48a47e6609adbf4fd5a716783d382eb5e2d59f02/netstream.lua

authors: Pdzly tochnonement

repo: alexgrist/NetStream


text:
新版本的让浏览器自带的下载有很大延迟

开启这个插件 不开拦截 用浏览器自带的下载 下载任何文件都会有30秒左右的延迟...

开启这个插件 不开拦截 用浏览器自带的下载 下载任何文件都会有30秒左右的延迟...

无法复现，请按照issue模板提供详细的复现步骤和版本信息。

authors: alexhua wutongskype


text:
Migrate off componentWillMount

With the release of React 16.9 they're now actively warning against usage.

any updates on this?
I've just created a PR: https://github.com/alexkatz/react-tiny-popover/pull/44
How could I test this?

@alexkatz Is it possible to get this merged?

No longer used!

authors: DaveTorbeck GuillaumeCisco alexkatz probablyup

repo: alexkatz/react-tiny-popover


text:
🛑 La fete des vignerons is down

In 85bdfe3, La fete des vignerons (https://lafetedesvignerons.be) was down:

HTTP code: 0
Response time: 0 ms

Resolved: La fete des vignerons is back up in f6fb371 after 4 minutes.

repo: alexnuttinck/status-page


text:
incompatible net architecture when loading states_dict

Hi,
I found there are some errors when loading some of the  pretrained model. Apparently, it's because the net architecture used for training is different with the net used for reproduction, which refers to the encoder and decoder defined in this repo. We have the same architecture for all the tasks here (except for the output layer). But  the trained model use different net architectures for some of the tasks. So maybe it is better to give a clear instruction about which task is supported by this repo.
Besides, I found this repo is pretty similar to the task bank module in the taskonomy repo. Is there any difference  between them?
Thanks

Hi, thanks for the question!
The networks here are more or less ports of the Taskonomy networks into pytorch. We’ve separated those networks into an encoder and decoder portion. The encoder portion is a ResNet50 and is the same across all tasks. The decoder portion varies but is essentially unused—you probably don’t need to interact with it very much.
I think that we may have only ported over the single-input-image tasks (so no ego motion), and all those that we did port are listed in the README here: https://github.com/alexsax/midlevel-reps. I believe that you already found that repo.
Let me know if this doesn’t answer your question. I’m going to close this for now, but feel free to reopen it (or ask in the main repo)

authors: alexsax huiwenzhang

repo: alexsax/visual-prior


text:
Syntax error

In the first command, unfortunately
python2 gcp-airflow.py
  File "gcp-airflow.py", line 116
    ,)
    ^
SyntaxError: invalid syntax

Deleting the two commas does at least let the script execute, no idea if its ok though
https://github.com/iihnordic/airflow-gcp-k8s/blob/master/gcp-airflow.py
def deploy_airflow(name, image_suffix):
    def apply_changes(service):
        service['metadata']['labels']['version'] = version
        service['spec']['template']['metadata']['labels']['version'] = version
        service['spec']['template']['spec']['containers'][0][
            'image'] = repo + '/airflow-' + image_suffix + ':' + version

    execute_with_yaml('k8s/airflow-' + name + '-deploy.yaml',
                      ['kubectl', 'create', '--namespace', namespace, '-f', '-'])


text:
Until 2021 data problem

gpt 3.5 has a problem with only having data until 2021. As far as I know, the web has solved this with a plug-in. I wonder if this can't be done in the API. I am Korean, if I ask who the president is gpt will answer the 2021 president, not the current one.

i have to wait until the gpt-4 API with plugin is public so i can check their documentation

authors: CaptainFarrell alfianlosari

repo: alfianlosari/ChatGPTSwift