Error with virtualenv venv -p /usr/local/bin/python3

Hello, I am new to virtualenv. I have no idea why this has errors. Can anyone help me to resolve it?

Hi, It seems like an issue with your python installation. Check that Python is indeed installed at the specified path /usr/local/bin/python3. Since you're on Windows, I'd recommend taking a look at the installation guide here.
Hope it helps!


Users should by able to see the full list of filters

Users should by able to see the full list of filters
User story
As a user, when I'm searching through a list
I need to be able to see all the filters that I have selected
So that I can tell how I have refined my search results
The people required for kick off are:

Laura + developer + Jeremy

Context/Problem
The height of the filter boxes is fixed and this means if the list of filters is above 6, the filters are hidden and users have to scroll down to see the full list. On the DOS opportunities page there is no search summary so if users select filters they won't be able to refer back to which ones they have selected easily.
What are we making?

changing the height of the filter boxes so it is no longer restricted and  expands to include the full range of filters
filters already behave this way on mobile

Info/Consideration

@jeremy will update the screenshots of the user flow

Ticket: https://trello.com/c/9oSx43Mv/219-users-should-by-able-to-see-the-full-list-of-filters
Before:

After:

Is this going to affect all option selects on the digital marketplace? Do we use them anywhere else other than filtering search results?

@Wynndow - yes this would affect all option boxes but it is only used in filters template

How does the G-Cloud search page look? Cloud hosting has a bunch of lot specific filters. This could make that 1/3 column look a lot longer? Or are we happy with that?

I think that's the desired behaviour now.


null pointer dereference openCV

There is a null pointer dereference in openCV
Details:
platform: Linux x86/x64
Version: opencv-3.0.0
OpenCV version 3.0.0 is vulnerable to null pointer dereference, the vulnerability can be triggered through the use of opencv_annotation from the command line. this vulnerability will cause a crash in openCV and In a very rare circumstances and environments, code execution is possible.
when running opencv_annotation with any parameter (i used this as P388Ù8888888888 a parameter) it crashes because opencv2/core/cvstd.hpp at line 942 is dereferencing "i" which is out of bound .
-bash-4.2$ gdb /opt/opencv/bin/opencv_annotation
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /opt/opencv/bin/opencv_annotation...done.
(gdb) r P388Ù8888888888
Starting program: /opt/opencv/bin/opencv_annotation P388Ù8888888888
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
find_last_of (pos=18446744073709551615, s=0x7ffff7360a5e <dir_separators> "/", this=0x7fffffffe0a0)
at /home/alaamub/opencv-3.0.0/modules/core/include/opencv2/core/cvstd.hpp:942
942	            if (s[j] == *i)
(gdb) bt full
#0  find_last_of (pos=18446744073709551615, s=0x7ffff7360a5e <dir_separators> "/", this=0x7fffffffe0a0)
at /home/alaamub/opencv-3.0.0/modules/core/include/opencv2/core/cvstd.hpp:942
j = 0
i = 0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>
#1  cv::glob (pattern=..., result=std::vector of length 0, capacity 0, recursive=recursive@entry=false) at /home/alaamub/opencv-3.0.0/modules/core/src/glob.cpp:278
path = {static npos =<PHONE_NUMBER>3709551615, cstr_ = 0x0, len_ = 0}
wildchart = {static npos =<PHONE_NUMBER>3709551615, cstr_ = 0x0, len_ = 0}
#2  0x0000000000402707 in main (argc=, argv=) at /home/alaamub/opencv-3.0.0/apps/annotation/opencv_annotation.cpp:187
image_folder = ""
folder = {static npos =<PHONE_NUMBER>3709551615, cstr_ = 0x0, len_ = 0}
annotations = ""
output =
filenames = std::vector of length 0, capacity 0
please note that i already sent a request to assign a CVE for it.

thanks for the report, it can be reproduced as simple as:
cv::String s = ""; //empty
size_t pos = s.find_last_of("x");

there seems to be a check for len_==0 missing here:
https://github.com/Itseez/opencv/blob/master/modules/core/include/opencv2/core/cvstd.hpp#L938  / #L938

As I am the author of the tool, is there any way that I could adapt the tool so that it doesn't suffer from this problem anymore? Then I can include it in the next update.

Hi, the fix is simple, before using the pointer, ensure that it is not equal to NULL here,
https://github.com/Itseez/opencv/blob/master/modules/core/include/opencv2/core/cvstd.hpp#L942
also as @berak said, you need to check for len_==0 which is missing here:
https://github.com/Itseez/opencv/blob/master/modules/core/include/opencv2/core/cvstd.hpp#L938 / #L913

Ow okay, then the fix is not directly inside the tool itself, but rather in functions it uses. Could you open up a PR with the fix?

Reply from CVE assignment team:
We do not agree that this is, in general, a NULL pointer dereference
issue. The mistake that exists directly in the referenced source code
is an attempt to assign the value of -1 to an unsigned integer (pos).
This causes pos to have a huge positive value. Then, "i = cstr_ + pos"
causes i to be an invalid pointer, and *i is an invalid pointer
dereference that causes a crash.
However, the original problem might be elsewhere in the
opencv_annotation source code. You are reporting that the value of
cstr_ is 0x0. In that situation, find_last_of should not have been
called at all, regardless of whether find_last_of was correctly
implemented. If cstr_ is 0x0, find_last_of would typically be
searching in memory locations that have small positive values (e.g.,
memory location 1), and this is obviously not useful. The original
problem that you discovered may be a cv::String object that
unintentionally was constructed with 0x0 as both the len_ value and
the cstr_ value.
The "berak" example of:
cv::String s = ""; //empty
may help to illustrate the source-code problem; however, it is unclear
whether any possible use of the opencv_annotation program would result
in a cv::String object where cstr_ was nonzero but len_ was zero.
Thus, we can divide this into two cases, A and B.
A. Your discovery is a chain of issues in which:

cstr_ is, for an unknown reason, equal to 0x0 but find_last_of is
called anyway
because len_ is also 0x0, there is an incorrect attempt to associate -1
with an unsigned data type
this later leads to an invalid pointer dereference

Use CVE-2015-5710 to refer to the vulnerability defined by this chain
of issues.
B. The "berak" discovery shows a source-code error, but it is not
known whether this error is reachable during use of the
opencv_annotation program. Thus, the "berak" discovery does not
currently have a CVE ID. If there is future research that
identifies a call to find_last_of in which len_ is 0x0 but cstr_ is
not 0x0, then that case could have a different CVE ID.

CVE assignment team

once the String::find_last_of issue gets fixed, glob() tries to get smart, if given an empty folder string, and tries to search the current dir (".") . it would still need a default for the txtfile.
@StevenPuttemans , maybe you could use the CmdLineParser:
https://gist.github.com/berak/53d1c0f1c67074168789
drawback is the different syntax: annotate -i=some/path/ -a=my.txt  (which is not really intuitive) , but at least this makes sure there's a valid folder and a sensible default for the textfile (also it won't get fooled by dummy params like above)
last, but not least, it might need checking the imread() output (there might be non-images in the path)

@alaamub @berak
if I understand it correctly, the only time stuff like this is happening is when people supply wrong parameters? How does train_cascade or create_samples cope with that then? Because that seems to be identical.
For me, if this is pure the case of people needing to pay attention, then I am not really up to changing the complete interface. The syntax is now straightforward and identical for all tools.
As for
--> checking the input, seems fair and reasonable
--> checking if the path actually exists on the system can be done also
Will apply those fixes asap!

As i mentioned in the post earlier, two issues need to be tackled here,

cstr_ is, for an unknown reason, equal to 0x0 but find_last_of is called anyway (you may need to fix this)
because len_ is also 0x0, there is an incorrect attempt to associate -1 with an unsigned data type (making len_ 0x0 makes the unsigned "pos" negative and that leads to the crash and this is something you need to fix) so check for the length first to avoid "pos" to be negative. and then check to see why cstr_ for an unknown reason is equal to 0x0. you can also implement the two things you mentioned (checking the input, checking if the path actually exists). thanks

Like you can see, I added checks for a correct input image read, the existance of the folder and the fact that the output stream is actually created or not. This for both 2.4 and master branch!

this should make it to work, once you release it i will test it again . thanks

All bugfixes seem processed, lets wait and see if it gets merged now :)

Both fixes were merged, so this can be closed down.

Thanks.


Marketing: Write Blog Post and work with #social-media

Release timeline will be based on "final ui/contract testing + blog post + production server setup".

Written, reviewed by the Writer's Guild, and ready-to-go.


Automatically loading state from a file in my .emacs

I want to load a state (currently I have only one, main) when Emacs starts.  I tried this in my ./emacs:
(use-package perspective
  :config
  (persp-mode)
  (setq persp-state-default-file "~/.emacs.d/perspective_save")
  ;; Load all perspectives from the save file, and enable persp-mode.
  (persp-state-load "~/.emacs.d/perspective_save")
  (persp-state-switch "main")
  ;; Automatically save perspective session when Emacs exists.
  (add-hook 'kill-emacs-hook #'persp-state-save)
  )

...but it doesn't work.  I still have to do a C-x x C-l to load the file and automatically switch to main.
What am I doing wrong?

You might be getting burned by use-package lazy loading semantics. What if you add :defer nil before the :config form?
If that doesn’t work, maybe take a look at the *Messages* buffer after startup and look for errors?

