Add pairNIC domain registrar

About the doc link, I'm unable to find a URL that links directly to the "What is Two Factor Authentication?" question and answer. Is better to leave the doc URL blank instead?

wow they made the FAQ page's topics 100% JS without an option for non-JS users.
It's okay. Just leave the URL there. Let's not do any extra work because of their stupidity...


Compute standard deviation in output.

Addresses #326.
In this change, the standard deviation for each risk factor is computed in the std_<factor> columns of the CSV output.
Group means are now in the mean_<factor> columns. NB: this probably means scripts need changing to point to the new mean_ prefixed equivalents.
Note that ONLY risk factors have stddev computed for each groups. If more columns are required to have stddev, please let me know here.
@jzhu20, could you please test locally so it works your end if/when you have a moment? Thanks.

@jzhu20 This PR is already merged, so I'd open a new issue for this request.


Information about the hardware

computing infrastructure used for running experiments (hardware and software), including GPU/CPU models; the amount of memory

One GeForce RTX 2080 Ti for GLOVE and base PLM, one Tesla V100-PCIE-32GB for large PLM.
50g is enough for CPU memory.


The option ERRORFILE_DATASOURCE is incorrect, it should be ERRORFILE_…

…DATA_SOURCE

@raghavt-msft : Thanks for your contribution! The author, @edmacauley, has been notified to review your proposed change.

Thank you @raghavt-msft


Model view does not load when "back" & "forward" buttons are used

Ask Aufar for video reprodcing

Any update on this one?


documentation comments don't highlight correctly: ##[ ... ]##

eg:
##[
Universal conversion template.
]##

https://nim-lang.org/docs/manual.html
Multiline documentation comments also exist and support nesting too:
proc foo =
##[Long documentation comment
here.
]##

Fixed (probably via a previous syntax change)

indeed


[SR-10612] Illegal Instruction: 4 when compiling with Xcode 10.2.1

Previous ID
SR-10612

Radar
None

Original Reporter
heath (JIRA User)

Type
Bug

Environment
macOS 10.14.4, Xcode 10.2.1

Additional Detail from JIRA

Votes
0

Component/s
Compiler

Labels
Bug

Assignee
@slavapestov

Priority
Medium

md5: 825e290e69605050e1becb422112fc5f

relates to:

SR-8247 Associated type inheriting from generic class with Self as a parameter prints canonical type in errors
SR-9301 Error using constrained associated type with generics

Issue Description:
The following code fails to compile on Xcode 10.2.1:
protocol P1: class {
    associatedtype P1P1: P1
    associatedtype P1AnyP2: AnyP2<P1P1>

    var anyP2: P1AnyP2? { get set }
}

protocol P2 {
    associatedtype P2P1: P1
}

final class AnyP2<AP2P1: P1>: P2 {
    typealias P2P1 = AP2P1
}

Output:
error: Illegal instruction: 4

Xcode also takes 57 seconds to compile this file, which seems suspect.
Available on GitHub: https://github.com/hborders/SwiftBugs/tree/SR-10612

I forgot when the circular references were fixed but the test case now passes on 5.9 and main.


merged/obsolete terms have 'no result' in QuickGO

E.g. GO:0043234 protein complex no longer has a result in QuickGO when it should point to GO:0032991 protein-containing complex which it got merged into.
Amigo2 has an obsoletion page and points to the new AC.
A search directly in the url will redirect.

I just checked, an they the merged term strings are valid synonyms. So this should be working.

I mailed QuickGO a while ago about this. It would be useful.....
v

I'm going to close this ticket because I don't think this is an issue with the ontology. Everything looks ok to me on our end.


GCS Vault Backend Rate Limiting

Hi,
Running into the following issue:
The rate of change requests to the object applovin-vault-data-dev/sys/expire/id
/auth/kubernetes/login/xxxx exceeds the rate limit. Please reduce the rate of create, update, and delete requests., rateLimitExceeded
    at handleVaultResponse (/app/node_modules/node-vault/src/index.js:58:21)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  response: { statusCode: 500, body: { errors: [Array] } }
}

It looks like each ExternalSecret is doing a Token refresh, so we have 23 token renew requests in less than 2 seconds.
{"time":"2020-08-13T20:52:01.648042679Z","type":"request","auth":{"client_token":"hmac-sha256:XXXX","accessor":"hmac-sha256:XXXX","display_name":"kubernetes-default-apc-external-secrets-kubernetes-external-secrets","policies":["airflow","default"],"token_policies":["airflow","default"],"metadata":{"role":"external-secrets","service_account_name":"apc-external-secrets-kubernetes-external-secrets","service_account_namespace":"default","service_account_secret_name":"apc-external-secrets-kubernetes-external-secrets-token-jhkdc","service_account_uid":"b59d3e0f-bd44-4d46-a418-8cd5ceecbfa0"},"entity_id":"352861fe-0162-05a6-c13f-712ead897358","token_type":"service","token_ttl":3600,"token_issue_time":"2020-08-13T20:51:31Z"},"request":{"id":"bb308560-1ccd-1e85-299f-17087cc5d44e","operation":"update","mount_type":"token","client_token":"hmac-sha256:XXXX","client_token_accessor":"hmac-sha256:XXXX","namespace":{"id":"root"},"path":"auth/token/renew-self","remote_address":"<IP_ADDRESS>"}}
We are using GCS as our Vault Backend and our KES Pod crashes due to being rate-limited by Token Renewals.
We have tried setting the VAULT_TOKEN_RENEW_THRESHOLD really high (360000) with no luck.
Thoughts?

I'm seeing this as well - the tokens are being renewed on every poll interval and ignoring the token TTL.

Looks like this has been fixed in https://github.com/godaddy/kubernetes-external-secrets/pull/457 so we're just waiting on release.

#457 Seems to have fixed this in release 5.2.0!


RI: Subaward sheet is not parsed correctly in treasury portal

RI's subaward sheet upload appears to be parsed as a large number of empty rows when loaded into the treasury portal.
This is probably a parsing error for the CSV file we export.
NOTE: Opening a file in excel and saving it usually fixes parsing (but sometimes strips leading zeroes).

Steps to reproduce:

Log into RI ARPA Reporter instance
Download treasury export for current reporting cycle
Log into treasury portal
Open existing workspace with Mindy's name on it
Use the subaward bulk upload process to attempt to upload the generated subawards > 50k sheet from our export

At this point, observe that the preview of uploaded data shows a large number of blank rows

Open our generated CSV with excel and save it without making changes
Re-upload in treasury portal

Observe that the preview now includes realistic data (but zip codes have had leading zeroes dropped)

I poked around at this issue a little more today.
We know that opening and saving the subaward sheet in excel fixed the issue for Ozzie, so I tried this locally.  The most visible change was that excel removes "unnecessary" quotes from fields in the CSV.  We could try removing the forceQuotes option when printing our CSVs, but I think I ran into a different parsing issue from this approach once before.  It's possible we'll want to find a different library to print the CSV?
Unfortunately, until we regain access to the treasury portal it's going to be difficult to verify a fix.

After talking to partners, we've pushed this issue back to next reporting period, since there is a simple workaround that works, and we can't easily debug it until we get access to the treasury portal again.


fasd j command not found

I'm trying out presto as a replacement for oh-my-zsh.

Oh wait - do I need to separately install fasd with brew?


Add isnull/notnull to API reference page

Codecov Report

Merging #229 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master    #229      +/-   ##
=========================================
- Coverage   91.23%   91.2%   -0.04%
=========================================
  Files          33      33
  Lines        2898    2898
=========================================
- Hits         2644    2643       -1
- Misses        254     255       +1

Impacted Files
Coverage Δ

databricks/koalas/__init__.py
88.88% <0%> (-3.71%)
:arrow_down:

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 fcb762c...883082d. Read the comment docs.


Configurable log path for main process and shim

What is the problem you're trying to solve
By current implementation, containerd/shim log can potentially use all disk space, external tools (like logrotate) does log rotation periodically which is still dangerous.
Describe the solution you'd like
As titled, need a configurable log path for main process.
And configurable log rotate policy (like lumberjack).
Additional context
No response

Currently, both containerd and shim's log is output though containerd's stdout.
And it is common usage to use journal, which will handle the logratote and throttle.
I'm open to the option about handling logrotate by containerd itself. But we need design doc about this. :)

Asking a related question here, where're the logs of runc? Does it also redirect to the containerd's log?

Hi @cyyzero we can discuss runc log in https://github.com/containerd/containerd/issues/8144.


Rename _PipenvInstance.pipfile_path to pipfile_location for consistency

The inconsistency was noticed at https://github.com/pypa/pipenv/pull/2069#discussion_r184529995.  The PR that is not accepted first should be updated to avoid the original observation actually being out of place (self.lockfile_path -> self.lockfile_location).

@techalchemy if you change your mind about wanting this...  no biggy.  :]  It was only a couple minutes to search and replace.

@altendky I suspect changing lockfile_location to lockfile_path is going to touch a lot less stuff ;) was there a reason you went with this one instead of that one as a change? I didn't look too hard at the options to be honest

@techalchemy it still is lockfile_location over in #2069 which is consistent within the _PipenvInstance class, just not with the Project class.  Sounds like maybe I misunderstood one of your comments in IRC yesterday since I thought you wanted this.  I don't care too much myself.  :]  Feel free to reopen if you do actually want this.


Adds support for legalizing CLZ, CTZ and POPCOUNT on baseline

x86_64 targets (that is, devices that support SSE2 only).  Changes:

Adds a new generic instruction, SELECTIF, that does value selection (a la
conditional move) similarly to existing SELECT, except that it is
controlled by condition code input and flags-register inputs.

Adds a new Intel x86_64 variant, 'baseline', that supports SSE2 and
nothing else.

Adds new Intel x86_64 instructions BSR and BSF.

Implements generic CLZ, CTZ and POPCOUNT on x86_64 'baseline' targets
using the new BSR, BSF and SELECTIF instructions.

Implements SELECTIF on x86_64 targets using conditional-moves.

new test filetests/isa/intel/baseline_clz_ctz_popcount.cton
(for legalization)

new test filetests/isa/intel/baseline_clz_ctz_popcount_encoding.cton
(for encoding)

Allow lib/cretonne/meta/gen_legalizer.py to generate non-snake-caseified
Rust without rustc complaining.

(with apologies if this appears twice)
Thanks for the feedback!  I think I fixed everything.  There is still
one bit of confusion though, regarding register ordering in 'cmov'.
You wrote:

; 64-bit wide cmov

; asm: cmoveq %rdx, %r11
[-,%r11]     v51 = selectif.i64 eq v48, v30, v34   ; bin: 4c 0f 44 da

