Add ability for parsing JSON object (as a dictionary) from presence message

@lukasz-szyszkowski I'm struggling to understand the problem that this PR is solving, and there's no explanation in the PR description or commit messages. Please could you explain a little?

@lukasz-szyszkowski I'm struggling to understand the problem this PR is solving, and there's no explanation in the PR description or commit messages. Please could you explain a little?

I've linked an issue, but I agree it takes time to dig into the problem. Here is the comment on what's wrong https://github.com/ably/ably-asset-tracking-android/issues/535#issuecomment-993469926


Update README.md

Static ARP is no longer a requirement.

@nflath to LGTM.
@liulk to approve the merge.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 70.423%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1050

Relevant Lines:
1491

💛  - Coveralls

LGTM


I unpacked reddcoin-<IP_ADDRESS>-linux.tar.gz - Now what?

I have unpacked reddcoin-<IP_ADDRESS>-linux.tar.gz - Now what? There is no obvious "run me" file. My guess is that I need to execute one of these files:
reddcoin-<IP_ADDRESS>-linux/bin/64/reddcoin-cli
reddcoin-<IP_ADDRESS>-linux/bin/64/reddcoind
reddcoin-<IP_ADDRESS>-linux/bin/64/reddcoin-qt
reddcoin-<IP_ADDRESS>-linux/bin/64/test_reddcoin
reddcoin-<IP_ADDRESS>-linux/bin/64/test_reddcoin-qt
But which?
Edit: I already loaded the whole blockchain in the windows version of the wallet. Can I re-use those data here in Linux so I don't need to spend another 26 hours of high CPU?
PS: I use Ubuntu 18.04. The wallet link for ubuntu on https://reddcoin.com/get-started/ did not work in Firefox ESR, but it works in the newest Firefox.

It's ./reddcoin-qt if you want a graphical user interface. Suppose so :)
And yes, you could probably just move the contents from %APPDATA%/Reddcoin to ~/.reddcoin, but then you'd better re-index them while starting the wallet: ./reddcoin-qt -reindex.
Note: this -index option is only needed just once. After the wallet is fully started and reindexed, you can leave out that option the next time.

Thank you! Now I have tried doing that, but reddcoin-qt doesn't seem executable(?)
Here is a copy of my commands in Terminal:
henrik@Henrik-L570:~$ cd .reddcoin
henrik@Henrik-L570:~/.reddcoin$ dir
blocks	chainstate  db.log  debug.log  peers.dat  reddcoin-qt  wallet.dat
henrik@Henrik-L570:~/.reddcoin$ reddcoin-qt -reindex
reddcoin-qt: command not found
I guess I am still a linux-beginner, so what am I doing wrong here?

Welcome to linux :) Linux will only execute files from the %path%, not the current directory. This is a big difference to Windows. "./" references the current folder. So if are in /home/me/.reddcoin already, just type "./reddcoind".
If you're on the command line you'll want to use reddcoind and reddcoin-cli.

Setup your config file /home/me/.reddcoin/reddcoin.conf
google vi or pico for info on how to edit files in linux

Start the server "./reddcoind 2>&1 &"

Interact with the server using reddcoin-cli "./reddcoin-cli"

Now you lost me... I was pointed to reddcoin-qt because it has a GUI. Why do you want me to use the others? Can't I start an application with a GUI from Terminal?

Because you said you are new to linux, I assume you have a graphical environment on a desktop PC or laptop. Like the Ubuntu desktop or something like that.
In that case you can use the ./reddcoin-qt for the GUI if you are not that familiar with the command line or just want to use the GUI because that's easier.
Personally I would only use the commandline if the OS does not have a graphical user interface or in case the resources are somewhat scarce.

OK. Thank you - but here comes the next problem - from Terminal:
henrik@Henrik-L570:~/.reddcoin$ ./reddcoin-qt -reindex
./reddcoin-qt: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
How do I install the missing library?

Try installing QT like: sudo apt install libqtgui4

OK. Now reindexing is running!
Terminal-command: ./reddcoin-qt -reindex
GUI saying: "Reindexing blocks on disk...", "4 years and 10 weeks behind", and "9 active connections to Reddcoin network".
For some reason it seems the reindexing process has deleted 1.6 GB of the 4.7 GB that was generated before I moved it from Windows 7 to Ubuntu 18.04.
Thanks for now. :-)

Nice! The indexing will take some time, just let it go :)

I wish someone would just break down and make a video on this!
It's really difficult to pursue a coin, when they can't get a instruction "HOW TO" because this is not as clear as it seems.
MY 2 SATOSHIS

It is more or less the same for Bitcoin on Linux. That's doing ok ;-)


Bucket upload folder still not unique

public String uploadAPKsToBucket() {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd-hh-mm-ss");

This will break the moment two PRs are submitted at the same time. This isn't unusual with a large team. If you checkout the Google cloud Python SDK code, they add some random numbers in addition to the timestamp.

We also add a hash code of the project name.

"_" + getConfigurator().getProjectNameHash()

the project name is static so that's not helpful? Is there a reason for not adopting the same folder naming strategy as the official SDK?

I just need to understand the issue :) If it's the same project team
working on a project then why would the bucket name need to be unique? Our
thought is that it should be unique per project.
On Wed, May 31, 2017 at 11:31 AM, bootstraponline<EMAIL_ADDRESS>wrote:

the project name is static so that's not helpful? Is there a reason for
not adopting the same folder naming strategy as the official SDK?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/TestArmada/flank/issues/16#issuecomment-305276790,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKGpSa9pmwadwimZrMOzR8ITcXWZoKyks5r_bH3gaJpZM4NsA3C
.

I just need to understand the issue :)

here is the issue:
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# code from api_lib/firebase/test/arg_validate.py
def _GenerateUniqueGcsObjectName():
  """Create a unique GCS object name to hold test results in the results bucket.

  The Testing back-end needs a unique GCS object name within the results bucket
  to prevent race conditions while processing test results. By default, the
  gcloud client uses the current time down to the microsecond in ISO format plus
  a random 4-letter suffix. The format is: "YYYY-MM-DD_hh:mm:ss.ssssss_rrrr".

  Returns:
    A string with the unique GCS object name.
  """
  return '{0}_{1}'.format(datetime.datetime.now().isoformat('_'),
                          ''.join(random.sample(string.letters, 4)))

I'm happy to submit a pull request if you'd like. The fix you submitted (new Random().nextInt(50000000) ) works but I would prefer to match the SDK in this case.

2017-05-31_17:19:36.431540_hRJD
2017-05-26_03:50:54.863502_AQmT
2017-05-30_13:33:02.233525_fTnd

I would rather not write scripts to handle a special naming convention just for flank. Hope that makes sense.
Thanks for all your work on the test runner. I appreciate the bug fixes and new features.

Please submit a PR so it looks exactly as you want. Thanks for sharing
ideas and reporting issues.
On May 31, 2017 1:14 PM, "bootstraponline"<EMAIL_ADDRESS>wrote:

I just need to understand the issue :)
here is the issue:
Copyright 2017 Google Inc. All Rights Reserved.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at##    http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.## code from api_lib/firebase/test/arg_validate.pydef _GenerateUniqueGcsObjectName():
"""Create a unique GCS object name to hold test results in the results bucket.  The Testing back-end needs a unique GCS object name within the results bucket  to prevent race conditions while processing test results. By default, the  gcloud client uses the current time down to the microsecond in ISO format plus  a random 4-letter suffix. The format is: "YYYY-MM-DD_hh:mm:ss.ssssss_rrrr".  Returns:    A string with the unique GCS object name.  """
return '{0}{1}'.format(datetime.datetime.now().isoformat(''),
''.join(random.sample(string.letters, 4)))
I'm happy to submit a pull request if you'd like. The fix you submitted (new
Random().nextInt(50000000)) works but I would prefer to match the SDK in
this case.
2017-05-31_17:19:36.431540_hRJD
2017-05-26_03:50:54.863502_AQmT
2017-05-30_13:33:02.233525_fTnd
I would rather not write scripts to handle a special naming convention
just for flank. Hope that makes sense.
Thanks for all your work on the test runner. I appreciate the bug fixes
and new features.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/TestArmada/flank/issues/16#issuecomment-305303582,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKGpcMGlZqvQkBFG9SncPIr0rwT3bwyks5r_co-gaJpZM4NsA3C
.


Add device_name argument to create_event method

Description

Add device_name argument to create_event method, to correspond with REST API's request signature

I think we should change this from a bug to a feature request since the consensus of our conversation about this is that a lot of other changes in console and DP would be necessary to implement this consistently in a way that makes sense to users.

@foxymiles - Makes sense; updated to a feature request.


Drop python 2.6.9 due to issues with urllib3 ssl

See https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning

If you do this, then no one will be able to test anything with python 2.6. Which maybe you want to do, idk? For most of my projects this would mean I'd drop 2.6 support, which maybe isn't unreasonable?
That said, AFAIK 2.6 is still pretty widely used, /cc @dstufft

My latest numbers are from April which showed at least 10% of all of PyPI's downloads were from Python 2.6. There's a good chance some significant amount of the Unknowns are from 2.6 as well.

I would prefer it if you didn't remove 2.6 right now, but if you'd like more data (and particularly, more recent data) I can give you access to the raw logs.

@dstufft do you know of a workaround?  I'm getting InsecurePlatformWarning when installing pip, which aborts the whole Chef run.  AFAICT I'd have to modify whatever is importing and using urllib3 in order to get around it.

A warning aborts the chef run? That shouldn't stop anything from running, it's just a warning. Do you have full output available you can show me?

[fresh output accumulates]