Duh, *Messages*! I had a typo ("perps-state-switch")!
I fixed that and also added an :ensure t.  But, still no good. :(
I'll try a version of my .emacs with virtually everything else deleted later today.
Here's the current code:
(use-package perspective
  :ensure t
  :config
  (persp-mode)
  (setq persp-state-default-file "~/.emacs.d/perspective_save")
  ;; Load all perspectives from the save file, and enable persp-mode.
  (persp-state-load "~/.emacs.d/perspective_save")
  (persp-switch "main")
  ;; Automatically save perspective session when Emacs exists.
  (add-hook 'kill-emacs-hook #'persp-state-save)
  )

:ensure t will not help here; it does package installation, not loading, and you already have the package installed. I think you’re running into trouble with deferred loading. So try some combination of :defer nil and :demand t, especially if you have use-package-always-defer set to t. If that doesn’t work, I’ll try to reproduce your setup locally and I’m sure we’ll figure it out.

Adding :defer nil and :demand t did the trick.  Thank you!


Improve update process

Fix #216
Cleaner PR than #235: just improves the update process without worrying about special settings/data files.

Always fill appsInstalled before uploading
Install: if appid.info already on device, update instead
Update: get files to remove from appid.info, only remove files which
won't be overwritten anyway
Remove: get files to remove from appid.info

Thanks for this! It looks really tidy...


update dashboard filter styles

Update dashboard results area (right above the grid or table) to the new specs - some stuff has swapped places. https://www.figma.com/file/bMhG3KyrJF8vIAODgmbeqT/Design-System?node-id=467%3A13745

Can use Text, Button, Icon, Tooltip and Dropdown from Design System

Verified in QA


3D-Rotating-Card

It is an advanced 3D rotating card component in React that flips on hover, utilizing pure CSS for the 3D effect, animations, and a modern Glassmorphism design. This component is highly customizable, allowing users to pass in custom content for the front and back faces via props. It provides an engaging, interactive experience ideal for portfolio or UI showcase projects.
Key Features:
CSS Hover Rotation: The card smoothly flips on hover without JavaScript.
Glassmorphism Style: Both card faces have a frosted-glass appearance, with blurred backgrounds and subtle shadows for a modern look.
Reusable Component: Customizable frontContent and backContent props make this component flexible for multiple use cases.
Smooth Animation: Uses cubic-bezier for smooth, realistic transitions on hover.

@DHEERAJHARODE can  you please merge my pull request


key_tests.cpp

Update compressed and uncompresed private keys and addresses.

https://github.com/neiros/TDC/commit/f43ffb06ca4b6451dd3a808b3b43dd8b543c6009


[DOCFIX] Update Configuration-Properties.md of the Chinese version

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/16742/
Test PASSed.

this branch has non-related changes @Lichongjie

@Lichongjie can you re-target this PR to branch -1.6? thanks


[test] Migrate to quickcheck 1.0

Breaking changes require handling in migration from quickcheck 0.8 -> 1.0.

Addressed by @misaka10987 in #6, thank you!


Restore lost DPI scaling fix for draggable regions feature

We had this fix in #153, then it was lost somehow. Probably during drag handler implementation.

@donotcodeit thanks for noticing this.


Added Faker::Workout for fake exercises

Added the ability to generate random exercises using Faker::Workout.exercise and random cardio intervals using Faker::Workout.random_cardio. Also, wrote complementing tests and updated the README accordingly.

Hi there,
I was reviewing this pull request and notice it has not been merged. If it was not merged because of the failed travis CI build. Is there anyway you could help me debug the problem? I did not change very much and am confused as to what would have caused the failure.
Thanks for your time,
Aaron

It looks like there you duplicated the Customization section of the README.  Please fix and re-open.


[UI] Chevron not visible on drawer close

Current Behavior
The chevron in the dashboard is getting pushed down when the drawer is closed.
Desired Behavior
The chevron should be visible to the user on closing of the drawer.
Implementation
The chevron is already sticky, but the space between the other icons seems to be causing, try decreasing that.
Acceptance Tests

[ ] Chevron should be visible when the drawer is closed.

Contributor Guides and Resources

🎨 Wireframes and designs for Meshery UI in Figma
🖥 Contributing to Meshery UI
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

@warunicorn19 I would like to work on this

Sure, go ahead @sgibson19

This issue is fixed by #3890


Label of buttons don't set anymore.

In DAT@2 there are labels/overlays shown in DAT desktop for the icons:

https://github.com/dat-land/dat-desktop/blob/05f81099513698c83713a1fcf25a5b91e303b0d3/elements/table-row.js#L241
https://github.com/dat-land/dat-desktop/blob/05f81099513698c83713a1fcf25a5b91e303b0d3/elements/button.js#L111-L114
in DAT@3 it seems it only shows some key.

closed by this PR https://github.com/dat-land/dat-desktop/pull/584


python310Packages.asyncstdlib: 3.10.6 -> 3.10.7

Diff: https://github.com/maxfischer2781/asyncstdlib/compare/refs/tags/v3.10.6...v3.10.7
Changelog: https://github.com/maxfischer2781/asyncstdlib/releases/tag/v3.10.7
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 229478 run on x86_64-linux 1

17 packages built:

home-assistant-component-tests.denonavr
python310Packages.asyncstdlib
python310Packages.asyncstdlib.dist
python310Packages.denonavr
python310Packages.denonavr.dist
python310Packages.icontract
python310Packages.icontract.dist
python310Packages.pylddwrap
python310Packages.pylddwrap.dist
python311Packages.asyncstdlib
python311Packages.asyncstdlib.dist
python311Packages.denonavr
python311Packages.denonavr.dist
python311Packages.icontract
python311Packages.icontract.dist
python311Packages.pylddwrap
python311Packages.pylddwrap.dist


black square box while generating pdf (unicode error)

A weird problem. While generating pdf, inplace of unicodes square black boxes apperars. Dont know if its unicode or font-face error. I even dont know if to use the "font-face and font-family" to generate the unicode into pdf. Anything I am missing ??
Great thanks.
Code snippet
# -- coding: utf-8 --
from xhtml2pdf import pisa
from StringIO import StringIO

source = """<html>
            <style>
                @font-face {
                font-family: Mangal;
                src: url("mangal.ttf");
                }

                body {
                font-family: Mangal;
                }
            </style>
            <body>
                This is a test <br/>
                       सरल
            </body>
        </html>"""

# Utility function
def convertHtmlToPdf(source):
    pdf = StringIO()
    pisaStatus = pisa.CreatePDF(StringIO(source.encode('utf-8')), pdf)

    # return True on success and False on errors
    print "Success: ", pisaStatus.err
    return pdf

# Main program
if __name__=="__main__":
    print pisa.showLogging()
    pdf = convertHtmlToPdf(source)
    fd = open("test.pdf", "w+b")
    fd.write(pdf.getvalue())
    fd.close()

All this has been mentioned in this thread before in some form, but it took me still a while to get it to run. The important parts for me were:
@font-face {
    font-family: "FONTNAME";
    src: url('/absolute/path/to/yourfonts/somefontfile.ttf')
}

body {
    font-family: "FONTNAME";
}

If you still get black/white boxes, make sure the font you use actually defines glyphs for the unicode code points that you are using! If looking at the HTML in your browser seem to works well but not using xhtml2pdf, it's probably because your browser falls back to other fonts (e.g. Times New Roman).

Closing this as a duplicate of #11 which should be fixed before we can release 0.1.
However lots of good info, props to everyone for sharing solutions!

This was never fixed, right?
I still explicitly need set the font-family for the body if I want non-latin characters to appear?

@serboctor you're commenting on a closed ticket, please see #11

Welcome...
If you want any kind of python support or related to flask do remember me.
We do outsourcing as well. So if you need any kind of works to be done, we
are here for you.
On Fri, Sep 6, 2013 at 3:48 PM, Lazarev Eugene<EMAIL_ADDRESS>
it's worked!!!! awesome!!!
thanks again, and if you need any programming help we can provide it to you
trouble was in wraping src in StringIO.StringIO() that doesn't need
before
pdf = pisa.pisaDocument(StringIO.StringIO(html), result)
after
pdf = pisa.pisaDocument(html, result)
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/129#issuecomment-23930265
.

Regards,
Bibek Chitrakar
Hello bibek, Your solution seems helpful. After providing relative path for the font. Only one fonts type get render. What if I want to render tow types of fonts instead at once..

It's very disappoiting to add local fonts for any HTML document to render in non-latin encoding


Add pre-commit support

pre-commit is a framework for managing and maintaining multi-language pre-commit hooks
https://github.com/pre-commit/pre-commit
https://pre-commit.com/
It is possible to configure the tool to automatically lint and format the code before it is committed. Looks like this is the most used tool for this purpose in the python ecosystem
If some tool/repo wants to support this, it has to add .pre-commit-hooks.yaml file in the repo. Example for black:
https://github.com/psf/black/blob/main/.pre-commit-hooks.yaml
There is a repo that adds pre-commit hooks for tidy
https://github.com/guykisel/pre-commit-robotframework-tidy
Better to support this natively for robotiddy
Having an ability to automatically format robot code before commit should help in increasing the adoption of the tool

Pre-commit hooks are already supported. Missed that


What happened to ForegroundText color property?

What happened to ForegroundText color property?
How do set the app tile text to light or dark?

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

ID: 415ae1d9-f292-b920-3206-0c88489ba54c
Version Independent ID: 011fd0bd-641d-7444-2f8e-00fe8195b42e
Content: uap:VisualElements (Windows 10) - Windows UWP applications
Content Source: winrt-related-src/schemas/appxpackage/uapmanifestschema/element-uap-visualelements.md
Product: uwp
Technology: winrt-reference
GitHub Login: @GrantMeStrength
Microsoft Alias: jken

Thanks for taking the time to let us know about this. Due to the sheer volume of feedback in our repo, we're currently prioritizing new Issues. If you believe your feedback is still actionable, let us know either directly in this thread or by filing a new Issue and we’ll work to incorporate your suggestions. Though this issue will be marked as Closed, this issue is still being tracked internally and you're welcome to leave a comment with more details. Thank you again!


fix: update rb_cData to rb_cObject to support Ruby 3.2+

rb_cData was deprecated in Ruby 3.1 and removed in Ruby 3.2.

https://github.com/ruby/ruby/commit/089b7a8
https://bugs.ruby-lang.org/issues/3072#note-15

Fixes #3
Without this change, compiling results in this error:
compiling ../../../../ext/cppjieba_rb/internal.cc
../../../../ext/cppjieba_rb/internal.cc: In function ‘void Init_internal()’:
../../../../ext/cppjieba_rb/internal.cc:166:81: error: ‘rb_cData’ was not declared in this scope; did you mean ‘rb_eFatal’?
  166 |     rb_cCppjiebaRb_Internal = rb_define_class_under(rb_mCppjiebaRb, "Internal", rb_cData);
      |                                                                                ^~~~~~~~
      |                                                                                rb_eFatal
make: *** [Makefile:214: internal.o] Error 1

Thanks for the details!


mkfontscale: 1.1.3 -> 1.2.0

Motivation for this change
https://lists.x.org/archives/xorg-announce/2019-March/002960.html
Things done

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

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] 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/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

