Refer to the type of block result in the return type signature.

It would be nice to be able to refer to the type of the block result in the return type signature when a specific type is not required (otherwise @yieldparam could be used). Strawman:
# @param [Array<number>]
# @yield [number]
# @yieldparam number [Fixnum]
# @return [Array<of block results>]
def map_squares(numbers)
  numbers.map { |number| yield number * number }
end

You can already do this. Type specifiers are freeform text. That said, a type contract with no specific type requirement is Object.

It would be nice if it would be possible encode the requirement that is more specific than Object: given a block with return type T, this function will return an Array<T>. I guess what I am asking for is some form of generic types.

Given a block with return type T, this function will return an Array.

You can specify it in that way. As mentioned, type specifiers are freeform text, there is no limitation on how you can specify types. If your users understand what Array<T> means in the context of your library, go for it.

Freeform text cannot be used by tools such as RubyMine for type-inference, which it currently has excellent support for with YARD.

Then it sounds like this issue should be opened against RubyMine, since no decision here would change the behavior there.

A structured format of generic types would enable tools to support it for type-inference. Currently the blocker is that no structured format exists.

Then it sounds like this issue should be opened against RubyMine, since no decision here would change the behavior there.

This would require strong AI.

If the need for this is recognized I can start thinking about the specification.

A structured format of generic types would enable tools to support it for type-inference. Currently the blocker is that no structured format exists.

This is not a "blocker"; quite explicitly, YARD is not blocking tooling from interpreting type specifications in any way that suits them best. RubyMine is free to define its own syntax to support template-style generics, and other tools are free to start supporting this syntax as well.
In short, YARD does not parse the type specifications, so defining a "structured format" would be a no-op from our side, since the format is not used anywhere. It's up to consumers to define their appropriate formats. There's no plan to define a hard syntax for type specifications in YARD for exactly this reason.

If you're looking for a syntax to follow in your codebase, consider adopting portions from DiamondbackRuby (http://www.cs.umd.edu/projects/PL/druby/) or Rust (http://www.rust-lang.org/). If it works for you, shop it around to the tooling you use that interprets these types (i.e. RubyMine) and convince them to support it.

YARD does not parse the type specifications, so defining a "structured format" would be a no-op from our side, since the format is not used anywhere.

For example, if generic types are denoted with <Identifier: Types>:
# @yieldreturn <T: Fixnum>
# @return [Array<T>]

YARD can then render nice documentation, such as:

Yield Returns
A type T that inherits from {Fixnum}.
Returns:
Array(T)

Otherwise, perhaps not a hard format but a recommendation?
I am afraid of the fragmentation that will happen if tools are left on their own.

There are no plans for YARD to interpret type specifications; for that reason, there are no plans to define a specification syntax. This has been the case since YARD was created, and existing tools have not fragmented, so I think we're fine. The Ruby community has a strong sense about converging on good conventions, and I trust that tooling will do just that if there is a need.
Marking this as wontfix. If tools were to start supporting templated generics, we can revisit the issue, but as it stands now it's YAGNI, and it would be a waste of time to implement a specification without any signoff from tools that they will implement similar support.