INFO: Processing execute[python-build 2.6.9 /opt/python/2.6.9] action run (python::pyenv line 68)
INFO: execute[python-build 2.6.9 /opt/python/2.6.9] ran successfully
INFO: Processing link[/opt/python/2.6.9/bin/python2.6.9] action create (python::pyenv line 73)
INFO: link[/opt/python/2.6.9/bin/python2.6.9] created
INFO: link[/opt/python/2.6.9/bin/python2.6.9] owner changed to 1001
INFO: link[/opt/python/2.6.9/bin/python2.6.9] group changed to 1001
INFO: Processing python_virtualenv[python_2.6.9] action create (python::pyenv line 81)
INFO: Creating virtualenv python_virtualenv[python_2.6.9] at /home/travis/virtualenv/python2.6.9
INFO: Processing execute[virtualenv --distribute --python=/opt/python/2.6.9/bin/python /home/travis/virtualenv/python2.6.9 ] action run (/tmp/chef-stuff/travis-cookbooks/ci_environment/python/providers/virtualenv.rb line 28)
INFO: execute[virtualenv --distribute --python=/opt/python/2.6.9/bin/python /home/travis/virtualenv/python2.6.9 ] ran successfully
INFO: Processing link[/home/travis/virtualenv/python2.6] action create (python::pyenv line 96)
INFO: link[/home/travis/virtualenv/python2.6] created
INFO: link[/home/travis/virtualenv/python2.6] owner changed to 1001
INFO: link[/home/travis/virtualenv/python2.6] group changed to 1001
INFO: Processing execute[install packages 2.6.9] action run (python::pyenv line 115)
INFO: execute[install packages 2.6.9] ran successfully

@dstufft @alex thank you for participating in today's episode of That's Funny, Now It Works!

If you were trying this the other day, there was an error that made get-pip.py fail on Python 2.6 because of release of a dependent project on PyPI that was corrected.

@dstufft confirm, it was a few days ago! MYSTERY SOLVED


Unbreak stdenv

Motivation for this change
Solves the nix-env and Darwin nix-shell issues. No evals so far! After this I'll merge with master, basically with -Xours.
Things done
Please check what applies. Note that these are not hard requirements but mereley serve as information for reviewers.

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built stdenv on platform(s)

[x] NixOS -- old version worked
[x] macOS -- old version worked
[ ] Linux

[x] Tested nix-shell on Darwin -- old version worked
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Unfortunately declare -g is new syntax, so I'll have to use eval there instead.

Ok it builds and I tested nix-shell. Merge?

Sure!


TypeError: Expected "platformId" to be a string

Hello,
I've got the library running (0.0.14) but I'm getting the following error:
Uncaught TypeError TypeError: Expected "platformId" to be a string
    at <anonymous> (\node_modules\path-to-regexp\dist\index.js:237:19)
    at request (node_modules\@fightmegg\riot-api\dist\cjs\index.js:76:30)
    at getIdsByPuuid (\node_modules\@fightmegg\riot-api\dist\cjs\index.js:221:66)
    at <anonymous> (\index.js:13:42)

Code:

    import { RiotAPI, RiotAPITypes, PlatformId } from @fightmegg/riot-api
(async () => {
    const rAPI = new RiotAPI(RGAPI-xxxxxxxxxxxxxxxxxxxxxxxxx);
//Got Summoner
 let matchList = await rAPI.matchV5.getIdsByPuuid(PlatformId.AMERICAS,summoner.puuid, { start: startNumber, count: 5, queue: QUEUE}); //QUEUE = 420 ( RANKED 5x5 Solo)
    console.log(matchList);
})()

Issue resolved, it is supposed to be 'cluster' not 'region' or 'platformId'

I stand corrected, based on the feedback, You should be passing PlatformID, puuid, params. Although when I do, I get the same error mentioned above.

@atomicalsoftwares it looks like yoiu are calling the method incorrectly. All parameters are passed as a single object, an example can be found in the E2E tests: https://github.com/fightmegg/riot-api/blob/master/tests/e2e/match_v5.test.ts#L14

Just closing issue, feel free to re-open if needed


Improve "you must designate a preview_id for each KV namespace" error to direct users to a solution

💡 Feature request
With the introduction of preview namespaces, users may run wrangler dev or wrangler preview and see an error like Error: In order to preview a worker with KV namespaces, you must designate a preview_id for each KV namespace you'd like to preview.
However, we've heard from users who weren't sure what to do next: how do you designate a preview_id for each KV namespace?
We should try and see if there's an easy way to make that error message more instructive about how to solve the problem, by directing the user to add a preview id in wrangler.toml, or checking out the docs, or something else.

Sorry for barging here afterwards like this, but I opened a SO question about this very thing at https://stackoverflow.com/questions/63332306/what-are-cloudflare-kv-preview-ids-and-how-to-get-one.
The problem is that it's not clear what these identifiers really are and how they relate to what gets deployed. It appears the official documentation at https://developers.cloudflare.com/workers/tooling/wrangler/configuration/#kv_namespaces.
Could someone clarify here or in SO, please? :)

I've answered on the SO post but I'll xpost here:

wrangler asks to add a preview_id to the KV namespaces. Is this an identifier to an existing KV namespace?

Yes! The reason there is a different identifier for preview namespaces is so that when developing with wrangler dev or wrangler preview you don't accidentally write changes to your existing production data with possibly buggy or incompatible code. You can add a --preview flag to most wrangler kv commands to interact with your preview namespaces.

For your situation here there are actually a few things going on.

 If all you need is Workers Sites, then there is no need at all to specify a kv-namepsaces table in your manifest. That table is for additional KV namespaces that you may want to read data from or write data to. If that is what you need, you'll need to configure your own namespace and add id to wrangler.toml if you want to use wrangler publish, and preview_id (which should be different) if you want to use wrangler dev or wrangler preview.

I've answered on the SO post but I'll xpost here:

wrangler asks to add a preview_id to the KV namespaces. Is this an identifier to an existing KV namespace?

Yes! The reason there is a different identifier for preview namespaces is so that when developing with wrangler dev or wrangler preview you don't accidentally write changes to your existing production data with possibly buggy or incompatible code. You can add a --preview flag to most wrangler kv commands to interact with your preview namespaces.
For your situation here there are actually a few things going on.

 If all you need is Workers Sites, then there is no need at all to specify a kv-namepsaces table in your manifest. That table is for additional KV namespaces that you may want to read data from or write data to. If that is what you need, you'll need to configure your own namespace and add id to wrangler.toml if you want to use wrangler publish, and preview_id (which should be different) if you want to use wrangler dev or wrangler preview.

Can this please be added to the docs in a more conspicuous/obvious way ? I mean the portion that implies that one should add the --preview flag when creating the KV namespace to create the preview ID as well

Thanks. It works I Run command with  --preview.

"wrangler kv:namespace create --preview "Boston"

🌀Creating namespace with title "my-app-Boston_preview"
✨  Success!
Add the following to your configuration file in your kv_namespaces array:
{ binding = "Boston", preview_id = "479aef3d53b14a718ee9dfed30797cc2" }"


docs(misc/FAQ): Correcting Misspell

The HTML brackets are still just 'Angular' :-)
Fixing over-correction made in this PR

I signed it!

I have a few remarks regarding the original text, so it's not related to your change in particular.
What's the use of mentioning

Because HTML has AngularJS brackets and "ng" sounds like "AngularJS" ?

Being familiar with both AngularJS and Angular arises following questions for me:

What are AngularJS brackets ?
What are Angular brackets ?
How do both brackets differ ?
Why are the brackets even mentioned when explaining why the name is AngularJS ? Afaik AngularJS isn't named AngularJS just coz of the brackets. (and the brackets are identical in Angular ...)
How does ng sounds like AngularJS.

so it's not related to your change in particular.

I'll give it a try anyway -

What are AngularJS brackets ?

No such thing. It's a mistake from when all 'Angular' strings were replaced by 'AngularJS'

What are Angular brackets ?

These are <>

How do both brackets differ ?

The first does not exist, the former does exist

Why are the brackets even mentioned when explaining why the name is AngularJS ?

Because the angular brackets in HTML were the insperations for the name Angular.

Afaik AngularJS isn't named AngularJS just coz of the brackets. (and the brackets are identical in Angular ...)

See above...

How does ng sounds like AngularJS.

It doesn't. It sounds like plain 'Angular', but i didn't feel comfortable changing that

Aren't we talking about Angle brackers (see: https://en.wiktionary.org/wiki/angle_bracket )?

angle-angular, tomayto-tomahto

I honostly didn't place that comment as a tomayto-tomahto remark.
But I do see what you mean now: An Angle is Angular, hence Angular brackets.
Makes totally sense. Thanks for clarifying @IdanCo .
I do think having this in the faq is confusing when it comes to AngularJS vs Angular, but this note in the FAQ has nothing to do with AngularJS vs Angular.

Merged with "angular" - Thanks for the PR!


Topics parsing

I have a topic with name "display_targettemperature" and it is ignored. Other topics without "_" work. Is there any limitation here? Special characters in the name of the topics?
Thanks

I am using wildecards.
Original topic is: "node/kitchen/1234/display_targettemperature" and I am using "node/+/+/+", but I only miss the topic with "_"

if you remove the - does it work? (just for testing)

Yes

@jsponz could you pull latest commit and try again?

sure. I will test it this afternoon at home :-)
Thanks!

