Mention fix for scala 2.13.7

Looks like all our fastparse definitions won't compile any more with scala 2.13.7
 identifier expected but '_' found.
[error]   private def wholeNumber[_: P]: P[Int] = P(CharIn("0-9").rep(1).!.map(_.toInt))

Our compiler flags:
      "-Xsource:3",
      "--target:11",
      "-feature",
      "-unchecked",
      "-deprecation",
      "-encoding",
      "UTF-8", // yes, this is 2 args
      "-language:existentials",
      "-language:higherKinds",
      "-language:implicitConversions",
      "-unchecked",
      "-Xlint:-unused,_"

something is mentioned here: https://github.com/scala/scala/pull/9712
But maybe the docs here could be updated showing how to fix these?

@SethTisue IIRC we only made compilations fail when using eta expansion? Or did we make the use of underscore here a compile failure as well?

Under -Xsource:3 it's a failure, as per scala/scala#9712

Replace the _ with any old identifier.  The documentation should change, though.

The documentation has changed to $


Add 'Snapshot' demo

This demo demonstrates how to override the snapshot virtual function to draw a custom widget using snapshots (and render nodes implicitly). No Cairo render nodes are used, so this allows to draw on the GPU in contrast to using a drawing area. See https://blog.gtk.org/2020/04/24/custom-widgets-in-gtk-4-drawing/ for background info on how that works.
I have only written the Python implementation so far. I'm marking the PR as draft therefore. Once we have a definite version I will gladly port it to Javascript.
Edit: This demo uses Gsk.Path (for drawing the knight) which is only available in Gsk >= 4.14, so it currently only works on Workbench's main branch, not on the stable release.

This PR is ready for review. I have added a Javascript implementation as well.


Logistical Sorter OC/CC Support

If would be really useful if we could configure and reconfigure Logistical Sorter with OpenComputers or ComputerCraft. Currently it's only a configure and do what you configured before, but with computer support, we could make dynamic systems and much more smart sorting alternatives.

Done- you can now add/remove OreDict and ItemStack filters, as well as set default color, auto-eject value, and round-robin value.


Add persistent lazy segtree

Todo:

[x] Add non abridged version
[x] Add tests
[x] Generate notebook with new code
[x] Appease linters
[x] Make the new code fit in 62 columns

huh, I thought I've already added this in

the one we already have doesn't support range updates


Roll engine 79a988f5da46..3796d989183d (1 commits)

https://github.com/flutter/engine/compare/79a988f5da46...3796d989183d
git log 79a988f5da4665980c6cc6916403e76b53f1e3e0..3796d989183d588b17a110d8aaf74906c4e1c8f0 --no-merges --oneline
3796d9891 [ui] Add null check in FontWeight.lerp (flutter/engine#8274)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop
the roller if necessary.

Auto-roller completed checks. About to merge.


Passing on object when switching routes

Hi
I have a scenario where I have a login page and I want to switch to another path after I have logged in, but at the same time passing on an object to that next page after I've switched routes. What is the best way to accomplish this?
thanks

@aoshi321 is there some reason that you can store this value in redux first and then pull it on the next page from the store?
An alternative solution could be to use the routerState you can pass to push to store it inside the htmlHistory. See https://github.com/rackt/history/blob/master/docs/Glossary.md#locationstate for info on router state

I have data returned from the server during the login process but as I now want to switch routes Im not sure how I would pass that data onto to the redux state during that process. I looked a this routeState solution before but was wondering if there was a alternative way to do it.

You can store extra data in your location.state when navigating.


Json Body Sanitizing

The change should allow sanitizing the JSON Body requests for the apache module by using native logging (as this was requested earlier and is used locally here).

Hi @florian-eichelberger,
Thank you for the patch! That is indeed a good feature to have.

Please be so kind and tell me how to fix the Travis CI build error :)

@florian-eichelberger we have two different continuous integration in place:
1 - Buildbots
2 - Travis
The Buildbots are meant to run for v2 builds while the Travis is only used by v3. That is why it is failing for your branch. The Buildbots are testing your code now:
http://www.modsecurity.org/developers/buildbot/waterfall

Hi @florian-eichelberger,
Buildbots went ok ;) I am moving your patch to the branch:  v2/exp/json_sanitizer. It will be on hold till out next release.


Compatibility with Flutter 2.8

There are a lot of problems extending the classes this package has with the latest version of Flutter. You can test it by upgrading your own project.

Same here

same here
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-5.1.3/lib/src/gesture_detector/drag.dart:109:55: Error: Too few positional
    arguments: 2 required, 1 given.
        return _globalDistanceMoved.abs() > computeHitSlop(pointerDeviceKind);
                                                          ^

Same here

https://github.com/fluttercandies/extended_image/issues/400


nine-patches view Bug

I have a bug where I try to generate nine-patches images for an image with the followin dimensions 1384x349 and the UI moves and place the whole image in the browser but I cant get to see no more the download widget button, it seems the image stretchs and it move the whole view
Photo
https://imgur.com/a/wGHjJEB

I had to shrink the viewport of the browser to fit the whole image

Duping the request to #200


adding badges

[Current coverage][cc-pull] is 80.67%

