Exclude containers from sync

Using the extension "Temporary Containers", all new tabs exist in a fresh, temporary container that is removed some time after closing. By default, these containers are labelled "tmpX", where X is the sequence number of the container (although the "tmp" part is also customizable).
It would be great to have some sort of contains or regex exclude functionality.

Thanks for your feedback. I'm currently busy right now and may take some time(1-2 months) to do it myself.
If anyone is interested in picking this up, please create a pull request.

I've created a pull request for a basic implementation of the feature in #9. Check it out if you have the time


Ability to Add And Remove Notes with API v2 Finding Endpoint

Note: DefectDojo is now on Python3 and Django 2.2.1 Please submit your pull requests to the 'dev' branch as the 'legacy-python2.7' branch is only for bug fixes. Any new features submitted to the legacy branch will be ignored and closed.
When submitting a pull request, please make sure you have completed the following checklist:

[X] Your code is flake8 compliant
[X] Your code is python 3.5 compliant
[X] If this is a new feature and not a bug fix, you've included the proper documentation in the ReadTheDocs documentation folder. https://github.com/DefectDojo/Documentation/tree/master/docs or provide feature documentation in the PR.

Issue #1592

Tested all 4 request types GET, POST, PUT and PATCH. All are working fine. Thank you for the quick implementation.


Functional tests fail when a cluster doesn't have a node called "node01"

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:
/kind bug

/kind enhancement
What happened:
Ran the KubeVirt test suite (i.e: tests from tests/ folder in kubevirt repository) on a kubevirt cluster, providing a kubeconfig customized for it.
Several tests fail because they try to connect to a node called "node01" (hardcoded in utils.go and vmi_configuration_test.go) whereas the tested cluster nodes have other hostnames.
What you expected to happen:
We need a way to modify the "node01" hostname. Either programmatically by getting the hostnames of the nodes of the cluster, or by providing a command line flag allowing to override value.
How to reproduce it (as minimally and precisely as possible):
Run KubeVirt test suite providing a kubeconfig pointing to a cluster having no nodes called "node01".
Anything else we need to know?:
Environment:

KubeVirt version (use virtctl version): v0.13.3
Kubernetes version (use kubectl version): v1.11.1
VM or VMI specifications:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

https://github.com/kubevirt/kubevirt/pull/2054
@fabiand can u assign it to me

@tareqalayan I think you can use
/assign tareqalayan


Default encoding is not always UTF-8

Thought this was fixed by https://github.com/elm-lang/elm-make/pull/20 but appears to still be broken on some of our build servers :crying_cat_face: (but not every build server, which is fun).
Symptoms
Running elm-make on some Linux machines results in the following:
elm-make: ././app/assets/javascripts/Quiz/QuestionStore.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

This has also been seen previously in https://github.com/elm-lang/elm-compiler/issues/914
Workaround
The workaround is to run elm-make with the LANG environment variable set, like so:
LANG=en_US.UTF-8 elm-make Foo.elm

I'm sorry for the late reply.
Does it already supports for current version?
LangIssue.elm
import Graphics.Element exposing (..)

main : Element
main = show "私"

--
On Windows (ja-JP Shift_JIS Vista x64 command prompt):
> elm make -h
elm-make 0.2 (Elm Platform 0.15.1)
...
> set LANG=en_US.UTF-8
> set LANG
LANG=en_US.UTF-8
> elm make LangIssue.elm
[                                         ] - 0 / 1elm-make.exe: LangIssue.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make.exe: thread blocked indefinitely in an MVar operation
--
Tried with Cygwin:
$ LANG=en_US.UTF-8 elm make LangIssue.elm
elm-make.exe: LangIssue.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make.exe: thread blocked indefinitely in an MVar operation
--
BTW, I couldn't try the master version for some compiling environment issues.

I ran into this tonight too 😭

If it helps with recreation, I ran into this issue when running elm-make in a docker container with the following Dockerfile:
FROM node:0.12.4
RUN npm install --global<EMAIL_ADDRESS>ENV ELM_HOME /usr/local/lib/node_modules/elm/share

I was able to avoid the error by adding commands to configure the container locale as UTF-8:
FROM node:0.12.4
RUN npm install --global<EMAIL_ADDRESS>ENV ELM_HOME /usr/local/lib/node_modules/elm/share

RUN apt-get update && apt-get install -y \
         locales

RUN dpkg-reconfigure locales && \
         locale-gen C.UTF-8 && \
         update-locale LANG=C.UTF-8

ENV LC_ALL C.UTF-8

I experienced this when running elm-reactor against the first example from elm-architecture-tutorial on Ubuntu. I have LANG set to C.UTF-8. The workaround was to run elm-make first. After that elm-reactor worked.

I am experiencing this issue now with the new Elm 0.16 alpha 2, on 64-bit Windows 7. My system locale is set to "Chinese (Simplified, PRC)" which is using the CP936 encoding. I've tried setting a LANG environment variable to en_US.CP936, zh_CN, zh_CN.CP936, chs, and chinese-simplified, but it doesn't resolve the issue.
Any ideas?

OK, I figured out a workaround by following this: https://stackoverflow.com/questions/14109024/how-to-make-unicode-charset-in-cmd-exe-by-default
Basically, you run cmd.exe /K chcp 65001 instead of just cmd.exe and it will switch to the correct code page.

I just encountered this issue when trying to make Architecture Tutorial Example 1 with the Elm 0.16 Docker image. Unfortunately specifying the LANG environment variable didn't work: :cry:
MacBook-Pro:1 thsoft$ alias elm='docker run -it --rm -v "$(pwd):/code" -w "/code" -e "HOME=/tmp" -e LANG="en_US.UTF-8" -u $UID:$GID -p 8000:8000 codesimple/elm:0.16'
MacBook-Pro:1 thsoft$ elm make
[                                                  ] - 0 / 23elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

I don't think the LANG=C.UTF-8 can actually be the fix here, since if I run env in the  codesimple/elm:0.16 docker image I can see the LANG setting is already in place:
$ docker run -it --rm -v "$(pwd):/code" -w "/code" -e "HOME=/tmp" -u $UID:$GID -p 8000:8000 --entrypoint=/usr/bin/env codesimple/elm:0.16
...
TERM=xterm
HOME=/tmp
LANG=C.UTF-8
ELM_VER=0.16

Did your remove any elm-stuff directory before the elm make that failed?
The problem is easily reproducible through with the Architecture Tutorial Example 1:
$ alias elm='docker run -it --rm -v "$(pwd):/code" -w "/code" -e "HOME=/tmp" -u $UID:$GID -p 8000:8000 codesimple/elm:0.16'
$ cd /tmp
$ git clone https://github.com/evancz/elm-architecture-tutorial.git
Cloning into 'elm-architecture-tutorial'...
...
$ cd elm-architecture-tutorial/examples/1
$ elm reactor
elm reactor 0.16.0
Listening on http://<IP_ADDRESS>:8000/

Then if I access the application:
$ curl http://localhost:8000/Main.elm
...
Downloading elm-lang/core
Downloading evancz/elm-effects
Downloading evancz/elm-html
Downloading evancz/start-app
Downloading evancz/virtual-dom
Packages configured successfully!
elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation
...

If instead I run elm make first, this doesn't occur.

If you are using windows, switch the console default font to one with better UTF support it works fine. Consolas is not one of these fonts, Lucida Console is however, so I switched my PowerShell over to this. Hope this helps someone while the issue is fixed.

I'm also using Windows 7 in Chinese. The default "code page" of cmd.exe is 936 (GBK).
As @deadfoxygrandpa figured out, cmd.exe /K chcp 65001 is a workaround.
However, it has serious limitations if I want to solve real-world problems around me with elm.
As a promising front-end solution, elm really needs to do UTF right to the end. (I know Windows is always a second-class citizen in the web development industry but unfortunately some guys like me still need it.)
This bug is elusive. I guess I'd better describe it a bit.
If there is a UFT quote character (“ or ”) anywhere in code (comments or strings), my elm-make will fail.
An example is https://github.com/elm-lang/core/blob/master/src/Graphics/Element.elm#L320. It frustrated me badly when I just began learning elm.
Chinese characters like "私" will result the same error. Others like "中文", as well as UTF ’, can pass the compiling but will become unreadable in js files.
All these characters are good in the online editor. I guess the bug is just related with cmd.exe.

I am struggling to get Elm working in production with this error. I have tried multiple installations, using npm and also building from source I always receive this error whether or not I try setting LANG.
I am using GHC version 7.10.3 and
cabal --version
cabal-install version <IP_ADDRESS>
using version <IP_ADDRESS> of the Cabal library
I have created a new Digital Ocean droplet with Ubuntu 14.04, after creating a user and giving sudo access these are the following commands I run exactly in this order... any advice would be a huge help.
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-get install python-software-properties
sudo add-apt-repository -y ppa:hvr/ghc
sudo apt-get update
sudo apt-get install -y cabal-install-1.22 ghc-7.10.3
cat >> ~/.bashrc <<EOF
export PATH="\$HOME/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.10.3/bin:\$PATH"
EOF
export PATH=~/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.3/bin:$PATH

cabal update
sudo apt-get install git
sudo apt-get install nodejs
sudo apt-get install haskell-platform

sudo -s
echo $PATH
/home/rentalconnect/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.10.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

cat >> ~/.bashrc <<EOF
export PATH="\$HOME/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.10.3/bin:\$PATH"
EOF
export PATH=~/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.3/bin:$PATH

curl https://raw.githubusercontent.com/elm-lang/elm-platform/master/installers/BuildFromSource.hs > BuildFromSource.hs
cd /usr/local/
runhaskell /home/rentalconnect/BuildFromSource.hs 0.16

Everthing seems to compile fine but right at the end I get the following message
Downloading elm-lang/core
Downloading evancz/elm-html
Downloading evancz/elm-markdown
Downloading evancz/virtual-dom
Packages configured successfully!
elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

Failed to install elm-reactor-0.16
cabal: Error: some packages failed to install:
elm-reactor-0.16 failed during the building phase. The exception was:
ExitFailure 1

Despite this I still try elm-make just on the off chance that may work...
~/test$ LANG=en_US.UTF-8 elm-make Accounting.elm
Some new packages are needed. Here is the upgrade plan.

  Install:
    elm-lang/core 3.0.0

