ToolButton and Button have inconsistent and unergonomic APIs

The Gtk+ function definition to set_label is consistent across ToolButton and Button, but it's not the case in gtk-rs. Instead Button has fn set_label(&self, label: &str) and ToolButton has fn set_label(&self, label: Option<&str>).
I'm not certain which is the correct one, though I'd argue that neither of them are. You shouldn't need to write Some(STRING) and instead use the Into trait, this would change the set_label function to look like:
fn set_label<L>(&self, label: L) where L: Into<Option<&str>> {}

Then you should be able to just write button.set_label("Open") quite nicely. I found this API suggestion in the Elegant Library APIs in Rust document yesterday.

This is a really great idea! The difference in gtk-rs comes from the fact that in some cases, you can pass NULL and in other you can't. With this, the code will be greatly improved!
@EPashkin: Do you want to do it or do you prefer that I do it?

There are a large number of functions that could use this treatment (gtk::Label::new(), gtk::Scale::add_mark(), gtk::FileChooserDialog::new() are some in my codebase), is this something that can be changed at the generator level to handle all of these cases or does this need to be done on a case-by-case basis manually?

@EPashkin: Then so be it! ;)

Awesome, that'll be very nice to have. Let me know if you'd like help testing.

Oh we will! ;)

@GuillaumeGomez As I remember T: Into<Option<&str>> don't work for &str. Although I don't checked it now.

Really? Is it a lifetime issue?

The following code seems to work for me:
fn lol<'a, L>(s: L) where L: Into<Option<&'a str>> {
    if let Some(s) = s.into() {
        println!("{}", s);
    } else {
        println!("None");
    }
}

fn main() {
    lol(None);
    lol("test");
}

Good.

I won't have time this week-end so I'll try to do it starting monday.

@GuillaumeGomez Just wanted to ping you on this and see if you've made any progress as you mentioned working on it this week.

I was about to push something on gir. Be a little more patient. ;)

Wasn't trying to push! I just remembered this issue in my queue so thought I'd check in. :-)

@Susurrus: The beginning of the pr is here. There isn't much remaining so I hope it'll get merged before the end of the week.

Fixed by #447.


chore: Switch GitHub rebase action checkout@master to @v2

Using a fixed version here is more stable (otherwise future changes in actions/checkout@v3 could theoretically break this for us), and in line with https://github.com/cirrus-actions/rebase/commit/51854755db80c104a3f4be4b617988933209b5a1, which I've stumbled upon from #1509. This is also consistent with our other GitHub actions.

This makes sense. Just waiting for routine checks to pass on Travis. Thanks @vorburger


Windows 150% display scaling too big

Description
What steps will reproduce the problem?

 What do you see instead?
I expected all text and icons to have a size fitting to the chosen scale in windows.
However, the icons in the top row are too large and so is the content of the help window.
Screenshot at 150% scaling:
https://i.imgur.com/uxt7ou7.png
Please provide any additional information below
If I use 200% display scaling, things look harmonic. It seems that the top icons and help content use 200% scaling, even at 150% scaling.
Screenshot at 200% scaling:
https://i.imgur.com/TEuk8nP.png
Version and main components

Spyder Version: 3.1.3
Python Version: 3.6.0
Qt Versions: 5.8.0, PyQt5 5.8 on Windows

Dependencies
pyflakes >=0.6.0 :  1.5.0 (OK)
pep8 >=0.6       :  1.7.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
qtconsole >=4.2.0:  4.2.1 (OK)
nbconvert >=4.0  :  5.1.1 (OK)
pandas >=0.13.1  :  None (NOK)
numpy >=1.7      :  1.12.0 (OK)
sphinx >=0.6.6   :  1.5.3 (OK)
rope >=0.9.4     :  0.10.5 (OK)
jedi =0.9.0      :  0.9.0 (OK)
matplotlib >=1.0 :  2.0.0 (OK)
sympy >=0.7.3    :  1.0 (OK)
pylint >=0.25    :  1.6.5 (OK)

There's nothing we can do about this (as far as I know). It's something handled by Qt, not by Spyder.
But thanks for reporting.


remove sticky header

Description
Changes proposed in this pull request:

...
...
...

Related issue(s)

after debugging session, this PR is not more needed.


disk_partitioner base classes

Each kind of setup operation is an independent class.
This also adds examples and basic tests for disk_config validation

In terms of the spec and overall approach, this looks good to me. I'll leave it to Jim and Arun to discuss the finer details of the code

Merging this, not fully tested (waiting for hardware) but will clean up later as needed.


Update _config.yml

Hi Ali thanks for your interest for our tech radar.
I can not accept your pull request. I think you did a mistake with your merge.
You have created a pull request on our base repository.
You need to merge your changes into the mkipcak/tech-radar:master branch.


Self type in trait implementation causes panic in #[async_trait]

Example Code:
use async_trait::async_trait;

struct Struct;

#[async_trait]
pub trait Trait {
    async fn foo();
}

#[async_trait]
impl Trait for Struct {
    async fn foo() {
        let _ = Self;
        // let _ = Struct;
    }
}

Error:
error: custom attribute panicked
  --> src/lib.rs:19:1
   |
19 | #[async_trait]
   | ^^^^^^^^^^^^^^
   |
   = help: message: called `Option::unwrap()` on a `None` value

I traced the error to using Self instead of Struct. non-async functions are not affected. Also the error is different if I change it to Struct { x: u8 }, but not if I cange it to Struct(u8);:
error[E0401]: can't use generic parameters from outer function
  --> src/lib.rs:22:17
   |
