SCF ERROR array must not contain infs or NaNs

Hi, I am runing an atom calculation using pyscf, see below, but got an error ValueError: array must not contain infs or NaNs. I put the full error traceback after the script. The error seems to be raised by asarray_chkfinite function. Does anybody know how to solve this problem. Thank you!
pyscf version 2.1.1 and system is MacOS (M1)
from pyscf import gto,dft

mol = gto.M(
    atom = '''
        C    0.00000000    0.00000000    0.00000000
            ''',
    spin=2,
    charge=0,
)
mol.basis='ccpvtz'
mol.cart=False
mol.build()

myrks=dft.RKS(mol)
myrks.xc='SCAN'
myrks.grids.atom_grid=(99,590)
myrks.kernel()

python -u "/Users/Desktop/Python/atom.py"
Traceback (most recent call last):
  File "/Users/Desktop/Python/atom.py", line 17, in <module>
    myrks.kernel()
  File "<string>", line 2, in kernel
  File "/opt/miniforge/base/envs/py39/lib/python3.9/site-packages/pyscf/scf/hf.py", line 1692, in scf
    kernel(self, self.conv_tol, self.conv_tol_grad,
  File "/opt/miniforge/base/envs/py39/lib/python3.9/site-packages/pyscf/scf/hf.py", line 173, in kernel
    mo_energy, mo_coeff = mf.eig(fock, s1e)
  File "/opt/miniforge/base/envs/py39/lib/python3.9/site-packages/pyscf/scf/rohf.py", line 380, in eig
    e, c = self._eigh(fock, s)
  File "/opt/miniforge/base/envs/py39/lib/python3.9/site-packages/pyscf/scf/hf.py", line 1526, in _eigh
    return eig(h, s)
  File "/opt/miniforge/base/envs/py39/lib/python3.9/site-packages/pyscf/scf/hf.py", line 1165, in eig
    e, c = scipy.linalg.eigh(h, s)
  File "/opt/miniforge/base/envs/py39/lib/python3.9/site-packages/scipy/linalg/decomp.py", line 445, in eigh
    a1 = _asarray_validated(a, check_finite=check_finite)
  File "/opt/miniforge/base/envs/py39/lib/python3.9/site-packages/scipy/_lib/_util.py", line 293, in _asarray_validated
    a = toarray(a)
  File "/opt/miniforge/base/envs/py39/lib/python3.9/site-packages/numpy/lib/function_base.py", line 488, in asarray_chkfinite
    raise ValueError(
ValueError: array must not contain infs or NaNs

Which version of PySCF and libxc do you have? How did you install them? SCAN had many numerical issues in the past but they were fixed a few years ago in libxc 5.1.0. Running your input with PySCF 2.1.1 and Libxc 5.2.2 I get the following output
$ python scan.py
converged SCF energy = -37.8339863490095

Note also that SCAN is a numerically a truly horrible functional. You should use r2SCAN instead, it is better behaved, even if it still suffers from similar issues, see https://doi.org/10.1063/5.0121187

@susilehtola Thank you for your answer. I am using pyscf version 2.1.1, installed by pip install pyscf command. I am not sure which version of libxc and xcfunc will be installed in such way, and I still have the same "NaN/inf" error. Should I compile the code or build it offline to make sure pyscf works with latest libxc?

According to #1490 the pip package isn't using libxc; the NaNs may arise from xcfun. It might be best to compile the code yourself.

@susilehtola Thanks! I recomplied pyscf on my mac now I get the correct result. Thank you!


Reduce the number of env vars exposed to subprocess

The following env vars are no longer exposed to subprocesses run by the buildpack (such as the bin/pre_compile and bin/post_compile hooks):

BPLOG_PREFIX
CACHED_PYTHON_STACK
DEFAULT_PYTHON_STACK
DEFAULT_PYTHON_VERSION
LATEST_27
LATEST_34
LATEST_35
LATEST_36
LATEST_37
LATEST_38
PIP_UPDATE
PY27
PY34
PY35
PY36
PY37
PYPY_27
PYPY_36
RECOMMENDED_PYTHON_VERSION
WARNINGS_LOG

There were previously no tests at all for the pre/post-compile hooks, so I've added some now.
Fixes #1010.

@Malax I've updated the PR to fix the test runner (by adding run_in_clean_env) to make the tests pass. Previously env vars from outside the test runner were leaking into the tests. This was an issue since the way tests run locally and on Travis differs even though they both use Docker (something else to fix at some point) so the test was reporting different env vars for each.

I've updated the PR to fix the test runner

This fix required several broken tests to be fixed too, so I split those changes out to #1016, and have now rebased on that.

Even after the test harness fixes in #1016 the newly added test here was failing -- and seemingly only on Travis (it passed locally).
After two hours of digging into the differences between the way the tests run locally and on Travis (something that's now resolved in #1021), I noticed that actually the failures seen were not Travis-specific but stack-specific, and locally I happened to be using the one stack out of three on which the test passed (Heroku-18) 🤦
The fact that the tests failed on only 2 out of 3 stacks on Travis was hard to spot, since the test matrix was configured to split jobs by test suite and not stack, and Heroku-18 was the last stack to run in each job so the passing test was hidden right at the end of the log. I've now split the stacks out into their own jobs as part of #1018 to prevent this in the future.
The test failure itself was due to OLDPWD being present in the environment of bin/{pre,post}_compile on Heroku-18, but not for Cedar-14 or Heroku-16.
I managed to create a repro outside the tests:
Ubuntu 16.04:
$ docker run --rm -it ubuntu:16.04 bash -c 'cd /tmp; echo "OLDPWD=$OLDPWD"; bash -c "echo \"OLDPWD=\$OLDPWD\""'
OLDPWD=/
OLDPWD=

Ubuntu 18.04:
$ docker run --rm -it ubuntu:18.04 bash -c 'cd /tmp; echo "OLDPWD=$OLDPWD"; bash -c "echo \"OLDPWD=\$OLDPWD\""'
OLDPWD=/
OLDPWD=/

The version of bash in Ubutnu 16.04 is 4.3.48, and in 18.04 is 4.4.20.
As such I believe it's due to this change:
OLDPWD can be inherited from the environment if it names a directory.
(https://git.savannah.gnu.org/cgit/bash.git/tree/NEWS)
Which is referenced also here:
https://unix.stackexchange.com/questions/242909/why-does-bash-clear-oldpwd-when-a-child-script-is-started
https://groups.google.com/d/msg/gnu.bash.bug/k7o0xnVyUzI/MJz9SfMXAQAJ
It seems fine to just exclude that env var from the test.


cleanup temp binary file

Describe the bug
A 10MiB binary file examples/hello-world/order has been checked in.
Maybe a revert/force push action is needed.
To Reproduce

Expected behavior

@berndverst @yaron2

Fixed, thanks!


Change DefaultProfilerConfig to a SingleTon

Change DefaultProfilerConfig to a SingleTon,
So I can use DefaultProfilerConfig in AbstractRecorder.recordException method for record detailed exception with config。

Codecov Report

Merging #7220 into master will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #7220      +/-   ##
==========================================
- Coverage   39.11%   39.08%   -0.04%
==========================================
  Files        3299     3299
  Lines       95824    95838      +14
  Branches    11840    11843       +3
==========================================
- Hits        37486    37458      -28
- Misses      55423    55466      +43
+ Partials     2915     2914       -1

Impacted Files
Coverage Δ

...npoint/bootstrap/config/DefaultProfilerConfig.java
65.74% <0.00%> (-1.88%)
:arrow_down:

.../navercorp/pinpoint/bootstrap/PinpointStarter.java
0.00% <0.00%> (ø)

...rp/pinpoint/rpc/control/ControlMessageDecoder.java
64.28% <0.00%> (-14.29%)
:arrow_down:

...vercorp/pinpoint/rpc/packet/ClientClosePacket.java
55.55% <0.00%> (-11.12%)
:arrow_down:

.../pinpoint/rpc/client/PinpointClientHandshaker.java
58.74% <0.00%> (-5.60%)
:arrow_down:

...navercorp/pinpoint/rpc/common/SocketStateCode.java
82.92% <0.00%> (-2.44%)
:arrow_down:

...java/com/navercorp/pinpoint/rpc/DefaultFuture.java
72.50% <0.00%> (-1.67%)
:arrow_down:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
78.39% <0.00%> (-1.05%)
:arrow_down:

...point/rpc/client/DefaultPinpointClientHandler.java
72.07% <0.00%> (-0.98%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
70.00% <0.00%> (ø)

... and 1 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 0b5181e...7208747. Read the comment docs.

@emeroad
Do you think there is any problem with this way？ Thank you~

We avoid using the singleton pattern whenever possible.
It is recommended to inject the object from the guice container.

container
OK, thank you. I'll think about it again

The recommended pattern is below.
public class DefaultRecorderFactory implements RecorderFactory {
    private ProfilerConfig config;
    private final StringMetaDataService stringMetaDataService;
    private final SqlMetaDataService sqlMetaDataService;
    private final Provider<AsyncContextFactory> asyncContextFactoryProvider;
    private final IgnoreErrorHandler errorHandler;

    @Inject
    public DefaultRecorderFactory(ProfilerConfig config, //<---  ProfilerConfig is injected from the guice.
                                  Provider<AsyncContextFactory> asyncContextFactoryProvider,
                                  StringMetaDataService stringMetaDataService, SqlMetaDataService sqlMetaDataService, IgnoreErrorHandler errorHandler) {
        this.config = Assert.requireNonNull(config, "config");

        this.asyncContextFactoryProvider = Assert.requireNonNull(asyncContextFactoryProvider, "asyncContextFactoryProvider");
        this.stringMetaDataService = Assert.requireNonNull(stringMetaDataService, "stringMetaDataService");
        this.sqlMetaDataService = Assert.requireNonNull(sqlMetaDataService, "sqlMetaDataService");
        this.errorHandler = Assert.requireNonNull(errorHandler, "errorHandler");
    }

Thank you very much. I'll try~


transducer results

@awni  Do you have results for the transducer model?

@awni  When I set a batch size of 64, I will get "*** Error in `python': double free or corruption (!prev): 0x0000000077e2ec40 ***". And if with a  batch size of 128, it will get a "segmentation fault".
I ensure that the GPU memory is large enough and the transducer can work with a small batch size (such as 10). Could you give me any suggestion on solving this problem?


Non-existent link for a term

In the last item of the list in the "Modify a record" section, the term (or a property name) Error does not refer to the desired page of that term.

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

ID: a9d3b377-2f9f-67b0-4d7a-87776c96e2ea
Version Independent ID: 9ba08546-4f01-31ec-dc3f-faa1068525db
Content: Understand data sources for canvas apps - Power Apps
Content Source: powerapps-docs/maker/canvas-apps/working-with-data-sources.md
Service: powerapps
GitHub Login: @gregli-msft
Microsoft Alias: gregli

Thank you for reaching out. That is introduced earlier on in the article - Working with tables bullet 3, last item.


python310Packages.smart-open: 6.3.0 -> 6.4.0

Diff: https://github.com/RaRe-Technologies/smart_open/compare/refs/tags/v6.3.0...v6.4.0
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

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

62 packages built:

pentestgpt
pentestgpt.dist
python310Packages.fastai
python310Packages.fastai.dist
python310Packages.fuzzytm
python310Packages.fuzzytm.dist
python310Packages.gensim
python310Packages.gensim.dist
python310Packages.langchain
python310Packages.langchain.dist
python310Packages.natasha
python310Packages.natasha.dist
python310Packages.navec
python310Packages.navec.dist
python310Packages.pathy
python310Packages.pathy.dist
python310Packages.ray
python310Packages.ray.dist
python310Packages.slovnet
python310Packages.slovnet.dist
python310Packages.smart-open
python310Packages.smart-open.dist
python310Packages.spacy
python310Packages.spacy-lookups-data
python310Packages.spacy-lookups-data.dist
python310Packages.spacy-transformers
python310Packages.spacy-transformers.dist
python310Packages.spacy.dist
python310Packages.textacy
python310Packages.textacy.dist
python310Packages.textnets
python310Packages.textnets.dist
python311Packages.fastai
python311Packages.fastai.dist
python311Packages.fuzzytm
python311Packages.fuzzytm.dist
python311Packages.gensim
python311Packages.gensim.dist
python311Packages.natasha
python311Packages.natasha.dist
python311Packages.navec
python311Packages.navec.dist
python311Packages.pathy
python311Packages.pathy.dist
python311Packages.ray
python311Packages.ray.dist
python311Packages.slovnet
python311Packages.slovnet.dist
python311Packages.smart-open
python311Packages.smart-open.dist
python311Packages.spacy
python311Packages.spacy-lookups-data
python311Packages.spacy-lookups-data.dist
python311Packages.spacy-transformers
python311Packages.spacy-transformers.dist
python311Packages.spacy.dist
python311Packages.textacy
python311Packages.textacy.dist
python311Packages.textnets
python311Packages.textnets.dist
snakemake
snakemake.dist


Inconsistency in selecting a word on double click to a value in json in Value tab

Description
More text is selected on double click to a text of a json in Value tab than expected .
DBeaver Version
Community Edition <IP_ADDRESS>407250946
Operating System
Windows 10
Database and driver
PostgreSQL 16
PostgreSQL JDBC Driver 42.7.2
Steps to reproduce
https://github.com/user-attachments/assets/e72634a9-24c6-46fa-ac5b-70dc40ce19c3
execute this code:
create table t5 (a json);

insert into t5 values('{"hello": "2d1155a8a-e004-4809-87e4-1781e5594213"}');

select * from t5

open Value-tab and double click on e004.
Expected: the "word" e004 is selected
Actual: the "word" 2d1155a8a-e004 is selected
Additional context
No response

Thank you for the bug report


Dependency kino 0.6.2 does not match requirement specified

Describe the issue
A problem wrt Kino is being reported.   I am on chrome on mac.
Reproduction Steps (If Applicable)
Steps to reproduce the behavior:

Go to 'http://localhost:8080/sessions/b74q6ibrz3hcey5lnebtbhropxme7pparhqezurn/parent/reading/livebook.livemd'
Click on 'Notebook dependencies and setup'
Scroll down to '....'
See error
Unchecked dependencies for environment dev:

kino (Hex package)
the dependency kino 0.6.2

In deps/smart_animation/mix.exs:
{:kino, "~> 0.6.2", [env: :prod, hex: "kino", repo: "hexpm"]}

does not match the requirement specified

In deps/hidden_cell/mix.exs:
{:kino, "~> 0.7.0", [env: :prod, hex: "kino", repo: "hexpm"]}

Ensure they match or specify one of the above in your deps and set "override: true"

Expected behavior
I expected OK!
Screenshots

If applicable, add screenshots to help explain your problem.

I have the same issue

Thank you for making the contents of this curriculum open source!
Unfortunately I also have this issue. It happened the first time when I did the dependency setup at Core Syntax/Control Flow and Abstraction/Functions. I've gone through the setups again from the start and the problem starts happening from setting up  at Core Syntax/Core Syntax/Basics/Arithmetic. I did not have this issue when I did that same Arithmetic part two weeks ago.
My OS: Linux Mint 20.3
I use asdf with the Elixir and Erlang version from the repo's .tool-versions installed.

Hi, yeah encountered this issue on the Arithmetic sections seems by
{:kino, "~> 0.7.0", override: true}

To the Mix.install notebook dependencies and setup, mitigates the issue. Certainly feels to go a bit deeper than that, however gets it back to a working state.

Hi @gcavanunez are you suggesting a fix for this issue?
If so, could you please providing more details on how to fix it?

Thank you @gcavanunez  - your fix / workaround works for me!
@riccar, I have exemplified in the screen shot:

Thanks for the workaround, works also for me now!

Thank you for posting the workaround. The issue was caused by the smart_animation library using an old version of kino. I've updated the library so that should resolve the issue for folks.
I'm about to push up a PR that will make sure this issue does not happen again.

Thanks everyone.
The workaround works.
Kind Regards
Ricardo Carballo | Software Developer
you can also email me to
@.***
Sent with Proton Mail secure email.
------- Original Message -------
On Thursday, November 17th, 2022 at 8:02 PM, dtewbanerji @.***> wrote:

Thank you @.***(https://github.com/gcavanunez) - your fix / workaround works for me!
@.***(https://github.com/riccar), I have exemplified in the screen shot:
Screenshot 2022-11-17 at 08 59 02
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


Devices Tab in Config Client Stops Responding

I installed HidHide with no issues and hid the controllers I wished to when I first started up the configuration client. However, any subsequent time I try to navigate into the Devices tab on the config client, the client freezes and windows says it's stopped responding. I've noticed that a few times it will actually load after several minutes, but many times it simply seems to not work at all.
Additionally, though the Applications tab loads fine when starting the config client, it will freeze when trying to navigate back to it if the Devices tab does indeed load after a couple minutes of not responding. Tried uninstalling/reinstalling the client to no avail.

Can't reproduce, no further details received.

I have the same issue, and in my case it seems related to my Corsair K95 Keyboard.
The behavior is exactly as described by @Kenpari, but I found out that if I disconnect and reconnect my keyboard it goes away (a quicker way is also to change the position of the polling rate switch behind the keyboard, which causes a re-connection).
I have no idea what causes this on a hardware or software level, but it would be interesting to know if everyone who's experiencing this issue has the same device or a similar device (like for example another keyboard with high polling rate).
(P.S.:

Corsair should be banned from manufacturing HID devices, 2 mice and one mechanical keyboard I got from them broke within 1 or 2 years, absolute trash. Back to Logitech, quality.

I'll fix your sentence. "Corsair should be banned from manufacturing". Period 😂
I had many Corsair items. Headphones, mouse, keyboard, water cooling, a case... and they all had either some easily fixable design flaws or very fast degrading quality or technical issues.
The only good thing about them is the customer support, which makes you wonder why they need excellent customer support in the first place 🙄

OMG... I can't believe that this issue was related to the same exact model of keyboard, I hope that my Logitech mice doesn't also cause the same problem...
My keyboard RGB LEDs died months after purchase, and I was considering another keyboard, with this thing I definitely need to find another one

I have a K70 actually, and have the same problem. Flicking the polling switch worked.
Off-topic
BTW to all the Corsair haters here, I have had mechanical Corsair keyboards for many, many years without any problems.
As well as highly rated PSU's, iCUE H150i Elite Capellix, QL120 fans.
Not. A. Single. Problem.

Sad thing is... I've recently reinstalled Windows and everything, and now for some reason the polling switch trick doesn't work anymore 😢 (same keyboard, same OS, same configs...)

Sad thing is... I've recently reinstalled Windows and everything, and now for some reason the polling switch trick doesn't work anymore 😢 (same keyboard, same OS, same configs...)

Try to disconnect your keyboard before using HidHide, I try it today and it worked, just open the window before or use the virtual keyboard to find HidHide

Issue still going on as of February 2023. I use a Corsair keyboard but it happens even if it's disconnected.

I had the same issue with K65RGB, reverting to a old firmware (v2.05) seems to have fixed it.
Here's the instruction on how to manually install a firmware bin file:
IMPORTANT NOTE: Backup your current firmware from your keyboard first before REPLACING it !!
https://imgur.com/a/d41z5Gu
I am able to acquire the old firmware for my K65 by using CUE version 2.24 and click the update button.
You can find the installer for CUE 2.24 here: https://forum.corsair.com/forums/topic/111865-have-issues-unofficial-faq-and-quick-fix-guide/
Alternately, I have the old copy of it that do not need to install to run it:
https://drive.google.com/file/d/1K8wEUQLYCL5QsyiBp49qLSzmA-wCtWlI/view?usp=sharing
If you have the same KB as mine, which is K65 RGB. Here's the v2.05 firmware bin file for it:
https://drive.google.com/file/d/1OJpSM4M2yOTsYj39DrZ-lvJwhy5_BQzi/view?usp=sharing
Besk luck to you all.

Hi, Hidhide freezes when going to the device tab. I don't have corsair products. It takes 5-10min for the app to go from "Not responding" to work again. Got an update today and had to reinstall ds4 because It broke after forcing a restart. This is unacceptable on a high end pc. There is definitely something wrong with the app.
My specs: i9-12900k
3080 ti
32gb 3600 cl16

Hi, Hidhide freezes when going to the device tab. I don't have corsair products. It takes 5-10min for the app to go from "Not responding" to work again. Got an update today and had to reinstall ds4 because It broke after forcing a restart. This is unacceptable on a high end pc. There is definitely something wrong with the app.
My specs: i9-12900k 3080 ti 32gb 3600 cl16

Check if one of your devices causes the issue, thats how I discovered that my Corsair K95 RGB hated HidHide.
I recently bought a new one from the same brand (K70 TKL) and I dont need to unplug it like my old keyboard.
Hopefully that helps, maybe firmware, software and bios updates could also help.

This is still a problem as far as I know. Friend of mine has a corsair keyboard and hidhide causes all kinds of issues with his system. When opening hidhide the program will completely lock up. So I told him about the solution found here, unplug the keyboard hide the controller, close hidhide, and then replug the keyboard. At random he said his entire computer would start acting funny, at random everything would start lagging/hanging, similar to the lag that happens with a dying hard drive or some other storage medium. He eventually just uninstalled hidhide which is a shame. I suppose the only solution is for him to buy a new keyboard. I have no problems with mine though its not by corsair.

Sucks but without anybody properly investigating and submitting a solution; it is what it is.

Isn't there a way to ignore corsair devices? I have both a K95 and a Corsair Scimitar (Mouse) and they both cause the same issue, I have to unpug both in order to unfreezet HidHide

Can't reproduce, no further details received.

on my pc i need to replug my headset i can confirm this bug exist and its rly anyoing

Can't reproduce, no further details received.

on my pc i need to replug my headset i can confirm this bug exist and its rly anyoing but my headset is a sharkoon skiller sgh2 and not a corsair device

We don't need confirmation, we need someone to step in and contribute a fix. Until then it is what it is.

Just an update over here:
LOL I ended buying another Corsair keyboard, this time was a K70 TKL. HidHide is working properly, my theory now is, this might be caused by older Corsair devices such as my old K95 with 18 M-keys.
The same trick still applies, where you either flip the polling rate switch or physically disconnect your device.

this time was a K70 TKL. HidHide is working properly, my theory now is, this might be caused by older Corsair devices such as my old K95 with 18 M-keys

I have the issue and have a K70 LUX

Would it be possible to maybe have an option to ignore specific devices set by the user? I was thinking of something like an "ignore list" where a user could enter the title or guid of any devices they want to ignore, and HidHide will not even try to access them, which could in theory prevent it from hanging. For example, my Wii remote, enter either the title "Nintendo RVL-CNT-01" or the guid "e0cbf06c-cd8b-4647-bb8a-263b43f0f974" and HidHide will ignore it completely. Apologies if this is a bad idea or isn't possible. I have no idea how feasible this is as I have zero knowledge on the inner workings of human interface devices or how HidHide works.

I found my way here, having the same problems as OP and I also have a Corsair keyboard. Haven't been able to make it work with the firmware workaround mentioned above.

Would it be possible to maybe have an option to ignore specific devices set by the user? I was thinking of something like an "ignore list" where a user could enter the title or guid of any devices they want to ignore, and HidHide will not even try to access them,

I think this would probably be a good idea.


SwiftWebVC does not open clicked hyperlink

Opening the following link in SwiftWebVC and trying to open a hyperlink of that page does not work.
http://site.petitrc.com/reglages/yokomo/SetupSheetsYokomoBD8.html

It seems to be because the hyperlink wants to add a new tab...

@meismyles may you look at SVWebViewController, there it seems to work.

@MauriceHmb Hey, sorry for the delay in getting round to this. Just started a new job and had very little time recently. Hoping to get this sorted over this coming weekend. Cheers!

Ok, No Problem.
Thank you for your great work!
Best regards,
Maurice Himbert
<EMAIL_ADDRESS>
Am 23.02.2017 um 11:25 schrieb Myles Ringle<EMAIL_ADDRESS>@MauriceHmb https://github.com/MauriceHmb Hey, sorry for the delay in getting round to this. Just started a new job and had very little time recently. Hoping to get this sorted over this coming weekend. Cheers!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/meismyles/SwiftWebVC/issues/16#issuecomment-281954283, or mute the thread https://github.com/notifications/unsubscribe-auth/AWZfS6v9R4ZeCvPUOTk-OJn1178VuSZLks5rfV6ygaJpZM4L9LF0.


RFP - dploy

Checklist

[x] The package I am requesting does not already exist on https://chocolatey.org/packages;
[x] There is no open issue for this package;
[x] The issue title starts with 'RFP - ';
[x] The download URL is public and not locked behind a paywall / login;

Package Details
Software project URL : https://github.com/arecarn/dploy
Direct download URL for the software / installer :
Software summary / short description:  Provides the functionality of GNU Stow in a cross platform CLI tool and python module

NOTE to any maintainers: this is a pip only program, so a dependency on python and installation through pip is necessary. No raw windows binaries are available for download.

@soredake why was this closed?

It's open several years, and I don't think chocolatey is fit for managing python packages.

There are quite a few packages that use Python pip. But I agree, maybe not ideal.
I'll re-open this back up again as I don't think it hurts to continue to offer it up for maintainers.


google_sign_in_web exception with deployed js file

The google_sign_in_web package works locally when I run my app with flutter run -d web-server. But after I flutter build web and deploy I get the following exception in chrome:
cb=gapi.loaded_0:163 Uncaught TypeError: t.gxp is not a function
    at Se.$1 (google_sign_in_web.dart:113)
    at Object.aom (js_helper.dart:1062)
    at Object.ae9 (core_patch.dart:85)
    at aqG (js_patch.dart:542)
    at js_patch.dart:520
    at e.wo (cb=gapi.loaded_0:175)
    at kk (cb=gapi.loaded_0:178)
    at fk (cb=gapi.loaded_0:178)
    at _.Qj.qU (cb=gapi.loaded_0:178)
    at Nj (cb=gapi.loaded_0:169)

So I was able to figure out this was an issue with the authorized urls. But I think the bug is still relevant as the exception that the library tries to throw fails with the error above.

Can you elaborate what the issue with authorized urls was ? I seem  to have run into the same issue, but the problem only manifests itself on the firebase deployment on Chrome. no exceptions on Safari or in a local sandbox.

On the google side you have to register which urls are allowed to start the sign-in process. I had a typo in that configuration.

Yeah, I had registered them and still got the exception. It turns out you get this exception also when 3rd party cookies are blocked.  And that Google signin requires 3rd party cookies.


Fix socket manager not to join thread in ruby2.1

@repeatedly
Could you review when you have time?

It seems @nurse is better person to check this.
@nurse Do you have any idea for workaround this problem?

@repeatedly no workaround other than simply not join. Note that 2.1 is already security maintenance phase.

@nurse Okay. After test passed, I will merge the patch. Thanks!

@repeatedly @nurse
Thank you very much for reviewing.


Performance increase

Hi, @amiiit. Nice job! You mentioned you'd like to improve performance of this lib on the pigeon-maps thread.
One thing to do is to first check which items are within the bounds of the map and then "cluster" these ones. It gives immense performance increase when you are zooming in but changes nothing when you're zooming too high.
On my project I set a zoom limit and then could make sure performance was OK at all times
And you said you wanted to stop using supercluster, have you seen https://github.com/mourner/rbush? It's the underlying gears behind supercluster...

Thanks mate. The first draft of this library was a naive implementation, meaning that for every render the whole data-structure was built. This is obviously not scalable.
I found out that building the data structure just once and for every time the markers change is what gives the performance boots, since retrieving the clusters from supercluster isn't an expensive operation. You can see I started to work on this on the branch feature/performance
will update here when it's ready to merge
About replacing supercluster, there are a few things supercluster doesn't supply out of the box. I will create a seperate issue for that.

Okay merged some updates for performance. I didn't work over PR for this because I feel this is still quite an early stage for this repo.
See #2 for alternative for supercluster


ci: error-reporting: exclude from system tests

While we wait to sort out #2189, this removes error-reporting from CI system tests.

Coverage remained the same at 100.0% when pulling 103a2b208d987c5832aa5746abc87d678025957e on stephenplusplus:spp--error-reporting-exclude into 20cc8920847f3bb7389af47e61512b2a0d310b78 on GoogleCloudPlatform:master.


Automatically deploy to DockerHub

We should setup a job to CI that automatically deploys changes in master to Dockerhub.

@buchgr: could you please deploy the 1.3.1 release to dockerhub?

Done. Yep we should turn it into an organizational account. Can you send me an e-mail please so can talk details?

Thanks- emailed.

If you could consider uploading ARM images it would be wonderful. Public cloud ARM machines are cheaper than x86 and quite good!

If you could consider uploading ARM images it would be wonderful. Public cloud ARM machines are cheaper than x86 and quite good!

Opened a new issue for this: #450.


Fix #6692

Check VMGroupRole in Inter-role Anti-affinity rules
Description
Fix for #6692
Branches to which this PR applies

[ ] master

[ ] Check this if this PR should not be squashed

Merged in 1607b4a
THANKS!


Destroy method doesn't return boolean!

Hi guys
// lets delete  user cart
\Cart::destroy(); // return null,
But phpdoc says boolean..
	/**
	 * Empty the cart
	 *
	 * @return boolean
	 */
	public function destroy()
	{
		// Fire the cart.destroy event
		$this->event->fire('cart.destroy');

		$result = $this->updateCart(NULL);

		// Fire the cart.destroyed event
		$this->event->fire('cart.destroyed');

		return $result;
	}

Same for
Cart::remove($rowId);

(which is also using the 'updateCart' method)
Will use your fix. Thanks.


Remove distinct cluster validation to allow intra-cluster state migrations

This PR removes the same cluster validation to allow intra-cluster migrations. We will be adding more validations to add warnings on corner cases such as Namespace collision, resource collision within the same namespace etc.

@sseago Thanks for the inputs. Yes, we are currently relaxing this for the sake of state migrations. I am speaking with Erik to see whether we can add validations in 1.6 itself.


'sys' renamed to 'util' for node 0.6.1 silent warning fix

just a little silent warning fix.

+1

+1

:+1:

Last commit on this was almost a year ago. Might not ever get merged in.

Last commit on this was almost a year ago. Might not ever get merged in.

Is this project similar in scope to https://github.com/LearnBoost/websocket.io ?

@quangv yea. We should encourage zombie devs (or whoever in brunch dependency uses it) to use websocket.io.

@paulmillr +1 yeh... shouldn't be too hard to switch, might be other benefits ...


Cant get level or player time for consoles

When attempting to get the playtime or level of a console player it returns 0
from siegeapi import Auth
import asyncio

async def sample():
    auth = Auth(EMAIL, PASSWORD)
    player = await auth.get_player(name="hitchedmuffin17", platform="xbl")

    print(f"Name: {player.name}")
    print(f"Profile pic URL: {player.profile_pic_url}")

    await player.load_persona()
    print(f"Streamer nickname: {player.persona.nickname}")
    print(f"Nickname enabled: {player.persona.enabled}")

    await player.load_playtime()
    print(f"Total Time Played: {player.total_time_played:,} seconds / {player.total_time_played_hours:,} hours")
    print(f"Level: {player.level}")

    await player.load_ranked_v2()
    print(f"Ranked Points: {player.ranked_profile.rank_points}")
    print(f"Rank: {player.ranked_profile.rank}")
    print(f"Max Rank Points: {player.ranked_profile.max_rank_points}")
    print(f"Max Rank: {player.ranked_profile.max_rank}")

    await player.load_progress()
    print(f"XP: {player.xp:,}")
    print(f"Total XP: {player.total_xp:,}")
    print(f"XP to level up: {player.xp_to_level_up:,}")

    await auth.close()

asyncio.run(sample()

returns
Name: HitchedMuffin17
Profile pic URL: https://ubisoft-avatars.akamaized.net/70231a86-716c-4dca-b733-6d8128c0fb83/default_256_256.png
Streamer nickname: None
Nickname enabled: False
Total Time Played: 0 seconds / 0 hours
Level: 0
Ranked Points: 1931
Rank: Bronze 1
Max Rank Points: 1976
Max Rank: Bronze 1
XP: 0
Total XP: 0
XP to level up: 500

Well.. I've tried..
Should be fixed in v6.3.3
Not closing this yet, please try it out first and let me know


http3: add ConnContext to the server

ConnContext can be used to modify the context used by a new http Request. This is equivalent to ConnContext in http.Server, but with a quic.Connection instead of a net.Conn.
// ConnContext optionally specifies a function that modifies
// the context used for a new connection c. The provided ctx
// has a ServerContextKey value.
ConnContext func(ctx context.Context, c quic.Connection) context.Context

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.

This check is ✔ now

Have you seen the discussion in #3603? Is this PR attempting to resolve that issue? If so, can you explain how your PR resolves the problems raised there?

Have you seen the discussion in #3603? Is this PR attempting to resolve that issue? If so, can you explain how your PR resolves the problems raised there?

I had not actually seen that discussion. Thanks for pointing it out. I would generally agree with the motivation behind it.
The way I use ConnContext is pretty straight forward. I wrap the underlying connection (tls.Conn or quic.Connection here) in my own struct so that I can keep track of metrics and some annotations for each connection. The http handlers need access to some of that data to do what they need to do. (Happy to provide more details if you're interested)
Here's a concrete example the wrapper for net.Conn: https://github.com/c2FmZQ/tlsproxy/blob/main/proxy/internal/netw/netw.go#L82
I have something similar for quic.Connection.
With http.Server, I have:
    ConnContext: func(ctx context.Context, c net.Conn) context.Context {
        return context.WithValue(ctx, connCtxKey, c)
     },

With http3.Server, I would have:
    ConnContext: func(ctx context.Context, c quic.Connection) context.Context {
        return context.WithValue(ctx, connCtxKey, c)
    },

Then, when the handler needs to access the wrapper's data, it does something like:
if wrappedConn, ok := req.Context().Value(connCtxKey).(*netw.Conn); ok {
  // use wrappedConn
}

The alternative I've been using so far is to create a new http3.Server for each connection and then call ServeQUICConn(conn):
    conn := ...

    serv := &http3.Server{
        Handler: http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
            req = req.WithContext(context.WithValue(req.Context(), connCtxKey, conn))
            realHandler.ServeHTTP(w, req)
         }),
    }
    serv.ServeQUICConn(conn);

It works, but it is not very elegant.

Could you also add an integration test for this in integrationtests/self/http_test.go? The test should also assert that this statement remains true: The provided ctx has a ServerContextKey value.

done

@marten-seemann What happened to waiting a few days?
A quick look and it looks ok. 👍
Now its in master I guess I have something to play with 🎉

I might be misunderstanding the implementation here, but I just started poking around, and one thing different, is this ConnContext gets called per-http3 request, not per-QUIC connection, like I'd anticipate.
In TCP based http handler, we get one ConnContext called the first time the TCP stream is connected, and that is called once for the duration of the TCP connection.
From my testing now with quic-go, it seems every single HTTP3 request triggers the ConnContext, which is not what I'd anticipate.
This also might be more my misunderstandings of how QUIC works or some implementation detail, just wanted to note the behavior differs than anticipated.

@nanokatze Any thoughts on this?
I would've expected ConnContext to work as it does on HTTP/2, since it also uses stream multiplexing. @mattrobenolt I haven't dug into this yet. Maybe you could point us to the code in the standard library where HTTP/2 handles this?

@marten-seemann it doesn't happen in the http2 code path, it's purely in net/http right after Accepting a TCP connection.
https://cs.opensource.google/go/go/+/master:src/net/http/server.go;l=3257-3290?q=ConnContext&ss=go%2Fgo
So it is called as the first thing once a TCP connection is accepted, and this context is used for the lifetime until it disconnects.
For HTTP3/QUIC, I'd anticipate a similar behavior, once a QUIC connection is established, we'd share the context for the lifetime.

No worries. The implementation as-is replaces the hack I had in place which was also per-request and not per-connection. So swapping to using this should yield a free win once that's fixed to behave more correct. :) It's just some minor optimization for performance to do some computations and cache them for the lifetime of a connection when possible.

The difference is that net/http.Server sets the context when a new TCP connection is received, whereas http3.Server sets it when a new quic stream is opened. I wouldn't expect the difference to be very significant.

This is where my knowledge of QUIC and details may differ.
So let me explain why I use this functionality and what my goal is.
A simple example that we leverage is binding a logger to the context with the RemoteAddr. Then everywhere down the chain spawning from that connection should have the same IP address for multiple requests sharing that same connection.
In structured logging sense, effectively doing a logger.With("remote_addr", conn.RemoteAddr().String())
I would expect one QUIC connection to have the same RemoteAddr which multiple streams multiplex over.
Or are my fundamental understandings here wrong?

I would expect one QUIC connection to have the same RemoteAddr which multiple streams multiplex over.

Not necessarily. In principle, QUIC allows connection migration, which means that the client could migrate, for example from a WiFi interface to a cellular interface. This of course will change its IP address.

Right, so does that mean there is no start/end for a connection analagous to TCP? Is per-request the most general we can expect to get with QUIC?

I wouldn't put it that way. You still have an underlying QUIC connection, it's just that the remote address is not necessarily stable. But to give a counter example, if you authenticate on that connection somehow (TLS client certs?), this would apply to all requests sent on this connection.

That's a good example, we don't do that, but I'd say similar vibes. I understand and would expect the remote addr to not be stable. But I would anticipate some signal for connection/start and end. There are other similar things we can do per-connection that are similar to auth, but we utilize some other caches and memory pooling on a per-connection basis when possible.

I’m not sure how the ConnContext would help with that. If you want to be able to perform some cleanup at the end of the connection, you can use the ServeQUICConn API.

I'm not sure what you mean. Unless the reason is that QUIC behaves in a way that's different here than TCP.
With TCP I can guarantee a single connection is at minimum the same client.
By cleanup, in Go it's just GCing away. But binding stuff in this case to the Context using WithValue or whatever, and maintaining that same Context across multiple requests.
Are you suggesting that the QUIC APIs just fundamentally can't support this with ConnContext? If not, this frankly doesn't differ from the context already on a Request and not sure what additional value a ConnContext brings other than having a hook to get the quic.Connection.
I don't mind, to be clear, if this is a limitation. I'm just trying to understand the disconnect. As-is currently this doesn't mirror the behavior of the typical net/http ConnContext, and if the behavior is explicitly different it might just be worth documenting that difference.

How does ConnContext allow you to find out when the underlying connection is closed?

It doesn't. Maybe I confused things by mentioning that. My intent is that we use this hook to do effectively connection-local caching of some expensive computation rather than per request.
In our case, we often have TCP connections lasting many hours to days with thousands to millions of requests per second over 1 connection.
So being able to reuse anything connection wide is beneficial.
Currently our workloads and traffic over QUIC and HTTP/3 is relatively low, so this optimization hasn't been too important yet.
And we rely on just normal Go GC to cleanup the connection-local caching we do when the connection is closed and the Context falls out of scope.
So we don't rely or expect this hook to handle connections closing. But as per the TCP hook, it's useful if we can establish one Context that's shared across every request over that same quic.Connection rather than a net.Conn.
I hope that helps explain.


Release Google.Cloud.Firestore.Admin.V1 version 3.9.0

Changes in this release:
New features

Add IServiceCollection extension methods for client registration where an IServiceProvider is required. (commit 022fab2)

Documentation improvements

Allow 14 week backup retention for Firestore daily backups (commit 484b7d9)
Correct BackupSchedule recurrence docs that mentioned specific time of day (commit d41af41)

Created release for Google.Cloud.Firestore.Admin.V1-3.9.0


Broken layout for "Migrate from legacy analysis (FxCop) to source analysis (FxCop analyzers)" docs page, IT localization

This page content is mostly html code for IT localization.

This should now be fixed - thank you for your feedback!


Generate too many sub query when use where conditional on navigation property.

verison: 2.6.0
attendee.cs

public class Attendee : FullAuditedEntity<long, User>
    {
        #region Const Properties

        public const int BarcodeLength = 12;

        public const int CheckCodeLength = 6;

        public const string GenerateIdKey = "attendees_p_id";

        public const int MaxRemarkLength = 5000;

        #endregion Const Properties

        #region Properties

        [Required]
        [StringLength(BarcodeLength, MinimumLength = BarcodeLength)]
        public virtual string Barcode { get; set; }

        [Required]
        [StringLength(CheckCodeLength, MinimumLength = CheckCodeLength)]
        public virtual string CheckCode { get; set; }

        public virtual DateTime? CheckinTimeUtc { get; set; }

        [StringLength(User.MaxEmailAddressLength)]
        public virtual string EmailAddress { get; set; }

        public virtual EmailStatus EmailStatus { get; set; } = EmailStatus.NoEmail;

        public virtual long EventId { get; set; }

        public virtual long EventScheduleId { get; set; }

        [StringLength(User.MaxNameLength)]
        public virtual string FirstName { get; set; }

        public virtual bool HasChecked { get; protected set; } = false;

        public virtual bool HasVoided { get; protected set; } = false;

        public virtual bool IsAvailable { get; protected set; } = false;

        [StringLength(User.MaxSurnameLength)]
        public virtual string LastName { get; set; }

        public virtual long OrderId { get; set; }

        public virtual long OrderTicketItemId { get; set; }

        [StringLength(User.MaxPhoneNumberLength)]
        public virtual string PhoneNumber { get; set; }

        [Column(TypeName = "text")]
        [StringLength(MaxRemarkLength)]
        public virtual string Remark { get; set; }

        public virtual long TicketId { get; set; }

        public virtual long?

GetAll Method
public IQueryable<Attendee> GetAll()
{
     return DBContext.Set<Attendee>();
}

Filters
modelBuilder.Filter("SoftDelete", (ISoftDelete d) => d.IsDeleted, false);
modelBuilder.Filter("MustHaveTenant", (IMustHaveTenant t, int tenantId) => t.TenantId == tenantId || (int?)t.TenantId == null, 0);
modelBuilder.Filter("MayHaveTenant", (IMayHaveTenant t, int? tenantId) => t.TenantId == tenantId, 0);

I am not able to reproduce this.  And I don't see anything unusual about what you are doing.
Is there any way you can distill this all down to a simple example and post the full code of that?
Also, what database are you using?

The source code is very simple, nothing special, I'm using mysql.
Will the problem on mysql connector?

I reproduced the problem when using MySQL.  It is being caused by these lines in DynamicFilterQueryVisitorCSpace.Visit(DbPropertyExpression expression)
if (_DbContext.IsMySql())
    return newFilterExpression.Limit(DbConstantExpression.FromInt32(1)).Element();

That was needed when I first added support for navigation property filtering.  At the time, I was testing with MySQL 5.5.  I had to reload  my machine recently so I installed the latest (5.7).  So I'm wondering if it's a change in behavior from 5.5 -> 5.7.
What version of MySQL are you using?

@jcachat
How is it going?

Sorry, I have not found a solution.  Commenting out the lines I mentioned before causes some other unit tests to fail - even on MySQL 5.7.  So I think it's more likely a difference in how the query is handled when it has the .Where() clause on it.  It's definitely a difference (or possibly an issue) with how the MySQL EF provider works.

I have the same issue, is there any plan to fix this?


d3.queue Used in react

<EMAIL_ADDRESS>Report errors in use in react
d3.queue d3.queue is not a function

D3 5.0 has deprecated the d3-queue module.
https://github.com/d3/d3/blob/master/CHANGES.md#changes-in-d3-50

Yep, please read the release notes.


Allow to use github repo as module_path

Currently pterradactyl uses terrafoirm modules that are locates in local folder.
This PR allows to specify a github monorepo which keeps modules and being cloned at tf init stage.

@presich Is this PR under active development?

@presich Is this PR under active development?

Nope, it can be closed

Closing stale PR


Register new package

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/11258
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.0 -m "<description of version>"<PHONE_NUMBER>d40b27701292a8ac92556a9760e100
git push origin v0.1.0

@JuliaRegistrator register()
Release notes:

add fuzzy membership classifiers & recipes
add RrsToChla that goes from Rrs to Chl
add unit tests for new functionalities

Registration pull request created: JuliaRegistries/General/13486
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.1 -m "<description of version>" c874068626db7f263a6a0c4557ab82fdaf439fbf
git push origin v0.1.1

@JuliaRegistrator register()

Error while trying to register: Changing package repo URL not allowed, please submit a pull request with the URL change to the target registry and retry.

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/116862
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.2 -m "<description of version>" 508a1411b7252933d1801a72148efd1be8537d57
git push origin v0.1.2


Whisper large-v3

Convert from HF format, including the feature extractor parameters.
Example: https://huggingface.co/flyingleafe/faster-whisper-large-v3

Is that alignment head is correct in the cofig.json?

I saw a large-v3 implementation with faster_whisper (https://github.com/guillaumekln/faster-whisper/issues/547) but it's quite slow.
Large-v3 is very fast with batching as shown here --- https://huggingface.co/openai/whisper-large-v3
Batching speeds up the transcription process by a lot. The only reason I wish to use faster_whisper is cause it provides things like srt, verbose, word level transcription

i also foun need add
        if "large-v3" in model_size_or_path:
            self.feature_extractor.mel_filters = self.feature_extractor.get_mel_filters(self.feature_extractor.sampling_rate, self.feature_extractor.n_fft, n_mels=128)

to  model class
and have 2 bugs

The current model is English-only but the language parameter is set to 'ru'; using 'en' instead. Detected language 'English' with probability 1.000000 but call is russian

Traceback (most recent call last):
  File "/home/venv/bin/whisper-ctranslate2", line 8, in <module>
    sys.exit(main())
  File "/home/venv/lib/python3.8/site-packages/src/whisper_ctranslate2/whisper_ctranslate2.py", line 560, in main
    result = transcribe.inference(
  File "/home/venv/lib/python3.8/site-packages/src/whisper_ctranslate2/transcribe.py", line 170, in inference
    for segment in segments:
  File "/home/venv/lib/python3.8/site-packages/faster_whisper/transcribe.py", line 945, in restore_speech_timestamps
    for segment in segments:
  File "/home/venv/lib/python3.8/site-packages/faster_whisper/transcribe.py", line 456, in generate_segments
    ) = self.generate_with_fallback(encoder_output, prompt, tokenizer, options)
  File "/home/venv/lib/python3.8/site-packages/faster_whisper/transcribe.py", line 664, in generate_with_fallback
    result = self.model.generate(
ValueError: <|startoftranscript|> token was not found in the prompt

i also foun need add
        if "large-v3" in model_size_or_path:
            self.feature_extractor.mel_filters = self.feature_extractor.get_mel_filters(self.feature_extractor.sampling_rate, self.feature_extractor.n_fft, n_mels=128)

to model class
and have 2 bugs

The current model is English-only but the language parameter is set to 'ru'; using 'en' instead. Detected language 'English' with probability 1.000000 but call is russian

Traceback (most recent call last):
  File "/home/venv/bin/whisper-ctranslate2", line 8, in <module>
    sys.exit(main())
  File "/home/venv/lib/python3.8/site-packages/src/whisper_ctranslate2/whisper_ctranslate2.py", line 560, in main
    result = transcribe.inference(
  File "/home/venv/lib/python3.8/site-packages/src/whisper_ctranslate2/transcribe.py", line 170, in inference
    for segment in segments:
  File "/home/venv/lib/python3.8/site-packages/faster_whisper/transcribe.py", line 945, in restore_speech_timestamps
    for segment in segments:
  File "/home/venv/lib/python3.8/site-packages/faster_whisper/transcribe.py", line 456, in generate_segments
    ) = self.generate_with_fallback(encoder_output, prompt, tokenizer, options)
  File "/home/venv/lib/python3.8/site-packages/faster_whisper/transcribe.py", line 664, in generate_with_fallback
    result = self.model.generate(
ValueError: <|startoftranscript|> token was not found in the prompt

A little unrelated, but did you try large-v3 with batching or just normally?

after recompile from sources current build lang is set to russian but result in engels

home/venv/bin/whisper-ctranslate2 /var/spool/asterisk//monitor/2023/11/09/q-1507-89370130386-20231109-153209-1699533129.18256-t.wav /var/spool/asterisk//monitor/2023/11/09/q-1507-89370130386-20231109-153209-1699533129.18256-r.wav --languag ru --vad_filter True --word_timestamps True --vad_threshold 0.9 --vad_min_speech_duration_ms 500 --vad_min_silence_duration_ms 3000 --initial_prompt 'Бигтелеком, Химки, Интернет, роутер,  Тариф, пин' --device cpu --best_of 1 --model_directory /home/venv/faster-whisper-large-v3 --condition_on_previous_text False --model_dir /home/venv/.mycache --local_files_only True --threads 4 --output_dir /tmp/tmp.fIkPsuX1sK -f all

File: '/var/spool/asterisk//monitor/2023/11/09/q-1507-89370130386-20231109-153209-1699533129.18256-t.wav'
Detected language 'Russian' with probability 1.000000
[00:00.690 --> 00:01.290]  Hello,
[00:02.070 --> 00:02.130]  Remember
[00:02.130 --> 00:02.510]  is
[00:02.510 --> 00:02.890]  do
[00:02.890 --> 00:09.660]  What is the question? What exactly?
[00:11.220 --> 00:12.020]  The fire, right?
[00:13.580 --> 00:15.740]  Well, yes, our equipment is disabled there, the break.
[00:16.380 --> 00:19.440]  Restore the line, as soon as it is restored, everything should turn on.
[00:19.840 --> 00:21.640]  They promised to do it by the end of the day.
[00:23.180 --> 00:23.820]  Please, all the best.
[00:25.320 --> 00:25.860]  Goodbye.

File: '/var/spool/asterisk//monitor/2023/11/09/q-1507-89370130386-20231109-153209-1699533129.18256-r.wav'
Detected language 'Russian' with probability 1.000000
[00:04.340 --> 00:04.940]  Hello,
[00:05.600 --> 00:08.320]  I don't
[00:10.360 --> 00:12.360]  Don't
[00:21.000 --> 00:22.500]  Don't
Transcription results written to '/tmp/tmp.fIkPsuX1sK' directory

real    6m29.154s

``

see: progress in #548

Ctranslate2 has been successfully updated to support Whisper large-v3:
https://github.com/OpenNMT/CTranslate2/releases/tag/v3.21.0

Closing in favor of #548


Documentation BUG - Bot HowTo: Remembering Your Atoms Across Sessions

Describe the bug
The documentation shows an invalid command to initialize the won mongo database. In Section: "Bot HowTo: Remembering Your Atoms Across Sessions".
To Reproduce
> use won
switched to db won
> db.runCommand({createUser:"won", pwd: "won", roles=["dbOwner"]})
2019-12-16T09:52:17.738+0000 E  QUERY    [js] uncaught exception: SyntaxError: missing : after property id :
@(shell):1:50

Expected behavior
`> use won
switched to db won

db.runCommand({createUser:"won", pwd: "won", roles:["dbOwner"]})
{ "ok" : 1 }

`
#3158

Thanks for the contribution!

@fkleedorfer yw, thanks for merge :)


docs: Ruby Style Guide

What is the goal?
Document the aspirational Ruby Style Guide we want to follow. While we are not enforcing all the rules in Shopify's Style Guide, and we will probably want to relax or remove some of these rules over time, documenting the aspirational style guide gives us a solid starting ground to move from our basic sequra-style to a more robust and consolidated shared style.

Closing this since we are still unsure if we want to follow a given style or steadily build or own.


[Task] Ensure files and directories follow naming spec

Apply what we decided in https://github.com/open-truss/open-truss/blob/main/docs/pascal-kebab-camel-snake-case.md by adding a linter that ensures we don't merge files or folders that do not follow the decision.
I'm thinking a GitHub Action that does something like https://github.com/batista/lint-filenames but that one has some limitations so maybe create an action that uses https://github.com/loeffel-io/ls-lint instead?
Or maybe a tool like prettier helps us here?

This is complete.


Add "data source factoid" to the loading screen?

We're expecting to get caching in place for places, but it won't be for all lat/lng lookups.
Can we add some more text here, along the lines of "Hang on, this could take a few minutes!  The system is extracting and combining data from 14 datasets totaling 4 terabytes of raw data."  Idea being that it's a tiny bit more fun to read, but also conveys how much info is behind this?

Cool, I like the idea of a zesty message here.


Style/ts: replace (args) => obj.method(args) with obj.method.bind(obj)

          In that case let's open an issue with a reminder to use that style across the board (there are instances of the lambda variant in the skipruntime client or server).

Originally posted by @beauby in https://github.com/SkipLabs/skdb/pull/345#discussion_r1781140562

With (arg1, arg2) => obj.method(arg1, arg2), I want to simplify to just obj.method and then it fails... so obj.method.bind(obj), although ugly, makes it explicit

I've had the same impulse to eta-reduce but didn't know about bind to do so safely!  Seems insane that that's not the default binding behaviour for JS methods, but so it goes


Create a Triton backend

Would it be possible to create a Triton backend from this implementation?

A Triton backend is the implementation that executes a model. A backend can be a wrapper around a deep-learning framework, like PyTorch, TensorFlow, TensorRT or ONNX Runtime. Or a backend can be custom C/C++ logic performing any operation (for example, image pre-processing).

I don't have direct experience with Triton-Inference-Server, I'll look into it in the nex days

@EwoutH I think you confused OpenAI Triton (the Language) with Nvidia Triton (a API server in C++)

Right, from the Readme I didn’t figure that. Thanks for clearing that up!


[do-not-merge][sig-scale]: turn off KubevirtSeccompProfile to test vmiCreationToRunningp95

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
/cc @rthallisey
Release note:

/test ?

/ok-to-test

https://prow.ci.kubevirt.io/job-history/gs/kubevirt-prow/pr-logs/directory/pull-kubevirt-e2e-k8s-1.25-sig-performance
I am not sure why the test is not reflected in the history. may be this also needs ok-to-test label for the test to be fired? @xpivarc @rthallisey

There are a lot of jobs pending. Let's give it time. See https://prow.ci.kubevirt.io/?pull=9498 for a more accurate presentation.

/test pull-kubevirt-e2e-k8s-1.25-sig-performance
Trying again

/test pull-kubevirt-e2e-k8s-1.25-sig-performance

/test pull-kubevirt-e2e-k8s-1.25-sig-performance

Can we draft please PRs which are WIP and run the lanes we need manually instead ?
We can see all a lot of failures which use CI resources and cause failures to appear on the statistics
Thanks

Hi @alaypatel07. Since I see DNM in the PR subject, please put the PR in draft mode, otherwise as @oshoval mentioned CI is throttled and stats are deviated.

Apologies for the noise @oshoval @enp0s3
/close


Advanced Trees & Forests: Model-Based Trees

[x] approx. 2 Slides: Motivation for model-based trees (https://medium.com/convoy-tech/the-best-of-both-worlds-linear-model-trees-7c9ce139767d, https://towardsdatascience.com/introduction-to-model-trees-6e396259379a)
[x]  approx. 3 slides: Explain linear model trees formally & show examples
[x]  approx. 3 slides: Explain logistic model trees formally & show examples (this is the paper: https://link.springer.com/content/pdf/10.1007/s10994-005-0466-3.pdf )

noted für future improvements. close issue because not relevant for current material.


Test how comprehensive the regex strings are

Pass in a ton of real-world input, including RTL files from:

ibex
opentitan
my (incomplete) riscv CPU
stuff from work

to ensure that the regex strings are wholistic enough to match module declarations/instantiations from various different Verilog styles

The complex naming syntax (involving SystemVerilog packages) used by Ibex (and likely OpenTitan) should probably be flagged with a Warning message, if not fully outright supported in v0.1.0.


exclude body when looking for display: none element

There is no offsetParent in the body.
so We need to exclude body in this 'skip'.
but, body can be display: none itself, so need to add ~ || display === none.

I rewrote this code a bit and I think this case is alrady covered by this code: https://github.com/brainly/html-sketchapp/blob/c9369706746d144786d256373c4a66408653c38b/html2asketch/nodeToSketchLayers.js#L75 . Let me know if it isn't!


Explore node and graph equivalence

In terms of behavior, graphs are (or can be, with runOnce semantics) equivalent to nodes. What if they were?
OTOH, the graphs are a superset of nodes in terms of behavior -- for example, they may not have any--or multiple!--inputs  and have none or multiple outputs.

@seefeldb ^^

by "multiple" you mean can be called / yield outputs multiple times at different times, right? (as opposed to having multiple kinds of wires going in and out, which is already supported, although through a single input and output node)
either way, i think nodes could have that as well -- e.g. a UI node that can represent the latest value and/or can repeatedly output the latest value the user set. so yes, they should be equivalent :)

just to bookmark: there's value in capturing the semantics of multiple input/output values in the graph, e.g. whether a value is "consumed" downstream: a text input widget that is wired into a graph that consumes the input should clear the input after submitting, like e.g. in a chat-like interface. but a text input wired into something that just reflects the last value would not, e.g. search results tied to a search box. the system can look at such a graph and notice that the wrong kinds are wired together.

What if every node was actually a graph. Borrowing from the cloud function exploration and how the API currently functions, what if every node followed this protocol:
sequenceDiagram
  participant C as Caller
  participant N as Node
  C ->> N: {}
  Note over C,N: 1. Initial (empty) request
  activate N
  N ->> C: { type: "input", schema: {}, state: $state1 }
  deactivate N
  Note over C,N: 2. Get node's intermediate state and input schema
  C ->> N: { inputs: {}, state: $state1 }
  Note over C,N: 3. Call with inputs and the intermediate state
  activate N
  N ->> C: { type: "output", schema: {}, state: $state2 }
  deactivate N
  Note over C,N: 4. Get outputs, their schema, and next intermediate state

There's a shortcut a caller can take. If they just supply all inputs right away, it can be a one-turn call:
sequenceDiagram
  participant C as Caller
  participant N as Node
  C ->> N: { inputs: { ... } }
  Note over C,N: In a simpler flow, just supply inputs
  activate N
  N ->> C: { type: "output", schema: { ... } }
  deactivate N
  Note over C,N: And get outputs. No "state" returned

There's a shortcut a caller can take. If they just supply all inputs right away, it can be a one-turn call:

Of course, if this node actually contains interesting multi-turn interactions, this runOnce shortcut will not enjoy any of them.

The annotated schema: Is that how a REST client would use it? I'd expect them to most of the time assume the schemas. It would then look like a hybrid of the two: Directly supplying inputs, but possibly looping

And +1 to the general idea. Except for the dynamic schema declaration, this is already the case, no? Just with the state variable being an implicit protocol like in append.

I just realized this morning that even dynamic schema declaration can be viewed as a multi-turn flow. For example, here's what promptTemplate does:
sequenceDiagram
    participant C as Caller
    participant N as promptTemplate
    C ->> N: { inputs: {} }
    Note over C,N: Caller initiates
    activate N
    N ->> C: { type: "input", schema: { "template" }, state: { "getTemplate" } }
    deactivate N
    Note over C,N: promptTemplate asks for "template"
    C ->> N: { inputs: { template }, state: { "getTemplate" } }
    Note over C,N: Caller supplies the template
    activate N
    N ->> C: { type: "input", schema: { ... }, state: { template } }
    deactivate N
    Note over C,N: promptTemplate asks for placeholders (template itself is state)
    C ->> N: { inputs: { ... }, state: { template } }
    Note over C,N: Call with placeholder input values
    activate N
    N ->> C: { type: "output", schema: { prompt }, outputs: prompt }
    deactivate N
    Note over C,N: promptTemplate returns assembled prompt

For example, here's what promptTemplate might be doing

An interesting question is then: how might a node/graph be interrogated to produce a reasonable representation of its inputs and outputs?
A use case here would be a visual graph editor: how would it know what inputs/outputs to display?
In the case of promptTemplate, the final number of inputs is static, but depends on the first input (template). Without knowing how this node works on the inside, it's very hard to figure that out.
Is there a way to describe this without adding an extra "designView" representation?

It would then look like a hybrid of the two: Directly supplying inputs, but possibly looping

Yes! Which means that maybe we need to differentiate between a runOnce and run modes explicitly (so that the node/graph doesn't assume it can just keep grabbing inputs from the initial property bag)

💡 Sketch of a proposal:

In Breadboard, every Node, in addition to wire, has three extra methods: run, runOnce, and describe.
The run and runOnce are roughly equivalent to their Board cousins
describe method returns schemas of inputs and outputs of a Node, including some way to express dynamic declarations
Board also has describe method that roughly does the same.

What's the difference between run and runOnce at the node implementation level? To me it was always more a difference about the caller, not the callee.

I just realized this morning tha dynamic schema declaration can be viewed as a multi-turn flow. For example, here's what promptTemplate might be doing:

+1, but per the previous comment we might want to differentiate a calling modality that just queries the node for its description.
We should also specify how state behaves here: I think it should not advance while looping over missing inputs. That is, we want to differentiate between two rounds in a conversation and asking for a missing value. If both look like requesting input these can't be differentiated. In one the state advances and in the other it doesn't. Hence:

In describe mode the state is just context and won't be returned.
In regular mode a reply is marked explicitly as missing input and also doesn't return the state, the expectation being that is being called again with the same state (and all the other same inputs) as before.
A new turn in regular mode is marked as such (and differently from before), including new state. If this then required multiple rounds of asking for missing inputs, it's the same as before with the state not advancing.

Does that sound right?
FWIW, state isn't anything special here. We might want to standardize on $state or $self for legibility, but there might be other inputs that are expected on every call in a multi-turn call, e.g. the safety settings.

One more potential difference between the regular flow and describe: describe will also want to declare outputs, but when e.g. used in an editor might also be used to figure out the inputs as a function of outputs. passthrough would be an example of such a node. Maybe that's too esoteric for the first round, but something to keep in mind.
Indeed, this might map to a different kind of pattern: Generating an input based on other inputs and desired outputs. For example:

generate a prompt given a high-level english description of the goal and available inputs (basically we flip the example from above: template is missing, but the other inputs are present)
generate code given a function signature (inputs and output schemas) and description (i.e. generate the missing code input).

This relates to #62 (keeping comments and extra data in the graph for graph generation purposes): Imagine a graph generation flow that creates a graph with inputs and outputs and task descriptions, but omits template and code for a second pass that then generates those.


png not shown

Describe the bug
both Model image not shown (small or large), if i puth them on a dashboard (i select everything related to my car and only these 2 wont work/show)
Is this working in MySkoda app?*
Image are shown in app
Latest working release
Did not work as long as i known, working with 1.2.5? no Beta
Debug logs

Installation:

Home Assistant variant: [e.g. Hass OS, Docker, Core, Supervised]
Docker
Python version [e.g. 3.7, 3.8]
Python 3.11.4 (main, Jun 22 2023, 19:40:35) [GCC 12.2.1 20220924] on linux
Python library versions ["python3 -m pip list"]
python-blockchain-api            0.0.2
python-bsblan                    0.5.11
python-clementine-remote         1.0.1
python-dateutil                  2.8.2
python-didl-lite                 1.3.2
python-digitalocean              1.13.2
python-ecobee-api                0.2.14
python-engineio                  3.14.2
python-etherscan-api             0.0.3
python-family-hub-local          0.0.2
python-fullykiosk                0.0.12
python-gc100                     1.0.3a0
python-gitlab                    1.6.0
python-homewizard-energy         2.0.1
python-hpilo                     4.3
python-http-client               3.3.7
python-izone                     1.2.9
python-join-api                  0.0.9
python-jose                      3.3.0
python-juicenet                  1.1.0
python-jwt                       4.0.0
python-kasa                      0.5.2
python-magic                     0.4.27
python-matter-server             3.6.3
python-miio                      0.5.12
python-mpd2                      3.0.5
python-mystrom                   2.2.0
python-nest                      4.2.0
python-opendata-transport        0.3.0
python-opensky                   0.0.10
python-otbr-api                  2.2.0
python-picnic-api                1.1.0
python-qbittorrent               0.4.3
python-ripple-api                0.0.3
python-roborock                  0.30.0
python-slugify                   4.0.1
python-smarttub                  0.0.33
python-socketio                  4.6.1
python-songpal                   0.15.2
python-tado                      0.15.0
python-telegram-bot              13.1
python-vlc                       1.1.2

Additional context
If i copy the url directly to the  browser i see the images, see below example
https://ip-modcwp.azureedge.net/modcwp5azs22101014/2Y2Yst_L3HCJwzxo7X5l-2NpAxfdMTFtKr98.Xmjva4Qh-8GrXNPj39ZSVlh2K-93FmIcq6jebJxsP1puUERC7Oh0.-B-1080570dayvext_front1080.png

The url is just that, a url. It's not a picture.
The sensor is working as intended.


[WIP] Raincatch-468 - Update the raincatcher-user module to handle errors from validation

Updated the raincatcher-user module to handle errors from validation. Updated the raincatcher-user mbaas router to include handling for error cases. Switched to use the mediator.request API instead of using mediator.once.
Improved raincatcher-user README to remove code syntax errors, fix typos and improve formatting.

@TommyJ1994 any update on this?


Add tg3 package to publishing script

Oh, so cocky of you to not wait for review!

I see... was pretty sure this was correct. Good eye, will fix the typo in a follow-up.


[SPARK-11684] [R] [ML] [Doc] Update SparkR glm API doc, user guide and example codes

This PR includes:

Update SparkR:::glm, SparkR:::summary API docs.
Update SparkR machine learning user guide and example codes to show:

supporting feature interaction in R formula.
summary for gaussian GLM model.
coefficients for binomial GLM model.

@mengxr

Test build #45985 has started for PR 9727 at commit f311637.

Test build #45985 has finished for PR 9727 at commit f311637.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/45985/
Test PASSed.

looks good @shivaram

Test build #46077 has started for PR 9727 at commit dc7edf6.

Test build #46077 has finished for PR 9727 at commit dc7edf6.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/46077/
Test PASSed.

Test build #46168 has started for PR 9727 at commit c70f7c4.

Test build #46168 has finished for PR 9727 at commit c70f7c4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/46168/
Test PASSed.

LGTM. Merged into master and branch-1.6. Thanks!


cmake-ide--is-src-file should be configurable

Some of my files have different extensions, e.g.
.cu

It would be good to have the list of source file extensions in a file
current impl:
(defun cmake-ide--is-src-file (string)
  "Test if STRING is a source file or not."
  (or (cmake-ide--ends-with string ".c")
      (cmake-ide--ends-with string ".cpp")
      (cmake-ide--ends-with string ".C")
      (cmake-ide--ends-with string ".cxx")
      (cmake-ide--ends-with string ".cc")))

Thanks a bunch!


Nested blueprint should be able to have same name

Nested blueprints should be able to have the same name. Currently all blueprints are registered under their own name, however for a nested blueprint id expected it to use the <parent_name>.<child_name>
from pprint import pprint
import flask

app = flask.Flask(__name__)
view_bp = flask.Blueprint("home", __name__)
api_bp = flask.Blueprint("api", __name__, url_prefix="/api")
home_api_bp = flask.Blueprint("home", __name__)

@view_bp.route("/")
@home_api_bp.route("/")
def view():
    print(flask.request, flask.request.endpoint)

api_bp.register_blueprint(home_api_bp)

app.register_blueprint(view_bp)
app.register_blueprint(api_bp)
pprint(app.url_map)

Traceback (most recent call last):
  File "/home/maico/test.py", line 18, in <module>
    app.register_blueprint(api_bp)
  File "/home/maico/.local/lib/python3.9/site-packages/flask/scaffold.py", line 54, in wrapper_func
    return f(self, *args, **kwargs)
  File "/home/maico/.local/lib/python3.9/site-packages/flask/app.py", line 1023, in register_blueprint
    blueprint.register(self, options)
  File "/home/maico/.local/lib/python3.9/site-packages/flask/blueprints.py", line 359, in register
    blueprint.register(app, bp_options)
  File "/home/maico/.local/lib/python3.9/site-packages/flask/blueprints.py", line 275, in register
    assert app.blueprints[self.name] is self, (
AssertionError: A name collision occurred between blueprints <Blueprint 'home'> and <Blueprint 'home'>. Both share the same name 'home'. Blueprints that are created on the fly need unique names.

Environment:

Python version: 3.9.1
Flask version: 2.1.0dev0: 9039534eee6a87da98a1dee9e4338d1b73e861f8

Should this really be possible? having home and api.home seems like a really easy way to confuse developers...

The me the current situation was even more confusing, the error both uses the name home and there was no way to narrow down which blueprint is which.
Additionally, say this limitation stays in place, I'd need to rename the home_api_bp to something like api_home which results with the endpoints becoming:
Map([
 <Rule '/' (GET, HEAD, OPTIONS) -> home.view>,
 <Rule '/' (GET, HEAD, OPTIONS) -> api.api_home.view>,
 <Rule '/static/<filename>' (GET, HEAD, OPTIONS) -> static>])

That seems rather odd having api.api_home.view as argument for methods like url_for. I feel having the logic of reusing parent naming: api.home.view, is better.

If you agree on this behavior, I'd be willing to create a PR for this.

In my view each instance of a blueprint must have a unique name, as this allows flask to know which blueprint's methods to invoke.
If you deleted the home_api_bp and used view_bp everywhere in its place things would work as you'd expect - could this be the solution you desire?

That would defeat the purpose of nested blueprints, as then to get api.home we have to directly register with the app and can no longer use the power of nested blueprints.
I just did some inspection to see the logic here, but it seems my proposal was already included in the original https://github.com/pallets/flask/pull/3923/files#diff-30595964c383760a7295e59705f71f85766068b8231d8227ee34b5f5752a41e9R327. Nested blueprints already build their endpoint based on their parent blueprints, just not register in app.blueprints, therefore I think this can be considered a bug.

I think I understand what you are asking now. I think you'd like something like an endpoint argument to the Blueprint constructor, much like there is to the add_url_rule method, whereby the endpoint is used instead of the name to construct the route endpoints. I envision it working like,
from pprint import pprint
import flask

app = flask.Flask(__name__)
view_bp = flask.Blueprint("home", __name__)
api_bp = flask.Blueprint("api", __name__, url_prefix="/api")
home_api_bp = flask.Blueprint("api_home", __name__, endpoint="home")

@view_bp.route("/")
@home_api_bp.route("/")
def view():
    print(flask.request, flask.request.endpoint)

api_bp.register_blueprint(home_api_bp)

app.register_blueprint(view_bp)
app.register_blueprint(api_bp)
pprint(app.url_map)

giving this output,
Map([
 <Rule '/' (GET, HEAD, OPTIONS) -> home.view>,
 <Rule '/' (GET, HEAD, OPTIONS) -> api.home.view>,
 <Rule '/static/<filename>' (GET, HEAD, OPTIONS) -> static>])

Sadly the names must be unique and the name used in the endpoint must match the name used in the endpoint. It isn't clear to me how this could be altered as these conditions allow the endpoint to be split by . into the constituent blueprint names which are then used to lookup the actual blueprint instances see #4059.

This is getting into the territory of #1091.

It isn't clear to me how this could be altered as these conditions allow the endpoint to be split by . into the constituent blueprint names which are then used to lookup the actual blueprint instances see #4059.

Given the comments the PR, would it be an option to have blueprints be initialized with a name keeping the requirement that the name shouldn't contain . and during registration be upgraded to a fully qualified name in app.blueprints based on the parent blueprints:
parent = flask.Blueprint("parent", __name__, url_prefix="/parent")
child = flask.Blueprint("child", __name__, url_prefix="/child")
grandchild = flask.Blueprint("grandchild", __name__, url_prefix="/grandchild")

@parent.route("/")
def parent_index():
    print(request.endpoint)  # parent.parent_index
    print(request.blueprint)  # parent
    print(request.blueprints)  # ['parent']
    return "Parent"

@child.route("/")
def child_index():
    print(request.endpoint)  # parent.child.child_index
    print(request.blueprint) # parent.child
    print(request.blueprints) # ['parent.child', 'parent']
    return "Child"

@grandchild.route("/")
def grandchild_index():
    print(request.endpoint) # parent.child.grandchild.grandchild_index
    print(request.blueprint) # parent.child.grandchild
    print(request.blueprints) # ['parent.child.grandchild', 'parent.child', 'parent']
    return "Grandchild"

where app.url_map would be:
Map([<Rule '/parent/child/grandchild/' (GET, HEAD, OPTIONS) -> parent.child.grandchild.grandchild_index>,
 <Rule '/parent/child/' (GET, HEAD, OPTIONS) -> parent.child.child_index>,
 <Rule '/parent/' (GET, HEAD, OPTIONS) -> parent.parent_index>,
 <Rule '/static/<filename>' (GET, HEAD, OPTIONS) -> static>])

Using this the instances of parent can still be found by iteratively spliting on . from the right, while also maintaining the ability to directly lookup blueprints based on the fully-qualified name.

@pgjones and I have discussed this on Discord and know how we're going to solve it. That's why that PR was closed, another will be submitted.
Basically request.blueprint is the key that the blueprint was registered with in app.blueprints. It should be the dot-separated path of blueprint names. The full paths must still be unique. That will solve this issue. Next, we will make the uniqueness check more strict, and require unique names even for the same blueprint registered twice, by allowing name= in register_blueprint the same as url_prefix=. This will solve #1091.


JobScheduler.Hangfire.Notification System.InvalidCastException

Exception occurs after trigger Execute Action Job :
System.InvalidCastException
HResult=0x80004002
Message=Unable to cast object of type 'Xpand.XAF.Modules.JobScheduler.Hangfire.BusinessObjects.ExecuteActionJob' to type 'Xpand.XAF.Modules.JobScheduler.Hangfire.Notification.BusinessObjects.ObjectStateNotification'.
Source=Xpand.XAF.Modules.JobScheduler.Notification
StackTrace:
at Xpand.XAF.Modules.JobScheduler.Hangfire.Notification.NotificationService.<>c__DisplayClass4_0.b__1(IObjectSpace objectSpace) in C:\Users\ricardo\Desktop\grupolc_sigo\JobScheduler.Notification\NotificationService.cs:line 58
at System.Reactive.Linq.ObservableImpl.Using2._.Run(Using2 parent)

the JobNotification test currently are on refactoring, so they cannot validate that at least on the tested scenario they work. In any case without a sample and detailed steps on how to repro I cannot help mych

I just configure a Execute Action Job, save one object in detail view and then force the trigger.

sample please

I'm working on a big project, and it's hard to me right now isolate same parts.
I'm checking several notification approaches.
About this situation i bypass it validating the Object Type in the Notificaton Module:
  internal static IObservable<Unit> JobNotification(this BlazorApplication application, string workerId)       => Observable.Using(() => application.CreateNonSecuredObjectSpace(typeof(JobWorker)), objectSpace =>       {           var jobWorker = objectSpace.GetObjectsQuery<JobWorker>().FirstOrDefault(job => job.Id == workerId);           if (jobWorker != null)           {               if (jobWorker.Job is ObjectStateNotification job)               {
I have one last question regarding the creation of Object State Notification, and it's why some Objects are not available to select in the Object Lookup. Curiously  are the same as what I want.

a lot can happen when u validate the problem against your big project and my resources are also very limited, that's why a sample is always the only way to go.
your last question is unclear to me best guess you need to see how the objects populate
 [DataSourceProperty(nameof(Objects))]
        [ValueConverter(typeof(ObjectTypeValueConverter))]
        [Persistent][RuleRequiredField]
        public ObjectType Object {
            get => _object;
            set => SetPropertyValue(nameof(Object), ref _object, value);
        }

        [Browsable(false)]
        public IList<ObjectType> Objects
            => ((IModelJobSchedulerNotification)CaptionHelper.ApplicationModel
                    .ToReactiveModule<IModelReactiveModulesJobScheduler>().JobScheduler).Notification.Types
                .Select(type => new ObjectType(type.Type.TypeInfo.Type) {Name = type.Type.Caption}).ToArray();

Once again thank you for your support.
I have this attributes in one object not listed:
[VisibleInReports] [DefaultClassOptions] [XafDisplayName("Requisições")] [NavigationItem("Gestão do Centro")] [ModelDefault("Caption", "Requisições")] [ListViewFilter("CRIADO", "[Estado.Estado] = 1", true, Index = 1)] [ListViewFilter("SUBMETIDO", "[Estado.Estado] = 2", false, Index = 2)] public partial class SigoRequisicoes {

there are detailed docs https://github.com/eXpandFramework/Reactive.XAF/tree/master/src/Modules/JobScheduler.Notification
is your type there?


Maven build failure

While building on Windows it gives the error message:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for mapr.com:kafka-examples:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 36, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building kafka-examples 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kafka-examples ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ kafka-examples ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ kafka-examples ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\Workspace\Intellij\kafka-sample-programs\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ kafka-examples ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ kafka-examples ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kafka-examples ---
[INFO] Building jar: E:\Workspace\Intellij\kafka-sample-programs\target\kafka-examples-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-assembly-plugin:2.4:single (make-assembly) @ kafka-examples ---
[INFO] Building jar: E:\Workspace\Intellij\kafka-sample-programs\target\kafka-examples-1.0-SNAPSHOT-jar-with-dependencies.jar
[INFO]
[INFO] --- really-executable-jar-maven-plugin:1.1.0:really-executable-jar (default) @ kafka-examples ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.638 s
[INFO] Finished at: 2017-06-21T11:24:28+08:00
[INFO] Final Memory: 14M/338M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.skife.maven:really-executable-jar-maven-plugin:1.1.0:really-executable-jar (default) on project kafka-examples: FAILURE! FAILURE!
[ERROR] Cannot run program "chmod": CreateProcess error=2, the system cannot find the file specified.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Issue is solved by installing cygwin64 and adding the path to chmod in the system variable. Default location for chmod in cygwin64 is C:\cygwin64\bin.  See http://javaprotlib.sourceforge.net/packages/io/howtofixhadoop.html


autoscaling enhancement

The demo would be smoother if it were easier to show more incremental scaling up and down

scale up from 0-1, then wait for cold-start and offset to start moving, then scale 1-N if necessary
scale down from n-1 incrementally instead of all at once, the pause scaling down at 1, before going to 0.

I experimented a bit with tapered downscale delays. For example, scaling 1->0 should be the full idleTimeout value, but scaling max->(max-1) should be 1/2 of the idleTimeout (with the rest of the range adjusted linearly. That's just one idea; implementation could vary and will likely continue to evolve.

this needs to be reported as a function-controller issue (those changes would be internal based on the current state)


Proposal: Support for portable installation of applications

Proposal: Support for portable installation of applications

Summary

Having portable apps is a huge request from users who hop on different machines regularly. This enables them to install the apps once on an external drive and use it across machines and user accounts and all the app data will be available in the installed location.
VS Code offers a portable version in which you can choose to keep the extension data in the installed location and you can take those data to anywhere you want. Similarly, you can install a browser as portable and take your extensions, bookmarks and history everywhere.
Rationale

This enables:

Install once and use everywhere.
Take your work anywhere you go.
Better back up of apps and their data.
Other advantages of portable apps: https://portableapps.com/about/what_is_a_portable_app

Scope

Capability
Priority

Sideload apps as portable apps
Must

Convert installed apps into portable apps
Should

Create portable copies of installed apps
Should

Convert portable apps into installed apps
Could

Restore portable apps into installed apps
Could

Auto-update portable apps
Could

Important Notes

There already is an open standard for portable apps by portableapps.com. They have a great list of available apps and a huge user base. May be similar standard can be implemented natively in MSIX.
Open Questions

With the focus of backwards compatibility in Reunion, will there be any issues running the same app in multiple versions of windows??

Proposal: Support for portable installation of applications
Summary
Having portable apps is a huge request from users who hop on different machines regularly. This enables them to install the apps once on an external drive and use it across machines and user accounts and all the app data will be available in the installed location.
VS Code offers a portable version in which you can choose to keep the extension data in the installed location and you can take those data to anywhere you want. Similarly, you can install a browser as portable and take your extensions, bookmarks and history everywhere.
Rationale
This enables:

Install once and use everywhere.
Take your work anywhere you go.
Better back up of apps and their data.
Other advantages of portable apps: https://portableapps.com/about/what_is_a_portable_app

Scope
Capability	Priority
Sideload apps as portable apps	Must
Convert installed apps into portable apps	Should
Create portable copies of installed apps	Should
Convert portable apps into installed apps	Could
Restore portable apps into installed apps	Could
Auto-update portable apps	Could
Important Notes
There already is an open standard for portable apps by portableapps.com. They have a great list of available apps and a huge user base. May be similar standard can be implemented natively in MSIX.
Open Questions
With the focus of backwards compatibility in Reunion, will there be any issues running the same app in multiple versions of windows??

you could specifically mention it for UWP apps, win32 can already do it.

you could specifically mention it for UWP apps, win32 can already do it.

Although win32 apps can do it, they have to rely on other mode of packaging, their should be unified way of installing apps as portable apps for both uwp and win32 apps and it should be implemented in MSIX.

@jvintzel: could MSIX support app install from a VHD on a USB stick?

We have the ability to install apps on other media today, but it is still related to the device it was installed on. This is something we can add to the backlog and look at in the future.

Thanks! Moving it to the project board backlog.

I think we could get there with app-attach work, or a similar "there's an app in this directory" model (similar to dev register, but "register this directory, validate signatures, etc.").  We'd need a model where app state is also stored "next to" the package directory.  Maybe apps deployed in this way don't get deep shell integration other than launch, so there's less to register/unregister. Or maybe the only thing you can do is "m:\myapps\myapp.exe" which brings up the app.  Seems like there's some good stuff to explore here. :)

My 2¢: I am a user of PortableApps.com. PortableApps.com already has a detailed specification for how portable apps are to be integrated with the Windows platform. Every MSIX shell integration feature currently available is either implemented in some other way in that spec, or is simply impossible to implement correctly in a Windows app while staying fully portable. However, I don’t want to tie this issue to that specific platform, as others do exist.
With PortableApps, the app is to be installed into a different directory tree than its private data folder, which itself is in a different directory tree from the user-visible Documents directory. (Defaulting open/save dialogs to this directory is a best practice.) Failing to follow this convention puts app data at risk of being unintentionally deleted during an upgrade. There is a program called the PortableApps.com Launcher that already has ways to automatically set environment variables, including those that contain directory paths, to appropriate values before launching an app’s executable. I would always use the Launcher when I write a portable app (assuming the license is compatible; the Launcher cannot be used with commercial applications), independently of any MSIX setup. Of course, other platforms would do everything completely differently.
I would recommend simply adding some Detours code to this repo that detects when an MSIX-based program is in portable mode, and if so redirects the filesystem to (a subfolder of) the directory specified by %APPDATA% or %LOCALAPPDATA%. This would include shimming SHGetFolderPath() and the like, so the Documents folder can also be redirected. The onus is then on the app developer to use the appropriate Shell APIs to locate directories (or, in some cases, via the system-defined environment variables), and on the packager to ensure they are set to correct values. PortableApps.com already requires apps to follow conventions such as these.

When launching the app package for installation in App Installer, there could be a run once option if it detects that there's an activatable app inside the package.


VS2015 tutorial start page

Thanks for providing Cookbook -> Visual Studio 2015 Quickstart!
https://angular.io/docs/ts/latest/cookbook/visual-studio-2015.html
In Step 7 (Build and Run App), there needs to be instruction to set index.html as start page, so that when Run button or F5 is pressed to run the application, browser shows index.html
To set index.html as start page, right click on index.html in solutions explorer and select option "Set As Start Page".

Pull request submitted.
https://github.com/angular/angular.io/pull/2416

Pull request https://github.com/angular/angular.io/pull/2416 merged.


Fixed ptmodules directory collision

With intelpt set to gather coverage during fuzzing scenario it was impossible to start more than instance using -M / -S because winaflpt.c:751 add_module_to_section_cache() function was trying to overwrite module cache that was already in use resulting in error: "Error opening image cache file.".
To avoid this problem I've moved modules_dir inside master/slave sync dir.

Indeed you are correct, thank you very much for spotting this! Looking at the code, the problem seems to be that out_dir is used before it is set up correctly (in case of multiple fuzzers) in fix_up_sync. So I think a better fix would be to simply move the if (use_intelpt) block a couple of lines down, after fix_up_sync. This way, it would work even if sync_id is not set. WDYT?

@ifratric Moved and tested. It's ready to merge

Awesome, thanks a lot!