There is new code completion plugin for an editor, which is implemented using yard's type information.
https://marketplace.visualstudio.com/items?itemName=castwide.solargraph
It can complete ['a', 'b', 'c'].join(...) well but not map { ... }.
I found that to support completion of map(), we need associate its @returntype and@yieldreturn` type.


New logo

@agramfort, @Eric89GXL, let me know if I've missed anything.  The logo generation script is not quite DRY, but efficiency is not so important here :smile:

OK I'm taking care of it in master.
thanks @drammock  !


bug: White screen is displaying after loading the application

Bug Report
When we load the application in emulator after splash screen. I have wait some time still white screen is displaying.
When i tried to run using CLI command "ionic cordova emulate ios --livereload-url=http://localhost:8100", this is working perfectly.
Please help me on this.
Ionic version:
Config xml file details
config.txt
Package JSON
Package JSON
package.txt
file details
Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

Ionic info:

insert the output from ionic info here

Still facing the same issue, please help me.

what command you use to create your project?
did you using this command
ionic start myApp tabs
i have same issue when using this command, i don't know why. but when i using
ionic start myApp
then i select conference as my starting template. every thing work just fine, event after i remove most of component

The new application which i created through this  "ionic start myApp tabs" is working fine in both platforms.
There is no issue in new project.
Issue arises when platform is added in existing projects.

try removing this line
    <allow-navigation href="http://localhost:8100" sessionid="d1cdac2c" />
    <allow-navigation href="http://localhost:4200" sessionid="9b211fd7" />

i think it try to connect to localhost

Tried, but not working.
Sharing IOS log file details, please check.
ioslog.pdf

Hi @mbc-rajeshmp, did you find the solution?
after you remove that line did you run this command
ionic cordova prepare ios
i try add new platform on my existing project it's working just fine.
i using default config.xml by ionic.

I have tried this, same result.
Sharing iOS log file.
log.pdf

Thank you for your kind support.
I am able to solve the issue after upgrading the version.


Hide cursor and updated electron params

With the css set, can I ommit the installation of 'unclutter' on raspbian?

Yes, exactly my idea :)

Which of these tools are necessary now: http://michaelteeuw.nl/post/83188136918/magic-mirror-part-v-installing-the-raspberry-pi
As I can see I need:

screen rotation and some things in /boot/config.txt

But these installations are not necessary anymore:

php, apache, unclutter, chromium / kioskmode

Am I right? Do I need to put the node script in my init. for reboot? Or does it starts automatically?

Jup haven't tested it yet but hopefully the only thing you need is that and node start in /etc/xdg/lxsession/LXDE-pi/autostart.

I'll merge this request after I solve a newsfeed bug.

A browser is thou still neded right? At the moment I use midori as chromium does not work anymore.

No its not!


How to handle unlabelled data

I noticed, after load_sessions is called, it has train/test data in form of:  {'templates': ['BLOCK NameSystem.allocateBlock:<>',...], 'label': 0}.**  For unsupervised data there is no label key available. How to handle this? Do I need to assume '0' as label for unsupervised?

Unsupervised learning should be achieved by setting the "--label_type" parameter to "nextlog", meaning that the ID of the next log in the window is used as a label for unsupervised learning. For supervised learning, the parameter should be set to "anomaly".

they do it that way so you can mesure metrics at the end. but int real world applications you wont have label(0  or 1).
Regarding the @new-cat , thats right, labels will be next key given a sequence


Ring's indoor camera to HASS

Cont'd from https://github.com/130s/hut_10sqft/issues/632, how can I integrate Ring's indoor camera to HASS.
This task will be followed by https://github.com/130s/hut_10sqft/issues/633

Ring indoor camera is not Z-Wave device. Ring integration (home-assistant.io) does access the camera but does NOT show live feed as the integration's limitation (as the linked page clarifies). Need an alternative plan to access the live feed.

Try non-official HASS plugins

Ring MQTT may allow access (even while the device is registered on ring.com??? If so that's super nice) https://community.home-assistant.io/t/ring-device-integration-via-mqtt-w-video-streaming/102105/
ring-hassio https://community.home-assistant.io/t/ring-live-view/209336

Try hacking access withOUT registering the device on ring.com.

First I'm interested in Ring MQTT plugin as it seems promising (although I don't fully understand its functionality and limitation just yet). Then https://github.com/tsightler/ring-mqtt-ha-addon#quick-install

Navigate to the add-on store in the Home Assistant UI (Supervisor in the left menu, then Add-on Store on the top tab)

I don't see add-on store. Then https://www.home-assistant.io/addons/ provides a local redirect link, so I clicked http://192.168.x.xxx:8123/_my_redirect/supervisor, then

This redirect is not supported by your Home Assistant installation. It needs either the Home Assistant Operating System or Home Assistant Supervised installation method. For more information, see the documentation.

Hmmmmmm. My HASS is snap pkg installed on Ubuntu Core. Does Ubuntu Core block any usage?
Well, looks like my HASS instance is Home Assistant Core due to http://192.168.x.xxx:8123/config/info, which doesn't provide Add-on feature according to https://www.home-assistant.io/installation#compare-installation-methods
Ok, it's time to switch away from Ubuntu Core to more flexible Ubuntu installation. I've tolerated enough with Ubuntu Core.

I'm interested in seeing the image feed from the cameras that are registered to ring.com server, which is tracked in https://github.com/kinu-garage/hut_10sqft/issues/641#issuecomment-1007620187

In updated HASS this is working. Currently I only see the last snapshot that seemingly was captured upon movement trigger, which is not sufficient but better than nothing. Good thing is someone is maintaining the s/w.


[Testing] Testing spell-checker workflow

Just curious if/how this works

Spell checker can be a bit finnicky when it comes to all the weird data/code words and formats we use. Added a bunch of false positives to the exclusion file linked in the toml...
However, after all that it can be pretty useful. Found a lot of spelling errors everywhere - the output can be saved with pylint --disable all --enable spelling --rcfile=pyproject.toml ./src  > ../test_results.txt and appears much like NWB Inspector reports: spelling_results.txt

Shows up the CI similarly:

Goal for this PR is to just let this sit on this side-branch and act as a stand-alone display whenever we want to scrub for spelling errors.
Will never require this for actual PRs.

Nice!


Send better JWT error messages to API clients

Fixes #1071
With clock skew, a bad API request gets this response now:
< HTTP/1.1 401 UNAUTHORIZED
{"detail": "JWT iat (issued at time) is invalid. Make sure your system clock is synchronized with something like NTP."}

I also improved a lot of other error message which were showing generic, non-informative messages before.

Should the errors that get logged be log.warning or log.error? I'm not sure the severity matters at all but it might be helpful to look for all warnings/errors on the jwt logger and see what's common.
r+wc

Should the errors that get logged be log.warning or log.error?

They definitely aren't errors because that's reserved for things that we can fix in the application (and those are sent to Sentry). These are only user-fixable errors. I did increase the one about unhandled exceptions to a warning though.

Thank you! :)

Nice :+1:


Idea: Give line and file when an error occured

Sometimes it's useful to know where the error was printed.

https://github.com/cozy/printit/pull/8

#8 is merged

Thank you @cylwin !


[Docs] Fix a typo in docs/WindowsCrossCompile.md

The line: "how to cross compile Swift on Windows" should read "how to cross compile Swift for Windows".  I believe this is a typo.

@swift-ci Please smoke test

I think that they both make sense.  BTW, you need to be authorized to perform the test runs :-)

@swift-ci please smoke test and merge

Can we have snapshot builds for windows please ?
https://swift.org/download/#snapshots


A partial transaction that should sign doesn't appear in the account transaction list.

Application ver: 0.13.8 (mac)
When I convert an account to a multi signature.
Cosinatory's partial transaction list should be shown the multisig modification transaction, but It is not shown.
So cosignatory can not cosign.
here is the video capture.
https://drive.google.com/file/d/1LWhbI8DqxNk3Hz8N-7_QgU0v5chh_ckW/view?usp=sharing

Hi @daoka which node you are using in the wallet?

Hi @daoka which node you are using in the wallet?

I'm using api-01-us-west-1 in the wallet
http://api-01.us-west-1.testnet.symboldev.network:3000/

I'm using api-01-us-west-1 in the wallet
http://api-01.us-west-1.testnet.symboldev.network:3000/

Hmm, I am using the same node, but cannot reproduce the error. We had a known issue on modifying multisig, but convert moultisig works as expected

Hmm, I am using the same node, but cannot reproduce the error. We had a known issue on modifying multisig, but convert moultisig works as expected

@daoka are you able to reproduce on other node than http://api-01.us-west-1.testnet.symboldev.network:3000/?

@daoka are you able to reproduce on other node than http://api-01.us-west-1.testnet.symboldev.network:3000/?

@cryptoBeliever
I've tried another node api-01-eu-central-1 http://api-01.eu-central-1.testnet.symboldev.network:3000
It didn't reproduce. It was success.

@cryptoBeliever
I've tried another node api-01-eu-central-1 http://api-01.eu-central-1.testnet.symboldev.network:3000
It didn't reproduce. It was success.

@rg911
This was most probably related to closed WebSockets (Funds Lock confirmed but Aggregate not announed).
I'm closing because we have another issue for that: https://github.com/nemgrouplimited/symbol-desktop-wallet/issues/1011


Recoded _max_value method using a dictionary

Description:

Removed _max_value method and added a dictionary

Related to https://github.com/pytorch/vision/issues/5502
cc @datumbox

We could probably also add an xfail test like
import torch
import pytest

@pytest.mark.xfail(
    reason="torch.iinfo() is not supported by torchscript. See https://github.com/pytorch/pytorch/issues/41492."
)
def test_max_value_iinfo():
    @torch.jit.script
    def max_value(image: torch.Tensor) -> int:
        return 1 if image.is_floating_point() else torch.iinfo(image.dtype).max

to nudge us to switch as soon as support is added.

@pmeier Good call. If they add support our test will fail and we will certainly know about it :)
@vfdev-5 Feel free to merge on green CI.


Jupyter notebook no longer starts

When I open a Jupyter notebook file (.ipynb) it keeps loading forever and never actually starts. This happened recently (there was no issue before).
Thanks!

@Alireza-Iranpour thanks for reporting this. We actually have this issue already reported here with issue #13901 so I'm going to close this issue as a duplicate of that one. There is already a fix in progress for this, and if you check that thread that I linked I believe that there are a couple of workarounds that are working for customers.


Add ESP-IDF examples and config files

ESP32 MCU code examples for the TM1638 chip.

Hello
Thanks for contribution
Unfortunately, this example will not work! There are some commented lines (lines 50~52) in the TM1638_platform.h file that should be uncommented, depending on the target platform. I suggest putting the platform-dependent parts of the code in the example's main.c file, as was done in the README.md.
Good luck

OK. I have an idea. I will add a commit later today.

Add a MACRO that automatically activates when building with ESP-IDF build chain (using ESP_PLATFORM).
Add a Kconfig for configuring the GPIO of TM1638.

I would like to make this TM1638 project as flexible as possible. So that most ESP users will not have to change the code. This is especially useful if they use this project as a git submodule.

OK, continue, we will see the result

Just pushed a new commit that did what I said.
The default GPIO pins for the ESP32 is still the same as your original pins, e.g. 0,1,2. Users can configure the GPIO pins to their custom pins through menuconfig (sdkconfig).

Currently, there are no errors building the ESP32 examples in ESP-IDF build chain.
I will test on a real TM1638 module and come back with the result of the digit displaying in real world.

Any follow up that need to be done by me for this merge?

 I was waiting for your report.
On the other hand, I changed the source code a little, first you need to apply the changes in your code.


BrowserAction: Applications Section

Since using this extension, I feel like I am always losing my way to /home on my router console.
That is a me thing maybe, but, I like to see it or access it quickly.

Since this section is about connecting to your I2P Java applications, instead of linking to the home page of the router extension,
(Help Page) - could this link to /home?

Does this extension only work with I2P Java? if that is the case, should it say so?

In the section where the text says " These applications work with I2P...."
Would it make sense to change this to: This extension allows direct access to the following applications in your I2P Java router. To enable this feature, ....do this .....).
In the sections for the applications that the extension links too - should the names of the applications be used in the descriptions.
Email: Access SusiMail, the I2P Network webmail client.
Bittorrent: Access Snark, the anonymizing peer-to-peer file sharing bittorrent application for the I2P network.

I'll add a router console entry to that section but I'd rather not get rid of the extension help page. That's the only place it is accessible from.
No it works with any I2P distribution, however, many of it's features work best with I2P Java.  When using it with i2pd, things which aren't available will almost all automatically blank themselves out.

Re: re-introducing brand names that's fine but just for my own edification can you walk me through the thought-process? I pause because it used to be like that, where [name](link to app): is a built-in I2P $app_protocol client.

I'll add a router console entry to that section but I'd rather not get rid of the extension help page. That's the only place it is accessible from.
No it works with any I2P distribution, however, many of it's features work best with I2P Java.  When using it with i2pd, things which aren't available will almost all automatically blank themselves out.

Should any instruction for different distributions be mentioned in the onboarding for the extension homepage?

Re: re-introducing brand names that's fine but just for my own edification can you walk me through the thought-process? I pause because it used to be like that, where [name](link to app): is a built-in I2P $app_protocol client.

My though was familiarity - so if a person is used to using Snark, they should see that in the bittorrent reference that  is what we are talking about and where they are going if they click a link.

Applications
The I2P router console and applications open in their own tab, providing them with the same security benefits as browsing with this extension. Email, file sharing, and any other I2P applications are isolated from your browsing and from each other.
Toopie
View your router connection status, restart or stop your router as well.
Router Console
Access your I2P router console and its full range of applications and configurations.
Hidden Services Manager
View status messages, service and tunnel configuration.
Email
Quick access to the SusiMail I2P network email client.
BitTorrent
Quick access to Snark, the Peer-to-peer I2P network specific file sharing application.


Not able to add new user requests

When we click "+" button, and adding request, nothing gets added

This issue fixed on this commit.


How can I early exiting by running easy stage only once？

Hello， I am interested in your work. But in your current release code part, the early exiting part is not contained in RBQE network.
You choose different 'order' to realize different exiting?
Does your unpublished code have a more efficient implementation?
Than you!

Hi yunchen, thanks for your interest!
Following MSDNet and RANet, we output all enhanced images from all exits, and then calculate the Tchebichef scores to decide which enhanced image we should choose. This is convenient for us to conduct testing under different thresholds.
Unfortunately, we write our Tchebichef IQA code on MATLAB, and we haven't transfer it to Python yet. We are working on an updated version right now, and hopefully we can make it soon.
If you have any questions about implementation, feel free to contact us~


Changing themes will cause page to break

Version - master UI 2/4
Steps:

Change theme

Results:  Not sure exactly what causes this to happen.  But every once in a while if I switch to Auto theme, my page breaks.  Here is screenshot plus stylesheet info:

Expected:  Should not break

I don't know the root cause either, but saw @tfiduccia do it several times

@vincent99 The only time I was able to duplicate this was when i was getting the 422 error from the userpreference api regarding the double encoded strings. That seems to be resolved with the latest rancher release.

I don't know how to cause it but it wasn't 422s.  She was just switching back and forth between light/auto/dark/auto/light.
Maybe at least add a check to the part that writes out the tag that it has a value?

Version - 0.58.0-rc2
Still reproducible.  I can get this to reproduce by clicking on light, dark, auto and switching pages and then doing the light, dark, auto again.  It doesn't happen every time, but if you click back and forth between pages and change from dark/light to auto it will eventually happen.

Can get this to reproduce now:
Steps:

Go to API page
Click on Auto theme, click on light theme, click on Auto theme twice
Go to Help page
Click on light theme, click on auto theme twice
Go back to API page, click on light theme, click on Auto theme twice
Repeat steps 3-5 until break

I normally only have to do this a couple of times to get it happen.  If you would like demo, let me know.

Version - master 3/4
Verified fixed


Should Mobject be an abstract class?

The following excerpt from camera.py contains the functions used to render objects and put them in the Camera's pixel_array.
https://github.com/ManimCommunity/manim/blob/35e9e05eec4dc091d462ca2dab8b4561497ba0f1/manim/camera/camera.py#L488-L493
As you can see, Mobjects are not processed at all. This means that if I add a Mobject on my Scene, it will never be captured by the camera and not rendered on video.
Seeing as Mobjects are never being handled, should Mobject be an abstract class? As far as I can tell, Mobject is really only instantiated in some tests, but most (all?) of those tests could just as easily be written using VMobject instead.
EDIT: another question. Currently Mobjects are being silently ignored. Instead, the code above should (at least) issue a warning to the user "you are trying to render a Mobject, which is currently not supported. Use VMobject instead".
EDIT: regardless of whether or not Mobject is made abstract, I think Group should be deprecated. Nobody is using Group. (Nobody can use Group for anything useful since it can only contain Mobjects.)

Seeing as Mobjects are never being handled, should Mobject be an abstract class?

I think that would be much better, since it can be thought of as a generic "object" just like Container.

I think Group should be deprecated. Nobody is using Group. (Nobody can use Group for anything useful since it can only contain Mobjects.)

Disagree, at least until we can find some way to fit every single Mobject in  VGroups. Currently, you cannot put ImageMobjects or ValueTrackers inside VGroups, since they do not inherit from VMobject.

Oooh, good point on Group there, I forgot about that. BTW, do you know why VGroup can only contain VMobjects?

do you know why VGroup can only contain VMobjects?

Seeing the code I would say it's because  VGroup inherits from VMobject (?).
Like, its basically a VMobject with submobjects.

Yeah, I think it's so that you can do things like VGroup.set_fill and that will neatly broadcast to each submobject.

I've looked at this a bit more and I've determined Mobject cannot be made an abstract base class. The reason is that it is a derived class from Container, and Container is already an abstract base class.
I still think it'd be good to raise a warning saying "you shouldn't try to render Mobjects". But this is not a priority I think.

The reason is that it is a derived class from Container, and Container is already an abstract base class.

Could you clarify this? I don't see how bother an abstract class.

This was discussed over discord, but for completeness: Mobject can't derive from ABC and Container at the same time, because Container already derives from ABC.

I believe Mobject can still be made into an abstract class in some other way, for example by decorating one of its methods with @abstractmethod (see here). However, if we do so, then each of its derived classes has to override that method. Note that Group and Vmobject both derive from Mobject, so there are not many methods that will be meaningfully overriden by both at the same time.


[OSFUSE-444]CXF quick starts should not define the CXF version

ok to test

ok to test

ok to test

[merge]


Add Rake task to create custom organisation in database

What problem does this pull request solve?

Currently when we want to add an organisation to the forms-admin database we either have to rely on it being in the GOV.UK organisations API, or use the AWS data API and an SQL command to add it [1].
This PR adds a Rake task we can run using the forms-cli, which should be safer and easier.
I've tested this on my local machine.
Things to consider when reviewing

Ensure that you consider the wider context.
Does it work when run on your machine?
Is it clear what the code is doing?
Do the commit messages explain why the changes were made?
Are there all the unit tests needed?
Has all relevant documentation been updated?

It might benefit from a test - in forms-api we have a test for the un-living a form rake task (https://github.com/alphagov/forms-api/blob/main/spec/lib/tasks/forms_admin_spec.rb) - this might be worth doing here.

Ooh I was wondering if it was possible to write a test, this is very helpful, thank you!

You were probably already planning to do this but just in case - when this is merged please could you update the guidance on the 'How-to-add-an-organisation-to-GOV.UK-Forms' wiki page to use this task?

Yep will do :D

@DavidBiddle I've added tests and also tweaked the task slightly, if you have time to re-review that would be appreciated 🙏


remove -labs from gamut-kit

Overview

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: [ABC-123]
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change
[ ] This PR includes testing instructions tests for the code change
[ ] The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions

Don't make me tap the sign.
PR Links and Envs

Repository
PR Link
PR Env

Monolith
Monolith PR
Monolith Env

Portal
Portal Link
Portal Env

Another Repo
Another Link
Another Env

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.314-alpha.3d1ae2.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6459635a45d35b3252c6e65a--gamut-preview.netlify.appDeploy Logs


runnning genLens after extraction

@gmalecha  originally wrote genLens in template-coq. This is a nice test case for running after extraction: it has both quoting and unquoting.

The issue here seems to be with the implementations of tmQuoteConstant (as well as tmQuoteInductive). The Coq implementation seems to makes certain assumptions about kername but in the plugin, we can violate those assumptions because we just treat kername as string. We need to change those functions to do the usual Nametab.locate to find the appropriate definitions.

I've merged this so that I can incorporate the CI fixes.


Do we support to use the same ports for both incoming and outgoing traffic?

Hi,
This is a great project, and I am very interested to give it a try. However, we have limited ports to test. So do we support to use the same set of ports for both incoming and outgoing traffic? e.g. 8 ports to generating 8100Gb traffic out, and the same 8 ports will receive the same 8100Gb traffic back for RTT analysis etc.?
Thanks very much!
Regards,
Yichen

That's cool! Thanks for the prompt reply!


Parallel quotients

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#690  👈
#689
dev

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @spapinistarkware and the rest of your teammates on  Graphite

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

Project coverage is 90.00%. Comparing base (3db6f2f) to head (50f7600).

Additional details and impacted files
@@                         Coverage Diff                          @@
##           spapini/07-01-securecolumnslices     #690      +/-   ##
====================================================================
+ Coverage                             89.97%   90.00%   +0.02%
====================================================================
  Files                                    75       75
  Lines                                  9678     9706      +28
  Branches                               9678     9706      +28
====================================================================
+ Hits                                   8708     8736      +28
  Misses                                  889      889
  Partials                                 81       81

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


Cleanup Sass structure for exhibit customizations

https://jirautk.atlassian.net/browse/EXHIBIT-87
What does this do?
This PR reorganizations some stray layout files and and adds them to a directory path of sass/entity/galston/*. Because the Exhibits repo is intended long term to house multiple exhibits, we should try and make sure that each Exhibit with styling that may not be global have it's own unique directory. The files moved were previously being added to the sass/components/yith/layout which is intended to be a global directory for the global Yith components only. If any styling needs to be applied to these components that is not global, it should occur in the relative entity directory.
How should this be reviewed?
Does my thinking here make sense? It follows the logic originally outlined here where we were going to house custom code for each exhibit in a subtheme directory.

I'm not sure what the conflict is here, but it's probably not serious. No code was changed for the _music-pedagogy.scss file. Happy to review together when ready to merge.

@sfunk3, could you review this when you have a chance? It's related to https://jirautk.atlassian.net/browse/EXHIBIT-87

@sfunk3 I've resolved the merge issues but not we are seeing the build fail due to commit https://github.com/utkdigitalinitiatives/exhibits/commit/627c0e9f2b3f63f8ced7839b1ff63faeb8bbf8b1.

@markpbaggett This build issue is resolved in https://github.com/utkdigitalinitiatives/exhibits/pull/15.

@markpbaggett Netlify now build after approval and merge of https://github.com/utkdigitalinitiatives/exhibits/pull/15.

@markpbaggett @sfunk3 merge conflicts and build issues for this are now resolved.


Added French translation to GitHub footer

What does this pull request (PR) do? / Que fait cette demande « pull » (PR)?
Update the French version of the GitHub footer
Additional information (optional) / Information additionnelle (optionel)
The GitHub contribute footer doesn't look exactly like the screenshot provided in #313, so it's probable it might need to be changed. Please let me know.
General checklist / Liste de contrôle générale
Make your own list for the purpose of your Pull request. /// Faites votre propre liste en fonction des besoins de votre demande « pull ».

[x] Create/update documentation /// Créer/mettre à jour la documentation
[x] Waiting for French translation
[ ] Waiting for review

Related issues / Requêtes associées
Relates to #313
Screenshots / Captures d'écrans
French version

#313
Hey Isabel, for the GitHub footer, it's no problem if the staging isn't a perfect match to the screenshot I shared. However, is there anything we can tweak to make the footer similar in height to the contextual footer?
Perhaps we can experiment with the size of the GitHub logo and its font size? Or have the text for the 3 links stacked on top of each other similar to the screenshot?
The height of the GitHub footer is the only thing I see worth flagging as DTO (Digital Transformation Office) has already pointed this out to us as a component that is too large and not in accordance to the Canada.ca design system. This means it will need to be removed or revised eventually.
If we can create the footer in a way that fits the DAT team's need to link to GitHub while drawing closer inspiration from the design system (aka the contextual footer), this will be ideal as it'll save us time down the road and be something DTO may overlook.
Let me know what you think and thanks for looping me in on your progress!

@acev0010 For sure! We can check in with @shawnthompson once he returns. I think he should be aware of this update as Julie emailed him of the changes on May 31. Feel free to loop me into the conversation for more context/details if needed :)

Can we close this pull request as the changes for the contribute section is being done in the following pull request.
creates grid for contribute section by shawnthompson · Pull Request #308 · gc-da11yn/gc-da11yn.github.io
Thanks!


0.1.0 not in quay.io

The update from 0.0.1 to 0.1.0 was incomplete as the tagged operator image was not created.

using the documented operator courier command I could create a tagged teiid/teiid application, but nothing seems to show up as a new operator: https://quay.io/repository/teiid/teiid-operator?tag=latest&tab=tags

using the deploy script should push the image to quay

Which deploy script?  Following the readme got me
https://quay.io/application/teiid/teiid - look on the right hand side. but nothing here:
https://quay.io/repository/teiid/teiid-operator?tag=latest&tab=tags

make deploy

Okay that seems to work: https://quay.io/repository/teiid/teiid-operator?tab=tags
But starting down the path of converting to modules wasn't quite successful.  See https://github.com/teiid/teiid-operator/pull/38


dialog [nfc]: Wrap showErrorDialog's return value

As a result, showErrorDialog no longer returns a Future that can be mistakenly awaited.  The wrapped return value offers clarity on how the Future is supposed to be used.
There is no user visible change because existing callers (other than lightbox's) that wait for its return value are all asynchronous handlers for UI elements like buttons, and waits unnecessarily.
See also discussion
https://github.com/zulip/zulip-flutter/pull/937#discussion_r1774377096.

Thanks for the review! Updated the PR.

LGTM, thanks! Over to Greg.


Documentation update....

The Floating Rows documentation page has:
 // no rows to float to start with
 floatingHeaderRowData: [],
 floatingFooterRowData: []

In the grid options. "Header" should be replaced by "Top" and "Footer" replaced by "Bottom". The example still works because these aren't use to actually set the floating rows, but it threw me off when I copied and pasted this options.

cool, thank you.
i've updated it in github, will be updated online when i do the next release.


[SPARK-44059] Add analyzer support of named arguments for built-in functions

What changes were proposed in this pull request?
Add analyzer support for named function arguments.
Why are the changes needed?
Part of the project needed for general named function argument support.
Does this PR introduce any user-facing change?
We added support for named arguments for the CountMinSketchAgg and Mask SQL functions.
How was this patch tested?
A new suite was added for this test called NamedArgumentFunctionSuite.

@dtenedor @anchovYu Can you leave some review comments on this new PR! I rebased it and it should be in a more compact form ready for review!

@anchovYu Comments addressed!

@MaxGekk Comments addressed!

@dtenedor Addressed comments, let me know what you think!

seems ExpressionInfoSuite has test failures.

Migrating to #42020 due to some problems with branches.


FFM-11983 Proxy 2.0.4 release notes

Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes: Adds proxy release notes
Jira/GitHub Issue numbers (if any): FFM-11983
Preview links/images (Internal contributors only):

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[ ] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66d86948ef8b87c3bc78bbf6--harness-developer.netlify.app


Elasticsearch 6: Failed to create node environment

Bug Description
Suppose we have a data directory that is not owned by the elasticsearch user, so we set group permissions on it as per the documentation:
sudo mkdir esdatadir
sudo chmod g+rwx esdatadir
sudo chgrp 1000 esdatadir

Then we run the elasticsearch container:
docker run -v `pwd`/esdatadir:/usr/share/elasticsearch/data -v `pwd`/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml docker.elastic.co/elasticsearch/elasticsearch:6.3.2

This results in the following error:
[2018-08-03T17:03:09,439][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Failed to create node environment
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.2.jar:6.3.2]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.2.jar:6.3.2]
Caused by: java.lang.IllegalStateException: Failed to create node environment
        at org.elasticsearch.node.Node.<init>(Node.java:273) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.node.Node.<init>(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.2.jar:6.3.2]
        ... 6 more
Caused by: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?]
        at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:385) ~[?:?]
        at java.nio.file.Files.createDirectory(Files.java:682) ~[?:?]
        at java.nio.file.Files.createAndCheckIsDirectory(Files.java:789) ~[?:?]
        at java.nio.file.Files.createDirectories(Files.java:775) ~[?:?]
        at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:203) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.node.Node.<init>(Node.java:270) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.node.Node.<init>(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.2.jar:6.3.2]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.2.jar:6.3.2]
        ... 6 more

However, this used to work correctly on elasticsearch 5. For example, this command runs successfully:
docker run -v `pwd`/esdatadir:/usr/share/elasticsearch/data -v `pwd`/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml docker.elastic.co/elasticsearch/elasticsearch:5.6.10

It seems like the newer containers require something more that just group permissions on the data directory, so either the documentation is wrong or there is a bug somewhere.
Environment
$ docker info
Containers: 1
 Running: 1
 Paused: 0
 Stopped: 0
Images: 1
Server Version: 18.03.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: syslog
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.14.47-56.37.amzn1.x86_64
Operating System: Amazon Linux AMI 2018.03
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 30.64GiB
Name:
ID: HMOB:C52U:DFYD:4SFE:Q27M:O5IV:7BM2:OZAB:Q27H:NOSI:ITT5:6AFZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

I presume that the uid of the user that you issuing the commands as is not 1000? I was able to reproduce this by creating a local data dir and using something like sudo chown -R 1500:1000 esdatadir. Looking at the tests, seems we are only testing for the case with random uid, but gid=0, so this might be a genuine mistake/bug in the documentation. If you use chgrp -R 0 esdatadir it should work fine. Also chown -R 1000:1000 esdatadir will work.

I also meet the same problem when I mount  logs dir from the container to local ,and it returns to me as follow：
es_node1    | OpenJDK 64-Bit Server VM warning: Cannot open file logs/gc.log due to Permission denied

It appears that the entrypoint is not correctly setting the primary group of the user to 1000. We are using the --userspec feature of GNU chroot(8) to change the UID to 1000 before starting Elasticsearch. What we didn't notice in the past is that this does not automatically set the GID of the resulting process to that user's primary group:
$ docker run --rm -it docker.elastic.co/elasticsearch/elasticsearch:6.3.2 bash

[root@d92b5ede3193 elasticsearch]# chroot --userspec=1000 / id
uid=1000(elasticsearch) gid=0(root) groups=0(root)

We can, however, explicitly set the GID of the process using the same technique:
[root@d92b5ede3193 elasticsearch]# chroot --userspec=1000:1000 / id
uid=1000(elasticsearch) gid=1000(elasticsearch) groups=1000(elasticsearch)

I suggest we do this in the entrypoint.

Alternatively, now that we prefer GID 0 in some circumstances (OpenShift), it may be better to amend the docs and deprecate all use of, and references to, GID 1000. What do you think, @dliappis?

Hi @dliappis ,
My docker-compose looks like this:
elasticsearch:      container_name: elasticsearch      image: ${ES_VERSION_MANIFEST}      environment:           - LOGSPOUT=ignore           - "ES_JAVA_OPTS=-Xms512m -Xmx512m"           - cluster.name=docker-prosolo-elasticsearch           - bootstrap.memory_lock=true      #command: -Des.node.name="Prosolo-elasticsearch"      ulimits:           memlock:              soft: -1              hard: -1      networks:           - localnet      ports:          - 9200:9200          - 9300:9300      volumes:          - ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/elasticsearch.yml          - elasticsearch_volume:/usr/share/elasticsearch/data volumes:   cassandra_volume:     external:       name: cassandra_data_volume_${VCS_BRANCH}   mysql_volume:     external:       name: mysql_data_volume_${VCS_BRANCH}   elasticsearch_volume:     external:       name: elasticsearch_data_volume_${VCS_BRANCH}
And my local user id is 1000, so workaround with changing ownership to 1000:1000 for /usr/share/elasticsearch doesn't work. Is there any other solution?
Thanks

Have you tried changing the group of the files to 0?

Have you tried changing the group of the files to 0?

You mean 1000:0 ? I just tried it, and it doesn't work.

To be honest, I'm not sure I fully understand the behaviour you are seeing. This issue is about file permissions for the data directory, but it looks like you are using named volume for the data dir. That should not have any problem. Can you expand a bit on what's not working for you?

Alternatively, now that we prefer GID 0 in some circumstances (OpenShift), it may be better to amend the docs and deprecate all use of, and references to, GID 1000. What do you think, @dliappis?

@jarpy sorry this took time to get back to. I vaguely remember that I was happy with the chroot --userspec=1000 / id default behavior but it's quite some time ago so I might be altogether wrong. I agree, in my opinion it's best to deprecate all uses and refs to gid 1000 in our docs.

To be honest, I'm not sure I fully understand the behaviour you are seeing. This issue is about file permissions for the data directory, but it looks like you are using a named volume for the data dir. That should not have any problem. Can you expand a bit on what's not working for you?

@jarpy I'm using named volume for data dir, but I can see exactly the same exception as in original post not being able to create node environment because of the AccessDeniedException on /usr/share/elasticsearch/data/nodes. I've manually created these directories and tried to change owner of elasticsearch directory and all children. It doesn't work for me since I'm user 1000.

I don't think that your user account being UID 1000 is a problem. My UID is usually 1000, too. That's only in the host UID namespace, however. Unless you have explicitly arranged otherwise, the container is running in its own UID namespace. It doesn't know about "you", only the "elasticsearch" user, which is UID 1000 in that namespace.

I'm not sure how it is possible that container is not aware of host user. These files are on the host machine, and when I change ownership to 1000, it is assigned to my username. For me, it doesn't make sense that docker container can override the ownership of the files that live on host machine and which is assigned by host OS, and take the ownership on the files. I'm not an expert for docker, so I can't claim this for sure. It's just my thought.

I'm not sure how it is possible that container is not aware of host user.

It's all about Linux namespaces. These are really the essence of containers. The PID namepace is also really important, for example. That's how your process can think it's PID 1 inside the container, but can also be seen as some other number outside. UIDs within the container are completely separate from those on the host. That model does break down a little, however, if you share a filesystem between the host and the container. Then, you have to start worrying about matching up the UIDs. We recommend that people avoid sharing filesystems if possible and instead use storage that is dedicated to the container, like Docker named volumes (which you are doing).
If there are any existing file in those volumes, then it's best to make them UID:GID 1000:0. The presence of a host user with UID 1000 has no effect. Better still, just recreate the volumes and let Elasticsearch create the files it needs. I assume there is no data in them, since the process won't start?
When is the exact error that you are seeing?

This issue hasn't had any feedback in 6 months. Additionally, maintenance of the docker files for elasticsearch has moved to the elasticsearch repo. Please open any new bug reports there. As we will be archiving this repository, I am going to close this issue.


Footgun in the Makefile when Limine fails to build

Issue
If Limine fails to build with make limine, subsequent attempts to build it will silently do nothing.
This can be easily triggered on systems like NixOS or Guix in which a person might have an environment with no C compilers in $PATH.
It causes all other steps depending on Limine to fail until performing make distclean and rebuilding properly.
How to reproduce

Fail to build Limine (reproduced on NixOS without any C compiler in the environment)
Try to build Limine again

$ make limine
git clone https://github.com/limine-bootloader/limine.git --branch=v7.x-binary --depth=1
Cloning into 'limine'...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 18 (delta 5), reused 11 (delta 5), pack-reused 0
Receiving objects: 100% (18/18), 618.16 KiB | 10.84 MiB/s, done.
Resolving deltas: 100% (5/5), done.
make -C limine
make[1]: Entering directory '/home/plumeus/repos/limine-zig-template/limine'
cc -g -O2 -pipe -Wall -Wextra    -std=c99 limine.c  -o limine
make[1]: cc: No such file or directory
make[1]: *** [Makefile:38: limine] Error 127
make[1]: Leaving directory '/home/plumeus/repos/limine-zig-template/limine'
make: *** [GNUmakefile:47: limine] Error 2

$ make limine
make: 'limine' is up to date.

It seems to be a problem with every other Limine template as the makefile is mostly shared between all of them. I'm surprised it was never brought up by anyone, considering that Zig isn't the most popular language out there. I am not sure how to properly handle this so I'll keep this issue open for the time being in case anyone else hits that.

Fixed by c972157, thanks


[BUG] routing.py::serialize_response does not respect "by_alias" before validation

Describe the bug
In the serialize_response function of routing.py, field validation is performed on a dict from the model that does not respect the "by_alias" parameter. This results in a failure to properly validate required fields that have an alias defined in the Config.
To Reproduce

Create a file with:

from fastapi import FastAPI
from pydantic import BaseModel

class Blowup(BaseModel):
    snake_case_fail: bool

    class Config:
        fields = {"snake_case_fail": "snakeCaseFail"}

app = FastAPI()

@app.get("/mock/", response_model=Blowup)
async def test_failure() -> Blowup:
    # Mock
    mock_response = Blowup(snakeCaseFail=True)
    return mock_response

Open the browser and call the endpoint /.
Will fail with

E               pydantic.error_wrappers.ValidationError: 1 validation errors for Blowup
E               response -> snakeCaseFail
E                 field required (type=value_error.missing)

Modifying routing.py::serialize_response()::49 from
response = response.dict(skip_defaults=skip_defaults)
to be:
response = response.dict(skip_defaults=skip_defaults, by_alias=by_alias)

results in successful validation and proper execution
Expected behavior
Expect the proper conversion via the alias to prevent validation error
Environment

OS: macOS

FastAPI Version 0.38.1

Python version, 3.7.4

Workaround for now is to just return a starlette JSONResponse via
@app.get("/mock/")
async def test_failure() -> JSONResponse:
    # Mock
    mock_response = Blowup(snakeCaseFail=True)
    return JSONResponse(content=mock_response.dict(skip_defaults=True, by_alias=True))

I think you need allow_population_by_field_name = True.
from fastapi import FastAPI
from pydantic import BaseModel

class Blowup(BaseModel):
    snake_case_fail: bool

    class Config:
        fields = {"snake_case_fail": "snakeCaseFail"}
        allow_population_by_field_name = True

app = FastAPI()

@app.get("/mock/", response_model=Blowup)
async def test_failure() -> Blowup:
    # Mock
    mock_response = Blowup(snakeCaseFail=True)
    return mock_response


Update README.md

added CrudBooster

CrudBooster is a package that needs to go here: https://github.com/chiraggude/awesome-laravel#developer-tools
Send me a new PR :)


Update plan

Hello friends!
I'd like to apologize to you all for not taking enough care of swapi.dev during last year. Work projects being in the top of the list together with life-related aspects never allowed me to dedicate attention that this project deserves.
Another aspect that was making it more difficult is tech stack: Python 2 and Django 1.x... say I was super happy when I managed to properly deploy it, and it was handling the load well (it is serving more than 1000 API requests per second in peak).
However I never properly looked inside the project or took an effort to bring new conent or features that all API enthusiasts deserve and for that I scincerely apologize.
Now back to the constructive aspects of this post. I plan to resume my involvement in this project here are the changes and features that I plan for the near future. Good news, the first task is already done :)

Keeping SWAPI more accessible and easier to deploy on your environment. With help of @tribalspirit we've Dockerized an application and the image is now available on DockerHub. Instructions how to use it will soon follow, but it boils down to:

> docker run -d -p 8000:8000 juriy/swapi:latest
> curl -L localhost:8000/api/people/1/

New content. As SW saga continues there are more exciting characters, planets and spaceships to include. This doesn't seem like a lot of work, so I'll start updating DB.

Platform refresh. Python 2 and Django 1.7 are not great in 2021. There's a PR from @leonidpodriz who dedicated lots of effort to updating it to a modern stack. One thing to keep in mind is that project is a very good candidate to become "cloud native" - so serverless (and Django-less) approach is also on the radar.

Updating API schema and introducing new ways to access APIs like GraphQL. This one is tricky. On one hand it would be great to extend and refresh API, on the other hand... there are literally thousands of code examples in internet relying on existing API format. Last thing we want is to break those accidentally. Hence the current "classic" version will remain unchanged (except for the new data). An approach "going forward" would be to version API. Hey, this is another concept that API enthusiasts might want to learn about, why not killing two birds with one stone!

Decoupling UI from API and refreshing UI. Self-explanotary: it would be nice to have a bit more modern landing page. Would also be great to add Swagger / OpenAPI docs to this API.

As you see there is months worth of work and I do not promise doing it all in one go, but rather to have a steady stream of updates.

Great :D.  This is a neat project and I'm currently doing a coding project for a company using this API.  Thanks for setting this up.

Awesome project! Cheers!
One question though. Is there a maintenance going on with swapi.dev apis at the moment?
I was trying out the api the first time and am getting a throttled request already.
In any case, the docker solution is very neat!

@themobilecoder thanks for heads up, recent updates to deployment broke throttling. I disabled it for now, let's hope I'm not DDoS-ed 🙂

Hi thank you very much for your project. We use it with our students for them to download some data and learn to work with json. It's a great and fun resource for them ❤
Just one question, do you have any CDN cache deployed in front of your app? I guess that a lot of the data is never changing so it would make sense to cache most of the requests. I am preparing a new lab and the API is responding a really slowly.
Thanks ❤

Hi thank you very much for your project. We use it with our students for them to download some data and learn to work with json. It's a great and fun resource for them ❤
Just one question, do you have any CDN cache deployed in front of your app? I guess that a lot of the data is never changing so it would make sense to cache most of the requests. I am preparing a new lab and the API is responding a really slowly.
Thanks ❤

I would like to bring to attention my own Open Source swapi.info. A partially feature-parity take on SWAPI which solely utilizes Cloudflare & Cloudflare Pages infrastructure to provide blazing fast, non rate-limited, JSON-only APIs with excellent uptime guarentees and status monitoring to rapid reactions.
Built as a giveback to the community to provide an data explorer and API service for the new enterents in our community and for teachers to have a visual aid always available at their disposal.

Hi thank you very much for your project. We use it with our students for them to download some data and learn to work with json. It's a great and fun resource for them ❤
Just one question, do you have any CDN cache deployed in front of your app? I guess that a lot of the data is never changing so it would make sense to cache most of the requests. I am preparing a new lab and the API is responding a really slowly.
Thanks ❤

I would like to bring to attention my own Open Source swapi.info. A partially feature-parity take on SWAPI which solely utilizes Cloudflare & Cloudflare Pages infrastructure to provide blazing fast, non rate-limited, JSON-only APIs with excellent uptime guarentees and status monitoring to rapid reactions.
Built as a giveback to the community to provide an data explorer and API service for the new enterents in our community and for teachers to have a visual aid always available at their disposal.

We have also build our own open source version to be able to query the data without delays and limitations https://swapi.profiq.com/


problem

Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter doctor
exception
HttpException: HttpException: , uri = https://storage.googleapis.com/flutter_infra/flutter/c8f4f5d5ccfc7c0e031cb688adae7f75e076f363/android-arm-release/windows-x64.zip
#0      _attempt (package:flutter_tools/src/base/net.dart:71:39)
<asynchronous suspension>
#1      fetchUrl (package:flutter_tools/src/base/net.dart:22:36)
<asynchronous suspension>
#2      _downloadFile (package:flutter_tools/src/cache.dart:1028:37)
<asynchronous suspension>
#3      CachedArtifact._downloadArchive.<anonymous closure> (package:flutter_tools/src/cache.dart:444:17)
<asynchronous suspension>
#4      CachedArtifact._withDownloadFile (package:flutter_tools/src/cache.dart:473:26)
<asynchronous suspension>
#5      CachedArtifact._downloadArchive (package:flutter_tools/src/cache.dart:440:12)
#6      CachedArtifact._downloadZipArchive (package:flutter_tools/src/cache.dart:460:12)
#7      EngineCachedArtifact.updateInner (package:flutter_tools/src/cache.dart:607:13)
<asynchronous suspension>
#8      CachedArtifact.update (package:flutter_tools/src/cache.dart:403:11)
<asynchronous suspension>
#9      Cache.updateAll (package:flutter_tools/src/cache.dart:324:26)
<asynchronous suspension>
#10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:470:19)
<asynchronous suspension>
#11     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:407:33)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
<asynchronous suspension>
#13     _rootRun (dart:async/zone.dart:1124:13)
#14     _CustomZone.run (dart:async/zone.dart:1021:19)
#15     _runZoned (dart:async/zone.dart:1516:10)
#16     runZoned (dart:async/zone.dart:1463:12)
#17     AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
<asynchronous suspension>
#18     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:397:20)
#19     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
<asynchronous suspension>
#20     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:402:21)
<asynchronous suspension>
#21     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
<asynchronous suspension>
#22     _rootRun (dart:async/zone.dart:1124:13)
#23     _CustomZone.run (dart:async/zone.dart:1021:19)
#24     _runZoned (dart:async/zone.dart:1516:10)
#25     runZoned (dart:async/zone.dart:1463:12)
#26     AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
<asynchronous suspension>
#27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:356:19)
<asynchronous suspension>
#28     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#29     new Future.sync (dart:async/future.dart:224:31)
#30     CommandRunner.run (package:args/command_runner.dart:112:14)
#31     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:242:18)
#32     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
<asynchronous suspension>
#33     _rootRun (dart:async/zone.dart:1124:13)
#34     _CustomZone.run (dart:async/zone.dart:1021:19)
#35     _runZoned (dart:async/zone.dart:1516:10)
#36     runZoned (dart:async/zone.dart:1500:12)
#37     run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
<asynchronous suspension>
#38     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
<asynchronous suspension>
#39     _rootRun (dart:async/zone.dart:1124:13)
#40     _CustomZone.run (dart:async/zone.dart:1021:19)
#41     _runZoned (dart:async/zone.dart:1516:10)
#42     runZoned (dart:async/zone.dart:1463:12)
#43     AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
<asynchronous suspension>
#44     runInContext (package:flutter_tools/src/context_runner.dart:58:24)
<asynchronous suspension>
#45     run (package:flutter_tools/runner.dart:50:10)
#46     main (package:flutter_tools/executable.dart:63:9)
<asynchronous suspension>
#47     main (file:///D:/soft/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#48     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:303:32)
#49     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

flutter doctor
encountered exception: VersionCheckError: Command exited with code 128: git log -n 1 --pretty=format:%ad --date=iso
Standard error: fatal: bad default revision 'HEAD'

#0      _runSync (package:flutter_tools/src/version.dart:525:5)
#1      FlutterVersion._latestGitCommitDate (package:flutter_tools/src/version.dart:145:12)
#2      FlutterVersion.frameworkCommitDate (package:flutter_tools/src/version.dart:133:37)
#3      FlutterVersion.frameworkDate (package:flutter_tools/src/version.dart:95:31)
#4      FlutterValidator.validate (package:flutter_tools/src/doctor.dart:518:127)
<asynchronous suspension>
#5      Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:140:52)
#6      Doctor.diagnose (package:flutter_tools/src/doctor.dart:211:41)
<asynchronous suspension>
#7      _doctorText.<anonymous closure> (package:flutter_tools/runner.dart:202:26)
#8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
<asynchronous suspension>
#9      _rootRun (dart:async/zone.dart:1124:13)
#10     _CustomZone.run (dart:async/zone.dart:1021:19)
#11     _runZoned (dart:async/zone.dart:1516:10)
#12     runZoned (dart:async/zone.dart:1463:12)
#13     AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
<asynchronous suspension>
#14     _doctorText (package:flutter_tools/runner.dart:201:19)
<asynchronous suspension>
#15     _createLocalCrashReport (package:flutter_tools/runner.dart:179:32)
<asynchronous suspension>
#16     _handleToolError (package:flutter_tools/runner.dart:134:33)
<asynchronous suspension>
#17     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:68:22)
<asynchronous suspension>
#18     _rootRun (dart:async/zone.dart:1124:13)
#19     _CustomZone.run (dart:async/zone.dart:1021:19)
#20     _runZoned (dart:async/zone.dart:1516:10)
#21     runZoned (dart:async/zone.dart:1500:12)
#22     run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
<asynchronous suspension>
#23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
<asynchronous suspension>
#24     _rootRun (dart:async/zone.dart:1124:13)
#25     _CustomZone.run (dart:async/zone.dart:1021:19)
#26     _runZoned (dart:async/zone.dart:1516:10)
#27     runZoned (dart:async/zone.dart:1463:12)
#28     AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
<asynchronous suspension>
#29     runInContext (package:flutter_tools/src/context_runner.dart:58:24)
<asynchronous suspension>
#30     run (package:flutter_tools/runner.dart:50:10)
#31     main (package:flutter_tools/executable.dart:63:9)
<asynchronous suspension>
#32     main (file:///D:/soft/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#33     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:303:32)
#34     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

Hi @Kevin088
You seem to have installation issues. Please follow the steps as listed in the guide.
Also before reporting, do a search for existing reported issues.
The similar issue has already been closed and clarified - https://github.com/flutter/flutter/issues/22547
#22547


Validate terminal links after they have been created

xterm.js could fire some validate callback which asks the consumer whether the link is valid and could then deactivate it if so.

Upstream issue https://github.com/sourcelair/xterm.js/issues/570


Stress value

This is a request for more info on the ‘percent stress’ result.  It seems to be inversely correlated with actual stress, i.e. lower percentage matches lower hrv. I suspect this is some reading supplied by Garmin, can you link to more info perhaps from them?  Thank you

This is experimental metric not related to Garmin's stress. For details how it is calculated have a look here:

https://github.com/vtrifonov-esfiddle/Meditate/blob/master/HrvAlgorithms/sources/activity/stress/StressMonitor.mc
https://github.com/vtrifonov-esfiddle/Meditate/blob/master/HrvAlgorithms/sources/activity/stress/HrPeaksWindow.mc

It is essentially the average HR Peak from the **HR Peaks 10 Sec Window(bpm)**graph divided by the HR Peaks - Min HR

i'm trying to translate this into something i can understand.
You're trying to show, as a percentage, HR fluctuations above minimum, as a proportion of average total HR
So it's the average HR (snapshots every 10s) e.g. 105 (just guessing from the graph)
divided by kinda spikes in HR or rather the difference in HR spikes (above minimum). Presumably an average then?
e.g. 105 / (105-99)


Update paper.bib

updating some references in JOSS article

Coverage remained the same at 99.791% when pulling a12d29d26f233d6593519beef6db9ff5d0f2ea01 on kyleniemeyer:patch-2 into 40b1ad6d32175fadd5b65d2bdfd8247af5e94270 on AndrewAnnex:master.


Issues on pyftsubset --text

Having issue running the code below, and get a warning.
pyftsubset PingFang-SC-Regular.ttf --text="1234567890" --output-file="PingFang-Num.tty"

WARNING: meta NOT subset; don't know how to subset; dropped

We don't subset the meta table in the font. If you don't care about that table being dropped from the subset, you are fine with the warning. If you want subsetter to just pass it through unmodified, pass --no-subset-tables+=meta to the command line.
We don't subset it because it lists supported languages, and modifying that based on text retained is non-trivial.

Were is pyftsubset included in the release or in this repository ?
I need to call it from PHP . 10x

Call fonttools subset instead.


the true pincode doesn't unlock gate

Hi,
Thanks for your job for this macro on AHK
however, it seem to don't work anymore
I tested with a friend with a different team on ark . His pin code is 1532.
I had start the script with 1530 and put a 1540 for final code.
The script reached the pincode 1532 but nothing happened.. strange no ?
I added a bit of code in your script to really simulate a personne (just a delay between each key pressed)
but nothing work..
The tooltip show me '1532'. The log show me '1532'. The pincode seems to be correctly input but the windows close, and it test another one, etc etc...
Have you any idea ?
Sorry for my english by the way :s
++

HI @btronquo sorry for the late reply. This tool was created a good few years ago now when Ark was in the early stages/beta development.
The tool does not detect when it opens the door. When it reaches the correct code it will unlock the door, but it will continue to try more. This is why you need to keep a loose eye on it so you can record the code and stop the tool.
I haven't played Ark in a while, but from what i've heard there is a shock then you get the code wrong a few times and maybe an increased delay as well?

you have to use a 19s sleep between the attempts. at least that worked for me... kinda ruining this method

@andiwand is that because of Ark? Have they added a long wait time? Or is your PC/net on the slow side?

yeah, they fixed it. the client shows nothing about this, its just like
entering the wrong pin.
On Thu, Mar 30, 2017, 19:41 Metalstorm<EMAIL_ADDRESS>wrote:
@andiwand https://github.com/andiwand is that because of Ark? Have they
added a long wait time? Or is your PC/net on the slow side?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/m3talstorm/ArkPincodeCracker/issues/2#issuecomment-290486380,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdvKx_ybcylsOFUxfDam4ZFON_zKjZIks5rq-k-gaJpZM4MV_Rh
.

Omg i'm so late sorry
Hi @m3talstorm @andiwand
Yes 19s that's right ..
hard times ;)
By the way, good job ;)

HEY metalstorm
i know its too late.. but wana know that does this script in AHK get detected by battle eye ?... still am confused that it may get detected ..

@dheepak007 No idea, haven't played or kept up with Ark in a long long time. You can assume this no longer works.


[BUG] VM Template's default network model is empty

Describe the bug
https://user-images.githubusercontent.com/5169694/181250903-91007cea-54e5-4e05-8591-70090411bef4.mp4
To Reproduce
Steps to reproduce the behavior:

Install Harvester with any nodes
Create a Image for VM creation
Create VM vm1 via raw-image-base-template
Navigate to Networks tab, field Model should not be empty

Expected behavior
As it is marked with asterisk (required), it should not be empty, or the Create button should show errors to ask user to update it.
Environment:

Harvester ISO version: v1.0.3-rc1
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): Baremetal DL360 4 nodes

@lanfon72 I was also noticing a few issues with networking, though possibly unrelated, and it may have been due to something on my home lab switch.
I was briefly seeing:
{
  "type": "error",
  "links": {},
  "code": "InternalError",
  "message": "admission webhook \"mutator.harvesterhci.io\" denied the request: json: cannot unmarshal object into Go struct field Interface.spec.template.spec.domain.devices.interfaces.model of type string",
  "status": 500
}

But after removing the VM and just rebuilding, it was fine.
It's been hard to reproduce since.

When the model is not defined it will default to the value virtio , however, this will not block users from success creating VMs in the current UI, discussed this with the UI team and prefer to fix it in the v1.1.0.

@guangbochen this probably not UI bug, I checked those default templates, Model field is empty.
I think we probably need to update the template configuration in backend.
ref to #2592

@lanfon72 yes we can mitigate the issue by setting the template's network model value to virtio, and it would be good to fix another template issue https://github.com/harvester/harvester/issues/2592 at the same time.
But what I mean in the above comment is that the model field is optional, so when it is either empty or not specified, it will always default to use virtio driver when converting the YAML into the qemu-kvm process, so from the UI side, what we really need to fix is either make this field as optional or set it defaults to virtio even if the value is empty.

Verified this bug has been fixed.
Test Information

Environment: qemu/KVM 2 nodes
Harvester Version: v1.0-2ddbc24c-head
ui-source Option: Auto
ui-index URL: https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.0/index.html

Verify Steps:

Follow Steps to reproduce in https://github.com/harvester/harvester/issues/2583#issue-1319526281


fitHeight with breakpoints

Hi @roman-rr ,
does the fitHeight: true feature work with breakpoints?
I am trying to initialize the CupertinoPane with this configuration:
new CupertinoPane(HTMLElement, {
  draggableOver: true,
  backdrop: false,
  showDraggable: true,
  bottomClose: true,
  fastSwipeClose: true,
  buttonDestroy: false,
  fastSwipeSensivity: 0,
  fitHeight: true,
  breacks: {
    top: { enabled: true, bounce: false },
    middle: { enabled: true, bounce: false },
    bottom: { enabled: false },
  },
});

but I have 2 problems:

the pane does not change its size based on the content, not even when calling calcFitHeight()
with bottom: { enabled: false }, the bottomClose option does not seem to work

Is this a feature not implemented with breakpoints, or am I configuring something wrong?
Thanks!
Originally posted by @lorenzodianni in https://github.com/tech-systems/panes/issues/113#issuecomment-2198612751

Thank you @roman-rr , for the quick response!
Do you also know if bottomClose: true is supported with breakpoints or not?
Thanks!

@lorenzodianni Yes, bottomClose: true can be used with breakpoints to close pane when its reached bottom position.


A couple of suggestions

Allow the bot to have an ignore list that the user can edit so that when web crawling the bot doesn't go over already hacked ips.

A little trickier of a request but allow the bot to have if commands. for example the user can write out a statement like so... if ip>250 mbits of internet then install .vwarez virus. else install .vddos virus. or even have multiple if statements. (dont know how you would do this but definitely would be great!) So you can say if ip>250 mbits internet then install .warez. if ip <250 mbits and >1gb of HDD space install .vddos. And If ip <250 mbits and <1 gb of HDD space install heartbleed.vspam
Overall this would allow the user to be more specific on what type of virus he/she has on a victims server. This way it would minimize the need for manual selection on what servers get what viruses.
Though overall i LOVE the bot. Keep up the great work and i look forward to future updates!

I've just implemented your first suggestion.
Check the latest version out. :)

Thanks you!


MSI version isn't kept up-to-date

Teams has already released <IP_ADDRESS>67, however the latest MSI is only <IP_ADDRESS>63. It would be appreciated if the MSI was kept up-to-date and released alongside the standard auto-update. Cross posting as I'm not sure which article would be best to cover this issue.

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

ID: f6da28da-eb7b-d3ae-4c2f-8f87803b1830
Version Independent ID: 8c42d7a2-80c6-86dd-347a-ed6d8d909c41
Content: Teams updates - Microsoft Teams
Content Source: Teams/teams-client-update.md
Service: msteams
GitHub Login: @LolaJacobsen
Microsoft Alias: lolaj

Duplicate


Cik lookup improvements

[x] tests added / passed
[x] passes git diff upstream/master -u -- "*.py" | flake8 --diff
[x] added entry to docs/whatsnew latest version

@jackmoody11 after the function is renamed, this is ready to merge?

@jackmoody11 after the function is renamed, this is ready to merge?

@jackmoody11 after the function is renamed, this is ready to merge?

Does your point about CIKS property still stand? Or do you think it's ok to leave that?

@jackmoody11 after the function is renamed, this is ready to merge?

Does your point about CIKS property still stand? Or do you think it's ok to leave that?

@jackmoody11 leave it, but i suggested a small change to that function.

@jackmoody11 leave it, but i suggested a small change to that function.

Should be good to go @reteps. If you can confirm, we will merge this into master and release. :rocket:

Should be good to go @reteps. If you can confirm, we will merge this into master and release. :rocket:


Add parameter to mention number of relevant documents to retrieve

Description: Adding feature to mention the number of relevant documents to fetch while using AzureCognitiveSearchRetriever and function doc string
Issue: the issue # it fixes (if applicable),
Dependencies: any dependencies required for this change,
Tag maintainer: @UmerHA,
Twitter handle: @reesh0908

@reeshabh90 Congrats on your PR! Sorry, if I was too quick, would have loved if your PR got merged.
I've commented on your code, hope it's helpful! Looking forward to any next PRs you do.
For the maintainers: This is duplicate of https://github.com/hwchase17/langchain/pull/7690

appreciate the pr @reeshabh90! closing since seems to be duplicate of #7690


operator aerospike-kubernetes-operator-rhmp (2.1.0)

Signed-off-by: Ashish Shinde<EMAIL_ADDRESS>

/retest


FileNotFoundError, PermissionError, Segmentation Fault error on running the raiden-installer binary

Steps By which i get the error.

git clone git@github.com:raiden-network/raiden-installer.git
pip install -r requirements-dev.txt
python setup.py install
Run make binary

(raiden_env) [krishna@krishna-pc raiden-installer]$ make binary
pyinstaller raideninstaller/__main__.py --clean --onefile --name raiden-installer-LATEST
make: pyinstaller: Command not found
make: *** [Makefile:18: binary] Error 127

pip install pyinstaller
Running make binary again

(raiden_env) [krishna@krishna-pc raiden-installer]$ make binary
pyinstaller raideninstaller/__main__.py --clean --onefile --name raiden-installer-LATEST
33 INFO: PyInstaller: 3.4
33 INFO: Python: 3.7.2
33 INFO: Platform: Linux-5.0.1-arch1-1-ARCH-x86_64-with-arch
34 INFO: wrote /home/krishna/raidenforked/raiden-installer/raiden-installer-LATEST.spec
35 INFO: UPX is not available.
35 INFO: Removing temporary files and cleaning cache in /home/krishna/.cache/pyinstaller
36 INFO: Extending PYTHONPATH with paths
['/home/krishna/raidenforked/raiden-installer',
 '/home/krishna/raidenforked/raiden-installer']
36 INFO: checking Analysis
36 INFO: Building Analysis because Analysis-00.toc is non existent
36 INFO: Initializing module dependency graph...
38 INFO: Initializing module graph hooks...
38 INFO: Analyzing base_library.zip ...
1267 INFO: running Analysis Analysis-00.toc
1283 INFO: Caching module hooks...
1285 INFO: Analyzing /home/krishna/raidenforked/raiden-installer/raideninstaller/__main__.py
1668 INFO: Processing pre-safe import module hook   urllib3.packages.six.moves
3651 INFO: Processing pre-safe import module hook   six.moves
4209 INFO: Loading module hooks...
4209 INFO: Loading module hook "hook-cryptography.py"...
4326 INFO: Loading module hook "hook-certifi.py"...
4328 INFO: Loading module hook "hook-xml.py"...
4385 INFO: Loading module hook "hook-encodings.py"...
4427 INFO: Looking for ctypes DLLs
4433 INFO: Analyzing run-time hooks ...
4438 INFO: Looking for dynamic libraries
5048 INFO: Looking for eggs
5048 INFO: Using Python library /usr/lib/libpython3.7m.so.1.0
5059 INFO: Warnings written to /home/krishna/raidenforked/raiden-installer/build/raiden-installer-LATEST/warn-raiden-installer-LATEST.txt
5100 INFO: Graph cross-reference written to /home/krishna/raidenforked/raiden-installer/build/raiden-installer-LATEST/xref-raiden-installer-LATEST.html
5112 INFO: checking PYZ
5112 INFO: Building PYZ because PYZ-00.toc is non existent
5112 INFO: Building PYZ (ZlibArchive) /home/krishna/raidenforked/raiden-installer/build/raiden-installer-LATEST/PYZ-00.pyz
5469 INFO: Building PYZ (ZlibArchive) /home/krishna/raidenforked/raiden-installer/build/raiden-installer-LATEST/PYZ-00.pyz completed successfully.
5474 INFO: checking PKG
5474 INFO: Building PKG because PKG-00.toc is non existent
5474 INFO: Building PKG (CArchive) PKG-00.pkg
8748 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
8750 INFO: Bootloader /home/krishna/Envs/raiden_env/lib/python3.7/site-packages/PyInstaller/bootloader/Linux-64bit/run
8750 INFO: checking EXE
8750 INFO: Building EXE because EXE-00.toc is non existent
8750 INFO: Building EXE from EXE-00.toc
8750 INFO: Appending archive to ELF section in EXE /home/krishna/raidenforked/raiden-installer/dist/raiden-installer-LATEST
8786 INFO: Building EXE from EXE-00.toc completed successfully.

Navigating to dist folder and running the generated binary

(raiden_env) [krishna@krishna-pc raiden-installer]$ cd dist/
(raiden_env) [krishna@krishna-pc dist]$ ls
raideninstaller-0.0.1-py3.7.egg  raiden-installer-LATEST
(raiden_env) [krishna@krishna-pc dist]$ ./raiden-installer-LATEST
Choose a installation directory: [/opt/raiden]~/raideninstallertest

Input accepted. Continuing..

Step 1: Raiden Binary Setup

Traceback (most recent call last):
  File "raideninstaller/__main__.py", line 32, in <module>
  File "raideninstaller/steps/raiden.py", line 20, in __init__
  File "pathlib.py", line 1241, in mkdir
FileNotFoundError: [Errno 2] No such file or directory: '/opt/raiden/download'
[8099] Failed to execute script __main__
(raiden_env) [krishna@krishna-pc dist]$ ls /opt/raiden
ls: cannot access '/opt/raiden': No such file or directory
(raiden_env) [krishna@krishna-pc dist]$ ./raiden-installer-LATEST
Choose a installation directory: [/opt/raiden]

Input accepted. Continuing..
Traceback (most recent call last):
  File "raideninstaller/__main__.py", line 23, in <module>
  File "pathlib.py", line 1241, in mkdir
PermissionError: [Errno 13] Permission denied: '/opt/raiden'
[8333] Failed to execute script __main__

Actually above are the errors that i got on my second time installing it. The first time I tried i got these errors.

Fixed in 7bd983b07b3c72913e0a016dd45fce85fab3fc4e - giving a custom install dir should now correctly use that dir.


More Wikidata features

Based on https://www.wikidata.org/w/index.php?oldid=712781060

Not a clear improvement from the stats, but still couldn't be worse.  I wonder if we're targeting a very rare case.

One big reason is that these are brand new patterns that are not reflected in our old dataset. Getting the new campaign data will help utilizing these features.


Org outline background doesn't look so good

Here the doom theme sets a background for outline-1 in all the themes. Specifically in org mode it looks somewhat like a glitch. If the title has an ellipsis then the background stretches until the ellipsis, and if does not, it stretches until the end of the line. Also, the background doesn't effect the priority.
I think that this background should be removed.

The outline backgrounds (and :height's) were removed in fd12839, so I'll consider this resolved.

The outline backgrounds (and :height's) were removed in fd12839, so I'll consider this resolved.

The height or weight should not be removed, since themes like doom-dracula do great job in displaying them. Without these configs, the outline is less distinguishable.

@chuxubank :weight was not removed -- org headings are still bold -- only their :height's and :background's were. I removed :weight from some of them because they're inheriting from another face that was already bold (so it was redundant).
If you'd like to bring :height's back, add this to your config:
(custom-set-faces
 `(org-level-1 ((t (:inherit outline-1 :height 1.2)))))