Merging [#232][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master       #232   diff @@
==========================================
  Files            28         28
  Lines          3819       3819
  Methods           0          0
  Messages          0          0
  Branches        764        764
==========================================
  Hits           3081       3081
  Misses          546        546
  Partials        192        192

Powered by Codecov. Last updated by [51b115c...c51539b][cc-compare]
[cc-base-branch]: https://codecov.io/gh/Mindwerks/worldengine/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/Mindwerks/worldengine/compare/51b115c444c4d6834f32495c097b1c214a2cd3a6...c51539b848e18d1e4b7b5bd8659ffe318cdf0444?src=pr
[cc-pull]: https://codecov.io/gh/Mindwerks/worldengine/pull/232?src=pr

Coverage remained the same at 85.703% when pulling c51539b848e18d1e4b7b5bd8659ffe318cdf0444 on badges! into 51b115c444c4d6834f32495c097b1c214a2cd3a6 on master.

So much win here! :)


Printing Limited to 1 Chapter

Hi,
VitalSource will only let you print within the pages in that chapter. Could you adapt the "Chapter-page" code of VitalSourcePrinter to still prompt for the number of chapters and number of pages in each chapter, but then utilize the normal page format? Then, as you are printing, when you get to the last page in a particular chapter, prompt the program to go to the next chapter using "Ctrl +PageDn" ?
That would be awesome! Thanks.

Hi TallCoderDude, I just created a script for this based off what you told me called VitalSourcePrinter_ChapPageV2.py
Since I don't have that style of book, I can't see it for myself. Test and let me know if it works.

My initial comment wasn't very clear, sorry. VitalSource books that only allow printing of one chapter at a time are in the regular page format (e.g. i,ii,iii,iv,v,...1,2,3,4,5...) not the "Chapter-Page" format (e.g. 1-1, 1-2, 1-3, ...) So I wasn't able to verify if the "CTRL +PageDn" functionality worked. But, I looked at your code and it looks like it would do the right thing, just the format needs to be changed.
I would help out with the coding, but 1.) I'm a novice at python and 2.) I am crazy busy right now. But, dude thanks soooo much for putting these programs together!

No problem, And ah, it looks like a 4th script will need to be created, for pages of the normal style with the Ctrl + PageDn format. I'm busy as well right now, but feel free to contribute if you want to/have time. I'll get on this next week either way.

Finally got around to making the ctrl+pagedown requirement for standard pages. Let me know if it works.

First off, thanks again. One issue that I noticed: The data validation that you were trying to do in Line 120 has some issues. It appears that the variable "printList" was not defined before it was called.
Ok, it didn't really work correctly, but the format is there. The program should prompt the user in the following order for:
1.)Number of chapters in the book
2.)Starting page number. (The very first page to be printed in the entire book.)
3.)End page number. (The very last page to be printed in the entire book.)
4.)The page number of the last page in every chapter that was requested to be printed.
5.)Location to save the generated PDF's.
And so far the program's got that, so sweet. But there was an issue. After inputing values, the program starts printing but skips over the "Ebook.pdf" and goes straight to "File2.pdf". But then it gets stuck because there isn't an "Ebook.pdf" in the destination folder.
On your end, even though you don't have a book that has the PageDown requirement, any book in the normal page number format (e.g. 1, 2, 3, 4, etc.) that also is a chapter book could be used to troubleshoot. The program would just get all the same data as written above and when it got to the end of a chapter it would "PageDown" and then loop again through the next chapter.
Toss in as many annotations as you want, lol I kinda need them to decipher the Python, and it helps me learn.
Thanks again!!!

To keep the coding clean you might define a function called "PrintChapter" that could be used in a "for" loop for each chapter in the book. Such as:
def PrintChapter ()

for i in range (1, NumberOfChapters)
PrintChapter(i)
<Insert code for pressing "PageDown">
Just a suggestion, do what you feel works best.

Great feedback. In regards to modularizing the script by making a PrintChapter function, that's definitely something that can be done as there are repeated code segments. And you're right about me still being able to test even without having that style of book, so that's what I did.
I fixed the printList bug and another bug I caught. printList is a variable that I used in another script that I copy/pasted by mistake. printList was supposed to be named NumberList, the original list variable for standard pages. It contains all page numbers between the first and the last page inclusive.
The other bug occurred because I forgot to include the countdown timer, so there was no delay, and I believed the the initial print of the ebook.pdf was skipped out on.
So I fixed the two bugs and ran the script, and it ran to completion. The page+down of course didn't do anything. Try the new script and see if it works.


reduce download and storage size

reduce download and storage size of repositories/versions by
limiting the history to 1 but keeping all references (--no-single-branch).

I didn't test it directly (compiling/using) but this merge request is a start point. If you guys think this makes sense and you don't have any objections, then I can clean up and improve the pull request.

@savar Thank you for the PR, but there are some open issues in regards to this behavior on the Flutter repo.
https://github.com/flutter/flutter/issues/18532

@savar will go ahead and close this issue based on my comments above. Thank you again for the PR though

@savar Thank you for the PR, but there are some open issues in regards to this behavior on the Flutter repo. flutter/flutter#18532

Thanks, I was not aware of that but it explains well why it wasn't done yet. And sorry for the late reply!


Fix bug introduced in ConvertRawHash (Header blk) instance

I mistakenly introduced an infinite loop bug in the ConvertRawHash (Header blk) instance implementation in #1619 :facepalm:.
Closes #1642.

bors r+

bors r+

bors r+


Dependency issue for Node8

require-dir relies upon extensions.hasOwnProperty(), which was deprecated in Node 0.10.x and has been dropped entirely from Node 8.

Should be fixed in 4.2.0!


[Question] Clarification on updates and cache

I just started trying out the Java wrapper over tdlib, and after checking out the various Update types on the TL schema I got confused.
The Update types shows for example
updateNewMessage
updateNewChannelMessage
updateNewScheduledMessage

So, is it correct that tdlib merges those events over a single UpdateNewMessage object?

I'm not a C++ expert, but after looking at the sources, it seems that methods such as get_user cache the result from network. Is it correct that subsequent requests for the same user_id will not go over the network again? How is this established?