From release notes, this now include mkfontdir which is no longer shipped as a separate package.
We should change our code to reflect this (add a compatibility alias?)!

Closing in favor of #57778 .


restriction is not working [opera]

Using pattern="\d*" ng-pattern-restrict type="number" I can type letters in my input.
opera version 12.16 rev 1860
angular 1.3.5

It was me indeed ^^
line 105 is too restrictive. It might require some tests with other types like tel for example.
Sorry for the delay, it's working fine on my side you can merge it and close this issue.
Concerning #12, seeing errors in my console bothered me. The fact that the caret doesn't keep its position is not a great loss. If I could I would have labeled 12 as a minor annoyance.

Thanks! I've merged #14 and that should solve this problem! Thanks for coming back to this.
Closing this ticket.


dlc problem

whenever i try to go into the sonic adventure world (with sonic duh) it says i need to buy it from the ps store and i have also used the pkg file and it still doesnt work. fix?

its fixed now i used nopaystation


drag&drop error when "confirm(...)" in beforeDrop callback event

In my project I need to confirm node drap&drop before save changes to server. In "beforeDrop" callback I inserted JavaScript confirm("...") and set $$apply correspondingly to user answer. But I encountered with angular error "$apply already in progress". Problem occurs in IE11 and Firefox. Crome is ok, it works differently.
Detailed problem description:

drag&drop any node to some other place
see the confirmation dialog
while mouse is outside of the confirm dialog it's ok, tree waits for user answer. But the moment cursor hovers dialog window, "dragCancelEvent" fires and tries to cancel drop, while we waiting for user answer
angular "$apply already in progress" error occurs