Do you approve of this plan? (y/n) y
Downloading elm-lang/core
Packages configured successfully!
[=========================                         ] - 16 / 32elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

Is it possible that there is already some Elm version on your machine before you do all that? From what you posted, I suspect that when you run elm-make at the end, you are not running the version you have installed using with that runhaskell /home/rentalconnect/BuildFromSource.hs 0.16 just before.

Why do I suspect that? Because I don't see you adding /usr/local/0.16/.cabal-sandbox/bin to the path. But you should, according to https://github.com/elm-lang/elm-platform/blob/master/README.md.

As mentioned... it's a clean VM and don't think DigitalOcean include have Elm on the image....
~/test$ which elm-make
/usr/local/Elm-Platform/0.16/.cabal-sandbox/bin/elm-make

Hmm, funny, where do you set that path? It's not in the snippets you showed above.

updated the above comment where I add the path to my profile.

Even that is not very convincing, sorry. What I see now is that you add that path to your profile after running BuildFromSource.hs. That makes me wonder what version of elm-make is running in those lines:
Downloading elm-lang/core
Downloading evancz/elm-html
Downloading evancz/elm-markdown
Downloading evancz/virtual-dom
Packages configured successfully!
elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

purportedly part of the output of
runhaskell /home/rentalconnect/BuildFromSource.hs 0.16

The thing is: If you haven't added the path .../Elm-Platform/0.16/.cabal-sandbox/bin/elm-make to your environment before calling BuildFromSource.hs 0.16, then during that run, the executable elm-make should not be found. So you should never see the Downloading elm-lang/core lines. But I see them in your output, which makes me believe that it is not true that there is no Elm on your machine before you call BuildFromSource.hs.

Okay, I can retry by adding the path before building from source. But there is no Elm before I run these commands, as I say... the vm itself is 2 hours old. Will let you know if I make any further progress.

But there is no Elm before I run these commands

Prove it by showing console output with an attempted call to elm-make before the runhaskell /home/rentalconnect/BuildFromSource.hs 0.16 line. :smile:

I will continue this at home after dinner. Stay tuned... I am not going mad.

I have reset the vm with a new image and tried from scratch using the same commands above, only this time I have added /usr/local/Elm-Platform/0.16/.cabal-sandbox/bin to my path before building from source.
root@aberinkula:/root# echo $PATH
/usr/local/Elm-Platform/0.16/.cabal-sandbox/bin:/home/rentalconnect/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.10.3/bin:/home/rentalconnect/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.10.3/bin:/home/rentalconnect/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.3/bin:/home/rentalconnect/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.10.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@aberinkula:/root# elm-make
elm-make: command not found
root@aberinkula:/root# cd /usr/local/
root@aberinkula:/usr/local# runhaskell /home/rentalconnect/BuildFromSource.hs 0.16

lots of output

Failed to build SideBar.elm

Downloading elm-lang/core
Downloading evancz/elm-html
Downloading evancz/elm-markdown
Downloading evancz/virtual-dom
Packages configured successfully!
elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

Failed to install elm-reactor-0.16
cabal: Error: some packages failed to install:
elm-reactor-0.16 failed during the building phase. The exception was:
ExitFailure 1

See the core issue I referenced just above your latest comment. I think these are the symbols that kill your install. Unfortunately, I'm very unsuccessful in lobbying @evancz to make a patch release of core.