The mentioned updates exist in the Telegram API. TDLib provides high level interface independent of chat type and have compelely different API. List of updates provided by TDLib can be found there: https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1_update.html.
getUser supposed to be never needed by ordinary applications using TDLib. See https://core.telegram.org/tdlib/getting-started for the explanation.

Thanks @levlam
So, if I understood correctly, the relevant paragraph would be

updateUser — This update is received whenever a new user has been discovered or some data about a known user has changed. This update is guaranteed to come before the user identifier is returned to the Application. So, whenever an Application receives a user_id, it never needs to use the getUser request to receive the user object. Instead it should maintain a cache of users received through this update and take all the necessary data about users from this cache.

This means if an UpdateNewMessage is received and I need info about the sender User via its Message#senderUserId, the User object wuould have been already cached by TDLib thanks to the UpdateUser event.
Am I right?

The edit is correct. You need to cache it whenever updateUser is received and take the User object from the cache.

@levlam thanks for the answers!


Fix Unusual Names

Examples:
(All names given are "firstname, lastname")
"Van Der Bob, Joe" should be<EMAIL_ADDRESS>"Bob Frank, Louis" should be<EMAIL_ADDRESS>"Foo, Andrew Bar" should be<EMAIL_ADDRESS>

This causes student view to fail for students of form Joe Van Der Bob. Student view should probably use an email address, not a human name.


Build failure for aarch64

When tried to build coriander on my aarch64 board, I ran into some error below, and this conditional branch issue seems common for some other projects as well on aarch64.
[  2%] Built target clew
[  2%] Building CXX object CMakeFiles/clblast.dir/src/CLBlast/src/database/database.cpp.o
/tmp/ccitmCEV.s: Assembler messages:
/tmp/ccitmCEV.s:22989: Error: conditional branch out of range
/tmp/ccitmCEV.s:22996: Error: conditional branch out of range
CMakeFiles/clblast.dir/build.make:54: recipe for target 'CMakeFiles/clblast.dir/src/CLBlast/src/database/database.cpp.o' failed
make[2]: *** [CMakeFiles/clblast.dir/src/CLBlast/src/database/database.cpp.o] Error 1
CMakeFiles/Makefile2:1980: recipe for target 'CMakeFiles/clblast.dir/all' failed
make[1]: *** [CMakeFiles/clblast.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

By the way, I'm using gcc 4.9.2.

Never mind, the problem disappeared after I upgraded gcc/g++ to 6.3.0.

Good info, thanks! :-)


Feature/autovalue apiumbrella host

Closes #603
I added new object to settings.json.
 "public": {
    "apiUmbrella": {
      "host": "https://umbrella.apinf.io/"
    }
  }

This is the only way to access Meteor.settings on both client and server.

Lets close this PR. It is unnecessary now, since the Add API Wizard feature uses a server method to retrieve the private API Umbrella Host setting. Is it OK to close this PR Illya?


Have the ability to fall through to the next best match if the upstream cluster match for a route is unhealthy

This is linked to issue #8730
If a route matches an upstream cluster that is unhealthy, can we have an option in route.RouteAction to trigger rerouting to the next closest match?
Eg.
/a/b matches down_cluster_1
/c matcher some_cluster_3
/a matches up_cluster_2
/ matches home_page
A /a/b request should be sent to up_cluster_2 if down_cluster_1 is unhealthy.
We want this option to be a part of route.RouteAction
Has someone already worked on something like this?
Is there some feature available today that we can use?
What would be the best way to implement?

@lizan Here is something else that is related.
https://github.com/envoyproxy/envoy/issues/7017
The Noop feature described above will allow for a route to be a No-operation route. When such a route is matched to Noop, it will get rerouted to next closest match.
This question extends the concept a little. In this case, I want to reroute ONLY if the upstream cluster is unhealthy. Upon rerouting the request will match the next best routematch.

as I commented in the other issue, I guess this can be a retry extension, @snowp can weigh in on that.

I think this one would be a bit harder to do as a retry extension, but also could potentially be done as an HTTP filter that runs before the router (in general the router is super complex and I would like to try to prevent it from getting even more complex). One way this could potentially be done is a allow a route to be selected w/ optional hints, such as "not this cluster" or something like that. Needs more thinking.

I think there is an issue with how route resolution works in Envoy for this to work perfectly: route resolution happens immediately as the HCM runs, so if cluster health is accounted for in route resolution, a route that targets cluster A might be selected. Then, a slow filter is applied (think ext_authz), delaying the actual routing. Now there is no longer any guarantee that cluster A is healthy anymore, so routing to it might still fail.
Essentially, the fact that route selection is done before the filters run makes this hard to do route fall-through based on host health.  Updating the route entry at routing time is also not great, as prior filters might have made use of the per filter config specified for the previous route.
I suspect that the idea of having a "fallback cluster" can likely be better expressed with a cluster that handles the fallback without involving the router. Is there a specific reason why a route based fallback would be helpful? Or is this just a suggestion for how a fall-back cluster would be configured?

@snowp We are just trying to solve the case where a cluster is down before the routing is done.
//I suspect that the idea of having a "fallback cluster" can likely be better expressed with a cluster that handles the fallback without involving the router. //

How can we use this idea to go to the next best matching route?

I am working on PR for noop. Once that pr is merged. For noop i am checking if route has noop action specified then pick next route. @shivanshu21 can put one more check over there to check for the unhealthy cluster.
If this sounds good, then i can increase priority for working on PR.
https://github.com/envoyproxy/envoy/pull/8611