In my fork I've commented out line with "onmouseleave" event binding and all works fine. Can you explain was it a bug, or I did something wrong?
options = {
beforeDrop: function(params) {
if (!confirm("Are you sure?")) {
sourceNode.$$apply = false;
return;
}
}

I made two branches to implement the change I ended up making. Take a look and comment.
bronielsen:bronielsen-patch-confirmationDialog
and
bronielsen:bronielsen-patch-confirmationDialog-1


Introduce digdag projects cmd

This PR implement digdag projects command. It outputs the project list.
Current API has '/api/projects'. But CLI doesn't exist.
@muga, @yoyama What do you think?
If this proposes command useful, I'll add a test.
Does it integration test?

@hiroyuki-sato Thanks for your proposal.
Good idea! please continue it.
Just my idea, display not only name, but also another data suche as attempts command may be helpful for users.

I want all info which /projects API returns such as created_at, updated_at.
Either of with or without an option is fine.
Also, I thought the API returns deleted_at.
So, adding an option to show deleted projects or not would be useful.

@yoyama, @sonots
Thank you for the comment.
What do you think about this output?
And do you know whether '/api/projects' returns deleted projects?
It seems that that API doesn't return it.
I couldn't get deleted project lists.
./pkg/digdag-0.9.36-SNAPSHOT.jar projects
2019-03-26 17:42:07 +0900: Digdag v0.9.36-SNAPSHOT
fuga
  id: 2
  revision: 9181e423-394c-445e-8434-141dd5671638
  archive type: db
  project created at: 2019-03-26T08:40:10Z
  revision updated at: 2019-03-26T08:40:10Z
hoge
  id: 3
  revision: db2a2658-cf43-4076-9bd1-b134ace63c5b
  archive type: db
  project created at: 2019-03-26T08:42:03Z
  revision updated at: 2019-03-26T08:42:03Z

Use `digdag workflows <project-name>` to show details.

@hiroyuki-sato It looks like good.
If API does not support deleted projects, I guess you had better separate it from this PR.

@yoyama I'm not sure whether API gets deleted project or not.
But It seems that the API filter deleted the project
https://github.com/treasure-data/digdag/blob/master/digdag-server/src/main/java/io/digdag/server/rs/ProjectResource.java#L275
I removed these codes.

Outputs would be better to be like “digdag sessions” or “digdag schedules”.

@yoyama, @sonots
Current implementation referenced digdag push command.
What do you think this sample output?
 Please take a look when you have time.
Projects
  name: hoge
  id: 1
  revision: b2451942-59fa-43ab-9f71-5929716ace02
  archive type: db
  project created at: 2019-03-27 17:20:11 +0900
  revision updated at: 2019-03-27 17:20:11 +0900

  name: fuga
  id: 2
  revision: a047baca-83d3-4d7f-8b10-c39abc7b1b45
  archive type: db
  project created at: 2019-03-27 17:20:17 +0900
  revision updated at: 2019-03-27 17:20:17 +0900

Use `digdag workflows <project-name>` to show details.

@hiroyuki-sato Thanks, GJ!
Could you add test? After you finish work, I would like to review.

@yoyama, Thank you for the comment.
I added simple Integration test. Please take a look when you have time.

@hiroyuki-sato Thank you for your contribution.
I wrote a few comments. Please check them.
In addition, could you support  "projects " if possible?
Other commands 'workflows', 'sessions' support argument of name to show one data only.
So I guess supporting it in 'projects' command is also better.

@yoyama Thank you for the comment. I fixed your comments.
About projects support, does this mean like the following?
digdag projects
Projects
  name: hoge
  id: 1
  revision: b2451942-59fa-43ab-9f71-5929716ace02
  archive type: db
  project created at: 2019-03-27 17:20:11 +0900
  revision updated at: 2019-03-27 17:20:11 +0900

  name: fuga
  id: 2
  revision: a047baca-83d3-4d7f-8b10-c39abc7b1b45
  archive type: db
  project created at: 2019-03-27 17:20:17 +0900
  revision updated at: 2019-03-27 17:20:17 +0900

digdag projects fuga
  name: fuga
  id: 2
  revision: a047baca-83d3-4d7f-8b10-c39abc7b1b45
  archive type: db
  project created at: 2019-03-27 17:20:17 +0900
  revision updated at: 2019-03-27 17:20:17 +0900

@hiroyuki-sato Sorry for my broken reply.
Yes that's right. I think keeping consistency with other commands as much as possible is better for users.

@yoyama I simply implemented that feature.  Please take a look when you have time.
I'm wondering whether it should output like "no much" if proj_name doesn't match any project.

Can you use DigdagClient.getProject(String name) if the name argument is specified?

@yoyama I reimplemented using DigdagClient.getProject(String name). Please take a look when you get a chance.

@hiroyuki-sato Thanks for your works. I think it is basically good. But I had a few comments.
Could you check them if possible?

@yoyama Fixed your comments. PTAL again.

@hiroyuki-sato Thank you for your modification. I made one more comment. Could you check it again?

@yoyama Thanks!, Fixed. Please take a look again.
./pkg/digdag-0.9.36-SNAPSHOT.jar projects fuga
2019-04-10 18:51:30 +0900: Digdag v0.9.36-SNAPSHOT
error: Project 'fuga' does not exist.

And exit status 1

Thank you!


feat: add amqp, mqtt and http bindings for v3

Description
This PR takes the recent changes to bindings and adapts the schema files.

Adding 0.3.0 for AMQP as introduced in https://github.com/asyncapi/bindings/pull/202
Adding 0.2.0 for HTTP as introduced in https://github.com/asyncapi/bindings/pull/204
Adding 0.3.0 for MQTT as introduced in https://github.com/asyncapi/bindings/pull/205
v3 ONLY reference this new version of the bindings.

Sorry @dalelane had to fix the documents as well as they used the MQTT bindings 😄
Need another review 👀


Not able to import socket.io-client

I am making a custom dashboard and not able to import any external dependency. How am I supposed to do that?

'socket.io-client' is imported by my-dashboard-component.jsx, but could not be resolved – treating it as an external dependency

Thank you

you have to add this /socket.io/socket.io.js assets.scripts in AdminBroOptions and serve it by your HTTP server (express):

I am new in react js can you please tell me how to use that in .jsx file

import { AdminBroOptions } from 'admin-bro

const options: AdminBroOptions = {
....
    assets: {
          scripts: [
           'https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js'
           ]
     }
}


added eslint scanner

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

[X] Your code is flake8 compliant.
[X] Your code is python 3.5 compliant (specific python >=3.6 syntax is currently not accepted).
[X] If this is a new feature and not a bug fix, you've included the proper documentation in the ReadTheDocs documentation folder. https://github.com/DefectDojo/Documentation/tree/master/docs or provide feature documentation in the PR.
[X] Add applicable tests to the unit tests.
[X] Add the proper label to categorize your PR.

Current accepted labels for PRs:

Import Scans (for new scanners/importers)
enhancement
performance
feature
bugfix
maintenance (a.k.a chores)
dependencies
New Migration

Sorry for the mess folks! This is instead of #2465 - moved to use eslint instead of devskim. ESLint has support for many security rules, so this is why I want to use it instead.
See additional PRs - docs: DefectDojo/Documentation#100 and samples: DefectDojo/sample-scan-files#54

Hello. @omerlh please rebase this against the dev branch as suggested in the PR template. Since it was based on master originally, the commit history will likely be pretty dirty. This PR may have to be reopened with the original base being dev. Thanks in advance.

Sorry, somehow made the same mistake twice :( see #2558


the trait bound FutureResult : hyper::rt::Future is not satisfied

When I use the demo on the doc, I got an error:
Here is the code:
extern crate futures;
extern crate hyper;

use futures::future;
use futures::future::FutureResult;
use hyper::rt::{Future, Stream};
use hyper::service::service_fn;
use hyper::{Body, Method, Request, Response, Server, StatusCode};

/// We need to return different futures depending on the route matched,
/// and we can do that with an enum, such as `futures::Either`, or with
/// trait objects.
///
/// A boxed Future (trait object) is used as it is easier to understand
/// and extend with more types. Advanced users could switch to `Either`.
type BoxFut = Box<Future<Item = Response<Body>, Error = hyper::Error> + Send>;

/// This is our service handler. It receives a Request, routes on its
/// path, and returns a Future of a Response.
fn echo(req: Request<Body>) -> BoxFut {
    let mut response = Response::new(Body::empty());

    match (req.method(), req.uri().path()) {
        // Serve some instructions at /
        (&Method::GET, "/") => {
            *response.body_mut() = Body::from("Try POSTing data to /echo");
        }

        // Simply echo the body back to the client.
        (&Method::POST, "/echo") => {
            *response.body_mut() = req.into_body();
        }

        // Convert to uppercase before sending back to client.
        (&Method::POST, "/echo/uppercase") => {
            let mapping = req.into_body().map(|chunk| {
                chunk
                    .iter()
                    .map(|byte| byte.to_ascii_uppercase())
                    .collect::<Vec<u8>>()
            });

            *response.body_mut() = Body::wrap_stream(mapping);
        }

        // Reverse the entire body before sending back to the client.
        //
        // Since we don't know the end yet, we can't simply stream
        // the chunks as they arrive. So, this returns a different
        // future, waiting on concatenating the full body, so that
        // it can be reversed. Only then can we return a `Response`.
        (&Method::POST, "/echo/reversed") => {
            let reversed = req.into_body().concat2().map(move |chunk| {
                let body = chunk.iter().rev().cloned().collect::<Vec<u8>>();
                *response.body_mut() = Body::from(body);
                response
            });

            return Box::new(reversed);
        }

        // The 404 Not Found route...
        _ => {
            *response.status_mut() = StatusCode::NOT_FOUND;
        }
    };

    Box::new(future::ok(response))
}

fn main() {
    let addr = ([127, 0, 0, 1], 3000).into();

    let server = Server::bind(&addr)
        .serve(|| service_fn(echo))
        .map_err(|e| eprintln!("server error: {}", e));

    println!("Listening on http://{}", addr);
    hyper::rt::run(server);
}

And here is the error:
error[E0277]: the trait bound `futures::future::FutureResult<hyper::Response<hyper::Body>, _>: hyper::rt::Future` is not satisfied
  --> src/main.rs:68:5
   |
68 |     Box::new(future::ok(response))
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `hyper::rt::Future` is not implemented for `futures::future::FutureResult<hyper::Response<hyper::Body>, _>`
   |
   = note: required for the cast to the object type `hyper::rt::Future<Error=hyper::Error, Item=hyper::Response<hyper::Body>> + std::marker::Send`

error: aborting due to previous error

But in fact the FutureResult does impl the Future interface...
Any solution?

My first guess is if there could be a version conflict. What version of the futures crate do you have declared? hyper uses 0.1. A future returned by 0.2 does not implement the 0.1 trait.

So cannot you update futures to 2.0+?

@CasterKKK nope, see #1481 for context.


store errors in operation

Description
Adds the fault.Errors struct (now exported) to the
operations base.  stats.Errs is retained in the
backup and restore wrappers to avoid breaking
changes and allow for deserialization.  We will
continue to use the current error return until
dependencies are fully updated to use Errors.
Does this PR need a docs update or release note?

[x] :no_entry: No

Type of change

[x] :broom: Tech Debt/Cleanup

Issue(s)

#1970

Test Plan

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

@ashmrtn Could I get a review on this?  Please and thank you.


Hardcoded secret key

Hello,
We are a cybersecurity research group from the CISPA Helmholtz Center for Information Security and Ca’ Foscari University of Venice. We recently conducted an analysis of the session management used in your web application as part of our research. We have discovered a security vulnerability that we believe requires your attention.
Vulnerability Description:
After our analysis, we have identified that your application is using a hard-coded secret key that is leaked through GitHub. If operators  who install your web application do not change this secret key, they are vulnerable to cookie forgeries. The cookie forgery attack allows an attacker, knowing the key used to sign a cookie, to forge new arbitrary cookies to impersonate and take over other accounts.
link to the relevant code part
Recommendation for Mitigation:
To address this vulnerability and enhance the security posture of your web application, we highly recommend setting the secret key from an environment variable. If the environment file is not shared on GitHub then this would force operators of your application to create  their own key upon installation, forcing them to set their own secure secret key.
We hope this notification helps improve your security. Can you take a look into the relevant code parts and comment on the issue?

Hello,
The default value is hard coded. It will be overwritten by either a settings.cfg or the environment variable SECRET_KEY. See the documentation here and here.
The recommend way of running An Otter Wiki is the Docker image, there the SECRET_KEY is generated in the entrypoint.sh, but can still be overridden by an environment variable.
In order to make An Otter Wiki more secure, I added a check the the SECRET_KEY is not the default value (see 9646fd4b46356ba2a025986fd9c40584e309c4ed) and that the generate SECRET_KEY is more random (see 5aaa87d).


Support setting the process priority on Windows

Support setting the process priority on Windows
Version 0.2.2

Thanks @ala-ableton !

@ablbot autosquash


How to Raw Insert compressed CSV?

Hi,
I'm trying to insert CSV that is compressed with gzip, but I'm getting this error:
  File "/usr/local/lib/python3.11/site-packages/clickhouse_connect/driver/httpclient.py", line 276, in raw_insert
    response = self._raw_request(insert_block, params, headers,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/clickhouse_connect/driver/httpclient.py", line 425, in _raw_request
    self._error_handler(response)
  File "/usr/local/lib/python3.11/site-packages/clickhouse_connect/driver/httpclient.py", line 350, in _error_handler
    raise OperationalError(err_str) if retried else DatabaseError(err_str) from None
clickhouse_connect.driver.exceptions.DatabaseError: :HTTPDriver for https://<server-url>:443 returned response code 500)
 Code: 354. DB::Exception: inflate failed: data error. (ZLIB_INFLATE_FAILED) (version <IP_ADDRESS>23 (official build))

When I decompress the data using Python and insert it, the insert works flawlessly.
Steps to reproduce
ClickHouse version: <IP_ADDRESS>23
clickhouse-connect version: 0.6.6
Inserting into ReplacingMergeTree engine table with the client:
ch_client = clickhouse_connect.get_client(
    host=HOST,
    port=int(PORT),
    username=USER,
    password=PASSWORD,
    database=DEFAULT_DB,
    compress="gzip",
)

and the command:
query_result = main.ch_client.raw_insert(
    table=f"{database_name}.{table_name}",
    insert_block=csv_data_gzipped,
    settings=settings,
    fmt="CSVWithNames",
    compression="gzip",
)

Also, is it possible to insert gzipped compressed data using the command method? If it is, how?
Thanks

For example, inserting into T002 table:
-- snapshots.T002 definition
CREATE TABLE snapshots.T002
(
    `SPRAS` String,
    `LASPEZ` Nullable(String),
    `LAHQ` Nullable(String),
    `LAISO` Nullable(String),
    `UPDATED_ON` DateTime64(3) DEFAULT toDateTime64(now(), 3)
)
ENGINE = ReplacingMergeTree(UPDATED_ON)
ORDER BY SPRAS
SETTINGS index_granularity = 8192;

with uncompressed data:
SPRAS;LASPEZ;LAHQ;LAISO
"0";"S";"0";"SR"
"1";"D";"0";"ZH"
"2";"M";"0";"TH"
"3";"D";"0";"KO"
"4";"S";"0";"RO"
"5";"S";"0";"SL"

and compressed:
b'\x1f\x8b\x08\x00\xd1\x82\xb6d\x02\xff\x0b\x0e\x08r\x0c\xb6\xf6q\x0c\x0ep\x8d\x02R\x1e\x81@\xc23\xd8\x9fK\xc9@\xc9Z)\x18\x88\xc1t\x90\x12\x97\x92!\x90\xe1\x02\x15\x88\xf2\x00\n\x18\x01\x19\xbeP\x81\x10\x90\x801\x92\no\x7f\xa0\x80\t\x92\x19A \x01SdC}\x94\x00\x1e\xcf\t.}\x00\x00\x00'

My apologies, this was recently broken by the PR that moved the query from an HTTP query param to the POST body.  When inserting binary data, the query itself was not properly compressed.  I'm working on releasing a fix.

This should work correctly now in the new 0.6.8 version.  Here's the new test case for reference:
data_file = f'{Path(__file__).parent}/movies.csv.gz'
with open(data_file, mode='rb') as movies_file:
    data = movies_file.read()
with table_context('test_gzip_movies', ['movie String', 'year UInt16', 'rating Decimal32(3)']):
    insert_result = test_client.raw_insert('test_gzip_movies', None, data, fmt='CSV', compression='gzip',
                                           settings={'input_format_allow_errors_ratio': .2,
                                                     'input_format_allow_errors_num': 5}
                                           )
    assert 248 == insert_result.written_rows

I also added a compression parameter to the tools.insert_file method, so if you are inserting directly from the file system, this should work:
import clickhouse_connect
from clickhouse_connect.driver.tools import insert_file

client = clickhouse_connect.get_client()
data_file = 'movies.csv.gz'
insert_result = insert_file(test_client, 'movies_table',  data_file)

The insert_file will infer a gzip compression method if it sees the .gz or .gzip file suffix.
Thanks for the report and the detailed information to reproduce.

Great, it's working now :)
Is it possible to insert gzipped compressed data using the command method?
We are performing a SELECT from INPUT(), so the raw insert is not detailed enough for this use case.


Error 405 + Nginx

Have you read the FAQ and checked for duplicate open issues?
tried to look around didn't find smth useful
What version of Shaka Player are you using?
latest
Please ask your question
why shaka player loads this m3u8 successfully
https://us.akami.dopemovie.cdn.nightproxy.com/test1/test1.m3u8

but fails with this
https://us.akami.dopemovie.cdn.nightproxy.com/test2/aac45a27-4bf5-4c51-b34c-cef25afa7cf3/_apis/git/repositories/0a9a750f-d64c-4775-9a99-7c213c0f40fa/items?path=/test1.m3u8

Request URL: https://us.akami.dopemovie.cdn.nightproxy.com/test2/aac45a27-4bf5-4c51-b34c-cef25afa7cf3/_apis/git/repositories/0a9a750f-d64c-4775-9a99-7c213c0f40fa/items?path=/test1.m3u8
Request Method: HEAD
Status Code: 405
Remote Address: <IP_ADDRESS>:443
Referrer Policy: no-referrer-when-downgrade

core.js:6210 ERROR Error: Uncaught (in promise): shaka.util.Error {
  "severity": 2,
  "category": 1,
  "code": 1001,
  "data": [
    "https://us.akami.dopemovie.cdn.nightproxy.com/test2/aac45a27-4bf5-4c51-b34c-cef25afa7cf3/_apis/git/repositories/0a9a750f-d64c-4775-9a99-7c213c0f40fa/items?path=/test1.m3u8",
    405,
    "",
    {
      "cache-control": "no-cache, no-store, must-revalidate",
      "content-length": "93",
      "content-type": "application/json; charset=utf-8",
      "expires": "-1",
      "pragma": "no-cache"
    },
    0
  ],
  "handled": false
}

i mean is the same test1.m3u8 file only url is longer, what's the reason?!

HTTP 405 means "Method Not Allowed".  The server has rejected one of our requests.
See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
Can you check the networking panel of the browser's debugger to see what the method was?  If it's a GET request being rejected, then that would clearly fall on your server, because GET should definitely be supported.  If it's an OPTIONS request, that is also for your server to fix, but then I would point you to MDN's articles on CORS (Cross Origin Resource Sharing):
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
CORS can be thought of as the rules for how browsers access content from a different origin than the page.  It's not up to the JS app to control.  The server needs to explicitly allow cross-origin access from the requesting origin.
Specifically, OPTIONS requests are part of CORS Pre-Flight requests which happen when certain conditions are met in the request.  It's a way to get permission from the server before the real GET request happens, instead of the browser potentially rejecting the response after it happens.  See more on pre-flight here:
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Preflighted_requests
Does this help?

In this case, we are sending an explicit HEAD request to guess the manifest type.  Since your URL doesn't have a normal file extension in it, we send a HEAD request and use the Content-Type of the response to determine how to parse the manifest.  You could alternatively pass the content type as a third argument to player.load.

@joeyparrish it's a simple reverse proxy which contains same cors rules the only thing that changes is url in test1 is shorter url, and in test2 url is longer and contains ? and =
@TheModMaker afaik https://en.wikipedia.org/wiki/Filename_extension file extension is .m3u8 both urls contain the same .m3u8 at the end the only thing that changes is that one is longer and it contains ? and = and the other one is shorter

In the second URL, the .m3u8 at the end is part of a query parameters.  They are just extra data to pass along with the request and do not affect the path being queried.  The file path being queried is called items, you are just passing some extra data that happens to also have a file extension.  But we have no way of knowing the query parameters are paths, they could be anything.

@TheModMaker thanks for explanation


Add the ability to save blobs

Hello guys, thanks for your awesome work and for improving the jailbreak everyday.
I’m requesting if you could add an option to save blobs through Unc0ver JB tool, it will be easier for us to save them and also I’m wondering if you can also add the ability to read blobs to get the nonce and set it automatically to the Boot Nonce field, because every time Unc0ver sign revokes we need to re-type the nonce again.

@pwn20wndstuff want to give your opinion? & if not close this?

This just needs to be closed. @ Cryptiiiic please close this issue.

@Shengheer @GeoSn0w Another idea would be to use TSSSaver API. Closing this, reopen if you need to,


INT-2228 - Content Enricher - request-channel should be optional

see also: https://jira.springsource.org/browse/INT-2228

@olegz I refactored the Content Enricher. I hope this looks better now. I have one more question - As the gateway may not be initialized when not request channel is provided, do you think the life cycle methods are handled acceptably? (e.g. for isRunning to return always "true" in case no gateway is initialized.)

One question. Does it make sense to have a requestPayloadExpression when there is no requestChannel specified?
In the current code, it's allowed and that expression will evaluate against the original Message even if there is no request channel to send it to.

I thought about that one for a little. I ultimately decided leaving that property as is. As far as I see, it does not have any negative effects in case the request-channel is not specified. An (admittedly rather extremely esoteric) use case is maybe in a situation where you would like to do some inline data-massaging using SpEL and then apply the result to the original payload


Splinters: "no data" exchange rate

All Splinters: Fix "no data" from poe ninja

All except Ritual splinters were fixed. A new issue (#217) has been created.

Fixed in e82c9f18b531bbf9a2247903a1c1874bc3ff2ff6


Enable tests in arm architecture

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Although this PR displays green checks across the board, an inspection of the logs indicates that the osx_arm64 configurations did not, in fact, run the test step.  Perhaps I misunderstood the conda-forge docs, which state:

test: native_and_emulated

Will do testing only if the platform is native or if there is an emulator.

I guess the critical clause is if there is an emulator.
Perhaps conda-forge possesses no emulator for Apple Silicon, but the above setting exists for the sake of other architectures such as linux_ppc64le and linux_aarch64.
The original conda-forge document their Apple Silicon cross-compiling toolchain explains that they tested the initial batch of recipes using hardware obtained from Apple.  I guess that implies that emulation was not a possibility, or at least not sufficient in all cases.

Well, OK. If it's not possible, then that's life. Should I just close this then?

I guess so.  Closing for now.  Maybe I'll ask about this on gitter some day, just to clarify my understanding.

Maybe I'll ask about this on gitter some day, just to clarify my understanding.

I got confirmation from Isuru that, indeed, we cannot test on Apple Silicon.  The emulation capabilities are only for the other platforms.


Black screen after closing Interstitial Timer runs out

After interstitial timer finishes, I get a whole black screen and either need to wait a few more seconds for the Close button to appear or press the back button to get out of it.

I have some time to investigate this now, but can you please check if this problem is still happening on the latest version of this package (0.6.0).
If yes, I would kindly ask you to record the behavior and upload a short video somewhere (imgur.com or even youtube). Thanks!


Added support for applying CSS classes to menu items

This accepts a class property on menu items that allows specifying CSS classes either as a string or by function similar to .disabled

Thank you for submitting this, sorry it took so long to review. I've merged it in though will be changing "class" to "className" to make it more consistent with how other JS libraries refer to CSS class names (class is also a reserved word in JS so even though it works it could cause other issues).

Thank you for submitting this, sorry it took so long to review. I've merged it in though will be changing "class" to "className" to make it more consistent with how other JS libraries refer to CSS class names (class is also a reserved word in JS so even though it works it could cause other issues).


New OGGM_Edu interface

This PR introduce the new version of OGGM_Edu and along with it a new way of interacting with the core of OGGM for educational purposes. The new classes provide the user with objects that are designed to be glacier centric and feel intuitive to use with methods for e.g. progressing the glacier, plotting the state, comparing glaciers etc. All without the user having to know how to write code for oggm,  numpy and matplotlib.
This also includes a breaking change for previous use of oggm_edu by moving the old functions into a new namespace legacy_functions. Hence any programs relying on these would have to update import statements.

Maybe time for version bunmp?
wip notebook should probably be moved/deleted?

Maybe time for version bunmp?

Yes I'll do that before merging this.

wip notebook should probably be moved/deleted?

Yes.

wip notebook should probably be moved/deleted?

Yes.
Done.

https://github.com/OGGM/oggm-edu-notebooks/pull/56 updates notebooks.

@Holmgren825 I have just pushed to your branch in https://github.com/OGGM/oggm-edu/pull/133/commits/b8ff5ae806488d9c849798c70bfceebd81429b54 (locally, you'll need to do a git pull to update, in the hope that you don't have uncommitted changes).
This is looking really good! I have a few general comments before I continue my review:

let's try to stick to pep8 regarding attribute names, variable names, modules, etc:

Your classes are OK (CamelCase)
some attributes need renaming (self.ELA -> self.ela). I know that it would make sense sometimes (e.g. "ELA") but I think that the most predictable is still to always use the same case (i.e. lower case; upper case means constants in pep8).
some modules need renaming (glacierBed -> glacier_bed)

regarding code style, since this is a young project let's blackify it. If you don't want to bother with that don't worry I'll do it.
It's not recommended  to set global parameters (matplotlib, seaborn) at import. It's a bit more work, but I have now put those settings in a new decorator that you'll have to add to all your plotting methods (I've done it to one as an example). Maybe this will also allow you to remove some duplicated code and put it in the decorator, but it's unlikely.

Let me know if you have any questions! Once this is done I'll continue the review.

Thanks!

Attributes: agree
Modules: So glacier_bed, glacier_collection and mass_balance. Will fix.
Black seems easy enough. Should we go for default black? Noticed that line length is set to 88 char, so not pep8 standard.
Cool! I've tried to split some of the plotting functionality into components e.g. create a base plot with one method and then extend upon this by other methods. Maybe this can be done even more. Will have to think a little.

Should we go for default black? Noticed that line length is set to 88 char, so not pep8 standard.

Yes, let's keep it "pure black" :wink:. I've tested it yesterday and it looks quite good I think.

* Attributes: agree

* Modules: So glacier_bed, glacier_collection and mass_balance. Will fix.

* Black seems easy enough. Should we go for default black? Noticed that line length is set to 88 char, so not pep8 standard.

* Cool! I've tried to split some of the plotting functionality into components e.g. create a base plot with one method and then extend upon this by other methods. Maybe this can be done even more. Will have to think a little.

This is now done. Plotting methods could maybe still be further split up into components for extended re-use. But this won't affect the user and notebooks so can be put on hold I think.

I couldn't leave it alone so worked some more on the MassBalance. Think I have something now that allow the user to customise the mb profile by passing any number of gradients and the altitudes of the breakpoints between them. Allows for the creation of something like this

If the resulting profile is reasonable is another question, but not sure if it matters. Alternative is a linear profile after all.
Maybe I'm missing something else that makes this a bad idea.
Will probably push this early next week after some polishing.

Excellent! Does this also changes the class structure?

Maybe I'm missing something else that makes this a bad idea.

I wouldn't see why. A very typical use case is the two gradients from the app

Will probably push this early next week after some polishing.

Thanks! This still gives me more time then, but we HAVE to merge by next week ;-)

Yes OK, but inheriting from oggm.MassBalanceModel makes more sense so that's another good outcome - great!

Ok, except for any issues/suggested changes that come up in review, there wont be any more changes added to this pr now.

Added new tests and some small bug fixes.


[Crash] crash in TrimDiskToSizeByDate() on 3.0.1-beta.2

PINCache version info:

PINCache (3.0.1-beta.2):

PINCache/Arc-exception-safe (= 3.0.1-beta.2)
PINCache/Core (= 3.0.1-beta.2)

PINCache/Arc-exception-safe (3.0.1-beta.2):

PINCache/Core

PINCache/Core (3.0.1-beta.2)
PINRemoteImage (3.0.0-beta.7):

PINRemoteImage/FLAnimatedImage (= 3.0.0-beta.7)
PINRemoteImage/PINCache (= 3.0.0-beta.7)

PINRemoteImage/Core (3.0.0-beta.7)
PINRemoteImage/FLAnimatedImage (3.0.0-beta.7):

FLAnimatedImage (>= 1.0)
PINRemoteImage/Core

PINRemoteImage/iOS (3.0.0-beta.7):

PINRemoteImage/Core

PINRemoteImage/PINCache (3.0.0-beta.7):

PINCache (= 3.0.1-beta.2)
PINRemoteImage/Core

Crash LOG 1

Crash LOG2

@dssheng What was the actual crash? Would love to see all the frames on this if possible.

Report by XCode, some users also crash when Cache full.
Disk Cache limited is 800MB ~ 1GB.
Here is another crash captured image.

I'm not sure if this issue similar with https://github.com/pinterest/PINCache/issues/135

@dssheng what is the actual exception thrown though? Without that info it's really hard to diagnose what's going on here. Also, in the first two logs, one of them shows frames in the three hundreds, is this a stack overflow due to infinite recursion? What's going on in those 300 other frames below?

Going to close this out since I haven't heard back.


how to visualize npz animation in blender

May I ask how to visualize npz data with the SMPL-X Blender add-on, step by step?
I have added the SMPL-X Blender add-on, and imported animation of npz data by using "add animation" of that add-on, but I didn't see the human model move. Sorry, I am new to this. Thanks!

That sounds a bit weird. Could you provide some screenshots and make sure there are no errors when loading npz files?

Thanks for the quick reply.

This is the screenshot of what I have. The animation is from amass dataset. I added the animation with SMPL-X Blender add-on's "Add animation" and when I played the animation as shown in the bottom window, the human model didn't move.
I think there are no errors? I didn't see anything wired when adding the animation. Thanks!

Could you attach the npz file as well? I can test it on my side.

https://drive.google.com/file/d/18KrTSzz945e9yCgNv9aWseghRZUXyRn4/view?usp=share_link
please see the attached link. Github doesn't allow npz attachment.

The data you shared is in SMPL-H format, thus it contains 52 joints (you can see its has the shape of (241, 156) in its poses).
>>> import numpy as np
>>> bdata = np.load("C24 - quick sidestep left_poses.npz")
>>> bdata.keys()
KeysView(<numpy.lib.npyio.NpzFile object at 0x102fccfd0>)
>>> list(bdata.keys())
['trans', 'gender', 'mocap_framerate', 'betas', 'dmpls', 'poses']
>>> bdata['poses'].shape
(241, 156)
>>> bdata['trans'].shape
(241, 3)
>>> bdata['betas'].shape
(16,)
>>> bdata['mocap_framerate']
array(120.)

But the addon only supports SMPL-X format, which requires the skeleton to have 55 joints. Therefore, when you load the npz file in blender, it will throw an error.

I see.  Thank you!!


Fix image based marker size example in production

When I render CachedMap.js with image marker example:
https://github.com/airbnb/react-native-maps#image-based-markers
I have this issue:
https://github.com/airbnb/react-native-maps/issues/725
in emulator:

in real device:

What is the best option to fix this issue in examples ?

#1476


⚠ Bofrost.be has degraded performance

In 5902d3f, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1220 ms

Resolved: Bofrost.be performance has improved in 45a5af2.


Update guides

Coverage remained the same at 86.287% when pulling 4b3a7cc281b190362df438179094211f3903ccf0 on update-guides into a5ec10d051f477b8bea997ffaf9a0ffd27321173 on master.


python3Packages.mpd2: 3.0.1 -> 3.0.2

Motivation for this change
Fixes problems in the async implementation.
https://github.com/Mic92/python-mpd2/blob/master/doc/changes.rst#changes-in-v302
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] 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 nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 109350 run on x86_64-linux 1

11 packages built:

beets
mpdris2
poezio (python38Packages.poezio)
python37Packages.mpd2
python37Packages.poezio
python38Packages.mpd2
python39Packages.mpd2
python39Packages.poezio
qtile
rofi-mpd
sonata

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.
Result of nixpkgs-review pr 109350 run on x86_64-linux 1

11 packages built:

beets
mpdris2
poezio (python38Packages.poezio)
python37Packages.mpd2
python37Packages.poezio
python38Packages.mpd2
python39Packages.mpd2
python39Packages.poezio
qtile
rofi-mpd
sonata


Vibration and timer in background

Vibration doesn't work in background
Timer stops after some time in background

Vibration: done


Status

Hello! Everything works like a charm and it's up and running, I'm just wondering about where it says "Status" on the web panel. What do the different statuses mean? Like "Stopped". Also, will the miners who didn't have the system requirements to mine show up on the list?
I also just want to thank you for developing this!

"Stopped" means that it has stopped mining for whatever reason, this status isn't very common. "Active" means that it's ready to mine and tries to mine and "Active (Idle)" means that it's ready to mine and tries to use the "Idle GPU" amount of GPU (if enabled). It's possible that it can show 0H/s while active if the GPU doesn't have enough VRAM (not enough empty due to being used or if the model doesn't have enough VRAM). Then there is the "Paused (Stealth)" status which appears when the miner is paused due to any program from the "Stealth Targets" being open. There is the "Offline" status which just appears if the miners last connection to the web panel was longer than 5 minutes ago. Lastly there is the "Unknown" status which will only appear if the web panel has no idea what happened, though this shouldn't really appear.
The miners will show up if they have a CPU/GPU (and the GPU drivers are new enough), the only reason the GPU (ethminer) miner wouldn't appear is if the drivers are too old or if they have no GPU. If they just have too little VRAM left or just overall then it will still show in the panel while it's waiting.