20 | impl Trait for Struct {
   | ---- `Self` type implicitly declared here, by this `impl`
21 |     async fn foo() {
22 |         let _ = Self { x: 0 };
   |                 ^^^^
   |                 |
   |                 use of generic parameter from outer function
   |                 use a type here instead

This time not a panic, but this would compile with Struct instead of Self or in a non-async function.
using async-trait0.1.19 & Rust 1.39.0
PS. thanks for this crate, it's awesome!

Thanks for the perfectly minimized bug report! I published a fix in 0.1.20.

Uh-oh, only let _ = Self and let _ = Self(0) are fixed, not let _ = Self { x: 0 }. One second.

Fixed in 0.1.21.


Architecture error: Raspi3

Attempting to run on Raspi3, everything works until I run the following for first startup of the container:
docker run -d \
--name=gphotos-uploader \
-v /home/pi/GPhotos/config:/config \
-v /home/pi/GPhotos/media:/photos \
--restart unless-stopped \
rfgamaral/gphotos-uploader

I can see the /config and /photos directories appear, but no /config/config.hsjon being created.

I tried forking the repo and building my own with the Dockerfile edited to GOARCH=arm but the problem is still occuring...

Fixed by cloning the repo and manually editing the Dockerfile to change all instances of amd64 to arm.

Hum, that's interesting. I'll need to look into how to build multi-architecture Docker images. One question, did you change only GOARCH? What about the s6-overlay, did you change that one too?

I started out only changing GOARCH because I didn't see s6-overlay, but it wasn't working and it took me a while to find that s6-overlay needed to be changed too

I'm trying to build multi-arch images with Docker Hub, meaning you just pull the image as usual and Docker will pick the proper architecture for you (if available). I'm focusing on arm builds for now but I'm having some issues, not sure if I'm doing something wrong or if there's a bug on Docker Hub's Automated Builds functionality. Stay tuned.

@Mason10198 I believe I've fixed the issue and pushed multi-arch images to Docker Hub. Could you please just pull the latest image and see if it works for you? It should pull the correct architecture for your Raspberry Pi 3.

I'm going to assume this is fixed, if it's not, please let me know.


fix(core): DataList missing paddings inside Option (multiline text problem)

PR Checklist
Please check if your PR fulfills the following requirements:

[X] The commit message follows Conventional Commits
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Refactoring
[ ] Code style update
[ ] Build or CI related changes
[ ] Documentation content changes

What is the current behavior?
Closes #1687
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[X] No

Failed screenshots – changed horizontal padding for s-size.
It is expected.


Upload images in frontend

Hi,
I need to allow my users to upload some images via the frontend.
I'm able to display the dropzone without any problem setting the csfr_protection to false but when I try to upload a photo I'm not able to see that image after the upload process.
Seems like that the {{url}} is not passed to the view, how can I solve this?

Another problem is that the script point to "admin/files/upload" but normal users can't access to admin function so how can I allow the upload?

Any idea? Is this field type supported or not?

@ChristianGiupponi  I found a solution, I will be sharing with you shortly, which allow us upload both files and images, even in front end, I modified flupload.js bit so that it can send data as an ajax call, kind of hack you can say and little bit of php and js code, ping me at<EMAIL_ADDRESS>


[Bug]: STATUS_ACCESS_VIOLATION on youtube.com

Bug expectation
All puppeteer versions after v18.1.0 give me a STATUS_ACCESS_VIOLATION when trying to access youtube.com (both headless and headful). v18.1.0 and version prior do not seem to give me this error.

Bug behavior

[ ] Flaky
[ ] PDF

Minimal, reproducible example
import puppeteer from "puppeteer";

(async () => {
	const browser = await puppeteer.launch({ headless: false });
	const page = await browser.newPage();
	await page.goto("https://youtube.com");
	const screenshot = await page.screenshot({ encoding: "base64" });
	console.log(screenshot);
	await browser.close();
})();

Error string
Navigation timeout of 30000 ms exceeded
Puppeteer configuration
No response
Puppeteer version
19.9.1
Node version
18.16.0
Package manager
npm
Package manager version
8.4.1
Operating system
Windows

Also tried on Mac with the same result

Can confirm! Happens without using Puppeteer too:
path/to/Chromium --user-data-dir=/tmp/profile

https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Mac/1131172/ works but it will be some time till we roll next release of Chromium

Thanks, I think I accidentally skipped testing 18.2.1. I tested with 18.1.0 and then 19.0.0. Will edit the question to make it more clear that 18.2.1 works fine.

is it resolved?

@liynk According to this comment, yes, as of 20.0.0.

what is the solution of this bug can you please help me right now i am using pupptteer version 16.7 and i am not able to find out the reason why it is coming and how to resolve it


[chip-test] chip_rv_dm_cpu_debug_mem_not_accessable

Test point name
chip_rv_dm_cpu_debug_mem_not_accessable
Host side component
SystemVerilog
OpenTitanTool infrastructure implemented
No
Contact person
msfschaffner, gregac
Checklist
Please fill out this checklist as items are completed. Link to PRs and issues as appropriate.

[ ] Check if existing test covers most or all of this testpoint (if so, either extend said test to cover all points, or skip the next 3 checkboxes)
[ ] Device-side (C) component developed
[ ] Bazel build rules developed
[ ] Host-side component developed
[ ] HJSON test plan updated with test name (so it shows up in the dashboard)
[ ] Test added to dvsim nightly regression (and passing at time of checking)

@sriyerg since this test seems to mainly want to test CPU access to debug region when not in debug mode, I think we can place it under Help Wanted: SW right?

#14984 consolidated this test point with another. So this issue is no longer required.


Roll engine 1d62160fdb2f..b785ab902a5e (13 commits)

git@github.com:flutter/engine.git/compare/1d62160fdb2f...b785ab902a5e
git log 1d62160fdb2f..b785ab902a5e --no-merges --oneline
2019-10-06<EMAIL_ADDRESS>Update buildroot to pull in ubsan updates. (flutter/engine#12821)
2019-10-05<EMAIL_ADDRESS>Roll src/third_party/skia 95edac1c9a4a..4c82a9fc83a5 (13 commits) (flutter/engine#12818)
2019-10-05<EMAIL_ADDRESS>Enable sanitizer build variants. (flutter/engine#12816)
2019-10-05<EMAIL_ADDRESS>Revert "Adding Link SemanticsFlag (#12453)" (flutter/engine#12815)
2019-10-04<EMAIL_ADDRESS>Use the x64 host toolchain for x86 target gen_snapshot only on Linux (flutter/engine#12809)
2019-10-04<EMAIL_ADDRESS>add option for bulk-updating screenshots; update screenshots (flutter/engine#12797)
2019-10-04<EMAIL_ADDRESS>unbreak unopt fuchsia (flutter/engine#12805)
2019-10-04<EMAIL_ADDRESS>Build gen_snapshot with a 64-bit host toolchain even if the target platform is 32-bit (flutter/engine#12802)
2019-10-04<EMAIL_ADDRESS>[flutter_runner] a11y updates, tests! (flutter/engine#12380)
2019-10-04<EMAIL_ADDRESS>Fix crash in copypixelbuffer (flutter/engine#10326)
2019-10-04<EMAIL_ADDRESS>Roll src/third_party/dart d6c6d12ebf..8413a0db0d (2 commits)
2019-10-04<EMAIL_ADDRESS>Roll fuchsia/sdk/core/mac-amd64 from JyZWz... to kwa2O... (flutter/engine#12803)
2019-10-04<EMAIL_ADDRESS>Adding Link SemanticsFlag (flutter/engine#12453)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Trybots failed. These were the failed builds: https://cirrus-ci.com/task/5702196590542848 , https://cirrus-ci.com/task/5139246637121536


Improve tidy3d plugin

[ ] allow to plot second order modes
[ ] easily exploit symmetries
[ ] #243

@yaugenst

symmetries will need an extra argument here: https://github.com/gdsfactory/gplugins/blob/1464ae0523b1b8b8088ccfe77890ebb7020c04c0/gplugins/tidy3d/component.py#L179
the other two points are already supported i believe, since tidy3d supports it
should we merge first before making a tracking issue for a plugin that technically doesnt exist yet? i also have a few points for possible improvements


Fix cluster-cidr flag + refactoring bug

@errordeveloper the nits that were left for fixing after https://github.com/errordeveloper/kubernetes/pull/11. Feel free to close this if you've addressed them already.

Thank you!


ROCm compiler backend has a secret dependency on LLVM CPU backend

What happened?
If yo build with
IREE_TARGET_BACKEND_ROCM=ON
IREE_TARGET_BACKEND_LLVM_CPU=OFF

Then there is a compilation failure for the ROCm builtin ukernels.
FAILED: compiler/plugins/target/ROCM/builtins/ukernel/rocm_argmax_ukernel_argmax_ukernel.c_gfx940.bc /home/nmeganat/boian/ws/iree/build/Debug/compiler/plugins/target/ROCM/builtins/ukernel/rocm_argmax_ukernel_argmax_ukernel.c_gfx940.bc
cd /home/nmeganat/boian/ws/iree/build/Debug/compiler/plugins/target/ROCM/builtins/ukernel && /home/nmeganat/boian/ws/iree/build/Debug/llvm-project/bin/clang-19 -x hip --offload-arch=gfx940 -nogpulib -D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH --offload-device-only -Xclang -disable-llvm-optzns -O0 -c -emit-llvm /home/nmeganat/boian/ws/iree/repo/compiler/plugins/target/ROCM/builtins/ukernel/argmax_ukernel.c -o rocm_argmax_ukernel_argmax_ukernel.c_gfx940.bc
error: unknown target triple 'unknown'
In file included from <built-in>:1:
In file included from /home/nmeganat/boian/ws/iree/build/Debug/llvm-project/lib/clang/19/include/__clang_hip_runtime_wrapper.h:111:
/home/nmeganat/boian/ws/iree/build/Debug/llvm-project/lib/clang/19/include/cuda_wrappers/cmath:27:15: fatal error: 'cmath' file not found
   27 | #include_next <cmath>
      |               ^~~~~~~
2 errors generated when compiling for gfx940.

Further more the in-project compiled clang that is used to build the ukernels gives
/home/nmeganat/boian/ws/iree/build/Debug/llvm-project/bin/clang-19 -v

clang version 19.0.0git
Target: unknown
Thread model: posix
InstalledDir: /home/nmeganat/boian/ws/iree/build/Debug/llvm-project/bin
Found HIP installation: /opt/rocm, version 6.0.32830

Notably there is Target: unknown and it can't find the system libstdc++.

Compiler
Version information
8711c812455955f9dc252dba0d7943a7dba15cbe
Additional context
No response

Toggling IREE_TARGET_BACKEND_LLVM_CPU on an existing build will not remake the offending clang target. You need a clean build to reproduce this.

Could try adding more targets here: https://github.com/openxla/iree/blob/50aa9a3376f4d0f6de274c4058e54dc38153eff5/build_tools/cmake/iree_llvm.cmake#L184-L188
defaults that get set with IREE_TARGET_BACKEND_LLVM_CPU are here: https://github.com/openxla/iree/blob/50aa9a3376f4d0f6de274c4058e54dc38153eff5/build_tools/cmake/iree_llvm.cmake#L122-L124 https://github.com/openxla/iree/blob/50aa9a3376f4d0f6de274c4058e54dc38153eff5/build_tools/cmake/iree_llvm.cmake#L169-L171


& + & breaks when extending a component using styled()

Environment
codesandbox.io
Reproduction
https://codesandbox.io/s/styled-components-sibling-selector-bug-vq0wb
Steps to reproduce
Define a styled components which makes use of the self selector (&) and the direct sibling selector (+) together (& + &), to style a component only if it is directly preceeded by itself.
Extend that component using the styled(MyComponent) api.
Mix and match the extended style component with the original styled component
Expected Behavior
The sibling and self selectors should work regardless of what combination of base and extended components you use.
Actual Behavior
The sibling and self selectors only work if you use extended component after the base component. It does not work the other way around.
Example

const Item = styled.div`
  &:not(:first-child):after {
    content: "Sibling selector does not work";
  }

  &:after {
    font-weight: bold;
  }

  & + &:after {
    content: "Sibling selector does work" !important;
  }
`;

const ExtendedItem = styled(Item)``;

function App() {
   return (
        <ExtendedItem />
        <Item />
    );
}

You will see sibling selector does not work.

What do you think @mxstbr? We would make this work by keeping track of the componentId associate with a rule and feeding that into stylis vs assuming a self reference is always to the final folded component.

I look at @nathggns codsandbox and when i check classes i think figured out why:

ExrendedItem::after take Item's className + Refrence className:after
@probablyup why not using Refrence className  + Refrence className:after?

I'm not sure we can fix this in a way that makes sense. In this case ExtendedItem is referring to itself with "&" and Item is not an instance of ExtendedItem, but ExtendedItem is an instance of Item since it extends Item.


Compression without directory structure

How to configure so that the compressed package does not have a directory structure, the desired result is ...

I want to start with the study folder, which is the folder to be compressed, now I start from the root directory

Is this the same as https://github.com/npm/node-tar/issues/274?


Release/0.7.3

Codecov Report

Merging #170 (93fc0c1) into main (ba6c11b) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Current head 93fc0c1 differs from pull request most recent head cf9c284. Consider uploading reports for the commit cf9c284 to get more accurate results

@@            Coverage Diff            @@
##              main      #170   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           40        40
  Lines         1112      1157   +45
=========================================
+ Hits          1112      1157   +45

Impacted Files
Coverage Δ

pfhedge/features/functional.py
100.00% <ø> (ø)

pfhedge/instruments/base.py
100.00% <ø> (ø)

pfhedge/_utils/bisect.py
100.00% <100.00%> (ø)

pfhedge/_utils/operations.py
100.00% <100.00%> (ø)

pfhedge/_utils/parse.py
100.00% <100.00%> (ø)

pfhedge/autogreek.py
100.00% <100.00%> (ø)

pfhedge/features/features.py
100.00% <100.00%> (ø)

pfhedge/instruments/derivative/american_binary.py
100.00% <100.00%> (ø)

pfhedge/instruments/derivative/base.py
100.00% <100.00%> (ø)

pfhedge/instruments/derivative/european.py
100.00% <100.00%> (ø)

... and 16 more

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 ba6c11b...cf9c284. Read the comment docs.


Bug: mux-video with hls: Error: Media element src was set while attaching MediaSource when adding tracks

Is there an existing issue for this?

[X] I have searched the existing issues

Which Mux Elements/Packages does this apply to? Select all that apply
mux-video
Which browsers are you using?
Chrome
Which operating systems are you using?
macOS
Description
I'm getting an error when supplying tracks to the mux-video web component.
[error] > Media element src was set while attaching MediaSource
Here's some example code:
<mux-video
src="https://some-hls-source"

The code I'm using in my component is more complex than this and involves the use of media-chrome, but even when I use straight up HTML without my wrapper component and the hosted version of mux-video it still occurs.
There's no documentation on the mux-video readme about s, but since it's an extension of HTML  I assumed I could do that.
How do I provide the captions, chapters etc without triggering this error?
Reduced test case
https://codepen.io/endymion1818/pen/RwmKQpq
Steps to reproduce

Load the page
See error in console

Current Behavior
An error is logged to the console although player renders and works as expected.
Expected Behavior
No error logged to the console.
Errors
[error] > Media element src was set while attaching MediaSource
What version of the package are you using?
v0.19.0

It looks like it could be a race condition because tracks need to download their src files asynchronously yet the player seems to render straight away

I see the error but does this break anything in your program?
seems the captions still work as expected.
it's a strange error because the media element is different from the track element.
https://github.com/video-dev/hls.js/pull/5206/files
seems almost like that event bubbles up or something and the track src is wrongly compared with the media element src which is a blob.

It doesn't break you're right, but we get a console error on each load, which is going to be a drain on our bug tracker. It will cause similar issues for third parties that embed our player too so we really want to avoid it if at all possible.

totally get that. how I see it currently is that it's a bug in hls.js, could you open an issue there and mention this ticket?
we'll follow it along.

Thanks, I've opened an issue there however some information I don't think I have access to: what is the hls.js configuration?
Also I've developed a new test case that outputs more information to the console, is this information more helpful?
https://embed-mediamanager-io-v3.pages.dev/storybook/?path=/story/media-manager-embeds--player


Add Vs2015 (and TFS2015) support

A try at fixing #759 ...

@clockwiseq Could you test it?

Quick question, I was using git-tf and am trying to move my local git into TFS (empty project collection).  Are the commands the same in bash (i.e. configure, then commit)?

Quick question, I was using git-tf and am trying to move my local git into TFS (empty project collection).

Git-tfs can't be used to migrate a git repository to a tfs  collection. I'm not sure if git-tf could do it too...

Are the commands the same in bash (i.e. configure, then commit)?

No. Differents...

Hmm...but can't it clone a git repo into tfs?  If so, what are the commands to do so?


Pagination component with router not cycling through the numbers correctly

I'm having major problems with this and I'm starting to think there's a bug because it just doesn't work. I've created a sample.
https://codesandbox.io/s/materialui-pagination-router-g2x5c?file=/src/App.js
Here is the code:
    const match = useRouteMatch();
    const totalPage = 3000;

    return (
        <MemoryRouter initialEntries={[window.location.pathname]} initialIndex={0}>
            <Route>
                {({ location }) => {
                    const query = new URLSearchParams(location.search);
                    const page = parseInt(query.get('page') || '1') || totalPages;
                    return (
                        <Box display="flex" justifyContent="center" style={{ background: 'white' }}>
                            <Pagination style={{ padding: 16, background: 'white' }} page={page} count={totalPages} color="secondary" shape="rounded"
                                renderItem={(item) => {
                                    const path = generatePath(match.path, { ...match.params, page: item.page === 1 ? 1 : item.page }) + window.location.search;
                                    return <PaginationItem component={Link} to={path} {...item} />
                                }} showLastButton showFirstButton />
                        </Box>
                    );
                }}
            </Route>
        </MemoryRouter>
    );

Hovering over the buttons shows the correct href link at the bottom of the browser (e.g., /3, /4, /5), but clicking the buttons does nothing. I don't suppose anybody has any ideas (assuming it isn't a bug but I think it is).

Your sample is broken.

Did you check https://material-ui.com/components/pagination/#router-integration out?

Oh sorry, it seems codesandbox doesn't like the useLocation and useRouteMatch hooks. I've updated it now so it should run.
@oliviertassinari  yep, all checked out, but when I add in the generatePath for my URL (as the page is a param rather than part of the query string) it doesn't appear to work. I hope i'm missing something obvious, but I can't get it working at all.
https://codesandbox.io/s/materialui-pagination-router-g2x5c?file=/src/App.js

@JavaJamie It looks like you are using generatePath incorrectly (https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/api/generatePath.md)
But this seems like a mistake in how you use react-router and nothing to do with the Pagination component - hence I've marked the issue as support.


link to firecloud job details

Fixes #170

I believe we wanted this to open in the same tab, but I'll check and make a followup change if not.


Update release cycle definition: delete network-hypothesis and make balances-adjustment and entsoe releases mandatory

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

[x] The commit message follows our guidelines
[x] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Doc update: release cycle definition has changed

Just one thing: should we keep the next release train start date in this page? it then needs to be updated for every release.

Good point! We will start at next release as we are not sure yet when the next will be


Confusing UX when in an existing project

If a user creates a new swing in an existing project, it is a bit visually confusing as to what is going on:

The Explorer panel for the existing project is still open on the left
If the user created the swing in a different folder, there is no reference to the current swing file (eg. index.jsx) in the Explorer panel

Maybe it would make sense to open a new window with the location of the created swing?
Some other strange-feeling behaviors:

You can close the Swing file without the preview tab closing. There could be a UI state where you have the old preview tab still around, but unrelated files in the existing project open.
If you close the preview tab, it closes all other files (also unrelated ones)
If you start a new Swing in an existing project with some files open, it will try to close those files (and lead to confusing, seemingly unrelated warnings such as Are you sure that you want to close <unrelated buffer tab X>?

Maybe these would also be addressed by opening swings in their own windows.

Thanks for the feedback! My main motivation for this current behavior is that I wanted a way to create temporary swings to try an idea, but without switching contexts. So for example, if I'm working on a web app codebase and I want to quickly try something with the React API, I could do that, without opening a new window.
That said, I agree that the current experience is optimized for that kind of "scratch pad" workflow. Out of curiosity: for your use case, would you be interested in creating the swings within the currently opened workspace?
I'll also give some thought to how to easily allow opening the swing is a new window as well. Stay tuned!

for your use case, would you be interested in creating the swings within the currently opened workspace?

Hm... in most cases probably not, but I suppose there may be some use cases that I haven't considered yet...

if I'm working on a web app codebase and I want to quickly try something with the React API, I could do that, without opening a new window

Interestingly enough, this is also my context a lot of the time, but my preference would be different in that I want to be able to clearly differentiate between what is a swing and what is the existing project (different windows would do this for me easily).


Canceling a transfer in FIleZilla, on_file_received is called

I have registered a handler for the on_file_received event. According to the documentation, it is called, when a file was transferred successfully. If I cancel a transfer in FileZilla, the event still gets called.
I am not sure if FileZilla or pyftpdlib is to blame

I would say this depends on what filezilla (client) is doing. If filezilla just close()s the data socket then the server (correctly) interprets it as "file transfer is finished". That is what the FTP protocol dictates in case of uploads (from client to server) as per RFC-959. The correct way for filezilla to interrupt a transfer and make the server aware of it would be by using ABOR command. You can easily figure that out by looking at server logs. Run server in DEBUG mode:
http://pyftpdlib.readthedocs.io/en/latest/tutorial.html#debug-logging
...and if you don't see "ABOR" being sent by client then it's filezilla's "fault".
I say "fault" because the reason for filezilla NOT to send ABOR is probably because many FTP servers are unable to handle it correctly, so maybe they just decided to close() the data connection.

Thank you for the reply @giampaolo.
I have tested it with debug logging enabled and I am not seeing ABOR instead i see close() and STOR in the logs, even though filezilla shows Error:	File transfer aborted by user after transferring 2.1 KB in 2 seconds in the console.


Automated Package Upgrade

:tada: This PR is included in version 13.0.26 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


What what happened to "Editing a %type% file"?

What what happened to "Editing a %type% file"?

It was a good reference.
And now when it says Editing name.extension doesn't look clean, even messy

Would you explain more about issue?

Yes

It should be exactly like it was in 1.3

I'll add it to configuration

Thank you

a3dea3e3fb317e8044ea2cde5abf759fa16aa4a9


Tilde expansion

Something else I've noticed with completions in the Ion shell is that if your attempt to cd to a directory starting with the ~ character. Is there a way tto either supply the expanded form to liner or have liner expand it?

Yeah, this is a good idea. I imagine we'll need a home_directory member for FilenameCompleter.
Or, perhaps a callback so we can support more advanced file expansions more easily (other users' home directories etc)

Ion has this working perfectly without any changes to Liner, but I was unable to do this without the usage of unsafe, so we might want to have a better solution in the long run.


i18n(fr): update resources/plugins

Description
This PR updates the French version of the resources/plugins page with the changes from #2201 and #2208.

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

fr
resources/plugins.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Nice translation! Yes, maybe should have considered that when reviewing the English description, but I guess it’s fun to have the personality of these community tools shining through too.

Yeah, I quite like it too. It's not a 1:1 translation obviously but still in the theme and I think still convey the intent of the plugin so I guess that's fine 👍


Versioning and Audit log UI

Description
A UI to work with Versions and Audit log entries.
Related Issue
#108
How Has This Been Tested?

A number of wtr/mocha unit tests has been added, I'm planning to add more.

Screenshots (if appropriate):
Open the versions panel with the drawer icon:

See versions and audit entries. Versions are bold and contain stored content. Audit entries are just a log that something was changed. Multiple audit entries within the same day are collapsed into a single item and can be expanded (expandable entries end with ...).

Explicitly create a version by clicking on the 'Storage-+' icon.
When selecting a version that has stored content, that content is overlaid on the document with a different background color. To restore it click the 'Storage-Up' icon.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[X] I have signed the Adobe Open Source CLA.
[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
[X] I have added tests to cover my changes.
[X] All new and existing tests passed.

Replaced by https://github.com/adobe/da-live/pull/110 (branch name change).


Support Request: api.switch-bot.com suddenly returns "unauthorized"

Describe Your Problem
api.switch-bot.com returns "unauthorized"
Relevant log output
Using GET api.switch-bot.com/v1.1/devices/[device_id]/status
Adding the headers with token
This returns "Unauthorized" since a couple of days, where it used to work (for almost a year)
I haven't changed anything and this is the result
To rule out a wrong API key I have changed this in the App and in my webserver but the result is the same
Do you know if something might have changed/restricted on the api.switch-bot.com side?

Config for homebridge-switchbot
I'm using custom code from https://github.com/OpenWonderLabs/SwitchBotAPI

Screenshots
No response
Device & Model
N/A
Node.js Version
v18.20.4
NPM Version
v10.7.0
Homebridge Version
N/A
Homebridge SwitchBot Plugin Version
N/A
Homebridge Config UI X Plugin Version
N/A
Operating System
Raspbian/Windows

Typo in token (last character)


Bindings to An array of NULL terminated C strings got Segmentation fault: 11

Node-ffi is a great job!
Background
I'm going to write a Node bindings for MITIE which C++ library for NLP(Natural language processing). So I noticed node-ffi, and I saw:

It can be used to create bindings to native libraries without writing any C++ code

It makes me feel excited because I do not have C ++ development experience.
I also know that ffi isn't designed to work with C++ binaries, But as what MITIE describes:

MITIE's primary API is a C API which is documented in the mitie.h header file.

So I decided to have a try...
Problem
The argument of a function is char**: An array of NULL terminated C strings, like this:
int run (char** tokens)
{
    try
    {
        std::vector<std::string> words;
        for (unsigned long i = 0; tokens[i]; ++i)
            words.push_back(tokens[i]);

        return 1;
    }
    catch(...)
    {
        return 0;
    }
}

And this is what I did use ffi:
const ffi = require('ffi');
const ArrayType = require('ref-array');

const StringArray = ArrayType('string')

const test = ffi.Library('test', {
  'run': [ 'int', [StringArray] ]
});

test.run(['a', 'b']);

But I got: Segmentation fault: 11.
I uploaded the sample code to this repo.
And in this repo you also can see I have wrote a Python bindings by ctypes, It runs well.
Here is my operating environment:

<EMAIL_ADDRESS><EMAIL_ADDRESS>darwin x64 17.0.0
MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports)
macOS 10.13

My initial idea is that this has nothing to do with the type, it's related to memory allocation.

@TooTallNate @rbranson @kjunichi @unbornchikken

char** in C == String* in nodejs.
So, I think you should change the type.
`const ffi = require('ffi');
// const ArrayType = require('ref-array');
const ref = require('ref');
// const StringArray = ArrayType('string')
const string_ptr = ref.refType('CString);
const test = ffi.Library('test', {
// 'run': [ 'int', [StringArray] ]
'run': [ 'int', [string_ptr] ]
});
test.run(['a', 'b']);`


About the prefix tuning scripts of SNLI-VE, COCO Captions, VQA

In the folder of run_script, only the prompt script about the Refcoco task is available, I want to know if the scripts of other tasks can be released, i.e., SNLI-VE, COCO Captions, VQA.

@yh351016 looking forward to the release😶🌫


Submodules offline

Hey @tycho ,
I wanted to compile this project but it seems all submodules are offline.
Do you have a copy or full source archive of arc?
Thanks in advance

This project isn't functionally complete in any way, so you would be happier finding some other one. But the .gitmodules file is out of date and should point to the https:// repos instead of git://... I could fix it at some point.

Thank you, just looking for old projects to port to some linux handhelds. This would have been a nice addition.
I'll look into it.


Website Agent help

Hello I am trying to understand how to use the website agent.
I would like to watch a website and just be notified when any changes occur.
For example a wikipedia page, but I don't know how to modify the template shown below to look for changes on a given webpage.
Sorry if this is answered somewhere else, I am just trying to understand how this agent works.
{
"expected_update_period_in_days": "2",
"url": "https://xkcd.com",
"type": "html",
"mode": "on_change",
"extract": {
"url": {
"css": "#comic img",
"value": "@src"
},
"title": {
"css": "#comic img",
"value": "@alt"
},
"hovertext": {
"css": "#comic img",
"value": "@title"
}
}
}
Thanks

Wikipedia has RSS feeds for each article's Changes page.  You'll want to check out a URL like this one:
https://en.wikipedia.org/w/api.php?target=Robotix&action=feedrecentchanges&feedformat=atom

Thank you for responding,  but I am trying to find a more general solution.
Something like:
"Hey Huginn here is a website, anytime it changes even a little bit just shoot me an email."

The WebsiteAgent uses CSS or XPath selectors to extract data from the HTML source code of the fetched URL. I'd suggest you look at the source of xkcd.com to understand how the example works. http://selectorgadget.com/ is very useful to get CSS selectors matching elements without having to dig through the source.


periodic merge of main onto dev-1.23

This is a periodic merge of 'main' onto 'dev-1.23', maintaining the 1.23 integration branch.

The following commits had build errors and were fixed within the same PR by ensuing commits:

b16ccb3 in PR https://github.com/kubernetes/website/pull/28355 fixed by bd8f978
925b3ed, 30996f3, 9a112c6, 3718b99, 21f41c6 in PR https://github.com/kubernetes/website/pull/29177 fixed by 03d287c
d7f3eeb in PR https://github.com/kubernetes/website/pull/29344 fixed by 457fd23

/lgtm

/approve


deformed image with smartphone

Hi,
I have these settings:
Webcam.set({
width: 240,
height: 180,
dest_width: 640,
dest_height: 480
});
and it works fine form the pc/mac webcam with any browser. However if I take a picture with the smatphone while holding the smartphone vertical, the image is deformed on snap. I see that in the live preview the image does not fill the entire 240 pixel width. This happens either with the front and back camera.
Holding the smarthphone horizontal the image is not deformed.
How can I avoid this problem.
Best,
Claudio

I'm terribly sorry, but I don't know what smartphone, OS or mobile browser you are using, so there is no way I could possibly help.  To be honest, I had no idea this library even worked on ANY smartphones whatsoever.
Try listening for the DOM orientation change event, and then destroying and reinitializing / reattaching WebcamJS when it fires.
https://developer.mozilla.org/en-US/docs/Web/Events/orientationchange
Good luck!

I've noticed this happening as well on Android devices. The webcam works fine and the preview works fine, but when they take the picture, it's squished into the desired size instead of cropping it.
For example, the camera generally takes pictures at 16:9, but it takes that picture and squishes it down to a 1:1 ratio for my app (crop_width and crop_height are both 480).

I've just come across the same issue which I solved by setting the width and height to be portrait or landscape based on screen.width being less than screen.height plus including an event listener for orientationchange to reset the webcam dimensions if the user changes orientation.
Works on my HTC One (M8), pretty sure it'll work on other devices also.
Something like this:
var attachWebcam = function() {
  var width = 320;
  var height = 240;

  if(screen.width < screen.height) {
    width = 240;
    height = 320;
  }

  Webcam.set({
    width: width,
    height: height
  });

  Webcam.attach('#MyWebcamDiv');
};

window.addEventListener('orientationchange', function() {
  Webcam.reset();
  attachWebcam();
});

attachWebcam();

@jhuckaby Faced this issue today. It is problematic only when video is in vertical position, when I move phone horizontally, library works like a charm. To me it seems like case when width is being larger than height is not covered in code, if I have time I will try to confirm this using some fake webcam program.

@zsalab any thoughts on @agajdosi's question?  I don't understand how the mobile capture code really works.  Could be related to #227.

How far I understand this is not iOS, so it should not use my code (if you didn't reuse something from it). I'm willing to help, but unfortunately this week is impossible (I also does not have any Android or Windows phone), but I will try to figure out. Thanks your understanding.

I read again the all comments on this issue. How far I understand this gonna be an orientation problem what we had on iOS but the iOS code works totally different way then the other mobile (I guess on Android it use the the HTML5 userMedia feature on Android).
I won't be able to debug this issue, but I can imagine two situation
1., the captured image has the exif orientation info and you can reuse the iOS code which rotate and scale the image based on the captured image exif orientation data, this would be the easier I think
2., get somehow the phone orientation data by the time the snap method called and reuse the iOS code with this orientation info
The third option to use a workaround like @aBrookland mention.
Anybody who willing to work on this and want to reuse the iOS part of the codebase to fix it, can contact me if need some help to understand how it is works, but unfortunately I do not have time to fix anything non iOS related in WebcamJS

Thanks @zsalab.  Appreciate you taking a look at this.  Sounds like we need to use your clever iOS EXIF rotation code for all images, regardless of source.  I'll look into this when I have some time.

https://github.com/hMatoba/piexifjs seems to help for getting exif out - only works for jpeg

https://github.com/jhuckaby/webcamjs/issues/263#issuecomment-693652956 here is a solution


Develop

:tada: This issue has been resolved in version 5.3.0-beta.10 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 5.4.0-beta.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 5.4.0-beta.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 5.4.0-beta.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Vitest does not print out coverage when reporter is specified

Describe the bug
Vitest is unable to print out anything when reported props is specified.
Reproduction
On this case I am using vitest-sonar-reporter as the reported to generate sonar report
import path from "path";
import { configDefaults, defineConfig } from "vitest/config";

export default defineConfig({
  test: {
    setupFiles: "./vitest.setup.ts",
    globals: true,
    environment: "jsdom",
    coverage: {
      enabled: true,
      provider: "v8",
      reporter: [
        ["json-summary", { outputFile: "coverage-summary.json" }],
        ["lcov", { outputFile: "lcov.info", silent: true }],
      ],
      exclude: [
        ...(configDefaults.coverage.exclude || []),
        "deployment/*",
        "public/*",
        "src/app.tsx",
        "src/clients/*",
        "src/index.tsx",
        "src/msw/*",
        "src/store/*",
        "src/utils/jwt.ts", // Copied from agent frontend project
        "src/utils/sentry/*",
        "**/type.ts",
        "**/__mocks__/*",
      ],
    },
    reporters: [["vitest-sonar-reporter", { outputFile: "./coverage/sonar-report.xml" }]],
  },
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"), // Resolve typescript alias
    },
  },
});

Here's what my terminal print out
yarn run v1.22.21
$ vitest
SonarQube report written to /Users/davinwisastra/Documents/Projects/POCs/agent-frontend-navbar/coverage/sonar-report.xml

But if I comment out reporters section, the coverage printed our properly
yarn run v1.22.21
$ vitest

 DEV  v1.3.1 /Users/davinwisastra/Documents/Projects/POCs/agent-frontend-navbar
      Coverage enabled with v8

 ✓ src/utils/nav-item/index.test.ts (6)
 ✓ src/utils/region-locale/index.test.ts (6)
 ✓ src/config/nav.test.ts (3)
 ✓ src/utils/url/index.test.ts (2)
 ✓ src/elements/avatar/avatar.test.tsx (3)
 ✓ src/elements/badge/index.test.tsx (3)
 ✓ src/components/language-toggle/language-toggle-th.test.tsx (2)
 ✓ src/components/bottom-nav/bottom-nav.test.tsx (2)
 ✓ src/utils/dss-redirection/index.test.tsx (2)
 ✓ src/elements/offcanvas/offcanvas.test.tsx (2)
 ✓ src/elements/bottom-sheet/bottom-sheet.test.tsx (1)
 ✓ src/components/nav-offcanvas/nav-bottom-sheet.test.tsx (3)
 ✓ src/components/bottom-nav/bottom-nav-loading.test.tsx (1)
 ✓ src/components/nav-bottom-sheet/nav-bottom-sheet.test.tsx (1)
 ✓ src/utils/hive/index.test.ts (1)
 ✓ src/utils/env/index.test.ts (2)
 ✓ src/widgets/navbar/navbar.test.tsx (1)
 ✓ src/components/svg-wrapper/svg-wrapper.test.tsx (1)
 ✓ src/components/language-toggle/language-toggle.test.tsx (1)
 ✓ src/components/sidebar/sidebar.test.tsx (1)

 Test Files  20 passed (20)
      Tests  44 passed (44)
   Start at  13:58:57
   Duration  16.66s (transform 3.50s, setup 7.13s, collect 29.85s, tests 1.36s, environment 12.90s, prepare 3.41s)

 PASS  Waiting for file changes...
       press h to show help, press q to quit

System Info
System:
    OS: macOS 14.4
    CPU: (8) arm64 Apple M1
    Memory: 94.52 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 20.11.0 - ~/.nodenv/versions/20.11.0/bin/node
    Yarn: 1.22.21 - ~/.nodenv/versions/20.11.0/bin/yarn
    npm: 10.2.4 - ~/.nodenv/versions/20.11.0/bin/npm
    pnpm: 8.14.1 - ~/.nodenv/versions/20.11.0/bin/pnpm
  Browsers:
    Chrome: 122.0.6261.112
    Safari: 17.4
  npmPackages:
    @vitejs/plugin-react: ^4.2.0 => 4.2.1
    @vitest/coverage-v8: ^1.3.1 => 1.3.1
    vite: ^4.4.5 => 4.5.2
    vitest: ^1.3.1 => 1.3.1

### Used Package Manager

yarn

### Validations

- [X] Follow our [Code of Conduct](https://github.com/vitest-dev/vitest/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitest.dev/guide/).
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vitest/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vitest/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

Or do you mean that even the lcov.info and coverage-summary.json are not being generated?

@AriPerkkio the coverage report are not printed out when reporter is specified. Are coverage and reporter not meant to be used together?

@AriPerkkio adding this solve my issue.

You are overwriting default coverage.reporter. Add text or text-summary if you want its output as well.
  coverage: {
      reporter: [
        ["json-summary", { outputFile: "coverage-summary.json" }],
        ["lcov", { outputFile: "lcov.info", silent: true }],
+       "text",
      ],

Thank you so much for the support!


Link Download milk.zip error

Search before asking

[X] I have searched the Autodistill issues and found no similar bug report.

Bug
Good day. i am facing an error regarding to milk.zip dataset which provided in GColab tutorial file.
Last week (Jan 12th 2024), i tried to run the tutorial file and it worked well.
Unfortunately, today, the tutorial is resulting error output which stated that the dataset is corrupt.

as you can see above, the milk.zip file is unable to be unzipped. hence i tried to download the file to local and tried to unzip manually, but resulted with the same output.

would you mind to fix the link?
thanks in advance.
cheers.
Environment
No response
Minimal Reproducible Example
!mkdir {HOME}/videos
%cd {HOME}/videos
download zip file containing videos
!wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1wnW7v6UTJZTAcOQj0416ZbQF8b7yO6Pt' -O- | sed -rn 's/.confirm=([0-9A-Za-z_]+)./\1\n/p')&id=1wnW7v6UTJZTAcOQj0416ZbQF8b7yO6Pt" -O milk.zip && rm -rf /tmp/cookies.txt
unzip videos
!unzip milk.zip
Additional
No response
Are you willing to submit a PR?

[x] Yes I'd like to help by submitting a PR!

Hello there! Can you please use:
!wget https://media.roboflow.com/milk.zip

I will replace the Google Drive text with the media.roboflow.com link above in the notebook but this wil take some time.
Let me know if you have any more questions!


Queries "link" don't work

I ran the code:
final result = await isar!.students.filter()
        .teacher((q) => q.subjectEqualTo('Math')
        .or()
        .subjectEqualTo('English')
    ).findAll();
    print('result ' + result.length.toString());

And got the result: result 0.
If I remove link query (teacher filter) I get results and on results have teacher with Math subject.
Version

Platform: iOS
Flutter version: 2.10.5
Isar version: 2.5.0
Isar Generator version: 2.5.0

Having the same problem with Isar 3.0.0-dev.1

Fixed in 3.0.0-dev.8


Cannot Connect To Redis Using Non-Default User

i can't connect to redis using a non-default user
i followed the instructions to use username based on the release notes for version 1.1.4 here
below is my example code
return new Predis\Client([
            "scheme" => $settings["scheme"], //tcp
            "host" => $settings["host"],
            "port" => $settings["port"],
            "username" => $settings["user"], //non-default user
            "database" => $settings["instance"],
            "password" => $settings["password"]
        ]);

but it always gives me error
Predis\Connection\ConnectionException: `AUTH` failed: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct? [tcp://<IP_ADDRESS>:6379]

did i do it wrong?
Versions Specification:

Predis: 1.1.10
PHP : 7.4
Redis Server : 7.0.2
OS Ubuntu 22.04

ERR AUTH  called without any password configured for the default user.


Update overview.md

Summary
Describe your changes here.
Fixes #Issue_Number (if available)

Internal previews

📄 File
🔗 Preview link

docs/orleans/overview.md
Microsoft Orleans

Tagging @mikekistler and @ReubenBond for their thoughts on these proposed changes.

@IEvangelist  just made edits per style guide. As is, it was too painful to read. Can you get this merged?


setup.py install fails on Windows

I seem to be having some configuration related problems when I try to run "setup.py install".  I am using Windows 7 and I have the latest python installed (3.6).  Is there something obvious I need to do before trying to install this?  Here is the output:
C:\asi_sdk\python-zwoasi>python setup.py install
==================================
['zwoasi']
==================================
running install
running bdist_egg
running egg_info
writing zwoasi.egg-info\PKG-INFO
writing dependency_links to zwoasi.egg-info\dependency_links.txt
writing requirements to zwoasi.egg-info\requires.txt
writing top-level names to zwoasi.egg-info\top_level.txt
reading manifest file 'zwoasi.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'zwoasi.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\zwoasi
copying build\lib\zwoasi_init_.py -> build\bdist.win-amd64\egg\zwoasi
byte-compiling build\bdist.win-amd64\egg\zwoasi_init_.py to init.cpython-36.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying zwoasi.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying zwoasi.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying zwoasi.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying zwoasi.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying zwoasi.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist\zwoasi-0.0.10-py3.6.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing zwoasi-0.0.10-py3.6.egg
Removing c:\users<removed>\appdata\local\programs\python\python36\lib\site-packages\zwoasi-0.0.10-py3.6.egg
Copying zwoasi-0.0.10-py3.6.egg to c:\users<removed>\appdata\local\programs\python\python36\lib\site-packages
zwoasi 0.0.10 is already the active version in easy-install.pth
Installed c:\users<removed>\appdata\local\programs\python\python36\lib\site-packages\zwoasi-0.0.10-py3.6.egg
Processing dependencies for zwoasi==0.0.10
Searching for scipy
Reading https://pypi.python.org/simple/scipy/
Downloading https://pypi.python.org/packages/f8/85/37e205d2c48a9691078bd3cd6b22237e399dc1ba049d31ba8e57da44b5be/scipy-0.18.1.zip#md5=99127abce294eaf76
eafb80ef431bb9b
Best match: scipy 0.18.1
Processing scipy-0.18.1.zip
Writing C:\Users<removed>\AppData\Local\Temp\easy_install-cpxesyi9\scipy-0.18.1\setup.cfg
Running scipy-0.18.1\setup.py -q bdist_egg --dist-dir C:\Users<removed>\AppData\Local\Temp\easy_install-cpxesyi9\scipy-0.18.1\egg-dist-tmp-ffsvnm0e
C:\Users<removed>\AppData\Local\Temp\easy_install-cpxesyi9\scipy-0.18.1\setup.py:322: UserWarning: Unrecognized setuptools command, proceeding with ge
nerating Cython sources and expanding templates
warnings.warn("Unrecognized setuptools command, proceeding with "
C:\Users<removed>\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\distutils\system_info.py:1051: UserWarning: Specified path C:\projec
ts\numpy-wheels\windows-wheel-builder\atlas-builds\atlas-3.11.38-sse2-64\lib is invalid.
pre_dirs = system_info.get_paths(self, section, key)
C:\Users<removed>\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
C:\Users<removed>\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
C:\Users<removed>\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
Running from scipy source directory.
error: no lapack/blas resources found

I solved this by manually installing numpy+mlk and scipy using whl files found here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
On to the next problem!  I was able to run setup.py install, and then I gave the example a try.  It fires up nicely, but then fizzles out with a timeout error at the end:
C:\asi_sdk\python-zwoasi\zwoasi\examples>python zwoasi_demo.py
Found one camera: Camera #0: b'ZWO ASI1600MM'
Camera controls:
b'AutoExpMaxBrightness':
ControlType: 12
DefaultValue: 100
Description: b'Auto exposure maximum brightness value'
IsAutoSupported: False
IsWritable: True
MaxValue: 160
MinValue: 50
Name: b'AutoExpMaxBrightness'
b'AutoExpMaxExp':
ControlType: 11
DefaultValue: 30
Description: b'Auto exposure maximum exposure value(unit second)'
IsAutoSupported: False
IsWritable: True
MaxValue: 60
MinValue: 1
Name: b'AutoExpMaxExp'
b'AutoExpMaxGain':
ControlType: 10
DefaultValue: 300
Description: b'Auto exposure maximum gain value'
IsAutoSupported: False
IsWritable: True
MaxValue: 600
MinValue: 0
Name: b'AutoExpMaxGain'
b'BandWidth':
ControlType: 6
DefaultValue: 50
Description: b'USB bandwidth percentage'
IsAutoSupported: True
IsWritable: True
MaxValue: 100
MinValue: 40
Name: b'BandWidth'
b'Brightness':
ControlType: 5
DefaultValue: 10
Description: b'Brightness'
IsAutoSupported: False
IsWritable: True
MaxValue: 60
MinValue: 0
Name: b'Brightness'
b'Exposure':
ControlType: 1
DefaultValue: 10000
Description: b'Exposure Time(us)'
IsAutoSupported: True
IsWritable: True
MaxValue:<PHONE_NUMBER>
MinValue: 32
Name: b'Exposure'
b'Flip':
ControlType: 9
DefaultValue: 0
Description: b'Flip: 0->None 1->Horiz 2->Vert 3->Both'
IsAutoSupported: False
IsWritable: True
MaxValue: 3
MinValue: 0
Name: b'Flip'
b'Gain':
ControlType: 0
DefaultValue: 0
Description: b'Gain'
IsAutoSupported: True
IsWritable: True
MaxValue: 600
MinValue: 0
Name: b'Gain'
b'Gamma':
ControlType: 2
DefaultValue: 50
Description: b'Gamma'
IsAutoSupported: False
IsWritable: True
MaxValue: 100
MinValue: 1
Name: b'Gamma'
b'HardwareBin':
ControlType: 13
DefaultValue: 0
Description: b'Is hardware bin2:0->No 1->Yes'
IsAutoSupported: False
IsWritable: True
MaxValue: 1
MinValue: 0
Name: b'HardwareBin'
b'HighSpeedMode':
ControlType: 14
DefaultValue: 0
Description: b'Is high speed mode:0->No 1->Yes'
IsAutoSupported: False
IsWritable: True
MaxValue: 1
MinValue: 0
Name: b'HighSpeedMode'
b'Pattern adjust':
ControlType: 20
DefaultValue: 0
Description: b'make brightness accordant'
IsAutoSupported: False
IsWritable: True
MaxValue: 4
MinValue: 0
Name: b'Pattern adjust'
b'Temperature':
ControlType: 8
DefaultValue: 20
Description: b'Sensor temperature(degrees Celsius)'
IsAutoSupported: False
IsWritable: False
MaxValue: 1000
MinValue: -500
Name: b'Temperature'
Capturing a single 8-bit mono image
Traceback (most recent call last):
File "zwoasi_demo.py", line 61, in
camera.capture(filename=filename)
File "C:\Users-\AppData\Local\Programs\Python\Python36\lib\site-packages\zwoasi-0.0.10-py3.6.egg\zwoasi_init_.py", line 457, in capture
File "C:\Users-\AppData\Local\Programs\Python\Python36\lib\site-packages\zwoasi-0.0.10-py3.6.egg\zwoasi_init_.py", line 407, in get_data
after_exposure
File "C:\Users-\AppData\Local\Programs\Python\Python36\lib\site-packages\zwoasi-0.0.10-py3.6.egg\zwoasi_init.py", line 253, in _get_dat
a_after_exposure
zwoasi.ZWO_Exception: Timeout
C:\asi_sdk\python-zwoasi\zwoasi\examples>

The recommended method to install is to use pip:
pip install zwoasi
As matlabplot, numpy and scipy are listed as requirements they should be installed automatically.
The image timeout occurs fetching the data after stills capture. Are you using a USB3 interface? I've added some code to 0.0.11 which checks the exposure status is correct. Please try this version and post any error message.

Ok, "pip install zwoasi" works nicely.
Yes, I am using the USB3 interface.  I updated to the latest code, and I'm still seeing an error.  Although, this time I got a dialog that said Python stopped working, and the output is different:
Capturing a single 8-bit mono image
Traceback (most recent call last):
File "zwoasi_demo.py", line 61, in
camera.capture(filename=filename)
File "C:\Users\moriartyp\AppData\Local\Programs\Python\Python36\lib\site-packages\zwoasi_init_.py", line 458, in capture
raise ZWO_Exception('Exposure problem (status was %d)' % status)
zwoasi.ZWO_Exception: Exposure problem (status was 3)

Thanks, that helps. 3 = ASI_EXP_FAILED "exposure failed, you need to start exposure again".
There are several differences here compared to my setup. Firstly you are using Windows and I've only tested under Linux so far (I'm trying Windows now - what did you do to find ASI SDK DLL?). Secondly you are using a cooled camera and I'm not sure if that requires different behaviour (eg waiting until the preset temperature is reached).
I'm investigating.

I have the ASI1600MM, which doesn't have a fan.  I don't think it's a cooled version.
I noticed in your code that you call:
zwolib_file = os.getenv('ZWO_ASI_LIB') or 'libASICamera2.so'
zwolib = c.cdll.LoadLibrary(zwolib_file)
So I added an environment variable called ZWO_ASI_LIB that points to the ASICamera2.dll that came with the SDK.  I have tried both x86 and x64 setups.  They both end up with the same result.
Thanks for investigating.

That's the correct procedure to locate the DLL (Windows) or .so (Linux). Perhaps I can improve on it but it works for now.
I've uploaded 0.0.12 to PyPi for install/upgrade via pip. I'm now using PIL instead of cv2 to save images. The demo program worked correctly under Windows 10 (64 bit version) on a VirtualBox virtual machine. Perhaps some other initialisation is required for the ASI1600MM that I haven't included. The latest version of the demo program now exits video mode before capturing the first stills image, just in case that was already active.

Still fails with "status was 3" (output below).  I'll look through the sdk examples to try and find a clue as to what I'm missing.
I'm using a Windows 7 virtual machine on VMware Fusion.  The computer that will be controlling the camera is a Windows machine, so I'm strapped to microsoft for now.  I'm able to run other apps like Fire Capture on it, so I don't think it's a USB issue.  Either way, I will post back if I ever get it working.  Thanks for all the help.
Enabling stills mode
Capturing a single 8-bit mono image
Traceback (most recent call last):
File "C:/Users/moriartyp/PycharmProjects/ZwoSdk/zwoasi_demo.py", line 69, in
camera.capture(filename=filename)
File "C:\Users\moriartyp\AppData\Local\Programs\Python\Python36\lib\site-packages\zwoasi_init_.py", line 458, in capture
raise ZWO_Exception('Exposure problem (status was %d)' % status)
zwoasi.ZWO_Exception: Exposure problem (status was 3)

I have abandoned the VMWare Fusion environment, and instead am using OS X  (my laptop's native OS).   I was able to load the SDK's mac friendly .dylib, and after some configuration I was able take an exposure using your zwoasi_demo.py script!
Oddly enough, only the ASI_IMG_RAW8 type works.  It fails after setting it to ASI_IMG_RAW16 and tries to capture.  At first I thought perhaps this was a limitation of my specific camera (ASI1600MM), although nothing in the documentation confirms that.  Any thoughts?

I had to make some changes for 16 bit captures, (https://github.com/stevemarple/python-zwoasi/commit/52ce920229dec9019d22e303c236a6966ca4b7a0), did you try the latest version of the demo program? If you had to make any configuration changes to work with OS X or ASI 1600MM can you please post them and the exception traceback so I can investigate some more?

I did get the latest, and I was still having an issue.  I heard back from ZWO and they told me to lower the usb bandwidth setting.  From your demo script, I saw that it was set at "50".  So I lowered it to "40" and it worked.  Now I'm getting an exception in single 8-bit mono frame:
Enabling stills mode
Capturing a single 8-bit mono image
Saved to image_mono.jpg
Camera settings saved to image_mono.jpg.txt
Capturing a single 16-bit mono image
Saved to image_mono16.tiff
Camera settings saved to image_mono16.tiff.txt
Color image not available with this camera
Enabling video mode
Capturing a single 8-bit mono frame
Traceback (most recent call last):
File "/Users/moriarty/PycharmProjects/ZwoAsi/zwoasi_demo.py", line 163, in
camera.capture_video_frame(filename=filename)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/zwoasi/init.py", line 491, in capture_video_frame
data = self.get_video_data(buffer=buffer, timeout=timeout)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/zwoasi/init.py", line 424, in get_video_data
return _get_video_data(self.id, timeout, buffer)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/zwoasi/init.py", line 191, in _get_video_data
r = zwolib.ASIGetVideoData(id, cbuf, sz, timeout)
ctypes.ArgumentError: argument 4: <class 'TypeError'>: wrong type

It looks like init.py (191) is trying to pass a float into an int, for the 4th parameter.
I changed it to:
r = zwolib.ASIGetVideoData(id, cbuf, sz, int(timeout))
Now I'm getting this:
Enabling stills mode
Capturing a single 8-bit mono image
Saved to image_mono.jpg
Camera settings saved to image_mono.jpg.txt
Capturing a single 16-bit mono image
Saved to image_mono16.tiff
Camera settings saved to image_mono16.tiff.txt
Color image not available with this camera
Enabling video mode
Capturing a single 8-bit mono frame
Traceback (most recent call last):
File "/Users/moriarty/PycharmProjects/ZwoAsi/zwoasi_demo.py", line 163, in
camera.capture_video_frame(filename=filename)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/zwoasi/init.py", line 491, in capture_video_frame
data = self.get_video_data(buffer=buffer, timeout=timeout)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/zwoasi/init.py", line 424, in get_video_data
return _get_video_data(self.id, timeout, buffer)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/zwoasi/init.py", line 194, in _get_video_data
raise zwo_errors[r]
zwoasi.ZWO_Exception: Timeout
Process finished with exit code 1

The USB bandwidth was set to the camera's specified default value. The demo program now sets it to the advertised minimum value. Settings were reset to their default before video capture, USB bandwidth is now excepted from being reset.It looks like you are now encountering Python 3 compatibility problems. Although I've targeted for Python 2 and 3 compatibility I've not tested yet for Python 3, I'll do that. In the meantime perhaps you can check with Python 2.7?
Release 0.0.13 should fix the USB bandwidth problems.

I'll move to python 2.7 as a last resort, we are pretty close to getting this to work.  I just updated to Release 0.0.13.  It works, although you need small tweak in the latest demo code to be compatible with Python 3:
camera.set_control_value(asi.ASI_BANDWIDTHOVERLOAD, camera.get_controls()[b'BandWidth']['MinValue'])
notice the b'. Python 2 will ignore it, and Python 3 needs it.

What I mean, is that it fixed the USB bandwidth issue, and the 16-bit image works.  The video mode is still failing with a timeout.

I was able to write a simple script that only does video capture, and it works.
import sys
import time
import zwoasi as asi
num_cameras = asi.get_num_cameras()
if num_cameras == 0:
print('No cameras found')
sys.exit(0)
cameras_found = asi.list_cameras()  # Models names of the connected cameras
if num_cameras == 1:
camera_id = 0
print('Found one camera: %s' % cameras_found[0])
else:
print('Found %d cameras' % num_cameras)
for n in range(num_cameras):
print('    %d: %s' % (n, cameras[n]))
# TO DO: allow user to select a camera
camera_id = 0
print('Using #%d: %s' % (camera_id, cameras_found[camera_id]))
camera = asi.Camera(camera_id)
camera_info = camera.get_camera_property()
camera.set_control_value(asi.ASI_GAIN, 139)
camera.set_control_value(asi.ASI_EXPOSURE, 30000)
camera.set_control_value(asi.ASI_BANDWIDTHOVERLOAD, camera.get_controls()[b'BandWidth']['MinValue'])
print('Enabling video mode')
camera.start_video_capture()
print('Capturing a single 8-bit mono frame')
camera.set_control_value(asi.ASI_BANDWIDTHOVERLOAD, camera.get_controls()[b'BandWidth']['MinValue'])
filename = 'image_video_mono.jpg'
camera.set_image_type(asi.ASI_IMG_RAW8)
camera.capture_video_frame(filename=filename)
print('Saved to %s' % filename)

The camera controls are supposed to be accessed as strings, I should have fixed that now for Python 3. Timeout is now explicitly cast to an integer. These changes are in 0.0.14. If you are getting a timeout for video mode capture then it seems you may be resetting the USB bandwidth to the default, along with all of the other parameters. In the latest demo code USB bandwidth is not reset. Please confirm that you are using the latest demo. It works for me under Python 2 and 3 with an ASI174 camera.

I updated to latest and it works.


Name conflict with existing gem / k8s tool

Hello 👋
It seems that your rename has unfortunately clashed with another tool: Shopify/krane
Coincidentally they're both ruby gems dealing with Kubernetes.
Just thought I'd raise this in case you are unaware as it could lead to confusion for users.

Hello @greg-cook. Thanks for pointing that out. We're aware of existence of Shopify/krane tool and should come up with a solution to that potential issue. Note that appvia/krane is not published as gem yet.


WIP: Resolves a character on 'Keypress'

Description

When the 'keypress' event is called it will convert the 'keychar' to a character.
Keycode on a 'keypress' is will use the int of keychar
Removed 'use strict'
Removed 'npm run build' from appveyor because the deploy command already does this.

Motivation and Context
Saves users having to resolve this in the JS
Screenshots (if appropriate):

Types of changes

[ ] Bug fix (a non-breaking change which fixes an issue)
[X] New feature (a non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[X] My code follows the code style of this project.
[X] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests pass.

Does it work on a non-QWERTY keyboard ? I use a fr_FR keyboard and had difficulties to match Linux keycode to actual chars.

@Djiit I don't think it does.
I tested on fr_CA, Windows and it didn't correctly match accents. Let's hold off on this for now.

Ok, that's what we found earlier. As a user suggest, would it make sense to ship this AND warn the user it only maps to a standard, en_US QWERTY keyboard layout ?

Sounds like a plan. Does String.fromCharCode() with the keycode resolve the correct character for you?

Finally had some times to test it out -- and nope, it doesn't resolve the correct character; most of the time no character (or at least no printable character) at all.

#74 may help 😉

@matthewshirley Tested out your branch, and I'm getting this error:
ist [628]: Could not find keyboard map for locale<PHONE_NUMBER>090409!
refresh_locale_list [470]: GetKeyboardLayoutList(0, NULL) found 1 layouts.
refresh_locale_list [487]: Received 1 locales.
load_input_helper [860]: refresh_locale_list() found 0 locale(s).

I also logged the event, which looks like this:
{ keycode: 30, rawcode: 65, type: "keydown", mask: 0 }

Any ideas on how we can load the locale for the keychar properly?

@matthewshirley Hi. What is state of this PR ?


Fire interact with air event on C0APacketAnimation

There is no "interact with air" event fired in C0APacketAnimation.

!!!!

Duplicate of https://github.com/SpongePowered/SpongeForge/issues/480


No module named '_pywrap_tensorflow_internal'

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No
- TensorFlow installed from (source or binary): python -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl
(doing a regular pip installation does not work for me)

TensorFlow version: 1.12.0
Python version: 3.6.0
Installed using virtualenv? pip? conda?: pip
Bazel version (if compiling from source): ?? I dont think I have this
GCC/Compiler version (if compiling from source): ?? I dont think I have this
CUDA/cuDNN version: ?? I dont think I have this
GPU model and memory: None. I was told I could do this without a gpu.

Describe the problem
I want to run DarkFlow. Specifically I want to run this:
from darkflow.net.build import TFNet
options = {"model": "cfg/yolo.cfg",
"load": "bin/yolo.weights",
"threshold": 0.1,
"gpu": 0.0}
tfnet = TFNet(options)
Provide the exact sequence of commands / steps that you executed before running into the problem

I installed tensorflow in the aforementioned manner

I Tried to run the aforementioned code:

C:\Users\gcovillo\darkflow-master>python darkflowEx.py
Traceback (most recent call last):
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(file)])
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\imp.py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
import _pywrap_tensorflow_internal
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "darkflowEx.py", line 2, in
from darkflow.net.build import TFNet
File "C:\Users\gcovillo\darkflow-master\darkflow\net\build.py", line 1, in
import tensorflow as tf
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(file)])
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\imp.py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
import _pywrap_tensorflow_internal
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errorshefor some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
Any Help would be appreciated. I know there is already a closed case with this but I really have no clue what that guy was saying.

@gcovillo
please refer to these existing issues on the same error faced
#36167 (comment)
#36167 #36151 #36138 #36054 #36045 #36020 #36003 #35988 #35903 #35880 #35865 #35805 #35789 #35773 #35772 #35767 #35766 #35749 #35721 #35618 #35204

@Saduf2019 Thank you. I thought I had checked most of these but found that I was running 32 bit instead of 64. This has led to an error about DLLS but I have downloaded Microsoft visual studio 2015 already.
Traceback (most recent call last):
File "darkflowEx.py", line 2, in
from darkflow.net.build import TFNet
File "C:\Users\gcovillo\darkflow-master\darkflow\net\build.py", line 1, in
import tensorflow as tf
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 101, in
from tensorflow_core import *
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core_init_.py", line 40, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\python_init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 30, in
self_check.preload_check()
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\python\platform\self_check.py", line 60, in preload_check
% " or ".join(missing))
ImportError: Could not find the DLL(s) 'msvcp140.dll or msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a directory that is named in your %PATH% environment variable. You may install these DLLs by downloading "Microsoft C++ Redistributable for Visual Studio 2015, 2017 and 2019" for your platform from this URL: https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads

Traceback (most recent call last):
File "darkflowEx.py", line 2, in
from darkflow.net.build import TFNet
File "C:\Users\gcovillo\darkflow-master\darkflow\net\build.py", line 1, in
import tensorflow as tf
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 101, in
from tensorflow_core import *
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core_init_.py", line 40, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init.py", line 50, in getattr
module = self.load()
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init.py", line 44, in _load
module = importlib.import_module(self.name)
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\python_init.py", line 64, in
from tensorflow.core.framework.graph_pb2 import *
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\core\framework\graph_pb2.py", line 7, in
from google.protobuf import descriptor as _descriptor
File "C:\Users\gcovillo\AppData\Local\Programs\Python\Python36\lib\site-packages\google\protobuf\descriptor.py", line 47, in
from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified procedure could not be found.
now its doing this.

C:\Users\gcovillo\darkflow-master>python darkflowEx.py
2020-03-26 10:50:43.178108: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-03-26 10:50:43.185108: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "darkflowEx.py", line 2, in
from darkflow.net.build import TFNet
File "C:\Users\gcovillo\darkflow-master\darkflow\net\build.py", line 5, in
from .ops import op_create, identity
File "C:\Users\gcovillo\darkflow-master\darkflow\net\ops_init_.py", line 1, in
from .simple import *
File "C:\Users\gcovillo\darkflow-master\darkflow\net\ops\simple.py", line 1, in
import tensorflow.contrib.slim as slim
ModuleNotFoundError: No module named 'tensorflow.contrib'
NEW ERROR!!!! This feels like a puzzle.

File "darkflowEx.py", line 2, in
from darkflow.net.build import TFNet
File "C:\Users\gcovillo\darkflow-master\darkflow\net\build.py", line 7, in
from .framework import create_framework
File "C:\Users\gcovillo\darkflow-master\darkflow\net\framework.py", line 1, in
from . import yolo
File "C:\Users\gcovillo\darkflow-master\darkflow\net\yolo_init_.py", line 2, in
from . import predict
File "C:\Users\gcovillo\darkflow-master\darkflow\net\yolo\predict.py", line 7, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
ModuleNotFoundError: No module named 'darkflow.cython_utils.cy_yolo_findboxes'
next error to solve

WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:

https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
https://github.com/tensorflow/addons
https://github.com/tensorflow/io (for I/O related ops)
If you depend on functionality not listed there, please file an issue.

WARNING:tensorflow:From C:\Users\gcovillo\darkflow-master\darkflow\net\build.py:15: The name tf.train.RMSPropOptimizer is deprecated. Please use tf.compat.v1.train.RMSPropOptimizer instead.
WARNING:tensorflow:From C:\Users\gcovillo\darkflow-master\darkflow\net\build.py:16: The name tf.train.AdadeltaOptimizer is deprecated. Please use tf.compat.v1.train.AdadeltaOptimizer instead.
WARNING:tensorflow:From C:\Users\gcovillo\darkflow-master\darkflow\net\build.py:17: The name tf.train.AdagradOptimizer is deprecated. Please use tf.compat.v1.train.AdagradOptimizer instead.
WARNING:tensorflow:From C:\Users\gcovillo\darkflow-master\darkflow\net\build.py:18: The name tf.train.AdagradDAOptimizer is deprecated. Please use tf.compat.v1.train.AdagradDAOptimizer instead.
WARNING:tensorflow:From C:\Users\gcovillo\darkflow-master\darkflow\net\build.py:19: The name tf.train.MomentumOptimizer is deprecated. Please use tf.compat.v1.train.MomentumOptimizer instead.
WARNING:tensorflow:From C:\Users\gcovillo\darkflow-master\darkflow\net\build.py:20: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.
WARNING:tensorflow:From C:\Users\gcovillo\darkflow-master\darkflow\net\build.py:21: The name tf.train.FtrlOptimizer is deprecated. Please use tf.compat.v1.train.FtrlOptimizer instead.
WARNING:tensorflow:From C:\Users\gcovillo\darkflow-master\darkflow\net\build.py:22: The name tf.train.GradientDescentOptimizer is deprecated. Please use tf.compat.v1.train.GradientDescentOptimizer instead.
Traceback (most recent call last):
File "darkflowEx.py", line 9, in
tfnet = TFNet(options)
File "C:\Users\gcovillo\darkflow-master\darkflow\net\build.py", line 58, in init
darknet = Darknet(FLAGS)
File "C:\Users\gcovillo\darkflow-master\darkflow\dark\darknet.py", line 13, in init
self.get_weight_src(FLAGS)
File "C:\Users\gcovillo\darkflow-master\darkflow\dark\darknet.py", line 47, in get_weight_src
'{} not found'.format(FLAGS.load)
AssertionError: bin/yolo.weights not found
yay! were getting closer!

Took this issue to this:
https://github.com/thtrieu/darkflow/issues/1155


Collision detection

Keep yourself on the road!

Since it doesn't let me make a pull request, I'm copying the code to allow collision detection with the world. It's not the most efficient thing in the world, but at least it provides a better experience than now.
Change RigidBody wrapper in Tour_paris_promenade.jsx to wrap group mesh
export function Paris(props) {
  const { nodes, materials } = useGLTF('./models/tracks/tour_paris_promenade-transformed.glb')
  materials.M_Cmn_ShadowCollision.opacity = 0
  materials.M_Cmn_ShadowCollision.transparent = true
  return (
    <RigidBody type="fixed" colliders="trimesh" name="terrain">
      <group {...props} scale={50} position={[0, -3.6, 0]} dispose={null}>
        <mesh castShadow receiveShadow geometry={nodes.N_Road_Ground_M_Cmn_MainColor_Detail_0.geometry} material={materials.M_Cmn_MainColor_Detail} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.N_Road_Ground_M_Mobp1_Road_A_0.geometry} material={materials.M_Mobp1_Road_A} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.N_Road_Ground_M_Mobp1_Road_B_0.geometry} material={materials.M_Mobp1_Road_B} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.N_Road_Ground_M_Mobp1_Water_0.geometry} material={materials.M_Mobp1_Water} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.ShadowCollision_M_Cmn_ShadowCollision_0.geometry} material={materials.M_Cmn_ShadowCollision} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.F_BlindBuilding_M_Mobp1_Textures01_0.geometry} material={materials.M_Mobp1_Textures01} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.Gmob_Paris_VR_M_Mobp1_VR_0.geometry} material={materials.M_Mobp1_VR} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.N_Building_002_M_Mobp1_kanban_0.geometry} material={materials.M_Mobp1_kanban} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.N_Building_002_M_Mobp1_gaisenmon_tex_0.geometry} material={materials.M_Mobp1_gaisenmon_tex} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.Rainbow_model_M_Mobp1_Rainbow_0.geometry} material={materials.M_Mobp1_Rainbow} position={[-0.16, 0.001, 0]} rotation={[0, -Math.PI / 2, 0]} scale={0.01} />
        <mesh castShadow receiveShadow geometry={nodes.N_Audience_NoMove_01_M_Cmn_AudienceModel_0.geometry} material={materials.M_Cmn_AudienceModel} scale={0.01} />
      </group>
    </RigidBody>
  )
}

Would you mind explain to me why you can't contribute ?
While this looks like a good idea at first, it actually isn't, the performance cost of having to check collision with the ENTIRE terrain is way to huge, which is why there's a mesh named ShadowCollision, I will add real and proper offtrack check, but it can't be that way

Just fixed it by editing the 3D mesh directly in blender, thank you !


fix: netcat source tcp connection is not closed

when client using tcp short connection, netcat source tcp connections were not closed. flume had lots of tcp close_wait until  process exited!

We don't accept pull requests. Could you please attach the patch to a jira here: https://issues.apache.org/jira/browse/FLUME ? Thanks!


ui: display other props if +code is unavailable

Not being able to retrieve your +code shouldn't prevent other important parts of the UI from rendering.

Sorry for the very late response. Can you create another PR that merges into the dev branch instead? I don't know how to change it from my end.

@nallux-dozryl I've switched it to dev

Closing this in favor of #150


Can't generate hide.js

Hi, Following the read me in the Hide repo I have completed the requirements of step one and can write, run, and build a Heap projects, but when I run "haxe hide.hxml" from the root of the Hide repo I get the following output and the hide.js file is not generated:
PS E:\dev\Game\Heaps\tools\hide> haxe .\hide.hxml
E:\dev\HaxeToolkit\haxe\lib\hscript/2,3,0/hscript/Macro.hx:217: characters 15-19 : Null should be Null<haxe.macro.FunctionKind>
E:\dev\HaxeToolkit\haxe\lib\hscript/2,3,0/hscript/Macro.hx:217: characters 15-19 : For function argument 'kind'
E:\dev\HaxeToolkit\haxe\lib\hscript/2,3,0/hscript/Macro.hx:208: lines 208-222 : Void should be haxe.macro.ExprDef
E:\dev\HaxeToolkit\haxe\lib\hscript/2,3,0/hscript/Checker.hx:298: characters 18-19 : Unmatched patterns: CTNamed | CTOpt
hide/comp/ScriptEditor.hx:69: characters 14-26 : hscript.Checker has no field removeGlobal
hide/comp/ScriptEditor.hx:97: characters 56-60 : hscript.TType has no field name
hide/comp/ScriptEditor.hx:97: characters 81-85 : hscript.TType has no field args
hide/comp/ScriptEditor.hx:97: characters 107-111 : hscript.TType has no field args
hide/comp/ScriptEditor.hx:135: characters 26-113 : { t : hscript.TType, params : Array<hscript.TType>, name : String, isPublic : Bool, complete : Bool, canWrite : Bool } has extra field complete
hide/comp/ScriptEditor.hx:135: characters 26-113 : { t : hscript.TType, params : Array<hscript.TType>, name : String, isPublic : Bool, complete : Bool, canWrite : Bool } has extra field canWrite
hide/comp/ScriptEditor.hx:135: characters 26-113 : For function argument 'value'
hide/comp/ScriptEditor.hx:153: characters 14-24 : hscript.Checker has no field setGlobals (Suggestions: setGlobal, getGlobals)
hide/comp/ScriptEditor.hx:158: characters 11-27 : hscript.Checker has no field allowUntypedMeta
hide/comp/ScriptEditor.hx:159: characters 11-29 : hscript.Checker has no field allowGlobalsDefine
hide/comp/ScriptEditor.hx:215: characters 10-22 : hscript.Parser has no field resumeErrors
hide/comp/ScriptEditor.hx:218: characters 37-41 : Too many arguments
hide/comp/ScriptEditor.hx:220: characters 16-42 : Module hscript.Checker does not define type Completion
hide/comp/ScriptEditor.hx:238: characters 14-19 : Cannot access private field unify
hide/comp/ScriptEditor.hx:294: characters 36-37 : Void should be hscript.TType
hide/comp/ScriptEditor.hx:294: characters 36-37 : For function argument 't'
hide/comp/ScriptEditor.hx:292: characters 8-9 : Variables of type Void are not allowed

You need hscript git version as hide use some recent features.


Return always a value in function to satisfy 'noImplicitReturns' rule

In case of an error the catch block will be executed but doesn't return any value.
Using a fall through return at the end of the function satisfies the rule of 'noImplicitReturns'.

Yes, the compile issue occurs even if node_modules is listed in excludes and using the skipLibCheck option.
I came to the conclusion that the behavior of these parameters for the typescript compiler differ depending on the library artifact.
In case the library consists of javascript plus additional type information in d.ts files these parameters might disable the checks but if the library itself provides typescript code the typescript compiler analysis the files accessed via imports and applies the same rules as for the actual project. I'm not sure if this is meant to be like that or an unresolved issue. The documentation isn't clear about it and can be, mildly said, called ambiguous about it.
I'm more than happy to bump the version but I'm note entirely sure if understand correctly what to do because I didn't find  any version number to bump in the README.md. Do you mean the package.json and CHANGELOG.md file instead?

package.json pointed to version 2.2.1 but CHANGELOG.md already included 2.2.2 therefor I bumped to version 2.2.3 in both files.