Today Button Not Working in DateRangePicker and DatePicker

Description:
I am using the DateRangePicker from flowbite-datepicker in my Laravel project. Everything works fine, including the "Clear" button and date selection, but the "Today" button does not set the date to today's date when clicked.
Steps to Reproduce:
Install flowbite and flowbite-datepicker via npm.
Import and initialize DateRangePicker in app.js.

import flowbite;
import DateRangePicker from flowbite-datepicker/DateRangePicker;

document.addEventListener('DOMContentLoaded', () => {
    const dateRangePickerEl = document.getElementById('date-range-picker');
    if (dateRangePickerEl) {
        new DateRangePicker(dateRangePickerEl, {
            autohide: true,
            todayBtn: true,
            clearBtn: true,
            format: 'yyyy-mm-dd',
            weekStart: 1,
            todayHighlight: true,
        });
    }
});

Add the following HTML to my Blade template:

            <svg class="w-4 h-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
                <path d="M20 4a2 2 0 0 0-2-2h-2V1a1 1 0 0 0-2 0v1h-3V1a1 1 0 0 0-2 0v1H6V1a1 1 0 0 0-2 0v1H2a2 2 0 0 0-2 2v2h20V4ZM0 18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8H0v10Zm5-8h10a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z"/>
            </svg>

        <input autocomplete="off" name="start" type="text" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full ps-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Select date start">

    to

            <svg class="w-4 h-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
                <path d="M20 4a2 2 0 0 0-2-2h-2V1a1 1 0 0 0-2 0v1h-3V1a1 1 0 0 0-2 0v1H6V1a1 1 0 0 0-2 0v1H2a2 2 0 0 0-2 2v2h20V4ZM0 18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8H0v10Zm5-8h10a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z"/>
            </svg>

        <input autocomplete="off" name="end" type="text" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full ps-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Select date end">

Expected Behavior:
When clicking the "Today" button, the date picker should set the date fields to today's date.
Actual Behavior:
The "Today" button is visible, but clicking it does not set the date fields to today's date.
Additional Information:

flowbite version: [2.3.0]
flowbite-datepicker version: [1.2.6]

Thank you for your assistance!

I solved the problem by adding an option. todayBtnMode with mode 1.
document.addEventListener('DOMContentLoaded', () => {
    const dateRangePickerEl = document.getElementById('date-range-picker');
    if (dateRangePickerEl) {
        new DateRangePicker(dateRangePickerEl, {
            autohide: true,
                    todayBtn: true,
                    todayBtnMode: 1,
                    clearBtn: true,
                    format: 'yyyy-mm-dd',
                    weekStart: 1,
                    todayHighlight: true,
        });
    }
});

Where is the { weekStart: 1 } coming from? I can't find it in the documentation and I also can't find any occurence of weekstart in the code?


Localization - zh-cn.cfg - Simplified Chinese

From BehemothAerospaceEngineering created by zer0Kerbal: zer0Kerbal/BehemothAerospaceEngineering#16
From Kaboom created by zer0Kerbal: zer0Kerbal/Kaboom#20
From FieldTrainingLab created by zer0Kerbal: zer0Kerbal/FieldTrainingLab#7
🎏
🇺🇸 🇪🇸 🇫🇷 🇮🇹 🇧🇷 🇷🇺 🇩🇪 🇨🇳 🇯🇵 🇰🇷 🇳🇴 🇸🇪

[ ]  Readme 🔢
[ ]  release.md 🧾
[x]  Localization folder 📁
[ ]  Localization readme.md 🗃

Localization

[ ]   Chinese (中文) <zh-cn.cfg>

replaced by #31


[Event Request] Report 299 Delete Invoiced Sales Orders - OnBeforeDeleteSalesLine

Hi Team,
In Report 299 we need possibility to have our additional checks . Having event in the trigger OnAfterGetRecord, would be a perfect solution :

[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteSalesLine(var SalesHeader: Record "Sales Header")

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


cmd/go: unable to use gccgo

What version of Go are you using (go version)?

$ go version
go version devel +7f688d18c0 Mon Nov 30 22:14:36 2020 +0000 linux/amd64

Does this issue reproduce with the latest release?
No. It is on tip only.
$ gccgo --version
gccgo (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/dotaheor/.cache/go-build"
GOENV="/home/dotaheor/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/dotaheor/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/dotaheor/go"
GOPRIVATE=""
GOROOT="/usr/bin/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/bin/go/pkg/tool/linux_amd64"
GCCGO="/usr/bin/gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build239828229=/tmp/go-build -gno-record-gcc-switches"

What did you do?
go run -compiler=gccgo example.go

What did you expect to see?
Normal run.
What did you see instead?
# command-line-arguments
/usr/bin/ld: $WORK/b001/_pkg_.a(_go_.o): in function `main.main..init0':
/tmp/go-build/b001/_gomod_.go:5: undefined reference to `runtime.setmodinfo

It is on Debian 10 stable.

@dotaheor I wasn't able to reproduce this at the commit you listed.
Could you edit the issue to include the full go env output? It's important for debugging so please don't skip it. Please also let us know the gccgo version you're using, the Linux distribution and version, and any other information that would help us reproduce. If you can reproduce this with a minimal Dockerfile for example, that would be super helpful.

OK, it is included now. But I looks there us not much useful info in the output.
Other info

It is ok to run gccgo solely.
It is ok to run gccgo with Go 1.15 command.

Thanks, I was able to reproduce the issue using a toolchain built with this Dockerfile:
FROM debian:10
RUN apt-get update
RUN apt-get install -y gccgo git golang
RUN git clone https://go.googlesource.com/go /goroot && \
  cd /goroot/src && \
  git checkout 7f688d18c0 && \
  ./make.bash
ENV PATH=/goroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

This is with: gcc version 8.3.0 (Debian 8.3.0-6)
It looks like this issue was exposed when we enabled GO111MODULE=on by default. I also reproduced it with Go 1.15.5 when that environment variable was set explicitly.
In module mode, we embed version information in linked binaries. The symbol runtime.setmodinfo is used to set that information. It looks like when a binary is linked in module mode, that symbol is missing.
@ianlancetaylor Any idea what might cause this?
cc @bcmills @matloob

The version of gccgo being used is too old.  The runtime.setmodinfo function was introduced in GCC 10.
This is the kind of problem that is inevitable when using the "go" tool from the gc toolchain with gccgo.  We try to make them work together, but it's hard to avoid all version mismatch problems.  If you want to use gccgo, the best approach is to use the "go" tool that comes with the version of gccgo that you are using.
That said, this is a bug, although not a very important one, so leaving this issue open.


Task for checking the reference data against the spec models

https://github.com/autonomouslogic/eve-ref/pull/142


Move language modes to CSV

There’s a longstanding comment in code/code.py about moving the definition of language modes to a CSV file:
https://github.com/knausj85/knausj_talon/blob/b0248921be6b47d33d68c368f6676aa4e5d929ef/code/code.py#L6-L9
My Talon user directory has had language modes in a CSV file for a while now.

talon-user/core/language_mode/language_mode.py
talon-user/settings/language_modes.csv

Would there be any interest in copying this over?

Closing in favor of https://github.com/talonhub/community/issues/1585


NuProj doesn't build referenced NuProj

When one NuProj references another via a ProjectReference, and the referencing one is built at the command line, it doesn't cause the referenced one to build.
Amazingly, no build error is produced. But since the resulting NuPkg file is incomplete without its dependency NuPkg also built, the result should be to produce both by building the referenced NuProj projects.

@AArnott The CopyLocal behavior is an interesting one. I've filed issue #55. This allows us to close this independently.


returns null when allowedValues key is empty

this fixes bug that when the field has no allowedValues key the schema will throw error
TypeError: Cannot convert undefined or null to object

this pull request targets issue aldeed/meteor-autoform#1654

@aldeed can you look at this pr, I think it will solve a bug related to autoform.


Using custom font size configuration is not working

In tailwind, it is possible to define custom fontSizes in addition to default ones (xl, 2xl) etc.
Below is an example of using custom fontSize h1 and using it as text-h1
https://play.tailwindcss.com/bCNworf5KK?file=config
If you add same configuration in shadcn project, it is not working as expected.
Using text-h1 does not affect font size at all and breaks text color since both use text- keyword.
Here is a fresh repo with reproduced bug
https://github.com/lorcan-codes/vite-shadcn
https://vite-shadcn.vercel.app/

Closing this because the issue was with tailwind-merge package. And I found a way to make this work.
https://github.com/lorcan-codes/vite-shadcn/commit/af3ca21072d106b036304388de659818fc35520d


torch.nn.modules.module.ModuleAttributeError: 'BatchNorm' object has no attribute 'weight'

I am training your UNet mesh segmenter model by running training_job_example_aliens_unet.py file and I get this error when I am trying to initialize the model. Is there a fix for this? Can I disable initialization and expect the same accuracy?

I am running into the same issue here.

I am training your UNet mesh segmenter model by running training_job_example_aliens_unet.py file and I get this error when I am trying to initialize the model. Is there a fix for this? Can I disable initialization and expect the same accuracy?

Add statement before class_name.find('BatchNorm') != -1 in https://github.com/MIT-SPARK/PD-MeshNet/blob/e3f6c01ceff260778daf5fea66125413309e4399/pd_mesh_net/utils/models.py#L123 works for me. Not sure if such changes will affect the initialization of the network.


Tag a release :)

Hey @bcbcarl :smiley:
Nice [and sunny] plugin!
Could you git tag some release, so your package could be built on melpa.stable? :)
http://stable.melpa.org/#/wttrin

No problem. Thank you.

No hurry :smiley:
When you have the opportunity to :wink:

https://github.com/bcbcarl/emacs-wttrin/releases/tag/v0.1.0

Perfect! :)


Console logging

Can the console.log be removed the the minified not debug versions?

Bumping this issue - not critical, but not ideal.


Please chose and state a license for your project.

This looks like a really awesome mod, please state what license you wish to allow use of it.
https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository
thank you!

Thank you, done it.

Awesome!


Warning: Prop src did not match. Server: "[object Object]"

Hi,
when running server on localhost. I've got error
Warning: Prop src did not match. Server: "[object Object]" Client: "/static/media/logo.5d5d9eef.svg"
so react logo does not show

I'm just see Known issues. If this is the same case, forget it :P


Sets viewpoint consistently for raster layer file

The Raster Layer File sample was having an issue where the viewpoint
wasn't being set consistently on load. There were also reports of a
crash that may have been due to a race condition. That issue should be
fixed as well.

@ThadT Can you please review this? It addresses feedback delivered during certification.

Thanks for the review! :)


Ensure we print the right field for data_source

data_source is distinct and different than data_sources - we don't appear to have made that distinct enough in some places so even we have made use of the wrong one in some places.

👍  - Looks good!


File completion of header paths