Cannot run setup.js script

Hello,
When running the script setup.js, I got this error:
Error: Query response error: expected=ACCOUNT_RESPONSE, actual=ERROR_RESPONSE
Reason: {"reason":1,"message":"query signatories did not pass validation","errorCode":3}
I've already initialized Iroha and PostgresSQL DB. Someone knows what could be happening?

@lucianosilva44 Hi! Did you run iroha and postgresql via docker-compose?

Hello! I have the same issue, I followed Iroha documentation starting Iroha and PostgreSQL via docker run. Could you help me with that? Thank you!
I tried upgrading iroha-helpers to the latest and it didn't help.
This is a part of the output:
INFO
setting up accounts and assets with using '/root/iroha-wallet-js/scripts/wallets.json'
accounts: admin@iroha, alice@iroha
assets: AAAAA, DDDDD, CCCCC, BBBBB
INFO
trying to create an account: alice@iroha
Error: Query response error: expected=ACCOUNT_RESPONSE, actual=ERROR_RESPONSE
Reason: {"reason":1,"message":"query signatories did not pass validation","errorCode":3}
at /root/iroha-wallet-js/node_modules/iroha-helpers/lib/queries/index.js:90:21
at /root/iroha-wallet-js/node_modules/iroha-helpers/lib/queries/index.js:73:7
at Object.onReceiveStatus (/root/iroha-wallet-js/node_modules/grpc/src/client_interceptors.js:1207:9)
at InterceptingListener._callNext (/root/iroha-wallet-js/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/root/iroha-wallet-js/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/root/iroha-wallet-js/node_modules/grpc/src/client_interceptors.js:845:24)
initializing assets
aaaaa BEGIN
trying to create an asset: aaaaa#iroha (precision=18)
Error: Query response error: expected=ASSET_RESPONSE, actual=ERROR_RESPONSE
Reason: {"reason":1,"message":"query signatories did not pass validation","errorCode":3}
at /root/iroha-wallet-js/node_modules/iroha-helpers/lib/queries/index.js:330:21
at /root/iroha-wallet-js/node_modules/iroha-helpers/lib/queries/index.js:73:7
at Object.onReceiveStatus (/root/iroha-wallet-js/node_modules/grpc/src/client_interceptors.js:1207:9)
at InterceptingListener._callNext (/root/iroha-wallet-js/node_modules/grpc/src/client_interceptors.js:568:42)
at InterceptingListener.onReceiveStatus (/root/iroha-wallet-js/node_modules/grpc/src/client_interceptors.js:618:8)
at callback (/root/iroha-wallet-js/node_modules/grpc/src/client_interceptors.js:845:24)
Thank you!