I think we are still unlcear on how NOP is going to land, so let's see how that turns out first and then we can potentially revisit this. We need to be careful about adding too much complexity in the wrong places and will need to step back and figure out the right way for you to solve your use case.

@shivanshu21 What is the goal to provide fall through here? What benefit does
match /foo
route to A
fallthrough: true

match /f
route to B

have over
match /foo
route to A, fail over to B

match /f
route to B

?
My point is that if the intent here is to just provide a way to specify this kind of failover in the route table, it can likely be better solved by incorporating the fall through into the load balancer.
Would love to hear it if you have any use cases that require this to be a route level concept.


Update allow-syncing-only-on-specific-domains.md

https://github.com/MicrosoftDocs/OfficeDocs-SharePoint/issues/1442
Added note

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@kaarins PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Installing 4.1 on Laravel 8

Bug report
What I did
Ran
composer require backpack/crud:"4.1.*
to install on Laravel 8
What I expected to happen
It to install
What happened
Received the following error.
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - backpack/crud[4.1.22, ..., 4.1.x-dev] require doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0-BETA2, ..., 2.12.x-dev] but it conflicts with your root composer.json require (^3.0).
    - backpack/crud[4.1.0, ..., 4.1.21] require laravel/framework ^7.0|^6.0 -> found laravel/framework[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but it conflicts with your root composer.json require (^8.12).
    - Root composer.json requires backpack/crud 4.1.* -> satisfiable by backpack/crud[4.1.0, ..., 4.1.x-dev].

What I've already tried to fix it
I have tried to google for a solution but not found one.
Backpack, Laravel, PHP, DB version
Laravel 8.17
PHP 7.3.24

Hmm... that's odd. I just installed Backpack on a fresh Laravel project and it worked fine.
@MikePageDev what does your composer.json look like?

I have fixed this by removing doctrine/dbal and installing

I experienced similar conflict problem when trying to install doctrine/dbal to my Laravel 8 project in which backpack is already installed. Any idea why would that happen? @tabacitu

I also attach a copy of my composer.json file. Thanks in advance!
composer.txt

I have same problem, quick fix for me - remove composer.lock file 😁

Deleting composer.lock solved the first problem, however problem 2 still persists.

Hi guys,
Indeed, Laravel 8 supports PHP 8, but it also supports both DBAL v2.5+ and DBAL v3.x. Backpack does support PHP 8 in the latest version, but it does not yet support DBAL v3 (see https://github.com/Laravel-Backpack/CRUD/pull/3517). We do plan to add DBAL v3 support but it could take a few days - and depending on what we find it's possible that it'll be a breaking change.
If you don't have a reason to explicitly ask for DBAL v3 (you don't use DBAL v3 features in your code), I recommend you remove the doctrine/dbal composer dependency in your project and run composer update - that should have the same result as @lotarbo and @MikePageDev  's solution. Doctrine/dbal v2.12.x does support PHP 8, so it should work just fine.
If you have a dependency that needs DBAL v3, however, since Backpack doesn't yet support DBAL v3... that's where you have a problem. The only thing to do in that case is to wait from upgrading that dependency, until we manage to add DBAL v3 support in Backpack. Hopefully we'll be able to do so in a non-breaking manner 🤞
Cheers!


Amplify pull?

Possible here?

Hey, can you give me some more details on the expected behavior / use case?


 I'd like to run my tests in this Docker image, since I'm also going to use it to build.

:+1:


Support building 'sim' with optimization levels higher than -O0

0796ef213444be48b59d31e378adca2efc61a3dc:
Support building the 'sim' with optimization levels higher than -O0. The
higher optimization levels emit useful warnings that are masked at -O0.
The basic problem with the implementation of 'os_arch_task_stack_init()'
is that we are switching stacks from underneath the compiler without any
ability to influence how the compiler uses the stack. Thus when setjmp()
returns the compiler doesn't know that the stack frame it allocated for
local variables doesn't exist anymore on the new stack.
This happens to work with the -O0 optimization level because the compiler
addresses local variables using the frame pointer (%ebp). Higher optimization
levels use offsets from the stack pointer and immediately expose the issue
mentioned above.
Fix this by switching stacks in 'os_arch_frame_init()' which is implemented
in assembly so we can control the use of stack after setjmp() returns.
fb3520e2ca4aadc0d47928a0a54ebcd54a433f6e:
Don't drop the critical section between selecting the task to run and
actually switching to it. This creates a window where an interrupt might
make a higher priority task runnable but won't switch to it immediately.

Merged the pull request. Code seemed fine but I admit I did not go through all the assembly code entirely to make sure it works.

Will merged the pull request.


[fix](create table) Optimize create table function `createPartitionWi…

…thIndices` parameters
Proposed changes
Issue Number: close #xxx

createPartitionWithIndices 函数30多个参数，多半都是olapTable的成员变量，优化下
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run fe_ut


Theme Generator.

Feature Request / Theme Generator resources:
Palettes specified in muiTheme require 3 primaries, 3 accent, and 3 text colors.
Themes generated from https://www.materialpalette.com/ provide only 3 primaries, 1 accent, and 3 text colors. It's not clear how to choose the remaining colors (2 more accent colors, etc.).
Is there any algorithm or alternative website which generates the remaining colors? Might be nice to have an implementation of the algorithm to generate a palette object based on 2 color combination inputs:
const palette = generatePalette('blue-grey','lightblue') //returns a filled in Palette according to Google spec.
const theme = getMuiTheme({
  spacing: spacing,
  palette: palette,
  fontFamily: "Roboto, sans-serif"
})

Suggest renaming "primary1", "primary2", ... to "primaryDark", "primaryLight", ... for clarity?

@Streemo
I am working on it
https://cimdalli.github.io/mui-theme-generator/

Great project! 👍
You can look to storybook-addon-material-ui to create themes and develop material-ui components as well

@UsulPro wow amazing! Actually I searched such a website but I couldn't find then I decided to create new one. Btw can i use your color picker?

Thanks @cimdalli! :)
react-material-color-picker is a separated package,
you can find it here:
https://github.com/sm-react/react-material-color-picker