Hi, I'm using coc-clangd now, previously I used ccls, sorry I'm not sure whether this should be a coc task or server but it used to work with ccls.
When completing headers, I'm not getting file path completion, just direct headers, for example, #include <i provides iostream and others as options, but #include <some_dir/ won't show any file in that include directory, seems I need to type some char for them to show (same for #include <).

As an aside I also miss code fold implementation from ccls.

Ah, good catch.
We send trigger characters of .>: so coc only sends us a completion request after typing those characters or identifier chars. We don't trigger on / or the < or " at the start of a directive (though if you somehow force a request there, it does work).
Fix would be to

As an aside I also miss code fold implementation from ccls.

Yep, this is #310, waiting for someone to get around to it. For C++, it seems like there's a bunch of different kinds of foldable regions that (from the implementation side) are almost unrelated. We have to start somewhere, please comment on the bug which are most important to you.

thx for response.

https://reviews.llvm.org/D79456


Implement Add Snapshot Listener & Removal

This PR provides a working implementation of subscribing to a document and responding to server side updates. It mimics the Firebase Swift/Objective-C SDK in that you must call remove on the listener otherwise you will leak things. While this is not great it is 1 to 1 compatible with the existing SDK (which is our goal right now).
This PR also includes a small view controller which allows you to exercise fetching and subscriptions to a given firestore document.
How To Test

Run the application
Sign in
Click the 'Firestore Testing' button
Plug in a document path in your firestore and either fetch it or start a subscription.

Could you please resolve the conflicts here @brianmichel?  I can take another look after that.

@compnerd ready for re-review


Not Launching at startup

Pock is set to launch at login but is not

Which version of Pock are you using?

same here. I'm on 0.4.5

I’m on 0.4.5.
I think this is an awesome app I’d even be willing to pay for, but it is causing my computer to run hot at times.  If this gets addressed in future releases I will definitely check it out, but right now it is taking up to many resources on my machine.
Thanks,
Josh Rubin
<EMAIL_ADDRESS>(805)660-2203

On Apr 7, 2019, at 12:35 PM, Jose Zapata<EMAIL_ADDRESS>wrote:
same here. I'm on 0.4.5
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/pigigaldi/Pock/issues/39#issuecomment-480617617, or mute the thread https://github.com/notifications/unsubscribe-auth/AvBvmRh406NNJyy9FkoPmoWGz2JNL38Wks5vejp5gaJpZM4ce31R.

same here. Im on 0.4.5 and need to re start manually when my Mac boots from cold.
best thing I've seen for MacBook in a loooong time

Same issue here, on mac os 10.14.4

Same here, macOS 10.14.4

Running latest pock and still won’t run on boot up

I'm on MPB Late 2016/ MacOS 10.14.15/Pock 0.4.6
and it doesn't at login.
There have any way to solve it?
thanks for your support

Awesome app really good work .
I am facing same issue MBP 2018/MacIS 10.14.5/Pock 0.4.6
Also please update README.md file on how to contribute for bug fix and enhancements

MacBook Pro (15-inch, 2018)
Mojave 10.14.5 .
Pock 0.4.6 , not startup at login yet .

Any update on when this might get some attention? As others have said, I use the app all the time, and it works flawlessly. The only issue I've seen is not launching at startup, despite setting that in the preferences.
MacBook Pro (15-inch, 2018)
Mojave 10.14.5
Pock 0.4.6

Same for Macbook Pro (2018, 15') / Mojave 10.14.5 / Pock 0.5.2

Same here at 10.14.5 MBP 13inch 2016

same here macOS 10.15 Beta (19A512f) with Pock v0.5.3
Also, the "Launch at Login" option doesn't persist. After check this option, close and reopen the preferences, it's not checked. I have tried delete everything related to Pock except the app itself, that doesn't fix the problem.

Having the same issue.
macOS Mojave v10.14.16
MacBook Pro 13-inch, 2018

I am also experiencing this issue on Mojave 10.14.6.


Add parallel compilation support to the build system.

References

Description

The native setup.py support doesn't provide a way to parallelize source compilation, making the compilation time very slow. This PR implements a patch to enable the parallel compilation by learning grpc and cpython. Essentially, this PR implements a method that overloads the default compile method to use multiprocessing to compile files in parallel.
Local Benchmark:
When building for MacOS in M1 Pro (10 cores), the total compilation time (real-time) using pip install -e . is:
Serialized compilation (before this PR): 39.365s
Parallel compilation (after this PR): 11.709s
Improvements: 3.362x
Github Action Benchmark:
Unfortunately, Github Action only provides 2 cores in their virtual environment, so the improvements are not obvious. However, we can still see the improvements by comparing these two actions:
Serialized compilation (before this PR): https://github.com/y-scope/clp-ffi-py/actions/runs/8307187935
Parallel compilation (after this PR): https://github.com/LinZhihao-723/clp-ffi-py/actions/runs/8308605670
We may cherry-pick some builds to check the wheel building time:
cp38-manylinux_aarch64: 386.13s -> 223.95s
cp310-manylinux_i686: 41.50s -> 20.43s
cp311-macosx_arm64: 51.07s -> 22.02s
Note: the time in macos build doesn't have a stable improvement, which might be because the virtualized macos env doesn't have 2 physical cores.
Validation performed

Validated the workflow still passed.

How about:
Add support for compiling C-extension using all cores. (#53)

Shall we use "Add support for compiling C-extension using all cores in parallel." or "Add support for compiling C-extension using all cores in concurrently."? I think we should be explicit about the parallelism using some key words.

Sure, we can use your first suggestion or this one:
Add support for compiling C-extension in parallel. (#53)

Sure, we can use your first suggestion or this one:
Add support for compiling C-extension in parallel. (#53)

lgtm


Explain the parameters needed for fine-tuning performance

This section details the config params.
It needs to explicitly call out how to tune parameters based on the runtime hardware available, and explain why/how we suggest updating the number of workers.

@lupesko I have added the docs about detailed configurations


Feature request: drag and drop ranking/ordering

Hi!
I was wondering if it would at all be possible to implement drag and drop functionality so that a user can specify an order or ranking to a list of items. It would be very convenient for my use case if a user could order rows in a datatable/datagrid, but that may be a long shot.

Currently, this is a stretch goal for py-shiny. It would be a great py-shiny extension package!
There is prior art with sortable.js and {sortable} R package: https://rstudio.github.io/sortable/ . The R package was set up to typically sort list of items.


gestureHandlerRootHOC not available in 1.0.0-beta32

Hey there, tried to install 1.0.0-beta32 but found that it's missing the gestureHandlerRootHOC on the install.

Thanks for the heads up @wmcbain !
This is weird as when I install the package the file is there. Would you mind checking if the file exists at all. There should actually be two versions of it: gestureHandlerRootHOC.android.js and gestureHandlerRootHOC.ios.js.
Maybe this could be related to packager setup or sth?

I'm using the default Metro Bundler I believe, it is weird:

@wmcbain I just created a new project, installed RNGH and files are there. Is it possible that sth went wrong with your yarn install? When you rm -r node_modules and then yarn install again are these files still gone?

@kmagiera Wrote this up and came down with a horrible cold. Just getting back on my feet. I'm going to close this until I can test a little bit further.

I also found the same problem


When attempting to connect to the server I get an io.netty error: "Packet was larger than I expected, found 4 bytes extra whilst reading packet 53"

internal exception: io.netty.handler.codec.DecoderEnxemption: java.ioException: Packet 0/53 (class_2708) was larger than I expected, found 4 bytes whilst reading packet 53
The only other mods are
fabric-api-0.14.1
fabric-carpet-1.16
lithium-fabric-mc.1.16.1 (I did include the mixin.world.player_chunk_tick=false argument in lithium.properties)
phosphor-fabric-mc-1.16.1
I can provide more data if you need, but I'm genuinely not sure what other variables would be causing this as it's a fresh world, with no completed portals even.

The server and client should both install this mod


removed the -p 1053 param from the dig call

by default the DNS listens on 53.

This pull request didn't trigger Jenkins as its author isn't in the allow list.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

I think I'd go the other way around and have the doc recommend setting core.dns_address :1053 as while the default DNS port is indeed 53, the likelihood of that conflicting with a local DNS cache/resolver is quite high.

Snap!

Documentation preview available at: https://linuxcontainers.org/lxd/docs/pr.11423/

Does it make sense to add -p <DNS_server_PORT>  to the dig call? That alone would have helped me.

Does it make sense to add -p <DNS_server_PORT>  to the dig call? That alone would have helped me.

I think so. And add a section that shows how that has been set in LXD.


update module

master instruction
weaving sales contract

Coverage increased (+0.003%) to 63.733% when pulling 7f408feb42fa9e100279f3182c1c42dc6b181c5f on adityahenanda:dev into 1acfec62f532ba2d2835dd66cae9ecac781342f3 on danliris:dev.


Issue: 4942: cmd_rewrite: add snapshot summary data to an existing snapshot.

cmd_rewrite: add capability to add snapshot summary data to an existing snapshot.
Add option --snapshot-summary [-s] to enable this enhancement.

What does this PR change? What problem does it solve?
This pull request add the capability of adding snapshot summary data to an existing snapshot.

Was the change previously discussed in an issue or on the forum?
https://github.com/restic/restic/issues/4942

Checklist

[ ] I have added tests for all code changes.
[ ] I have added documentation for relevant changes (in the manual).
[X] There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
[X] I'm done! This pull request is ready for review.

There will be a subsequent PR which will allow include filters to be used for the restic rewrite command, see https://github.com/restic/restic/issues/4278 for details.

@MichaelEischer: Thank you for reviewing my code. I have updated the code as you requested. The new tag for creating snapshot summary data is "snap-summary". See changes in PR #5185.


[ts] Cannot find name 'invalidstring'.

Bug Report

TSLint version: 5.7.0
TypeScript version:2.5.2
Running TSLint via:  CLI

TypeScript code being linted
import React, {
  Component,
  // @types/react
  ReactChildren,
} from 'react';

ddd ; /*this line*/

with tslint.json configuration:
{
	"extends": ["tslint-config-airbnb", "tslint-react"],
	"rules": {
		"import-name": [0]
	}
}

Actual behavior

It Seems that Code 's Linter find it , but when i use cli, tslint cannot find any error or warning;

Here is my package.json script
"tslint": "node node_modules/tslint/lib/tslint-cli.js 'src/**/*.ts?(x)'",
I have tried to output files and files matching;
Expected behavior
same with VS Code

As you can tell from the [ts] prefix of the message, this error comes from TypeScript and not from tslint.
VSCode uses the TypeScript compiler behind the scenes to tell you what's wrong with your code.
TSLint is only responsible to show you hints/warnings about code smells, bad practices and so on.
From the usage docs https://palantir.github.io/tslint/usage/cli/

Please ensure that the TypeScript source files compile correctly before running the linter.

If you really need to see this error when running tslint from CLI, you can enable type checking via --type-check flag: https://palantir.github.io/tslint/usage/type-checking/


Beerus can starknet_callContract to a pathfinder node

Pull Request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: Fixes #3
What is the new behavior?

Beerus can interact with pathfinder

Does this introduce a breaking change?

[ ] Yes
[x] No

Other information

Codecov Report
Base: 2.25% // Head: 2.09% // Decreases project coverage by -0.16% :warning:

Coverage data is based on head (dda01c2) compared to base (6aeac8b).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff            @@
##            main     #35      +/-   ##
========================================
- Coverage   2.25%   2.09%   -0.17%
========================================
  Files         21      20       -1
  Lines        266     287      +21
========================================
  Hits           6       6
- Misses       260     281      +21

Impacted Files
Coverage Δ

beerus_core/src/lightclient/starknet/mod.rs
0.00% <0.00%> (ø)

beerus_rest_api/src/main.rs
2.85% <0.00%> (-0.27%)
:arrow_down:

beerus_cli/src/ethereum/mod.rs
0.00% <0.00%> (ø)

beerus_cli/src/starknet/mod.rs
0.00% <0.00%> (ø)

beerus_core/src/lightclient/beerus.rs
0.00% <0.00%> (ø)

beerus_rest_api/src/api/ethereum/endpoints.rs
0.00% <0.00%> (ø)

beerus_rest_api/src/api/starknet/endpoints.rs
0.00% <0.00%> (ø)

beerus_rest_api/src/api/ethereum/ethereum_api.rs

beerus_rest_api/src/api/starknet/starknet_api.rs

... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Fix help for --use-emulator

Hi there, this looks good, can you sign the google CLA so that the check passes?

Signed


ARROW-2064: [CI][Ruby] Add Ubuntu 20.04

@github-actions crossbow submit ubuntu-focal

+1
CI failure is unrelated.


fix: Prefix cluster name to aws worker pool

This commit fixes the condition where all AWS CI jobs have the same
worker pool name, causing errors such as:
error: Error creating LB Target Group: DuplicateTargetGroupName: A
target group with the same name 'pool-ci-workers-http' exists, but
with different settings

Signed-off-by: Imran Pochi<EMAIL_ADDRESS>

Heh:
Error: "name" cannot be longer than 32 characters

I think we might need to pass a smaller random string for worker pool names on the CI:
Currently, even without worker pool name:
$ SUFFIX="$(printf '%b%b\n' "$(printf '\\%03o' "$((RANDOM % 26 + 97))")" "$(printf '\\%03o' $ "$((RANDOM % 26 + 97))")")"
$ CLUSTER_ID=l8eci$(date +%s)-$SUFFIX
$ echo -n $CLUSTER_ID-workers-https | wc -c
32

I think we might need to pass a smaller random string for worker pool names on the CI.
Currently, even without worker pool name:
$ SUFFIX="$(printf '%b%b\n' "$(printf '\\%03o' "$((RANDOM % 26 + 97))")" "$(printf '\\%03o' $ "$((RANDOM % 26 + 97))")")"
$ CLUSTER_ID=l8eci$(date +%s)-$SUFFIX
$ echo -n $CLUSTER_ID-workers-https | wc -c
32

@iaguis https://github.com/kinvolk/lokomotive-ci/pull/102
Is this the correct appraoch ?

If you tag all created resources with a tag for CI and information when it was created (afaik, not available for all resources), then you can stop having the date in the cluster prefix.
https://github.com/kinvolk/lokomotive-ci/pull/102 would make the workers invisible to the cleanup job.
So either shorten the date string or shorten the worker suffixes.

If you tag all created resources with a tag for CI and information when it was created (afaik, not available for all resources), then you can stop having the date in the cluster prefix.
kinvolk/lokomotive-ci#102 would make the workers invisible to the cleanup job.
So either shorten the date string (e.g., trim the seconds and later replace them with 00) or shorten the worker suffixes.

updated ci PR with removing the l8eci prefix to ci.


so, how to use it? I want to use cityscape datasets test this method

hi, the package provides only the architectures and modules. some pytorch knowledge to set your project up is required.
best,
N.

Thank you!
---- 回复的原邮件 ----
| 发件人 | Adaloglou @.> |
| 日期 | 2022年02月09日 23:37 |
| 收件人 | @.> |
| 抄送至 |<EMAIL_ADDRESS>|
| 主题 | Re: [The-AI-Summer/self-attention-cv] so, how to use it? I want to use cityscape datasets test this method (Issue #13) |
hi, the package provides only the architectures and modules. some pytorch knowledge to set your project up is required.
best,
N.
—
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 authored the thread.Message ID: @.***>


[Question] Is LSTMTimeSeriesRegressor the same as TedGAN?

In readme, there's a method called TadGAN. It seems to be the best algorithm. But I'm not sure how to run Orion using this algorithm.
Can you show how to reproduce all three methods in the benchmark table?

Hi @leix28!
The title of your issue is a bit different, so I will answer both:

The primitives referred to are different. LSTMTimeSeriesRegressor is a time series forecasting model using double stacked LSTM layers. On the other hand, TadGAN is a reconstruction based approach using a GAN model.
To compare all three methods, you can use orion.benchmark for this task

from orion.benchmark import benchmark

# pipelines you want to compare
pipelines = [
    'arima',
    'lstm_dynamic_threshold',
    'tadgan'
]

# datasets you want to use for your benchmark
signals = ['S-1', 'P-1']

# metrics to report
metrics = ['f1', 'accuracy', 'recall', 'precision']

scores = benchmark(pipelines=pipelines, datasets=signals, metrics=metrics, rank='f1')

You can visit the benchmark document for more detail.


add link to tutorial Jupyter Notebook; how to access DEM data

add link to tutorial Jupyter Notebook  to the usage example , tutorials section

@dthiex  I made changes to Copernicus dem and Mapzen DEM yaml
Since i dont see these files in your other Pull Requests ,
I think I can I merge my changes without causing any conflict right  ?

@dthiex I made changes to Copernicus dem and Mapzen DEM yaml
Since i dont see these files in your other Pull Requests ,
I think I can I merge my changes without causing any conflict right ?

Yes, it can be merged. For the future: Also if I would have changes in those files, I would then merge the master branch to my branch and include your updates, so no problem here.


TODOs

History
Take gateway from payment not a token
Store gateway config inside payment.
docker container

Bugs:

Default gateway (not implemented)
Snippet
choose payment
Gateway delete
StoreExtension is not registered. Fixed but not best way.

Many parmas to you! Thanks to you for your generous work making our payment methods easier.
Xros


Even example code doesn't work

Please help.

@drblmb I just fixed this : https://github.com/aerofs/react-native-quick-look/pull/5


PowerShell on target machine - very slow, how to debug

As part of my RM deployment I make use of the PowerShell on Target Machines task
The task is taking somewhere in the order of 10 times longer to run than if I invoke the script myself at the command line - the script being run is simply find and replace in a file to update config
It take  about 3 seconds to open a connection and run the script from the command line and close to 3 minutes when run as a task.
I've tried to run all or part of the PowerShellOnTargetMachine.ps1 directly but it looks like I need more context thats provided by the build agent?
This is all on premise with agent and target machine on same subnet (all virtualized)
This is with TFS 2015 update 2 - looks like version of the task is 1.0.25
2016-09-16T13:59:53.7240571Z Executing the powershell script: D:\agent3\tasks\PowerShellOnTargetMachines\1.0.25\PowerShellOnTargetMachines.ps1
I've switched on verbose logging and towards the end of the script there is a gap of time but I've no idea why - is there more tracing I can enable to get more detail?
It goes from 13:59 to 14:03 and its not clear where that time is being spent?

2016-09-16T13:59:54.1303047Z ##[debug]Loading .NET assembly:	Microsoft.VisualStudio.Services.DevTestLabs.Definition.dll
2016-09-16T13:59:54.1459250Z ##[debug]Loading .NET assembly:	Microsoft.VisualStudio.Services.DevTestLabs.Deployment.dll
2016-09-16T13:59:54.1459250Z ##[debug]Initiating deployment on devweb.foo.local
2016-09-16T14:03:34.0682307Z ##[debug]Finished Deployment operation on devweb.foo.local:5986
2016-09-16T14:03:34.0838552Z ##[debug]Deployment logs for Deployment operation on devweb.foo.local:5986
2016-09-16T14:03:34.0838552Z ##[debug]
2016-09-16T14:03:34.0838552Z 	 Deployment started on target machine...
2016-09-16T14:03:34.0838552Z ##[debug]Service logs for Deployment operation on devweb.foo.local:5986
2016-09-16T14:03:34.0838552Z ##[debug]RemoteDeployerSource Verbose: 10 : [RemoteDeployer]16:Sep:16:15:2:23:5308; 2480, 4Creating public key for communication
2016-09-16T14:03:34.0838552Z RemoteDeployerSource Verbose: 2 : [RemoteDeployer]16:Sep:16:15:2:23:5464; 2480, 4Created public key for communication
2016-09-16T14:03:34.0838552Z RemoteDeployerSource Information: 12 : [RemoteDeployer]16:Sep:16:15:2:23:5620; 2480, 4Deployment service - VisualStudioRemoteDeployer4f659a6c-52dd-4c2d-bb26-f081dd4c1be4 is running...
2016-09-16T14:03:34.0838552Z RemoteDeployerSource Verbose: 4 : [RemoteDeployer]16:Sep:16:15:2:27:3122; 2480, 6Input file found
2016-09-16T14:03:34.0838552Z RemoteDeployerSource Verbose: 5 : [RemoteDeployer]16:Sep:16:15:2:27:3122; 2480, 6Reading input parameters
2016-09-16T14:03:34.0838552Z RemoteDeployerSource Verbose: 6 : [RemoteDeployer]16:Sep:16:15:2:27:3278; 2480, 6Finished reading input parameters
2016-09-16T14:03:34.0838552Z RemoteDeployerSource Verbose: 7 : [RemoteDeployer]16:Sep:16:15:2:28:0153; 2480, 6Executing specified action. ScriptNull= False,. AzureStorageNull: True
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1222012 : [RemoteDeployer]16:Sep:16:15:2:28:0153; 2480, 6deploymentMachine.MachineName: localhost.
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1221727 : [RemoteDeployer]16:Sep:16:15:2:28:0153; 2480, 6ApplicationPath:
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1221740 : [RemoteDeployer]16:Sep:16:15:2:28:1091; 2480, 4Establishing local powershell session on the machine
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1221740 : [RemoteDeployer]16:Sep:16:15:2:32:8123; 2480, 4Finished establishing local powershell session on the machine
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1221661 : [RemoteDeployer]16:Sep:16:15:2:32:8123; 2480, 4Starting Run Dsc on the machine:localhost, powershell port: 5986.
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1221666 : [RemoteDeployer]16:Sep:16:15:2:32:8281; 2480, 4Executing commands to set execution policy and set global variables.
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1222014 : [RemoteDeployer]16:Sep:16:15:2:32:8437; 2480, 4GetDeploymentScript:: applicationPath:
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1221667 : [RemoteDeployer]16:Sep:16:15:2:32:8437; 2480, 4Machine:localhost Port:5986 => Creating Working Directory and setting it as the current directory.
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1221665 : [RemoteDeployer]16:Sep:16:15:2:32:9061; 2480, 4Executing powershell script file.
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1221781 : [RemoteDeployer]16:Sep:16:15:2:33:2030; 2480, 4Checking if the mof and/or meta mof files exist, and then applying them if present.
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1211666 : [RemoteDeployer]16:Sep:16:15:2:33:2342; 2480, 4Script is executed , return code from script 0
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Information: 1221662 : [RemoteDeployer]16:Sep:16:15:2:33:2342; 2480, 4Cleaning temporary Mof Folder
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Verbose: 1221778 : [RemoteDeployer]16:Sep:16:15:2:33:2499; 2480, 4Disposing the remote session
2016-09-16T14:03:34.0994776Z RemoteDeployerSource Verbose: 8 : [RemoteDeployer]16:Sep:16:15:2:33:2499; 2480, 6Completed specificed action. Result: Passed
2016-09-16T14:03:34.0994776Z Deployment status for machine 'devweb.foo.local:5986' : 'Passed'
2016-09-16T14:03:34.0994776Z ##[debug]Leaving script PowerShellOnTargetMachines.ps1

I've also got a similar setup in vms in azure and that takes seconds to run but I note that its a later version of the script - 1.0.40 ? - could that version run on premise? and would it help?

@richardjharding - Yes. we did improvements in this task, specifically in its polling logic to address the issue you specified.  The latest task could have compat issues with Agent that's available with TFS 2015 Update2. TFS "15" RC1  is an option.

Thanks, We won't be able to move to RC - fairly locked down environment
If I deploy and test the later version of the task  - is it simple enough to revert back? - using tfx cli tools I assume

You would have to create a patch with a higher patch number reverting whatever change/issue is affecting you and then uploaded that via tfx.  The server will task the in the box tasks, your custom collection uploaded tasks, union them and resolve task version to use (right now is latest - will offer major version locking soon).

@richardjharding - at this point there is no way to get the fix to older agent easily without breaking compat. We will keep you informed if there is any opportunity for updates in future that can have this fix.


Can I use this SDK on iOS8.0?

If I want to use the line login before iOS 10.0, do I have to use the previous SDK?
Look forward to your suggestions, thx.

Hi,
LINE SDK Swift 5.0 only supports from iOS 10.0. It is some security consideration, as well as to match the deploy target of LINE app.
If you need to support earlier iOS versions, I am afraid you need to use previous SDK versions. Please check the version 4.1 on this page.


Sparsemax layer does not actually support marking even though the support_masking flag is True

Describe the bug
The Sparsemax layer has the supports_masking flag True but its call method does not actually take in a mask.
Code to reproduce the issue
See https://github.com/tensorflow/addons/blob/v0.17.0/tensorflow_addons/layers/sparsemax.py#L36
Other info / logs
This issue can be fixed by supporting the use of mask
BIG_NUMBER = 1e6
def call(self, inputs, mask=None):
        return sparsemax(inputs - (1 - mask) * BIG_NUMBER, axis=self.axis) * mask

This code can be tested that it works as follows
    import numpy as np
    from tensorflow_addons.activations.tests.sparsemax_test import _np_sparsemax

    att_scores = np.random.randn(2, 3, 5, 7).astype(np.float32)
    mask = (np.random.uniform(0, 1, (2, 1, 5, 7)) > 0.5).astype(np.float32)

    out_sparsemax = Sparsemax()(att_scores, mask).numpy()
    for i in range(2):
        for j in range(3):
            for k in range(5):
                m = mask[i,0,k].astype(bool)
                a = out_sparsemax[i,j,k][m]
                b = _np_sparsemax(att_scores[i,j,k][m][np.newaxis, :])[0]
                assert np.allclose(a, b, atol=1e-6)

Can you extend the current test with a PR and then commit a fix?

i have a couple of deadlines coming up, I'll try to put something together probably after Sep 15.


Do ASAP: Updating contract version to latest (1.6)

There is a new version of the contract that allows users to submit and claim multiple times. We should update our dependency and also change gating to allow a user to submit and claim multiple times on a service request.
@masonchain @nftchance Anything else you can think of that was updated and needs to be reflected in the app?

@masonchain Lead here, please -- Looking for scope to parity of 1.6.~ pre-2.0.

@masonchain is working on publishing the package and getting some docs together for this.

1.6.0 is ready to implement and just requires dropping the DB and migrating to the new version.
1.6.0 does not support multiple submissions and claims yet as I was under the impression this functionality is still tabled. @elisemarika Can you give some insight on this functionality?

To confirm, multiple submissions are tabled (for now).


assert_select in request specs needs document_root_element

when using rails' assert_select (defined in https://github.com/rails/rails-dom-testing) we have to configure a document_root_element - this seems to happen automatically in controller tests when render_views(true) but doesn't happen in request specs
A fix is to add a support file to spec/support like (adapted from http://stackoverflow.com/questions/36214550/rspec-integration-testing-testing-how-many-anchor-tags):
module AssertSelectSupport
  def document_root_element
    html_document.root
  end
end

RSpec.configure do |config|
  config.include AssertSelectSupport, :type => :request
end

But shouldn't this either be built into rspec-rails or referenced from the docs?

Request specs aren't intended to be used for introspecting views, please use controller specs with render views turned on or feature specs.


improve tx_pool unit test

add more test cases to test tx pool failure modes, this increases the test
coverage to 100%.

lgtm


Canada

@wardcraigj: did you mean to close this?

yeah, sorry for the spam. I might need to make a few more changes, but I'll have a PR either tonight or later this weekend

That's fine :)
Thanks for the submission


docs: GraphQL over Server-Sent Events Protocol

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[]byte/string parameter conversion oddity

func TestByteToString(t *testing.T) {
	rt := goja.New()
	rt.Set("v", []byte("hi"))
	rt.Set("fn", func(v string) {
		assert.Equal(t, "hi", v)
	})
	_, err := rt.RunString(`fn(v)`)
	assert.NoError(t, err)
}

Expected "hi", got "104,105". Looks like mangling of arrays that could use a special case for []byte? The opposite direction appears to work just fine.

I'm not sure []byte should be converted to string. Not only they are distinct data types, but one is immutable, the other is not. This means the data will be copied during the conversion which is inconsistent with how it normally works.
I had an idea of converting []byte into ArrayBuffer which is more suitable, but never really had the time to implement it.

Hm, good point. The dilemma we're facing with k6 is that we need some functions to accept string literals, but we also need to be able to handle binary data (POST-ing images being the big one that comes up) in some kind of sane fashion.
If I were to contribute an ArrayBuffer implementation, how would I go about doing it?

Make sure it passes all relevant tc39 tests and raise a PR. However you could consider wrapping []byte into a custom type before passing it to ToValue(). You could then define methods on that type and use them in JS. It all depends on what you want to do with it...

I'm closing this, if you do implement ArrayBuffer, please raise a PR


Zero argument logical expressions

Changes

Allow zero argument logical expressions not be treated as collection.

References
Closes #38

I guess if OR is the first state in a list of 3 that would still cause trouble right?
[
"OR",
"AL",
"AK"
]

But probably no way around that?

I guess if OR is the first state in a list of 3 that would still cause trouble right?
[
"OR",
"AL",
"AK"
]

But probably no way around that?

It should be good now, a2f8e09c9ebee85ee86678853af369908227ae0b ... you please double check ?


Change '--contract-name' to '--package' and '-p'

In go-codegen interchaintest add-contract, you set a custom package name using '--contract-name'. I think this is not descriptive.

Hello @srdtrk , I'm interested in working on this issue. Would it be okay for me to pick it up?

Yes sounds good @mahiro72. Can you also keep --contract-name working as well? This is because I'm not planning to release 0.3 anytime soon, so I don't want to break the API, nor do I want to separate v0.2.x into a release branch.

@srdtrk
Ok, sure! The existing --contract-name option will continue to work, and I will introduce the --package option.

@srdtrk
While working on the implementation, I noticed that the flag name --contract-name seems appropriate based on the description: "Name of the contract to be added to the test suite. If not provided, the contract name will be inferred from the schema file."
Could you please double check if renaming it to --package is necessary? Thanks  for your consideration

Hmm, right now, what it actually does is that it determines the package name found here. And it ends up creating packages like this.
So I think the description of the flag should also change. What do you think @mahiro72 ?

@srdtrk
You're right, I believe introducing the --package option and updating the flag description is the good approach moving forward. Thank you for talking the time to review and provide feedback!

Great. You can also make --contract-name a hidden flag, cobra should already support that 😃


Add support for inline SSML responses

Using alexa-ssml (or similar) we could build SSML responses in the same way that React does with JSX.
Response.say(<speak>Hello world!</speak>);

This would adding transform-react-jsx to plugins in .babelrc:
{
  "presets": ["es2015", "stage-1"],
  "plugins": [
    "transform-decorators-legacy",
    ["transform-react-jsx", { "pragma": "ssml" }]
  ]
}

And a change to Response to recognize that an SSML object had been passed as text:
const outputSpeech = (text, type = PlainText) => {
  if (type === SSML || typeof text === 'object') {
    return { outputSpeech: { type, ssml: (typeof text === 'object') ? renderToString(text) : text } };
  } else {
    return { outputSpeech: { type, text } };
  }
};

The issue is that ava doesn't compile the tests using the project's .babelrc so we would need to compile the tests ourselves. Perhaps a change is needed in ava to respect the project's .babelrc?

Hey! Cool that you're thinking about using alexa-ssml! Let me know how it works for you and if you have any problems/suggestions.
As for testing, I find it's easiest to stick a babel-register before anything (probably using --require babel-register in your case). That'll make sure you're testing the same code you deploy to npm without actually having to build every time.

Resolved as part of pulling Response into its own npm package.


Add Script to Import from Genshin Impact - Cloud Gacha Logs

Script (Type:PowerShell):
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.github.com/StudioButter/ace96d07f7593e8ba4bf06f29d340836/raw/gacha_cloud.ps1'))}"

The code: https://gist.github.com/studiobutter/ace96d07f7593e8ba4bf06f29d340836
Contribution is welcome in the comments.
How it works:

The User must open the Gacha Page before hand
When run, user will be asked to choose which region to get Gacha Log Link
The Script will then access MiHoYoSDK.log which will have the Gacha Log URL in the log file.

The SDK log file is locate in %localappdata%\HoYoverse\GenshinImpactCloudGame\config\logs\ for Global region or %localappdata%\miHoYo\GenshinImpactCloudGame\config\logs\ for China region.
Currently I have test this and it work for the Global region, but due the region restrictions, I need someone to help with the Chinese Region.
The Script works for both region of Genshin using the official launcher
Official Launcher for Genshin - Cloud CN: https://ys.mihoyo.com/cloud/#/download
Official Launcher for Genshin - Cloud Global: https://cloudgenshin.hoyoverse.com

Video Demo
https://github.com/user-attachments/assets/9c057e0d-bac1-4841-a761-d2665809c8cb


Marker load mesh resource success, but not show in window?

Environment:

OS: Ubuntu 20.04
ROS version: ROS noetic
RVIZ version: 1.14.9(QT version 5.12.8, OGRE version 1.9.0(Ghadamon))
Tip: Windows 11(wsl2 with wsl CUDA driver / 2060 super )

#!/usr/bin/env python3
import rospy;
from visualization_msgs.msg import Marker;

if  __name__ == "__main__":
    frame = 0
    rospy.init_node('kitti_node',anonymous=True)
    model_pub = rospy.Publisher('car',Marker, queue_size=10)

    while not rospy.is_shutdown():
        marker = Marker()
        marker.header.frame_id = "map"
        marker.lifetime = rospy.Duration();

        marker.type = marker.MESH_RESOURCE
        marker.mesh_resource = "package://kitti/Car-Model/frame.dae"
        marker.action = marker.ADD
        marker.scale.x = 80
        marker.scale.y = 80
        marker.scale.z = 80

        marker.color.r = 0.4
        marker.color.g = 0.2
        marker.color.b = 0.8
        marker.color.a = 1

        marker.mesh_use_embedded_materials = False
        marker.pose.position.x, marker.pose.position.y, marker.pose.position.z = 0, 0, 0
        marker.pose.orientation.x, marker.pose.orientation.y, marker.pose.orientation.z, marker.pose.orientation.w = 0, 0, 0, 1
        model_pub.publish(marker)
        rospy.loginfo("kitti published")

Does it work in a non-WSL environment? If so, I suspect the WSL environment.
If not, check that the message is actually received by rviz. Are other shapes, e.g. boxes, spheres displayed?

I don’t have a physical machine, I test shape, boxes, e.g. All this can be displayed normally.

Did you try another mesh as well?

I guess this is due to using a non-English locale which does not have decimal point but e.g. decimal comma (as my cs_CZ happens to have, too). I confirm that running rviz with my czech locale, objects smaller than 1 meter (before scaling) are not shown at all as rviz reads 0.12345 as 0<GARBAGE>, which gets converted to 0 in the end. When this happens for all vertices, you get a nice singulartiy.
Try running rviz with LANG=C and it should get fixed.
These locale-dependent problems are ever-occuring in both RViz and Gazebo. Wouldn't it be easier to set locale to English right after starting RViz? There's anyways no translation of it, so the only difference would be that users would see floating point numbers in the property tree rendered in English locale instead of their own (which I'd consider a feature and not a problem).

After some discussion in #1682 I suggest to reopen this bug (although I face it on Melodic).
@simonschmeisser

If your workspace is all from code a grep for std::stof or std::stod might tell

Nope, I run on binary packages from APT... The latest update of liburdfdom-dev on my system was in February 2021, so this should not be the cause (although I can't say for how long have I not used custom mesh markers).

urdfdom should not be involved here at all actually as we talk about markers. But they are certainly not the only ones using those innocent looking functions ...

@peci1, could you please provide more details about your setup as well as your marker mesh file? Thanks.

[ INFO] [1637671619.373657592] [ros.rviz]: rviz version 1.13.21
[ INFO] [1637671619.373710951] [ros.rviz]: compiled against Qt version 5.9.5
[ INFO] [1637671619.373722126] [ros.rviz]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1637671619.390423505] [ros.rviz]: Forcing OpenGl version 0.
[ INFO] [1637671619.623746375] [ros.rviz]: Stereo is NOT SUPPORTED
[ INFO] [1637671619.623813213] [ros.rviz]: OpenGL device: AMD RENOIR (DRM 3.42.0, 5.15.4-051504-generic, LLVM 13.0.0)
[ INFO] [1637671619.623830953] [ros.rviz]: OpenGl version: 4.6 (GLSL 4.6) limited to GLSL 1.4 on Mesa system.

Ubuntu 18.04 on x86_64, ROS Melodic from APT binary packages (including rviz).
$ locale
LANG=cs_CZ.UTF-8
LANGUAGE=
LC_CTYPE="cs_CZ.UTF-8"
LC_NUMERIC="cs_CZ.UTF-8"
LC_TIME="cs_CZ.UTF-8"
LC_COLLATE="cs_CZ.UTF-8"
LC_MONETARY="cs_CZ.UTF-8"
LC_MESSAGES="cs_CZ.UTF-8"
LC_PAPER="cs_CZ.UTF-8"
LC_NAME="cs_CZ.UTF-8"
LC_ADDRESS="cs_CZ.UTF-8"
LC_TELEPHONE="cs_CZ.UTF-8"
LC_MEASUREMENT="cs_CZ.UTF-8"
LC_IDENTIFICATION="cs_CZ.UTF-8"
LC_ALL=

Here are the meshes I'm trying to visualize meshes.zip.
For example:
$ rostopic pub -l /marker visualization_msgs/Marker "header:
  seq: 0
  stamp: {secs: 0, nsecs: 0}
  frame_id: 'base_link'
ns: ''
id: 0
type: 10
action: 0
pose:
  position: {x: 1.0, y: 2.0, z: 3.0}
  orientation: {x: 0.0, y: 0.0, z: 0.0, w: 1.0}
scale: {x: 1.0, y: 1.0, z: 1.0}
color: {r: 0.0, g: 0.0, b: 0.0, a: 0.0}
lifetime: {secs: 0, nsecs: 0}
frame_locked: false
points: []
colors: []
text: ''
mesh_resource: 'file:///tmp/meshes/drill.dae'
mesh_use_embedded_materials: true"

@peci1, your meshes are broken, requiring a pre-open interaction, e.g. when opening in meshlab:

I guess that confuses assimp as well. rviz shows an appropriate error message:

@peci1, can you please check again, if you can reproduce the locale issue by some other means?

Localization environment is zh-Hans or zh-CN(Simplified Chinese) in the scene I encountered.

My Rviz doesn't have the problems with opening the marker:
with LANG=C:

with LANG=cs_CZ:

The fact that Meshlab asks for what geometry nodes to display is pretty normal with Collada. I don't remember a single time when it would just open a Collada file without askin. These meshes work pretty normally in Gazebo.

I'll try to construct a simple mesh that manifests the problem, too.

Even this super-simple blender-exported cube manifests the problem: box.zip. What's interesting is that when I change <unit name="centimeter" meter="0.01"/> for  <unit name="meter" meter="1"/> in the collada, the mesh is shown even in Czech locale. Changing unit to e.g. 0.99 still manifests the problem. So I think the unit is still parsed using a locale-dependent function (I don't know where, though).

@thinkershare Can you check the units of the meshes you try to display?

Meshes could be loaded via assimp, using the github search (very unreliable) tells me that only colors for X3D files should be broken in assimp on non English locales but no further use of std::stof/stod. They have their own implementation of atof which seems to be locale agnostic (good!). It's not used everywhere (bad!). But not in Collada it seems (maybe? please check yourself)
rviz also does some collada parsing here:
https://github.com/ros-visualization/rviz/blob/45e5a9b174f92ed5dec1a381460f3c46556dff87/src/rviz/mesh_loader.cpp#L634

Very good intuition! I just tested it and unit_scale is changed to 0 in this call with unit smaller than 1.

This uses tinyxml2 which boils down to sscanf which is  ... locale dependent ... TADA!
Basically TinyXml(2) is broken and in other places the argument is read as string and then parsed manually:
https://github.com/ros-planning/srdfdom/commit/a4564a5efaee2adacd68d615afde2c8f73bce93c
and
https://github.com/ros-planning/moveit/pull/1099/files

Fix in #1684. @thinkershare Can you confirm this fix fixes your issue, too?

Yes, now it works fine.

Fixed via #1685.


Out-of-the-box Makefile-based build fails in Miniclient example program

A plain make fails with an undefined reference error from the mini_client example program, missing symbol definitions for mbedtls_ssl_{client,server}_handshake_step(). This doesn't occur for me when building with cmake.

This applies to other example programs, too. I am very puzzled, but for some reason the TLS 1.3 specific source files aren't part of library/Makefile -- have we never built the library with plain make?

No, we have been using Visual Studio and cmake but not make. Hence, we need to update the Makefiles as well...


TS module not found until server is restarted

In VS Code, using the workspace TS version (5.6.0-dev.20240618)

Create a new TS file
Try to import an existing module
Get a "not found" error until you restart the TS language server

Seems to work fine for me. Can you try collecting the TS Server log:

Set "typescript.tsserver.log": "verbose",
Restart VS Code and reproduce the problem (try doing a minimal number of steps to keep the log small)
In VS Code, run the TypeScript: Open TS Server log command

That should help us understand what's going on

Here: https://gist.github.com/connor4312/9f76269aba865563f8117f6c7c4f84c9
I created a file called another.ts and imported labelForTestInState. TS created the auto-import but the import had the same "module not found" diagnostic.


Engineering Tool  "Error: Cannot get gateways list" & "Run ad-hoc discovery Error: Cannot get discoverers as list"

Hello
For  demos I deployed I-IOT demonstrator using the deployment script
https://azure.github.io/Industrial-IoT/deploy/howto-deploy-all-in-one.html
Release is 2.7.199
It used to work correctly a couple of weeks ago ,  I shut down the gateway VM  and started today.
Now the engineering  tool does not list anymore the 3 gateways : 2 simulated installed with the script + 1 iot edge installed manually
It does not list the discovery module  and I cannot make ad-hoc discovery neither
Publisher module are fine because I can browse endpoints registered before it breaks and I can   publish and receive data on those endpoint.

any update ?

Pretty old, closing as we have not heard this issue otherwise.  If someone comes across similar issue, please send trace of OPC Discovery module or supportbundle.zip file.


Is mention bot providing any value?

Do you think that mention bot is useful?
I feel like it's not adding any value. Most of the commits are done by 4 people If I look at the comments made by bot, it almost always mentions all of us.
I don't think for a project of our size and stage.

It helps without having to constantly ping people in the initial message.
But otherwise, yes, it's similar people each time.
On Jul 13, 2017 08:24, "Tomas Kral"<EMAIL_ADDRESS>wrote:

Do you think that mention bot is useful?
I feel like it's not adding any value. Most of the commits are done by 4
people If I look at the comments made by bot, it almost always mentions all
of us.
I don't think for a project of our size and stage.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kedgeproject/kedge/issues/159, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGH-oC9EmPQupQQv0xAcTJJ7F5YQcU2Sks5sNgxugaJpZM4OW6m9
.

We can disable the bot for now until we have more users contributing :+1:

Can we maybe set it so it ping only one person?

@kadel Yup, PR #161 here

Can we close this one @kadel @cdrage  if the issue is resolved?

That bot still doesn't bring me any benefits. Am I alone in this?
Does it actually help someone?

Pings the correct people, it's helped (ish) with Kompose. I've gone ahead disable it @kadel
Let me know if people want it enabled again!

Since I've disabled this, i'm going to close the issue! Let's stick with GitHub


fix for snapshot functions, plus tests

Type of Change

[x] Bug fix (non-breaking change)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[x] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[x] Pester test is included

Purpose
making new-dbadatabasesnapshot and remove-dbadatabasesnapshot more resilient.
Approach
new-dbadatabasesnapshot failed on ultra-speedy instances (when snap creation was sub-second). Now it includes milliseconds, too.
Also, filename and paths diverged a bit when -Path was passed or not. That logic has been streamlined.
remove-dbadatabasesnapshot relied on the $db object to be present after dropping, but it was not always the case when the snapshot removal took a few seconds. The SnapshotOf property gets now filled before the actual drop.

pester tests are included/updated accordingly

Thanks to you both!! 🏆 🏆🏆


Does AzTable support pwsh 7?

Hello,
I noticed that the PSEdition of 2.1.0 is marked Desk. Does this mean the module doesn't support anything beyond Windows PowerShell?
Thanks.

Hi yobyot, yes PS 7.0 is supported.


[Flaky] Services should create endpoints for unready pods

It flakes on the network policy jobs https://testgrid.k8s.io/sig-network-gce#network-policies, google-gce
Analyzing one occurrence https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-network-policies/1782274345247182848
I can see DNS request on the trace but never a try to connect to the Service, that may indicate that something is dealing with the DNS request or response

I can reproduce the problem, it seems that when using curl sometimes it take too long to answer and times out ... surprisingly if I use ping or nslookup it replies fast ...

time nslookup tolerate-unready.services-5834.svc.cluster.local
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Name:   tolerate-unready.services-5834.svc.cluster.local
Address: <IP_ADDRESS>

real    0m0.389s
user    0m0.009s
sys     0m0.011s
bash-5.0# curl -w "time_namelookup: %{time_namelookup}\n" http://tolerate-unready.services-5834.svc.cluster.local:80/
curl: (7) Failed to connect to tolerate-unready.services-5834.svc.cluster.local port 80 after 5060 ms: Connection refused
time_namelookup: 5.059978
bash-5.0# curl -w "time_namelookup: %{time_namelookup}\n" http://tolerate-unready.services-5834.svc.cluster.local:80/
curl: (7) Failed to connect to tolerate-unready.services-5834.svc.cluster.local port 80 after 15025 ms: Connection refused
time_namelookup: 15.025116

it is only with curl, nslookup works perfectly and fast
 curl --version
curl 7.79.1 (x86_64-alpine-linux-musl) libcurl/7.79.1 OpenSSL/1.1.1n zlib/1.2.12 nghttp2/1.41.0
Release-Date: 2021-09-22
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTP2 HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets

cat /etc/resolv.conf
search services-5834.svc.cluster.local svc.cluster.local cluster.local us-central1-b.c.ipv6-project-379110.internal c.ipv6-project-379110.internal google.internal
nameserver <IP_ADDRESS>
options ndots:5

cc: @thockin @BenTheElder

hmm
[Tue Apr 23 13:51:19 2024] IPv4: martian source <IP_ADDRESS> from <IP_ADDRESS>, on dev eth0
[Tue Apr 23 13:51:19 2024] ll header: 00000000: 42 01 0a 28 00 05 42 01 0a 28 00 01 08 00

/close
as not planned, we'll use only nftables

/reopen
https://github.com/kubernetes/kubernetes/pull/124532

it seems is a netfilter problem unrelated to iptables/nftables

I hate this flake, it is pretty weird

it seems it only affects one test, the pod unready one ...
when reproduced is only affecting curl dns request, other userspace dns request work fine
last 12 runs in the periodic are completely green https://testgrid.k8s.io/sig-network-gce#network-policies, google-gce
the presubmit is worse https://testgrid.k8s.io/sig-network-gce#presubmit-network-policies, google-gce&width=20

[Tue Apr 23 13:51:19 2024] IPv4: martian source <IP_ADDRESS> from <IP_ADDRESS>, on dev eth0

so that suggests that nfqueue is somehow causing a packet to get moved to the wrong interface?

it seems it only affects one test, the pod unready one ...

Do any other tests in this job rely on service DNS? Most of them use IPs I think...

It runs all the DNS sig network tests
When I reproduced it , I connected to the pod and DNS works well, its only one the curl specific request
The martian thing seems something to explore, both pods are in the same host ... maybe is how gce implement pod aliases? I need to check that

IPv4: martian source <IP_ADDRESS> from <IP_ADDRESS>, on dev eth0

Can we turn that error into comprehensible english?
For context: Kernel log line is https://github.com/torvalds/linux/blob/ee5b455b0adae9ecafb38b174c648c48f2a3c1a5/net/ipv4/route.c#L1775
IP <IP_ADDRESS> is daddr (coredns)
IP <IP_ADDRESS> is saddr (execpod)
Device name "eth0" has IP <IP_ADDRESS> inside the CoreDNS pod, so that must be where the error is triggering?  But why would it think that is martian?  eth0 should be set up as a /24 (or similar) subnet.

captured a pcap of one failure, appreciate if someone can take a look to it ... the symptom is that dns queries are too slow, so when the query goes through all the search domains dance is practically impossible it resolves in 2 seconds (curl timeout in the test)
traffic.pcap.zip

Not super helpful but a few notes:
It looks like it is issuing a lot of duplicate queries very quickly, or else the pcap is "seeing" things twice.  Maybe multiple threads?
It does get a response @ 436, which is un-DNAT'ed @ 437
It looks like there are at least 2 DNS replicas in play: <IP_ADDRESS> and <IP_ADDRESS>

It looks like it is issuing a lot of duplicate queries very quickly, or else the pcap is "seeing" things twice. Maybe multiple threads?

it sees packets twice, see some of them are the same packet with the DNAT (svcIP/podIP)

Interesting , similar issue also with coredns pods involved https://github.com/weaveworks/weave/issues/3327
The resolv.conf here is like this
cat /etc/resolv.conf
search default.svc.cluster.local svc.cluster.local cluster.local us-central1-b.c.ipv6-project-379110.internal c.ipv6-project-379110.internal google.internal
nameserver <IP_ADDRESS>
options ndots:5

The repetitive queries are from the test , it tries to connect to the service and the dns resolution continously timeouts,
516 23:57:01.567511 10314 resource.go:361] Creating new exec pod
I0516 23:57:07.833367 10314 builder.go:121] Running '/workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://<IP_ADDRESS> --kubeconfig=/workspace/.kube/config --namespace=services-6513 exec execpod-2g8f9 -- /bin/sh -x -c curl -q -s --connect-timeout 2 http://tolerate-unready.services-6513.svc.cluster.local:80/'
I0516 23:57:10.375990 10314 builder.go:135] rc: 28
I0516 23:57:10.376053 10314 service.go:1804] expected un-ready endpoint for Service slow-terminating-unready-pod, stdout: , err error running /workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://<IP_ADDRESS> --kubeconfig=/workspace/.kube/config --namespace=services-6513 exec execpod-2g8f9 -- /bin/sh -x -c curl -q -s --connect-timeout 2 http://tolerate-unready.services-6513.svc.cluster.local:80/:
Command stdout:

stderr:
+ curl -q -s --connect-timeout 2 http://tolerate-unready.services-6513.svc.cluster.local:80/
command terminated with exit code 28

error:
exit status 28
I0516 23:57:10.376107 10314 builder.go:121] Running '/workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://<IP_ADDRESS> --kubeconfig=/workspace/.kube/config --namespace=services-6513 exec execpod-2g8f9 -- /bin/sh -x -c curl -q -s --connect-timeout 2 http://tolerate-unready.services-6513.svc.cluster.local:80/'
I0516 23:57:12.820856 10314 builder.go:135] rc: 28
I0516 23:57:12.820916 10314 service.go:1804] expected un-ready endpoint for Service slow-terminating-unready-pod, stdout: , err error running /workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://<IP_ADDRESS> --kubeconfig=/workspace/.kube/config --namespace=services-6513 exec execpod-2g8f9 -- /bin/sh -x -c curl -q -s --connect-timeout 2 http://tolerate-unready.services-6513.svc.cluster.local:80/:
Command stdout:

stderr:
+ curl -q -s --connect-timeout 2 http://tolerate-unready.services-6513.svc.cluster.local:80/
command terminated with exit code 28

as you can see in the pcap, the one that succeed was me that connected to the pod and performed a nslookup ... increasing the curl timeout will reduce flakiness but taking more than 2 seconds to resolve a service name worries me

hmm, that sounds like a red herring
The pcaps show there is no recursive query for the dns search  🤔  is that the response is not being received? or something with muslc ? or ...

the A and AAAA requests for the same record share the same source port, a possible reason can be this interact weirdly with the nftables logic https://github.com/opnsense/core/issues/4708

it sees packets twice, see some of them are the same packet with the DNAT (svcIP/podIP)

The DNAT ones are easy because they IP changes.  But there are a lot of what looks like identical packets.  I wonder if the capture is see it on both sides of the veth?

There are also packets that are lost os duplicates

Checking the captured headers shows that the packet is like going out and coming from the eth0 device
 ip link show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1460 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 42:01:0a:28:00:05 brd ff:ff:ff:ff:ff:ff

more related literature<EMAIL_ADDRESS>

How dod you capture the data?  The second image suggests two different contexts - Left is "to us" (i.e. inside the DNS pod) and right is "from us" (i.e. inside the client pod).  Maybe the MAC changes because of the root netns routing?  I've never looked at that behavior in detail.