The wrong thing is the<EMAIL_ADDRESS>This private key is depends on your local iroha network. Try to replace this with your local one. It may be found in /opt/iroha_data.


Addon prototype

Wow :) Is there a document I could read describing the addon system?

@ignacio we're not even halfway through the GSoC project yet (and the design is still in flux! (and impressions/feedback are certainly welcome!) ), but documentation is part of the plan, don't worry :)

I was looking for a "rough design" or something, to avoid talking nonsense :D (more than the usual amount).

@ignacio Hi! I didn't expect feedback this soon :)
I have yet to write a formal doc, but here is a quick view of how it works now:
Addon $a is the lua module luarocks.addon.$a exporting two functions load and run.

The run function is called when the user calls luarocks $a, the eponymous command. It is passed the same arguments with the run functions of builtin commands.

The load function is called when the user has addons = { ..., $a, ... } in the rockspec. It can then do various things, including introducing new rockspec fields and hooks that are triggered at various stages of LuaRocks execution. These are done through calls to functions in the new luarocks.api module.

As examples, see the following sample addons:

luarocks-addon-test introduces a new field called test that has the same format as build.modules. For each source blah.lua it tries to run blah_test.lua after building the rock.

luarocks-addon-moonc introduces a new field called moonc that has the same format as build.modules. For each source blah.lua that does not exist but where blah.moon exists, it tries to compile the latter before building the rock.

