Unable to build in windows (using vcpkg)

Hi,
I am having problems building in windows using vcpkg libraries. I don't know if that is the recommended procedure and would appreciate if somebody could point me to a better one if it is not.
Following this procedure, most of my problems seem to be related with pthreads.
I found a first issue with CMakeLists.txt not being able to detect that pthreads was found. I could fix that with:
-  if (NOT CMAKE_USE_PTHREADS_INIT)
+  if (NOT PTHREADS_LIBRARY)
     message(FATAL_ERROR "The required pthreads library was not found.")
   else()
     list(APPEND _glvis_libraries "${CMAKE_THREAD_LIBS_INIT}")

Once cmake finished, the build found problems due to undefined M_PI which can be fixed with:
+  add_definitions(-D_USE_MATH_DEFINES)
However, I have come to a dead end because of the <unistd.h> dependency in threads.cpp as I can't find an equivalent in windows.
Thanks for your work. Your code buillt and run like a charm for me under linux.

I'm not familiar with vcpkg. Is it using the visual studio compiler? I'm not sure it provides pthreads support which is needed by GLVis.
Typically, people using GLVis under windows use WSL, I think.

@lmdiazangulo  -- in case this is helpful, the Axom project (https://github.com/LLNL/axom) also depends on mfem.
We've developed a vcpkg port for<EMAIL_ADDRESS>for our Windows build, see: https://github.com/LLNL/axom/tree/develop/scripts/uberenv/vcpkg_ports/mfem
I don't recall dealing with pthreads or unistd, but for other windows/unix capabilities, we depend on direct.h, so that might be a good place to look if glvis needs to be patched. See, e.g.:
https://github.com/LLNL/axom/blob/fe0f07e5525bf1cda91e6be1399edf18741843cb/src/axom/core/utilities/FileUtilities.cpp#L15-L29
We also had to build mfem as a shared library (dll) due to complications related to building hdf5 and gtest on Windows.

I'm not familiar with vcpkg. Is it using the visual studio compiler? I'm not sure it provides pthreads support which is needed by GLVis.
Typically, people using GLVis under windows use WSL, I think.

VCPKG is basically a cross-platform c/c++ package manager. I find it quite usefull, especially for these kind of projects which depend on so many external libraries. I could use it yesterday (partially) successfully with MFEM. I have used it only for one week or so (so no expert here), but I think I really like it, both for windows and linux.
I did not know about WSL, thanks for pointing me there. I understand it is a concept similar to mingw or cygwin, basically adding a layer of linux on top of windows. I was trying was a native compilation in windows, but I guess it won't be possible.
Thanks for your answer.

@lmdiazangulo -- in case this is helpful, the Axom project (https://github.com/LLNL/axom) also depends on mfem.
We've developed a vcpkg port for<EMAIL_ADDRESS>for our Windows build, see: https://github.com/LLNL/axom/tree/develop/scripts/uberenv/vcpkg_ports/mfem
I don't recall dealing with pthreads or unistd, but for other windows/unix capabilities, we depend on direct.h, so that might be a good place to look if glvis needs to be patched. See, e.g.:
https://github.com/LLNL/axom/blob/fe0f07e5525bf1cda91e6be1399edf18741843cb/src/axom/core/utilities/FileUtilities.cpp#L15-L29
We also had to build mfem as a shared library (dll) due to complications related to building hdf5 and gtest on Windows.

I have  tried a little bit more, with pasting your code, and some unistd.h ports that I have found (this one),
That tweak seemed to fix some issues but now the problematic part is fcntl. I don't know about that function but I did a little bit of research and it seems that it is not easily replaced under windows. It would require to change a signficant amount of code and I think I can do much more damage than good if I do so.
I did not know about axiom. I have taken a look on it (specially the part of meshes) and seems very interesting. Thanks for showing it to me.

Typically, people using GLVis under windows use WSL, I think.

I have tried using WSL2 and worked well.  Thanks for that suggestion.

I am closing this, but it may be good to add support for vcpkg in both MFEM and GLVis in the future...


Add support for pip priority field and schedule according to pip priority as well as historic data.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: erickulcyk sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

/azp run Public BuildXL PR Validation

/azp run Primary BuildXL PR Validation

/azp run Part B BuildXL PR Validation

/azp run Mac Public BuildXL PR Validation

/azp run Mac BuildXL PR Validation

/azp run Primary BuildXL PR Validation

/azp run Mac Public BuildXL PR Validation

/azp run Mac BuildXL PR Validation

Can you add description about the work? Some of us, like me, don't have the context about what you're doing.


NetNewsWire: init at 6.1.4

Description of changes

NetNewsWire: init at 6.1.4
https://github.com/Ranchero-Software/NetNewsWire/tree/main
add jakuzure to maintainers

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

@h7x4 Thank you very much for your review and all the links, I adapted your suggested changes

@FliegendeWurst @h7x4 Thanks for the approvals, could anybody merge this PR?


Securimage uses inline CSS and JavaScript and therefore needs unsafe Content Security Policy

Securimage currently uses inline CSS and JavaScript in several situations, especially for reloading the captcha image and playing audio. Therefore it is necessary to allow inline scripts and styles in the Content Security Policy HPPT headers which is a potential security issue. Would it be possible to completely separate HTML, CSS and JavaScript using id and class attributes for CSS and JavaScript hook-ins?

I'd start by saying, if you want to get rid of the inline JS and CSS, then you don't need to call Securimage::getCaptchaHtml() and instead, write custom HTML and JS for the captcha.  This was just added to make it easier for default use cases and beginner level programmers to add a fully functional captcha to the form with little effort.
Can you provide an example of your CSP header and what you might envision for separating these options different from how they are now?

Thanks for the answer. My current CSP headers are
X-Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'
X-WebKit-CSP: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'

and I'd like to get rid of 'unsafe-inline' by replacing all the inline stuff. Since there are the securimage.css and securimage.js files anyway, I think that outsourcing scripting/styling to them completely would be the best approach.
But yes, for now it looks like I'll have to use custom HTML and JS. I'll have a closer look at the Securimage code in the next few days and try to write an implementation without inline JS and CSS.

If your form and elements don't change, you can just take a rough copy of what getCaptchaHtml() gives you with the proper settings and then externalize the JS and CSS to a more permanent location.
The only reason it's dynamic now is for those with multiple captchas on a single page, or forms that might appear on numerous pages dynamically, and to save someone from having to write a bunch of custom HTML that is confusing for beginners just trying to add it to their form.
If you're not using audio, it's just a matter of moving the refresh code and any custom CSS to a static file.  Audio will just need to know the name of the elements.
Let me know if you run into anything or have questions when you go forward.


support postgres style dates in mp_ds2inserts

These should be added using the E8601DT25.6 format

:tada: This issue has been resolved in version 2.42.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add support for convex hulls

Add support for using the ST_ConvexHull funciton.
I broke this out of the SpatialBuilder class because it does not operate on a model, only on geometry. For example, this query
select ST_CONVEXHULL(ST_GeomFromText('MULTIPOINT(-1 -1, 1 -1, 1 1, -1 1, -1 -1, 0 0)', 0, 'axis-order=long-lat')) as convex_hull

results from
SpatialQuery::make()->convexHull($geometry)

Hi @Riley19280, thanks for the PR!
Can you please explain to me what convex hull means? I'm not familiar with this functionality.
And, please explain me the use case. Why do you need this function?

Hi @Riley19280, thanks for the PR! Can you please explain to me what convex hull means? I'm not familiar with this functionality. And, please explain me the use case. Why do you need this function?

A convex hull is a shape that encompasses all points given

Im my use case this is exactly what I need

Thanks for the explanation. Isn't it better to implement this algorithm in PHP and save the IO operation to the DB?

Could be, I am not sure though. I don't want to write it myself when I can have the database do it though. I'm sure whoever implemented it on a database did it as efficiently as they could

I'm sorry. I appreciate your time, but I prefer not to mess up this package with a new builder class. I assume this use case isn't very common.
I suggest you use this code in your project, on top of this package.
Let me know if there's anything else I can help with.

I feel that having a go-to package for all spatial database queries is important. There are plenty of other spatial database functions available that could be added to the builder class, further extending the capabilities and objects provided by this package. Converting to/from another packages Geometry classes would be a hassle

Ok, I see what you mean. Can you make the class not inherit from Builder?
I don't have an ideal design yet, but the direction should be something like this GeometryEngine::make($connection)->convexHull($multiPoint), when make's first parameter is optional, and the function returns a Polygon without the need to do ->first()->convex_hull

Ok, I see what you mean. Can you make the class not inherit from Builder? I don't have an ideal design yet, but the direction should be something like this GeometryUtils::make($connection)->convexHull($multiPoint), when make's first parameter is optional, and the function returns a Polygon without the need to do ->first()->convex_hull

I think returning a geometry class directly makes the most sense. Wanted to do that originally but it was too closely tied to queries. I like the direction it's headed now. Let me know what you think

It looks great, I made some refactoring, can you check it? https://github.com/MatanYadaev/laravel-eloquent-spatial/tree/convex-hull
I removed the distanceSphere, I prefer it to be in a separated PR.

It looks great, I made some refactoring, can you check it? 4237bf0 I removed the distanceSphere, I prefer it to be in a separated PR.

Looks mostly good to me! Only thing i dislike is the toExpressionString function polluting the global scope, since it's not in any class. Globally available functions are usually used for helper methods and such, but this helper is really only useful to the package internals.

@Riley19280 Can you fix the PR to include my refactoring?


[Serial] Consider code splitting for Xterm.js

Xterm.js is a big chunk of bundle size and perhaps could be lazy.
We'd need to replay serial writes before it was loaded. Not sure it is worth it. Just recording the idea.

Closing.


Urgent: Docs missing for Navigation goBack with Page ref?

Reference docs:
https://github.com/halfnelson/svelte-native/blob/master/docs_src/content/docs/10-routing.md#goback
I'm trying to navigate to a specific page and would like to use the to: prop as described in regarding referencing a page. But how is this used? How do I reference a page?

After updating my app to {S}  v1, navigation crashes the app

I might need a minimal example, it throws that error if it doesn't think it
was given a valid argument, so I will need to know what arg you are using
for the destination
On Sun, 12 Dec 2021, 11:25 pm devyaz, @.***> wrote:

After updating my app to {S} v1, navigation crashes the app
[image: IMG_20211212_152040.jpg]
https://user-images.githubusercontent.com/20435017/145714049-634941d8-5255-4e9c-b87e-ce14a7b2e676.jpg
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/halfnelson/svelte-native/issues/235#issuecomment-991897948,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEGS5HGYNGYD6ODIJV5VWLUQSPDDANCNFSM5BAZQQ7A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


[5.4] Flush application resources in application flush

Fixes #21015 in laravel 5.4

@themsaid Can we merge this for laravel 5.4 and release this as minor update?


Merge master branch to prTesting1_201909030806 branch

Docs Build status updates of commit faa82af:
:clock10: Pending: waiting for processors (5 builds ahead of you)
:warning: Docs Build is busy, currently there are 5 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit faa82af:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon1.md
:bulb:Suggestion

Details

split/updateTestCon1.md

[Suggestion] Missing attribute: author. Add the current author's GitHub ID. NOTE: This Suggestion will be elevated to a Warning on 9/1/2019.
[Suggestion] Missing attribute: title. Add a title string to show in search engine results. NOTE: This Suggestion will be elevated to a Warning on 9/1/2019.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Attribute handling

https://github.com/danrusei/hass-rs/blob/c6f46fe082abac70fb0c3e7a5d4e5f214e77490f/src/client.rs#L272
Have you thought about how to deal with attributes?
Maybe it's better to return Vec<Value> and let user access required attributes?
(I was trying to extract current_temperature from climate entity but hass-rs doesn't seem to be able to do that at the moment.)
So something like
diff --git a/src/client.rs b/src/client.rs
index 9e05999..a5d8849 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -261,7 +261,7 @@ impl HassClient {
     ///     Ok(())
     /// }
     /// ```
-    pub async fn get_states(&mut self) -> HassResult<Vec<HassEntity>> {
+    pub async fn get_states(&mut self) -> Result<Vec<Value>, HassError> {
         //Send GetStates command and expect a number of Entities
         let states_req = Command::GetStates(Ask {
             id: Some(0),
@@ -275,7 +275,7 @@ impl HassClient {
         match response {
             Response::Result(data) => match data.success {
                 true => {
-                    let states: Vec<HassEntity> =
+                    let states: Vec<Value> =
                         serde_json::from_value(data.result.expect("Expecting to get the States"))?;
                     return Ok(states);
                 }

The pull request has been merged, so this issue can be closed.

Argh, the right github keyword to close the issue is "fixes", not "closes"... Thanks for manually closing this.


Does compose-ios support webp?

Recently, we are working on a kmp project, which is compatible with Android and Desktop. However, we have a problem with images. We want to use webp format, but we are afraid that ios does not support webp format images. We want to ask, will the subsequent addition of painterResource() in ios support webp?

It looks like ios 14+ supports webp - https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3551599-webp
So I think it should be supported with compose as well at some point (please, keep in mind: the compose-ios is still experimental).

Thanks for your reply, then we will use png temporarily

@ltttttttttttt Comming soon:
https://github.com/JetBrains/compose-jb/pull/2483#discussion_r1028004043

@dima-avdeev-jb Does it support versions below IOS 14?

I am not tested yet, but I think the answer is no.

Will be supported after this PR for iOS 14+
https://github.com/JetBrains/compose-jb/pull/2483#discussion_r1028004043


Change ntp_enabled and ntp_manage_config to true in example group…

… vars.

It seems like we would generally want ntp running and enabled from the start. You would want this right on compute nodes for the VMs, and between nodes and pods for things like DB synchronization. For those that don't examine the example configuration very carefully, this seems like a better default to me.
Feel free to merge if this seems appropriate.
Thanks,
Adam


Accept User Input

Accept user input. For the web interface, this will return an unsupported operation error.
https://github.com/johneastman/boomerang/issues/81 must be completed first. Add tests for not supported on web.

Commits:

6bcd709b8144f4ece59d06293e42a139465a81b2
6848b336e621a8ba7b0b89be848e18b90b4feede
24b3fc82a9cd89d443b05842963a8144b6bbac94

These commits also include refactoring the platform check.


docs(readme): enhance readme file

In this PR I have added package dependency installation guide (as we saw this might be an issue for people in #35). I have also changed the headline from the p tag to the h1 tag

Thanks @hossein13m


We're moving away from positioning the dropdown on top of the select. You can try our new select based on top of MDC's styles. The API and behavior is exactly the same since it shares the same base class as the current select, but the CSS will be slightly different and the dropdown is only positioned above/below. You can try it by importing MatSelectModule from @angular/material-experimental/mdc-select instead of @angular/material/select.

Hello,
Any update on when the corrections to the mat-select dropdown positioning might be ready for production? I have a few teams holding off on updating from Angular Material 11 for this reason alone.
Thank you!
Jeremy
We're moving away from positioning the dropdown on top of the select. You can try our new select based on top of MDC's styles. The API and behavior is exactly the same since it shares the same base class as the current select, but the CSS will be slightly different and the dropdown is only positioned above/below. You can try it by importing MatSelectModule from @angular/material-experimental/mdc-select instead of @angular/material/select.
Originally posted by @crisbeto in https://github.com/angular/components/issues/23625#issuecomment-931448386

13.1.1
I thought I would try out the experimental mat-select version but I am getting quite a few errors.
First of all, npm install @material/line-ripple needs to be installed, per the first build error. Then it build successfully. But when I start it, I am getting:
Error: Module not found: Error: Can't resolve '@material/textfield'
Error: Module not found: Error: Can't resolve '@material/dom'
Error: Module not found: Error: Can't resolve '@material/notched-outline'
I had a look at some old Angular 11 builds and these modules were not located there either.
I am not finding any answers for these errors when I search for them.

You can install this instead which brings in all of the MDC code. https://www.npmjs.com/package/material-components-web
Also note that you'll have to include the theme for the MDC select. There's more info here: https://github.com/angular/components/blob/master/src/material-experimental/mdc-select/README.md

cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     https://npm.community


Is it not possible to attach IntentDialog into calling Bot? like chat bot?

I am getting internal server error response when a call is made from Skype to a calling bot, which has luis intent dialog attached as root dialog.


Setting showThumbnailsInCp=false prevents all site asset thumbnails from loading and not only the ones managed by craft-embedded-assets.

Related to #107 and #102.
Description
First of all, thank you for resolving the timeouts!
The plugin setting preventing admin folders with youtube assets from timing out now causes all assets items to display without thumbnails. Is there a way to have the plugin only skip the thumbnails for its own assets?
Steps to reproduce

Install craft-embedded-assets
set return [
'showThumbnailsInCp' => true,
]; in the config file in order to prevent from the admin assets folder containing craft-embedded-assets managed items from timing out.
observe ALL CP assets' thumbnails disappear, and not only the ones managed by craft-embedded-assets. Pop-up showing the asset details on double click does not load the asset image either.

Other information

Embedded Assets version: 2.0.10
Craft CMS version: <IP_ADDRESS>

Any idea on how to approach this and go to a more granular solution? Right now it's all or nothing -- either wait almost a minute or time out on embedded assets while freezing the public facing website, or not seeing any thumbnails, for any assets.
Also, am I the only one experiencing this slowdown? Is this an isolated issue which could be caused by something on my side?
I've tried different computers and browsers, on different connections.
Thanks again.

Hi @andreimoment,
I'm not sure if you're still having this issue but I have tested it myself and it looks to be working correctly.
This image below is for 'showThumbnailsInCp' => false,

Image below is for 'showThumbnailsInCp' => true,

First 2 assets are images and the last 4 if embedded assets.
I wonder if it's the amount of files that's causing it to behave like that or maybe that amount being shown at once.

Yes, there's a large amount of assets -- over 70 embedded assets and over 150 image files. Is there any diagnostics that I can do which would help you?

Hi @andreimoment,
Can you send me your web log file, to<EMAIL_ADDRESS>I'll see if there's any errors that's causing the issue.

Closing this issue due to inactivity and not being reproducible.  If the issue persists, please let us know here and send your web.log to<EMAIL_ADDRESS>and we'll reopen the issue.

I appreciate you following up on this.
The plugin running on an old craft installation (3.0.x) is still very slow.
But I will be upgrading that site soon.
On Fri, Jul 3, 2020 at 1:38 AM Thomas Templeton<EMAIL_ADDRESS>wrote:

Closed #113
https://github.com/spicywebau/craft-embedded-assets/issues/113.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spicywebau/craft-embedded-assets/issues/113#event-3510143183,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAABQLSRMKFAEF3S6D7IE4LRZWKIDANCNFSM4IHWHTIQ
.

--
Sent via mobile.


Add general purpose metric grid overlay

A better metric grid overlay suitable for British, Irish, UTM grids etc. With example and definitions for British and Irish grids.

Thank you for contributing this nice plugin! :+1:


Can't remap esc in normal mode (kitty terminal)

Maybe related to https://github.com/vim/vim/commit/dffa6ea85c82bbcb60368f38f7437c6cd89c9e55
Steps to reproduce
This happens in kitty terminal and maybe in others, it doesn't happen in Iterm2
vim --clean
:nnoremap <esc> i

Then press i
Expected behaviour
Enters insert mode
Version of Vim
9.0.1151
Environment
MacOs, kitty terminal
Logs and stack traces
No response

I tried setting
set keyprotocol=kitty:none

and
set keyprotocol=kitty:mok2

But that mapping still doesn't work.
I have to try the patch you just made, though, thanks.

This seems not fixed yet, currently using 9.0.1285. I also tried launching vim using vim --clean --cmd 'set kpc=kitty:none' but still got Kitty keyboard protocol: On `.

For me it worked, in the sense that my issue with nnoremap <esc> was fixed.

For me it worked, in the sense that my issue with nnoremap <esc> was fixed.

I'm using ubuntu ppa packaged 9.0.0749+really.v9.0.1285-0york0~ubuntu20.04.1, and  key produces ^[[27;129u. I'm using several plugins that remap <Esc> and now they all fail.

This seems not fixed yet, currently using 9.0.1285. I also tried
launching vim using vim --clean --cmd 'set kpc=kitty:none' but still got Kitty keyboard protocol: On `.

It is fixed when not using a modifier, but you apparently have NumLock
pressed, which Kitty adds as a modifier to the escape sequence for Esc.
Internally K_ESC needs to be used to match what mappings expect.
Let me reopen this issue and make a fix.
After changing 'keyprotocol' it does not take effect immediately.  The
help mentions this.  To make it work do:
let &term = &term

--
I AM THANKFUL...
...for a lawn that needs mowing, windows that need cleaning
and gutters that need fixing because it means I have a home.
/// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net   \
///                                                                      \
\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

This seems not fixed yet, currently using 9.0.1285. I also tried launching vim using vim --clean --cmd 'set kpc=kitty:none' but still got Kitty keyboard protocol: On `.
It is fixed when not using a modifier, but you apparently have NumLock pressed, which Kitty adds as a modifier to the escape sequence for Esc. Internally K_ESC needs to be used to match what mappings expect. Let me reopen this issue and make a fix. After changing 'keyprotocol' it does not take effect immediately. The help mentions this. To make it work do: let &term = &term
…
-- I AM THANKFUL... ...for a lawn that needs mowing, windows that need cleaning and gutters that need fixing because it means I have a home. /// Bram Moolenaar -- @.*** -- http://www.Moolenaar.net \\ /// \\ \\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\ help me help AIDS victims -- http://ICCF-Holland.org ///

Bram, thanks for pointing this out!


make the pudl.output.eia860.generators_eia860() the backbone of the mcoe outputs

we need to figure out how to do this... probably has many dependencies like issue #254
We need to make a decision about how to merge annual records with monthly data tables in which the entities don't show up in the data tables. Should we make a complete monthly time series w/ nulls for every month? Probably, but where and how should we implement that? See TODO in pudl.helpers.merge_on_date_year

I think this is more or less fixed now. If you run `pudl_out.mcoe(all_gens=True) you'll get all of the generator-years or generator-months, with MCOE data columns that are populated, or Null, depending on whether that generator-year/month has MCOE output.


Best way to build with Flask API

Hey,
I would love some guidance to resources/ how to best include a Flask API server with this project.
Any help would be greatly appreciated.

Some reading: #135 and #141. Perhaps @LarryEitel, the author of those issues, could be of some assistance?

@brennanerbz I have built Flask-API's before. Currently focused on Laravel. Perhaps we can compare notes via Skype. My ID is larryeitel.

:+1: @LarryEitel

Thank you, @LarryEitel!


Add missing telemetry

This issue is about adding the missing telemetry before v0.30.0
See the related changes
https://github.com/meilisearch/specifications/commit/31b437badfd3db1dcc0fdad132e460ea83c9e127
@meilisearch/docs-team sorry for the last minute addition

Fixed by #3114


Build fails "No file found at path: /Users/vagrant/git/contents.xcworkspacedata"

Hi,
My build fails with error:
Failed to open project: /Users/vagrant/git: could not get scheme (release) from path (/Users/vagrant/git): No file found at path: /Users/vagrant/git/contents.xcworkspacedata
xcode-archive@2 (exit code: 1)
Full log:
+------------------------------------------------------------------------------+

| (9) xcode-archive@2                                                          |
+------------------------------------------------------------------------------+
| id: xcode-archive                                                            |
| version: 2.8.5                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2020-06-30T18:45:14Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
INFO[18:45:15]  * [OK] Step dependency (xcode) installed, available.
Configs:
- ExportMethod: ad-hoc
- UploadBitcode: true
- CompileBitcode: true
- ICloudContainerEnvironment:
- TeamID:
- UseDeprecatedExport: false
- ForceTeamID:
- ForceProvisioningProfileSpecifier:
- ForceProvisioningProfile:
- ForceCodeSignIdentity:
- CustomExportOptionsPlistContent:
- OutputTool: xcpretty
- Workdir: /Users/vagrant/git
- ProjectPath: .
- Scheme: release
- Configuration:
- OutputDir: /Users/vagrant/deploy
- IsCleanBuild: false
- XcodebuildOptions:
- DisableIndexWhileBuilding: true
- ExportAllDsyms: true
- ArtifactName: release
- VerboseLog: true
- CacheLevel: swift_packages
step determined configs:
- xcodebuildVersion: Xcode 11.5 (Build version 11E608c)
Checking if output tool (xcpretty) is installed
- xcprettyVersion: 0.3.0

Hi @kndl22,
Can you please provide a link to your build and enable support access in project settings?

Hi @non-binary ,
Support access enabled, and the build is:
https://app.bitrise.io/build/579d9a3e0cd707d8#?tab=log

I am getting same issue .

Issue solved when setting Project (or Workspace) path to
$BITRISE_PROJECT_PATH/ios/Runner.xcworkspace/
This happens probably because the flutter project structure is bit different.

I try $BITRISE_PROJECT_PATH/ios/Runner.xcworkspace/  but still the same issue
Runner.xcworkspace exist in git

Hey @kndl22 , can you pls explain the problm in detail.

Hi @kndl22 ,
sorry for the late response!
I think the original issue here is an incorrect configuration:
The ProjectPath input should point to an Xcode project (.xcodeproj) or workspace (.xcworkspace) path, described in the step.yml, but not validated during the step input parsing so that the step fails later in case of an invalid project path.
In version 3.2.3 we introduced more validation on the ProjectPath input so that the step will fail early in case of incorrect configuration.
I'll close this issue, but if you need more info/help just let us know by opening a new one!


Firefox brower bond window translucent

When opening a bond window on firefox, the window is translucent and the background does not blur, making interaction difficult. on brave it works well, the background blurs and the bond pop out is opaque.

The thing about this issue is we are using 'backdrop-filter' css property to make blur happen when we open the Modal. and according to documentation, this property is not supported by Firefox browser (by default), and has to be manually enabled by client.

I cant assign this to myself but I am going to fix it.


added stac title if in metadata

Currently the title field was just a replica of the id field in the STAC metadata.
This PR would add the possibility to define a title for a ODC product and view it in the STAC metadata.
Sample product/dataset definition showing how to include a title:
product.yaml
name: vhi_clone
description: The Vegetation Health Index (VHI) is based on a combination of products extracted from vegetation signals, namely the Normalized Difference Vegetation Index (NDVI) and the land surface temperature, both derived from MODIS satellite data. The NDVI is based on 8 day maximum value composite MOD09Q1 (v006) reflectance and the land surface temperature (LST) on 8 day MOD11A2 (v006) LST products. The spatial resolution is 231 m, therefore the original 1000 m resolution of the MOD11A2 LST is downscaled to 231 m of the MOD09Q1 reflectance. Both products are masked to the highest quality standards using the provided quality layers. Missing pixel values in the time series are linearly interpolated. Non-vegetated areas are masked using the most recent Corine Land Cover product version for the according year. The final product is regridded to the LAEA Projection (EPSG:3035). The VHI relies on a strong inverse correlation between NDVI and land surface temperature, since increasing land temperatures are assumed to act negatively on vegetation vigour and consequently to cause stress. The data is provided as 8 day measures. The time series is starting from 2001. The VHI values range from 0-100, whereas high values correspond to healthy vegetation and low values indicate stressed vegetation.
metadata_type: eo3

license: CC-BY-4.0

metadata:
  product:
    name: 8d_vhi
  title: Vegetation Health Index - 231 m 8 days

load:
  crs: EPSG:3035
  resolution:
    x:<PHONE_NUMBER>62999987
    y: -231.656358263001010
  align:
    x:<PHONE_NUMBER>4019936
    y:<PHONE_NUMBER>2369626
measurements:
  - name: 8d_vhi
    dtype: "uint8"
    units: "1"
    nodata: 255

dataset.yaml
$schema: https://schemas.opendatacube.org/dataset
crs: EPSG:3035
grids:
  default:
    shape: [3606, 4430]
    transform: [231.656358263, 0.0, 3829491.91275753, 0.0, -231.656358263001, 3051286.45355171,
      0.0, 0.0, 1.0]
id: fe9c2536-4b99-4011-b2e0-b00844f9c62f
lineage: {}
measurements:
  8d_vhi: {path: vhi_8d_doy2016321_231m_laea.tif}
product: {name: 8d_vhi}
title: Vegetation Health Index - 231 m 8 days
properties: {datetime: 2016-11-16 00:00:00+00:00, odc:file_format: GeoTIFF}

output stac metadata from the explorer:
{
  "type": "Collection",
  "id": "vhi_clone",
  "stac_version": "1.0.0",
  "description": "The Vegetation Health Index (VHI) is based on a combination of products extracted from vegetation signals, namely the Normalized Difference Vegetation Index (NDVI) and the land surface temperature, both derived from MODIS satellite data. The NDVI is based on 8 day maximum value composite MOD09Q1 (v006) reflectance and the land surface temperature (LST) on 8 day MOD11A2 (v006) LST products. The spatial resolution is 231 m, therefore the original 1000 m resolution of the MOD11A2 LST is downscaled to 231 m of the MOD09Q1 reflectance. Both products are masked to the highest quality standards using the provided quality layers. Missing pixel values in the time series are linearly interpolated. Non-vegetated areas are masked using the most recent Corine Land Cover product version for the according year. The final product is regridded to the LAEA Projection (EPSG:3035). The VHI relies on a strong inverse correlation between NDVI and land surface temperature, since increasing land temperatures are assumed to act negatively on vegetation vigour and consequently to cause stress. The data is provided as 8 day measures. The time series is starting from 2001. The VHI values range from 0-100, whereas high values correspond to healthy vegetation and low values indicate stressed vegetation.",
  "links": [
    {
      "rel": "root",
      "href": "http://<IP_ADDRESS>:9000/stac",
      "type": "application/json",
      "title": "Default ODC Explorer instance"
    },
    {
      "rel": "self",
      "href": "http://<IP_ADDRESS>:9000/stac/collections/vhi_clone"
    },
    {
      "rel": "items",
      "href": "http://<IP_ADDRESS>:9000/stac/collections/vhi_clone/items"
    },
    {
      "rel": "child",
      "href": "http://<IP_ADDRESS>:9000/stac/catalogs/vhi_clone/2016-11"
    }
  ],
  "stac_extensions": [],
  "title": "Vegetation Health Index - 231 m 8 days",
  "extent": {
    "spatial": {
      "bbox": [
        [
          3.080800333295437,
          42.841014591998366,
          17.523924303829347,
          50.36459883616284
        ]
      ]
    },
    "temporal": {
      "interval": [
        [
          "2016-11-16T00:00:00Z",
          "2016-11-16T00:00:00Z"
        ]
      ]
    }
  },
  "license": "CC-BY-4.0",
  "providers": []
}

You correctly note that the title would need to be added to every dataset under the product as well.
I see no other obvious impediments to merging this PR.


☕ make it possible to build the project with Java17

There were 2 issues:

AGP using Gson + Reflection
Gradle 5.6 not supporting Java-17 for some Groovy reason

Leverage Gradle toolchains to compile with Java8 and run tests with Java11.

@BoD I just pushed a couple of commits to use only one toolchain in CI (11) and instead set the target version to 8 using compiler options. This might shave a bit of time in CI. Do you mind checking again (sorry for the last minute change)

Yes no worries, and this looks good! 👍

FWIW, that's the latest CI run:

Compared to before:

Not a huge difference (espectially, since the times are not 100% reproducible) but I like to see we gained a couple of minutes.


Specify memory regions for .Reset and .PreResetTrampoline

shamelessly copied this from the cortex-m-rt linker file
without them the linker throws errors.
In newer versions of cortex-m-rt you only need the reset region specified, but this works with the current version, and I didn't want to create a PR in xmc1100-rs to update the cortex-m-rt version there too.

Damm you, non-semver updates, the old Cargo.lock still worked. Thanks for the PR!


Dependencies Cleanup

Need to take a hard look at all our dependencies.
This impacts security, development workflow (slow builds), and page load times.

@irmerk So shall I start working upon this issue.

Could you please outline what you plan to change here before opening a PR?

@irmerk Here the things that I noticed before opening a PR is that I checked each file of the package twice and saw that the package doesn't depend upon the two repositories like rimraf and npm-run-all.These have their usecase in storybook package only and it is safe to remove these dependencies from the package.

@irmerk Can you assign this to me?
My approach is to use depcheck to analyze dependencies by using the information provided by npm

@Hanaffi Good spot.But depcheck has its own limitation. When I ran npx depcheck then I got this.

Here dependencies of rollup,stylelint,lint-staged were used but depcheck ignored those since it doesn't check .rc , .config.js etc files. So it can't be relied much. Here I agree that is-url should be added but other dependencies weren't required as it can perform it's function without them as well.

Sorry for the delay, I think this makes sense @Cronus1007


Consider not posting "Invalid Dangerfile file" error as comment

Report
What did you do?
When a Dangerfile is invalid, the error is posted as a comment. This can create security problems if the error contains tokens that are masked as CI/CD variable, but wouldn't be masked when printed in a comment.
Similarly to https://github.com/danger/danger/issues/1351, here the problem is that the error is actually posted as a comment, circumventing any CI/CD "masking" feature (such as the one GitLab provides) that hides variable values from job logs.
What did you expect to happen?
Danger should not post a message in the PR/MR when the Dangerfile is invalid. The error can already be seen in the job logs, which should be sufficient and less confusing for people looking at the PR/MR comments.
What happened instead?
Similarly to https://github.com/danger/danger/issues/1351, here the problem is that the error is actually posted as a comment, circumventing any CI/CD "masking" feature (such as the one GitLab provides) that hides variable values from job logs.
Your Environment

Which CI are you running on?

GitLab

Are you running the latest version of Danger?

8.4.2

What is your Dangerfile?

Doesn't really matter here.

Fixed in #1354


playground doesn't work

(index):16 Error: Fetch error: 404 Not Found
Instantiating http://localhost:3000/dist/service-core.umd.js
Loading http://localhost:3000/.playground/index.js
Loading .playground/index.js
at system.src.js:1475
at ZoneDelegate.invoke (zone.js:388)
at Zone.run (zone.js:138)
at zone.js:858
at ZoneDelegate.invokeTask (zone.js:421)
at Zone.runTask (zone.js:188)
at drainMicroTaskQueue (zone.js:595)

I got the same problem... Cant work with it...

same here...
If I can help I have errors when launching "npm run playground"
Error: ENOTEMPTY: directory not empty, rmdir 'C:\easyPhp\eds-www\git\ngx-mat-lib\.tmp'

OR some other error on the mkdir .tmp - no permission
Altough at the end the server is running, it fails loading generator-test.umd.js

@izifortune — Would you be able to have a look at this? Thanks in advance!


Add support for conway era protocol parameters

Changelog
- description: |
    <insert-changelog-description-here>
# uncomment types applicable to the change:
  type:
  # - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - improvement    # QoL changes e.g. refactoring
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context
Part of: input-output-hk/cardano-cli#288
Requires:

https://github.com/input-output-hk/ouroboros-consensus/pull/352
~~https://github.com/input-output-hk/cardano-ledger/pull/3738~~
https://github.com/input-output-hk/cardano-api/pull/270/

Prerequisite for:

https://github.com/input-output-hk/cardano-cli/pull/293

Checklist

[ ] Commit sequence broadly makes sense and commits have useful messages
[ ] The change log section in the PR description has been filled in
[ ] New tests are added if needed and existing tests are updated.  These may include:

golden tests
property tests
round trip tests
integration tests
See Running tests for more details

[ ] The version bounds in .cabal files are updated
[ ] CI passes. See note on CI.  The following CI checks are required:

[ ] Code is linted with hlint.  See .github/workflows/check-hlint.yml to get the hlint version
[ ] Code is formatted with stylish-haskell.  See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
[ ] Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7

[ ] The changelog section in the PR is updated to describe the change
[ ] Self-reviewed the diff

Closed in favour: https://github.com/input-output-hk/cardano-api/pull/270


V3 Capi documentation does not list return structure

Issue
V3 Capi documentation does not list return structure. It only lists query parameters and permitted roles. It does not say what to expect from the API (aka service contract).
Context
Old V2 Capi documentation (e.g. https://apidocs.cloudfoundry.org/15.3.0/services/list_all_services.html) lists actual response body, and expected members. That helps to design a consuming class (a dotnet class in my case). But V3 documentation (e.g. http://v3-apidocs.cloudfoundry.org/version/release-candidate/#list-droplets-for-an-app) just shows who can consume the API in terms of permitted roles and query parameters. This is equivalent to consumer side of service contract.
Without the provider side of service contract its hard to program the consumer. Can Pivotal/CloudFoundry add return data structure details?

@mvadu For the expected format of returned objects you can look at the individual object documentation e.g: http://v3-apidocs.cloudfoundry.org/version/release-candidate/#the-droplet-object
Is there a reason this is not sufficient?

@sethboyles It is probably, but the said object is not linked from page for List droplets for an app page. Probably having a simple header
Returns
the-droplet-object
Reason is if you look at same droplet object definition, it has a buildpack object reference, but that buildpack is different from the-buildpack-object.
Making the return objects types cross linked in the API reference makes life easier when you have to write a consumer code and make sure the deserialization  works.


crusher charge still makes you go through barricades

Description
Crusher can still charge straight through barriers, getting stuck behind it and causing general chaos, it happens from the outer side of barricades aswell as the side, from the side you only go through 1 cade then you get stopped, this includes cades with barbed wire.
Reproduction
-be crusher
-find cade line
-charge directly at it from anywhere the cade touches the tiles edge
-end up stuck behind the cade without any way to get out
Screenshots

Additional context
i think whats happening is you get stopped on the tile the cade is on instead of right before it, im not sure if the cade even properly takes damage
I only tested this in one round yesterday and i was able to reproduce it 100% of the time i tried with cades that were abandoned, first time i did it had no idea this bug existed and charged into a cadeline with 10 marines to damage it, and caused that entire cadeline to fall as a result of the chaos that ensued from me suddenly popping up next to them

This is to do with the physics update time, we often have to turn down the tick rate when it gets laggy

Got two recordings of this happening. This is a pretty active issue that is happening quite recently. I made a bug report for some people on discord who don't use Discord to document this as well.
Here are two active recordings of this happening. The only way to deal with this is to have some level of math that checks in a previous tick right before impact, what side the crusher was on. If the tickrate is so low and causes the crusher to be so far on the other side, that they pop up on the other side, some math needs to happen to predict this, and always place the crusher on the side they charged from.
My head thinks Super Mario 64 sub-tick collision. I have brainrot (but something like that, as funny as it is to mention)
https://github.com/user-attachments/assets/caefb11c-6aaa-4167-b211-9c5284a91052
https://github.com/user-attachments/assets/299fcfbf-2db0-474e-a041-40e62fed7777

Fixed from new server pretty sure

Fixed from new server pretty sure

Yup havent experienced this yet again, gonna close thanks for the reminder <3


Execute sinfo with batchspawner.run_command

We are using jupyterhub_moss in our cluster, but we found some trouble with the sinfo command. Please consider the following PR which addresses some of this issues.
Changelog:

The command sinfo is currently executed with subprocess.check_output(). However batchspawner already provides a more powerful run_command() that is asynchronous. This PR removes the dependency on subprocess to rely on batchspawner.
Added the option to easily customize the sinfo command
Prepend SlurmSpawner.exec_prefix to sinfo. Anything in exec_prefix needed to execute sbatch or squeue  will also be needed to execute sinfo.

What was your issue with running sinfo beyond the exec_prefix not being used?

Hi @t20100 , we have a particular setup where JupyterHub is run in a very minimal container without Slurm. All s commands are executed on a remote host through SSH, which adds some latency to the call. That's why using async is beneficial and we also need exec_prefix with templating as we define the ssh command there.

@lexming if you want that I tag a release with this PR, just let me know.


[Issue] white screen when clicking GENERATE

Hi, I was testing the application: great job so far I really love it.
I encountered a stopping bug that occurred when I tried to click the generate button.
please find attached a dash of the bug

Flowtest shows a white window and forces me to force close

Watch white window flowtest on Dashcam

thanks for reporting this.
I was able to reproduce this, looks like we didn't do proper safeguarding in case the OPENAI key is not added.
To over come this bug, one can do step 6 listed in https://flowtestai.gitbook.io/flowtestai/generative-ai , then selecting the model won't give a white screen

fixed in https://github.com/FlowTestAI/FlowTest/commit/c7011592d408440c717173bc3b01bb79f74f27d3


Add links to view files in browser

I pushed a commit that uses mime_guess to guess the correct content type.
I was thinking that perhaps we should switch the presentation of the "view" and "download" links.
I think of "view" as being the default action, i.e. when you click a link, the browser will display its content, and "download" as being a non-default action. So it would make more sense to me to have the name of the file be the "view" link, and having the second link, with the text "download", be the download link.
I think this would be intuitive for users, since, for example, if you had an html file in the www directory, clicking on the main link would navigate to that document, which I think is what most people would expect.
What do you think?


Promise.done is deprecated.

I received this issue when using Atom:
Atom now uses ES6 Promises instead of Q. Call promise.then instead of promise.done
Promise.done (<embedded>:1685:9)
Object.toggle (/Users/ericmjl/.atom/packages/revealjs-preview/lib/revealjs-preview.coffee:48:12)
HTMLElement.atom.commands.add.revealjs-preview:toggle (/Users/ericmjl/.atom/packages/revealjs-preview/lib/revealjs-preview.coffee:15:26)
CommandRegistry.handleCommandEvent (<embedded>:23866:49)
Object.didConfirmSelection (<embedded>:46281:35)
SelectListView.confirmSelection (<embedded>:54400:26)

Looks like others have already reported this. Closing.


Test results scroll bar missing

Using Atom version 1.2.1 and mocha-test-runner version 0.4.5. I noticed that after I updated to 1.2.1 the scroll bars for the results pane were missing. I can't scroll down to see the rest of the results.

Thanks, this should be fixed by #47 that just landed. Can you try version 0.4.6 and let us know?

Looks like it's working now! Thanks!

Good find. Happy to leave this issue (#48) open to discuss ideas/fixes.

@dwillsedulog, a new fix from @myoushu was published as 0.4.7 which should fix everything! Cheers


Ability to set a foreignkey by its name rather than the field name(s)

A foreignkey can be either set by explicitly setting the attribute field or by using the foreign key name instead. Example:
var Photo = ziti.define('Photo', {
    path: ziti.String,
    owner: ziti.ForeignKey(User)
});

// ...
var photo = Photo.build({ path: '/path/to/kitty.jpg', owner_id: 10 });
// or
var photo = Photo.build({ path: '/path/to/kitty.jpg', owner: user });
// user being a model instance of User or an object matching a User row
// this automatically sets owner_id to user.id

See 17955b216486a5b42b6b933fc8a86d800e123a51


forget add map_location for torch.load

In  test_fastdvdnet.py , please change
state_temp_dict = torch.load(args['model_file'])
to
state_temp_dict = torch.load(args['model_file'], map_location=device)

done.
thanks for the suggestion


Use new names of raml-toolkit handlebarsAmfHelpers

Note: This PR technically breaks npm run updateApis, but that's okay, because it will be immediately followed by #238, which fixes it.


Firestore client retries a transaction when a document already exists

This issue relates to the fix introduced for https://github.com/googleapis/nodejs-firestore/issues/827
Current behavior
When a document already exists, if one tries create a document using the same path with create() inside of a transaction, the transaction will keep retrying until it runs out of attempts.
Expected behavior
When a document is created with create() inside of a transaction, the transaction should intermediately terminate and throw the error.
Environment details

OS: Ubuntu 19.10
Node.js version: 10.18.0
npm version:6.12
@google-cloud/firestore version: 3.4.0

Note: This is next on my list, but I will be out on vacation until Feb 18.


Failed RX-TX transmission using Bumblebee with Killerbee

Problem Description
When using KillerBee to make state transitions from sniffer mode to transmission mode, the bumblebee will crash and disconnect with KillerBee. A small piece of test codes is given as follows.
kb = KillerBee();
kb.set_channel(25);
kb.sniffer_on();
kb.sniffer_off();
while True:
  pkt = create_packet(); // Any packet you want. One can also use create_beacon() in zbfakebeacon to create beacon packets to test
  kb.inject(pkt);

Running the above test codes, Bumblebee can send packets for the first time. However, for the second time, exceptions are triggered.
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b0-py3.8-linux-aarch64.egg/EGG-INFO/scripts/zbfakebeacon", line 94, in <module>
    kb.inject(pkt)
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b0-py3.8-linux-aarch64.egg/killerbee/__init__.py", line 358, in inject
    return self.driver.inject(packet, channel, count, delay, page)
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b0-py3.8-linux-aarch64.egg/killerbee/dev_bumblebee.py", line 389, in inject
    self.send_packet(packet)
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b0-py3.8-linux-aarch64.egg/killerbee/dev_bumblebee.py", line 180, in send_packet
    self.send_message(
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b0-py3.8-linux-aarch64.egg/killerbee/dev_bumblebee.py", line 169, in send_message
    sent += self.dev.write(Bumblebee.EP_OUT, buf[i*64:(i+1)*64])
  File "/usr/lib/python3/dist-packages/usb/core.py", line 943, in write
    return fn(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 819, in bulk_write
    return self.__write(self.lib.libusb_bulk_transfer,
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in __write
    _check(retval)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 595, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 19] No such device (it may have been disconnected)

Solution
In PROCESS cc2531_rf_sniffer, before calling radio_got_packet(), first check the sniffer state of the radio, i.e., g_radio_state in radio.c. radio_got_packet() is called only if
g_radio_state.sniffer_enabled == SNIFFER ON
A fixed version is implemented in the latest commit of my repo . Please have a look first.

Okay, I guess I know what's happening here. It looks like the radio stack is shut down when sniffer_off() is called, causing some issues when you need to send packets in the code after that. The radio must be on at all time, and as you suggested the sniffer must only notify received packets when sniffer is on. It must discard them when sniffer is off, but still fetches received packets to empty the RX buffer.
I also found some issues with the python code handling the device in Killerbee and will update my repo and send a PR to riverloopsec's repo.
Stay tuned, things will work better soon ;)

Great news. :)
I am sorry that previously I was too busy and didn't focus on this thread. I forgot to mention that if one commented the line kb.sniffer_off(), the above issue would disappear, which means that the issue lies in the calling of sniffer_off(). Now we have made agreements, and I am happy this issue is solved. I will close this thread. :-)


[release-1.8] sync envoy release/v1.16

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

@howardjohn could you merge this (not squash) once the CI passes? We need to find a better way to do this, though, since most of those commits are already merged, but squashed in the previous sync commit (#294).

@lambdai: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

test-tsan_envoy_release-1.8
8f23b1f37be07a0f04c7937422c425ab86123a98
link
/test test-tsan_envoy_release-1.8

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@PiotrSikora if we want to try it out just remove the hold

Thanks!

History retained, perfect!


megacmd install fails

Describe the bug
When installing megacmd on Nixos, the package fails to install:
error: builder for '/nix/store/nzlpysscxw8pvlf8y2cw5irz758zzlsp-megacmd-1.4.0.drv' failed with exit code 1;
       last 10 log lines:
       > autoreconf: running: aclocal --force -I m4
       > aclocal: warning: couldn't open directory 'm4': No such file or directory
       > configure.ac:53: error: AM_INIT_AUTOMAKE expanded multiple times
       > /nix/store/gyd21xwc9fw3g68f5dqczfhjk2jh3za7-automake-1.16.5/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from...
       > configure.ac:40: the top level
       > /nix/store/gyd21xwc9fw3g68f5dqczfhjk2jh3za7-automake-1.16.5/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from...
       > configure.ac:53: the top level
       > autom4te: error: /nix/store/vp3ccg1qa4486g8qgkjpvmjpi5p3yv5s-gnum4-1.4.19/bin/m4 failed with exit status: 1
       > aclocal: error: /nix/store/khilbv2w0ixj55clcpsjzpaq0l1bhh2j-autoconf-2.71/bin/autom4te failed with exit status: 1
       > autoreconf: error: aclocal failed with exit status: 1
       For full logs, run 'nix log /nix/store/nzlpysscxw8pvlf8y2cw5irz758zzlsp-megacmd-1.4.0.drv'.
error: 1 dependencies of derivation '/nix/store/283k1pwc530fz24429s4hj8p993kdm14-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g8pgwhrql8nh4769i1gjfg7a7pbfcp5j-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hw8ifng38l44wr1fawr4s41ak4vrmz78-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c0ffxyv1b5zfysw01ay6y2mi14fzz8hf-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/17jjadhvahyki6d20dpmvpzrw8f0g1cv-nixos-system-tuxedo-22.05.20211230.5b091d4.drv' failed to build

Steps To Reproduce
Steps to reproduce the behavior:

add megacmd to configuration.nix
rebuild and switch

Expected behavior
megacmd gets installed and is working find.
Screenshots
If applicable, add screenshots to help explain your problem.
Notify maintainers
@lunik1
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.11, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5.1`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos

The relevant usptream bug is  meganz/MEGAcmd#590. It is due to a previous autoconf warning becoming an error.


Does the latest version support multi-collection transaction?

Hi, I don't see any document regarding the multi-collection transaction support. Can someone please give me some hint?

Hi @loudywen, thanks for your inquiry.  I need some more information to be able to assist.  Could you fill out the missing details below?
Setup (please complete the following information if applicable):

Version and name of the Library used

@joshfree
  <dependency>
            <groupId>com.azure</groupId>
            <artifactId>azure-spring-data-cosmos</artifactId>
            <version>3.4.0</version>
        </dependency>

I would like to know how the cosmos DB SQL rollback if an exception happen

Thanks @loudywen for the extra details.  @kushagraThapar from the Cosmos team will be able to follow up

@anfeldma-ms - can you please help @loudywen  on the above ask ?

@anfeldma-ms will you able to answer my question?

@loudywen apologies for late reply, Transactional batch / bulk support is not present in azure-spring-data-cosmos, but is present in native azure-cosmos java SDK. We soon plan to build it in spring data cosmos as well. For the time being, please use through cosmos java SDK, thanks!
Closing this issue because of inactivity.


style: improve error messages

Please describe the changes this PR makes and why it should be merged:
Currently, when the name regex validation fails, the error message is just Invalid and doesn't say what's wrong. This PR adds a custom error message to give some more information in that scenario.
Status and versioning classification:

Code changes have been tested, or there are no code changes
I know how to update typings and have done so, or typings don't need updating

Codecov Report

Merging #61 (be10850) into main (0263f00) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #61   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           21        21
  Lines          276       276
  Branches        37        37
=========================================
  Hits           276       276

Impacted Files
Coverage Δ

src/interactions/contextMenuCommands/Assertions.ts
100.00% <ø> (ø)

src/interactions/slashCommands/Assertions.ts
100.00% <ø> (ø)

Continue to review full report at Codecov.

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


MongoDb Client Failed an attempt at an implicit many to many relationship query

Hi Prisma Team! My Prisma Client just crashed. This is the report:
Versions

Name
Version

Node
v14.15.4

OS
windows

Prisma Client
2.21.2

Query Engine
query-engine e421996c87d5f3c8f7eeadd502d4ad402c89464d

Database
undefined

I was testing the mongodb early release, I did attempted to do a create implicit many to many relationship but the client crashed, I have included the schema and code at the moment of the
Schema
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

datasource db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["mongodb"]
}

// Create our post schema. All posts have a title, slug and body.
// The id attributes tell Prisma it's a primary key and to generate
// object ids by default when we insert posts.
model Post {
  id       String    @id @default(dbgenerated()) @map("_id") @db.ObjectId
  slug     String    @unique
  title    String
  body     String
  comments Comment[]
  authors  Author[]
}

// Comments contain a comment string and connect back to the post.
// postId must have @db.ObjectId to match up with Post's id type
model Comment {
  id      String @id @default(dbgenerated()) @map("_id") @db.ObjectId
  post    Post   @relation(fields: [postId], references: [id])
  postId  String @db.ObjectId
  comment String
}

model Author {
  id        String @id @default(dbgenerated()) @map("_id") @db.ObjectId
  firstName String
  lastName  String
  posts     Post[]
}

Code used at the time of failure
import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();

async function main() {
    await prisma.$connect();

    await prisma.post.create({
        data: {
            title: "Prisma <3 MongoDB",
            slug: "prisma-loves-mongodb",
            body: "This is my first post. Isn't MongoDB + Prisma awesome?!"
        }
    });

    await prisma.post.create({
        data: {
            title: "Prisma is a type-safe MongoDb client",
            slug: "prisma-is-type-safe-mongodb-client",
            body: "This is my second post."
        }
    });

    await prisma.author.createMany({
        data: [
            { firstName: "Luke", lastName: "Skywalker" },
            { firstName: "Anakin", lastName: "Skywalker" },
        ]
    })

    const author = await prisma.author.findFirst({
        where: {
            firstName: "Luke"
        }
    })

    await prisma.post.update({
        where: {
            slug: "prisma-is-type-safe-mongodb-client",
        },
        data: {
            authors: {
                connect: {
                    id: author.id
                }
            },
            comments: {
                createMany: {
                    data: [
                        { comment: "Great post!" },
                        { comment: "Can't wait to try this!" }
                    ]
                }
            }
        }
    })

    const posts = await prisma.post.findMany({
        include: {
            comments: true,
            authors: true
        }
    });

    console.dir(posts, { depth: Infinity });

}

main()
    .catch(console.error)
    .finally(() => prisma.$disconnect())

Query
query {
  findManyPost {
    id
    slug
    title
    body
    authors {
      id
      firstName
      lastName
    }
  }
}

Logs
  prisma:tryLoadEnv Environment variables loaded from C:\Users\jc601810\workspace\Learnings\prisma-blog-mongodb\.env
  prisma:tryLoadEnv Environment variables loaded from C:\Users\jc601810\workspace\Learnings\prisma-blog-mongodb\.env
  prisma:client clientVersion: 2.21.2
  prisma:engine {
  prisma:engine   cwd: 'C:\\Users\\jc601810\\workspace\\Learnings\\prisma-blog-mongodb\\prisma'
  prisma:engine }
  prisma:engine Search for Query Engine in C:\Users\jc601810\workspace\Learnings\prisma-blog-mongodb\node_modules\.prisma\client
  prisma:engine Search for Query Engine in C:\Users\jc601810\workspace\Learnings\prisma-blog-mongodb\node_modules\.prisma\client
  prisma:engine {
  prisma:engine   flags: [
  pris

Thanks for the details, I can reproduce this bug in 2.23.0-dev.28

Awesome, thanks love the prompt response looking forward to this

It's not a bug, you need to model your m2m relations differently for MongoDb:

model Post {
    id         String    @id @default(dbgenerated()) @map("_id") @db.ObjectId
    slug       String    @unique
    title      String
    body       String
    comments   Comment[]
    author_ids String[]  @db.Array(ObjectId)
    authors    Author[]  @relation(fields: [author_ids])
}

// ...

model Author {
    id        String   @id @default(dbgenerated()) @map("_id") @db.ObjectId
    firstName String
    lastName  String
    post_ids  String[] @db.Array(ObjectId)
    posts     Post[]   @relation(fields: [post_ids])
}


Issue with k8s.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/

This is a Bug Report

Problem:
Pods network related options removed from documentation which was earlier there.
Proposed Solution:
kindly add back.
Page to Update:
https://kubernetes.io/...

hi, the removal is intentional, see:
#22600
#22600 (comment)
#22961
/triage support
/close
/sig cluster-lifecycle


Docs issue-4158: add SingleBookLink

Type of change

Documentation

Description
Add SingleBookLink
Checklist

[ ] Update/write design documentation in ./documentation/design
[ ] Write tests and make sure they pass
[X] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[ ] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
[ ] Update CHANGELOG.md

Can one of the admins verify this patch?

@lulf Changed per our discussion

@lulf removed for now


feat(forge): retries and timeouts for fork testing

Component
Forge
Describe the feature you would like
https://github.com/foundry-rs/foundry/pull/2918 added support for retries and timeouts in Anvil, but these features don't seem to be available in Forge when fork testing, e.g. when using the createSelectFork cheat.
It should ideally be possible to specify the number of retries and the timeout via the CLI or foundry.toml.
Additional context
Alchemy's docs on retries: https://docs.alchemy.com/reference/throughput#retries.

Looks like we are supporting this as of https://github.com/foundry-rs/foundry/pull/6582/files + https://github.com/foundry-rs/foundry/issues/6532
The syntax for foundry.toml looks like this
[rpc_endpoints]
mainnet = { endpoint = "${_CONFIG_MAINNET}", retries = 3, retry_backoff = 1000, compute_units_per_second = 1000 }

cc @mattsse

yeah this is also uses the regular retry provider now


fix: add ctrl+c 130 listener

@W-14406056@

QA: compiled this code to /lib and then copied that into the CLI's corresponding file
ran sf plugins (oclif) and sf org list (sfCommand),
✅ no issues
let's ctrl-c something
➜  sf-plugins-core git:(wr/exitCode) sf org list
^C
➜  sf-plugins-core git:(wr/exitCode) echo $?
130
➜  sf-plugins-core git

Not tested: the other signals.


Uncaught DOMException: Failed to execute 'pushState' on 'History': function (data) { } could not be cloned.

Question? bug?
recently I migration history V1.13.0 to V4.7.2 , i got an error when i use history.push .
more detail see below :
reason: some param in the state is a method
code: history.push('/abc',{callback: () => {// done something});
error:

Uncaught DOMException: Failed to execute 'pushState' on 'History': function (data) {
// done something } could not be cloned.

this problem never found in V1.13.0
there are other ways to solve this problem?
thanks advance

Any solution for functions in state?  I'm having this problem for any function that I pass as state

I got this error when trying to add state (object) which contained something it didn't like. The data actually represented a caught error so in certain cases it worked and others it wasn't serializable (or whatever is needed).
I solved it using https://www.npmjs.com/package/safe-json-stringify which can serialize something even if it has functions or circular references. For error handling this was exactly what I wanted - a guarantee that the caught string could be serialized as best as possible.


Add option to disable background interaction

I added an option to disable background interaction in case if there are buttons or text fields behind the list.

Good ;)


Standard deviation in prediction decreases for points further in the future

The figure below shows the bivariant gauss distribution of the model's prediction. It contains the 25 timesteps of the most likely maneuver (fut_pred_max). The model was trained with default settings on the NGSIM data set as described.
As you see in the figure, predicted points that are nearer in the future have a higher variance than points that are further in the future. Looking at the pure number confirms this.
How is this possible? Usually, the further the prediction is in the future the less certain you are about the exact position. So the variance should increase over time. Any help is appreciated!

Maybe the following figure makes it a bit clearer. Starting point is on the top of the image.
I am also wondering about the very small variances in driving direction compared to the lateral variances...

Are you directly using the model outputs for the plot? The model outputs the reciprocal of standard deviations.

Thanks for your answer! That explains a lot...
Is there a reason for using the reciprocals?
Where is it defined? I guess only by the NLL loss, am I right?

Yes, it's defined purely by the NLL loss. sigX and sigY are just constrained to be positive.
If all multiplications in the NLL expression with sigX or sigY were swapped with divisions, the interpretation of the model's outputs would be the standard deviations rather than their reciprocals.


Support dynamic name of icons for iOS

Hi,
I got a problem using an IPA which has an icon name generate at compile time.
I edit your code to support this case.
The name of the icons are retrieved from the PList directly and I generate differents string name (with @3x and @2x).
By default the code will lookup for iPhone icons first then iPad. If nothing is found it will try to get<EMAIL_ADDRESS>As always I did the JS script, I let you the pleasure to do the CoffeeScript :)
I added a small test in test/ios.js too.
Have a nice day,
Spoke.

Up :)

@tspoke sorry for the delay. Actually what do you say to switching this library to JS only by removing the coffeescript and using es6?

@jakubknejzlik Your library is pretty good and I don't have any other issues. Rewriting it in full JS is not very useful I think and we will spend time on something already working ! :)
Btw, if you have another project to work on, poke me ;)

Yeah, sure, just send me an email to<EMAIL_ADDRESS>if you have spare time :)


Added Map

I just realized that my "added markers" part of this last commit is not directly related to this PR (just setting up the map). To make sure that my PRs don't have unrelated changes, should I close this PR and make an entirely different PR that includes both the new additions and the suggestions you guys give? I feel like this might hinder me from merging to master though

will figure out how to coordinate html files with the "content" section in the info windows to avoid cluttering the js file!

The style guide says to indent at least 4 spaces when line wrapping.
For line 89 in my js file, I decided to indent to where the first parentheses is. Would this be okay, or should I just keep it to 4 spaces instead?

The style guide says to indent at least 4 spaces when line wrapping.
For line 89 in my js file, I decided to indent to where the first parentheses is. Would this be okay, or should I just keep it to 4 spaces instead?

I think what you have is fine. it is 4+ spaces like the style guide says. I think it's kind of a stylistic preference and I'm ok with either one since we don't have any programmatic enforcing of formatting available.


Leverage AlsoUsableForAttribute for more interoperable typedefs

https://github.com/microsoft/win32metadata/issues/251 was just merged which adds AlsoUsableForAttribute. Is that worth waiting for?
Originally posted by @jnm2 in https://github.com/microsoft/CsWin32/issues/185#issuecomment-800652291
Also to accept SafeHandle everywhere that accepts the base type struct (e.g. HGDIOBJ, as mentioned in #205).

An interesting sanity check after this feature is implemented would be to see if this sample compiles without errors:
using System.Drawing;
using Windows.Win32.Foundation;
using Windows.Win32.Graphics.Gdi;
using static Windows.Win32.PInvoke;

class Helper
{
    public Bitmap GetScreenCapture(HWND handle)
    {
        Bitmap bitmap;

        RECT region;
        GetWindowRect(handle, out region);

        HWND desktopWindowHandle = GetDesktopWindow();
        HDC windowDCHandle = GetWindowDC(desktopWindowHandle);
        CreatedHDC memoryDCHandle = CreateCompatibleDC(windowDCHandle);
        HBITMAP bitmapHandle = CreateCompatibleBitmap(windowDCHandle, region.right - region.left, region.bottom - region.top);
        HGDIOBJ bitmapOldHandle = SelectObject(memoryDCHandle, bitmapHandle);

        bool success = BitBlt(memoryDCHandle, 0, 0, region.right - region.left, region.bottom - region.top, windowDCHandle, region.left, region.top, ROP_CODE.SRCCOPY| ROP_CODE.CAPTUREBLT);

        try
        {
            bitmap = Image.FromHbitmap(bitmapHandle);
        }
        finally
        {
            SelectObject(memoryDCHandle, bitmapOldHandle);
            DeleteObject(bitmapHandle);
            DeleteDC(memoryDCHandle);
            ReleaseDC(desktopWindowHandle, windowDCHandle);
        }

        return bitmap;
    }
}

Thanks to https://github.com/dotnet/pinvoke/issues/593 who provided this sample.

See also #491 which may make sense to fix at the same time as this one.


Bump go version to 1.22

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-1.0%) to 38.653%

Totals

Change from base Build<PHONE_NUMBER>:
-1.0%

Covered Lines:
5181

Relevant Lines:
13404

💛  - Coveralls

LGTM

@ykulazhenkov @e0ne can you please approve this one?


Jellyfish Controller continually going 'unavailable'

I've hardwired the controller into my network, yet HA (~20+ times a day) shows as 'unavailable'

Possible to update so only if it's unavailable for >60 seconds it registers?

Hi there, thank you for reporting this issue. I checked my logs and have the same issue intermittently. And you're right, it's a timeout issue. Right now the integration polls the Jellyfish controller every 15 seconds for new data, and this request will time out if there's no response after 10 seconds. It seems the controller sometimes gets bogged down and doesn't respond in time - and 10 seconds is honestly an eternity!
Your proposed solution is definitely an option but would result in pretty high lag (i.e. there would be a >15s delay for any state changes to be reflected in HA if you were controlling lights via the Jellyfish app, for example). I'm thinking the best fix for this would be to move away from polling altogether and leverage the push updates that are sent via the controller. If the push updates work well - I don't see any reason why they wouldn't - it's also much more efficient for HA & your network, and state updates will reflect in HA instantaneously. A nice upgrade all around.
This has been on my mind for a while but I never got around to it because polling "just worked". Let me look into it, and fingers crossed, I'll release an update soon with push enabled.

Quick update, I modified the integration to enable push and it seems to be working pretty well. The underlying library needs a slight upgrade though - I've submitted a PR that will need to be merged before this is released:
https://github.com/vinenoobjelly/jellyfishlights-py/pull/10

@markus99 I just released version 1.3.0 which should address this. It's a beta release at the moment. Please give it a shot and reopen this issue and/or create a new one if you run into any trouble.

Amazing, ty!  Super slammed with work and family for a bit, so might be a delay reporting back, but will do asap.  Nice work and ty again!


As a Harmonium contributor, I want a reusable ticket set up for new components

Background: Laura said that Aline had set up a ticket template somehow on a different project. Would be nice to have a template set up so that when people are creating a ticket for a new component, nothing gets missed.
Component Creation:
Scenario: Creating New Component:

[ ] Write a component like src/my-component.js.
[ ] Write an example file like docs-src/src/examples/my-component.js.example.

[ ] The module should have one or more named exports that are React components, defined with ES6 class syntax. (export class Example1 extends Compnent {})
[ ] Each example will be built into the docs site.

[ ]  Write a test file like src/my-component.test.js.

[ ] Run tests with npm test.
[ ] See test-config.js to see what additional globals are available in tests. (expect, shallow, mount, etc.)

Styles:
Scenario: Creating New Stylesheet + Vars

[ ]  Add an SCSS file like scss/components/_ComponentName.scss
[ ]  Update scss/components/_components.scss so that it imports your new component's style sheet.
[ ] New variables should be at the top of the component's style sheet (_ComponentName.scss) with !default tags.
[ ] Add all of the new vars to /harmonium/settings-templates/harmonium-settings.scss and remove the !default tags
[ ] Update the /harmonium/settings-templates/settings-templates.zip file (aka: re-compress the color-palette and harmonium-settings stylesheets and replace the settings-templates.zip).

Example Page Additions:
Scenario: Vars Table

[ ] Create a new folder in /docs-src/src/pages/components called ComponentNameTables
[ ] Create a new file in that folder called ComponentNameVars.js
[ ] Table details:

[ ] Table Headers: Variable Name, Default Value, Description
[ ] On small screens, there should be a Table.HeadStacked that says ComponentName Vars
[ ] The Table Data should include
[Column Header]
 before the table data so that the headers shows on small screens when the table stacks.
[ ] Make sure to check the settings file for any vars that were not listed at the top of the components stylesheet.

[ ] Import the ComponentNameVars file into the main example page: /docs-src/src/pages/components/ComponentName.js
[ ] After the ExampleSection include
Variables:

[ ] Then call in the table: <ComponentNameVars />

Scenario: Props Table

[ ] Create a new file in the ComponentNameTables folder called ComponentNameProps.js
[ ] Table details:

[ ] Table Headers: Name, Type, Default, Description
[ ] On small screens, there should be a Table.HeadStacked that says ComponentName Props
[ ] The Table Data should include
[Column Header]
 before the table data so that the header shows on small screens when the table stacks. Example:

Name:
 shrink

[ ] Include all possible props (also check the components file to make sure you didnt miss any props that were not listed on the site.)

[ ] Import the ComponentNameProps file into the main example page: /docs-src/src/pages/components/ComponentName.js
[ ] After the Variables section include
Properties:

[ ] Then call in the table: <ComponentNameProps />

Not sure if i need to add the Submitting Changes steps:

Fork the repository.
Set up the gem per the instructions above and ensure npm test
runs cleanly.
Create a topic branch.
Add tests for your unimplemented feature or bug fix.
Run npm test. If your specs pass, return to step 4.
Implement your feature or bug fix.
Re-run npm test. If your specs fail, return to step 6.
Thoroughly document and comment your code.
Add a usage example as src/ComponentName.example.js
Run cd docs-src && yarn && npm run develop and make sure your example loads and looks like you expect.
Add, commit, and push your changes.
Submit a pull request.

@CheetoMao Im wondering if when I create the template if I should write this in a more abbreviated form. And reference the contributing doc for detailed instructions. Example:
Component Creation:

[ ] Create component file
[ ] Add Example page for component
[ ] Set up tests for component
[ ] Reference CONTRIBUTING.md for specific instructions

Creating new stylesheets + Vars

[ ] Create new file for the components styles
[ ] Follow instructions from CONTRIBUTING.md

Example Page Additions:

[ ] Add Vars table to example page
[ ] Add Props table to example page
[ ] Reference CONTRIBUTING.md for specific instructions

OR if having everything listed out as AC's (like this tickets original comment) would be beneficial since contributors would actually have to go down the list and check off everything that they did.


Array properties: always be lenient about spaces

While PHPCS does not allow for additional spaces in custom properties which are passed through a ruleset, WPCS was already lenient about this when the property was (incorrectly) passed as a string.
This fix will also make WPCS lenient about this when the property is passed as an array.
Inspired by upstream issue squizlabs/PHP_CodeSniffer#1688
So for WPCS, all of the below four examples will now work properly as expected:
<property name="customAutoEscapedFunctions" value="foo, bar" />
<property name="customAutoEscapedFunctions" value="foo,bar" />
<property name="customAutoEscapedFunctions" value="foo, bar" type="array" />
<property name="customAutoEscapedFunctions" value="foo,bar" type="array" />

The upstream issue still stands, but a fix for that would only go into PHPCS master, so won't be available to us for a while. In the mean time, this will work for WPCS.
No unit tests included as this will not work when changing a property inline (PHPCS upstream issue).
I have tested this with a custom ruleset though and can confirm that the fix works.

A similar fix has been pulled upstream: https://github.com/squizlabs/PHP_CodeSniffer/pull/1689
If it is accepted, WPCS won't benefit from it until the minimum WPCS requirement has gone up to the PHPCS version in which this will be merged (if it will be merged).


numbered list type is not working

doc.list(["item1", "item2", "item3"], { listType: 'numbered' } as any);
it is only show bullted

i checked the source and i see they dont have any numbered options
here are a list of available options,
     /**  Set to false to disable line wrapping all together */         lineBreak?: boolean;         /** The width that text should be wrapped to (by default, the page width minus the left and right margin) */         width?: number;         /**  The maximum height that text should be clipped to */         height?: number;         /** The character to display at the end of the text when it is too long. Set to true to use the default character. */         ellipsis?: boolean|string;         /**  the number of columns to flow the text into */         columns?: number;         /** the amount of space between each column (1/4 inch by default) */         columnGap?: number;         /** The amount in PDF points (72 per inch) to indent each paragraph of text */         indent?: number;         /** the amount of space between each paragraph of text */         paragraphGap?: number;         /** the amount of space between each line of text */         lineGap?: number;         /** the amount of space between each word in the text */         wordSpacing?: number;         /** the amount of space between each character in the text */         characterSpacing?: number;         /** whether to fill the text (true by default) */         fill?: boolean;         /**  whether to stroke the text */         stroke?: boolean;         /** A URL to link this text to (shortcut to create an annotation) */         link?: string;         /** whether to underline the text */         underline?: boolean;         /** whether to strike out the text */         strike?: boolean;         /**whether the text segment will be followed immediately by another segment. Useful for changing styling in the middle of a paragraph. */         continued?: boolean;         /** the alignment of the text (center, justify, left, right) */         align?: string;

here is a working text update with numbered bullets https://github.com/devongovett/pdfkit/blob/master/lib/mixins/text.coffee#L70

@devongovett Any plans for adding numbered list styling, as to pass an option like @alexaung suggests,
doc.list(["item1","item2","item3"],{numbered: true}) will return

item1
item2
item3

instead of

item1
item2
item3

It works but you will have to use the new version v0.8.3 which is not yet released.

In Node use: npm install https://github.com/devongovett/pdfkit/tarball/master instead of the classic: npm install pdfkit
In the browser follow the instructions in this wiki: https://github.com/devongovett/pdfkit/wiki/How-to-compile-PDFKit-for-use-in-the-browser (or download this file: https://github.com/alafr/SVG-to-PDFKit/blob/master/examples/pdfkit.js)

Thanks added it to my node environment with coffee-script works perfect

With current version you can use listType: 'numbered' or listType: 'lettered'. No mention of this in the documentation, but here it is in the code: https://github.com/foliojs/pdfkit/blob/master/lib/mixins/text.js#L146
My working example:
doc.list(words, left, top, { listType: 'numbered' })

Update: I also found this: https://github.com/foliojs/pdfkit/issues/1517 so seems to be an open issue.


for #1016, modify SQLRewriteEngineTest

Fixes #1016
Changes proposed in this pull request:

modify SQLRewriteEngineTest

Thank you for contribute code


Create IsAToInstanceOfFixer

Closes #403
I tried to make some first draft of this fixer. Logic needs to be written yet but I wanted to check if the structure and naming looks good like this.
Let me know if I'm heading in good direction :)

I've taken considerations mentioned by https://github.com/Symplify/Symplify/issues/403#issuecomment-341283951
and my own use cases, which vary a lot.
The $variable can be either string of object, which is extremely difficult to find out with just tokens.
I don't feel I need this fixer anymore.
I'd rather focus on more useful ones - 1 PR at a time.


The generation of test1_files.txt for the KITTI dataset

Dear Prof. Shi,
Thank you so much for sharing the code of your paper. Your paper is very interesting and gives me great inspiration.
When I tested the KITTI dataset using this command python train_kitti_3DoF.py --batch_size 1 --test 1 , the program needs to load two files : dataLoader/test1_files.txt, dataLoader/test2_files.txt .  The data in these two files includes the filename, gt_sthift_x, gt_sthift_y, and theta. I would like to inquire about how gt_sthift_x, gt_sthift_y, and theta were generated and how I should generate the test1_files.txt or test2_files.txt? Could you provide a method or program to generate the data files test1_files. txt or test2_files.txt?
Thank you and looking forward to your reply.
Best regards,
Jibo Wang

same question

plz refer to this link: https://github.com/YujiaoShi/HighlyAccurate.git

plz refer to this link: https://github.com/YujiaoShi/HighlyAccurate.git

Thank you very much for your reply, Best wishes.


Create a Commit: parameter type "array of strings" should be "strings[]"

has failing test, needs fix
TEST_URL=https://developer.github.com/v3/git/commits/#create-a-commit ./node_modules/.bin/tap test/integration/single-endpoint-test.js

closes #61

fixed in #103


Tutorial: Create a customized home page with Flowershow

heyy @rufuspollock is the issue still open?can I Contribute?


prettier does not go deep in folders using "format" scripts

yarn "format:write" and yarn "format:test" does not go deep (recursive) on folders
Minimal reproduction of the bug with instructions:
Expected behavior:
files should be formatted in folders recursively
Other information:
solution:
"format:write": "prettier {src,e2e}/**/*.{ts,json,md,scss} --write",
should be rewrited with double quotes
"format:write": "prettier \"{src,e2e}/**/*.{ts,json,md,scss}\" --write"
I would be willing to submit a PR to fix this issue:
[ ] Yes (Assistance is provided if you need help submitting a pull request)
[* ] No

@akalitenya thank you for submitting the issue, I guess it is environment specific as I didn't encounter this problem locally or on Travis CI but we should anyway fix it so that it works for all the users!

Hope you found solution for your issue, this might be outdated as project went through major Angular 8 update. (Old issue cleanup)


Question about Slicer2d: how to set the callback function?

I am testing the Slicer2d function:
from vedo import datadir, Volume
from vedo.applications import Slicer2d

vol = Volume(datadir+'head.vti')
bro = Slicer2d(vol)
bro.show(axes=7, bg2='lb')

In this function, the callback function is:
        """Press  SHIFT+Left mouse    to rotate the camera for oblique slicing
       SHIFT+Middle mouse  to slice perpendicularly through the image
       Left mouse and Drag to modify luminosity and contrast
       X                   to Reset to sagittal view
       Y                   to Reset to coronal view
       Z                   to Reset to axial view
       R                   to Reset the Window/Levels
       Q                   to Quit.""",

Then, I look into the Slicer2d function, and the code is:
    img = volume.imagedata()

    ren1 = vtk.vtkRenderer()
    renWin = vtk.vtkRenderWindow()
    renWin.AddRenderer(ren1)
    iren = vtk.vtkRenderWindowInteractor()
    iren.SetRenderWindow(renWin)

    im = vtk.vtkImageResliceMapper()
    im.SetInputData(img)
    im.SliceFacesCameraOn()
    im.SliceAtFocalPointOn()
    im.BorderOn()

    ip = vtk.vtkImageProperty()
    ip.SetInterpolationTypeToLinear()

    ia = vtk.vtkImageSlice()
    ia.SetMapper(im)
    ia.SetProperty(ip)

    ren1.AddViewProp(ia)
    ren1.SetBackground(bg)
    renWin.SetSize(size)

    iren = vtk.vtkRenderWindowInteractor()
    style = vtk.vtkInteractorStyleImage()
    style.SetInteractionModeToImage3D()
    iren.SetInteractorStyle(style)
    renWin.SetInteractor(iren)

    renWin.Render()
    cam1 = ren1.GetActiveCamera()
    cam1.ParallelProjectionOn()
    ren1.ResetCameraClippingRange()
    cam1.Zoom(zoom)
    renWin.Render()

The above code implement the pipeline to show a 2D image. But how does it set the callback function for keyboard 'XYZ'? Could you please tell me where the above code implement the function for keyboard 'XYZ'?

It's hidden inside the interactor style class vtkInteractorStyleImage. See:
https://vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details


[Web] Migrate files from repository 'nokotan/siv6'

Following updates that migrating files from Siv3D/siv6 to Siv3D/OpenSiv3D

Merged. Thanks!


Problem to install

I'm  trying install pouchdb-react-native, but it's happened a problem with my installation.
Node v4.2.5
npm  v2.14.12

Problem resolved with node 5.0.0

It's not a node issue.  You should use npm 3+ for all React Native development.

https://github.com/stockulus/pouchdb-react-native/issues/51


Watch mesh configuration ConfigMap

As part of #27707
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@tbarrella: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
1b61405e26659027136bf0f0e243f0da57428eeb
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@tbarrella: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
4b412cf6c6c01dbc1503a5ef01d4921cd0e9f3be
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test release-notes_istio

@tbarrella: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
4b412cf6c6c01dbc1503a5ef01d4921cd0e9f3be
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@tbarrella: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
4b412cf6c6c01dbc1503a5ef01d4921cd0e9f3be
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Thank you, that is cleaner. I can have initKubeClient first and have it call ReadMeshConfig instead of s.environment.Mesh. Although I'd like to keep the logic of

If the local file exists, watch it
Otherwise, watch the ConfigMap

both because I don't want to change the existing behavior by default and also to be more responsive to ConfigMap changes, for example if there isn't one at first and then it's added later

@tbarrella: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
57de3d5a19c51bd7d03df2ad129b6598efe1bee7
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@tbarrella: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
a6780cbd05fd41d42d090466624af26f80151f78
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@tbarrella: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
a6780cbd05fd41d42d090466624af26f80151f78
link
/test release-notes_istio

unit-tests_istio
a6780cbd05fd41d42d090466624af26f80151f78
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@tbarrella: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
a6780cbd05fd41d42d090466624af26f80151f78
link
/test unit-tests_istio

release-notes_istio
a6780cbd05fd41d42d090466624af26f80151f78
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.