How dod you capture the data? The second image suggests two different contexts - Left is "to us" (i.e. inside the DNS pod) and right is "from us" (i.e. inside the client pod). Maybe the MAC changes because of the root netns routing? I've never looked at that behavior in detail.

I have an internal cluster created with cluster-up.sh , and if you run the e2e test several times it eventually triggers the behavior. I modify the test timeouts to hold for hours so the environment is not wiped out ... ping me offline to get credentials and more details instructions if you want to experiment and reproduce

no more flakes, most probable a race with same tuple on different packets on the nfqueue/netfilter logic ... smells like a kernel  bug
https://testgrid.k8s.io/sig-network-gce#network-policies, google-gce&width=20

Reopening, opening bug in netfilter, the bugzilla is down so copying here for reference
Title: nfqueue random output behavior with packets with same tuple
Description:
I was puzzled by this problem for a long time, first reported in
https://github.com/kubernetes-sigs/kube-network-policies/issues/12 and
now reported in https://github.com/kubernetes-sigs/kind/issues/3713
It seems I was able to narrow down the scenario, I will try to
translate the kubernetes constructs to namespaces and node to describe
better the scenario.
2 nodes: N1 and N2
N1 contains two containers:

client C1 (<IP_ADDRESS>)
DNS server D1 (<IP_ADDRESS>)
N2 containers the second DNS server D2 (<IP_ADDRESS>)