Same result :-(

@jsponz Culd you tell me how you configured that map? A screenshot or/and the json export would be good

@jsponz I'm not able to reproduce your bug, are you sure you added the map to the client? Maybe you have created the map but you forgot to assign it to client

See below.
Thanks!

@jsponz Do you get a log when you receive the message on the console?

Yes, but I need to check and get back to you.

Because I have created the exactly same map on my instance and it is working, dunno why it's not on yours. I have also released a new version, give that a try too

Could you send me your screenshots? I mean when you configure my settings. Thanks!
I am trying with the last version (1.2.5)

Could you send me your screenshots? I mean when you configure my settings. Thanks!

It's exactly the same as yours. I sugges to try to remove all maps and use just the one that you need to see if it's something weird caused by others, also you could also try to recreate that map and double check the topic is correct. For what I saw there is not reason that could cause that behaviour

Ok. I will do it and get back to you.
Thanks!


Events appear on wrong day

Hi! As mentioned before, I'm new to KaiOS and to greg, and I've really appreciated it over the native calendar app. Thanks!
I noticed that events sometimes appear on the wrong day. Here's an example:

Above, it shows "AidData Summer 2011 Lunch" coming up tomorrow, March 28. In fact, there were events like that in the long past:

But, not tomorrow:

Do you have a guess why this might be happening? I'd be happy to try fixing it but I'd probably have better luck if you have any clues to share 😅

Update: maybe it has to do with how recurring events are rendered. I tried navigating back to 2011 to see if it appeared in the correct place, and while I was on my way there, I noticed that this event is also displayed on Thursdays in 2013:

For reference, here's the configuration of this event in Google:

Maybe the "5 times" part isn't applying?

This is where the “cells” are styled:
https://github.com/strukturart/greg/blob/aaca714763b333ba392572a42f979adca01c7e25/application/app.js#L1200
and here the events are parsed:
https://github.com/strukturart/greg/blob/aaca714763b333ba392572a42f979adca01c7e25/application/sw.js#L59

Apparently the number of repetitions is ignored, could you please test whether the problem is solved by specifying an end date?


Added Julia

created a folder for Julia for neural networks. Made a basic feedforward neural network architecture in Julia along with an RNN architecture. Updated README.

Pls give a star to this repo if you had fun contributing to this repo

starred, thank you very much. Also would look into more ways of implementing neural nets in Julia and would follow the python NN structure.


Fix compatibility with Conan 2.x

This PR makes a few small changes to conanfile.py that make it work with Conan 2.x in my basic testing. I don't think we should recommend 2.x yet. It requires a small change to the conan export instructions, and the conan profile update instructions are completely invalid. Builders will have to manually edit their profiles to make changes. 1.x support is unaffected.
Closes #4926, #4990

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.0%. Comparing base (b84f7e7) to head (241ec91).
 Consider uploading reports for the commit 25ee45a to get more accurate results

Additional details and impacted files

@@            Coverage Diff            @@
##           develop   #5001     +/-   ##
=========================================
- Coverage     71.0%   71.0%   -0.0%
=========================================
  Files          796     796
  Lines        66727   66727
  Branches     10978   10974      -4
=========================================
- Hits         47347   47344      -3
- Misses       19380   19383      +3

see 2 files with indirect coverage changes


add retry when region merge or split

Signed-off-by: marsishandsome<EMAIL_ADDRESS>During ingest we will let TiKV under Import Mode, also we will let PD under pause region merge status.
But we cannot assume that regions never merge or split, cause it will happen under some conditions, e.g. split region is called.
So we need add retry logic here.

looks good


Runtime Error while installing

Hi , I installed your work in other device(win10 gtx2090 vs2019 python3.7 torch 1.6.0 cuda 10.1) and I ecounteered some problems. Do you have any idea about it?
Thanks.
FAILED: C:/Users/Administrator/Desktop/新文件夹/pt_mesh_renderer-master/pt_mesh_renderer-master/build/temp.win-amd64-3.7/Release/pt_mesh_renderer/kernels/rasterize_triangles_cuda_impl.obj
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\ProgramData\Anaconda3\envs\face\lib\site-packages\torch\include -IC:\ProgramData\Anaconda3\envs\face\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\Anaconda3\envs\face\lib\site-packages\torch\include\TH -IC:\ProgramData\Anaconda3\envs\face\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\ProgramData\Anaconda3\envs\face\include -IC:\ProgramData\Anaconda3\envs\face\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include" -c C:\Users\Administrator\Desktop\新文件夹\pt_mesh_renderer-master\pt_mesh_renderer-master\pt_mesh_renderer\kernels\rasterize_triangles_cuda_impl.cu -o C:\Users\Administrator\Desktop\新文件夹\pt_mesh_renderer-master\pt_mesh_renderer-master\build\temp.win-amd64-3.7\Release\pt_mesh_renderer/kernels/rasterize_triangles_cuda_impl.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=rasterize_triangles_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75
C:/ProgramData/Anaconda3/envs/face/lib/site-packages/torch/include\c10/util/ThreadLocalDebugInfo.h(12): warning: modifier is ignored on an enum specifier

C:/ProgramData/Anaconda3/envs/face/lib/site-packages/torch/include\ATen/record_function.h(18): warning: modifier is ignored on an enum specifier

C:/ProgramData/Anaconda3/envs/face/lib/site-packages/torch/include\torch/csrc/autograd/profiler.h(97): warning: modifier is ignored on an enum specifier

C:/ProgramData/Anaconda3/envs/face/lib/site-packages/torch/include\torch/csrc/autograd/profiler.h(126): warning: modifier is ignored on an enum specifier

C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/include\cmath(137): error: calling a __host__ function("__floorf") from a __global__ function("pytorch_mesh_renderer::RasterizeTrianglesForwardCudaKernel<float> ") is not allowed

C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/include\cmath(137): error: identifier "__floorf" is undefined in device code

C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/include\cmath(133): error: calling a __host__ function("__ceilf") from a __global__ function("pytorch_mesh_renderer::RasterizeTrianglesForwardCudaKernel<float> ") is not allowed

C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/include\cmath(133): error: identifier "__ceilf" is undefined in device code

C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/include\cmath(137): error: calling a __host__ function("__floorf") from a __global__ function("pytorch_mesh_renderer::RasterizeTrianglesForwardCudaKernel<float> ") is not allowed

C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/include\cmath(137): error: identifier "__floorf" is undefined in device code

C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/include\cmath(133): error: calling a __host__ function("__ceilf") from a __global__ function("pytorch_mesh_renderer::RasterizeTrianglesForwardCudaKernel<float> ") is not allowed

C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/include\cmath(133): error: identifier "__ceilf" is undefined in device code

8 errors detected in the compilation of "C:/Users/ADMINI~1/AppData/Local/Temp/tmpxft_00002d40_00000000-10_rasterize_triangles_cuda_impl.cpp1.ii".
rasterize_triangles_cuda_impl.cu
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\torch\utils\cpp_extension.py", line 1515, in _run_ninja_build
    env=env)
  File "C:\ProgramData\Anaconda3\envs\face\lib\subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 47, in <module>
    cmdclass={'build_ext': BuildExtension}
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\setuptools\__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\setuptools\command\install.py", line 67, in run
    self.do_egg_install()
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install    self.run_command('bdist_egg')
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\setuptools\command\bdist_egg.py", line 164, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\setuptools\command\bdist_egg.py", line 150, in call_command    self.run_command(cmdname)
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
    self.build()
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
    _build_ext.run(self)
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\command\build_ext.py", line 340, in run
    self.build_extensions()
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\torch\utils\cpp_extension.py", line 649, in build_extensions
    build_ext.build_extensions(self)
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\command\build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "C:\ProgramData\Anaconda3\envs\face\lib\distutils\command\build_ext.py", line 534, in build_extension
    depends=ext.depends)
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\torch\utils\cpp_extension.py", line 631, in win_wrap_ninja_compile
    with_cuda=with_cuda)
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\torch\utils\cpp_extension.py", line 1233, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "C:\ProgramData\Anaconda3\envs\face\lib\site-packages\torch\utils\cpp_extension.py", line 1529, in _run_ninja_build
    raise RuntimeError(message)
RuntimeError: Error compiling objects for extension

Might be related, haven't verified, but this issue has appeared in various places this week: https://trac.ffmpeg.org/ticket/9150

Maybe this help. https://blog.csdn.net/baobei0112/article/details/114521271

Might be related, haven't verified, but this issue has appeared in various places this week: https://trac.ffmpeg.org/ticket/9150

Thanks for your help. I think I fix this problem.


Price Tracker

Script Title -
A Price Tracker will help you to track the price for all your favorite products and whenever the price drops down it will automatically send you an email
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Programming Language

[x] Python

Happy Coding

Please, assign this issue to me.


json output format

Hi
Current output format seems human-readable-friendly, but hard to process/use on scripts.
Have you considered doing a JSON format version of this tool?
Regards

Hi, it seems to be easy to implement this if decides the output structure of JSON report. If you may help me with it, i has add it fast.

Hi
I don't know if I'll be useful, but here are my two cents.
Let's first help me understand the output of:
rma -s myredis -b all > _all.txt

Match *:   0% 0/1 [00:00<?, ?it/s]
Match *: 100% 1/1 [00:00<00:00, 1079.34it/s]

If this is a progress shown during execution, it shouldn't be printed on output but on stdout.

Aggregating keys by pattern and type
Apply rules

Useful for stdout, but should be omitted in JSON.

Processing keys:   0% 0/1 [00:00<?, ?it/s]
Processing List patterns:   0% 0/1 [00:00<?, ?it/s]
Processing List patterns: 100% 1/1 [00:01<00:00,  1.66s/it]

Same as first comment.

Server stat

Stat
Value

Total keys in db
1

RedisDB key space overhead
96

Used hash-max-ziplist-value
64

Used set-max-intset-entries
512

Used zset-max-ziplist-value
64

Used list-max-ziplist-entries
512

Used hash-max-ziplist-entries
512

Used zset-max-ziplist-entries
128

Used list-max-ziplist-value
64

Info used_memory_peak_human
146.72M

Info used_memory_lua
38912

Info used_memory_peak
153846712

Info mem_fragmentation_ratio
1.22

Info mem_allocator
jemalloc-3.6.0

Info used_memory_rss
68235264

Info used_memory
55815136

Info used_memory_human
53.23M

Elements arranged alphabetically with some notes/questions about it
{
	"clustered" : false,
	"clusterName" : null,
	"nodes" : [{
		"clusterRole" : null,
		"info" : {
			"mem_allocator" : "jemalloc-3.6.0",
			"mem_fragmentation_ratio" : 1.22,
			"used_memory" : 55815136,
			"used_memory_human" : "53.23 MB",
			"used_memory_lua" : 38912,
			"used_memory_peak" : 153846712,
			"used_memory_peak_human" : "146.72 MB",
			"used_memory_rss" : 68235264
		},
		"name" : "myredis",
		"used" : {
			"hash-max-ziplist-entries" : 512,
			"hash-max-ziplist-value" : 64,
			"list-max-ziplist-entries" : 512,
			"list-max-ziplist-value" : 64,
			"set-max-intset-entries" : 512,
			"zset-max-ziplist-entries" : 128,
			"zset-max-ziplist-value" : 64
		},
		"redisOverhead" : 96,
		"totalKeys" : 1
	}]
}