@hlissner Get it.
Nice solution, thanks a lot!


python: Reformat scripts, tools with Black

As @timabbott requested.

Closing because this experiment served its purpose. The main PR for Black is #15662.


Style/HashExcept wrong suggestion with array variables

When using reject with an array variable to exclude keys from hash, the suggestion is wrong.

Expected behavior
some_var = [:foo, :baz]
{foo: 1, bar: 2, baz: 3}.reject { |k, _v| k.include?(some_var) }

Expected message:
Use `except(*some_var)` instead. (convention:Style/HashExcept)

Actual behavior
Use `except(some_var)` instead. (convention:Style/HashExcept)

Steps to reproduce the problem
some_var = [:foo, :baz]
{foo: 1, bar: 2, baz: 3}.reject { |k, _v| k.include?(some_var) }
# {bar: 2}

{foo: 1, bar: 2, baz: 3}.except(some_var)
# {foo: 1, bar: 2, baz: 3}

{foo: 1, bar: 2, baz: 3}.except(*some_var)
# {bar: 2}

RuboCop version
1.31.0
$ bundle exec rubocop -V
1.31.0 (using Parser <IP_ADDRESS>, rubocop-ast 1.18.0, running on ruby 3.1.0 x86_64-darwin20)
  - rubocop-graphql 0.14.3
  - rubocop-performance 1.14.2
  - rubocop-rails 2.15.0
  - rubocop-rake 0.6.0
  - rubocop-rspec 2.11.1