There is also a sample rock dinner that uses the above two addons.

@xiaq thanks! That'll do.

@hishamhm Fixes pushed.


0.0.4 - Third Release

Fix to Rainfall Data
Fix to Humidity Data
Add Dew Point to Weather Data
Change default name of conf file
Correct Name of config file comment in server.py
Fix Build Your Own instructions in README (incorrect container name)
Remove redundant data

There's a bit of reorganisation that was done to help me get a history loader up and running (pull request to follow once I think it is ready) that hides some of the fixes (some incorrectly named fields) around rainfall data being stored in influxdb as hourly instead of rain_1h which was the intent.

Thanks @BJReplay !  0.0.4 pushed: https://hub.docker.com/r/jasonacox/ecowitt/tags


Thank corporate sponsors

Some companies have been really generous in donating 10s of thousands of dollars worth of services to us. Thinking we add a logo + line on what they donated on the whoweare.html page.
Smartling - Access to their translation management system
Google - Free Google Maps API credits
Slack - Free Pro account
@r-pop am I missing anyone else?

Took a stab at this here: https://github.com/findthemasks/findthemasks/pull/442

should we close this issue @nburt?


UI: DB page readability improvements

Piece of xml in DB util list does not represent the essence of entry well, it is difficult to find what you search if there are many entries. So I decided to improve a bit. It should be something like this (not yet finished):