There's also the one mention here: https://github.com/callemall/material-ui/issues/3790 that is built with Material-UI. :+1:

Hey @mbrookes!
react-material-color-picker it's a bit another case. It's not built with Material-UI but it's built for Material-UI: its color palette is limited to https://material.io/guidelines/style/color.html#color-color-palette
So maybe better to consider it as a tool for development Material-UI themes.
live demo

@UsulPro Ah, interesting. I should have looked more closely!
Now if only it had a more MD style! 😄

The theme configuration on the next embrace composability and parameterized generator. I do no longer think we need that issue. Thanks for raising it though, it's showing we went in the right direction 👍 .


Pluggable Coprocessor

Feature Request
Is your feature request related to a problem? Please describe:

TiDB is not the only application built over TiKV. There are a lot of others around the TiKV ecosystem, for example, Tedis. For these applications, they usually want push-down capability similar to TiDB.
Describe the feature you'd like:

Make Coprocessor pluggable. Users can write a plugin to substitute the current TiDB Query Coprocessor. The plugin is able to register new services, and perform MVCC / Txn operations according to the request.
Teachability, Documentation, Adoption, Migration Strategy:

https://docs.google.com/document/d/100L8dbbYkaPcU-SDDyJWjSpFpVaQ_efud-enwWJZbg4/edit

Reply by myself to avoid bot being stupid.

pick up challenge

Initial design documentation draft for the audience in interest: https://docs.google.com/document/d/1W3YeMUaQK6k1SG2jmfq2PBWb6_wMK42KHBtO6mdbP2A/edit

This is a project for LFX Mentorship 2021 Q1. If you are interested in this, please refer to https://docs.google.com/document/d/1XawrFN5oiuPHxqwkd_3yz2b9n3oJNUh1MxCd0VtfU2E for more information.

This is being tracked in this document for the LFX program, owned by @Jibbow.


Adding owncloud chart to local repo

Hello @mcapuccini! As per our discussion, here is the branch for dev testing of the owncloud chart. Any comments and suggestions are more than welcome ;-) Cheers

It's difficult to see changes here, can you send the PR to kubenow/charts instead? It should be on a branch that is not master, I will add travis CI there for dev branches so we can test as well.

Sure, I'm on it!


Using a backtick in a long sentence goes out of the screen.