Nodes can have only one cluster role within a cluster, isn't it?

Is used_memory_human properly calculated? 55815136 Bytes = 55,82 MB!
Same for used_memory_peak_human.

It makes sense to add used_memory_lua_human and used_memory_rss_human fields?

As I'm not an expert on Redis, fields like redisOverhead or zset-max-ziplist-value are totally unknown for me. Even the difference between info and used objects.

Keys by types

Omit.

Match
Count
Type
%

mylist:mytype
1
list
100.00%

[
    {
      "name": "mylist:mytype", "type":"list", "usage": "100"
    }
]

What's the count column?

Processing list
key stats

Guess what...?

Match
Count
Useful
Real
Ratio
Encoding
Min
Max
Avg

mylist:mytype
1
10
64
6.40
embstr [100.0%]
10
10
10

Total:
1
10
64
0.00

0
0
0

{
  "lists" : {
    "name" : "mylist:mytype",
    ...
  },
  "total" : {
    "count" : 1,
    ...
  }
}

Could you elaborate on those columns? are those "usage in bytes"? items in queue?

List stat

What's the difference between keys stats and list stats?
AFAIK, i just have 1 key and it's both enlisted on keys stats and list stat

| Match      |   Count |   Avg Count |   Min Count |   Max Count |   Stdev Count |   Value mem |     Real |   Ratio |   System | Encoding            |    Total |

|:-----------|--------:|------------:|------------:|------------:|--------------:|------------:|---------:|--------:|---------:|:--------------------|---------:|
| mylist:mytype |       1 |      123021 |      123021 |      123021 |             0 |    42452924 | 48903808 |    1.15 |  3149824 | linkedlist [100.0%] | 52053632 |

| Total:     |       1 |           0 |           0 |           0 |             0 |    42452924 | 48903808 |    0.00 |  3149824 |                     | 52053632 |

Done in 1.58691 seconds

If this information is useful, the result JSON should be divided in 2 objects: the retrieved data and the query metadata:
{
  "request" : { "duration" : 1.58691 },
  "response" : {
    "clustered" : ...
    }
}

One thing I didn't notice at first, but that IMHO it deserves to be fixed.
Seems the utility is "summarizing" the lists. eg:

myfamily:mylist:mytype1
myfamily:mylist:mytype2

are reported as

myfamily:mylist:*

Again IMHO, it would be much better to have separate entries for each key.
Regards

Thanks!


camera.img_from_cam not working

uv = camera.img_from_cam(image.cam_from_world * point3D.xyz) example from docs is not working
why function img_from_cam accept 2d point? maybe it should accept 3d point?  image.cam_from_world * point3D.xyz produces 3d point in camera space, yes?
camera.img_from_cam(np.array([1,2,3]))

TypeError: img_from_cam(): incompatible function arguments. The following argument types are supported:
    1. (self: pycolmap.Camera, arg0: numpy.ndarray[numpy.float64[2, 1]]) -> numpy.ndarray[numpy.float64[2, 1]]
    2. (self: pycolmap.Camera, arg0: numpy.ndarray[numpy.float64[m, 2]]) -> numpy.ndarray[numpy.float64[m, 2]]
    3. (self: pycolmap.Camera, arg0: List[colmap::Point2D]) -> numpy.ndarray[numpy.float64[m, 2]]

The documentation is incorrect, it should be:
p = image.cam_from_world * point3D.xyz
uv = camera.img_from_cam(p[:2] / p[-1])

We should overload img_from_cam to accept a 3D vector as well.


[ARM] Hotfix: Fix #17665

Description
Hotfix PR to fix #17665
Testing Guide
az bicep version

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

@zhoxing-ms Should I update HISTORY.rst and versions, etc. in this PR or will those be done in another PR by your team?

Since we are participating in hotfix with multiple projects this time, we will submit PR separately to modify HISTORY.rst and versions.


failed to parse column 'date_time' from json

Describe the bug
ERROR risingwave_source::parser::json_parser: failed to process value ({"_row_id":23957,"date_time":"2022-09-21 09:45:47.387344020"}): failed to parse column 'date_time' from json: Parse error: Can't cast string to timestamp (expected format is YYYY-MM-DD HH:MM:SS[.MS] or YYYY-MM-DD HH:MM or YYYY-MM-DD or ISO 8601 format)

To Reproduce
On EC2,
./risedev d full
create source s1 (date_time Timestamp) with (connector = 'datagen') row format json;
create materialized view m1 as select * from s1;

commit 9520c748a90d201bc9c716feff45333f7aa49356
No error on my laptop..
Expected behavior
No response
Additional context
No response
@jon-chuang

Test all data types generation(connector = datagen) in e2e tests

I get the error on my Linux, x86 laptop. I guess the issue must be risedev build on mac.

Actually, it is weird if you can't reproduce locally. Please try again to confirm.


Better laravel 5 support

This works on making our Laravel 5 support more inline with the standard.
Also adds a laravel-5.1 example app.

This would fix #61


Request to add a link to a TopShelf Azure DevOps Release Task

I recently added TopShelf support to Windows Service Manager, an Azure DevOps build\release task for deploying windows services.
Github Project
Please feel free to add a link to the extension into your README.md.
Thank you kindly,
Michael

You could submit a PR with a link, probably the only way it will happen :)

Added pull request #522.
Thank you


Exception: Detected a page unload event; asynchronous script execution does not work across page loads.

Bug report
On navigating to a new page from the client action (a button click),  an exception is raised when calling any browser API which calls waitForAngular(), on PhantomJS. It work fine (without any exception) on Chrome though. Here is the exception message:
Detected a page unload event; asynchronous script execution does not work across page loads.
Similar issue have been reported here in past too and all of them are in closed state. Following are the past issues which I found:
https://github.com/angular/protractor/issues/85 (As stated in the comments of this issue the bug has been resolved in 2014 in commit https://github.com/angular/protractor/commit/a0bd84b9a28ec92eccd2784f8b849388985a4480. Though it looks like it has some how reappeared.)
https://github.com/angular/protractor/issues/1651
https://github.com/angular/protractor/issues/560
https://github.com/angular/protractor/issues/1901
Following are various version details, test and config code and error details.

Node Version: 4.2.6

Protractor Version: 4.0.11

Angular Version: 1.4.8

Browser(s): PhantomJS 2.1.1, Chrome 54.0.2840.100 (64-bit) [bug is only occurring in PhantomJS]

Operating System Arch Linux (64 bit) (linux 4.7.6-1)

Following is my protractor configuration file:

exports.config = {
    framework: 'jasmine',
    seleniumAddress: 'http://localhost:4444/wd/hub',
    allScriptsTimeout: 200000,
    getPageTimeout: 200000,
    jasmineNodeOpts: {
        defaultTimeoutInterval: 300000
    },
    specs: [
        'specs/**/*.js'
    ],
    multiCapabilities: [
        {
            'browserName': 'phantomjs',

            /*
             * Can be used to specify the phantomjs binary path.
             * This can generally be ommitted if you installed phantomjs globally.
             */
            'phantomjs.binary.path': require('phantomjs-prebuilt').path,

            /*
             * Command line args to pass to ghostdriver, phantomjs's browser driver.
             * See https://github.com/detro/ghostdriver#faq
             */
            'phantomjs.ghostdriver.cli.args': ['--loglevel=DEBUG']
        },
        {
            'browserName': 'chrome'
        }
    ]
};

Following the the test cases in which the error is occurring.

var format = require('string-format');

describe('Login page', function() {
    it('should allow login using a user', function() {
        // Go to login page.
        browser.get(format('{baseUrl}/login', {baseUrl: browser.params.baseUrl}));

        // Populate username and password.
        [['user.username', 'xxxxxxx'], ['user.password', 'xxxxxxx']].forEach(function(value) {
            var input = element(by.model(value[0]));
            input.isDisplayed();
            input.sendKeys(value[1]);
        });

        // Click the sign-in button.
        element(by.xpath('//button/*[.="Sign In to App"]/..')).click();

        // Check URL of the page to make sure we are on dashboard.
        expect(browser.getCurrentUrl()).toEqual(format('{baseUrl}/dashboard', {baseUrl: format(browser.params.baseUrlWithDomain, {subDomain: 'xxxx'})}));
    });
});

Following is the error which occurred, during execution of last browser.getCurrentUrl() function (I know this because it works if I remove the function call):

{
    "errorMessage": "Detected a page unload event; asynchronous script execution does not work across page loads.",
    "request":
    {
        "headers":
        {
            "Accept-Encoding": "gzip,deflate",
            "Connection": "Keep-Alive",
            "Content-Length": "1196",
            "Content-Type": "application/json; charset=utf-8",
            "Host": "localhost:12512",
            "User-Agent": "Apache-HttpClient/4.5.1 (Java/1.8.0_102)"
        },
        "httpVersion": "1.1",
        "method": "POST",
        "post": "{\"script\":\"try { return (function (rootSelector, ng12Hybrid, callback) {\\n  var el = document.querySelector(rootSelector);\\n\\n  try {\\n    if (!ng12Hybrid && window.getAngularTestability) {\\n      window.getAngularTestability(el).whenStable(callback);\\n      return;\\n    }\\n    if (!window.angular) {\\n      throw new Error('window.angular is undefined.  This could be either ' +\\n          'because this is a non-angular page or because your test involves ' +\\n          'client-side navigation, which can interfere with Protractor\\\\'s ' +\\n          'bootstrapping.  See http://git.io/v4gXM for details');\\n    }\\n    if (angular.getTestability) {\\n      angular.getTestability(el).whenStable(callback);\\n    } else {\\n      if (!angular.element(el).injector()) {\\n        throw new Error('root element (' + rootSelector + ') has no injector.' +\\n           ' this may mean it is not inside ng-app.');\\n      }\\n      angular.element(el).injector().get('$browser').\\n          notifyWhenNoOutstandingRequests(callback);\\n    }\\n  } catch (err) {\\n    callback(err.message);\\n  }\\n}).apply(this, arguments); }\\ncatch(e) { throw (e instanceof Error) ? e : new Error(e); }\",\"args\":[\"body\",false]}",
        "url": "/execute_async",
        "urlParsed":
        {
            "anchor": "",
            "query": "",
            "file": "execute_async",
            "directory": "/",
            "path": "/execute_async",
            "relative": "/execute_async",
            "port": "",
            "host": "",
            "password": "",
            "user": "",
            "userInfo": "",
            "authority": "",
            "protocol": "",
            "source": "/execute_async",
            "queryKey": {},
            "chunks":
            [
                "execute_async"
            ]
        },
        "urlOriginal": "/session/252fa430-aebd-11e6-9e45-657168d95ebc/execute_async"
    }
}