Do you think some more information can be shown here (or differently) ?
Also I have doubt: To extract the data I actually parse (regex) the xml (I'll make a preliminary commit in a moment). I think this is safer because repo_svr caches the data if I understood well. Does it seems OK ?

looks good
for the WHEN OTHERS case, just fallback to rendering the xml?

for the WHEN OTHERS case, just fallback to rendering the xml?

Good idea.

(of course USER was just for simulation)

btw added a feature to gui/router:

there is now new event_state-new_page_replacing which does not store previous page as history. This is different from bookmark. Bookmark is an intentional event to skip some history which otherwise can be followed with back (like in stage). And replacing is actually a jump with preserving the same parent page.
on_event now receives iv_prev_page - class name of the currently displayed page - which can be used in routing (see db_display/edit in router)


Space application supporter role

A short explanation of the proposed change:
Implements requested feature from https://github.com/cloudfoundry/cloud_controller_ng/issues/2210

[x] I have reviewed the contributing guide

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

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

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

[ ] I have run CF Acceptance Tests

There was some funky stuff going on with this branch that was missing a bunch of code but was sitting on another space supporter branch. Just cherry picked those over and also rebased onto main.


Backport issue(#1153), (#1154) and (#517) to branch opendistro-1.5

opensearch-security pull request intake form
Please provide as much details as possible to get feedback/acceptance on your PR quickly

Category: (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
Backporting

Github Issue # or road-map entry, if available:

Description of changes:

Why these changes are required?

What is the old behavior before changes and new behavior after changes? (Please add any example/logs/screen-shot if available)

Testing done: (Please provide details of testing done: Unit testing, integration testing and manual testing)

Setup Instructions

8.Is it backport from main branch? (If yes, please add backport PR # and commits #)
Yes,

#1153  and commit hash is : ea101e287afb85189837a6b6526f10cb9b99e4c6

#1154  and commit hash is : 5a81a424f4dc0dd1e72df9d8c27710e9dbcdec1b

#517 and commit hash is : 15e7d452ae198db63dda60c835f06e615c5c292c
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #1204 (986b0f3) into opendistro-1.5 (2f1b648) will not change coverage.
The diff coverage is 80.39%.

@@                Coverage Diff                @@
##             opendistro-1.5    #1204   +/-   ##
=================================================
  Coverage             62.72%   62.72%
+ Complexity             2950     2949    -1
=================================================
  Files                   229      229
  Lines                 16321    16321
  Branches               3056     3053    -3
=================================================
  Hits                  10238    10238
+ Misses                 4506     4502    -4
- Partials               1577     1581    +4

Impacted Files
Coverage Δ

...ecurity/configuration/ConfigurationRepository.java
74.54% <80.39%> (+4.84%)
:arrow_up:

...security/auditlog/AuditLogSslExceptionHandler.java
33.33% <0.00%> (-9.53%)
:arrow_down:

...transport/OpenDistroSecuritySSLNettyTransport.java
62.76% <0.00%> (-6.39%)
:arrow_down:

...ticsearch/security/auditlog/impl/AuditLogImpl.java
81.81% <0.00%> (-1.30%)
:arrow_down:

...ty/configuration/ConfigurationLoaderSecurity7.java
65.74% <0.00%> (+0.92%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f1b648...986b0f3. Read the comment docs.


Can't remove publishers

I had permissions + global vs location MPN ID problem while trying to mark my app as publisher verified, but until I figured it out I tried all sorts of things like creating publishers, now I have unused publishers. Is there any way to delete them?

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

ID: 4281c9e4-aa62-da54-4681-982ffe351a32
Version Independent ID: c6ed6474-fa76-c7ad-f5db-c49e8043a075
Content: Add new publishers to the commercial marketplace program - Azure Marketplace
Content Source: articles/marketplace/add-publishers.md
Service: marketplace
Sub-service: partnercenter-marketplace-publisher
GitHub Login: @varsha-sarah
Microsoft Alias: vavargh

@AurimasNav, thank you for reaching out to us. I have assigned this issue to our content team for further review and update.
@varsha-sarah, can you please review this and share your thoughts. Thanks.

#reassign:sharath-satish-msft

@AurimasNav do you still face this same issue? Sorry, we are slow to respond here. If you need better help, please click the support icon in the Azure portal to get assisted support.
@sharath-satish-msft please take a look if you know if this is a bug or a documentation issue.

You will need to contact Support and they can delete unused publisher accounts for you.

Documentation update to highlight this is drafted and will be published soon. Closing this item.

Doc updates have been published to clarify this scenario. Thanks @AurimasNav for the feedback! #please-close


Use raw source paths when creating sort key for license information

closes https://github.com/github/licensed/issues/577
The underlying problem from the linked issue was that the sort key returned by DependencyRecord::License was taking a digest of the source paths.  That was implemented under the assumption that the path of a license file would be the same between versions, all else being equal.
When using go modules though, that is an invalid assumption 😅 .  The path can contain version information, e.g<EMAIL_ADDRESS>and<EMAIL_ADDRESS>vs<EMAIL_ADDRESS>and<EMAIL_ADDRESS> When the paths were included as part of the hash digest, this resulted in the equivalent files being ordered differently:

for v0.1.0, the order was LICENSE, PATENTS
for v0.2.0, the order was PATENTS, LICENSE

To correct that, I'm moving the source paths out of the hash digest and using a string sort key rather than an integer.  The key is used to sort files within the same record, and using the string sort should accomplish the desired path comparison behavior.
The downside to this change is that sorting the contents will take a little more time.  The impact should be small though, most dependencies have a very small number of license files.

The licensed-ci GitHub Action has created a pull request containing license metadata updates based on the changes in this branch.
Please review the pull request for any additional changes required and merge when ready.

ok, after some hygiene work to get go tests working again in CI (as a separate PR) this is looking good.  merging


Mdbook-mermaid plugin requires glibc version  2.32 / 2.33 / 2.34

Describe the bug
With the latest v0.12.2 release of mdbook-mermaid the compiled mdbook-mermaid-v0.12.2-x86_64-unknown-linux-gnu executable requires an glibc version of 2.32 / 2.33 / 2.34. But the latest version installed on the ubuntu20 runner of GH is glibc (Ubuntu GLIBC 2.31-0ubuntu9.9) 2.31. Therefore the usage of the latest released version will break with this action.
Workflow logs here: https://github.com/jontze/action-mdbook/actions/runs/3581176065/jobs/6023971079
To Reproduce
Try to use this action with the latest released mdbook-mermaid plugin on a github runner with ubuntu v20.
Expected behavior
The action should setup mdbook-mermaid with all dependencies.
Workaround

Use this action with a previous version of mdbook-mermaid:

...
- uses: jontze/action-mdbook@v1
  with:
    token: ${{secrets.GITHUB_TOKEN}}
    use-mermaid: true
    mermaid-version: 0.12.1
...

OR

Use explicitly the ubuntu 22 runner image instead of latest (as latest will be 20 or 22 due to the rollout mentioned here: https://github.com/actions/runner-images/issues/6399#issue-1407622248)

Additional context
Possible ways to resolve this:

Update glibc version on the ubuntu runner as part of the mdbook-mermaid install
Maybe use the musl executable?
Fallback to a previous version of mdbook-mermaid if on ubuntu20 and glibc version is to low

It looks like this is related to the ubuntu v22 github runner roll out https://github.com/actions/runner-images/issues/6399 .
The release binaries were already compiled on ubtunu v22 (with a newer glibc version) whereas the my testing pipes were still on v20.

Fixed with https://github.com/badboy/mdbook-mermaid/commit/72a57a5dd54b77d0323477c2864bdb45d64d83ca - https://github.com/badboy/mdbook-mermaid/issues/29


where to place the installation code ?

how do I use this code given in title for installation.
npm install material-datepicker

Hi there, sorry this plugin requires you to have existing knowledge of some web technologies. I suggest you start by learning about npm.


Undelivered Mail Returned to Sender

Undelivered Mail Returned to Sender
time="2018-02-23T11:58:51Z" level=debug msg="Client sent: MAIL FROM:<>" time="2018-02-23T11:58:51Z" level=debug msg="Writing response to client: \n250 2.1.0 OK\r\n" time="2018-02-23T11:58:51Z" level=debug msg="Client sent: RCPT<EMAIL_ADDRESS>time="2018-02-23T11:58:51Z" level=debug msg="Writing response to client: \n250 2.1.5 OK\r\n" time="2018-02-23T11:58:51Z" level=debug msg="Client sent: DATA" time="2018-02-23T11:58:51Z" level=debug msg="Writing response to client: \n503 5.5.1 Error: No sender\r\n" time="2018-02-23T11:58:51Z" level=debug msg="Client sent: RSET" time="2018-02-23T11:58:51Z" level=debug msg="Writing response to client: \n250 2.1.0 OK\r\n" time="2018-02-23T11:58:51Z" level=debug msg="Client sent: QUIT" time="2018-02-23T11:58:51Z" level=debug msg="Writing response to client: \n221 2.0.0 Bye\r\n"

Thanks for this!


"Brănești" is listed in the drop-down menu

Description:
"Brănești" is listed in the drop-down menu alongside its corresponding county according to the law
Precondition:
The website is up an running.

Step 1
Type "Brănești" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Brănești, DÂMBOVIȚA".


Fix warnings around initialization of union

Fix warnings around initialization of union
Radar-Id: rdar://problem/106095698

@swift-ci please test and merge


Unexpected pageContext behaviour when navigating to page via the URL bar and back

Description
I ran into this issue when implementing authentication following the auth example.
After logging in the user object is defined in pageContext and the Vike reload function is called. From there, if the user navigates to any page by typing in the URL in the address bar and pressing enter and then navigates back, the user object which was set in pageContext becomes null.
I'm using the React preset and V1 just like in the auth example. In fact, the same issue can be reproduced in the example by doing the following:

Load up the app and navigate to the log in page /login via the URL bar.
Log in (doesn't matter which one).
Navigate to / via the URL bar again.
Navigate back.

Thanks :)

Thanks, I can reproduce and we'll have a look tomorrow :)

What's your Vike version? See https://twitter.com/brillout/status/1724469728603754550.

@brillout I can reproduce this on main, but really exactly with these steps. Any other combinations of backward-forward is fine

Ok it's unrelated then. Let me know if you want me to have a look at it myself.

Actually #1267 fixes this issue as a side-effect, thanks to the changes made there to getPageContextFromHooks.ts. Do you confirm @jgalminas that if you check out the branch aurelien/feature/data-hook and run the auth example there the problem is gone?

@AurelienLourot Hey. I can still reproduce it.

You're right, not sure what I did wrong. #1267 doesn't fix the problem. I'll have another look

@brillout quick check if this rings a bell. It doesn't happen when I have the developer tools open, because then some caching is disabled, and it always happens when the developer tools are closed. Here is in details what happens:

start the example with pnpm run dev

open manually http://localhost:3000/login

The server delivers a pageContext with userFullName undefined. The client runs getPageContextFromHooks_firstRender(). We are logged out, all good ✅

Log in as Alan Turing

The client runs getPageContextFromHooks_uponNavigation() and fetches /login/index.pageContext.json which contains userFullName Alan Turing. We are still on page /login, we are logged in, all good  ✅

Type manually in the address bar https://localhost:3000/

The server still delivers a pageContext with userFullName Alan Turing thanks to the cookie. The client runs getPageContextFromHooks_firstRender(). We are still logged in, all good ✅

Hit the [back] button

The problem here is that the browser knows that the previous page is /login and remembers its HTML from step 2. So it just delivers that HTML that is cached and no communication whatsoever is done with the server. Unfortunately in that HTML the pageContext says userFullName undefined ❌ The client runs getPageContextFromHooks_firstRender(). We appear mistakenly as logged out ❌

Hit [refresh]

Communication is made with the server again which delivers pageContext with userFullName Alan Turing again. We appear as logged in again ✅
It seems to be a very edge-case because following conditions must be fulfilled:

Navigate manually to /login while being logged out, so that the browser will cache this HTML (step 2)
While logged in later, hit [back] when the previous page is /login (step 5) and the browser will just deliver the stale HTML with stale pageContext

@brillout Do you have an idea how to mitigate this off the top of your head or a pointer? Otherwise I'll dig myself further. Thanks :pray:

Nevermind @brillout, I think I have figured it out.

It seems to be a very edge-case because following conditions must be fulfilled: [...]

Since this can only happen on the /login page, I think the user (here the auth example) should tell Vike to set the HTTP headers on that particular page so that it doesn't get cached. I guess this has to be done in the server glue code https://github.com/vikejs/vike/blob/main/examples/auth/server/index.js#L30 . Let me give it a try.

TL;DR actually it can happen on any page. I'm about to create a PR disabling caching for all pages in the auth example.
If you copy the index page to a new hello page, you can reproduce it as follows:

type manually http://localhost:3000/hello while logged out (the page gets cached)
type manually http://localhost:3000/login
log in (you are still on the /login page)
hit [back] -> the browser shows you the logged out version of the /hello page that was cached on step 1 ❌

Now for a more complex app, the developer knows which pages are safe to cache but for this particular auth example it seems to me that none of all the pages is safe to cache.

@AurelienLourot Very neat digging and explanation btw. it makes perfect sense.


Add ExpiryCaveat

Closes #10792.
Closes #6255.

This needs more testing, but the basic idea:

All current macaroons continue to function as expected, and nothing about the construction of normal macaroons (i.e., ones minted by users manually through the PyPI website) is changed.

In the future, macaroons minted via the OIDC JWT consumption route will include an additional expiry caveat, with two fields: nbf to indicate that the macaroon must not be used before the given timestamp, and exp to indicate when the macaroon ceases to be valid.

Marking as ready for review since this is in a stable state, but see comments above about the current approach.

I had one high level question: how will this be backwards-compatible for macaroons created before this change?

Yeah, this was an oversight on my part. This will break the UI for pre-existing macaroons, at least in the form they're recorded in the DB.
The migration should probably just rename the column rather than dropping it and inserting a new one, since interior data is the same. I'll fix that now.

Blocked on: #11157.

#11157 has been merged!

Excellent! I'll de-conflict here.

N.B.: 1f65cff is a naive pick of the original changeset, so it isn't ready for review yet. I'll do another pass over it later today.

I also confirmed locally that this does not break verification of current tokens (i.e., ones missing an expiry caveat).

What is the deployment policy of pypi.org? Is everything on main automatically deployed? If not, where can I see what version is deployed? In other words, how can I see that changes like this are available on pypi.org?

@fschulze Everything is automatically deployed within 5-10 minutes after merge.

But also, note that these changes aren't user-facing yet! We don't currently allow users to create API tokens with expiry restrictions.


WIP Production Examples

Adds Production Guide, incomplete but shows direction

production.md shows major considerations when running Teleport in production. In addition to core Production topics it would link to supporting Guides on how to complete common Admin Tasks.

Admin Guide: Node Join
Admi Guide: Node Label
[WIP] Admin Guide: Trusted Cluster
[WIP] Admin Guide: Token Management
[WIP] Adds Configuration Guide for YAML configuration
Removes reorg/revised content from Admin Guide.

For ease of review the target branch is andyet/prod-base which merges existing PRs for andyet/installation, cli-docs, quickstart and andyet/concepts.

Where to go from here:
The next steps that I would have done for the project would be to divide the Admin Guide into multiple pages. The content would be drawn from what exists, but include Prerequisites and Next Steps Sections at header and footer so users have context for what they can/should know before working through the guide and where they can/should go next. Any guides describing actionable tasks should be presented as much as possible in step-by-step format with script examples, references to architecture & CLI docs, and diagrams were needed.

Dedicated Doc for YAML Config. Each key should be described with its default value [when unset] and possible values. The existing configuration section is a good start but could be improved.

Admin Guides:

Managing Users
Managing Resource Files nodes, users, clusters, roles, connectors

Editing node/user/cluster resources

Add a Trusted Cluster
Certificate Rotation
High Availability
Accessing Audit Logs & Recorded Session data
Set up recording proxy mode
Teleport with OpenSSH
SSO: Github, OIDC, Okta, etc

The User Guide seems fairly clear as is, but it may be helpful to divide into task-oriented sections like the Admin Guide.

Clear distinctions should be made between SSO Integrations which involve mostly Auth and things like AWS or K8s "Integrations" which involve the whole system.