related PR #10699

@koic Also found that it triggers a false positive when using reject on an Array
e.g.
some_array = [:foo, :bar, :baz]
some_var = [:foo, :baz]
some_array.reject do |k, _v|
  some_var.include?(k)
end

will say to use except although that method doesn't exist for arrays


ToothPickRule not reseting as expected

ToothPickRule does not reset the scopes after every test properly.

PR https://github.com/stephanenicolas/toothpick/pull/171

PR merged. Closing


building an xcode project throws this error

using the latest kha git version, this is an error thrown whilst trying to build an ios application to test. simple example. just rendering a square for testing

Fixed by KTXSoftware/Kore#64.


chore(release): add automatic version

Testing this stuff locally is a pain :D
Sorry for the accidental opening of this pr :)


Call provideDiagnosisKeys with retry in case of exception (workaround for #737)

Checklist

[x] Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
[x] If this PR comes from a fork, please Allow edits from maintainers
[x] Set a speaking title. Format: {task_name} (closes #{issue_number}). For example: Use logger (closes # 41)
[x] Link your Pull Request to an issue - Pull Requests that are not linked to an issue with you as an assignee will be closed, except for minor fixes for typos or grammar mistakes in documentation or code comments.
[x] Create Work In Progress [WIP] pull requests only if you need clarification or an explicit review before you can continue your work item.
[x] Make sure that your PR is not introducing unnecessary reformatting (e.g., introduced by on-save hooks in your IDE)
[x] Make sure that your PR does not contain changes in text files, therefore the PR must not contain changes in values/strings/* and / or assets/* (see issue #332 for further information)
[x] Make sure that your PR does not contain compiled sources (already set by the default .gitignore) and / or binary files

Description

provideDiagnosisKeys will fail occasionally, see #737 . But it seems to be fine to just retry couple of times and eventually it will succeed. Just an idea for a workaround until better solution is in place.
provideDiagnosisKeys(keys=[/data/local/tmp/key-export/81a2d7a0-6d15-31eb-b89b-8b648347aaaa.zip])
provideDiagnosisKeys(keys=[/data/local/tmp/key-export/0adc8815-f8a0-39cc-a022-f366c51819f9.zip])
provideDiagnosisKeys(keys=[/data/local/tmp/key-export/1c3216d6-c5c5-3727-86f5-7ce6bcd16060.zip])
on success listener: null
on success listener: null
on failure listener: com.google.android.gms.common.api.ApiException: 10: Unable to validate key file signature: Pipe is closed
retrying provideDiagnosisKeys(keys=[/data/local/tmp/key-export/81a2d7a0-6d15-31eb-b89b-8b648347aaaa.zip])
on failure listener: com.google.android.gms.common.api.ApiException: 10: Unable to validate key file signature: Pipe is closed
retrying provideDiagnosisKeys(keys=[/data/local/tmp/key-export/81a2d7a0-6d15-31eb-b89b-8b648347aaaa.zip])
on success listener: null

Did you check what happens if you change the Directory of the Cached Files away from cacheDir? This would be interesting to see, so that we maybe do not have to go this far.

Yes, I copied Diagnosis Keys to /data/local/tmp/key-export, still the same issue

We will not go forward with a solution that could result in the API Rate Limiting.


Modify checkov checks

We're running into with checkov check:
Check: CKV2_GHA_1: "Ensure top-level permissions are not set to write-all"

We need to change something, probably permissions in the workflow inside repo.

Issue is related to the permissions set in the check_and_co.yaml file in the repository using the workflows.
The default permissions in write-all which is what checkov is warning against.
Solve by setting the permissions in the workflow to:
permissions:
  contents: write
  pull-requests: write

In #11  I have updated the snippet in the readme to reflect this, and removed unnecessary permissions in the megaliter workflow.

sounds great! tnx! :)


use UseClass for providers

Coverage increased (+0.02%) to 98.701% when pulling 797ad22f17cad31d59b88fdbc1452341975b7504 on fix-angularbug into 2fbe9737875609dea4a6fe556b5467b7889f0da6 on master.


Deselected dark color looks like selected light counterpart

The markers help, but otherwise deselected dark color looks like selected light color

To me this is a colormap issue mostly due to the choice of tab20 (having paired colors), see https://matplotlib.org/stable/tutorials/colors/colormaps.html.
Using top10 here:
https://github.com/benchopt/benchOpt/blob/090bf974b5d2357e8d83771ec2d950c79ebb1ff1/benchopt/plotting/plot_objective_curve.py#L7
could reduce this issue.


[Fixes #101] Cookie path is always / in IIS

@rynowak

ping

:shipit: - please make an announcement for this - send me a draft to review before you post it

ad90db343c437283d809dab12f89b51116a25151


Runs on linux w/ wine

This isn't an actual issue, but I thought it would be useful for the people wanting to run on linux.
This runs successfully on Ubuntu x86 64bit gnome desktop using steam proton 6.3-5
I don't know if graphics drivers need to be specific (probably not), but I'm using Nvidia server driver 460.
Configuration:

Requires steam app for linux installed
Requires adding Proton 6.3-5 : Navigate to steam Library in the app, search for Proton 6.3-5 and install it / wait for download to finish
Download latest SWBF unmunge binaries, extract them to some folder (mine is in ~/Downloads/swbf-unmunge)
Create a .desktop file so you can import into steam later:

I named mine swbf-unmunge.desktop, heres the content:
[Desktop Entry]
Name=swbf-unmunge
Comment=unmunge
Exec=/home/jon/Downloads/swbf-unmunge/swbf-unmunge.exe -file /home/jon/Downloads/swbf-unmunge/file.lvl -version swbf -outversion swbf -imgfmt png -platform pc -verbose -mode extract
Icon=steam
Terminal=true
Type=Application

You need to change the line Exec= to the location of your installed swbf-unmunge.exe path
After the exe comes the arguments for the file you want to run it on. You'll need to follow the swbf-unmunge readme for the proper arguments, as well as point to the proper file (I just rename whatever LVL like rep.lvl to file.lvl for convenience).
Add the swbf-unmunge.desktop file to steam:

Go to steam library
Bottom left corner: Add Game
"Add non-steam game"
"Browse..." and find your swbf-unmunge.desktop file
"Add selected programs"
Click on the newly added app in your library
Open manager by clicking on gear icon on far right
Open "Properties"
Click on Compatibility
Check "Force use of specific steam play compat tool"
Select the proton version you installed earlier

Now you can start the app and it will execute the command line options you added.
If you want to edit the command line options you can now set them in the app's properties in the shortcut tab, where it is labelled as Launch options.

Just an update that worked for me recently on Ubuntu 20.04 and wine 8.0.2 install via apt-get
wine ./swbf-unmunge.exe -file ./imp.lvl -version swbf -outversion swbf -imgfmt png -platform pc -verbose -mode extract
worked just fine, no proton or dependency installations, or wine prefix pre-configs.

I am curious ...
Can't you build swbf-unmunge natively on Linux?

Assuming https://github.com/PrismaticFlower/swbf-unmunge/issues/22 is still relevant, not yet


Add site page sidebar link to Red Hat Marketplace

Red Hat Marketplace is powered by IBM; Red Hat + IBM team asking for this sidebar backlink.
Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

New Submissions

[ ] Does your operator have nested directory structure?
[ ] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
[ ] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Is your submission signed?

Updates to existing Operators

[ ] Is your new CSV pointing to the previous version with the replaces property?
[ ] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[ ] Have you tested an update to your Operator when deployed via OLM?
[ ] Is your submission signed?

Your submission should not

[ ] Modify more than one operator
[ ] Modify an Operator you don't own
[ ] Rename an operator - please remove and add with a different name instead
[ ] Submit operators to both upstream-community-operators and community-operators at once
[ ] Modify any files outside the above mentioned folders
[ ] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[ ] Description about the managed Application and where to find more information
[ ] Features and capabilities of your Operator and how to use it
[ ] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[ ] Human readable name and 1-liner description about your Operator
[ ] Valid category name1
[ ] One of the pre-defined capability levels2
[ ] Links to the maintainer, source code and documentation
[ ] Example templates for all Custom Resource Definitions intended to be used
[ ] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

@joeschram Can you signoff this commit? More info is here

@joeschram can you please signoff this? More info here

@joeschram could you please signoff?

@joeschram could you please signoff?

@joeschram Can you please rebase to latest master? Thanks

@joeschram Closing due to no activity. Reopen when needed.


fix: bug with contract type name collision when using sub-directory namespacing

What I did

fixes: #5
How I did it
Use namespace in contract type name.
E.g. if your project looks like this:
contracts:
  Foo.cairo
  accounts:
    Bar.cairo
  tests:
    Bar.cairo

You will get the following contract type names:

project.Foo
project.accounts_Bar
project.tests_Bar

Otherwise, you would get an error Contract collision across names and that is because Bar.cairo is a file in there twice.
This is actually a really common design pattern in Cairo because of their namespacing capabilities. Noticeably, in the OZ Cairo contracts project: https://github.com/OpenZeppelin/cairo-contracts, you will see many files named library.cairo in different namespaces. This is totally a valid Cairo project structure.
How to verify it
You can now compile this repo: https://github.com/OpenZeppelin/cairo-contracts
NOTE: First, you have to create an ape-config.yaml that looks like this:
contracts_folder: src

This is step 1 to getting #4 to work properly
Checklist

[ ] Passes all linting checks (pre-commit and CI jobs)
[ ] New test cases have been added and are passing
[ ] Documentation has been updated
[ ] PR title follows Conventional Commit standard (will be automatically included in the changelog)

Would it make sense to also reicate the namespacing? E.g. project.accounts.Bar?

I thought about that. That would be a little more work. This PR makes it so you can do project.accounts_Bar.
Let me see if we can

See https://github.com/ApeWorX/ape/pull/698 for supporting . access. It will require the next ape release!
However, good news is that users can call the project.get_contract() method and pass in contract names like "accounts.library" and get the ContractContainer
So this PR is not dependency necessarily on the next ape release, but need to know if we like the approach in the inked Ape PR before moving forward.


Handle the case of no avatar

Closes https://github.com/KittyCAD/modeling-app/issues/2939

Only question I have is why all the test snapshots now show the kitten avatar? Probably not a big deal I'm just not grokking the test-only kitten avatar logic

Only question I have is why all the test snapshots now show the kitten avatar? Probably not a big deal I'm just not grokking the test-only kitten avatar logic

Huh that should've been the case before.

Fixing this up now