This error only occurs when running the above test with PhantomJS. The test runs fine on Chrome.

We recommend against using PhantomJS for tests with Protractor. Please see the browser support page. http://www.protractortest.org/#/browser-support
Possibly a good place is to ask this questions on StackOverflow, Google Group discussion list, or Gitter.
Thank you!

@cnishina, I understand that protractor doesn't fully support PhantomJS. But the issue reported here has been marked as resolved in #85 with this comment https://github.com/angular/protractor/issues/85#issuecomment-33159865, stating that the fix would be out in version 0.17.0 (https://github.com/angular/protractor/commit/a0bd84b9a28ec92eccd2784f8b849388985a4480). This was in 2014. There was another commit fixing the issue again 2015, ie, https://github.com/angular/protractor/commit/d15ccdcf82bda29c803c3a5642896f16d7e4f938. Now somehow the issue has reappeared. I.e, this is a use case was supported by Protractor earlier, but now you are saying it isn't?

Can someone add label 'browser: phantomjs' on this and all the other PhantomJS issues stated in the description. So that people can find them with this link: https://github.com/mattermost/desktop/blob/master/package.json. This is the link present in know issues column of PhantomJS section in browser support page. It currently one have one of the issues present in description and doesn't contain the most important issue, i.e. #85.
Also, some kind of won't fix label should be added to these issues, as new people trying PhantomJS might thing that these closed issues have been resolved, even when they are not.


Getting test errors after upgrading to the newest version

Hi! I recently upgraded to the newest version and now I'm getting test errors in my org:
Screenshots:

I deleted the two classes that were failing, and now all is well. Thanks!

Wonderful. Thank you!

@solo-1234 sorry, also just now seeing your question (which I somehow missed previously, so apologies twice for that!) - yes, I would delete all the rollup test classes, they are no longer being maintained in terms of what gets deployed (but you can visit the repo if you miss them and like to see them in their current forms at any time 😁!)

Got it! Will the lack of test classes affect my org's code coverage percent?

No, it will not (assuming you are installing via the unlocked package) affect your org’s code coverage

Thank you!


Remove characters not in ASCII range

When formatting the spreadsheet to json, some characters were replaced by replacement character(�). This may have happened due to conversion from Unicode to ASCII in which case some punctuation marks couldn't be recognized or approximated to their ASCII equivalents.

Have you been able to do it? There's a very basic command line fu to do this.

Yes there were only 6 occurrences of that, so I did it manually. Thanks for the idea though fu seems like a great command to use

"fu" isn't a command😅 just a figure of speech you use similar to "kungfu"

can you tell me which places btw?  I'll make PR. You can search and replace the occurrences of this character "�".


Expose E2EE interfaces

@cloudwebrtc Looks like we will be exposing another interface, should I close this one ?

@hiroshihorie FrameEncryptorInterface does not provide the type of video frame (key, delta), and timestamp (for generating iv), so use https://github.com/webrtc-sdk/webrtc/blob/m104_release/api/frame_transformer_interface.h instead

I created FrameCryptor in this branch https://github.com/webrtc-sdk/webrtc/pull/54/files, it can communicate with js e2ee (aes-gcm), but it is WIP currently.
But I believe it can be wrapped inside objc, and eventually, you can expose an Objc method in RTCRtpSender.h, such as EnableFrameCrypto(enum Algorithm, keyManager);


Fix dropping on selection in script editor

fixes https://github.com/godotengine/godot/issues/93913
fixes https://github.com/godotengine/godot/issues/80342

Also removes the drag caret before deleting text when dragging text from text edit and dropping elsewhere, so the drag caret won't appear in undo.

Thanks!


Partial type fails to narrow in spite of check for undefined II

TypeScript Version:  3.4.0
Search Terms: Partial switch
Code
const enum BarEnum {
    bar1 = 1,
    bar2 = 2,
}

type TypeBar1 = {

    foo: BarEnum.bar1;
    array: number[];
};

type TypeBar2 = {

    foo: BarEnum.bar2;
    array: number[];
};

type UnionOfBar = TypeBar1 | TypeBar2;

const value: Partial<UnionOfBar> = {} as any;

if (value.array) {

    value.array.toString(); // Okay

    switch (value.foo) {

        case BarEnum.bar1:
            value.array.toString(); // Error: Object is possibly undefined
            break;
    }
}

Expected behavior:
No compiler error
Actual behavior:
The compiler complains of value.array being undefined
Playground Link:
Not able to reproduce on the playground. I think this is a bug in 3.4.
Related Issues:
This is another version of the bug reported here: #29496

It can be reproduced on playground enabling strictNullChecks under Options.
Probably related to #9998.

Narrowing by discriminant (which is happening at value.foo in the switch) narrows from the declared type of value, thus ignoring the previous property narrowing obtained from value.array. This is probably a design limitation / working as intended.

Narrowing by discriminant (which is happening at value.foo in the switch) narrows from the declared type of value, thus ignoring the previous property narrowing obtained from value.array. This is probably a design limitation / working as intended.

It may be a design limitation, but it certainly cannot be working as intended - unless the intention is to surprise the user!

I am facing the same issue.

+1, example

The examples in this issue are fixed in 3.8. I don't know what change fixed them, though.

@threehams, you're right: it's been fixed. Thanks.


Different result for SpatialConvolution with cudnn and nn

Hello, I cannot figure out why the model works differently with cudnn and nn. Please try to reproduce it.
The code: https://gist.github.com/DmitryUlyanov/82938d41f49cf4c0580032b8c7bee43d
Model: https://transfer.sh/bq1Jn/model-10.t7
Run with:
th test.lua -model_t7 model_10.t7 -input_image <path/to/image.jpg>

It will print out diffs between cudnn and nn outputs at every layer. For me it looks like this:
1	0
nn.TVLoss
2	0
nn.SpatialReplicationPadding(l=4, r=4, t=4, b=4)
3	0
cudnn.SpatialConvolution(3 -> 32, 9x9)
4	0.0013251072959974
cudnn.SpatialBatchNormalization
5	0.0013251072959974
cudnn.ReLU
6	6664.0146484375
cudnn.SpatialConvolution(32 -> 64, 3x3, 2,2, 1,1)
7	2012.2989501953
cudnn.SpatialBatchNormalization
...

In my case the output at layer 6 is different by a lot. I understand that intermediate outputs can be different because of inplace operations, but the networks' output were different too. I tried to build a standalone layer of type cudnn.SpatialConvolution(32 -> 64, 3x3, 2,2, 1,1) and see the difference, but there was none. Any Ideas?

@DmitryUlyanov have run your script, can't reproduce. the errors are small.

Thanks, will try to reinstall drivers.

fixed by https://github.com/torch/nn/commit/e96093b5493e665b806dc61d58675d6d5c8ecc97


Disclaimer Slide-In width resizes the header/page

When opening and closing the disclaimer slide-in via the toggle on very small devices the header gets resized somehow

this is not the only case where our view is rescaled due to the mobile browser behaviour, this happens mainly due to min-content grid col definitions and probably can't be fixed that easily, however i found out that the scaling only happens because we do not define an initial-scale within our meta tags (that was removed because @peacememories used this to remove the double-tap-to-zoom ability within the view (at least thats what the commit message said))

culprits that resize the scale seem to be
the footer in mobile as well as the min-content slidein text of the anonymous message, at least these are the two i found


Unit/E2E testing

Base Cypress/E2E testing (and inherently component testing) are built in now. Supporting scripts for common work environments in progress.


Looped request has been detected

Describe the bug
When I'm using it, im getting error in terminal:
ERRO[] [PROXY] Looped request has been detected. aborting.
Expected behavior
Bypass dpi
Actual behavior
Not bypassing dpi
How To Reproduce?
Run spoof-dpi
Specify http://<IP_ADDRESS>:8080 as prozy in system settings
try to go at any website with restrictions
Client information
OS: Endeavour OS (linux)
Version: linux 6.10.2
Additional context

The error happens when you try to send a http request to <IP_ADDRESS>:8080 which shouldn't be sent because that will occur an looped request


Raycaster is flakey

Bad direction? Origin? Raycaster's fault?

I wrote a fix that removes the pointer when the hands leave the scene. What other issues are you having with the Raycaster in debug mode?

Taking a look at the PR now, thanks.
The particular issue here, if I remember right, is unrelated to debug mode in that when grabbing an object, it doesn't intersect as consistently as it seems like it should. Might be perception on my part, or some configuration issue. If the raycaster is working for you in desktop mode then maybe it's a perceptual / viewpoint issue in VR.
Re: debug mode, it's not that there are special bugs when debugging, but that if enabling and disabling VR mode in the browser also toggles the transform of the Leap, then when I debug I have to detach and reattach the leap from my HMD (to have the proper transform) and I'd rather keep the transform consistent across states. If someone is building an app that will support leap motion both in desktop and in VR, then I think it would be up to the developer how that would work, and I'd rather keep automatic/magic changes out of the library itself. But, definitely glad to expose any transform options needed to make this work well for desktop as well as VR.


Generalize random forest and added forest_weights