I used a backtick (`) in the post and it out of the screen.
Default size(100%)

Reduced size(25%)

like this
헤더의 key값은 `Authorization`을 value에는 `Bearer`를 앞에 명시해준 뒤 수신받은 토큰값을 넣어준다.

ex) `Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QG5hdmVyLmNvbSIsImV4cCI6MTU5NzQwMzUxNiwiaWF0IjoxNTk3Mzg1NTE2fQ.eQBXhSVgVebfruLLQbJbi3rm6siyEAStGz349IGcmpvwuWujz5O6OEcgJkIrBBy2aFHHDSI8AKNtmaN4gB6WqQ`

This is not a problem, but I leave a post in case it helps.
My Repository and blog url
blog
Repository

That long string above has no spaces which is why it overflows outside of the browser's viewport.
This is the default behavior.
Fixes are:

Don't use long strings with no spaces that are wider than the smallest screen size you hope to support
Use multi-line code block instead with triple back tick.
Override <code> CSS to wrap by adding word-break: break-all ... this could have unintended issues elsewhere.


Distributed caching issues

Scenario: Get an access token and use it to get the space resource information.

Add a new pod to the cluster. Everythings seems to work and the token remains valid. However, if I force a roll-out of all the KC pods of the cluster (changed ENV variable):

While they are restarting:
ERROR: <title>Error</title>404 - Not Found
Once the pods are ready, the token is not valid anymore.
ERROR: Could not obtain bearer access_token from request.

We can close this issue cause we don't experience it anymore with the new cluster configuration


External URL resolver

From nexus-kg created by umbreak : BlueBrain/nexus-kg#422

Not going to do it


Update publicação “2023-12-27-polimento-de-carro”

Automatically generated by Decap CMS

👷 Deploy Preview for driveclean-teste processing.

Name
Link

🔨 Latest commit
7fb764be33c315cf395305479b38865e3c5071db

🔍 Latest deploy log
https://app.netlify.com/sites/driveclean-teste/deploys/658e9dbbaadc4a00082a7620


Can't select players on /matchresult.html when clicking on name

When showing the site to others they tried so select users by clicking on their names in the dropdown but were confused when this wouldn't select the user.
The user can only be selected by clicking on the whitespace behind their name.

Which version were you showing? I tried the current version of the master and I can't reproduce this issue.

Do you maybe mean a different issue. I understand the problem as follows, when a person tries to select a searched user in the search bar and clicks on it, it wouldn't select him except when he clicks on the white background like the user name is blocking the click

Also something interesting to know for me would be if something happened instead if they click on user, like closing the search bar as I fixed an issue jsut now related to this

Tried it myself now and it's a bit unreliable. Sometimes if you click between the first and last name the click won't register

Checked out your fixing-searchbar Branch and I can't reproduce it anymore. Seems to be fixed.

I was able to reproduce this bug!
But the conditions were different as you testers described.
The reason why you can't select a user has nothing to do with where your cursor is when clicking.
The clicking is programmend in a way that after a certain amount of time the menu closes when the input field loses focus.
So when you click on a user an hold it the button the onClick won't trigger and the menu closes after the few miliseconds passed and you're left without selecting a user. I'm going to change the onClick so it triggers so that you select a user when the mouse button goes down

Yes, I solved it now and I came across a good solution. As the mousedown event fires before the on blur and focus event, I can use preventDefault on the list elements causing the searchbar not to lose focus. Additionaly we don't need that weird workraound were I had to set a delay so the searchbar closes after a certain amount of time


how can i get camera preview on my own xml ?

cwac cam2 does not have CameraHostProvider interface so how can i use camera preview and other actions on my own xml?

This is an issue tracker, not a support board. There are multiple support options described in the documentation. Please use those.

how can i use camera preview and other actions on my own xml?

The library does not support this. In the end, you will need to use the camera APIs yourself directly. You are certainly welcome to copy code from this project into yours, subject to the license terms. However, I am not providing technical support for that.


how to Get Base64 image value bind with angular variable after click download button

Version

version 3.7.3
Development Environment

Angular 8
Current Behavior
After click the download button, i get the edited image in a new window

How can i get the Base64 value of the edited image bind with an angular variable?
Expected Behavior

Fixed, in order to get the base64 value of the modified image, I performed two steps:
1- I modified the original function of the download button inside the tui-image-editor.js file so that it wrote the base 64 value in the local storage;
2- I modified, always inside the tui-image-editor.js file, the button tag of the download button and I added a custom id. After that, inside the angular component I created a listner looking for the newly created id


Include teacher name in catalog search

Maybe implement a checkbox to toggle inclusion of the profesor field on the Ramo search algorithm in CatalogActivity.

I changed my mind about this. The search will include NRCs and course names only.


Add mock_callable and mock_async_callable support for slotted classes

Summary:
This PR has the objective of supporting self.mock_callable and self.mock_async_callable for methods of slotted classes.
Before the PR mocking was not possible as testslide implementation assumed the presence of __dict__ (which cannot be ensured on slotted classes).
Test plan
(venv) maci:testslide/ (maci-add-support-for-slotted-classes) $ git co -f HEAD~1 testslide
Updated 1 path from ad55cd4
(venv) maci:testslide/ (maci-add-support-for-slotted-classes✗) $ git reset
Unstaged changes after reset:
M	testslide/mock_callable.py
(venv) maci:testslide/ (maci-add-support-for-slotted-classes✗) $ git diff
(venv) maci:testslide/ (maci-add-support-for-slotted-classes✗) $ git diff | cat
 diff --git a/testslide/mock_callable.py b/testslide/mock_callable.py
index 12fc9c9..87cf2f4 100644
 --- a/testslide/mock_callable.py
+++ b/testslide/mock_callable.py
@@ -776,14 +776,8 @@ class _MockCallableDSL:
             self.type_validation or self.type_validation is None,
         )

-        if isinstance(self._target, (Mock, StrictMock)) or not hasattr(
-            self._target, "__slots__"
-        ):
-            restore = self._method in self._target.__dict__
-            restore_value = self._target.__dict__.get(self._method, None)
-        else:
-            restore = self._method in self._target.__slots__
-            restore_value = getattr(self._target, self._method)
+        restore = self._method in self._target.__dict__
+        restore_value = self._target.__dict__.get(self._method, None)

         if inspect.isclass(self._target):
             new_value = staticmethod(new_value)  # type: ignore
(venv) maci:testslide/ (maci-add-support-for-slotted-classes✗) $ make tests/mock_callable_testslide.py
COVERAGE ERASE
TESTSLIDE tests/mock_callable_testslide.py
mock_callable()
  patching private functions raises valueerror
  patching private functions with allow private
  patching functions in slotted class: AttributeError: 'SomeClassWithSlots' object has no attribute '__dict__'

Failures:

  1) mock_callable(): patching functions in slotted class
    1) AttributeError: 'SomeClassWithSlots' object has no attribute '__dict__'
      File "testslide/runner.py", line 835, in run
        self._run_example(example)
      File "testslide/runner.py", line 817, in _run_example
        _ExampleRunner(
      File "testslide/__init__.py", line 534, in run
        self._sync_run_all_hooks_and_example(context_data)
      File "testslide/__init__.py", line 506, in _sync_run_all_hooks_and_example
        aggregated_exceptions.raise_correct_exception()
      File "testslide/__init__.py", line 275, in raise_correct_exception
        raise self.exceptions[0]
      File "testslide/__init__.py", line 259, in catch
        yield
      File "testslide/__init__.py", line 497, in _sync_run_all_hooks_and_example
        self._fail_if_coroutine_function(self.example.code, context_data)
      File "testslide/__init__.py", line 465, in _fail_if_coroutine_function
        return func(*args, **kwargs)
      File "tests/mock_callable_testslide.py", line 110, in patching_functions_in_slotted_class
        self.mock_callable(t, "method").to_return_value(42).and_assert_called_once()
      File "testslide/mock_callable.py", line 52, in mock_callable
        return _MockCallableDSL(
      File "testslide/mock_callable.py", line 851, in __init__
        original_callable, unpatcher = self._patch(callable_mock)
      File "testslide/mock_callable.py", line 779, in _patch
        restore = self._method in self._target.__dict__

Executed 3 examples in 0.4s:
  Successful: 2
  Failed: 1
  Skipped: 0
  Not executed: 2392
https://testslide.readthedocs.io/
make: *** [tests/mock_callable_testslide.py] Error 1
(venv) maci:testslide/ (maci-add-support-for-slotted-classes✗) $ make tests/mock_async_callable_testslide.py
COVERAGE ERASE
TESTSLIDE tests/mock_async_callable_testslide.py
mock_async_callable()
  patching functions in slotted class: AttributeError: 'SomeClassWithSlots' object has no attribute '__dict__'

Failures:

  1) mock_async_callable(): patching functions in slotted class
    1) AttributeError: 'SomeClassWithSlots' object has no attribute '__dict__'
      File "testslide/runner.py", line 835, in run
        self._run_example(example)
      File "testslide/runner.py", line 817, in _run_example
        _ExampleRunner(
      File "testslide/__init__.py", line 532, in run
        self._async_run_all_hooks_and_example(context_data)
      File "testslide/__init__.py", line 457, in _async_run_all_hooks_and_example
        asyncio_run(coro)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
        return loop.run_until_complete(main)
      File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
        return future.result()
      File "testslide/__init__.py", line 370, in _real_async_run_all_hooks_and_example
        aggregated_exceptions.raise_correct_exception()
      File "testslide/__init__.py", line 275, in raise_correct_exception
        raise self.exceptions[0]
      File "testslide/__init__.py", line 259, in catch
        yield
      File "testslide/__init__.py", line 356, in _real_async_run_all_hooks_and_example
        await _async_ensure_no_leaked_tasks(
      File "testslide/__init__.py", line 93, in _async_ensure_no_leaked_tasks
        result = await coro
      File "testslide/__init__.py", line 322, in _fail_if_not_coroutine_function
        return await func(*args, **kwargs)
      File "tests/mock_async_callable_testslide.py", line 96, in patching_functions_in_slotted_class
        self.mock_async_callable(t, "async_method").to_return_value(
      File "testslide/mock_callable.py", line 72, in mock_async_callable
        return _MockAsyncCallableDSL(
      File "testslide/mock_callable.py", line 1179, in __init__
        super().__init__(
      File "testslide/mock_callable.py", line 851, in __init__
        original_callable, unpatcher = self._patch(callable_mock)
      File "testslide/mock_callable.py", line 779, in _patch
        restore = self._method in self._target.__dict__

Executed 1 example in 0.1s:
  Successful: 0
  Failed: 1
  Skipped: 0
  Not executed: 263
https://testslide.readthedocs.io/
make: *** [tests/mock_async_callable_testslide.py] Error 1
(venv) maci:testslide/ (maci-add-support-for-slotted-classes✗) $ git co -f .
Updated 1 path from the index
(venv) maci:testslide/ (maci-add-support-for-slotted-classes) $ git diff | cat
(venv) maci:testslide/ (maci-add-support-for-slotted-classes) $ make tests/mock_callable_testslide.py
COVERAGE ERASE
TESTSLIDE tests/mock_callable_testslide.py
(venv) maci:testslide/ (maci-add-support-for-slotted-classes) $ make tests/mock_async_callable_testslide.py
COVERAGE ERASE
TESTSLIDE tests/mock_async_callable_testslide.py
(venv) maci:testslide/ (maci-add-support-for-slotted-classes) $

All tests passes
maci:testslide/ (maci-add-support-for-slotted-classes) $ make ci
CREATE VIRTUALENV (/Users/maci/github/testslide/venv)
INSTALL BUILD DEPS
INSTALL DEPS
COVERAGE ERASE
UNITTEST tests/accept_any_arg_unittest.py
UNITTEST tests/cli_unittest.py
UNITTEST tests/dsl_unittest.py
UNITTEST tests/matchers_unittest.py
UNITTEST tests/pep487_unittest.py
UNITTEST tests/testcase_unittest.py
TESTSLIDE tests/lib_testslide.py
TESTSLIDE tests/mock_async_callable_testslide.py
TESTSLIDE tests/mock_callable_testslide.py
TESTSLIDE tests/mock_constructor_testslide.py
TESTSLIDE tests/patch_attribute_testslide.py
TESTSLIDE tests/strict_mock_testslide.py
INSTALL pytest_testslide DEPS
PYTEST pytest_testslide
MYPY tests testslide util pytest-testslide
FLAKE8 tests testslide util pytest-testslide
ISORT tests testslide util pytest-testslide
BLACK tests testslide util pytest-testslide
Copyright structure intact for all python files
COVERAGE COMBINE
COVERAGE REPORT
DOCS
SDIST
INSTALL LOCAL
maci:testslide/ (maci-add-support-for-slotted-classes) $

Checklist:

[x] Added tests, if you've added code that should be tested
[ ] Updated the documentation, if you've changed APIs
[x] Ensured the test suite passes
[x] Made sure your code lints
[x] Completed the Contributor License Agreement ("CLA")

Differential Revision: D46856794

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.007%) to 93.735%

Totals

Change from base Build<PHONE_NUMBER>:
0.007%

Covered Lines:
2663

Relevant Lines:
2841

💛  - Coveralls


bigquery#query: stop passing Job object to API

Fixes #647
For developer convenience, when BigQuery#query is used first, it creates a job. From the API response, it creates a Job object, and includes it in a nextQuery that is given back to the user (or called itself if in stream mode). We were mistakenly passing that serialized Job object as a query string parameter in API requests to getQueryResults.

LGTM is this the only place in the code where that happens?

It's the only place I found, but I asked @weslem over in https://github.com/GoogleCloudPlatform/gcloud-node/issues/647#issuecomment-110768352

Confirmed!


Broken Counter

I am not sure why the counter is not working.

It would be great if I can get the PR with the fix otherwise just the solution on how can I fix it would also be really appreciated.

Can I try working on this issue?

Yea give it a shot. I am not sure what is causing the issue you will have to debug the code.

Can i fix this ?

Yea sure go ahead.

assign this to me

I want to work on this!

How to set it locally ?


VS 2019 projects

I tried opening BasicHLSL11_2019_Win10.sln using Explorer, and VS 2017 was used by the VS version selector. I think the solution files need:
# Visual Studio 16
Instead of:
# Visual Studio 15

Sorry, I expected the project upgrade to fix this. VS 2019 uses # Visual Studio Version 16.
Fixed in this commit

CMake seems to generate # Visual Studio 16 and the selector is smart enough to accept it. VS itself seems to do # Visual Studio Version 16


Add stan to notable tools in the IDE support

@chshersh: Thank you for contributing the stan tool 🙂


Call verifier after egraph pass

Fixes #6855

I wonder what tests we can write for this since any faulty input will be caught much before we reach the egraph pass by the earlier verifier invocations.

Huh, I'm not sure how we would test this. Maybe @jameysharp has an idea?

Yeah, I don't think we can write sensible tests for running the verifier after specific passes. It wouldn't be too hard to add an invalid egraph rule that only matches when some flag is set, and only turn that flag on in a test, but I don't think it's worth doing that.
Mostly I think we'll notice whether this is working whenever we write new incorrect egraph rules, which I'm sure will happen often enough. :sweat_smile:

That makes sense @jameysharp. Thanks.


Support setting environment variables in variables.yaml from secrets and config maps

I would like to request support of secrets in the environment variables set:
Currently, it's possible to set only string value to the key:
- key: "var_1"     value: "my_value_1"
Nice to have:
variables:     - name: var_1       valueFrom:          secretKeyRef:             key: var-1-secret             name: some-secrets
When I do it now I get error:
Error: execution error at (airflow/templates/jobs/secret-job-scripts.yaml:255:16): each valueinairflow.variables must be non-empty!

@ihormudryy I have made a proposal to do something similar to this in: https://github.com/airflow-helm/charts/issues/260
I am working on implementing it now.

I am going to close this in preference of tracking it on: https://github.com/airflow-helm/charts/issues/260


[6.0] Run moveonly checker + TSAN tests in a separate file.

Explanation: Fixes a test failure in 6.0 CI.
Scope: Test fix, no change in compiler or runtime behavior
Issue: rdar://129286269
Original PR: https://github.com/apple/swift/pull/74270
Risk: Low. Test fix, no change in compiler or runtime behavior
Testing: Swift CI
Reviewed by: TBD

@swift-ci Please test


Prefer semantic versioning term patch in bump command

This makes it clear that bump:bugfix is just an alias for the
bump:patch command, which aligns closely to the semantic versioning
standard.

Thank you, @spawnia ! Merged, and will release soon!

Merged to develop, that is, as it represents a slight change in the internal API.


BabelDjango upgrade

can BabelDjango be upgraded with django-babel?
I see it's set to >=0.2 in requirements.in but the most recent version I see is 0.2.2 from 2008?
Seems like the only things that use BabelDjango are the LocaleMiddleware(using the pre-1.10 middleware syntax) and currencyfmt in /cart/views. Is that right?

Yes, we should very much upgrade both in Saleor and in django-prices.


PageRoute argument for CustomTransition

Is your feature request related to a problem? Please describe.
I'm using the Transition.cupertino but I don't like its box shadow. I created my own Cupertino transition but I can't use it as CustomTransition.buildTransition(), because I need the PageRoute argument (It doesn't have the RoutePage argument, it only has BuildContext)
Describe the solution you'd like
Add PageRoute argument to buildTranstion method of CustomTransition.
abstract class CustomTransition {
  Widget buildTransition(
    PageRoute route,
    BuildContext context,
    Curve? curve,
    Alignment? alignment,
    Animation<double> animation,
    Animation<double> secondaryAnimation,
    Widget child,
  );
}

i have same error for buildTransition with red coution, how to fix it

Amy workarounds for this? I'm also searching for ways to get custom transitions working.

If you have context access, I assume it's possible to access your route, have you tested this?
 final pageRoute = ModalRoute.of(context);

I just tested now. But it doesn't work. I couldn't covert ModelRoute to PageRoute because It's a abstract class

final pageRoute = ModalRoute.of(context) as PageRoute;


bundle the extension with webpack

Currently , this extension vsix is nearly 10 MB, It discreased to 2MB after bundle and minify it with webpack. Please see the offical information about bundle:

Bundling Extensions
The first reason to bundle your Visual Studio Code extension is to make sure it works for everyone using VS Code on any platform. Only bundled extensions can be used in VS Code for Web environments like github.dev and vscode.dev. When VS Code is running in the browser, it can only load one file for your extension so the extension code needs to be bundled into one single web-friendly JavaScript file. This also applies to Notebook Output Renderers, where VS Code will also only load one file for your renderer extension.

In addition, extensions can quickly grow in size and complexity. They may be authored in multiple source files and depend on modules from npm. Decomposition and reuse are development best practices but they come at a cost when installing and running extensions. Loading 100 small files is much slower than loading one large file. That's why we recommend bundling. Bundling is the process of combining multiple small source files into a single file.

Thanks for the PR but I think a lot of this is already in the dev branch https://github.com/krvajal/vscode-fortran-support/pull/293 which is actually the pre-Released version in the store (the 10Mb vsix).
The problem with the size of the extension is the assets for the README, basically there is an intro GIF that takes 9.3 Mb and couldn't be compressed any more since it would lead to loss of quality.
Given that this feature has already been implemented and released (but not yet merged to master) I will be closing this PR.