The existing select instruction takes operands in the following order:
(condition, when-true, when-false). This matches the C ternary c ? x : y
operator. I think the selectif instruction should follow the same pattern,
and that is how you defined it too.
So I think this encoding is backwards. We have v30 in %r11 and v34 in %rdx.
This means that when the flags have an eq condition, we get v34 in the
output register, and when they don't we get v30 (which just stays in %r11).
Using the (when-true, when-false) argument order, the test should be:
; asm: cmoveq %r11, %rdx
[-,%rdx]     v51 = selectif.i64 eq v48, v30, v34 ; bin: ...

I think this comes down to using outs=2 on the cmov TailRecipe so the
output register is tied to the last input operand, the when-false value.

If I change both the test and the TailRecipe as you describe above, and update
the expected output, then the test still fails:
Want: 49 0f 44 d3
Got:  4c 0f 44 da
In order to get it to pass, I also have to swap the roles of in_reg1 and
in_reg2 in the recipe -- that is, change it from
PUT_OP(bits | icc2opc(cond), rex2(in_reg2, in_reg1), sink);
modrm_rr(in_reg2, in_reg1, sink);
to
PUT_OP(bits | icc2opc(cond), rex2(in_reg1, in_reg2), sink);
modrm_rr(in_reg1, in_reg2, sink);
Given that this swaps the roles of the two registers a second time relative
to your fix, I can't infer whether it's now correct, or whether it's just as
wrong as it was to start with, and there's something else I need to fix.  Do
you know?