Updated the decision_tree get_leaf_matrix to now work with multiple of the sample indices, such that if sample x is in the fitting data n times, then a call to get_leaf_matrix would return a value of n at position x,x in the matrix.
Currently missing a good test for the random forest weights, so do not merge yet. Do you have any good ideas?

Can you come up with a test @NiklasPfister.

Can you come up with a test @NiklasPfister.

I guess it only needs to test whether the get_leaf_matrices are correctly called and averaged. Could we just generate a data set on which we fit a random forest without bootstrap with 3 trees and compare the get_forest_weight output with fitting 3 trees and averaging them?


[library usage] Move modules under pkg to pkg/internal

This pull request is part of the changes for #373
In this pull request we moved most of the sub packages under pkg to pkg/internal except the pkg/cmd. The pkg/cmd is needed to be exported from pkg level as Go's internal package rule limit the internal package visibility level to pkg only. We also hid sub-commands from pkg/cmd to avoid unexpected references.
Now, the root level main function imports only pkg/cmd and it will be served as the sole entry point. This is slightly off from the design doc, but I believe the usage experience would be better as we allow user to install kubelogin via this:
$ go install github.com/Azure/kubelogin@{version}

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (3e83c88) 64.77% compared to head (659b526) 64.77%.

:exclamation: Current head 659b526 differs from pull request most recent head bffc8a9. Consider uploading reports for the commit bffc8a9 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #376   +/-   ##
=======================================
  Coverage   64.77%   64.77%
=======================================
  Files          23       23
  Lines        1766     1766
=======================================
  Hits         1144     1144
  Misses        549      549
  Partials       73       73

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


rust 1.75版本与delay-timer 0.11.4版本不兼容，1.74.1没有问题

error[E0277]: the trait bound StrSearcher<'_, '_>: DoubleEndedSearcher<'_> is not satisfied
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/delay_timer-0.11.4/src/utils/parse.rs:371:83
|
371 |         let mut sub_command_inner = command.trim().split_inclusive(angle_bracket).rev();
|                                                                                ^^^ the trait DoubleEndedSearcher<'_> is not implemented for StrSearcher<'_, '_>
|
= help: the following other types implement trait DoubleEndedSearcher<'a>:
CharSearcher<'a>
CharArraySearcher<'a, N>
CharArrayRefSearcher<'a, 'b, N>
CharSliceSearcher<'a, 'b>
CharPredicateSearcher<'a, F>
= note: required for std::str::SplitInclusive<'_, &str> to implement DoubleEndedIterator
note: required by a bound in rev
--> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/iter/traits/iterator.rs:3397:5
error[E0599]: the method next exists for struct Rev<SplitInclusive<'_, &str>>, but its trait bounds were not satisfied
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/delay_timer-0.11.4/src/utils/parse.rs:374:14
|
373 | /         sub_command_inner
374 | |             .next()
| |             -^^^^ method cannot be called on Rev<SplitInclusive<'_, &str>> due to unsatisfied trait bounds
| |_____________|
|
--> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/str/iter.rs:1216:1
|
= note: doesn't satisfy _: DoubleEndedIterator
--> /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/iter/adapters/rev.rs:15:1
|
= note: doesn't satisfy Rev<std::str::SplitInclusive<'_, &str>>: Iterator
|
= note: the following trait bounds were not satisfied:
std::str::SplitInclusive<'_, &str>: DoubleEndedIterator
which is required by Rev<std::str::SplitInclusive<'_, &str>>: Iterator
Some errors have detailed explanations: E0277, E0599.
For more information about an error, try rustc --explain E0277.
error: could not compile delay_timer (lib) due to 2 previous errors

error doesn't occur when using rust 1.74

Hi guys, the issue has been fixed in V0.11.5 @dyxushuai @apiclouds  @iwansyahp

thank you, @BinChengZhao!


Signed images

Proposal
Use case. Why is this important?
Docker Content Trust allows us to verify if the images downloaded are indeed the images that Prometheus published. Security measures can be setup to only download signed images.
This goes for all Prometheus images, not just specific to this repository.
Is there any particular reason why signed images haven't been added, or is it simply a feature which hasn't been looked into yet?
https://docs.docker.com/engine/security/trust/content_trust/

Please see https://prometheus.io/docs/operating/security/#build-process
If you need this, then you probably shouldn't trust our released binaries at all.

Thank you for the response. If releasing signed images isn't feasible then I'll build from source.


tests(hyper): Add tests to increase coverage

Thanks for contributing! Unfortunately, I'm here to tell you there were the following style issues with your Pull Request:

Commit: d2f0cea53f0dac3cd4776ee0f79e8f767215355c
Invalid type. Valid types are feat, fix, docs, style, refactor, perf, test, chore, revert

Guidelines are available at https://github.com/hyperium/hyper/blob/master/CONTRIBUTING.md

This message was auto-generated by https://gitcop.com

Coverage increased (+0.88%) to 85.18% when pulling 0091556a24ecfec25f15857bb4eccb69e838c44e on pyfisch:increasecov into 7f5e0382d958da2f0bf4636cdab9a6e9827cd8bb on hyperium:master.

Coverage increased (+0.88%) to 85.18% when pulling 0091556a24ecfec25f15857bb4eccb69e838c44e on pyfisch:increasecov into 7f5e0382d958da2f0bf4636cdab9a6e9827cd8bb on hyperium:master.

Coverage increased (+0.97%) to 85.27% when pulling d014dff4289fce930db01604d73144f6fd5051e2 on pyfisch:increasecov into 7f5e0382d958da2f0bf4636cdab9a6e9827cd8bb on hyperium:master.

I'm skeptical that coveralls and/or kcov is correctly reporting coverage, but certainly, more tests are always good!

@seanmonstar Yes I also doubt that kcov is working correctly. There are some files even missing in the report. But it reports what cases are not covered by the tests so I fix the reported cases.

Coverage increased (+0.96%) to 85.26% when pulling ff346f147f010d55aa7198ccf2f59f299ee3a983 on pyfisch:increasecov into 7f5e0382d958da2f0bf4636cdab9a6e9827cd8bb on hyperium:master.


Installing issue with AUR/YaY and PIP

When installing with either AUR or PIP I get an error that "glib.h" is not found gcc when compiling cmanimpango.c. Given that that seems to be a local header as it is included with "" rather than <> it seems almost if there is some dependency that is not packaged.

When installing with either AUR or PIP I get an error that "glib.h" is not found gcc when compiling cmanimpango.c

glib.h is provided by the glib package which Pango depends on, so if it fails with that error you probably didn't install that package. Follow https://github.com/ManimCommunity/ManimPango#linuxmacos or contact the AUR maintainer.

Given that that seems to be a local header as it is included with "" rather than <> it seems almost if there is some dependency that is not packaged.

My understanding of <> vs "" is that the former is for headers provided by C-standard lib (and available in the standard include path) and the latter is for headers present in other directories. In this case, glib.h is provided by the glib package (and not a standard library header) and its include directories are added to compiler flags, so that the compiler can find it.


ripgrep 11.0.1 released

Just a heads up that ripgrep cut another release just shortly ago (not even on crates.io yet).
The versioning scheme was adjusted with this release, shifting what would've been 0.11.0 to be 11.0.0 instead.
https://github.com/BurntSushi/ripgrep/releases/tag/11.0.0

Great new, my Anitya monitoring worked this time and emailed me about this last night!

This release increases the minimum supported Rust version from 1.28.0 to
1.34.0.

This means I'll need to wait for rust-1.34.0-1.el7 to be promoted to stable first.

polite bump that rust 1.34 was promoted to stable about a month so bumping ripgrep to 11.0.1 should be possible now!

Thanks for the reminder, it's built now.
https://copr.fedorainfracloud.org/coprs/carlwgeorge/ripgrep/build/930337/


[Roadmap] Bludit v4

Features I would like to implement for Bludit v4. I will add more with the time.

Theme settings: Allow to the user after enabling the theme setup different parameters, similar to the settings for plugins.
Auto Updates: The user can update Bludit from the admin panel.
Plugins installer: Check the official database of plugins and allow the user to download and install plugins from the admin panel, also support updates.
Themes installer: Similar to the plugins installer but for themes.
Page type Private: Show on homepage only for members and access only for members.
Page type Unlink: Not listed on homepage and access only to who has the link.
Custom fields

Got three things to ask/propose:

Will you allow to set the parent for all page types?

Is it going to be possible to set a specific page to list all blog entries?
Currently it is very confusing to do it and it's not working as I supposed. Namely I can set a static page as index page, but all other pages (no matter their type) start with url set in pages field in url filter.

actions in page management doesn't fit in one line. Shouldn't there be an option to switch between text buttons and only icons?

As it goes to actions, deleting couple pages at once is impossible (for example all autosaved pages). I almost deleted couple times pages, because deleting an entry reloads the management page and shows the "pages" tab. Would be great to load the last tab after deleting a page.

I sometimes need to enable error reporting. Doing it from within CMS would come in handy, for example as a switch in "about" page. This would be also a good thing for those non technical users who get errors but nobody can help them without seeing what's going on.

Would you please list existing #issues that are likely to be included?
There are many from long ago that should maybe be included.

Hellow
I've also a bunch of things / suggestion to ask :D

It would be REALLY awesome to manage the "custom" fields array of the Page DB on the backend too. So just key => value text fields to adapt them on the respective page would be a great help.

An extended role -> permission system (or API) with custom roles, and an adaptable permission-set would be a dream.