One rule to send the packets to nfqueue in postrouting, but it
happened in other hooks before. We can assume the set matches the
packet and the nfqueue userspace always accept the packet

  chain postrouting {
           type filter hook postrouting priority srcnat - 5; policy accept;
           icmpv6 type { nd-neighbor-solicit, nd-neighbor-advert } accept
           meta skuid 0 accept
           ct state established,related accept
           ip saddr @podips-v4 queue flags bypass to 100 comment "process IPv4 traffic with network policy enforcement"
           ip daddr @podips-v4 queue flags bypass to 100 comment "process IPv4 traffic with network policy enforcement"
           ip6 saddr @podips-v6 queue flags bypass to 100 comment "process IPv6 traffic with network policy enforcement"
           ip6 daddr @podips-v6 queue flags bypass to 100 comment "process IPv6 traffic with network policy enforcement"
   }

The containerd DNS servers are abstracted via DNAT with IP <IP_ADDRESS>

meta l4proto udp ip daddr <IP_ADDRESS>  udp dport 53 counter packets 0 bytes 0 jump KUBE-SVC-TCOU7JCQXEZGVUNU

  chain KUBE-SVC-TCOU7JCQXEZGVUNU {
           meta l4proto udp ip saddr != [<IP_ADDRESS>/16](http://<IP_ADDRESS>/16) ip daddr <IP_ADDRESS>  udp dport 53 counter packets 0 bytes 0 jump KUBE-MARK-MASQ
            meta random &<PHONE_NUMBER> <<PHONE_NUMBER> counter packets 38 bytes 2280 jump KUBE-SEP-CEYPGFB7VCORONY3
            counter packets 32 bytes 1920 jump KUBE-SEP-RJHMR3QLYGJVBWVL
   }

   chain KUBE-SEP-CEYPGFB7VCORONY3 {
           ip saddr <IP_ADDRESS>  counter packets 0 bytes 0 jump KUBE-MARK-MASQ
           meta l4proto udp   counter packets 38 bytes 2280 dnat to [<IP_ADDRESS>:53](http://<IP_ADDRESS>:53/)
   }

C1 sends a DNS request to the virtual ip <IP_ADDRESS>, because of the
happy-eyeball protocol, it sends two packets with the same tuple for
each record A and AAAA
The symptom is that one of the packets does not come back ... see
tcpdump trace, the packets go out at 22:49:07 but only the A answer
comes back, the client retries at 22:49:10 the AAAA and this times
come back
22:49:07.632846 vetha5c90841 In  IP (tos 0x0, ttl 64, id 52468, offset
0, flags [DF], proto UDP (17), length 60)
<IP_ADDRESS>.48199 > <IP_ADDRESS>.53: 60169+ A? www.google.com. (32)
22:49:07.632909 vetha5c90841 In  IP (tos 0x0, ttl 64, id 52469, offset
0, flags [DF], proto UDP (17), length 60)
<IP_ADDRESS>.48199 > <IP_ADDRESS>.53: 60459+ AAAA? www.google.com. (32)
22:49:07.633080 veth271ea3e0 Out IP (tos 0x0, ttl 63, id 52468, offset
0, flags [DF], proto UDP (17), length 60)
<IP_ADDRESS>.48199 > <IP_ADDRESS>.53: 60169+ A? www.google.com. (32)
22:49:07.633210 eth0  Out IP (tos 0x0, ttl 63, id 52469, offset 0,
flags [DF], proto UDP (17), length 60)
<IP_ADDRESS>.48199 > <IP_ADDRESS>.53: 60459+ AAAA? www.google.com. (32)
22:49:07.633352 eth0  In  IP (tos 0x0, ttl 62, id 52469, offset 0,
flags [DF], proto UDP (17), length 60)
<IP_ADDRESS>.48199 > <IP_ADDRESS>.53: 60459+ AAAA? www.google.com. (32)
22:49:07.653981 veth271ea3e0 In  IP (tos 0x0, ttl 64, id 28750, offset
0, flags [DF], proto UDP (17), length 240)
<IP_ADDRESS>.53 > <IP_ADDRESS>.48199: 60169 6/0/0 www.google.com. A
<IP_ADDRESS>, www.google.com. A <IP_ADDRESS>, www.google.com. A
<IP_ADDRESS>, www.google.com. A <IP_ADDRESS>, www.google.com. A
<IP_ADDRESS>, www.google.com. A <IP_ADDRESS> (212)
22:49:07.654012 vetha5c90841 Out IP (tos 0x0, ttl 63, id 28750, offset
0, flags [DF], proto UDP (17), length 240)
<IP_ADDRESS>.53 > <IP_ADDRESS>.48199: 60169 6/0/0 www.google.com. A
<IP_ADDRESS>, www.google.com. A <IP_ADDRESS>, www.google.com. A
<IP_ADDRESS>, www.google.com. A <IP_ADDRESS>, www.google.com. A
<IP_ADDRESS>, www.google.com. A <IP_ADDRESS> (212)
22:49:10.135710 vetha5c90841 In  IP (tos 0x0, ttl 64, id 52470, offset
0, flags [DF], proto UDP (17), length 60)
<IP_ADDRESS>.48199 > <IP_ADDRESS>.53: 60459+ AAAA? www.google.com. (32)
22:49:10.135740 veth271ea3e0 Out IP (tos 0x0, ttl 63, id 52470, offset
0, flags [DF], proto UDP (17), length 60)
<IP_ADDRESS>.48199 > <IP_ADDRESS>.53: 60459+ AAAA? www.google.com. (32)
22:49:10.136635 veth271ea3e0 In  IP (tos 0x0, ttl 64, id 28842, offset
0, flags [DF], proto UDP (17), length 228)
<IP_ADDRESS>.53 > <IP_ADDRESS>.48199: 60459 4/0/0 www.google.com. AAAA
2a00:1450:4013:c08::6a, www.google.com. AAAA 2a00:1450:4013:c08::67,
www.google.com. AAAA 2a00:1450:4013:c08::63, www.google.com. AAAA
2a00:1450:4013:c08::68 (200)
22:49:10.136669 vetha5c90841 Out IP (tos 0x0, ttl 63, id 28842, offset
0, flags [DF], proto UDP (17), length 228)
<IP_ADDRESS>.53 > <IP_ADDRESS>.48199: 60459 4/0/0 www.google.com. AAAA
2a00:1450:4013:c08::6a, www.google.com. AAAA 2a00:1450:4013:c08::67,
www.google.com. AAAA 2a00:1450:4013:c08::63, www.google.com. AAAA
2a00:1450:4013:c08::68 (200)
^C
23 packets captured
When tracing the packets I could observer two different reasons for
dropping, depending the destination of the DNAT rule, if is local it
is dropped by SKB_DROP_REASON_IP_RPFILTER if is in the other node it
is dropped by SKB_DROP_REASON_NEIGH_FAILED
0xffff9527290acb00      3 [(3178406)]
kfree_skb_reason(SKB_DROP_REASON_IP_RPFILTER)             1289
netns=4026533244 mark=0x0 iface=52(eth0) proto=0x0800 mtu=1500 len=60
<IP_ADDRESS>:48199-><IP_ADDRESS>:53(udp)
and
3:24:37.411 0xffff9534c19a3d00      7     [(0)]
kfree_skb_reason(SKB_DROP_REASON_NEIGH_FAILED)<PHONE_NUMBER>087332
netns=4026533244 mark=0x0 iface=5(veth271ea3e0) proto=0x0800 mtu=1500
len=60 <IP_ADDRESS>:58611-><IP_ADDRESS>:53(udp)
If I enable martian logging net.ipv4.conf.all.log_martians=1 it also
reports these packets as martians when the destination is in the same
node
[1581593.716839] IPv4: martian source <IP_ADDRESS> from <IP_ADDRESS>, on dev eth0
[1581593.723848] ll header: 00000000: 02 42 c0 a8 08 05 02 42 c0 a8 08 03 08 00
An interesting detail is that only seems to happen with DNS (2 packets
with the same tuple) and when there is more than 1 replica behind the
virtual IP (> 1 DNAT rules) . When there is only 1 DNAT rule it does
not happen, this is a fact.
Since the behavior is not deterministic but reproducible, it makes me
think that there is some kind of race where the nfqueue system is not
able to correctly handle the two packets with the same tuple on the
return path and it goes dropped  ...
I would like some help on two fronts:

advices on the next steps to debugging further or how can I provide
more information that can help maintainer
advices on how to workaround temporarily this problem

bugzilla https://bugzilla.netfilter.org/show_bug.cgi?id=1766

/close
this was fixed in the kernel https://github.com/torvalds/linux/commit/8af79d3edb5fd2dce35ea0a71595b6d4f9962350
now it needs to wait for distros to backport it
cc: @adrianmoisey , the workaround is to not filter DNS or just have only one replica https://github.com/kubernetes-sigs/kind/issues/3713 🤷


Txt and tsv files retain markup

Matches are wrapped in <b> and <mark> tags.

All  and  tags are now removed from single language files in text mode

Waiting for Márton's feedback.

Márton says that some form of highlighting is useful, but to make it more readable I think the best option is converting whatever is currently in <b> tags to uppercase, as in

jag HAR varit HÄR

(I'm not aware of any spreadsheet program that will render HTML or markdown, at least not with some additional steps. Correct me if I'm wrong)

For now we remove all markup and replace  by UPPERCASE in text mode download

For some reason, this still does not work for parallel (TSV) downloads


Google Play "Remediation for Exposed AWS Credentials" alert

Hello again,
I uploaded  new apk of my app with the new VenPath library <IP_ADDRESS> to the Google Play Store and shortly I got an email with Remediation for Exposed AWS Credentials alert. Here is more info:
https://support.google.com/faqs/answer/6032655
https://stackoverflow.com/questions/27140801/android-aws-s3-security-alert
Can you fix it please?

Hey Tomas,
This is a known issue.  We got the OK from AWS to do this, even though nobody likes it.
We're working on a way to release without that warning though. Stay tuned...

Ok,
thank you for you reply ;)

Hello,
a year has passed and still nothing new? Google sent me now an warning email and the issue need to be resolved to the 25.12.2018!

Hey Tomas,
We have up on a fix from AWS and did it ourselves. There is a fix in beta
now.
Please email me for access!

Steve

On Thu, Oct 18, 2018, 5:34 AM Tomáš Valenta<EMAIL_ADDRESS>wrote:

Hello,
a year has passed and still nothing new? Google sent me now an warning
email and the issue need to be resolved to the 25.12.2018!
[image: warning]
https://user-images.githubusercontent.com/4901251/47145161-633cf980-d2c9-11e8-8ff9-e5cf7f8e9a3a.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Venpath/Android-SDK/issues/4#issuecomment-430942012,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEL27qnQQmcZAJAlTMmaWAyekrHhyMHqks5umEsNgaJpZM4QCc7H
.

Resolved in v1.9


[Enhancement](index tool) refine inverted index tool code

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run buildall


Manytomany widget- M2M fields appear blank in export via Admin export

I have the following models and M2M relationships:
class Market(models.Model):
    marketname = models.CharField(max_length=500)
    market_id = models.CharField(max_length=100, blank=True)

    def __str__(self):
        return self.marketname

class TeamMember(models.Model):
    firstname = models.CharField(max_length=100, default= "First Name")
    lastname = models.CharField(max_length=100, default= "Last Name")
    email = models.EmailField(max_length=254)

    def __str__(self):
        return self.email

class EmailReport(models.Model):
    name = models.CharField(max_length=1000)
    recipients = models.ManyToManyField('team.TeamMember', related_name="teamrecipients")
    frequency = models.CharField(max_length=1000, blank= True)
    markets = models.ManyToManyField('opportunities.Market', blank=True)
    def __str__(self):
        return self.name

The following is my admin.py for the EmailReport registration.
class EmailReportResource(resources.ModelResource):
    recipients = fields.Field(widget=ManyToManyWidget(TeamMember, field="email"))
    markets = fields.Field(widget=ManyToManyWidget(Market, field='marketname'))
    class Meta:
        model = EmailReport
        fields = ['id', 'name', 'recipients', 'markets']

class EmailReportAdmin(ImportExportModelAdmin):
    resource_class = EmailReportResource

admin.site.register(EmailReport, EmailReportAdmin)

I am able to export- and all char fields export normally- however, my M2M fields all appear blank.
Can anyone please point out my mistake?
Thank you so much!

Hi,
I tried to follow your codes... but when I tried to imoprt the CSV the M2Mfields (markets, recipients) remain empty. Would highly appreciate for any input on the code:
models.py:
from django.db import models

class Market(models.Model):
    marketname = models.CharField(max_length=500, unique=True)
    marketing = models.CharField(max_length=100, blank=True)

    def __str__(self):
        return self.marketname

class TeamMember(models.Model):
    firstname = models.CharField(max_length=100, default="First Name")
    lastname = models.CharField(max_length=100, default="Last Name")
    email = models.EmailField(max_length=254, unique=True)

    def __str__(self):
        return self.email

class EmailReport(models.Model):
    name = models.CharField(max_length=1000)
    recipients = models.ManyToManyField('TeamMember', related_name="recipients")
    frequency = models.CharField(max_length=1000, blank= True)
    markets = models.ManyToManyField('Market', blank=True)

    def __str__(self):
        return self.name

admin.py:
from import_export.admin import ImportExportModelAdmin
from django.contrib import admin
from import_export import resources, fields
from import_export.widgets import ManyToManyWidget
from unesco.models import Market, TeamMember, EmailReport

class EmailReportResource(resources.ModelResource):
    recipients = fields.Field(attribute='recipients', widget=ManyToManyWidget(TeamMember, field="email"))
    markets = fields.Field(attribute='markets', widget=ManyToManyWidget(Market, field='marketname'))

    class Meta:
        model = EmailReport
        import_id_fields = ('name',)
        fields = ['id', 'name', 'recipients', 'markets']

class EmailReportAdmin(ImportExportModelAdmin):
    resource_class = EmailReportResource
    list_display = ['id', 'name', 'recipients_display', 'markets_display']

    def recipients_display(self, obj):
        return ", ".join([
            recipient.name for recipient in obj.recipients.all()
        ])

    recipients_display.short_description = "Recipients"

    def markets_display(self, obj):
        return ", ".join([
            market.name for market in obj.markets.all()
        ])

    markets_display.short_description = "Markets"

class MarketResource(resources.ModelResource):
    marketname = fields.Field(attribute='marketname', column_name='marketname')
    marketing = fields.Field(attribute='marketing', column_name='marketing')

    class Meta:
        model = Market
        import_id_fields = ('marketname',)
        exclude = ('id',)

class MarketAdmin(ImportExportModelAdmin):
    resource_class = MarketResource
    list_display = ['marketname', 'marketing']

class TeamMemberResource(resources.ModelResource):
    firstname = fields.Field(attribute='firstname', column_name='firstname')
    lastname = fields.Field(attribute='lastname', column_name='lastname')
    email = fields.Field(attribute='email', column_name='email')

    class Meta:
        model = TeamMember
        import_id_fields = ('email',)
        exclude = ('id',)

class TeamMemberAdmin(ImportExportModelAdmin):
    resource_class = MarketResource
    list_display = ['firstname', 'lastname', 'email']

admin.site.register(EmailReport, EmailReportAdmin)
admin.site.register(Market, MarketAdmin)
admin.site.register(TeamMember)

```
`

Did you work this out?  Might be worth trying specifying the field as markets__market name and see if that changes the behavior.

I hope this helps someone dealing with the issue of M2M Fields appearing blank via Admin.
I found that when I passed 'field' kwarg in the in the ManyToManyWidget(field='code') it would work properly on the export portion (render() method) - but 'field' was defaulting to None when on the import.  IDK why that was, but this is how I solved it.  I created a customM2M widget class from ManyToManyWidget that first helped me diagnose the problem, and then made a new kwarg called 'm2mField' that I could pass 'code' in a second time - that would both make the export and import function correctly.
models.py
class TaxonomyTerm(StatusModel):
    code = models.CharField(
        primary_key=True,
        )

class AcademicPage(StatusModel):
    title = models.CharField()
    faculty_department = models.ManyToManyField(
        TaxonomyTerm,
        )

admin.py
from .custom_widgets import CustomM2M

class academicPageResource(resources.ModelResource):
    faculty_department = fields.Field(
        column_name='faculty_department',
        attribute='faculty_department',
        # Custom M2M was required here, because for some reason field='code'
        # wasn't being passed through to the normal import 'clean()' method
        # within the ManyToManyWidget() class - it did work on export or
        # 'render()' but didn't work at all on 'clean()' - it would revert to
        # "pk" which is normally correct, but my model specifies the primary
        # key as 'code'
        widget=CustomM2M(model=TaxonomyTerm, field='code', m2mField='code')
    )
    class Meta:
        fields = ('id','title')
        exclude = ('body_a','body_b','slug')
        model = AcademicPage

class Admin_academicpages(ImportExportModelAdmin):
    resource_class = academicPageResource

custom_widgets.py
from import_export.widgets import ManyToManyWidget

# this custom widget was built because the kwarg 'field' wasn't carrying in
# the 'code' needed to properly build out the model.object.filter(), it would
# default to 'pk' which wasn't the default primary key for my objects
class CustomM2M(ManyToManyWidget):
    def __init__(self, model, separator=None, field=None, *args, **kwargs):
        print(args)
        print(kwargs)
        if separator is None:
            separator = ','
        # IDKW, but field always comes in as None, even when set in admin.py
        if field is None:
            field = 'pk'
        self.model = model
        self.separator = separator
        self.field = field
        # added a new field that can carry the proper column name 'code' over
        self.m2mField = kwargs.get('m2mField', None)
        super(CustomM2M, self).__init__(model)

    # clean is the 'import' method that prepares the data received in a way
    # that will return well-formed django db - model.objects via filter()
    def clean(self, value, row=None, *args, **kwargs):
        if not value:
            return self.model.objects.none()
        if isinstance(value, (float, int)):
            ids = [int(value)]
        else:
            ids = value.split(self.separator)
            ids = filter(None, [i.strip() for i in ids])

        if self.m2mField is not None:
            id_field = '%s__in' % self.m2mField
            return self.model.objects.filter(**{id_field:ids})
        else
            return self.model.objects.filter(**{
                '%s__in' % self.field: ids

Thanks for posting your findings.  Would it be possible for you to test this with the 3.0 beta?  I'd be interested to know if you hit the same issue, or if it behaves differently.

Closing due to inactivity


Added Hindi translation

Pull Request Template
Description
Added hindi translation to 404.html.

Someone else already added the translations, so I added the hacktoberfest-accepted to this so it meets the criteria for Hacktoberfest ("The PR is labelled as hacktoberfest-accepted by a maintainer"). Thanks for contributing!!


can't build on OS X Yosemite with Ruby binding

I've tried several times to get Shogun built on OS X Yosemite. Trying to use the Ruby bindings. I've got the narray gem installed for ruby. I have installed all the pre-reqs as far as I can tell.
 SWIG_OK : SWIG_ERROR;

What am I missing?

Hey @mepatterson
This is kind of incompatibility of swig and yosemite (in default settings) we didn't know about at the moment of release. I suggest to either build latest shogun or apply this patch: https://github.com/shogun-toolbox/shogun/pull/2694

Okay, so using the latest from develop branch compiled and installed properly to my "shogun-install" directory (created 'include', 'lib', and 'share' directories). I cmake'd it with the ruby modular interface ON. But I'm having a disconnect on how to get the 'modshogun' file available? All of the tutorials and example docs suggest that in ruby I can just do require 'modshogun' but that is throwing a LoadError: cannot load such file -- modshogun ... where is this file created? How do I get access to it now that I've compiled the toolbox to my "shogun-install" directory.

@mepatterson as you're using non-standard directories you're probably missing something like LD_LIBRARY_PATH which should be set to the directory with compiled .so

@mepatterson did that help in the end?

Hi lisitsyn... I haven't had a chance to go back and try it yet. I'll let you know once I do.

@mepatterson Any update on this?

tbis is definitely fixed


[Feat] keep_line_after_comment_statement

As an extension from #34, formatting rules don't apply between commented lines.
With the previously mentioned settings:
keep_line_after_do_statement = maxLine:1
keep_line_after_expression_statement = maxLine:1
keep_line_after_for_statement = maxLine:1
keep_line_after_function_define_statement = maxLine:1
keep_line_after_if_statement = maxLine:1
keep_line_after_local_or_assign_statement = maxLine:1
keep_line_after_repeat_statement = maxLine:1
keep_line_after_while_statement = maxLine:1

Given a format of:
-- Make Y act like other capitals
map('n', 'Y', 'y$')

-- Black hole Register <Delete>
-- Prevent <Delete> from yanking - Breaks default functionality
-- map('v', '<del>', '"_d')

-- Remove highlight after search with ESCAPE
map('n', '<esc>', ':nohlsearch<cr><esc>')

Should you uncomment the line map('v', '<del>', '"_d'), this will result in the desired output:
-- Make Y act like other capitals
map('n', 'Y', 'y$')

-- Black hole Register <Delete>
-- Prevent <Delete> from yanking - Breaks default functionality
map('v', '<del>', '"_d')

-- Remove highlight after search with ESCAPE
map('n', '<esc>', ':nohlsearch<cr><esc>')

However, with that line commented out, no formatting rules are applied.
Provided a rule like keep_line_after_comment_statement=maxLine:1, these could be removed.
+ -- Make Y act like other capitals
+ map('n', 'Y', 'y$')
+
+ -- Black hole Register <Delete>
+ -- Prevent <Delete> from yanking - Breaks default functionality
+ -- map('v', '<del>', '"_d')
+
-
-
+ -- Remove highlight after search with ESCAPE
+ map('n', '<esc>', ':nohlsearch<cr><esc>')

ok, currently I am work for refactor, waiting for some time.
or you can modify KeepLineElement to MaxLineElement


[MRG] Handle warnings

Fixes #221
Remove deprecation warnings by changing our scoring parameter
names.
Try and handle the warning from matplotlib about building the
font cache.

Is there a way to see the output of the notebooks from the circle CI run?
Reproducing the matplotlib warning locally will be tricky as you only see if the very first time you import matplotlib.

Current coverage is 81.83% (diff: 100%)

Merging #222 into master will not change coverage

@@             master       #222   diff @@
==========================================
  Files            18         18
  Lines           892        892
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            730        730
  Misses          162        162
  Partials          0          0

Powered by Codecov. Last update 6655873...cc1fa0f

Voila: https://circleci.com/gh/scikit-optimize/scikit-optimize/100#artifacts/containers/0 how cool is that? If we made the links relative you could navigate the whole website for the build. Tres cool.
Unfortunately it seems to suggest that the warnings are still there. 😕

It works!
https://103-54340642-gh.circle-artifacts.com/0//tmp/circle-artifacts.6Kr9NjK/doc/skopt/notebooks/bayesian-optimization.html

Hmm, look at the last plot. What happened? bad initial random state?

Good question. I can reproduce it locally.
# Plot GP(x) + concours
gp = res.models[12]
y_pred, sigma = gp.predict(x, return_std=True)

gives a flat prediction, but gp = res.models[11] still works:

but already looks a bit weird. Something strange about the kernel we use?

From looking at commits related to the kernel choice the only idea I have is #209 ?

Uggh. not sure what I broke :/

I figured out the bug. Thinking of an efficient way to fix it.

The fix is more subtle, decribed as TODO item no 2 in https://github.com/scikit-optimize/scikit-optimize/pull/225. (and may or may not have a huge impact) However, the bottom line is that you need more samples such that the noise prediction becomes stabilized. A better function approximation is obtained after 50 iterations (or even before around 25). Here is a plot of the attribute noise from https://github.com/scikit-optimize/scikit-optimize/pull/225 . I am truly amazed at how the GP picks up the noise parameter!

I will try and make a summary to see if I understand what is happening: the kernel has a parameter that represents the amount of noise (the np.random.randn() * noise_level term in the toy model). The value of this parameter is plotted in your plot (is the x axis number of samples or number of models?). For the first few iterations there aren't enough samples to really set that parameter to a good value. Then at 15 it suddenly picks up on it (noise ~ 0.025) and by the time we get to ~55 iterations it is tuned to the "true" value.
I don't quite understand why it causes the prediction (mean of the GP) to become flat in the example though.

Another question: should we merge this with the justification that this was already a problem before this PR and is being addressed in #225?

Yes we can merge this now

@betatim Yes, that is right. My assumption is that the prediction is wrong because keeping the noise term (or the WhiteKernel) at prediction time gives an estimate of y, (that is f(x) with the noise) while we would like to model just f(x)


IPsec PH1 creation fix. Issue #9592

[X] Redmine Issue: https://redmine.pfsense.org/issues/9592
[X] Ready for review

Fixes regression of https://github.com/pfsense/pfsense/pull/4190 -
if PH1 is created without VTI, it always uses the empty name con,
i.e. /var/etc/ipsec/swanctl.conf:
# This file is automatically generated. Do not edit
connections {
	...
	con {

leaving only the last non-VTI PH1 entry in swanctl.conf
This PR uses "safe" >32768 (x00000) numbers for non-VTI connections

Already merged but because of a mistake not detected.  Closing.