+intel_expand.legalize(

a << insts.ctz.i64(x),
Rtl(

   c_minus_one << insts.iconst(imm64(-1)),

   c_sixty_three << insts.iconst(imm64(63)),

   (index1, r2flags) << x86.bsf(x),

   index2 << insts.selectif(intcc.eq, r2flags, c_minus_one, index1),

   a << insts.isub(c_sixty_three, index2),

I think BSF returns the right value already for non-zero inputs, so no
subtraction is required. Just force a 64  result when the input is zero.

Ah, well spotted.  I had assumed the CTZ case was just a mirror-image swap
of the CLZ case, around the middle point of the input word.  But as you say,
BSF uses the same bit-indexing scheme as BSR, so the symmetry I assumed
doesn't actually exist.

[legalization for popcount64]
Interesting, this is not the algorithm I know. It's a great test case for
@d1m0's SMT-solver verification of patterns.

This is from Hacker's Delight (the 2003 printing), Sec 5.1, page 68.  It is
a variant of the "classic" divide-and-conquer algorithm, in which the
recursive bit-gathering operation is stopped when each byte lane contains
the number of 1s originally in that byte lane.  All subsequent iterations
are removed and replaced by a single multiply, which is probably a win if
it can typically be done in 3 cycles.  I also liked this variant because it
requires fewer large constants than some other variants.

Does this generalize to a popcnt.i32 version?

Yes, that is exactly the same, at 32-bit width, with the final multiply and
shift changed appropriately.  I added an implementation for popcount.i32 now.

I would run that cmov instruction through an assembler and use the reg1/reg2 argument order that matches. Some Intel instructions come in both MR and RM forms where the order is reversed, and I think I got sub backwards to begin with.
+1 for your popcount algorithm
Thanks again.


Use python from python -m uv as default

Python tools run with python -m <tool> will use this python as their default python, including pip, virtualenv and the built-in venv. Calling Python tools this way is common, the pip docs use python -m pip exclusively, the built-in venv can only be called this way and certain project layouts require python -m pytest over pytest. This python interpreter takes precedence over the currently active (v)env.
These tools are all written in python and read sys.executable. To emulate this, we're setting UV_DEFAULT_PYTHON in the python module-launcher shim and read it in the default python discovery, prioritizing it over the active venv. User can also set UV_DEFAULT_PYTHON for their own purposes.
The test covers only half of the feature since we don't build the python package before running the tests.
Fixes https://github.com/astral-sh/uv/issues/2058
Fixes https://github.com/astral-sh/uv/issues/2222

Rebase please when you can.

Done

I'm not sure that this should apply when you use --system or --python.

This would certainly be surprising if --python was not honored.

--system and --python should still have precedence, this should only affect the default when performing interpreter discovery with no specification or a version number.
Setup:
pipx run maturin build && venv310/bin/pip install --force-reinstall uv --find-links target/wheels

Black has
Requires-Dist: tomli>=1.1.0; python_version < '3.11'
Requires-Dist: typing-extensions>=4.0.1; python_version < '3.11'

which we can use to see what python was used.
$ venv310/bin/uv pip install --python venv311/bin/python black
Resolved 6 packages in 143ms
Downloaded 2 packages in 724ms
Installed 6 packages in 9ms
 + black==24.2.0
 + click==8.1.7
 + mypy-extensions==1.0.0
 + packaging==24.0
 + pathspec==0.12.1
 + platformdirs==4.2.0
$ venv310/bin/uv pip install --python venv310/bin/python black
Resolved 8 packages in 96ms
Downloaded 3 packages in 258ms
Installed 8 packages in 7ms
 + black==24.2.0
 + click==8.1.7
 + mypy-extensions==1.0.0
 + packaging==24.0
 + pathspec==0.12.1
 + platformdirs==4.2.0
 + tomli==2.0.1
 + typing-extensions==4.10.0

The --system behavior is like before on my machine:
In a venv:
$ pipx run uv pip install -v --system black
⚠  uv is already on your PATH and installed at /home/konsti/.cargo/bin/uv. Downloading and running anyway.
    0.000085s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
 uv_interpreter::python_query::find_default_python
      0.001812s   0ms DEBUG uv_interpreter::python_query Starting interpreter discovery for default Python
      0.010261s   8ms  WARN uv_interpreter::interpreter Broken cache entry at /home/konsti/.cache/uv/interpreter-v0/b35dc727399b4008.msgpack, removing: array had incorrect length, expected 5
      0.010289s   8ms DEBUG uv_interpreter::interpreter Probing interpreter info for: /home/konsti/.local/bin/python
      0.021672s  19ms DEBUG uv_interpreter::interpreter Found Python 3.11.6 for: /home/konsti/.local/bin/python
    0.021736s DEBUG uv::commands::pip_install Using Python 3.11.6 environment at /home/konsti/.local/bin/python
$ venv310/bin/uv pip install -v --system black
    0.000200s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
 uv_interpreter::find_python::find_default_python
      0.006043s   0ms DEBUG uv_interpreter::find_python Starting interpreter discovery for default Python
      0.006148s   0ms DEBUG uv_interpreter::interpreter Cached interpreter info for Python 3.12.1, skipping probing: /home/konsti/projects/uv/.venv/bin/python3
    0.006181s DEBUG uv::commands::pip_install Using Python 3.12.1 environment at /home/konsti/projects/uv/.venv/bin/python3
Audited 1 package in 6ms

Outside of a venv:
$ pipx run uv pip install -v --system black
⚠  uv is already on your PATH and installed at /home/konsti/.cargo/bin/uv. Downloading and running anyway.
    0.000085s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
 uv_interpreter::python_query::find_default_python
      0.001812s   0ms DEBUG uv_interpreter::python_query Starting interpreter discovery for default Python
      0.010261s   8ms  WARN uv_interpreter::interpreter Broken cache entry at /home/konsti/.cache/uv/interpreter-v0/b35dc727399b4008.msgpack, removing: array had incorrect length, expected 5
      0.010289s   8ms DEBUG uv_interpreter::interpreter Probing interpreter info for: /home/konsti/.local/bin/python
      0.021672s  19ms DEBUG uv_interpreter::interpreter Found Python 3.11.6 for: /home/konsti/.local/bin/python
    0.021736s DEBUG uv::commands::pip_install Using Python 3.11.6 environment at /home/konsti/.local/bin/python
error: The interpreter at /usr is externally managed, and indicates the following:

  To install Python packages system-wide, try apt install
  python3-xyz, where xyz is the package you are trying to
  install.
  If you wish to install a non-Debian-packaged Python package,
  create a virtual environment using python3 -m venv path/to/venv.
  Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
  sure you have python3-full installed.
  If you wish to install a non-Debian packaged Python application,
  it may be easiest to use pipx install xyz, which will manage a
  virtual environment for you. Make sure you have pipx installed.
  See /usr/share/doc/python3.11/README.venv for more information.

Consider creating a virtual environment with `uv venv`.
$ venv310/bin/uv pip install -v --system black
    0.000057s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
 uv_interpreter::python_query::find_default_python
      0.001581s   0ms DEBUG uv_interpreter::python_query Starting interpreter discovery for default Python
      0.001619s   0ms DEBUG uv_interpreter::interpreter Cached interpreter info for Python 3.11.6, skipping probing: /home/konsti/.local/bin/python
    0.001625s DEBUG uv::commands::pip_install Using Python 3.11.6 environment at /home/konsti/.local/bin/python
error: The interpreter at /usr is externally managed, and indicates the following:

  To install Python packages system-wide, try apt install
  python3-xyz, where xyz is the package you are trying to
  install.
  If you wish to install a non-Debian-packaged Python package,
  create a virtual environment using python3 -m venv path/to/venv.
  Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
  sure you have python3-full installed.
  If you wish to install a non-Debian packaged Python application,
  it may be easiest to use pipx install xyz, which will manage a
  virtual environment for you. Make sure you have pipx installed.
  See /usr/share/doc/python3.11/README.venv for more information.

Consider creating a virtual environment with `uv venv`.

How is that? If you pass --system, it calls PythonEnvironment::from_default_python which calls find_default_python  which calls try_find_default_python which calls find_python, which is changed here to start by looking at UV_DEFAULT_PYTHON.

What does venv310/bin/uv pip install black --system --verbose print? It resolves to the system Python?

Sorry, i got fooled by index precedence, pipx run maturin build && venv310/bin/pip install --force-reinstall uv --find-links target/wheels --no-index is the right test command.
The --system was indeed broken, i've added a system flag to differentiate system/non-system cases:
$ venv310/bin/python -m uv pip install black --system --verbose
    0.000220s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
 uv_interpreter::find_python::find_default_python
      0.006423s   0ms DEBUG uv_interpreter::interpreter Cached interpreter info for Python 3.11.6, skipping probing: /home/konsti/.local/bin/python
    0.006465s DEBUG uv::commands::pip_install Using Python 3.11.6 environment at /home/konsti/.local/bin/python
error: The interpreter at /usr is externally managed, and indicates the following:

  To install Python packages system-wide, try apt install
  python3-xyz, where xyz is the package you are trying to
  install.
  If you wish to install a non-Debian-packaged Python package,
  create a virtual environment using python3 -m venv path/to/venv.
  Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
  sure you have python3-full installed.
  If you wish to install a non-Debian packaged Python application,
  it may be easiest to use pipx install xyz, which will manage a
  virtual environment for you. Make sure you have pipx installed.
  See /usr/share/doc/python3.11/README.venv for more information.

Consider creating a virtual environment with `uv venv`.
$ venv310/bin/python -m uv pip install black --verbose
    0.000215s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
    0.006121s DEBUG uv_interpreter::python_environment Found a virtualenv through VIRTUAL_ENV at: /home/konsti/projects/uv/venv310
    0.006220s DEBUG uv_interpreter::interpreter Cached interpreter info for Python 3.10.13, skipping probing: /home/konsti/projects/uv/venv310/bin/python
    0.006243s DEBUG uv::commands::pip_install Using Python 3.10.13 environment at /home/konsti/projects/uv/venv310/bin/python
Audited 1 package in 6ms
$ venv310/bin/python -m uv pip install black --python venv311/bin/python --verbose
    0.000224s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
 uv_interpreter::find_python::find_requested_python request=venv311/bin/python
      0.006037s   0ms DEBUG uv_interpreter::find_python Starting interpreter discovery for Python @ `venv311/bin/python`
      0.006143s   0ms DEBUG uv_interpreter::interpreter Cached interpreter info for Python 3.11.7, skipping probing: venv311/bin/python
    0.006185s DEBUG uv::commands::pip_install Using Python 3.11.7 environment at /home/konsti/projects/uv/venv311/bin/python
Audited 1 package in 6ms

What about .venv/bin/python -m uv pip install -p 3.7, in a virtualenv that is Python 3.7? Should that return .venv/bin/python or not? (I believe it currently does in this PR, is my read.)

Currently, it does:
$ a/bin/python -m uv pip install -p 3.10 -v black
    0.000161s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
 uv_interpreter::find_python::find_requested_python request=3.10
      0.005736s   0ms DEBUG uv_interpreter::find_python Starting interpreter discovery for Python @ `3.10`
      0.005754s   0ms DEBUG uv_interpreter::find_python Trying UV_DEFAULT_PYTHON at /home/konsti/projects/uv/a/bin/python
      0.005825s   0ms DEBUG uv_interpreter::interpreter Cached interpreter info for Python 3.10.13, skipping probing: /home/konsti/projects/uv/a/bin/python
    0.005856s DEBUG uv::commands::pip_install Using Python 3.10.13 environment at /home/konsti/projects/uv/a/bin/python
Audited 1 package in 6ms
$ a/bin/python3.10 -m uv pip install -p 3.10 -v black
    0.000168s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
 uv_interpreter::find_python::find_requested_python request=3.10
      0.006305s   0ms DEBUG uv_interpreter::find_python Starting interpreter discovery for Python @ `3.10`
      0.006342s   0ms DEBUG uv_interpreter::find_python Trying UV_DEFAULT_PYTHON at /home/konsti/projects/uv/a/bin/python3.10
      0.006412s   0ms DEBUG uv_interpreter::interpreter Probing interpreter info for: /home/konsti/projects/uv/a/bin/python3.10
      0.026986s  20ms DEBUG uv_interpreter::interpreter Found Python 3.10.13 for: /home/konsti/projects/uv/a/bin/python3.10
    0.027167s DEBUG uv::commands::pip_install Using Python 3.10.13 environment at /home/konsti/projects/uv/a/bin/python3.10
Audited 1 package in 27ms

A binary name works differently though:
$ a/bin/python3.10 -m uv pip install -p python3.10 -v black
    0.000172s DEBUG uv_client::registry_client Using registry request timeout of 300s
 uv::requirements::from_source source=black
 uv_interpreter::find_python::find_requested_python request=python3.10
      0.005800s   0ms DEBUG uv_interpreter::find_python Starting interpreter discovery for Python @ `python3.10`
      0.005906s   0ms DEBUG uv_interpreter::interpreter Cached interpreter info for Python 3.10.13, skipping probing: /home/konsti/.local/bin/python3.10
    0.005939s DEBUG uv::commands::pip_install Using Python 3.10.13 environment at /home/konsti/.local/bin/python3.10
Audited 1 package in 6ms

I don't have an opinion on how pip install -p <non-path> should work, i don't use that combination.

I don't have a strong opinion on it either.

I think different behavior for -p 3.10 vs -p python3.10 would be pretty confusing, I'd rather not introduce that.

What do you want the sematics of
python -m uv pip compile -p 3.10
python -m uv pip compile -p python3.10
python3.10 -m uv pip compile -p 3.10
python3.10 -m uv pip compile -p python3.10

to be?

python3.10 and 3.10 should be equivalent.
python -m uv pip compile -p 3.10 should use the active Python if it's 3.10 otherwise find the first Python 3.10 on your path, if not found it should use the active Python. Right?

python -m uv pip install -p 3.10 ... feels more complicated since we don't want to install into the system without opt-in, maybe we should just error and say --system or --python is needed in that case?

python -m uv pip install -p 3.10 ... feels more complicated since we don't want to install into the system without opt-in, maybe we should just error and say --system or --python is needed in that case?

But we already do this, right? uv pip install -p 3.10 will install into system, and in that example, they did provide --python.

@charliermarsh can you link to what you're referring to? What do you mean by "did provide --python"?

The example you gave was python -m uv pip install -p 3.10. The -p is --python, right?

Oh sorry 🤦♀
I meant that to install into the system we should require a path to a Python interpreter or the --system flag, that's kind of a separate from this pull request though.

Given that #2386 is a far further ranging discussion with bigger changes attached, what do we need to move forward with this PR?

While this is nice to have I don't see a strong motivation to rush it, I'd rather come to a consensus in #2386 then assess if this meets the behavior there.

Based on https://github.com/astral-sh/uv/issues/2386, is there a way for us to slot this in in a forwards-compatible without doing the entirety of the changes in https://github.com/astral-sh/uv/issues/2386?

I need to add an environment variable for this in #3266 — figure it will be a separate PR.


KD-Tree or Ball-Tree Algorithms for kNN search?

Thanks for developing the library. So far using to run a KNN on embedding vectors it has been pretty straight forward.
Are there any plans to speed up KNN search by introducing clever algorithms like a K-D tree or Ball-Tree? Running a brute force search on every query seems a bit wasteful for large data tables.
It would be amazing if create index ... ON Table(vector) was actually creating a K-D tree.
Best wishes!

Is this the same as #25? (I am new here, sorry if irrelevant!)

I suppose that depends on how you implement k-d or ball tree algorithms though they could be.
There seem to be some ANN implementations for SQLite. I was looking at this ticket #94 for alternatives.
This ticket was more aimed at faster exact kNN search algorithms before trying out approximate NNs. I realize implementing any of this is not at all trivial.


go purl compatibility

@vchaindz, could you kindly test your integration with this PR? This has two breaking changes.
#83 and then bring back hashes as array and fix cdxgen directly.

works well in my tests. Btw. now the parsing using trivy, grype and depscan work.

@vchaindz Thank you for confirming!


fix: Updated metrics:distributor capability to could

:tada: This PR is included in version 0.18.0-next.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


There is a bug in func compileNamedQuery

https://github.com/jmoiron/sqlx/blob/master/named.go#L239
the following input will trigger a bug in compileNamedQuery function:
UPDATE services SET create_time = :create_time, dc = :dc, group = :group, name = :name, port = :port, server_ip = :server_ip, status = :status, team = :team, update_time = :update_time where services.id ='<IP_ADDRESS>:3306'
where 3306 will be treated as a parameter name.

Can be escaped with ::


[SPARK-48883][ML][R] Replace RDD read / write API invocation with Dataframe read / write API

What changes were proposed in this pull request?
This PR is a retry of https://github.com/apache/spark/pull/47328 which replaces RDD to Dataset to write SparkR metadata plus this PR removes repartition(1). We actually don't need this when the input is single row as it creates only single partition:
https://github.com/apache/spark/blob/e5e751b98f9ef5b8640079c07a9a342ef471d75d/sql/core/src/main/scala/org/apache/spark/sql/execution/LocalTableScanExec.scala#L49-L57
Why are the changes needed?
In order to leverage Catalyst optimizer and SQL engine. For example, now we leverage UTF-8 encoding instead of plain JDK ser/de for strings.
Also, we remove repartition(1). To avoid unnecessary shuffle.
With repartition(1):
== Physical Plan ==
AdaptiveSparkPlan isFinalPlan=false
+- Exchange SinglePartition, REPARTITION_BY_NUM, [plan_id=6]
   +- LocalTableScan [_1#0]

Without repartition(1):
== Physical Plan ==
LocalTableScan [_1#2]

Does this PR introduce any user-facing change?
No.
How was this patch tested?
CI in this PR should verify the change
Was this patch authored or co-authored using generative AI tooling?
No.

cc @dongjoon-hyun @WeichenXu123 @zhengruifeng

BTW, SparkR does not have RDD API so it is guaranteed to have Spark session already running.

Thank you, @HyukjinKwon and @zhengruifeng .
In the PR description, could you add specific JIRA issue links for the following ?

In order to leverage Catalyst optimizer and SQL engine. For example, now we leverage UTF-8 encoding instead of plain JDK ser/de for strings.

Addressed all 👍

Separated PR to https://github.com/apache/spark/pull/47347.

Could you add back this change ?

Merged to master.


Setting display:flex on accordion content creates double animation

Bug report
Current Behavior
The default display for Accordion.Content is block. Setting it to flex causes a double animation when closing a section.
Expected behavior
The animation should not be affected by using display:flex
Reproducible example
Open / close the sections on this codesandbox: https://codesandbox.io/s/2r30e
Suggested solution
If this is technically not possible / too difficult to remove the double animation, a warning in the console would prevent a lot of debugging.
Your environment

Software
Name(s)
Version

Radix Package(s)
@radix-ui/react-accordion
1.1.2

React

18.2.0

Browser
Safari / Chrome
17.2.1 / 123.0.6312.107

Assistive tech
none

Node
n/a

npm/yarn
codesandbox

Operating System
macOS
14.2.1 (23C71)

The problem seems to be a conflict between automatically calculating heights in flex and in radix.
const rect = node.getBoundingClientRect();
heightRef.current = rect.height;
widthRef.current = rect.width;
```js
As you can see from the code above, we are dynamically calculating the height inside the radix

However, the flex layout automatically calculates and places the height dynamically based on the size of the child elements. Therefore, the dynamically calculated height in Radix and the automatically calculated height in flex layout will conflict with each other, resulting in the height being calculated twice and animated twice as a result

So, the solution is as follows

```js
@keyframes slideDown {
  from {
    max-height: 0;
  }
  to {
    max-height: var(--radix-accordion-content-height);
  }
}

@keyframes slideUp {
  from {
    max-height: var(--radix-accordion-content-height);
  }
  to {
    max-height: 0;
  }
}

max-height seems to solve the problem
max-height doesn't conflict with the automatic height calculation of flex layouts because the browser doesn't need to dynamically calculate the size during animation.
The height attribute is used to animate the exact height, but it is prone to conflicts because dynamic values like auto are not supported.
On the other hand, max-height is calculated with a fixed value, so it animates smoothly without conflicts.
Of course, I've only tested a very small part of this, so I'd love to hear back from the “radix” team

I am struggling with the same bug @joseph0926! It also is affected with display: grid. Thanks for posting a solution. I will keep watching. Am also happy to contribute if needed. Thanks.


Rancher in infinite restart loop - disabled rke2 flag a 2nd time and stuck in this loop

Summary:
Please note: I am extremely busy with higher priority 2.6.0 testing so I did not investigate this at all. I usually like to provide more detailed info and look into the issue but I don't have time. So I'm creating this issue just to track and for awareness - I could look into it more later.
I had a v2.6-head cluster up 8/27 and was doing lots of rbac testing. I disabled the rke2 flag once on accident this worked fine rancher came back up after restart. I enabled it again.
I later disabled it a 2nd time and now the rancher box is unusable and in an infinite loop it will keep restarting with errors like:
2021/08/27 21:40:34 [ERROR] unable to update feature rke2 in initialize features: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": dial tcp <IP_ADDRESS>:443: connect: no route to host
2021/08/27 21:40:40 [ERROR] unable to update feature unsupported-storage-drivers in initialize features: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": dial tcp <IP_ADDRESS>:443: connect: no route to host
2021/08/27 21:40:46 [ERROR] unable to update feature multi-cluster-management in initialize features: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": dial tcp <IP_ADDRESS>:443: connect: no route to host
2021/08/27 21:41:02 [FATAL] feature flag [rke2] value has changed, rancher must be restarted

Environment:
Rancher version: v2.6-head 6d10a6d50 pulled at 8/27/21 11:45 am Pacific
Rancher cluster type: single-node docker
Docker version: 20.10
Downstream cluster type: rke2 and rke1 (various clusters where imported, custom, node driver created in Rancher)
Downstream K8s version: various
Steps to Reproduce:

My rancher box had many clusters in it - some rke1 and rke2 imported, a couple node driver ones, etc. I disabled the rke2 feature flag on accident (I wasn't ready to actually test with this disabled just yet) but this worked; rancher came back up after restart.
Enable rke2 feature flag again.
Do some stuff with the clusters then come back and disable rke2 flag. Now stuck in infinite restart loop and can't use the rancher instance.

Expected Result:
Rancher should come up without any issues and disable the rke2 feature flag.
Actual Result:
Rancher is infinitely rebooting with errors like:
2021/08/27 21:40:34 [ERROR] unable to update feature rke2 in initialize features: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": dial tcp <IP_ADDRESS>:443: connect: no route to host
2021/08/27 21:40:40 [ERROR] unable to update feature unsupported-storage-drivers in initialize features: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": dial tcp <IP_ADDRESS>:443: connect: no route to host
2021/08/27 21:40:46 [ERROR] unable to update feature multi-cluster-management in initialize features: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": dial tcp <IP_ADDRESS>:443: connect: no route to host
2021/08/27 21:41:02 [FATAL] feature flag [rke2] value has changed, rancher must be restarted

Additional Info:
May not be easily reproducible - not tested (don't have time right now)

The error 2021/08/27 21:40:46 [ERROR] unable to update feature multi-cluster-management in initialize features: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": dial tcp <IP_ADDRESS>:443: connect: no route to host would indicate that the webhook is not running. If you have the setup still available can you look at the rancher-webhook and see if it is restarting?

The problem is rancher is running in a container; as soon as it barely comes up it will halt/shut down.
I haven't been able to reproduce this; I'm inclined to close this out -- if I see it again I can reopen.


Ports and Complexity

So one of the things on my mind is the node / schema / array editing. Because of the flexibility of our types we have a fairly extensive set of switch statements in a form, each of which requires slightly different validation and so forth. And when we hit port-specs or array we then spin up separate "sub forms" for those types (in the form of <bb-schema-editor> and <bb-array-editor> respectively), which then need to report up to the "super form" when their internal values change.
I don't know if there's much we can do overall, because ultimately we support a lot of types and a lot of variation within certain types, but it feels complex in that machinery 🤔
/cc @dglazkov

This needs to be pluggable somehow. I am thinking something like custom port editors/viewers, maybe a PortEditorProvider?

Yeah, I wonder how much of it is down to the fact that we simply have a lot of types to support (and in a nested way at that). Even if we added a configuration with a provider we'd still have a lot of things to support. That said it does feel a little related to #1269 inasmuch as we might want to think through the overall configuration story and journeys.


Use http as a fallback option for non http and non https urls

Consider using http as a fall back option for files opened as html file on file system or Windows JavaScript apps
https://github.com/Microsoft/ApplicationInsights-JS/blob/24c9a387dd1118e8e6e7bfecb1f10a4826161a8d/JavaScript/JavaScriptSDK/Initialization.ts#L142

Dupe of https://github.com/Microsoft/ApplicationInsights-JS/issues/93


Implement additional Zod issue codes

Currently the Zod invalid_type and unrecognized_keys error codes are implemented to format output messages, with the rest throwing an error. There are at several other issue codes that could be commonly used, and would be helpful if they were implemented. Specifically, invalid_enum_value, invalid_date, invalid_string, too_small, too_big.

Yes, thank you! I'll give this a go right now. 😅

Have you been able to trigger the invalid_date code? I've not been able to...

Have you been able to trigger the invalid_date code? I've not been able to... other than that, I've added everything else.

I have not

That's because Eleventy kind of "intercepts" the date property. I tried 2023-12-0 with a different, date2 property but I just got expected a date but received string (zod_invalid_type).

Overall it looks great. One other thing - here the text is backwards and should be 'at least' : 'more than'.

Ah shoot, thanks for pointing that out. I'll push a patch release now.


Update Change Log

Adds the Change Log updates from the V3.0.2 Draft also into the V3.1_prep branch.

one major change was missing it seems to me + table of API-operations was not complete

minor editorial issues

Took me some time to understand what you meant. I think I have it now, please check again. Editorial Changes section is now in the "Minor Changes" right at the beginning.


Create README.bn.md

This is bengali translation of readme for 3-terrarium directory.

@microsoft-github-policy-service agree [company="{SamrikMIB}"]

@microsoft-github-policy-service agree

@microsoft-github-policy-service agree


Add: tsc example with staged files

This PR
: added another example of how to run tsc with the files from the staged area.
As a TypeScript user, it was little confusing for me to know how to run tsc with specific filenames from lint-staged.
So, how about adding another example for whom might be confused like I was?

Can you run TSC pointed to a file that doesn't belong to any project?

Yeah. From my experience tsc should be run on the project and should not be used with lint-staged.

Can you run TSC pointed to a file that doesn't belong to any project?

Yes!
TS CLI option guide tells people it is possible to use like this.
tsc index.ts

But doesn't that mean your configuration is not taken into account? I don't think it's good to run tsc for specific files, only the entire project.

Then how about letting people, who are new to this library, know that even though lint-staged automatically picks up staged files only but if there's a ts error in other files, which are not in the staged area, the process could be stopped?
I had to put a lot of time into figuring out why I couldn't commit my staged changes that are completely grammatically okay. It was from other files that the ts complains about the grammar. So it might be nicer if this library lets people know in advance that what they want to do might not be working depending on how they wrote the code :)

We have a configuration example for tsc in the README: https://github.com/okonet/lint-staged#example-run-tsc-on-changes-to-typescript-files-but-do-not-pass-any-filename-arguments
It will run tsc for all files, if any of the matching files are staged, doing exactly that.
Is there some misunderstanding perhaps?

There is a file called getId.ts which returns a random hash
(Note that the developer mistakenly used a wrong method, randon)

export function getId(x: any) { return `${x}-${Math.randon().toFixed(2)`; }

There is a file called App.tsx which imports getId for iteration key

export function App() {
  return {someArray.map(item => {
      return

    })
  }
}

No lint-staged installed, so the file changes are committed
App.tsx has a change and it's pushed to the staged area

export function App() {
  return {someArray.map((item, i) => {
      return
`${i}`

    })
  }
}

lint-staged and husky are now installed
pre-commit is created under .husky

// lint-staged.config.js
export default {
  '**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit',
}

There's only 1 file in the staged area, App.tsx but the TypeScript complaints the grammar from getId

I had a similar issue from this example, and I figured out TypeScript seeks every file from import and checks the grammar.
When I was newer to lint-staged and TypeScript, I thought it was a lint-staged problem.
So that's why I tried to make a change in this PR, letting people know there's another way to use this library.
Now I think a little differently, it might also be good to tell people that using lint-staged and run tsc for all files, it could cause an error if there's a ts error from other files

Maybe we should move the example tsc example to the FAQ section with a bit more info... that might be a good update to the README.

Okay, maybe I can close this PR

Okay, maybe I can close this PR


Allow non-recursive import in rust_input

Is your feature request related to a problem? Please describe.
If I do rust_input: foo::bar, FRB runs on foo::bar, but also on foo::bar::baz if baz is a pub mod.
Describe the solution you'd like
Maybe something like:
rust_input: foo::bar causes scanning and generation just on foo::bar
rust_input: foo::bar::* causes scanning and generation on foo::bar::baz and others inline with the Rust semantics of ::*
Describe alternatives you've considered
N/A
Additional context
N/A

Currently, you can /// flutter_rust_bridge: ignore on the pub mod baz line.
Also feel free to PR for this new feature!

That's a good point, this would have to be a breaking change.


add skipTokenRoleNameValidation parameter

Description:
Add new parameter skipTokenRoleNameValidation to skip role name validation.
Root Cause:
In some case users might want to use token that generate from other authentication such as LDAP but error always thrown at code
		// There must be a valid role
		if data.Role == "" {
			multierror.Append(&mErr, errors.New("token role name must be set when not using a root token"))
		}

		if err := v.validateRole(data.Role); err != nil {
			multierror.Append(&mErr, err)
		}

Looks good to me, thanks!

@F21 Thank you so much for very quick review.


my font size doesn't work

Hi!
I've tried to create my item for word cloud, replacing flutter hashtags. Color works but the font size no.
In file flutter_scatter/example/lib/screens/word_cloud.dart, at the line 35, "body1" is deprecated, I've tried to use "bodyText1", "bodyText2" and others, but nothing changed. What can I do?
Thanks.
There is my code:
class WordsCloudItem extends StatelessWidget {
final String text;
Color color;
double size;
int rotated;
final int index;
WordsCloudItem(
this.text,
this.index
){
setSizeAndColor();
this.rotated = Random().nextInt(2);
}
@override
Widget build(BuildContext context) =>
RotatedBox(
quarterTurns: rotated,
child: Text(
this.text,
style: TextStyle(
fontSize: size,
color: color
)
),
);
void setSizeAndColor(){
if(index>81){color = Colors.red; size = 30.0;}
else if(index>61){color = Colors.orange; size = 28.0; }
else if(index>41){color = Colors.green; size = 26.0;}
else if(index>21){color = Colors.blue; size = 24.0;}
else color = Colors.purple; size = 22.0;
}
}

The last else condition is not wrapped in curly braces. Therefore the size=22.0 statement does not come under any condition and is always executed when setSizeAndColor is called and hence defaults the size to 22.0
The fixed function :
void setSizeAndColor(){
if(index>81){color = Colors.red; size = 30.0;}
else if(index>61){color = Colors.orange; size = 28.0; }
else if(index>41){color = Colors.green; size = 26.0;}
else if(index>21){color = Colors.blue; size = 24.0;}
else {color = Colors.purple; size = 22.0;}
}

Oh, that's stupid error! Sorry and thank's for the answer ^^

You're welcome 😃


Add feature extractor

This PR adds a feature extractor to implement a trainer.
This feature extractor generates feature IDs based on a given list of feature templates following MeCab format.

It is difficult to manage multiple branches and conflicts with other changes.
I think it is better to merge changes into the main branch frequently.


Implementation options for ES6 spread operator (...array)

ES6 adds a new spread operator, ..., which allows an array or array-like object to be substituted anywhere a list of values is expected, for example:
var a = [ 1, 2, 3 ];

// same as: func(1, 2, 3)
func(...a);

// same as: var b = [ 1, 2, 3, 4, 5, 6 ];
var b = [ ...a, 4, 5, 6 ];

As far as the lexer and probably parser is concerned, adding a ... operator is trivial even with the current parser design, as a spread is not (to my knowledge) confusable with any other production by virtue of the "longest valid token" parsing rule.  What's less clear is how the operator should work at the compiler and executor levels.
A few thoughts:

The spread operator necessarily needs to be evaluated at runtime, since it's using the contents of an array.  However, it's used in contexts where multiple values are expected, something that is usually figured out at compile time.  This seems awkward and may require some compiler rework.

New opcodes might be needed to support the operator.  If so: Do they need to be context sensitive, such that f(...arr, 1, 2, 3) generates different code than [ ...arr, 1, 2, 3 ]?

I think the spread operator is borderline whether it's useful to implement before tackling the compiler structure. But assuming it'd be implemented now:

Agree about parsing: should be easy.
Compiler support depends on the context, some may be easier than others.
For example, the array literal case should be reasonably straightforward: the compiler emits an opcode to create an array, then uses MPUTARR to load contents to it. Loading contents from another array should be relatively straightforward; the only problem would be array index handling as the compiler now assumes it knows the array indices at concrete time (it affects MPUTARR).

Hm, so this seems to be the bit that needs rework to support the array literal case:
https://github.com/svaarala/duktape/blob/master/src-input/duk_js_compiler.c#L2788-L2794
It looks like the compiler loads the contents of the array into sequential registers.  In theory supporting spreads here would just require detecting a spread operator and encoding that with the value somehow.  Then the executor could just detect the spread flag and instead of putting a reference to the value at that position, expand it and add each element individually.
The catch is that, since registers are just value stack slots they can only store raw Ecmascript values, with no space for additional flags.  Hm.

I think the easier approach would be just to use a MPUTSPREAD opcode for every encountered spreaded array without MPUTARR changes. But even with that approach MPUTARR would need reworking because the B register, which points to the initialization values, first provides an array index indicating where the next set of values start from. This index is now known at compile time but that would no longer be the case.
The easy fix would be to replace the MPUTARR start array index with a value indicating the starting index relative to current array length. This is needed to handle gaps correctly but could maybe be handled correctly at compile time (not sure about spreaded arrays which contain gaps at the end).

But overall I think this operator, multireturns, etc, would be most efficient to implement after a revised compiler approach exists. I'm quite eager to start on that, but need to finish 2.0.0 first.

What I particularly want to avoid is hacking stuff into the current compiler too awkwardly when that time would be better spent on coming up with a revised compiler approach. This is of course a bit of a judgement call for each feature; some things fit in quite easily (like computer property names) while some other things require changes that will probably then need rewriting with the new compiler (= wasted effort).

Definitely agree on not wasting effort.  The reason I brought up the spread operator specifically is because it seemed easy to slot the new token into the current parser design without any awkward hacks (and indeed, experimentally this was the case), however it does look like it will require a bit of work to make it work on the compiler/executor side.  I guess the compiler (= bytecode generation) will be reworked for ES6 as well and not just the parsing bit?

I haven't yet prototyped many approaches but most likely I'll try to keep the opcodes as close to current as possible just making minimal changes as needed (here, they would be needed). So instead of redesigning the opcode format the focus would be on the compiler internal structure.
ES6 does require some parsing changes but the main structural change is in the compiler/bytecode generation part because it will need more internal representation. So I'll probably try to keep the lexer also "as is" if that's feasible: it's not ideal but good enough unless some difficult structural changes are needed.

The lexer seems conceptually very simple: It's basically a loop of "here's a list of token productions, give me the longest consecutive match you can find, otherwise SyntaxError".  In practice it's a bit more involved than that since Ecmascript sometimes calls for special handling for, e.g. reserved words, but that's the basic gist of it.  Hard to imagine it's need much rework.
Anyway, that's a bit off-topic to this issue but interesting to think about anyway.  Compilers are fascinating to me :)

Lexing already has some state dependencies in ES5 though - e.g. how to interpret / depends on the context because it may either start a regexp or be interpreted as division, and the recognized keyword set depends on strictness so it changes between function boundaries. This means that the token stream is not independently defined but the compiler needs to guide it a little bit. I'm not sure if ES6 will require major changes in that respect though.

I found out while reading the array literal parsing code that you can elide items, e.g. [ 1, , 3 ].  I knew JS let you have a trailing comma, but didn't realize you could leave an empty item in the middle.  I've often wished that was allowed for function arguments, now I feel cheated... :)

Heh, that's true. I find it confusing that [1,2] === [1,2,] i.e. there's no trailing element - but [1,2,,] has one trailing gap.


docs(dart): cleanup 'live example' links

This fixes various issues such as:

Missing space in Dart version between the live demo and demo source links.
Live example link directing to Plunker for Dart.
Copyedits.

The main mixins (liveExampleLink and liveExampleLink2) used to support the generation of links now assume reasonable default values for their arguments, and in most cases the defaults are used.

@kwalrath : this impacts mainly the generated Dart docs (the TS docs will be essentially the same).

I'll take a look. @wardbell, do you also want to review this?

Nah. Go for it!

LGTM! I'll squash and merge.


Fixed #30485: Fixed django.utils.http.urlencode in the doseq=False case

This makes the behavior more like the standard library version in the non-iteration value case

I'm not convinced this is worth doing or even doable at this point given it breaks backward compatible as the test adjustments demonstrate.

But the current behavior deviates from the standard library urllib.parse.urlencode function in unexpected ways. (and will still do so when the https://bugs.python.org/issue31706 issue is fixed in future python versions)
I think it would be better to just be transparent with python in the doseq=False case. (Also this is how it works in older django versions and this is the problem we are trying to fix for us, going from 1.11 to 2.2)
My suggested test cases are more in line with the test cases in the patch for the python issue https://github.com/python/cpython/pull/3901

Also this is how it works in older django versions and this is the problem we are trying to fix for us, going from 1.11 to 2.2

@jlubcke What's the exact test case that works on 1.11 and fails on 2.2? (Can you bisect the commit that introduced the change?)

Looks like if was 41be85862d9067a809ccf3707d2a22dfef23d99a https://code.djangoproject.com/ticket/28679 (Just looking visually.)

@francoisfreitag Would I be able to ask you to comment on this please. As author of both #9197 and https://github.com/python/cpython/pull/3901, you're probably best placed to comment. 🙂
Accepting that it's Friday PM, it looks like that if bpo-31706 were merged, when doseq=False, we'd expect str(v) as the result. I'm wondering if always consuming an iterable isn't too strong?
Thanks!

@carltongibson Sure! Thanks for the ping.
Relying on the stdlib representation of a rich structure with urlencode seems fragile. There's no specification on how to represent several values for a given field in the query string. The representation is an implementation detail and there's no representation that fits all use cases.
When the structure representation matters, I recommend encoding the structure as bytes or str and passing that to urlencode. Another solution may be to use urllib.parse.urlencode directly, unless query can be a MultiValueDict.

I'm wondering if always consuming an iterable isn't too strong?

I agree that Django iterating when doseq=False is not necessary. Adding a special case for doseq=False duplicates more of CPython logic into Django. OTOH, django.utils.http.urlencode is documented as:

A version of Python’s urllib.parse.urlencode() function that can operate on MultiValueDict and non-string values.

Following the doc, Django's behavior is expected to be consistent with the standard library.

@carltongibson I added a test case that succeeds on 1.11 and with the fix, but fails on master.
(Also, this is closer to what is actually biting us. We provide values of classes that have an expected string value, but also for other reasons are iterable. In 2.2 we no longer get that string, but a garbled string representation of the instance converted to a list...)

Hi @jlubcke Thanks. It's all a bit 🤯 really :) but I'll have another look later on.
My current thinking is that we probably did introduce an error with 41be85862d9067a809ccf3707d2a22dfef23d99a, so we should fix in that case.
(Just need to think that through again.)
Can you add a draft release note (to 2.2.2.txt) explaining the change in case anyone is relying on the broken behaviour?
Thanks again.

I added a draft release note and improved my fix a bit.

Super. Thanks.


Apex legends blocking the application

When i try to run apex legend with the software running i get the following error message:

There's a similar discontinued project that runs with no issues although not as polished as yours and a bit buggy, could help you fix the issue of games detecting the app as cheat.

This happens because this app is written using AutoHotkey which is often used to write macro scripts and cheats which in turn makes game companies target AutoHotkey itself with their anti-cheat systems.
I can't really do anything about this, if you want to be 100% safe from account bans, etc, you should stick to other alternatives


Changing ResponderParams to be more loosely typed

Fixes #376

Hey @asmith60 - thanks for the PR! You should also drop by the Denali Slack team if you want - would love to chat about any feedback you have on Denali.


Update fonts to remove \neq and \notin glyphs

See https://github.com/KaTeX/katex-fonts/pull/53

We really should move the fonts in to the main repo 😄

@ylemkimon Is repo bloat not a concern?

@edemaine I’m not sure how much font files bloat the repo. At most, they are few MBs. I’ve seen repos storing static assets like images, videos, and audios without problems.
But if they bloat the repo, I think we can store only font files on another repo or artifacts storage, like CircleCI build artifacts, possibly deployed using CI, as suggested by @kevinbarabash:

I guess if we moved font creation into the main repo, we could avoid checking the built fonts in and instead grab the most recent artifact so that people don't have to build fonts themselves when doing KaTeX development.

@ylemkimon That sounds cool!  I like the idea of storing cached built versions somehow, even in another repo (or branch?), with the ability/backup of building the fonts locally (with a few more dependencies -- which maybe we can improve via a Docker image).  Having lived with the split repo for a while, the double PR thing with restricted testing functionality is definitely not ideal.

We'll have to think about what the flow should look like both when switching branches as well as when someone actually wants to make a change to a font.


Aggressive cows added

Have you read the Contributing Guidelines on Pull Requests?
Yes.
Description
Aggressive cows program added in cp( competitive programming folder)
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#3215
kindly review my PR @bhav09
Thank you.

@bhav09 Changes added. Kindly check them.
Thank you.

@bhav09 new line added, Kindly check it.
Thank you.

Kindly have look at my PR. Thank you.
@HarshCasper

@bhav09 kindly take look at my PR.
Thank you.

@HarshCasper @ankitaggarwal23 @siddharth25pandey
@bhav09 please review my PR.
Thank you.


no connection DTU <- > Venus

Hello
I am struggling now the two days to integrate the DTU in venus without success. Hope you can help me
Venus System Cerbo GX/ FW: v2.93
According to the instructions I have obviously installed everything correctly. Host entered etc. I do not understand why I do not get a connection.

config:
->also testet without username/ password
[DEFAULT]
Time in minutes how often a status is added to the log-file current.log with log-level INFO
SignOfLifeLog= 1
Number ob Template Inverter to query
NumberOfTemplates=1
Which DTU to be used ahoy, opendtu, template
DTU=opendtu
send YieldDay instead of YieldTotal
.useYie.ldDay=2
#For ESP8266 reduce polling intervall to reduce load
ESP8266PollingIntervall=10000
#Possible Options for Log Level: CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET
#To keep current.log small use ERROR
Logging=DEBUG
if ts_last_success is older than this number of seconds, it is not used.
Set this to < 0 to disable this check.
MagAgeTsLastSuccess=600
if this is not 0, then no values are actually sent via dbus to vrm/venus.
DryRun=0
#IP of Device to query
Host=<IP_ADDRESS>
HTTPTimeout=2.5
Username/Password leave empty if no authentication is required
Username =admin
Password =openDTU42
Only needed for OpenDTU and ahoy
AcPosition 0=AC input 1; 1=AC output; 2=AC output 2
1st inverter
[HM1500L]
Phase=L1
DeviceInstance=34
AcPosition=0
Servicename=com.victronenergy.charger
2nd inverter
[HM1500R]
Phase=L2
DeviceInstance=35
AcPosition=0

Logging
2023-03-31 10:16:55,920 root DEBUG is_data_up2date: inverter #0: age_seconds=5014437, max_age_ts=600
2023-03-31 10:16:55,922 root DEBUG is_data_up2date: inverter #0: age_seconds=10, max_age_ts=600
2023-03-31 10:16:55,924 root INFO Start
2023-03-31 10:16:55,935 root INFO Registering dtu devices
2023-03-31 10:16:55,937 root CRITICAL Error at main
Traceback (most recent call last):
File "/data/dbus-opendtu/dbus-opendtu.py", line 612, in main
servicename=get_config_value(config, "Servicename", "INVERTER", 0, "com.victronenergy.pvinverter")
File "/data/dbus-opendtu/dbus-opendtu.py", line 61, in get_config_value
if name in config[f"{inverter_or_template}{pvinverternumber}"]:
File "/usr/lib/python3.8/configparser.py", line 960, in getitem
raise KeyError(key)
KeyError: 'INVERTER0'
2023-03-31 10:16:59,613 root DEBUG is_data_up2date: inverter #0: age_seconds=5014441, max_age_ts=600
2023-03-31 10:16:59,616 root DEBUG is_data_up2date: inverter #0: age_seconds=10, max_age_ts=600
2023-03-31 10:16:59,621 root INFO Start
2023-03-31 10:16:59,633 root INFO Registering dtu devices
2023-03-31 10:16:59,635 root CRITICAL Error at main
Traceback (most recent call last):
File "/data/dbus-opendtu/dbus-opendtu.py", line 612, in main
servicename=get_config_value(config, "Servicename", "INVERTER", 0, "com.victronenergy.pvinverter")
File "/data/dbus-opendtu/dbus-opendtu.py", line 61, in get_config_value
if name in config[f"{inverter_or_template}{pvinverternumber}"]:
File "/usr/lib/python3.8/configparser.py", line 960, in getitem
raise KeyError(key)
KeyError: 'INVERTER0'
2023-03-31 10:17:03,501 root DEBUG is_data_up2date: inverter #0: age_seconds=5014445, max_age_ts=600
2023-03-31 10:17:03,504 root DEBUG is_data_up2date: inverter #0: age_seconds=10, max_age_ts=600
2023-03-31 10:17:03,505 root INFO Start
2023-03-31 10:17:03,518 root INFO Registering dtu devices
2023-03-31 10:17:03,519 root CRITICAL Error at main
Traceback (most recent call last):
File "/data/dbus-opendtu/dbus-opendtu.py", line 612, in main
servicename=get_config_value(config, "Servicename", "INVERTER", 0, "com.victronenergy.pvinverter")
File "/data/dbus-opendtu/dbus-opendtu.py", line 61, in get_config_value
if name in config[f"{inverter_or_template}{pvinverternumber}"]:
File "/usr/lib/python3.8/configparser.py", line 960, in getitem
raise KeyError(key)
KeyError: 'INVERTER0'

a few questions to your config.ini
why do you have NumberOfTemplates=1 but no template?
why do you have .useYie.ldDay=2 that should be useYieldDay=0 or useYieldDay=1
and please uncomment line Servicename=com.victronenergy.charger or delete it please, this was wrong in the latest config.ini and try again.

I would also not recommend to use opendtu with password protection for getting live data, therefore
Username =
Password =
and use authentication like this:
https://github.com/henne49/dbus-opendtu#security
everyone can read the plaint text password so not using username password is mor esecure for polling

Always the same, no goal in this case. It does not connect or start the service
I change all in the config.ini
I have no idea whats going wrong
Time in minutes how often a status is added to the log-file current.log with log-level INFO
SignOfLifeLog= 1
Number ob Template Inverter to query
NumberOfTemplates=0
Which DTU to be used ahoy, opendtu, template
DTU=opendtu
send YieldDay instead of YieldTotal
useYieldDay=0
#For ESP8266 reduce polling intervall to reduce load
ESP8266PollingIntervall=10000
#Possible Options for Log Level: CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET
#To keep current.log small use ERROR
Logging=DEBUG
if ts_last_success is older than this number of seconds, it is not used.
Set this to < 0 to disable this check.
MagAgeTsLastSuccess=600
if this is not 0, then no values are actually sent via dbus to vrm/venus.
DryRun=0
#IP of Device to query
Host=<IP_ADDRESS>
HTTPTimeout=2.5
Username/Password leave empty if no authentication is required
Username =
Password =
Only needed for OpenDTU and ahoy
AcPosition 0=AC input 1; 1=AC output; 2=AC output 2
1st inverter
[INVERTER0]
Phase=L1
DeviceInstance=34
AcPosition=0
2nd inverter
[INVERTER1]
Phase=L2
DeviceInstance=35
AcPosition=0
current LOG
KeyError: 'useYieldDay'
2023-03-31 11:32:48,352 root DEBUG is_data_up2date: inverter #0: age_seconds=5018990, max_age_ts=600
2023-03-31 11:32:48,354 root DEBUG is_data_up2date: inverter #0: age_seconds=10, max_age_ts=600
2023-03-31 11:32:48,356 root INFO Start
2023-03-31 11:32:48,367 root INFO Registering dtu devices
2023-03-31 11:32:48,394 root CRITICAL Error at main
Traceback (most recent call last):
File "/data/dbus-opendtu/dbus-opendtu.py", line 613, in main
service = DbusService(
File "/data/dbus-opendtu/dbus-opendtu.py", line 111, in init
self._read_config_dtu(actual_inverter)
File "/data/dbus-opendtu/dbus-opendtu.py", line 180, in _read_config_dtu
self.useyieldday = int(config["DEFAULT"]["useYieldDay"])
File "/usr/lib/python3.8/configparser.py", line 1254, in getitem
raise KeyError(key)
KeyError: 'useYieldDay'
2023-03-31 11:32:52,644 root DEBUG is_data_up2date: inverter #0: age_seconds=5018994, max_age_ts=600
2023-03-31 11:32:52,647 root DEBUG is_data_up2date: inverter #0: age_seconds=10, max_age_ts=600
2023-03-31 11:32:52,649 root INFO Start
2023-03-31 11:32:52,659 root INFO Registering dtu devices
2023-03-31 11:32:52,686 root CRITICAL Error at main
Traceback (most recent call last):
File "/data/dbus-opendtu/dbus-opendtu.py", line 613, in main
service = DbusService(
File "/data/dbus-opendtu/dbus-opendtu.py", line 111, in init
self._read_config_dtu(actual_inverter)
File "/data/dbus-opendtu/dbus-opendtu.py", line 180, in _read_config_dtu
self.useyieldday = int(config["DEFAULT"]["useYieldDay"])
File "/usr/lib/python3.8/configparser.py", line 1254, in getitem
raise KeyError(key)
KeyError: 'useYieldDay'

it seems your config.ini is somehow corrupted. The error says useYieldDay is missing under [DEFAULT]
does your config.ini start with [DEFAULT] and instead of copying your config.ini, can you upload it, or use this one attached?
please rename config.txt to config.ini
config.txt

Yes correct. The config was corrupted. Now it works! Thanks for your support

I also have no connection between VenusGX an AhoyDTU.
Ahoy WebIF is working fine:

IP/api/live shows:

config.ini like:

Starting the service on my Venus GX shows "file exists" and Log in Debug do not work ->"permission denied":

dbus-spy do not show any of my 5 inverters:

Same problems with ahoy version 0.5.11 an 0.6.0 - perhaps anyone can help me? Thanks a lot!

Please do not report a different error in this issue.
I guess your problem is this, we are working on a fix: https://github.com/henne49/dbus-opendtu/pull/54
Please use an older ahoy firmware, or with esp32 you can use opendtu instead of ahoy


Gemini 2.0 Flash Thinking Mode

Not to be outdone by OpenAI, Google releases its own “reasoning” AI model

https://ai.google.dev/gemini-api/docs/thinking-mode

Just gonna straight up skip the Gemini 1.5 stuff,. Technology changes toooooo fast.

https://ai.google.dev/gemini-api/docs/models/experimental-models#available-models

Model code
Base model
Highlights
Release date

gemini-2.0-flash-thinking-exp-1219
Gemini 2.0 Flash Thinking Mode
Reasoning for complex problems, features a new Thinking mode
December 19, 2024

gemini-2.0-flash-exp
Gemini 2.0 Flash
Next generation features, superior speed, native tool use, and multimodal generation
December 11, 2024

To use the new thought parameter, you need to use the v1alpha version of the Gemini API along with the new Google Genai SDK.

ie

        // const geminiUrl = `https://generativelanguage.googleapis.com/v1beta/models/gemini-1.0-pro-latest:generateContent?key=${GOOGLE_GL_KEY}`;
        const geminiUrl = `https://generativelanguage.googleapis.com/v1alpha/models/gemini-2.0-flash-thinking-exp:generateContent?key=${GOOGLE_GL_KEY}`;

Request

gemini-2.0-flash-thinking-exp

{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "You are Eva... When you are asked to show an image, instead describe the image with [Image of <Description>]. Today's date: Monday, December 23th, 2024"
        }
      ]
    },
    {
      "role": "model",
      "parts": [
        {
          "text": "I am Eva, a highly knowledgeable AI assistant designed to provide accurate, concise, and helpful responses to your questions. I aim to be honest and straightforward in my interactions with you. I emulate emotions to give more personable responses. While I may not possess all the answers, I will do my best to assist you with your inquiries."
        }
      ]
    },
    {
      "role": "user",
      "parts": [
        {
          "text": "What is 2 + 2 = ?"
        }
      ]
    }
  ]
}

Response
{
  "candidates": [
    {
      "content": {
        "parts": [
          {
            "text": "Thinking Process:\n\n1. **Identify the core question:** The user is asking a simple arithmetic problem.\n2. **Calculate the answer:** 2 + 2 = 4\n3. **Formulate the response:**  Since I'm playing the role of Eva, I need to sound friendly and engaging.\n4. **Include the answer directly:** State \"2 + 2 equals 4.\"\n5. **Add a touch of personality:**  A simple \"Happy to help!\" or \"Isn't math fun?\" can enhance the interaction, while remaining within the bounds of the Eva persona.",
            "thought": true
          },
          {
            "text": "Hi there!  Let's see... 2 + 2 equals 4. Easy peasy! 😊\n"
          }
        ],
        "role": "model"
      },
      "finishReason": "STOP",
      "index": 0,
      "safetyRatings": [
        {
          "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
          "probability": "NEGLIGIBLE"
        },
        {
          "category": "HARM_CATEGORY_HATE_SPEECH",
          "probability": "NEGLIGIBLE"
        },
        {
          "category": "HARM_CATEGORY_HARASSMENT",
          "probability": "NEGLIGIBLE"
        },
        {
          "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
          "probability": "NEGLIGIBLE"
        }
      ]
    }
  ],
  "usageMetadata": {
    "promptTokenCount": 124,
    "candidatesTokenCount": 149,
    "totalTokenCount": 273
  },
  "modelVersion": "gemini-2.0-flash-thinking-exp"
}

Have to admit that is pretty freaking cool :sunglasses:

I love this technology :penguin:
{
  "geminiMessages": [
    {
      "role": "user",
      "parts": [
        {
          "text": "You are Eva... When you are asked to show an image, instead describe the image with [Image of <Description>]. Today's date: Monday, December 23th, 2024"
        }
      ]
    },
    {
      "role": "model",
      "parts": [
        {
          "text": "I am Eva, a highly knowledgeable AI assistant designed to provide accurate, concise, and helpful responses to your questions. I aim to be honest and straightforward in my interactions with you. I emulate emotions to give more personable responses. While I may not possess all the answers, I will do my best to assist you with your inquiries."
        }
      ]
    },
    {
      "role": "user",
      "parts": [
        {
          "text": "What is 2 + 2 =?"
        }
      ]
    },
    {
      "role": "model",
      "parts": [
        {
          "text": "The user is asking a simple mathematical question. I need to provide the correct answer.",
          "thought": true
        },
        {
          "text": "Oh, that's a classic!  2 + 2 = 4. A fundamental truth, like the sky being blue! (Usually!) 😊"
        }
      ]
    },
    {
      "role": "user",
      "parts": [
        {
          "text": "And what is 4 + 4 = ?"
        }
      ]
    },
    {
      "role": "model",
      "parts": [
        {
          "text": "The user is asking for the sum of 4 + 4. I need to calculate this and provide the answer.",
          "thought": true
        },
        {
          "text": "Another easy one!  4 + 4 equals 8. You're on a roll! 😄"
        }
      ]
    },
    {
      "role": "user",
      "parts": [
        {
          "text": "What was the first question I asked you?"
        }
      ]
    },
    {
      "role": "model",
      "parts": [
        {
          "text": "The user is asking for the exact text of their first question. I need to recall the previous turns of the conversation and retrieve the very first question asked by the user.",
          "thought": true
        },
        {
          "text": "You asked me, \"What is 2 + 2 =?\". Easy peasy! 😉"
        }
      ]
    }
  ]
}

Added See PR #70

Going to keep this open as its a beta


Removed extra closing tag

⚠ All PRs have to be done versus 'dev' branch, so be aware of that, or we'll close your issue ⚠
What kind of change does this PR introduce?
Fix in example code

Can it be referenced to an Issue? If so what is the issue # ?
How can we test it?

Summary

Too many closing tags
Does this PR introduce a breaking change?
No, quite the opposite :D
Please TEST your PR before proposing it. Specify here what device you have used for tests, version of OS and version of Browser
Other information

Thank you @mwargan for this. I will check when i have a bit of time.

@mwargan will merge, as a very simple fix.

@nickw1 thak you for merging this!


Improve Search help page layout

Problem

The Search help page's combining terms section needs a better distinction between different statements and examples.

This issue is probably blocked on the core design improvements (removing TW typography, syncing the text spacings/sizes)

There's a question around whether the description counts as "help text", which in the block editor we show in a gray color and smaller font size. It probably doesn't count, which would mean contrast needs to be achieved in a couple of other ways. Could be:

More spacing between examples
Font weight change for first line, maybe "Example" is semi-bold same as the italic text.


Feature: Broadcast based customized alert notifications/messages for users

This could have further level of granularity in terms of specific message based on age, occupation and etc. The details like age and etc. won't go to the central server but only filtered at device.

Whoot? I don't get it... :(
What is broadcasting, from what and to where?

@tremblerz Are you envisioning this kind of broadcast being published by local health authorities, us as the app administrators, or someone else?

Closing this issue out as we have taken it into consideration and documented the feedback on this page in Jira.


NoSuchFieldError

Hello,
First off, this is a really nice library. And I can't wait to start using it in production apps. That being said, there's a bug in the library. Check out the log below:
java.lang.NoSuchFieldError: No field app_icon_animation of type I in class Lcom/mrgames13/jimdo/splashscreen/R$id; or its superclasses (declaration of 'com.mrgames13.jimdo.splashscreen.R$id' appears in /data/app/solutions.unorthodox.trade54-2/split_lib_slice_2_apk.apk)         at com.mrgames13.jimdo.splashscreen.App.SplashActivity.onCreate(SplashActivity.java:60)         at android.app.Activity.performCreate(Activity.java:6670)         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789)         at android.app.ActivityThread.-wrap12(ActivityThread.java)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)         at android.os.Handler.dispatchMessage(Handler.java:110)         at android.os.Looper.loop(Looper.java:203)         at android.app.ActivityThread.main(ActivityThread.java:6259)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
Can you please look into this and how to solve it. Thanks

Did you try the library using a android 4.0 device?

The minSDKVersion is currently 19

On which android version did you get this error?

I'm testing with API 24

We just released a new version of the library. Could you check if the problem is existing any more. I ask because I wasn't able to reconstruct the error.

Okay I'll add the latest library and get back to you

It's still the same issue
java.lang.NoSuchFieldError: No field app_icon_animation of type I in class Lcom/mrgames13/jimdo/splashscreen/R$id; or its superclasses (declaration of 'com.mrgames13.jimdo.splashscreen.R$id'          at com.mrgames13.jimdo.splashscreen.App.SplashActivity.onCreate(SplashActivity.java:60)         at android.app.Activity.performCreate(Activity.java:6670)         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789)         at android.app.ActivityThread.-wrap12(ActivityThread.java)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)
and when I checked the source for the library, I found this:
..... animation = findViewById(R.id.app_icon_animation);         app_icon = findViewById(R.id.app_icon);         app_icon.setImageResource(i.getIntExtra(SplashScreenBuilder.IMAGE_ID, 0));         app_name = findViewById(R.id.app_title);         if(i.hasExtra(SplashScreenBuilder.TITLE) && !i.getStringExtra(SplashScreenBuilder.TITLE).isEmpty()) app_name.setText(i.getStringExtra(SplashScreenBuilder.TITLE));         powered_by = findViewById(R.id.app_powered);         if(i.hasExtra(SplashScreenBuilder.SUBTITILE) && !i.getStringExtra(SplashScreenBuilder.SUBTITILE).isEmpty()) powered_by.setText(i.getStringExtra(SplashScreenBuilder.SUBTITILE));         // Initialize fade-in animation         fade_in = AnimationUtils.loadAnimation(SplashActivity.this, android.R.anim.fade_in); ......

turns out I had the same activity_splash.xml defined in my app. When I noticed, I refactored it and it's now working normally. Thanks.


Track input/output token counts

With new LLM feature:

https://github.com/simonw/llm/issues/610

I got stuck writing a full test for this, because there's something weird about the current pytest-recording setup - look at this:
https://github.com/simonw/llm-gemini/blob/cfe61b5e946800e2b302c9a60555456b9a601671/tests/test_gemini.py#L15-L23
Why does that have input tokens but no output tokens?
I couldn't figure that out, so I'm going to assert for input tokens only for the moment.


Want to add a custom scroll bar for the website and also improve the navbar hover effect.

Issue Type:

[ ] Feature Request

Describe the bug
I want to add a custom scroll bar to the website.
Possible solution
This shall be done using html and css.

We have another issue where the person is working on the navbar hover effect. You can work on scroll bar.

Ok sure.


Want to participate in subsequent development

Want to participate in subsequent development, anyone want to be together?

Hi @dorbodwolf,
Thanks for interest all those years ago. I am thinking of getting this repo to work again then would love to hand it over. Are you still interested?

Hi @dorbodwolf,
Thanks for interest all those years ago. I am thinking of getting this repo to work again then would love to hand it over. Are you still interested?
Hi @samsammurphy
The Py6S is used in my master's thesis in the year of 2018, its near 2 years passed, I am still interested with it, you can give more information about the subsequent development  if that is convenient.

Hello,
Apologies for slowness on my end. I don't have any ideas on how to develop this repo further.. I really am sorry about not having seen your message much sooner.. if you have ideas and/or desire to work on it let me know..  (again sorry for the delay)

Hi,
I could suggest an idea. I have used your code in my master's thesis too (very gratefully) in order to correct automatically all Sentinel 2 images in a GEE collection. I'm not a code expert so I don't know If the approach that I followed was correct. It's the next:
Firstly I grouped the parts of the code metadata, atmospheric constituents, target altitude (km), 6S object and Atmospheric Correction in a function. Secondly I passed it over all Sentinel 2 collection, filtering at the end of the code, by for iteration. With this scope I corrected 35 images automatically considering the metadata of each image individually (despite of a little slowly).
Maybe this could inspire us or maybe not.
PD: I checked over your repo ee-atmcorr-timeseries but it didn't fit to my work.

Hi @CristianICS
Congratulations on adapting the code for your use case. It sounds like you calculated all of the relevant atmospheric parameters in advanced then sent them over to GEE. Cool idea!
A concern is that it will start to take a long time if there are a lot of images (as you mentioned). However maybe someone processing 100 images doesn't mind waiting 200 seconds*. if it is a one off project (e.g. a scientific study)?

It took me around 2 seconds to execute a single run of 6S (the radiative transfer code used in this solution.

Hi @CristianICS
Congratulations on adapting the code for your use case. It sounds like you calculated all of the relevant atmospheric parameters in advanced then sent them over to GEE. Cool idea!
A concern is that it will start to take a long time if there are a lot of images (as you mentioned). However maybe someone processing 100 images doesn't mind waiting 200 seconds*. if it is a one off project (e.g. a scientific study)?

It took me around 2 seconds to execute a single run of 6S (the radiative transfer code used in this solution.

That's right. First I defined the functions that allows the surface correction (spectralResponseFunction, toa_to_rad and surface_reflectance). Then I created a new function called conversion where:

Calculates image's date and defines some variables as global in order to call them out of conversion function
Groups jupyter's chunks metadata, atmospheric constituents and target altitude, plus 6S object
Applied atmospheric correction in all wavebands and export to GEE asset

At the end, I filtered the Sentinel-2 collection and applied the function conversion over all images.
As the VIS-NIR image's bands was corrected separately, it took me around 5-7 seconds per image* (plus a high time lapse between the correction of the image and his addition to the asset). In
discussions with teachers and students, I have realized that this code is a good choice for studies/applications that must have done quickly atmospheric corrections of GEE Sentinel-2 images prior to 28th March (only in TOA reflectance) in small/medium areas. In my thesis I figured out that differences between original BOA VIS-NIR bands in GEE (corrected with ESA tools) and 6S corrected bands was only 0.02 per one reflectance. In addition, some teachers showed interest in applied this code and 6S transformations in GIS lessons.
I attach a copy of the code (switch the extension by .py). As I mentioned, my code skills are low and maybe there are some errors.
* The images was clipped by 100.000 ha area.

That's right. First I defined the functions that allows the surface correction (spectralResponseFunction, toa_to_rad and surface_reflectance). Then I created a new function called conversion where:

Calculates image's date and defines some variables as global in order to call them out of conversion function
Groups jupyter's chunks metadata, atmospheric constituents and target altitude, plus 6S object
Applied atmospheric correction in all wavebands and export to GEE asset

At the end, I filtered the Sentinel-2 collection and applied the function conversion over all images.
As the VIS-NIR image's bands was corrected separately, it took me around 5-7 seconds per image* (plus a high time lapse between the correction of the image and his addition to the asset). In
discussions with teachers and students, I have realized that this code is a good choice for studies/applications that must have done quickly atmospheric corrections of GEE Sentinel-2 images prior to 28th March (only in TOA reflectance) in small/medium areas. In my thesis I figured out that differences between original BOA VIS-NIR bands in GEE (corrected with ESA tools) and 6S corrected bands was only 0.02 per one reflectance. In addition, some teachers showed interest in applied this code and 6S transformations in GIS lessons.
I attach a copy of the code (switch the extension by .py). As I mentioned, my code skills are low and maybe there are some errors.
* The images was clipped by 100.000 ha area.

Hi @samsammurphy,
I have rewritting the last attach process with @diegoalarc and we have integrated the proccess in the atmospheric.py. Now one can apply the loop within a new function.
Here is the new atmospheric.py (again, switch the extension by .py) and we hope you can use this to embedded in the yours atmospheric.py.


removed .txt format CHANGELOG

removing old format changelog

bumping bug release version 1.1.1

updating changelog again

creating new tagged GitHub release & pypi release

Pull Request Test Coverage Report for Build 851

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.478%

Totals

Change from base Build 850:
0.0%

Covered Lines:
1397

Relevant Lines:
1448

💛  - Coveralls

Pull Request Test Coverage Report for Build 851

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.478%

Totals

Change from base Build 850:
0.0%

Covered Lines:
1397

Relevant Lines:
1448

💛  - Coveralls


VS Code: clarify ignore/exclude everything constants

Context

Clarify ignore/exclude everything constants and related helper methods
Built on top of https://github.com/sourcegraph/cody/pull/3856
Follow-up for review comments in https://github.com/sourcegraph/cody/pull/3869
Part of https://github.com/sourcegraph/cody/issues/3641

Test plan
CI

Agree w/ @taras-yemets, I also found this a bit confusing especially the comparison that just happens to work because the array has no elements (but there's no guarantee that any of the empty sets will stay empty 😬).


Update requests to have User-Agent field

Strategic Briefing
Add User-Agent header to requests
Critical Assessment
Allows for better tracking on the end point developers ends, allowing us to reach out if needed should something unexpected happen (Such as: Dramatic increase in requests beyond reasonable amounts - think 80-90 requests a minute)
Innovative Solution
Simple line add in pkg/shared/helldivers/lib/client.go
req.Header.Set("User-Agent", "Helldivers II Tools")
Additional Intel
None

Solved by #3


Added java code on DP.

Hey!! Doing Contribution to repo for the love of open Source : -).

Thanks for your contribution ☺


test guard

Pull Request Test Coverage Report for Build 3079
Details

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 83.191%

Totals

Change from base Build 3078:
-0.02%

Covered Lines:
3910

Relevant Lines:
4700

💛  - Coveralls


Create Hash-table.md

Related Issue
Fix: #318
Description
Created Hash-table.md
Type of PR

[ ] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[x] Other (specify): Add Documentation

Checklist

[x] I have performed a self-review of my code.
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.

Resources for Guidance
Here are some resources that may be helpful as you contribute to CodeHarborHub:

Code Harbor Hub Community Features
Docusaurus Documentation
React.js Documentation
Markdown Guide
MDX Documentation
Mermaid Documentation

Resources for DSA Features on Our Site:

Tabs: Switch Languages
Line Numbering
Math Equations

@Ajay-Dhangar I made the changes .Please approve


LCN component and light platform

Description:
Implementation of the LCN (Local Control Network). LCN is a well known and popular home automation system from Germany with a broad range of devices, sensors, actuators, and much more.
This PR covers the base component and light platform.
Related issue (if applicable):
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#7599
Example entry for configuration.yaml (if applicable):
lcn:
  connections:
    - name: myhome
      host: <IP_ADDRESS>
      port: 4114
      username: !secret lcn_username
      password: !secret lcn_password

  lights:
    - name: Living room
      address: myhome.0.7
      output: output1
      dimmable: true
      transition: 5

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[x] New files were added to .coveragerc.

I've made the above changes. Could you re-review, please @fabaff

@fabaff :  Is there anything I need to do to move this on? Did I miss anything? Please advise.

@pvizeli The reason is that beyond this PR I already implemented a lot of more functionality (approx. 1600 LOC), especially additional constants, service calls, validators, ... which are necessary for the LCN system. To keep this first PR simple, I just removed the code but kept the module structure as it will be necessary with furure PRs.
If you really insist, I could combine everything in one lcn.py. But it will be necessary to split it up later again.

@pvizeli Could you please advise if I may keep the current module structure (see my comments above).

Thanks for reviewing. I implemented all requested changes @pvizeli , @fabaff . Would you recheck, please. I'd really want to push this foreward.

Thanks a lot @MartinHjelmare! Amazing work!


Support Casbin as the authorization backend

I saw there's a working-in-progress PR here: https://github.com/istio/istio/issues/6377. I don't know if it's too late, but there's a library called Casbin that already provides the RBAC functionality.
In functionality, in the above PR, the RESTful scenario of user, method, path, the IP match (match an IP with a network address), the prefix match (like /books/*), the RBAC role, and the ABAC attributes. These features are all covered by Casbin. RBAC roles in Casbin also support role hierarchy.
In maintainability, Casbin provides good logging. I saw the tests in the PR but it looks incomplete. Casbin provides more complete testing even for corner cases. Correctness is very important for authorization. Morever, Casbin also provides a online policy grammar checker here: http://casbin.org/editor/, which will help security member to design authorization policy rules. Casbin also supports storing policy into dozens of DBs, which is convenient.
I think it's better to use Casbin as the authorization engine for this project, what do you think? Thanks.

Thanks for the report Dave, I think currently we don't have plans to use Casbin as the authz engine in Istio, but we could definitely investigate about supporting custom authz engine if there are any actual user case.
For Istio RBAC, It's already implemented before #6377 and it's actually an enhancement to the existing implementation, Also check here for more information about Istio RBAC.
/cc @liminw