Instead of adding new (static-written) page types, it would be highly comfortable using a PageType API. So that everyone can also create their own types (I know, it's similar to point 2)

An extended backend theme API, which allows creating custom admin pages with own URL routes (next to the default plugin configuration page). I'm using a small Hack on my Snicker and Designer plugins, but it would be really cool to do it without REGEX-ing the page content :D

Sorry, as vanilla JS developer I need to ask this too... no jQuery. (I also can help convert existing scripts into Vanilla JS, if help is needed).

Thanks for your great work and your awesome product.
Sincerely,
Sam.

* Page type `Private`: Not listed and access allowed only to the owner of the page.

I think, it has to be defined who has access to the content. I would prefer a "member".

If I can just put in my two pennies worth:

Custom fields for pages
Either in theme configuration or globally, would be easy to integrate this into plugins.

Vanilla JS / JQuery toggle.
Usually I run vanilla, theres no reason to load up unnecessary libraries

Extensions - a way of customising Bludit to suit bloggers/ marketers/ growth hackers by tailoring the experience to their needs. Think of plugins on steroids - see this topic https://forum.bludit.org/viewtopic.php?f=6&t=1210

Admin themes
its a pain to do one, would be nice to get this debootstrapped and enable users to pick which one they like exactly as site themes.

General tweaks
No bootstrap - Bludit needs its own front-end skeleton to run on. General UI, clean UX, iconography made to handle not only the main features but custom plugins as well. I can do it, poke me on twitter.
Cleanup - there are still references to blog pages.

I would like to see all this too:

It would be REALLY awesome to manage the "custom" fields array of the Page DB on the backend too. So just key => value text fields to adapt them on the respective page would be a great help.
An extended role -> permission system (or API) with custom roles, and an adaptable permission-set would be a dream.
Instead of adding new (static-written) page types, it would be highly comfortable using a PageType API. So that everyone can also create their own types (I know, it's similar to point 2)

Same as the comment above, and the quoted comment before it, I think post meta/custom fields are a very useful feature.

Hi, I have been working on custom fields, you can get some information about it here.
https://github.com/bludit/bludit/issues/895

Maybe in version 4 is not bad to have some basic email function (bl_mail). Now every plugin with mailing functionality use its own solution. Some standardized way to send email will help a lot. In Settings we can set using php mail or smtp data.

These 3 features could be part of a single core plugin like Package Manager. We should also deprecate Version plugin if this happens.

Auto Updates: The user can update Bludit from the admin panel.
Plugins installer: Check the official database of plugins and allow the user download and install plugins from the admin panel, also support updates.
Themes installer: Similar to the plugins installer but for themes.

These 3 features could be part of a single core plugin like Package Manager. We should also deprecate Version plugin if this happens.

Auto Updates: The user can update Bludit from the admin panel.
Plugins installer: Check the official database of plugins and allow the user download and install plugins from the admin panel, also support updates.
Themes installer: Similar to the plugins installer but for themes.

@anaggh great idea 😎
I already wrote the plugins

theme-download
theme-uninstaller
plugin-download
plugin-uninstaller

today I released v2.0.0 of auto-update which works really fast and completely in the background with current progress states.
so...
should I write a plugin that combines all of the functions above into one?
what do you think? @dignajar

@philippd1 Hi, it could be a good idea to combine all together but not sure because of the development and debug.

@dignajar yeah, I'm currently giving it a shot, looking something along those lines ⬆

Please add custom hook support for plugins in next version.

How are you with the development of version 4?

I'm currently a little off in the project but I'm still working on Bludit don't worry; almost all the features are covered by plugins for the moment, also my idea is to move everything to plugins and keep Bludit as a small core for CMS.

I'm currently a little off in the project but I'm still working on Bludit don't worry; almost all the features are covered by plugins for the moment, also my idea is to move everything to plugins and keep Bludit as a small core for CMS.

Please allow plugins to use their own hooks (defined by plugin developer), so it would be very easier to manage CMS using plugins.
Also it would be better to make a section for changing dashboard theme.
Thanks for your great project.

@Kazem-ma79 can you give me some details about own hooks ? because the hooks are execute in different parts of the themes, for example at the beginning of a page, at the bottom of a page, so if you create custom hooks where do you think they going to be executed?

@Kazem-ma79 concerning the idea of a dedicated section for admin-theming: there's already been a discussion on the issue thread #987 😉

my idea is to move everything to plugins and keep Bludit as a small core for CMS.

@dignajar highly appreciate that you favor the simplicity and modularity 👍
is the "AIO-Manager" plugin for theme and plugin installation still relevant? would like to continue working on it if it's still relevant for Bludit Core
(UX for plugin and theme installation would be much nicer with an actual UI :) )

What do you think about a file-extension associated Markup rendering instead of forcing Markdown completely?
For a better Understanding
For example: We add a small new RenderContent interface / class, which allows plugins to "add" a Markup library (Markdown, textile, ...) next to some information such as the associated file extensions (so .md / .markdown on Markdown Files, .textile on Textile files, and so on...).
Now, when the content of a page gets rendered (using $page->content()), the filepath of the respective page gets passed to the new interface, which calls the added markup library according to the file extension which returns the rendered content.
Advantages

Bludit becomes multi-lingual on the Markup languages
The user is able to use multiple markup languages side-by-side
Parsedown and other libraries are just added as plugin and better maintainable

Reason
Markdown is a good way to go and maybe perfect for the most people using Bludit, but sometimes a more extensive markup language would be awesome (such as textile).
I know that you're able to disable the Markdown rendering at all, but a core solution to support multiple markup languages next to each other would be a better solution.

Hello,
What about the ability to insert a static page into the main menu with all it's subpages as a dropdown ?

Any changelog for v4.0.0 A1?

Suggestions: Adding filters in Dashboard -> Manage -> content:

Filter content in the dashboard by title, categories, tags

Option/filter: show only parent pages and when click on a parent-page shows the related child-pages (now it is very confusing manage the content, without filters, if there are a lot of parent/child-pages.

Adding search-function that also search the content (not only titles), similar the front-end search-plugin.

Can we have more settings in Admin to

Turn off Notifications panel
option to control how many notification are displayed
where images are stored, eg in root or by page


Mongoid Adapter: Nested hash conditions

accessible_by does not work well with abilities that contain nested hash conditions on associations
If you have models related as: A belongs_to B belongs_to C and you want to define abilities on A with a hash condition that concerns fields in C.
Prior to this commit, can? would work with such nested conditions but accessible_by would not.
This fixes accessible_by.

@vighnesh1987 Thank you for your submission. Am I correct that this is the same issue as #156

@vighnesh1987 Thanks!


K8s overlays implicitly change defaults

Bug description
Using the components.IngressGateways.K8s section of the operator file causes the minReplicas to be implicitly set to 1.
[ ] Docs
[x] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
minReplicas stays at the default, 2.
Steps to reproduce the bug
istioctl install -f -f - <<EOF
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  name: default-istio-operator
spec:
  profile: default
    ingressGateways:
    - enabled: true
      name: istio-ingressgateway
      k8s:
        service:
          type: NodePort
          ports:
          - name: status-port
            nodePort: 31223
            port: 15021
            protocol: TCP
            targetPort: 15021
          - nodePort: 32659
            port: 80
            targetPort: 8080
            name: http2
          - port: 443
            targetPort: 8443
            name: https
          - port: 15012
            targetPort: 15012
            name: tcp-istiod
          - port: 15443
            targetPort: 15443
            name: tls
EOF

Version (include the output of istioctl version --remote and kubectl version --short and helm version if you used Helm)
Observed on 1.6, probably affects all versions with operator support
Environment where bug was observed (cloud vendor, OS, etc)
GKE

probably fixed by https://github.com/istio/istio/pull/28490?

The default minReplicas is 1 so this is expected: https://github.com/istio/istio/blob/5dd86d95cf7c9ddab44c6b4f08b09a1cf41cb2f1/manifests/profiles/default.yaml#L80
I also tried editing the demo profile to set this to 2 and istioctl manifest generate --set profile=demo did produce 2 in that case.

If you dump the default profile, you'll see the default value for that field:
# istioctl profile dump default | grep minReplicas -B 13
2020-11-11T06:09:02.907429Z	info	proto: tag has too few fields: "-"
    egressGateways:
    - enabled: false
      k8s:
        env:
        - name: ISTIO_META_ROUTER_MODE
          value: standard
        hpaSpec:
          maxReplicas: 5
          metrics:
          - resource:
              name: cpu
              targetAverageUtilization: 80
            type: Resource
          minReplicas: 1
--
    ingressGateways:
    - enabled: true
      k8s:
        env:
        - name: ISTIO_META_ROUTER_MODE
          value: standard
        hpaSpec:
          maxReplicas: 5
          metrics:
          - resource:
              name: cpu
              targetAverageUtilization: 80
            type: Resource
          minReplicas: 1


building v0.13.0 or v0.14.0 is missing mixin-utils/utils.libsonnet

Recently having an issue with building and deploying kube-prometheus 0.13 or 0.14, stating that it is not able to import mixin-utils/utils.libsonnet. I see a bug that was reported and closed (https://github.com/prometheus-operator/kube-prometheus/issues/2463).
The suggestion in that issue as well as the merged fix doesn't work in my case, so I'm curious if I'm doing something wrong with my jsonnet config that would still cause an issue with the missing mixin-utils?
ERROR:
RUNTIME ERROR: couldn't open import "mixin-utils/utils.libsonnet": no match locally or in the Jsonnet library paths
	vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet:1:15-51	thunk <utils> from <$>
	vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet:335:29-34
	vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet:346:12-27	object <anonymous>
	vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet:[100]:25-79	object <anonymous>
	Field "k8s-resources-cluster.json"
	Field "data"
	Array element 9
	Field "items"
	Field "grafana-dashboardDefinitions"
	During manifestation

jsonnet file:
local grafana_fqdn = "k8s-grafana.examplehost.net";
local prometheus_fqdn = "k8s-grafana.examplehost.net";
local alertmanager_fqdn = "k8s-grafana.examplehost.net";

local kp =
  (import 'kube-prometheus/main.libsonnet') +
  (import 'kube-prometheus/addons/all-namespaces.libsonnet') +
  (import 'kube-prometheus/addons/node-ports.libsonnet') +
  (import 'kube-prometheus/addons/networkpolicies-disabled.libsonnet') +
  {
    values+:: {
      common+: {
        namespace: 'kubeprom',
        platform: 'kubeadm',
      },

      // kubePrometheus+: {
      //   platform: 'eks',
      // },

      alertmanager+:: {
        config: importstr 'alertmanager-config.yaml',
      },

      prometheus+:: {
        namespaces+: ['dev03','dev02','dev01'],
      },

      kubeStateMetrics+:: {
        baseCPU: '200m',
        cpuPerNode: '4m',
        baseMemory: '300Mi',
        memoryPerNode: '60Mi',
      },

      grafana+:: {
        resources: {
          requests: { cpu: '100m', memory: '200Mi' },
          limits: { cpu: '500m', memory: '1500Mi' },
        },
        config: {
          // http://docs.grafana.org/installation/configuration/
          sections: {
            // Do not require grafana users to login/authenticate
            'auth.anonymous': {
              enabled: true
            },
            server+: {
              root_url: "http://" + grafana_fqdn + "/",
            },
          },
        },
        dashboards+:: {
          'hystrix-dashboard.json': (import '../dashboards/hystrix-dashboard.json'),
          'hystrixv2-dashboard.json': (import '../dashboards/hystrixv2-dashboard.json'),
          'hystrixv2-sb2-dashboard.json': (import '../dashboards/hystrixv2-sb2-dashboard.json'),
          'apache-dashboard.json': (import '../dashboards/apache-dashboard.json'),
        },
      },
    },

    prometheus+:: {
      prometheus+: {
        // Reference info: https://coreos.com/operators/prometheus/docs/latest/api.html#prometheusspec
        spec+: {
          // An e.g. of the purpose of this is so the "Source" links on http://<alert-manager>/#/alerts are valid.
          externalUrl: "http://" + prometheus_fqdn + "/prometheus",
          retention: '30d',
          storage: {
            volumeClaimTemplate: {
              apiVersion: 'v1',
              kind: 'PersistentVolumeClaim',
              spec: {
                accessModes: ['ReadWriteOnce'],
                // https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#resourcerequirements-v1-core (defines 'requests'),
                // and https://kubernetes.io/docs/concepts/policy/resource-quotas/#storage-resource-quota (defines 'requests.storage')
                resources: { requests: { storage: '100Gi' } },
                // A StorageClass of the following name (which can be seen via `kubectl get storageclass` from a node in the given K8s cluster) must exist prior to kube-prometheus being deployed.
                storageClassName: 'prometheus',
                // The following 'selector' is only needed if you're using manual storage provisioning (https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/storage.md#manual-storage-provisioning).
                // And note that this is not supported/allowed by AWS - uncommenting the following 'selector' line (when deploying kube-prometheus to a K8s cluster in AWS) will cause the pvc to be stuck in the Pending status and have the following error:
                //  * 'Failed to provision volume with StorageClass "ssd": claim.Spec.Selector is not supported for dynamic provisioning on AWS'
                #selector: { matchLabels: { env: 'monitoring', app: 'prometheus' } },
              },
            },
          },
        },
      },
    },

    alertmanager+:: {
      alertmanager+: {
        // Reference info: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerspec
        spec+: {
          externalUrl: "http://" + alertmanager_fqdn + "/alertmanager",
        },
      },
    },

  };

//{ '0namespace-namespace': kp.kubePrometheus.namespace } +
{
  ['setup/prometheus-operator-' + name]: kp.prometheusOperator[name]
  for name in std.filter((function(name) name != 'serviceMonitor' && name != 'prometheusRule'), std.objectFields(kp.prometheusOperator))
} +
// { 'setup/pyrra-slo-CustomResourceDefinition': kp.pyrra.crd } +
// serviceMonitor and prometheusRule are separated so that they can be created after the CRDs are ready
{ 'prometheus-operator-serviceMonitor': kp.prometheusOperator.serviceMonitor } +
{ 'prometheus-operator-prometheusRule': kp.prometheusOperator.prometheusRule } +
{ 'kube-prometheus-prometheusRule': kp.kubePrometheus.prometheusRule } +
{ ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) } +
{ ['blackbox-exporter-' + name]: kp.blackboxExporter[name] for name in std.objectFields(kp.blackboxExporter) } +
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) } +
// { ['pyrra-' + name]: kp.pyrra[name] for name in std.objectFields(kp.pyrra) if name != 'crd' } +
{ ['kube-state-metrics-' + name]: kp.kubeStateMetrics[name] for name in std.objectFields(kp.kubeStateMetrics) } +
{ ['kubernetes-' + name]: kp.kubernetesControlPlane[name] for name in std.objectFields(kp.kubernetesControlPlane) }
{ ['node-exporter-' + name]: kp.nodeExporter[name] for name in std.objectFields(kp.nodeExporter) } +
{ ['prometheus-common' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
{ ['prometheus-adapter-' + name]: kp.prometheusAdapter[name] for name in std.objectFields(kp.prometheusAdapter) }
//{ [name + '-ingress']: kp.ingress[name] for name in std.objectFields(kp.ingress) }

build script:
#!/bin/bash
# This script uses arg $1 (name of *.jsonnet file to use) to generate the manifests/*.yaml files.

set -e
set -x
# only exit with zero if all commands of the pipeline exit successfully
set -o pipefail

# Make sure to start with a clean 'manifests' dir
rm -rf ${2}/manifests
mkdir -p ${2}/manifests
mkdir -p ${2}/manifests/setup

# optional, but we would like to generate yaml, not json
jsonnet -J vendor -m ${2}/manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {}
#jsonnet -J vendor -m manifests "${1-example.jsonnet}"

build environment setup in pipeline:
  # install GO
  - apk add go
  - apk add gettext
  - apk add git
  - git config --global user.name "Name Name"
  - git config --global user.email<EMAIL_ADDRESS>  # install jsonnet stuff
  - export PATH=${PATH}:`go env GOPATH`/bin
  - go install -a github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
  - go install github.com/brancz/gojsontoyaml@latest
  - go install github.com/google/go-jsonnet/cmd/jsonnet@latest
  # install jb
  - jb init
  - jb install github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus@${KUBE_RELEASE}
  # build manifest files
  - ./build.sh ${CLUSTER}/${CLUSTER}.jsonnet ${CLUSTER}

Not sure if this is just my environment, but the fix for me was to download the repo that contains mixin-utils via:
jb install github.com/grafana/jsonnet-libs
and then update the build.sh command to include the path to where the mixin-utils is to the jsonnet command:
jsonnet -J vendor -J ./vendor/github.com/grafana/jsonnet-libs -m ${2}/manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {}
So, this must have been a jsonnet pathing issue for me, but honestly not sure why it started because I've used this same pipelnie to deploy kube-prom in the past, maybe a few months ago.

Final comments. I updated the container image to Ubuntu from Alpine. Also here are the updates as a whole:
build.sh
#!/bin/bash
# This script uses arg $1 (name of *.jsonnet file to use) to generate the manifests/*.yaml files.

set -e
set -x
# only exit with zero if all commands of the pipeline exit successfully
set -o pipefail

# Make sure to start with a clean 'manifests' dir
rm -rf ${2}/manifests
mkdir -p ${2}/manifests
mkdir -p ${2}/manifests/setup

# optional, but we would like to generate yaml, not json
# jsonnet -J vendor -m ${2}/manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {}
jsonnet -J vendor -J ./vendor/github.com/grafana/jsonnet-libs -m ${2}/manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {}
#jsonnet -J vendor -m manifests "${1-example.jsonnet}"

pipeline
  # install GO
  - apt-get -y install golang-go
  - git config --global user.name "Name Name"
  - git config --global user.email<EMAIL_ADDRESS>  # install jsonnet stuff
  - export PATH=${PATH}:`go env GOPATH`/bin
  - go install -a github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
  - go install github.com/brancz/gojsontoyaml@latest
  - go install github.com/google/go-jsonnet/cmd/jsonnet@latest
  # install jb
  - jb init
  - jb install github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus@${KUBE_RELEASE}
  - jb install github.com/grafana/jsonnet-libs
  # build manifest files
  - ./build.sh ${CLUSTER}/${CLUSTER}.jsonnet ${CLUSTER}


fill_entry dereferences null pointer

fill_entry doesn't check cma[3] for null, but fill_dir_sector passes a null pointer

Thanks a lot. Bug fixed.


introducing storage class locality

Adopt feature from https://github.com/longhorn/longhorn/issues/1045 for helm charts.
Kind thanks to @jenting leading me here.

Thanks for the contribution.
Please also update questions.yml as other persistence settings.

Let me know if that does the job. Cheers.


Update power definition

closes #79

the pull request is missing in the term tracker

This is still missing.

see line 2575


containerapp-preview support additional port mappings

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Thank you for your contribution! We will review the pull request and get back to you soon.

Hold this pr, until api-version 2023-05-02-preview release.


Automatically Add Dependabot Changelog Entry Under an Unreleased

Is your feature request related to a problem? Please describe.
Dependabot PRs can often become overwhelming and then don't automatically keep a record of their existence.
This feature is to combine the Changelog Enforcer's ability to see if a change was made to the ChangeLog, to add an auto-entry from a Dependabot PR.
Describe the solution you'd like
Ideally, this would be an opt-in feature where an action workflow can say that they want to add Dependabot Changelog Entries to their Changelog. Some ideas include using labels where an argument - dependabotUpdateLabel - would update the changelog when that label is present. Many Dependabot users add auto-labels to their PRs via dependabot.yml config files, so this would tie well into that pattern.
As far as the entry itself, Dependabot can configure the commit message, so simply using that message from the PR would suffice as the entry.
Describe alternatives you've considered
Another option would be to look for the pull request author, but there may be times that a team doesn't want to do a Dependabot Changelog Entry, but they do for others. Labels allow this easily since Dependabot can add different labels for different eco-systems, etc.

This idea has moved to a new GitHbub action specifically for this use case, plus additional uses cases like incrementing the version number


Tutorial notebook addition

Description of proposed changes
Adding a fixed notebook using more xbatcher utilities and more realistic dataset

Codecov Report

Merging #160 (4074fa2) into main (963a8d3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #160   +/-   ##
=======================================
  Coverage   96.04%   96.04%
=======================================
  Files           6        6
  Lines         329      329
  Branches       70       70
=======================================
  Hits          316      316
  Misses          8        8
  Partials        5        5

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

Hi @maxrjones, I am just checking in on this. Thanks!