No worries and thanks for the all the help. I understand how these things go, I will try npm one last time and if that does not work I will compile it on my local machine before deploying :(

I was getting that hGetContents error when running the Haskell web server built from a clone of https://github.com/elm-lang/elm-lang.org. The error went away after I put export LANG=en_US.UTF-8 in the script that starts the Haskell process. So maybe it's necessary to have that in the exported environment where runhaskell runs, not just in the context of elm-make.

Hi @fredcy , I actually did try that and it still did not work. I tried again this morning on a new server this time setting the LC_ALL var and installing Elm 0.15 which seemed to work. I still need to test deploys to the box but it seems setting LC_ALL also means not having to prefix elm-make with LANG=....

I'm having the same error on Archlinux. I've tried by using both nodejs-elm from the AUR and by npm, and both times I get the error:
[ ] - 0 / 12elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

LANG=en_US.UTF-8 elm make
doesn't help either.
Anyone?

Have you tried actually exporting LANG=en_US.UTF-8 rather than just issuing for that specific command?

@jvoigtlaender yes. Same error message.

Please print the outputs of the following commands
locale
cabal --version
ghc --version

@teaspoon, thanks for this hint. After running locale I realised that the locale on my Archlinux setup was messed up.
Specifically, from here, one learns that /etc/locale.gen needs to be edited by uncommenting the required locales, and then running sudo locale-gen to generate the locales.
After doing this, elm-make, elm-repl, everything works. Cheers.

https://media.giphy.com/media/uTuLngvL9p0Xe/giphy.gif

Maybe this is naive, but: Could this issue, and related ones, be solved once and for all by using setLocaleEncoding utf8 from https://hackage.haskell.org/package/base-<IP_ADDRESS>/docs/GHC-IO-Encoding.html at the start of elm-make (and possibly other elm-* tools)?

Tried the workaround from @rtfeldman with this:
ubuntu@box127:~/ui$ LANG=en_US.UTF-8 node_modules/.bin/elm-test Test/TestRunner.elm
elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

Any other thing I can try?

See this comment. Also, https://github.com/elm-lang/elm-make/issues/83 fixes this whole issue (according to my tests).

@jvoigtlaender thanks, but no cigar. Hope your PR gets merged

@benjick Make sure LC_ALL is also set, that will probably work. If it does not then please paste the output from the following commands.
locale
cabal --version
ghc --version

Thank you @teaspoon
Here's the output
ubuntu@box1059:~/mysite/ui$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
ubuntu@box1059:~/mysite/ui$ cabal --version
cabal-install version <IP_ADDRESS>
using version <IP_ADDRESS> of the Cabal library
ubuntu@box1059:~/mysite/ui$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3

Then I tried to do LC_ALL=en_GB.UTF-8 cd ui && make test, here's the output:
ubuntu@box1059:~/mysite$ LC_ALL=en_GB.UTF-8 cd ui && make test
npm run test

><EMAIL_ADDRESS>test /home/ubuntu/mysite/ui
> elm-test Test/TestRunner.elm

elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

@benjick, do what @fustkilas did above? https://github.com/elm-lang/elm-make/issues/33#issuecomment-182066651

@jvoigtlaender Yes, sort of, there is not /etc/locale.gen on the circleci boxes

So are you certain that the locale you are trying to set actually exists on the box where you are trying to run this stuff? Text like

Before a locale can be enabled on the system, it has to be generated.

on https://wiki.archlinux.org/index.php/Locale indicates that this might be your issue.

Does en_GB.UTF-8 appear in the output of locale -a?

(I changed to en_US now)
Yes, it does. This is what I'm running sudo sh -c "echo 'LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8' >> /etc/environment" && sudo locale-gen en_US.UTF-8 && sudo dpkg-reconfigure locales and then locale -a shows me en_US.UTF-8 among others.

And after all that? Are you "just" running
> LC_ALL=en_GB.UTF-8 cd ui && make test

as your above console dump suggests, or are you actually doing what you agreed above to doing, namely exporting rather than only setting for a specific command?

Yes, I'm setting both LC_ALL and LANG
  environment:
    LANG: en_US.UTF-8
    LC_ALL: en_US.UTF-8

Hmm, then I'm afraid I'm running out of ideas. @teaspoon, please take over. :smile:

@jvoigtlaender Thank you!

Hi @benjick . I have a feeling you need to upgrade your GHC. When I ran Elm 0.16 on GHC 7.6 I had some issues. Upgrade to 7.10... also refer to https://github.com/elm-lang/elm-platform when building from source... having chatted with some folk over on IRC it seems most users are using 7.10.
Let me know how it goes.

You are correct
The Glorious Glasgow Haskell Compilation System, version 7.6.3```

Will report back!

@benjick Please keep us posted as to whether upgrading to GHC 7.10 solved your issue.

I am not certain, but maybe this became support for a couple different problems. I know @jvoigtlaender found a way to hopefully put things in UTF8 that is now in 0.17. If issues like this persist, we should open a new issue.
Sorry to everyone who had trouble with this!

$ LANG=en_US.UTF-8 elm make
elm-make: elm-stuff/packages/elm-lang/core/3.0.0/src/Graphics/Element.elm: hGetContents: invalid argument (invalid byte sequence)
elm-make: thread blocked indefinitely in an MVar operation

i still get this issue on 0.16 on my CI server. none of the above suggested solutions work. has anyone found another work-around not documented here?

@patrickdet please paste the output of the following commands
locale
cabal --version
ghc --version


gRPC server becomes unresponsive

What version of gRPC and what language are you using?
gRPC 1.17.1, C++
What operating system (Linux, Windows,...) and version?
Windows 10 Enterprise, build 1809
What runtime / compiler are you using (e.g. python version or version of gcc)
Visual Studio 2017, version 15.6.2
What did you do?
We're in the process of taking gRPC into use, and have synchronous calls working for the most part. Recently we implemented preliminary code for handling asynchronous calls: we added a completion queue to ServerBuilder and created a thread to get tasks from it. We don't yet have any asynchronous services registered.
What did you expect to see?
Synchronous services keep working as before.
What did you see instead?
Synchronous services work at first, but at some point, typically within a timeframe of tens of minutes to a few hours, the gRPC server becomes unresponsive. Neither existing nor new channels work, and the only solution is to restart the server.
Based on our logs and gRPC trace, once the error occurs new channels can still be created seemingly successfully. However, calls made through those channels never get a response. The client either times out or waits forever if no deadline has been set.
The following is a snippet from a client-side trace log as the failing call begins, with GRPC_TRACE=all and GRPC_VERBOSITY=debug, filtered through our logging system.
2019-04-18T06:23:15.239Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\ext\transport\chttp2\transport\stream_lists.cc, 125: 000001F63371CE30[1][cli]: add to writing
2019-04-18T06:23:15.239Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\ext\transport\chttp2\transport\stream_lists.cc, 71: 000001F63371CE30[1][cli]: pop from writing
2019-04-18T06:23:15.246Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 365: TIMER 000001F63371E820: SET 3579 now 3479 call 000001F63371E668[00007FF7A09091A0]
2019-04-18T06:23:15.247Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 401:   .. add to shard 17 with queue_deadline_cap=4177 => is_first_timer=true
2019-04-18T06:23:15.247Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 423:   .. old shard min_deadline=4178
2019-04-18T06:23:15.347Z t00004428  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 549: TIMER 000001F63371E820: FIRE 0ms late via combiner:immediately scheduler
2019-04-18T06:23:16.943Z t00004428  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 549: TIMER 000001F62EC72380: FIRE 0ms late via exec_ctx scheduler
2019-04-18T06:23:16.943Z t00004428  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 365: TIMER 000001F62EC72380: SET 10175 now 5175 call 000001F62EC723B8[00007FF7A0911B10]
2019-04-18T06:23:16.943Z t00004428  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 401:   .. add to shard 21 with queue_deadline_cap=5180 => is_first_timer=false
2019-04-18T06:23:21.943Z t000016f8  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 549: TIMER 000001F62EC72380: FIRE 0ms late via exec_ctx scheduler
2019-04-18T06:23:21.943Z t000016f8  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 365: TIMER 000001F62EC72380: SET 15175 now 10175 call 000001F62EC723B8[00007FF7A0911B10]
2019-04-18T06:23:21.943Z t000016f8  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 401:   .. add to shard 21 with queue_deadline_cap=10185 => is_first_timer=false
2019-04-18T06:23:23.641Z t00004428  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 549: TIMER 000001F63371E998: FIRE 0ms late via combiner:immediately scheduler
2019-04-18T06:23:23.641Z t00004428  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 365: TIMER 000001F63371E9D0: SET 16873 now 11873 call 000001F63371E948[00007FF7A0909910]
2019-04-18T06:23:23.641Z t00004428  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 401:   .. add to shard 14 with queue_deadline_cap=12183 => is_first_timer=false
2019-04-18T06:23:23.675Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 365: TIMER 000001F63371E820: SET 12107 now 11907 call 000001F63371E668[00007FF7A09091A0]
2019-04-18T06:23:23.676Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 401:   .. add to shard 17 with queue_deadline_cap=12267 => is_first_timer=true
2019-04-18T06:23:23.676Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 423:   .. old shard min_deadline=12268
2019-04-18T06:23:23.676Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 467: TIMER 000001F63371E9D0: CANCEL pending=true
2019-04-18T06:23:23.677Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 365: TIMER 000001F63371E998: SET 21907 now 11907 call 000001F63371E858[00007FF7A0909500]
2019-04-18T06:23:23.677Z t00003dac  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 401:   .. add to shard 10 with queue_deadline_cap=12187 => is_first_timer=false
2019-04-18T06:23:23.875Z t000016f8  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 549: TIMER 000001F63371E820: FIRE 0ms late via combiner:immediately scheduler

After that, similar timer messages keep repeating every few seconds. For comparison, a successful call at client-side looks like this:
2019-04-18T12:16:23.108Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\ext\transport\chttp2\transport\stream_lists.cc, 125: 0000022FA4CC8760[1][cli]: add to writing
2019-04-18T12:16:23.108Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\ext\transport\chttp2\transport\stream_lists.cc, 71: 0000022FA4CC8760[1][cli]: pop from writing
2019-04-18T12:16:23.109Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 365: TIMER 0000022FA4CCA150: SET 1857 now 1757 call 0000022FA4CC9F98[00007FF7502591A0]
2019-04-18T12:16:23.109Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 401:   .. add to shard 23 with queue_deadline_cap=2116 => is_first_timer=true
2019-04-18T12:16:23.109Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 423:   .. old shard min_deadline=2117
2019-04-18T12:16:23.208Z t00007170  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 549: TIMER 0000022FA4CCA150: FIRE 0ms late via combiner:immediately scheduler
2019-04-18T12:16:23.467Z t00003e54  <gRPC-core> DEBUG I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\surface\call.cc, 719: set_final_status CLI
2019-04-18T12:16:23.468Z t00003e54  <gRPC-core> DEBUG I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\surface\call.cc, 720: "No Error"
2019-04-18T12:16:23.468Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\surface\completion_queue.cc, 782: cq_end_op_for_pluck(cq=0000022FA4CAC6F0, tag=0000007D1F8F7EA0, error="No Error", done=00007FF7501ECC60, done_arg=0000022FA4CCB450, storage=0000022FA4CCB4C8)
2019-04-18T12:16:23.468Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 467: TIMER 0000022FA4CCA2C8: CANCEL pending=true
2019-04-18T12:16:23.469Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 365: TIMER 0000022FA4CCA2C8: SET 12116 now 2116 call 0000022FA4CCA188[00007FF750259500]
2019-04-18T12:16:23.469Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\iomgr\timer_generic.cc, 401:   .. add to shard 15 with queue_deadline_cap=3117 => is_first_timer=false
2019-04-18T12:16:23.469Z t00003e54  <gRPC-core> INFO  I:\git\vcpkg\buildtrees\grpc\src\v1.17.1-3c2b344641\src\core\lib\surface\completion_queue.cc, 1299: RETURN_EVENT[0000022FA4CAC6F0]: OP_COMPLETE: tag:0000007D1F8F7EA0 OK

The server-side logs don't show anything obviously erroneous. They don't have all tracers on, though. Interestingly, when we ran the server with all tracers on in an environment where failures were previously common, no failure occurred. If that's not just a fluke, it might hint at a race condition where the delay caused by logging changes the result.
Full logs are attached (with some information redacted). failure_server.txt shows logs from a server that eventually became unresponsive. failure_client.txt shows a test call made to the server after that. success_server.txt and success_client.txt show a successful call to server; the former ends abruptly because the server was run and terminated from a debugger.
Anything else we should know about your project / environment?
Our server application is actually running two gRPC servers side by side. As far as we can tell, they both break down at the same time.
The problem also depends on the environment: it occurs regularly on some computers and not at all on others. We have yet to isolate the relevant factor in this.

Sorry for late response. I suggest trying newer version to see if this still exists.

On it. Took a while to build the reproduction setup.
I've just done a sanity check to verify that my setup still reproduces this with 1.21.
I'm currently compiling 1.24.2 to check that one. If the issue still exists there, I should be able to also verify #20376. I'll try to report back tomorrow.

Thanks!

The build was fast enough that I got it tested before heading off.
This still reproduces on 1.24.2. I did make one change to the code base by adding the created flag to the thread constructor in thread_manager.cc:
  bool created = false;  // Added
  thd_ = grpc_core::Thread(
      "grpcpp_sync_server",
      [](void* th) { static_cast<ThreadManager::WorkerThread*>(th)->Run(); },
      this, &created);  // Added &created
  if (!created) abort();  // Added

If I understood #20376 correctly, then that abort() should have triggered if the issue would be fixed by #20376. The server froze in the "won't accept new requests" -state without aborting.

Should be fixed by https://github.com/grpc/grpc/pull/19311 - getting a confirmation would be good.

I work with @jaaant and we've had #19311 applied to our gRPC builds for few months now - although if I remember correctly, our builds are based on gRPC 1.18.x since having to patch things manually for the vcpkg is annoying. We'll try to upgrade to v1.26.0 (without any patches) once that releases and we'll let you know if we still have the issue. For now I'm assuming this issue is resolved.


Add note

[X] I agree to follow the Code of Conduct that this project adheres to.
[X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
It's not really a problem but It would be cool If you can add notes to each block.
Describe the solution you'd like
If you right click on a single specific block you can add notes to it and a note icon will popup above the block.
Describe alternatives you've considered
None.
Additional context
None.

Duplicate of #1547


[BUG] sandbox.elmakers.com does not loading/

Power is out, this affects all the demo servers, sandbox site and Discord bots.


Support custom_options in client_specific_config

Pull Request (PR) description
Currently, the openvpn::client and openvpn::server classes both support
custom_options.  Modify openvpn::client_specific_config to also support
custom_options.
This Pull Request (PR) fixes the following issues
(no issues)

Great, thanks for reviewing and merging this!


Query: SQLPP11 way to insert table data from JSON into PostreSQL

What is the best "sqlpp11" way to insert table data from JSON into a PostgreSQL database?
The query is something like:
INSERT INTO my_table SELECT * FROM JSON_POPULATE_RECORD(NULL::my_table, '{ ... }');

The following works:
const auto query = sqlpp::custom_query(sqlpp::verbatim("INSERT INTO my_table SELECT * FROM JSON_POPULATE_RECORD(NULL::my_table, '{ ... }')"))
                                   .with_result_type_of(insert_into(sqlpp::verbatim_table("my_table")));

Is there an alternative or better way to do so or is that as good as I will get?
PS: I am reading data from a json file, thus I don't have the associated table as a generated structure.

There is no good JSON support in the library. Your way is about as good as it gets.


Improve Navbar

Feature request-
Change color of navbar and update headline
Describe the solution you'd like
A new color scheme for the navbar and update the heading 'Daily journal' to something different. You can be creative.

Note:

If you want to work on an issue, you should check if it has already been assigned to anyone. If the issue is free you can comment /assign to get the issue assigned to you.
If you are raising a new issue and want to work on it then also you should comment /assign under the issue to get it auto assigned.
Please refrain from adding labels to your issue/pull-request on your own. It is the job of the Project Admin and the Mentors to review your issue/pull-request and add labels accordingly.

@Pranav016 I would like to work on this issue. I am a GSSOC'21 participant

@hrushikesh-git  , Just comment "/assign" and start working on it .

/assgin

@hrushikesh-git , Just comment "/assign" and start working on it . You will automatically assigned for this issue .

Thanks man

/level2/

@hrushikesh-git  You have 4 days to complete this thing as this is lvl2 task so @Pranav016 and team has decided to give 4 days and its enough for this issue . Keep up the good contribution .

Okay Great alredy started working

/assign
Hey!! @shudhanshu03  , I am a participant of GSSoC'21. I would take up this issue.
Can you please assign me this issue.

/assign
As participant of gssoc I would like to work on this issue, please assign it to me.

/assign
I'm a participant of GSSOC and I want to work on this issue.

@hrushikesh-git It has been 9 days, Are you still working on this issue?

No.. Because someone else also commented assigned.. So I didn't work on it
as I thought the issue was assigned to someone who commented before me.
On Sat, 20 Mar, 2021, 11:15 PM Rushan Khan, @.***>
wrote:

@hrushikesh-git https://github.com/hrushikesh-git It has been 9 days,
Are you still working on this issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ALPHAVIO/BlogSite/issues/296#issuecomment-803432857,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APXIXFBZTP2FZNWJZ34B6YTTETNKPANCNFSM4ZA52ANA
.

@hrushikesh-git It has been 9 days, are you still working on this issue?

yes I am working with this issue and I am in touch with @Pranav016  last time was PR was cancelled do some major code changes, hence it took time

raise new issue for changes required, since a lot of changes have happened since this issue was raised..


Perm-check for offline player

Description
Possibility to check the permissions of a player who is not on the server without using the luckyperms commands.
Proposed Behaviour
What do I expect? Querying the server for user permissions would be successful.
Extra Details
Currently, when using placeholders, I get an error or the value is empty.

/papi parse test-player %vault_group% (using vault always error)
%otherplayer_hasperm_test-player_perm_test-perm% (empty value)
%parseother_{testplayer}_{player_name}% (empty value)

Of course, all of the above works when the player is on the server online.
Any attempt to check the permissions of a player who is not on the server will fail. (Except luckperms commands. Unfortunately, they are not helpful as the value is returned after the command is executed and is needed as a placeholder.)
I would like to ask you to add the following functionality. I care about this very much.

Querying of any data for an offline player will require performing a data load - a slow operation. It could maybe be considered to add the ability to load data for placeholders parsed in an async context (Similar to our vault integration for offline players), but (again, like our vault integration) any placeholders parsed in a sync context would need to be blocked otherwise there'd be a large lag spike.

!bump


[BUG] Service account secret mount spam as a result of longhorn-manager restarts caused by missing iscsi pre-req

Describe the bug
As a result of mountPropagation: Bidirectional on the /var/run hostPath mount for longhorn-manager, introduced in v1.0.2 there are growing number of /var/run/secrets/kubernetes.io/serviceaccount mounts on nodes upon longhorn-manager Pod restarts. Continued restarts will increase System CPU usage until the Docker runtime becomes unresponsive and the nodes down in k8s. This will occur if the open-iscsi pre-req is missing on cluster nodes, meaning any user who installs longhorn into a cluster without fulfilling this pre-req will bring down their cluster after a short period.
To Reproduce
Steps to reproduce the behaviour:

Deploy longhorn on a cluster with missing open-iscsi pre-req. I tested in RancherOS v1.5.5 and Ubuntu 18.04 (after running apt uninstall -y open-iscsi on cluster nodes).
Observe longhorn-manager Pods in Crashloopbackoff due to failing environment check.
Execute df on cluster nodes and observe duplicate /var/run/secrets/kubernetes.io/serviceaccount mounts. As the longhorn-manager repeatedly restarts the duplicate mounts will grow, and eventually System CPU usage as observed with top will grow until the Docker runtime becomes unresponsive and kubelet cannot communicate with the runtime.

Expected behavior
Deploying longhorn with missing pre-req does not freeze nodes in the cluster.
Log
As expected in the event of missing open-iscsi pre-req, longhorn-manager logs show:
time="2020-12-08T09:59:38Z" level=error msg="Failed environment check, please make sure you have iscsiadm/open-iscsi installed on the host"
time="2020-12-08T09:59:38Z" level=fatal msg="Error starting manager: Environment check failed: Failed to execute: nsenter [--mount=/host/proc/1621/ns/mnt --net=/host/proc/1621/ns/net iscsiadm --version], output , stderr, nsenter: failed to execute iscsiadm: No such file or directory\n, error exit status 1"

Environment:

Longhorn version: v1.0.2
Kubernetes version: v1.17.14 and v1.19.4
Node config

OS type and version RancherOS v1.5.5/Ubuntu 18.04.5

Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VMWare/KVM, Baremetal): vSphere/Digital Ocean

Additional context
Same behaviour, different trigger of longhorn-manager restarts as https://github.com/longhorn/longhorn/issues/1877
Behaviour is not shown when removing mountPropagation: Bidirectional on the /var/run hostPath.

Thank you for reporting this, for 1.1 we try to install iscsid on the host via an init container.
We still want to investigate the secret mount spam.

Thanks @axeal for reporting. We removed https://github.com/longhorn/longhorn-manager/pull/801 in v1.1.0 release

Close this since the bind mount of /var/run has been removed in the v1.1.0 release.
Feel free to reopen if you experience the same issue again in v1.1.0 release.


docs: add example & article

Description
Add boilerplate app and article about this app

Thanks! :D


From secarios documentation: Solution two - Require localisation or Fallback localisation errors

I want to use Solution Two so that any pages that have not been published in a locale are not visible on the front end. However the instructions provided in the docs are insufficient and contain errors. For example FluentHelper::getDataQueryLocale($dataQuery). FluentHelper does not seem to be a class in the Fluent ^4. also is SiteTreeFluentExtension extends SiteTreeExtension correct and what classes do I apply this extension to?
I also want to be able to only show language options in the language switcher for which there are actual translations published. So if there are no translations other than the default, there would not be a language switcher.
I also want to know if there is a way to attache different many_many and has_many relationships to different translations of a page or object. I would rather attache different objects then have to make all the relation objects translatable.
I am trying to find out ways to make Fluent pretty much work just like the Translatable module as it is not available for SS 4 and may not every be.
Thanks for any info.
Micah Sheets

Hi @micahsheets, the GitHub issue tracker is reserved for reporting bugs in the code. This sounds more like a question, which would be more suitable for forum.silverstripe.org. Best of luck, and thanks for choosing Fluent!


DataReceived event not working?

Hello,
First off, thanks for this awesome library.
I'm using it in a simple project I'm working on where I send serial data every 3 seconds from an end-point device to an API coordinator (mode 1). The frames show up in XCTU when monitoring the coordinator, but I can't get them to show up using this library. The DataReceived event seems to never trigger.
Am I doing something wrong or is this known?
namespace Gateway
{
    class Program
    {
        private static async void ConnectToCoordinator()
        {
            var controller = new XBeeController("COM3", 9600);

            controller.NodeDiscovered += async (sender, args) =>
            {
                Console.WriteLine("Discovered {0}", args.Name);

                var Node = args.Node;
                Node.DataReceived += (node, ev) => Console.WriteLine("Received: {0}", BitConverter.ToString(ev.Data));
            };

            try
            {
                await controller.OpenAsync();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }

            Console.WriteLine("Succes!");

            await controller.DiscoverNetworkAsync();
        }

        static void Main(string[] args)
        {
            Console.WriteLine("Press Enter to connect to Coordinator.");
            Console.ReadLine();

            ConnectToCoordinator();

            Console.ReadLine();
        }
    }
}

My thanks in advance!

Sorry you're having trouble. It might be a few days but I'll take a look, thanks.

From: Vlad<EMAIL_ADDRESS>Sent: Tuesday, May 16, 2017 3:03:00 PM
To: jefffhaynes/XBee
Cc: Subscribed
Subject: [jefffhaynes/XBee] DataReceived event not working? (#24)
Hello,
First off, thanks for this awesome library.
I'm using it in a simple project I'm working on where I send serial data every 3 seconds from an end-point device to an API coordinator. The frames show up in XCTU when monitoring the coordinator, but I can't get them to show up using this library. The DataReceived event seems to never trigger. Am I doing something wrong?
using System;
using System.IO.Ports;
using System.Threading.Tasks;
using XBee;
using Newtonsoft.Json;
using XBee.Frames.AtCommands;
using System.Collections.Generic;
namespace Gateway
{
class Program
{
private static async void ConnectToCoordinator()
{
var controller = new XBeeController("COM3", 9600);
        controller.NodeDiscovered += async (sender, args) =>
        {
            Console.WriteLine("Discovered {0}", args.Name);

            var Node = args.Node;
            Node.DataReceived += (node, ev) => Console.WriteLine("Received: {0}", BitConverter.ToString(ev.Data));
        };

        try
        {
            await controller.OpenAsync();
        }
        catch (Exception e)
        {
            Console.WriteLine(e.Message);
        }

        Console.WriteLine("Succes!");

        await controller.DiscoverNetworkAsync();
    }

    static void Main(string[] args)
    {
        Console.WriteLine("Press Enter to connect to Coordinator.");
        Console.ReadLine();

        ConnectToCoordinator();

        Console.ReadLine();
    }
}

}
My thanks in advance!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/jefffhaynes/XBee/issues/24, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJSKR2tIfM4_9uoquXg50mhn5xqHFcjkks5r6fLkgaJpZM4Nc8Ug.

 For what I was trying to do, I was registering subscribing to the event of the sending node.
I wanted to first go through the sample code you provided in the readme. Specifically:
// register callback for sample recieved from this node
// TODO: in practice you would want to make sure you only subscribe once (or better yet use Rx)
args.Node.SampleReceived += (node, sample) => Console.WriteLine("Sample recieved: {0}", sample);
I followed this, I just read "sample received from this node" (and "data received from this node" on the DataReceived method description), and assumed this is what I needed. Now I also understand a bit better how to use it.
I'm glad I (hopefully) didn't waste much of your time.

No problem, I just sat down to look at this.  I'm not sure I totally understand though - your original code actually looks correct to me.  What am I missing?  Is it that you were subscribing to DataReceived vs SampleReceived and you were sending a sample?

I think I still have a bit of reading to do on how I can configure XBee devices to communicate.
Firstly, I just realized I actually had my "end-point" device programmed as a router, as I've used it before for a different project. Though if I recall correctly, there wasn't significant difference between a router and an end-device for it to matter to me, but now I'm having trouble discovering the device if I update it to actual end-device firmware. So I left it as a router device for now.
The microcontroller on the router device is sending serial data directly to the coordinator via an Explicit RX Indicator type frame, so I think that's why, I just realized, I don't even need to discover the network, this just works:
class Program
    {
        private static async void ConnectToCoordinator(XBeeController controller)
        {
            try
            {
                await controller.OpenAsync();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
            // I don't even need to discover the network to receive the messages I'm currently sending
            //await controller.DiscoverNetworkAsync();
        }

        public static string HexToString(String hexString)
        {
            try
            {
                string ascii = string.Empty;
                string[] split = hexString.Split('-');

                foreach (string hs in split)
                {
                    uint decval = System.Convert.ToUInt32(hs, 16);
                    char character = System.Convert.ToChar(decval);
                    ascii += character;
                }

                return ascii;
            }
            catch (Exception ex) { Console.WriteLine(ex.Message); }

            return string.Empty;
        }

        static void Main(string[] args)
        {
            Console.WriteLine("Press Enter to attempt to connect to the mesh network.");
            Console.ReadLine();

            var controller = new XBeeController("COM3", 9600);

            ConnectToCoordinator(controller);

            controller.DataReceived += (node, ev) =>
            {
                string data = BitConverter.ToString(ev.Data);
                string message = HexToString(data);

                Console.WriteLine("Received: {0}", message);
            };

            Console.WriteLine("Connection succesful!");

            Console.ReadLine();
        }
    }

When getting input samples on a end-device/router node, I would subscribe to that node to use the data on the coordinator.
When getting serial data on a end-device/router node, I would subscribe and do things in the same way, correct?
But in my case, I'm not getting serial data on the router node, apparently. The microcontroller attached to the router node sends the data, through the XBee directly to the coordinator, but only the coordinator has its DataReceived event triggered. I'm not sure if this is expected behaviour or not as I'm still learning how XBees work.

I think that may be a bug. I'll look at it today.

From: Vlad<EMAIL_ADDRESS>Sent: Sunday, May 21, 2017 10:13:58 AM
To: jefffhaynes/XBee
Cc: Jeff Haynes; Comment
Subject: Re: [jefffhaynes/XBee] DataReceived event not working? (#24)
I think I still have a bit of reading to do on how I can configure XBee devices to communicate.
Firstly, I just realized I actually had my "end-point" device programmed as a router, as I've used it before for a different project. Though if I recall correctly, there wasn't significant difference between a router and an end-device for it to matter to me, but now I'm having trouble discovering the device if I update it to actual end-device firmware. So I left it as a router device for now.
The microcontroller on the router device is sending serial data directly to the coordinator via an Explicit RX Indicator type frame, so I think that's why, I just realized, I don't even need to discover the network, this just works:
class Program
{
private static async void ConnectToCoordinator(XBeeController controller)
{
try
{
await controller.OpenAsync();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
// I don't even need to discover the network to receive the messages I'm currently sending
//await controller.DiscoverNetworkAsync();
}
    public static string HexToString(String hexString)
    {
        try
        {
            string ascii = string.Empty;
            string[] split = hexString.Split('-');

            foreach (string hs in split)
            {
                uint decval = System.Convert.ToUInt32(hs, 16);
                char character = System.Convert.ToChar(decval);
                ascii += character;
            }

            return ascii;
        }
        catch (Exception ex) { Console.WriteLine(ex.Message); }

        return string.Empty;
    }

    static void Main(string[] args)
    {
        Console.WriteLine("Press Enter to attempt to connect to the mesh network.");
        Console.ReadLine();

        var controller = new XBeeController("COM3", 9600);

        ConnectToCoordinator(controller);

        controller.DataReceived += (node, ev) =>
        {
            string data = BitConverter.ToString(ev.Data);
            string message = HexToString(data);

            Console.WriteLine("Received: {0}", message);
        };

        Console.WriteLine("Connection succesful!");

        Console.ReadLine();
    }
}

When getting input samples on a end-device/router node, I would subscribe to that node to use the data on the coordinator.
When getting serial data on a end-device/router node, I would subscribe and do things in the same way, correct?
But in my case, I'm not getting serial data on the router node, apparently. The microcontroller attached to the router node sends the data, through the XBee directly to the coordinator, but only the coordinator has its DataReceived event triggered. I'm not sure if this is expected behaviour or not as I'm still learning how XBees work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/jefffhaynes/XBee/issues/24#issuecomment-302939312, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJSKRxyOaR1nxHFFsjMP_ZhOw1C7ZuBhks5r8EamgaJpZM4Nc8Ug.

I just got around to trying your original code and it works for me.


feat: allow to dismiss feedback

Closes #1508
What does this PR do?
This PR adds a new button Dismiss to the activity feedback form. After dismissing, the user won't be able to give feedback to this activity.
TODO:

[ ] check, if given english translations are ok like this
[ ] add other translations (?)

Links to related issues
Related backend PR https://github.com/yunity/karrot-backend/pull/1124
Checklist

[ ] added a test, or explain why one is not needed/possible...
[ ] no unrelated changes
[ ] asked someone for a code review
[x] joined chat.foodsaving.world/channel/karrot-dev
[x] added an entry to CHANGELOG.md (description, pull request link, username(s))

A tiny bug we need to fix:
After dismissing three feedbacks I noticed that the number of open feedbacks in the menu does not get updated automatically. A page reload is necessary.

A tiny bug we need to fix:
After dismissing three feedbacks I noticed that the number of open feedbacks in the menu does not get updated automatically. A page reload is necessary.

fixed

Quick point for the moment, the branch deployment is broken because of my mistake, you can git cherry-pick 1e5a33a8e46f9ab93b64fa6eb15acc8e6b8c47ea if you want to bring the fix into your branch :)

@nicksellen all done now. But coverage is decreased. Don't know how to fix. What should we do?
Should we generally discuss testing inside a monday meeting?


FIX-#6154: Ensure GroupBy.getitem preserves key order

What do these changes do?

[x] first commit message and PR title follow format outlined here

NOTE:  If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

[ ] passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
[ ] passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
[ ] signed commit with git commit -s
[ ] Resolves #6154 ?
[ ] tests added and passing
[ ] module layout described at docs/development/architecture.rst is up-to-date

@RehanSD , #6174 should fix this so i'll make this a draft for now.

@RehanSD , https://github.com/modin-project/modin/pull/6174 should fix this so i'll make this a draft for now.

Never mind; #6174 won't fix this.
@RehanSD the test failure is due to #6175; i'll keep investigating.


Add hooks for beacons

... is going to be more work than I thought and is more of a nice to have as there are already a couple hooks there if addon authors want to do something with beacons.

https://github.com/BTW-Community/BTW-source/issues/58

Completed in 2.0.0


Gas Limit Functionality Issue ( getBlockGasLimit() )

The getBlockGasLimit() function returns block.gaslimit , which is not a valid property in
Solidity. It should be corrected to block.gaslimit .
route is :core/tests/ts-integration/contracts/context/context.sol

Hey mate,
The error suggests that there is a typo in the code.
The correct property is block.gaslimit, not block.gaslimit with a lowercase 'L'.
Change getBlockGasLimit()
to
block.gaslimit


Fix beaker forge api not specified error

This PR has 2 commits:

Do not raise error when BEAKER_FORGE_API is not defined, falls back to production forge API and added sanitisation of forge_host and forge_api url's to ensure they are formatted consistently.
Version bump for a minor fix release.

I have tested this using both the IIS module and the NTP module locally on my machine. I encountered unrelated errors while running this in the adhoc jenkins pipeline for IIS.

Would it be possible to add those tests you were running manually to the test suite, so they get always checked here on travis?

@DavidS It would be possible for linux based modules that can be tested using docker and would involve copying an entire module and its tests into this library, I cant think of a nicer way to do it. For windows modules, the best way I can think of is to use the adhoc pipeline before merging prs.

you could git clone the modules instead of committing them here.
docker acceptance tests are a good idea, and should give good coverage. see
https://github.com/puppetlabs/modulesync_configs/blob/master/config_defaults.yml#L42-L52
for the setup. docker doesn't cover windows though, I guess that'll have to
remain semi-manual. I hate requiring internal resources here though :-/
On 22 February 2017 at 14:15, Wilson McCoubrey<EMAIL_ADDRESS>wrote:

@DavidS https://github.com/DavidS It would be possible for linux based
modules that can be tested using docker and would involve copying an entire
module and its tests into this library, I cant think of a nicer way to do
it. For windows modules, the best way I can think of is to use the adhoc
pipeline before merging prs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/puppetlabs/beaker-module_install_helper/pull/11#issuecomment-281680502,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABsQK-h20NXDGj55xQQYWjAZSFmafYWks5rfEMDgaJpZM4MIl-_
.


reduce bundle sizes

Hi! I thought a good first task would be to see if the bundled JS can be reduced.
Here's a summary of my changes. Please let me know if you have any questions or if I should remove anything!
Miscellaneous

Minor README fixes after setting up the project
Fixed Python warning about yaml.load
Add .prettierrc and run Prettier on JS/HTML

Prettier is a tool that automates code formatting

Removed .vscode from .gitignore

Associate HTML files with Jinja
Added Jinja and Prettier as recommended extensions

Bundle Size

Added npm run stats which produces stats.json

You can plug the stats into something like Webpack Visualizer

Replaced bundled Mapbox with CDN links

mapbox-gl.js comprised 70% of the bundle, over 600k
Easier to cache separately (Mapbox's server is already a network dependency anyway)
Much less to download for new versions

Don't include all of @babel/polyfill

useBuiltIns: 'usage' includes polyfills as-needed
shippedProposals: true avoids transforming features that have been shipped to browsers for a while
corejs 3 for future-proofing

Results

Bundle with mapbox; 884.3k for main.js

Bundle without mapbox; 102.1k for main.js

Bundle without mapbox or entire @babel/polyfill; 65.6k for main.js

This looks great, thank you! Is it possible to separate out the formatting changes from those that reduce the bundle size?

For sure! I'll update this and make that a separate PR.

thank you--very excited about incorporating this! such a huge improvement

Fixed!

awesome, thanks :)


Integration Test - Release - 2019/10/10 01:23:10

Auto create for integration test. IssueCommandFlow

@PRMergerTest2 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Error installing on Windows 7

A user attempting to install reports,
"I'm attaching a screenshot of the error. I have uninstalled and reinstalled python(x,y) a couple of times and get the same error. "

The Could not load settings file. is concerning -- this seems similar to what @mayork experienced.

This is high priority.

I got a could not load settings file error but it was not accompanied by the import error. Are they getting the message from the python xy installer that there is already a version of python installed on their machine?

tracked down the setting file (first line of error dump) by running gpkit.build.build_gpkit(). Still vexed that this needs to be done. but still have the t_issue476 error

how is the line of code from gpkit.tests import t_issue476 getting run!?!? I don't think that's part of gpkit anymore.
Does pip have some super old version it's trying to install for windows?

Hmm, maybe, but that really shouldn't happen.

The work-around for this issue is to clone the gpkit repo and then run python setup.py install. Confirmed to work for OP.
@bqpd, if we can't fix this in the near future, I think we should modify http://gpkit.readthedocs.org/en/latest/installation.html#updating-gpkit-between-releases so that it suggests running python setup.py install instead of pip install for windows users (or for all users, if it's easier).

Will do. So python xy installs a systemwide 'python command?

I now have some in-person experience dealing with the Could not load settings file. message on multiple people's computers -- this seems to occur for every fresh windows install.
The workaround I use is:

start ipython
import gpkit (results in "Could not load settings file." message)
Check the value of gpkit.__file__
cd into the directory containing gpkit.__file__.
Run import gpkit.build; gpkit.build.build_gpkit()
Test install. Has worked in every case so far.

The key step seems to be navigating to the directory containing gpkit.__file__ before running the build script. @bqpd: if there is not a better way, could you update the docs to reflect the above? We'll be doing about 5 new windows installations tomorrow for another group of users so this is high priority.
Have not seen the t_issue476 crop up again -- appears to be isolated to one user. Re: what type of python python xy installs, not sure, and don't have a windows machine to test.

re: t_issue476, phew

I changed the title to make this focused on the t_issue476 problem. #509 captures the Could not load settings issue.

I just noticed that I have a t_issue476.pyc in my gpkit/tests/ dir. Wondered if it might be relevant to this issue.

Huh. I imagine it could.

This hasn't happened since February, I'm inclined to close this issue until it reoccurs.


No Output When Executing Precompiled Linux Version

Describe the bug

No Output When Executing Precompiled Linux Version
Steps to reproduce
curl -s https://github.com/alibaba/opentelemetry-go-auto-instrumentation/releases/download/v0.4.1/otel-linux-amd64 -o otel-linux-amd64
chmod +x otel-linux-amd64
./otel-linux-amd64 --help
Expected behavior
Command Execution Should Provide Clear Output
Actual behavior

opentelemetry-go-auto-instrumentation version
v0.4.1
Environment
Go:
1.22
OS:
Ubuntu 22.04.4 LTS
Additional context
No response

 I can not reproduce this issue, can you do hybrid compilation with this binary normally?

Nothing happened.

I 've reproduced your problem, use wget https://github.com/alibaba/opentelemetry-go-auto-instrumentation/releases/download/v0.4.1/otel-linux-amd64 instead of curl.

I do not know why the binary downloaded by curl does not work, strange...

I do not know why the binary downloaded by curl does not work, strange...

I 've reproduced your problem, use wget https://github.com/alibaba/opentelemetry-go-auto-instrumentation/releases/download/v0.4.1/otel-linux-amd64 instead of curl.

Thank you，it's ok. And I found that the issue might be related to redirects. Using the -L option in curl to follow redirects resolves the problem:

Does this tool have any specific requirements for the Go version and dependency library versions?

You can refer to https://github.com/alibaba/opentelemetry-go-auto-instrumentation/blob/main/docs/compatibility.md


Display specs from the specs repo

Prerequisite: stratum-mining/sv2-spec#37 needs to get merged first. Closes #76.

@dennisreimann is there a better way to render the index page of the specs? It's not really clear those are links, can we just nest chapters it in the sidebar?

@pavlenex I've adjusted the sidebar. We could have a custim index page for the specs, but I'd advise against that, so that we do not oveeride anything from the external repo and just display it as it is.


Heroku-style deploy hook

I wonder if we shouldn't use the same format as https://devcenter.heroku.com/articles/deploy-hooks#http-post-hook for the deploy hook.

:+1:


Html.ImageGetter

Hi! Thanks for your library!
I have a small question. Is there a way to set UIL as loader for Html.ImageGetter?
I can't figure out how to mix them.

How can one listen for clicks on the displayed images?

use onClickListener if imageView .. otherwise for Gridview etc use onItemClickListener .. google for how to implement them .. but if u are using a threading system to Display images directly using imageLoader.display ... then u got a different case , and far more explanations needed for that situation ..  plz mention which is your case ..

Ok, this is how I'm using it: I fetch and parse html from the web using jsoup. The parsed text contains img tags in random positions in the text. I load these images using user Borales's UilImageGetter.
So the images doesn't have ImageView and I'm using imageLoader.display ... .


18.09 image isn't forward compatible with 18.06

I am not sure if I should report it here or to busybox itself
$ docker run -it docker:18.06 /bin/sh
/ # timeout
BusyBox v1.29.3 (2019-01-24 07:45:07 UTC) multi-call binary.

Usage: timeout [-t SECS] [-s SIG] PROG ARGS

$ docker run -it docker:18.09 /bin/sh
/ # timeout
BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary.

Usage: timeout [-s SIG] SECS PROG ARGS

Notice -t argument. they dropped it, and it is positional now. Is there any chance this can be reverted?

This isn't really something we can change in the image, so you'd want to look upstream for information on this.
The inclusion of BusyBox in the image is from Alpine, so aside from using an older version of Alpine there isn't anything we can change in the Dockerfile
I didn't see anything related to timeout in https://busybox.net or https://git.busybox.net/buildroot/tree/CHANGES

I found it, it is an attempt to make timeout compatible with coreutils. I am not big fan of breaking changes on minor version bump, but I think we cannot do much about this :/ Thanks @wglambert.


v2: saved searches

Saved searches are the building blocks of a lot of things! For example, taking actions when the results of a saved search change or creating a shared source of truth
Requirements

[ ] this can be one table, with properties like id, user_id, timestamp, and query
[ ] for any logged-in user, any search should generate a new saved search and take people to the results page with the search ID, rather than quick-search/${this.searchTerm}/${this.county}
[ ] a "save search" endpoint which makes a name automatically and returns the new URL
[ ] a "share" button which copies the link to the user's clipboard + does mobile share stuff
[ ] we should keep track how many saved searches a given source is part of; sounds like an expensive query?
[ ] saved searches must have permalinks, e.g. https://pdap.io/search/UID123

these save the search query itself, not the exact results of a search at a particular time
unless a good argument exists otherwise, a permalink like this is more stable than URL parameters

[ ] we need an endpoint to get saved and recent searches by user
[ ] nice to have: also do #25 and show "starred" sources in a list

[ ]  we need an endpoint to get saved and recent searches by user

@josh-chamberlain I want to make sure I understand what is meant by 'saved and recent", since as previously mentioned, all user searches are considered saved. When we say recent, how recent are we talking? Are we talking within a time frame, or the last x searches?

@maxachis

the permalink is just the UID, so we should be able to generate it on the fly. Any reason we should store it?
a saved search ≠ its results; if you visit a saved search in a year, chances are the results will be different.

all searches are saved ("logged" in a way), but when we talk about a user's saved searches, we're talking about searches they have manually saved.
"recent" can mean the last, say, 10. we can change our definition of "recent" over time if we want.

@josh-chamberlain

the permalink is just the UID, so we should be able to generate it on the fly. Any reason we should store it?

I think that depends on how the saved queries work. I figured the search UIDs would be used to perform a lookup of the search in a database, retrieve the search parameters, and rerun them. Otherwise, how are we matching the UIDs with the particular search? And from where will the UIDs be generated?

the format of the saved query is up for debate, I think—and should be somewhat future-facing. see https://github.com/Police-Data-Accessibility-Project/data-sources-app/issues/14 for a more complete idea of all the things filters could contain. rather than a column for each search facet, maybe the query property should just be a JSON object which stores key: value pairs for different properties.

A JSON object might be the better option if we're intending to simply retrieve the search query and re-execute, rather than perform analyses on the parameters within the query itself (for example, how many people save queries for "Pittsburgh" as opposed to "Cincinnati"). The main challenges would lie in ensuring data integrity and backwards compatibility -- if our search logic changes at some point, we'd want to know if the previously saved searches are still valid (and if not, what to do with them -- perhaps convert them to a new format).
At some point in the future, MongoDB or similar NoSQL databases might be useful to consider, as those are designed for storing information with flexible schemas, such as JSON. However, that might be overkill at the current moment, especially since our needs for what to do with the queries is minimal. However, may be worth keeping in the back of our minds.

a saved search ≠ its results; if you visit a saved search in a year, chances are the results will be different.

@josh-chamberlain In which case, I may need clarification on what is meant by

we should keep track how many saved searches a given source is part of; sounds like an expensive query?

If I'm understanding this correctly, and we are looking to track how often a given search is returned in queries, we could create a table which increments every time a data source is retrieved in a search/saved search.

I think that depends on how the saved queries work. I figured the search UIDs would be used to perform a lookup of the search in a database, retrieve the search parameters, and rerun them. Otherwise, how are we matching the UIDs with the particular search? And from where will the UIDs be generated?

yeah, I think we're saying the same thing—I meant we don't need to store the url if we just know to use that route, but I'm splitting hairs 🤷

A JSON object might be the better option if we're intending to simply retrieve the search query and re-execute, rather than perform analyses on the parameters within the query itself (for example, how many people save queries for "Pittsburgh" as opposed to "Cincinnati"). The main challenges would lie in ensuring data integrity and backwards compatibility -- if our search logic changes at some point, we'd want to know if the previously saved searches are still valid (and if not, what to do with them -- perhaps convert them to a new format).

yes, I think logging is a separate concern (I think)
At some point in the future, MongoDB or similar NoSQL databases might be useful to consider, as those are designed for storing information with flexible schemas, such as JSON. However, that might be overkill at the current moment, especially since our needs for what to do with the queries is minimal. However, may be worth keeping in the back of our minds.

I think that depends on how the saved queries work. I figured the search UIDs would be used to perform a lookup of the search in a database, retrieve the search parameters, and rerun them. Otherwise, how are we matching the UIDs with the particular search? And from where will the UIDs be generated?

yeah, I think we're saying the same thing—I meant we don't need to store the url if we just know to use that route, but I'm splitting hairs 🤷

A JSON object might be the better option if we're intending to simply retrieve the search query and re-execute, rather than perform analyses on the parameters within the query itself (for example, how many people save queries for "Pittsburgh" as opposed to "Cincinnati"). The main challenges would lie in ensuring data integrity and backwards compatibility -- if our search logic changes at some point, we'd want to know if the previously saved searches are still valid (and if not, what to do with them -- perhaps convert them to a new format).

yes, I think logging is a separate concern. Backwards compatibility is definitely a consideration, but if we're keeping logs, I think it's OK to change the format. I made a new issue.

At some point in the future, MongoDB or similar NoSQL databases might be useful to consider, as those are designed for storing information with flexible schemas, such as JSON. However, that might be overkill at the current moment, especially since our needs for what to do with the queries is minimal. However, may be worth keeping in the back of our minds.

Absolutely—we could also use it to dump actual data if we stick some semi-predictable metadata to it and hook it up to elasticsearch.

If I'm understanding this correctly, and we are looking to track how often a given search is returned in queries, we could create a table which increments every time a data source is retrieved in a search/saved search.

That's a good idea! If we can't do it in a simple way it's probably not worth worrying about. I would call it a nice-to-have. Simpler, maybe just add a column? and in_searches last_in_search datetime. We could also just make that part of logging and keep it out of the db.

@josh-chamberlain So next question is related to the form of the UUID.
One thing I'll also need clarification on -- does a saved search, when accessed, merely provide a suite of results? Will anyone other than the user themselves know which saved searches are associated with them? Because that will affect how concerned we are about issues like a hacker trying to enumerate through all saved searches.
The way I see it, there are two options, and one option we definitely don't want to do.
🚫Serial IDs 🚫
Serial IDs can be guessed or enumerated through, meaning that an individual could use them to effectively find every single search in our database, or to identify a user associated with a suite of saved searches by cross-referencing with a number of saved searches clearly related to each other by the proximity of their serial ids. Bad.
Simple UUID
This is the easiest solution: We generate a random 128-bit UUID which is almost certainly mathematically impossible to ever be made again ever. This would look like 550e8400-e29b-41d4-a716-446655440000. Simple, but not exactly easy to share.
Bitly-style short ID
Generate a random short ID like 2KEOXNx. Much easier to share, however, has some issues:

Risk of generating the same ID twice increases -- still generally quite small, but we have to figure out how to handle them if and when they occur, which would become an increasing issue as the number of saved searches increases.
Increased risk of enumeration attacks: i.e., an enterprising hacker could try to generate all possible combinations to get access to all searches (or, alternatively, to overload the system by generating a bunch of saved searches at once). Can be averted with rate limiting and/or limiting the number of saved searches a user can have, but either way, more overhead.

@josh-chamberlain In which case, serial ids won't be a problem! I'll utilize serial ids as the solution.

@maxachis as I thought may happen, there are some changes to the plan which will make saved searches unimportant until we build advanced search filtering—which is maybe the least launch-critical feature—because we are going to stick to a URL format for search. People will only need to save searches if they make a search which can't be expressed via the URL, which they won't be able to do.

@josh-chamberlain In that case, I'll close the pull request I made for this just to avoid clutter. We can still use its material (if it's still relevant) when the time comes.


can we call c function pointer in CGO?

GO version 1.8
typedef struct test {
    int c;
    int (*add)(int a, int b);
} test;

func main() {
	ctest := C.test{}
	C.init_test(&ctest)

	// can we call c function pointer in CGO? something like this ?
	a := ctest.add(C.int(1), C.int(1))

	fmt.Println(a)
}

The issue tracker is not normally used for questions so please ask in the proper place next time. https://github.com/golang/go/wiki/Questions
But to answer your question, no you cannot call a C function pointer in Go. You need to pass the C function pointer into a C function which then calls the function pointer. This is explained in https://golang.org/cmd/cgo
package main

// typedef int (*intFunc) ();
//
// int
// bridge_int_func(intFunc f)
// {
//		return f();
// }
//
// int fortytwo()
// {
//	    return 42;
// }
import "C"
import "fmt"

func main() {
	f := C.intFunc(C.fortytwo)
	fmt.Println(int(C.bridge_int_func(f)))
	// Output: 42
}

There is nothing to fix here, so closing.


Emphasizing content also affects header

Description
The code below is sopposed to generate a page with its header in normal weight and content in bold, however the emphasis also affects the header.
#set page(header: [header])
#text(weight: "bold",[content])

This behavior can also be obseved when setting the text to italic as long as there's only a single emphasized line in the page. If any text are put above, below, before, after the piece of text that is emphasized, the page generated is normal.
Reproduction URL
No response
Operating system
Web app, Windows
Typst version

[X] I am using the latest version of Typst

Duplicate of #241.


Update LocalSend to Latest Version on Winget

The latest versions (v1.15 and v1.15.1) of LocalSend have been released on GitHub but are not yet available on Winget, which is still at v1.14.
I am aware of recent switch from MISX to EXE but could you please update the Winget package to the latest version? Keeping it up-to-date helps users who rely on Winget for software management.
Thank you for your hard work and for providing such a useful tool!

Generally speaking, Github releases are always several days ahead than most other channels.
You can follow https://github.com/microsoft/winget-pkgs/pull/163635 to see when it gets merged.


Update workflows to run weekly

Quick comment @JMGilbert - the failing test on this PR looks like it might be a different error than the one we know about? Can you confirm this is an expected failure? Otherwise looks good 👍

@JMGilbert can you leave a comment about what we decided to do with this PR? Thanks!

@JMGilbert can you leave a comment about what we decided to do with this PR? Thanks!

We wanted to wait until the tests were passing (when we merge dscim-v0.4.0) to merge it.


Moved API doc to top level, removed ref section and faqs

1. Issue, if available:
2. Description of changes:
This PR:

Remove the FAQs section of the docs.
Moves the "Provisioner CRD" section it up a level in the left nav and renames it "Provisioner API".
Deletes the now-empty Reference section and associated _index file.

Much of the FAQs was outdated or already covered somewhere else. I've gone through it and will add some of that content back into other parts of the docs.
3. Does this change impact docs?

[X] Yes, PR includes docs updates
[ ] Yes, issue opened: link to issue
[ ] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

it looks like there is one broken link due to the moved provisioner page

5:22:03 PM: ERROR 2021/11/27 23:22:03 [en] REF_NOT_FOUND: Ref "../../reference/provisioner-crd.md": "/opt/build/repo/website/content/en/pre-docs/cloud-providers/AWS/aws-spec-fields.md:7:23": page not found

can you fix this chris? The link should be

The [Provisioner CRD]({{< ref "../../provisioner-crd.md" >}}) supports defining

Yes. I can do that.

/assign


Expander with checkbox in the same column

I am working on data representation which should have expander and checkbox in the same column.Can someone help me on how to implement. Screenshot Attached

See this example: https://codepen.io/aaronschwartz/pen/WOOPRw?editors=0010

I see only checkbox in the first column. In my case i need expander and checkbox in the same column.

There are several points where you can customize the expander component to be whatever you'd like it to be, including overriding it completely:

The ExpanderComponent prop will globally override the expander component for the entire table.
The PivotComponent prop will override the expander component just for pivoted rows
The column.Expander property will override the expander component for a specific column
The column.Pivot property will override the expander component (for pivoted rows) for a specific column.

I would suggest adapting the codepen example above to use one of these component/renderer overrides to accomplish what you need.

Ok. Let me try using said options.


resnet 164 on cifar10

I have test the this repository on cifar10 with resnet164.

I have decreased lr at 160, 180, 200 epoch by 10. The begining lr is 0.1.
The best top1 accuracy is 94.77%, which is higher on than those in Kaiming's paper (error rate 5.46%).
I also found an interesting thing, if you train resnet164 with longer epochs at the first lr, the accuracy will be higher than resnet-1001 in Kaiming's paper. However, i haven't save the log. :cry:

this maybe useful when training imagenet i hear about some using mx.lr_scheduler.MultiFactorScheduler(step=[60*epoch_size, 70*epoch_size, 80*epoch_size], factor=0.1), and this can lead a good result when running longer before first decrease lr.

@austingg how fast is resnet on cifar10? i can borrow your several ec2 g2.8x machine if you want to do more experiments. a g2.8x roughly equals to one k40.

@mli  I use two gtx 1080 gpus. With batchsize 128,  the speed is about 700 samples/sec.
larger batchsize, higher speed, but larger batchsize may affect the final performance.
INFO:root:Epoch[146] Batch [50]	Speed: 740.35 samples/sec	Train-accuracy=0.959375
INFO:root:Epoch[146] Batch [100]	Speed: 719.88 samples/sec	Train-accuracy=0.956250
INFO:root:Epoch[146] Batch [150]	Speed: 719.03 samples/sec	Train-accuracy=0.955937
INFO:root:Epoch[146] Batch [200]	Speed: 720.36 samples/sec	Train-accuracy=0.952812
INFO:root:Epoch[146] Batch [250]	Speed: 720.53 samples/sec	Train-accuracy=0.953281
INFO:root:Epoch[146] Batch [300]	Speed: 716.25 samples/sec	Train-accuracy=0.957344
INFO:root:Epoch[146] Batch [350]	Speed: 700.23 samples/sec	Train-accuracy=0.958281
INFO:root:Epoch[146] Resetting Data Iterator
INFO:root:Epoch[146] Time cost=69.630

one epoch costs about 70s. So 200 epochs cost roughly 4 hours.

@tornadomeet @mli
This time I train resnet164,  with longer epochs (300), and drop lr at 220, 260, 280.
the best error rate is 4.68%,  higher than resnet1001 reported on Kaiming's paper (4.96%). Interesting!

@tornadomeet @mli
This time I train resnet164, with longer epochs (300), and drop lr at 220, 260, 280.
the best error rate is 4.68%, higher than resnet1001 reported on Kaiming's paper (4.96%). Interesting!

i don't konw you have notice that for the cifar10 the paper split 5k to val test so finaly paper used 45k data to train.


Network variables with list variables don't work

Version: 1.0.6a
Syntax:
on script load:
	clear {network.afk::joshwenke}         <-- this DOES work
	clear {network.afk::*}         <-- doesn't work, so I tried the below
	loop network variable {network.afk::*}:       <-- still doesn't work
		clear network variable {network.afk::%loop-index%}

Error is "Network Variables must be in a variable format!"

It works on some objects but others it doesn't, it's very strange and hard to implement. It's been on the todo list in the progress tab https://github.com/TheLimeGlass/Skungee/projects/1
I will look into fixing it soon.


Use cocopods pod 'AFNetworking', '~ > 3.0, appear the following error, how to solve

Use cocopods pod 'AFNetworking', '~ > 3.0, appear the following error, how to solve
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
NSMutableDictionary *paramdic = [NSMutableDictionary dictionary];
[paramdic setObject:self.monthstr forKey:@"A"];

[paramdic setObject:@"41010000" forKey:@"B"];

[paramdic setObject:@"161110094101795003" forKey:@"AC"];

[manager POST:kgetmonthproductdataAPI parameters:paramdic progress:^(NSProgress * _Nonnull uploadProgress) {

} success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {

} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {

}];

Hi shanyulaile, did you try deleting and reinstalling your pods?

No delete and reinstall the my' pods

For general help, please ask on StackOverflow.


User can open a .chk file from file tree, and it should be open in YAML mode

What should it display here? CHKware / chkware?

chkware


Populate extension images

We can do this in several ways, and should do some of them:

GitHub repository image (https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/customizing-your-repositorys-social-media-preview). This is almost great, but the images are intended to be rectangular, and with text, such as this one
Repository owner's image, usually an org logo
New, manually populated, field in the extension yaml (but where should the image live? it needs to be a stable URL. git is a possibility, but is there something better?)

Extensions in the quarkus repo will need a manual override to avoid a sea of Quarkus logos appearing on the main page. However, we don't want to force people to manually enter information that's already available elsewhere.
I think we may be able to mostly do the right thing for the GitHub repository image. If you look at something like this, it's not suitable:

But something like this should be used.

The difference is one is set by the user, and one is the github default. I don't think the github api distinguishes between the two, but we can use some heuristics. In particular, we'd only want to show images with no text. This is something we can detect.
We also would want to crop. https://www.npmjs.com/package/smartcrop can probably help with this.

[X] Use GitHub org's avatar as a default
[X] Get avatar from GitHub API, rather than guessing it
[X] Use social media preview, if it has no text and crops well
[ ] Honour overrides in extension yaml
[ ] Document how to set an image (https://quarkus.io/guides/extension-metadata#quarkus-extension-yaml, anywhere else?)

And it's live, with the github option:


[GLUTEN-3559][VL] Enable GlutenStringFunctionsSuite

What changes were proposed in this pull request?
The Gluten String Functions Suite run successfully
(Fixes: #3559 )
How was this patch tested?
Ran the tests locally

@JkSelf @zhouyuan Please take a look

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_4552_time.csv
log/native_master_01_28_2024_d041ce584_time.csv
difference
percentage

q1
32.56
32.99
0.428
101.32%

q2
22.14
23.85
1.708
107.71%

q3
36.14
37.74
1.592
104.41%

q4
37.91
38.98
1.072
102.83%

q5
70.44
67.95
-2.498
96.45%

q6
6.83
7.02
0.196
102.88%

q7
82.67
80.87
-1.802
97.82%

q8
84.12
84.35
0.229
100.27%

q9
117.79
121.55
3.762
103.19%

q10
41.96
43.06
1.098
102.62%

q11
19.81
20.27
0.465
102.35%

q12
25.25
27.38
2.134
108.45%

q13
46.17
45.45
-0.721
98.44%

q14
15.66
22.94
7.289
146.56%

q15
27.44
28.71
1.273
104.64%

q16
14.23
14.08
-0.149
98.95%

q17
98.17
102.67
4.509
104.59%

q18
145.89
148.89
2.998
102.06%

q19
13.56
12.47
-1.088
91.98%

q20
26.07
26.11
0.046
100.18%

q21
222.25
226.03
3.778
101.70%

q22
13.77
13.55
-0.226
98.36%

total
1200.84
1226.93
26.093
102.17%


How to use ContextLabel inside TableView that associates with a UITapGestureRecognizer

Hey, I have one question about how to use this context label.
Now, I have a UITableView, each cell contains a ContextLabel. A UITapGestureRecognizer is added to the UITableView so that I can add tap gesture to cell's subview. Now the context label does not response any more. What would be the correct way to do this.
Thank you in advance.

Without knowing your code ... have you set the UIGestureDelegate with gestureRecognizer(_:shouldRecognizeSimultaneouslyWithGestureRecognizer:)?


Fix the Complete state filtering using filter masks

When one filters a complete state with a filter mask the resulting object currently contains default values for all other values. This can be misleading as the actual value could differ from the default one. The proto encoding supports empty attributes (everything is optional), but we have defined that a workload spec which is part of a state in the complete state must always have some attributes. Currently this is handled by not defining a serde default for them. Even if we change this logic, and return proto objects with all other attributes empty we risk that somebody implementing against the protocol in her language of choice does handle all optional values with defaults.
As a workaround the filtering for get state is now disabled with #191. It is to be defined what the correct behavior is before main can be released as v0.3.
Current Behavior
Default values were returned until now for the unrequested values which were again stripped in the CLI. The ControlInterface delivers possibly wrong default values.
Expected Behavior
TBD
Steps to Reproduce

Start a server with a config
2.request complete state using filter mask that requires some specific attribute of a workload spec.

Context (Environment)
All
Logs

Additional Information

Final result

Fix the filtering of the lest level for the WorkloadStatesMap s.t. a filter workloadStates.agent_B.hello1.9f4dce2c90669cdcbd2ef8eddb4e38 d6238abf721bbebffd820121ce1633f705.state works. The output can be left in capital camel case for now, e.g., Running
Fix the unit tests for the filtering
Fix the other unit tests
check coverage for the unit tests
check the output of the ControlInterface (it should return proper objects when filtering and not some strange default values)

After considering some pros and cons, we will go for not considering the required for input values when the filter mask is used. This means that proto will not contain some optional attributes and if a user builds an object from the filtered response, the object will not be usable for a set state command without a filter mask or as a manifest in apply or the startup config.
Internally we have to take care to not try converting the filtered response to a real object. We should push it as is further down the chain.

The filtering was completely removed removed with 479548c52747f9a0e5759079c2006a3f6a4f2f8d
filtering.patch

After considering some pros and cons, we will go for not considering the required for input values when the filter mask is used. This means that proto will not contain some optional attributes and if a user builds an object from the filtered response, the object will not be usable for a set state command without a filter mask or as a manifest in apply or the startup config.
Internally we have to take care to not try converting the filtered response to a real object. We should push it as is further down the chain.

I think it would be best to not use our internal representation in the Ankaios CLI at all. It would be easier to convert directly from the proto objects to serde_yaml/serder_json objects and vice versa. For the get state, the Ankaios CLI should directly convert the proto objects to json. For set state, the Ankaios CLI should directly convert the user input, which is in yaml, to proto objects.
Similar for the server. For get state the Ankaios server first converts the internal representation into a serde_yaml::Value object and applies the field mask to this object (as it is already implemented). Then, the Ankaios server should convert this serde_yaml::Value object directly into the proto object. For set state the Ankaios server first converts the old internal state into the a serder_yaml::Value object and also converts the incoming state directly from proto into a serde_yaml::Value object. The old state and the incoming state are combined according to the field mask. The new state object is then converted to the internal representation again.
To be able to directly use serde on the proto object, we need to configure prost to support serde.

This here is needed for the proper functioning of #22. Without the filtering, the get state with a filter mask and scoped read permissions makes no sense as the complete object is returned in any case.

I tried this approach and removed all internal response representation, trying to return a yaml serialized file generated from the proto generated Rust objects. It kind of works, but a lot of attribution is needed at the build level (tonic_build) to get the serde attributes correctly in order to get the expected outcome.
An alternative would be to write an custom Rust object (or generate it using yaml/json schema) and manually (or as proposed by Christoph using a macro) add conversions between the objects.

I have resolved the TODOs in the production code.

Gabi is testing point 5, the filtering over the control interface.

The control interface examples must be adapted as well, because due to the changes in the proto files they do not work anymore at the moment. I have adapted one example in a pair programming session with Gabi, and the other three examples will be fixed by Gabi the same way. We tested the Filtering with different filter masks for the cpp_control_interface example and the filtering works now.
There is only one thing left: If you declare a custom user type in the proto file then you must construct it inside a workload even if you do not fill or use that type:
Tags and Dependencies must be allocated and specified even if they are not used (nothing inserted into):

If you do not construct those types the pipes_channel_task.rs getting the message from the control interface would reject the whole object with error "missing Tags" or "missing Dependencies".

The control interface examples must be adapted as well, because due to the changes in the proto files they do not work anymore at the moment. I have adapted one example in a pair programming session with Gabi, and the other three examples will be fixed by Gabi the same way. We tested the Filtering with different filter masks for the cpp_control_interface example and the filtering works now.
There is only one thing left: If you declare a custom user type in the proto file then you must construct it inside a workload even if you do not fill or use that type: Tags and Dependencies must be allocated and specified even if they are not used (nothing inserted into):
If you do not construct those types the pipes_channel_task.rs getting the message from the control interface would reject the whole object with error "missing Tags" or "missing Dependencies".

I have fixed it, the conversion function from Workload proto object into internal StoredWorkloadSpec object was expecting values for Tags, Dependencies and RestartPolicy. I have adapted the conversion function. Now the code can be removed in the control interface example, which I have already done now.

All done here.


section 4.3.5 on Data Ownership

This section should be good and stable. Nevertheless, we should review it and add a definition of Data Sovereignty here.

Closed by #193


Docker构建报错failed to fetch oauth-token - Steven | java

https://www.shifpeng.cn/cn/Docker-构建报错failed-to-fetch-oauth-token/
人最大的修养就是知人不评人

It looks like you have buildkit enabled in your docker configuration. Buildkit is not stable yet and can cause these type of problems. Please try it again with buildkit disabled.
In Linux, using environment variables:
export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0

In Windows and macOS, start the Docker Desktop application, go to Settings, select Docker Engine and look for the existing entry:
"buildkit": true

Change this entry to disable buildkit:
"buildkit": false

Then click on Apply & Restart and try it again.