Support for opening buffer in the active preview window in the background as a normal buffer

Sometimes we are navigating the code and while digging some definitions we find some important symbol that we need to understand more carefully(like it keeping it aside and thinking something like I'll come back to this).
It would be better if we can have support to open the buffer in active preview window to a normal buffer (without loosing the focus of floating preview)

Just to give you an example of what I mean.

Hey, this satisfies one of the flow, another flow that would be great to have is(I am not sure if vim supports it), open the buffer in background without losing/closing the current preview window(s) ?

I see, you could add mappings to do :badd % or something similar to add a buffer to the buffer list based on the currently focused floating preview's buffer but not switch to it or lose focus on your current flow.
I think this would be possible to support in goto-preview as part of the default mappings, those assume a particular flow ofc, but if you're opting into using default mappings, that's probably okay/expected.

Hey. So one way you could make this happen is adding your own mapping in the post_open_hook function to send the preview window to a tag CTRL + w T would do that for example. The downside here is you'd focus the newly created tab, but you could always navigate back. Either that or find a way to not focus a tab on creation.

Closing this as it is technically supported and really just depends on how one wants to use do it.

@shaeinst ah right, I think I was wrong before, instead of :badd %, all you need to do is set buflisted while having the preview window focused. So something like this for the post_open_hook function.
  post_open_hook = function()
    vim.api.nvim_buf_set_option(vim.api.nvim_get_current_buf(), "buflisted")
  end

thanks.
i think vim.api.nvim_buf_set_option takes three arguments

vim.api.nvim_buf_set_option(vim.api.nvim_get_current_buf(), "buflisted")

so following would work
  	post_open_hook = function()
		-- add preview window to buffer list
		local buffer_num = vim.api.nvim_get_current_buf() -- current buffer
		vim.api.nvim_buf_set_option(buffer_num, "buflisted", true)
	end;


Get Hydrated Block Returns More than Parsed

While the docs specify that hydrated blocks return "Signed Transaction" types (excluding the hash) it turns out that this method actually returns the hash:
Request:
curl -X POST $NODE_URL --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x119f996", true],"id":1}' | jq

Response: http://jsonblob.com/1173956359015489536
We notice that the hash field is missing from SignedTransaction type here.
I suspect that the docs are outdated or incorrect. As far as I can tell, this is the only missing field. Will create a PR adding it.

Actually it seems the "from" field is also missing here.

Here in the Execution API docs for Block Type we see that Full Transactions are TransactionInfo (not Signed Transaction).
and TransactionInfo includes both hash and from as "required". I am not sure why the deployed page says SignedTransaction


define the angle of the ring would be nice

Being able to define the ring to only show in a 180 or other degree area would be awesome.

Added in 1.3.0


"No item with that key"

What version of Music Assistant has the issue?
2.2.5
What version of the Home Assistant Integration have you got installed?
2024.9.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

I re-authenticated spotify and I don't see the error anymore

Not sure what happened. No one else has reported this. If you can’t recreate it I’m not sure what can be done

Not sure what happened. No one else has reported this. If you can’t recreate it I’m not sure what can be done

https://github.com/music-assistant/server/pull/1674 can be done.


Introduce more state granularity when syncing

Currently we're either syncing or not. However, in cases when we're syncing, but the last sync finished with an error, a different icon/state should represent the syncer, so that Buildasaur can show off that something is wrong.

[ ] introduce such states
[ ] show different colors in the syncer detail view
[ ] show different labels in the dashboard
[ ] show different labels in the menu bar menu
[ ] change menu bar icon based on success/failure?

Duplicate of #206.


Issue with profiles.yml files for dbt being automatically overridden during reinstall

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/3345
Originally created by @aaronsteers on 2022-03-23 00:21:16

As noted by @andrewstewart in slack, the profiles.yml file currently is being overwritten each time the plugin is reinstalled.
We should consider changing this in our new adapter-specific versions of dbt (#3298 and #3105) so that users can be free to customize these profiles without their changes being at risk of getting overwritten.
Workaround
As a workaround in the current state, a user can append a few lines to the end of their dbt "files bundle" definition:
https://gitlab.com/meltano/meltano/blob/master/src%2Fmeltano%2Fcore%2Fbundle%2Fdiscovery.yml#L3280-3285
plugins:
  # ...
  files:
  - name: dbt
    # ...
    # Add these two lines to prevent reversions during reinstall:
    update:
      transform/profile/profiles.yml: false

View 4 previous comments from the original issue on GitLab


Added 'PC Tower' model.

Created a separate scene for editing 'PC Tower' model.
Replace the current hands model in 'Test World' into low-poly one for reducing projec's size.

Finally, the PC model can actually be usable !!!!!


feature: support linux/arm64 architecture

Related Issue
solve #83
Description
support local github action runner with arm64 architecture :)

Thanks for the contribution in this PR. I will be looking into this in the coming week.

@mrrobot47 would this get merged anytime soon? I'm having trouble running it in arm64 architecture.

for anyone end up search arm64 here, feel free to use
https://github.com/christallire/action-slack-notify/pkgs/container/action-slack-notify

Would really great if you could merge this @mrrobot47

pls merge this


build aborted analysis of target build_tbb failed

I am trying to build tensorflow from source for my Mac as it supports SSE4.1, SSE4.2, AVX and FMA with the following the official documentation (https://www.tensorflow.org/install/source).
I am using the master branch and the following command:
bazel build -c opt --copt=-mavx --copt=-mfma --copt=-msse4.2 --copt=-msse4.1 --copt=-mfpmath=sse --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --config=mkl --config=ngraph --config=numa --config=noaws --config=nogcp --config=nohdfs --config=nonccl -k //tensorflow/tools/pip_package:build_pip_package

Here goes my bazel configuration:
(base) IKA-XK0X8JG5J:tensorflow_build sardarmrinal$ ./configure
WARNING: Running Bazel server needs to be killed, because the startup options are different.
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 1.2.1 installed.
Please specify the location of python. [Default is /opt/anaconda3/bin/python]:

Found possible Python library paths:
  /opt/anaconda3/lib/python3.7/site-packages
Please input the desired Python library path to use.  Default is [/opt/anaconda3/lib/python3.7/site-packages]

Do you wish to build TensorFlow with XLA JIT support? [Y/n]: Y
XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]: N
No OpenCL SYCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with ROCm support? [y/N]: N
No ROCm support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: N
No CUDA support will be enabled for TensorFlow.

Do you wish to download a fresh release of clang? (Experimental) [y/N]: N
Clang will not be downloaded.

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native -Wno-sign-compare]:

Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: N
Not configuring the WORKSPACE for Android builds.

Do you wish to build TensorFlow with iOS support? [y/N]: N
No iOS support will be enabled for TensorFlow.

Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
	--config=mkl         	# Build with MKL support.
	--config=monolithic  	# Config for mostly static monolithic build.
	--config=ngraph      	# Build with Intel nGraph support.
	--config=numa        	# Build with NUMA support.
	--config=dynamic_kernels	# (Experimental) Build kernels into separate shared objects.
	--config=v2          	# Build TensorFlow 2.x instead of 1.x.
Preconfigured Bazel build configs to DISABLE default on features:
	--config=noaws       	# Disable AWS S3 filesystem support.
	--config=nogcp       	# Disable GCP support.
	--config=nohdfs      	# Disable HDFS support.
	--config=nonccl      	# Disable NVIDIA NCCL support.
Configuration finished

And I am getting the following error:
ERROR: /private/var/tmp/_bazel_sardarmrinal/841c8c9a203505f6ff7b50ea63697e9e/external/tbb/BUILD.bazel:12:1: in cmd attribute of genrule rule @tbb//:build_tbb: $(AR) not defined
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: Analysis of target '@tbb//:build_tbb' failed; build aborted

Any idea how I can get past this?
FYI: I built one successfully yesterday wihtout --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" and I wanted to use this option this time. All I did was pulling the latest master branch.
Output from tf_env_collect.sh:
== check python ===================================================
    python version: 3.7.4
    python branch:
    python build version: ('default', 'Aug 13 2019 15:17:50')
    python compiler version: Clang 4.0.1 (tags/RELEASE_401/final)
    python implementation: CPython

== check os platform ===============================================
os: Darwin
os kernel version: Darwin Kernel Version 18.7.0: Sun Dec  1 18:59:03 PST 2019; root:xnu-4903.278.19~1/RELEASE_X86_64
os release version: 18.7.0
os platform: Darwin-18.7.0-x86_64-i386-64bit
linux distribution: ('', '', '')
linux os distribution: ('', '', '')
mac version: ('10.14.6', ('', '', ''), 'x86_64')
uname: uname_result(system='Darwin', node='IKA-XK0X8JG5J', release='18.7.0', version='Darwin Kernel Version 18.7.0: Sun Dec  1 18:59:03 PST 2019; root:xnu-4903.278.19~1/RELEASE_X86_64', machine='x86_64', processor='i386')
architecture: ('64bit', '')
machine: x86_64

== are we in docker =============================================
No

== compiler =====================================================
Apple LLVM version 10.0.1 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

== check pips ===================================================
numpy                              1.17.2
numpydoc                           0.9.1
protobuf                           3.11.2
tensorflow                         2.0.0
tensorflow-estimator               2.0.1

== check for virtualenv =========================================
False

== tensorflow import ============================================
tf.version.VERSION = 2.0.0
tf.version.GIT_VERSION = unknown
tf.version.COMPILER_VERSION = 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)

== env ==========================================================
LD_LIBRARY_PATH is unset
DYLD_LIBRARY_PATH is unset

== nvidia-smi ===================================================
tf_env_cololect.sh: line 147: nvidia-smi: command not found

== cuda libs  ===================================================

== tensorflow installed from info ==================
Name: tensorflow
Version: 2.0.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author-email<EMAIL_ADDRESS>License: Apache 2.0
Location: /opt/anaconda3/lib/python3.7/site-packages
Required-by:

== python version  ==============================================
(major, minor, micro, releaselevel, serial)
(3, 7, 4, 'final', 0)

== bazel version  ===============================================
Build label: 1.2.1
Build time: Tue Nov 26 15:27:31 2019<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

I have met the same error with Tensorflow 1.15.0 with XLA and CUDA support enabled (using bazel 0.26.1 which is indicated by the configure).

@mrinalsardar, did you get a chance to take a look at @004307ec's comment. Thanks!


Make UNUSED a more compact representation

Would it make sense to make the unused value either an empty binary, empty list or the empty atom '' so to reduce it's overhead when serialized using term_to_binary/1?

Makes sense.

Initially the idea of using unused atom was to make representation more human friendly, but the figures talk for themselves:
2> size(term_to_binary([])).
2
3> size(term_to_binary(<<>>)).
6
4> size(term_to_binary('')).
4
5> size(term_to_binary(unused)).
10

Empty list looks like a clear winner, I will use it. Thanks for suggestion!


Add mixpanel tracking for type of frontend and contract

Add mixpanel tracking for type of frontend and contract user choose

I would write something like this:
NEAR collects basic information on the type of commands used to improve developer experiences. All data are anonymous, therefore, no personal information that could identify you will be shared.


bugfix evohome and bump client

Description:
Adds try/except to prevent failure if a zone has an invalid schedule, preventing issue #27768
Bumps evohome-async client to v0.3.4b1 - this is a version # change only, to match an upstream repo.
See: https://github.com/zxdavb/evohome-async/compare/0.3.3b5...0.3.4.b1
Related issue (if applicable): prevents #27768
Pull request with documentation for home-assistant.io (if applicable): N/A
**Example entry for configuration.yaml (if applicable): N/A
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.
[x] I have followed the development checklist

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

[x] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[x] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.

I am going to merge this myself.


Google maps layer, language and key

From @pkarop on October 7, 2015 17:30
Are there any params for Google maps layer, so I can set language and api key through Javascript?
I am trying something like this
            layers: {
                baselayers: {
                    googleRoadmap: {
                        name: 'Google Streets',
                        layerType: 'ROADMAP',
                        type: 'google',
                        layerParams: {
                            key: key,
                            language: $scope.language
                        }
                    }
                 }
            }

Copied from original issue: tombatossals/angular-leaflet-directive#982

I dont think there is yet; but copying this service angular-google-maps would work.


Michailidou (2015) top loci irregular

Study ID: GCST007236
https://dev--genetics-app.netlify.com/study/GCST007236
Symptoms:

Many top loci on chroms 20 and 21
There is another study ID for Michailidou (2015): https://dev--genetics-app.netlify.com/study/GCST004950

Have checked toploci table and the problem exists there. Need to check the credible set table:
gsutil -m cat gs://genetics-portal-data/credible_sets/190430/part-\*-e86fcb17-55d9-4eb8-84a1-6861c2742d01-c000.json.gz | zgrep GCST007236 > credible_sets.GCST007236_only.json

I should also check the raw sumstat data: gs://genetics-portal-sumstats-b38/unfiltered/gwas/GCST007236.parquet

I have checked the credible set table and the problem exists there.
In [5]: df.groupby('lead_chrom').lead_variant_id.count()
Out[5]:
lead_chrom
20    210
22    100

Need to check the raw sumstat data.

I'm seeing a strange error in the logs. Here logs for all chroms concatenated into a single file
logs.txt

This is fixed by https://github.com/opentargets/genetics-finemapping/commit/1164f8b1a51f6c65f5df18b50d40729fcc70cbaa but will only be fixed in the data by re-running missing (study_id, chrom)s through the finemapping pipeline again.

Actually this seems to be a problem in the harmonised sumstats data available on GWAS catalog. E.g. p values are not in the range 0 - 1, for example.
James H has confirmed that columns were mis-assigned when the file was harmonised. They will redo it, and we should re-import this study for our next release.


[5.10][Concurrency] Downgrade actor_isolated_mutating_func to a warning in a narrow case that was previously accepted.

Explanation: The following code is accepted by the Swift 5.9 compiler and below:

extension Optional {
    mutating func mutate() async {}
}

actor A {
  var dict: [Int: Int] = [:]

  func test() async {
    await dict[0]. mutate()
  }
}

This is invalid because an actor-isolated value is passed as inout to an async function. However, because this code was previously accepted as valid, this change downgrades the diagnostic to a warning prior to Swift 6.

Scope: Only impacts code that passes subscript expressions as inout arguments to async functions.
Risk: Low, downgrades a diagnostic to a warning.
Testing: Added a new test case.
Issue: rdar://117357457
Main branch PR: https://github.com/apple/swift/pull/69330

@swift-ci please test


Kubernetes Controller Nuget Package

What should we add or change to make your life better?
Publish the Yarp.Kubernetes.Controller as a Nuget Package.
Why is this important to you?
It will enable me to consumer this within my application.

Related (duplicate of): #2134, #1640, #1254
Would you be okay with consuming builds from the nightly feed for the time being? (assuming we fix #2134 soon)


Use github.com/cilium/workerpool inside Maglev M permutation computation

The Maglev getPermutation() function implements its own logic to compute the permutations based on runtime.NumCPU(). However, after seeing this commit, we can replace this with github.com/cilium/workerpool.

Thanks! will start working on it soon 😃

@pchaigno  Didn't have luck running cilium on minikube or kind... will unassign myself to give chances to others

@h3llix Are you still working on this? Please remove your assignment if not.

Hi Chris. Sorry, I was caught up with something else. I'll look on this in next 2 3 days. If I still get stuck. I'll just unassign myself.

@christarazi Sorry, I am unassigning this myself. Took a long to respond but caught up on some work.

@christarazi I have a working patch fixing this issue here, but I don't think it's worth the change.
cilium/workerpool is most useful for context cancelling propagation to the worker goroutines, error propagation from the worker goroutines, and long-running job with dynamic tasks count over time (because the workerpool launches a goroutine on-demand rather than maintaining a pool of goroutines always running). None of theses properties are useful to getPermutation(), and so I feel like the patch only adds "noise" by ignoring the errors and context.
If you agree then let's close this issue, otherwise I'll be happy to open a PR with the patch linked above.

@kaworu The way I see it is we've created cilium/workerpool to solve this general problem so that we don't have to re-solve it every time we want to limit workers in our code bases. If there's return values that we don't care about or extra knobs like context cancellation that the lib supports, then we simply don't have to use it and that's supported by the lib anyway.
I see this as a cleanup to consolidate our code on a single approach to a general problem. So might as well.


Use reqwest

Try to use reqwest. If OpenSSL is linked statically, reqwest should be works properly.

Codecov Report
Base: 86.66% // Head: 54.16% // Decreases project coverage by -32.50% :warning:

Coverage data is based on head (3454aae) compared to base (c46b0bf).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##             main      #11       +/-   ##
===========================================
- Coverage   86.66%   54.16%   -32.50%
===========================================
  Files           1        1
  Lines          15       24        +9
===========================================
  Hits           13       13
- Misses          2       11        +9

Flag
Coverage Δ

unittests
54.16% <0.00%> (-32.50%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/main.rs
54.16% <0.00%> (-32.50%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add permutations

(patience;you must have) my young padawan matches both patience you must have my young padawan and you must have patience my young padawan.
(A;B;C) would match A B C, A C B, B A C, B C A, C A B, C B A

This would help Finnish quite much. 👍

Thanks!


Test spring restful

@yuqisun Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

The main point of the "initial" project is to be empty (except for a build system). I think this PR is maybe a mistake?

really sorry, my mistake ...

No worries.


Can we do skip nav vanilla?

Can we remove this     "@chakra-ui/skip-nav": "^2.0.12",
and do skip to navigation vanilla js and tw?
We get warning on install that we are missing a peer:
├─┬ @chakra-ui/skip-nav 2.0.12
│ └── ✕ missing peer<EMAIL_ADDRESS>So  it would be good to have no packages instead of 2 for this simple feature

we have already created our own skip to nav component - i have now created a branch with it removed. I just need someone to run pnpm install and push the lock file @BorghildSelle

@millianapia Should it be converted to tw component?

great point, yes! will fix :) @BorghildSelle

refactored to tailwind, as we are moving away from the old heading component this also needed to be fixed. Now the vanilla skip nav is working as expected with TW. Only need either of you to do a pnpm i then push the lock file


iOS - Close account - When entering email in the default contact method field it gets highlighted

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Launch App and login with any account
Navigate to Settings > Security
Enter the email in the input and click/tap on "close account"

Expected Result:
The entered email should not be highlighted.
Actual Result:
When I enter an email it is highlighted.
Workaround:
Visual
Platform:

Where is this issue occurring?

iOS
Mobile Web

Version Number: <IP_ADDRESS>
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/173686046-05c74675-1bab-4628-bcd8-c5017ad0082f.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
View all open jobs on GitHub

Not sure what the issue is here. Is there something stopping you from entering a full email? @mvtglobally

@arosiclair, you can enter the email, but in the past it wasn't highlighted while typing. Not sure if this is a low issue or by design now.

I believe this is just behavior from the iOS keyboard not our app. I was able to reproduce this and can confirm this isn't impacting user's ability to type an email and close their account so I'll close this as not an issue.


Fix/mn requirements i18n

Metanorma PR checklist

[x] Breaking changes (list related PRs) : https://github.com/metanorma/mn-requirements/pull/4
[ ] Documentation update required (create task for this)
[ ] External dependency introduced (documentation update need)
[ ] Gem with native library introduced

Requires version 0.1.0 of mn-requirements


More test cases for sonarlog

See #59 #60 #61 #62 #63, at least.  There are many failure modes that are not covered by test cases.

Part of this work should be to move test files out of sonar_test_data0 and into tests/, and to avoid reusing files for many different tests except in special circumstances.

Also, whitebox tests that don't need to be whitebox because we can use the parse or metadata verbs now, should be made black-box.

From #60: streams with duplicate timestamps are purged: duplicates (I believe subsequent duplicates) are removed.

From #63: it is possible for cpu utilization to be negative due to weird system effects, these need to be purged.

(The other three bugs mentioned in the description are not actionable.)


Fix missing currency parameter on web.

In previous implementations, the currency value was not passed to the js_interop file.
In this PR: I have fixed that and updated the readMe file to reflect these changes.

Alright. Got it!
Thanks for the update.

You've tested the update before the PR?

Yeah, It was tested.

Oh! Cool.
I was hoping to find time to test it all this while. I will go ahead and
publish it tonight then.
On Tue, 21 May 2024 at 18:39, Kelvin Osei Poku @.***>
wrote:

You've tested the update before the PR?
Yeah, It was tested.
—
Reply to this email directly, view it on GitHub
https://github.com/Princewil/flutter_paystack_plus/pull/13#issuecomment-2123122650,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJWWTE3BCOKFXOF44G6BXTTZDOBEVAVCNFSM6AAAAABHPJZKESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRTGEZDENRVGA
.
You are receiving this because you commented.Message ID:
@.***>

You should still make time to test it. The onClosed and callback were passing null values.

Oh Wow!
I will look at it then. Thanks for the heads up
On Tue, 21 May 2024 at 18:54, Kelvin Osei Poku @.***>
wrote:

You should still make time to test it. The onClosed and callback were
passing null values.
—
Reply to this email directly, view it on GitHub
https://github.com/Princewil/flutter_paystack_plus/pull/13#issuecomment-2123146341,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJWWTE5TY663AZU4CZRA3P3ZDOC4PAVCNFSM6AAAAABHPJZKESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRTGE2DMMZUGE
.
You are receiving this because you commented.Message ID:
@.***>

Thank you @keezysilencer for your contribution. 🫡
It took like forever to merge and publish, I apologize for that.


Readme needs work

There doesn't appear to be any description of what any of these apps do or what they are.

I haven't worked on this or Django in years.  These were more just examples of how to structure theoretical applications.


Retaining original columns after inference

Hello~ Thanks a lot for creating this great project!
I am wondering if it is possible to retain the original columns in the dataframe after inferencing using
examples/mnist/keras/mnist_pipeline.py
? just like the behavior of transform() of the original spark MLlib?
Currently, only the predictions and the argmax are retained in the inference result, meaning we won't be able to match the prediction with the original record.
I somehow figure out a way to modify pipeline.py (which is a part of TensorflowOnSpark) to workaround with that, but it would be great if we can have the official support. In production this function should be quite useful.
Thank you very much!

There are a couple ways to achieve this:

add a tf.identity(x) to your model to echo whatever inputs you desire.
use a Spark UDF to invoke the model using df.withColumn(udf(x)).

Unfortunately, I don't have any ready examples of these...
Alternatively, if you want to create a PR with your modifications to pipeline.py, I can take a look at incorporating it (assuming that we have a way to preserve backwards-compatibility for folks who expect the prior behavior).

Thank you, @leewyang for your advice! I will try your advice next time in similar cases.
Regarding the PR, I don't want to contaminate your beautiful codebase.
What I did in pipeline.py was that:

_transform()
Use a list to keep track of original columns other than the input_cols.
dataset.select(all of the columns instead of just input features).
append original columns' names in spark.createDataFrame() in addition to output_cols.
yield_batch()
Add a list to contain additional original columns like tensors[].
In the for item in iterable:, append the original columns into that list; yield tensors, original_columns_list.
So, I also need to change _run_model_tf1 and _run_model_tf2.
_run_model_tf1 and _run_model_tf2
Get the original columns list from yield_batch() along with tensors, put it in the result.extend(zip(*(here + python_outputs)))

Personally, I was looking for better ways of handing this. Thank you very much!


Develop branch

I have cloned the repo and did a composer install on the develop branch.
> ExpressiveInstaller\OptionalPackages::install
Setting up optional packages
Setup data and cache dir
Removing installer development dependencies

  What type of installation would you like?
  [1] Minimal (no default middleware, templates, or assets; configuration only)
  [2] Flat (flat source code structure; default selection)
  [3] Modular (modular source code structure; recommended)
  Make your selection (2): 2
  - Copying src/App/ConfigProvider.php

  Which container do you want to use for dependency injection?
  [1] Aura.Di
  [2] Pimple
  [3] Zend ServiceManager
  Make your selection or type a composer package name and version (Zend ServiceManager): 1
  - Adding package aura/di (^3.0)
  - Copying config/container.php
  - Copying config/ExpressiveAuraConfig.php
  - Copying config/ExpressiveAuraDelegatorFactory.php

  Which router do you want to use?
  [1] Aura.Router
  [2] FastRoute
  [3] Zend Router
  Make your selection or type a composer package name and version (FastRoute): 1
  - Adding package zendframework/zend-expressive-aurarouter (^2.0)
  - Copying config/routes.php
  - Copying config/autoload/router.global.php

  Which template engine do you want to use?
  [1] Plates
  [2] Twig
  [3] Zend View installs Zend ServiceManager
  [n] None of the above
  Make your selection or type a composer package name and version (n): 2
  - Adding package zendframework/zend-expressive-twigrenderer (^1.2.1)
  - Copying config/autoload/templates.global.php
  - Copying templates/error/404.html.twig
  - Copying templates/error/error.html.twig
  - Copying templates/layout/default.html.twig
  - Copying templates/app/home-page.html.twig

  Which error handler do you want to use during development?
  [1] Whoops
  [n] None of the above
  Make your selection or type a composer package name and version (Whoops): 1
  - Adding package filp/whoops (^2.0)
Remove installer
Removing composer.lock from .gitignore
Removing Expressive installer classes, configuration, tests and docs
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 35 installs, 0 updates, 0 removals
  - Installing zendframework/zend-expressive-zendrouter (2.0.0) Downloading: 100%
  - Installing zendframework/zend-expressive-helpers (3.0.1) Downloading: 100%
  - Installing league/plates (3.3.0) Loading from cache
  - Installing zendframework/zend-expressive-platesrenderer (1.2.0) Loading from cache
  - Installing twig/twig (v1.31.0) Loading from cache
  - Installing zendframework/zend-expressive-twigrenderer (1.2.1) Loading from cache
  - Installing zendframework/zend-eventmanager (3.1.0) Loading from cache
  - Installing zendframework/zend-view (2.8.1) Loading from cache
  - Installing zendframework/zend-expressive-zendviewrenderer (1.2.1) Downloading: 100%
  - Installing zfcampus/zf-development-mode (3.1.0) Downloading: 100%
  - Installing filp/whoops (2.1.6) Loading from cache
  - Installing sebastian/version (2.0.1) Loading from cache
  - Installing sebastian/resource-operations (1.0.0) Loading from cache
  - Installing sebastian/recursion-context (2.0.0) Loading from cache
  - Installing sebastian/object-enumerator (2.0.1) Loading from cache
  - Installing sebastian/global-state (1.1.1) Loading from cache
  - Installing sebastian/exporter (2.0.0) Loading from cache
  - Installing sebastian/environment (2.0.0) Loading from cache
  - Installing sebastian/diff (1.4.1) Loading from cache
  - Installing sebastian/comparator (1.2.4) Loading from cache
  - Installing doctrine/instantiator (1.0.5) Loading from cache
  - Installing phpunit/php-text-template (1.2.1) Loading from cache
  - Installing phpunit/phpunit-mock-objects (4.0.0) Loading from cache
  - Installing phpunit/php-timer (1.0.8) Loading from cache
  - Installing phpunit/php-file-iterator (1.4.2) Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.0) Loading from cache
  - Installing phpunit/php-token-stream (1.4.9) Loading from cache
  - Installing phpunit/php-code-coverage (5.0.0) Loading from cache
  - Installing webmozart/assert (1.2.0) Loading from cache
  - Installing phpdocumentor/reflection-common (1.0) Loading from cache
  - Installing phpdocumentor/type-resolver (0.2.1) Loading from cache
  - Installing phpdocumentor/reflection-docblock (3.1.1) Loading from cache
  - Installing phpspec/prophecy (v1.6.2) Loading from cache
  - Installing myclabs/deep-copy (1.6.0) Loading from cache
  - Installing phpunit/phpunit (6.0.7) Downloading: 100%
zendframework/zend-expressive-helpers suggests installing mouf/pimple-interop (^1.0 to use Pimple for dependency injection)
zendframework/zend-expressive-platesrenderer suggests installing mouf/pimple-interop (^1.0 to use Pimple for dependency injection)
zendframework/zend-expressive-twigrenderer suggests installing mouf/pimple-interop (^1.0 to use Pimple for dependency injection)
zendframework/zend-view suggests installing zendframework/zend-authentication (Zend\Authentication component)
zendframework/zend-view suggests installing zendframework/zend-feed (Zend\Feed component)
zendframework/zend-view suggests installing zendframework/zend-filter (Zend\Filter component)
zendframework/zend-view suggests installing zendframework/zend-i18n (Zend\I18n component)
zendframework/zend-view suggests installing zendframework/zend-json (Zend\Json component)
zendframework/zend-view suggests installing zendframework/zend-mvc (Zend\Mvc component)
zendframework/zend-view suggests installing zendframework/zend-navigation (Zend\Navigation component)
zendframework/zend-view suggests installing zendframework/zend-paginator (Zend\Paginator component)
zendframework/zend-view suggests installing zendframework/zend-permissions-acl (Zend\Permissions\Acl component)
filp/whoops suggests installing symfony/var-dumper (Pretty print complex values better with var-dumper available)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating autoload files

As you can see even if I have not selected zendframework/zend-view or plates it installs everything.
I was looking at
$ composer why zendframework/zend-view
zendframework/zend-expressive-zendviewrenderer  1.2.1  requires  zendframework/zend-view (^2.8.1)

$ composer why zendframework/zend-expressive-zendviewrenderer
There is no installed package depending on "zendframework/zend-expressive-zendviewrenderer"

I have replicated the exact same issue. I checked the code and it's correct. It's just the way composer works and it's installing the dev dependencies. If you run composer update you should see that it's removing about 30 packages, depending your configuration.
The only 2 ways I could install it as it intended is like this:

composer create-project zendframework/zend-expressive-skeleton expressive-test "2.0.x-dev"
Using the method described here. This way you can test local branches.


rename min word lenght for typo

rename minWordLengthForTypo to minWordSizeForTypo as specified.
discussed here: https://github.com/meilisearch/specifications/pull/117#discussion_r850795714

@MarinPostma this is just a question, you have minWordSizeForTypo but in the spec I see minWordSizeForTypos. Was changing Typos to Typo on purpose? Just trying to make sure I am using the correct name on my end.

That's perfectly right @sanders41, let me update that

That's perfectly right @sanders41, let me update that


Offset-wise event types

The event-type partitioning can be now calculated for every given log_reco_energy AND camera_offset bin. Use 'scripts/export_event_types_2.py' for this.
The training now can take multiple offset reduced data files simultaneously.

Hi Juan,
Before doing a full review, let me give you a bit of fast feedback and ask a couple of questions:
I would not call scripts/functions "xxxx_2". Please improve the naming. For example "partition_event_types_2" -> "partition_event_types_vs_offset". Also export_event_types_2 -> export_event_types_vs_offset
Would it be possible to add a flag to the current "partition_event_types" function, instead of creating a new one? Do you 100% need a new function? I understand that for tests it is useful to create a new one. But for simplicity, I would expand the one we have now, and not create a completely new one.
I will check in more detail next week.
Tarek

Now that the other PRs are merged (thanks for the reviews!), I guess you should merge the main to your code first and then implement the changes Tarek mentioned.

I think it's ready now.
I could merge the scripts 'export_event_types.py' and 'export_event_types_2.py', so now choosing between offset-wise or not is a tag in that script.
I didn't do the same for the functions 'partition_event_types' and 'partition_event_types_2' because that would be more complicated and I would need to almost duplicate the entire function filling it with ifs. So I think it's easier to understand with two different functions and I changed the name of the second one to 'partition_event_types_offsetwise'.

All these changes now work. Please have a look and let me know if I should change anything else.

All of my comments were addressed now so I am merging this. The discussion with @TarekHC about the offset binning and statistics can continue here or in a dedicated issue.


Kernel panic / Segmentation fault when trying to run example

Hi! I tried to install and run a simple example, but ran into a Segmentation Fault: 11 error when using Python 3.9.6:

from sklearn import datasets

def X_y():
    X, y = datasets.make_classification(n_samples=100, n_features=20,
                                        n_informative=2, n_redundant=2, random_state=0)

    return X, y

from flaml import AutoML
automl = AutoML()
automl.fit(X, y, task="classification")

Running this in both my Jupyter notebook and via bash gives me:
$ python3 innodays_flaml.py
[flaml.automl: 09-24 10:45:44] {1431} INFO - Evaluation method: cv
[flaml.automl: 09-24 10:45:44] {1477} INFO - Minimizing error metric: 1-accuracy
[flaml.automl: 09-24 10:45:44] {1514} INFO - List of ML learners in AutoML Run: ['lgbm', 'rf', 'catboost', 'xgboost', 'extra_tree', 'lrl1']
[flaml.automl: 09-24 10:45:44] {1746} INFO - iteration 0, current learner lgbm
Segmentation fault: 11

I also tried this with 3.7.9, and got the same error. Here are my packages:
appnope==0.1.2
argcomplete==1.12.3
argon2-cffi==21.1.0
attrs==21.2.0
backcall==0.2.0
bleach==4.1.0
catboost==0.26.1
certifi==2021.5.30
cffi==1.14.6
charset-normalizer==2.0.6
cycler==0.10.0
debugpy==1.4.3
decorator==5.1.0
defusedxml==0.7.1
entrypoints==0.3
FLAML==0.6.4
graphviz==0.17
idna==3.2
importlib-metadata==4.8.1
ipykernel==6.4.1
ipython==7.27.0
ipython-genutils==0.2.0
ipywidgets==7.6.5
jedi==0.18.0
Jinja2==3.0.1
joblib==1.0.1
jsonschema==3.2.0
jupyter==1.0.0
jupyter-client==7.0.3
jupyter-console==6.4.0
jupyter-core==4.8.1
jupyter-tabnine==1.2.3
jupyterlab-pygments==0.1.2
jupyterlab-widgets==1.0.2
kiwisolver==1.3.2
liac-arff==2.5.0
lightgbm==3.2.1
MarkupSafe==2.0.1
matplotlib==3.2.0
matplotlib-inline==0.1.3
mistune==0.8.4
nbclient==0.5.4
nbconvert==6.1.0
nbformat==5.1.3
nest-asyncio==1.5.1
notebook==6.4.4
numpy==1.21.2
openml==0.10.2
packaging==21.0
pandas==1.3.3
pandocfilters==1.5.0
parso==0.8.2
pexpect==4.8.0
pickleshare==0.7.5
Pillow==8.3.2
plotly==5.3.1
prometheus-client==0.11.0
prompt-toolkit==3.0.20
ptyprocess==0.7.0
pycparser==2.20
Pygments==2.10.0
pyparsing==2.4.7
pyrsistent==0.18.0
python-dateutil==2.8.2
pytz==2021.1
pyzmq==22.3.0
qtconsole==5.1.1
QtPy==1.11.2
requests==2.26.0
rgf-python==3.11.0
scikit-learn==1.0
scipy==1.7.1
Send2Trash==1.8.0
six==1.16.0
tenacity==8.0.1
terminado==0.12.1
testpath==0.5.0
threadpoolctl==2.2.0
tornado==6.1
traitlets==5.1.0
typing-extensions==<IP_ADDRESS>
urllib3==1.26.7
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.1
xgboost==1.3.3
xmltodict==0.12.0
zipp==3.5.0

These packages were installed in a fresh virtualenv, with only pip install flaml and pip install flaml[notebook] ran.

In your code snippet, X, y looks undefined. I modified your code as the following and it works for me.
from sklearn import datasets

X, y = datasets.make_classification(n_samples=100, n_features=20,
                                    n_informative=2, n_redundant=2, random_state=0)

from flaml import AutoML
automl = AutoML()
automl.fit(X, y, task="classification")

@sonichi My bad, that was a copy-and-paste error. Even with X and y properly defined, the code segfaults!

Yes, it works for me in a fresh conda environment of Python 3.7.9 and pip install flaml. The packages installed are:
Package           Version

astroid           2.3.3
backcall          0.2.0
catboost          0.26.1
certifi           2021.5.30
colorama          0.4.3
cycler            0.10.0
decorator         4.4.2
FLAML             0.6.4
graphviz          0.17
ipykernel         5.3.4
ipython           7.19.0
ipython-genutils  0.2.0
isort             4.3.21
jedi              0.17.2
joblib            1.0.1
jupyter-client    6.1.7
jupyter-core      4.7.0
kiwisolver        1.3.2
lazy-object-proxy 1.4.3
lightgbm          3.2.1
matplotlib        3.2.0
mccabe            0.6.1
numpy             1.21.2
pandas            1.3.3
parso             0.7.1
pickleshare       0.7.5
pip               21.2.2
plotly            5.3.1
prompt-toolkit    3.0.8
Pygments          2.7.2
pylint            2.4.4
pyparsing         2.4.7
python-dateutil   2.8.2
pytz              2021.1
pyzmq             20.0.0
rgf-python        3.9.0
rope              0.16.0
scikit-learn      1.0
scipy             1.7.1
setuptools        58.0.4
six               1.14.0
tenacity          8.0.1
threadpoolctl     2.2.0
tornado           6.1
traitlets         5.0.5
typed-ast         1.4.1
wheel             0.37.0
wincertstore      0.2
wrapt             1.11.2
xgboost           1.3.3

Not sure if this makes a difference, but I'm not using conda! 🤔

I tried venv with Python 3.7.5 and it works too. I ran pip install -U pip before pip install flaml because the default pip version is too low in the venv. Packages:
Package         Version

catboost        0.26.1
cycler          0.10.0
FLAML           0.6.4
graphviz        0.17
joblib          1.0.1
kiwisolver      1.3.2
lightgbm        3.2.1
matplotlib      3.4.3
numpy           1.21.2
pandas          1.3.3
Pillow          8.3.2
pip             21.2.4
pkg_resources   0.0.0
plotly          5.3.1
pyparsing       2.4.7
python-dateutil 2.8.2
pytz            2021.1
scikit-learn    1.0
scipy           1.7.1
setuptools      39.0.1
six             1.16.0
tenacity        8.0.1
threadpoolctl   2.2.0
wheel           0.37.0
xgboost         1.3.3

I tried again with a new environment, but still no luck. Here are the exact commands I ran:
(flaml) $ python3 --version
Python 3.7.9

pip install -U pip
pip install flaml

Dependencies look like:
catboost==0.26.1
cycler==0.10.0
FLAML==0.6.4
graphviz==0.17
joblib==1.0.1
kiwisolver==1.3.2
lightgbm==3.2.1
matplotlib==3.4.3
numpy==1.21.2
pandas==1.3.3
Pillow==8.3.2
plotly==5.3.1
pyparsing==2.4.7
python-dateutil==2.8.2
pytz==2021.1
scikit-learn==1.0
scipy==1.7.1
six==1.16.0
tenacity==8.0.1
threadpoolctl==2.2.0
xgboost==1.3.3

Currently using pip 21.2.4.
Could this be related to OS? I'm using macOS Big Sur, version 11.5.2. 🤔

Hi @angela97lin, I wonder is your Mac computer with Intel chip or Apple M1? Thank you!

Hi, I tried 3.7.9 and 3.9.6 in Windows. They both worked fine.

I have an Intel chip: 2.3 GHz 8-Core Intel Core i9

Hi I tried Python 3.8.6 on a duo-core intel core i7, MacOS Big Sur. It works fine for me.

@angela97lin Could you try pip install --no-cache-dir flaml? Maybe some package is corrupted in the cache.

Hi @angela97lin, I tried Python 3.8.5 and Python 3.7.5 with MacOS Big Sur and Intel chip. Both work fine for me. Can you try re-installing with the --no-cache-dir option as suggested by sonichi?

Thanks for all of the replies! I've tried with pip install --no-cache-dir flaml, but still no luck.
I noticed that it usually segfaults during lightgbm / xgboost. When I update my code to:

from sklearn import datasets

X, y = datasets.make_classification(n_samples=100, n_features=20,
                                    n_informative=2, n_redundant=2, random_state=0)

from flaml import AutoML
automl = AutoML()
automl.fit(X, y, task="classification", estimator_list=['rf', 'catboost', 'extra_tree', 'lrl1'])

Everything runs to completion!

Do lightgbm and xgboost work on your machine without flaml?

Yup, they do.
Not sure if this is helpful, but everything works fine in a virtual environment that I use day-to-day for development. This virtual environment has many more packages installed, listed below. I only run into this issue when I try to create a new virtual environment.
 The failing env has version 3.2.1. Could that be the cause?

Still no luck 😬
(flaml) angela.lin ~/Desktop -  $ pip install lightgbm==3.0.0
Requirement already satisfied: lightgbm==3.0.0 in ./flaml/lib/python3.7/site-packages (3.0.0)
Requirement already satisfied: scipy in ./flaml/lib/python3.7/site-packages (from lightgbm==3.0.0) (1.7.1)
Requirement already satisfied: numpy in ./flaml/lib/python3.7/site-packages (from lightgbm==3.0.0) (1.21.2)
Requirement already satisfied: scikit-learn!=0.22.0 in ./flaml/lib/python3.7/site-packages (from lightgbm==3.0.0) (1.0)
Requirement already satisfied: joblib>=0.11 in ./flaml/lib/python3.7/site-packages (from scikit-learn!=0.22.0->lightgbm==3.0.0) (1.0.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in ./flaml/lib/python3.7/site-packages (from scikit-learn!=0.22.0->lightgbm==3.0.0) (2.2.0)
(flaml) angela.lin ~/Desktop -  $ python3 innodays_flaml.py
[flaml.automl: 09-28 15:46:37] {1432} INFO - Evaluation method: cv
[flaml.automl: 09-28 15:46:37] {1478} INFO - Minimizing error metric: 1-roc_auc
[flaml.automl: 09-28 15:46:37] {1515} INFO - List of ML learners in AutoML Run: ['lgbm', 'rf', 'catboost', 'xgboost', 'extra_tree', 'lrl1']
[flaml.automl: 09-28 15:46:37] {1747} INFO - iteration 0, current learner lgbm
Fatal Python error: Fatal Python error: Segmentation fault: 11
(flaml) angela.lin~/Desktop -  $

We can add some debugging info to the output and then you can run it and confirm whether the error happens right before lightgbm training. Would you like to do that?

Sure! If this is helpful, installing FLAML in an editable mode and setting a breakpoint shows:
> /Users/angela.lin/Desktop/FLAML/flaml/tune/tune.py(386)run()
-> result = training_function(trial_to_run.config)
(Pdb) training_function
functools.partial(<function AutoMLState._compute_with_config_base at 0x1339ff050>, <flaml.automl.AutoMLState object at 0x106923590>, 'lgbm')
(Pdb) (trial_to_run.config)
{'n_estimators': 4, 'num_leaves': 4, 'min_child_samples': 20, 'learning_rate': 0.09999999999999995, 'log_max_bin': 8, 'colsample_bytree': 1.0, 'reg_alpha': 0.0009765625, 'reg_lambda': 1.0}

Stepping through, it seg faults when running compute_estimator in _compute_with_config_base.

I added the debugging mode in the branch msg. If you install that branch of FLAML with -e, you can pass verbose=4 to AutoML.fit() and see debugging info. If you see
[flaml.automl: 10-01 08:59:50] {98} DEBUG - flaml.model - LGBMClassifier(learning_rate=0.26770501231052046, max_bin=127,
               min_child_samples=12, n_estimators=4, n_jobs=1, num_leaves=4,
               reg_alpha=0.001348364934537134, reg_lambda=1.4442580148221913,
               verbose=-1) fit started
[flaml.automl: 10-01 08:59:50] {101} DEBUG - flaml.model - LGBMClassifier(learning_rate=0.26770501231052046, max_bin=127,
               min_child_samples=12, n_estimators=4, n_jobs=1, num_leaves=4,
               reg_alpha=0.001348364934537134, reg_lambda=1.4442580148221913,
               verbose=-1) fit finished

before the seg fault, then the lgbm fit succeeds. If you only see the first msg but not the second one, then the seg fault happens during fit.

@angela97lin In #243 another user reported a similar issue in MacOS and confirmed that lgbm's fit() fails without flaml. Could you test lightgbm in your env without flaml too?

@sonichi Got it. FWIW, we make our conda package with catboost as a dependency via conda-forge: https://anaconda.org/conda-forge/catboost, could be interesting to look into?
Closing this issue though since the original issue is resolved. Thanks again!


NTR: glucosylglycerate phosphorylase activity

Proposed definition: Catalysis of the reaction: glucosylglycerate + phosphate = glucose-1-phosphate + D-glycerate
Parent: GO:0004645
There will be an EC reaction as soon as someone reviews the preliminary reaction in the EC; a MetaCyc reaction also exists, but so far only in our beta version.
The reaction is based on PMID 28754708.
Thanks!

@keseler
I added the new MF term.  When the EC xref becomes available, please feel free to re-open this ticket and I will add that to the term info.  Thx.


Enable avatar

Shall we instruct everyone on the team (incl. us) to test this on their dev profiles with a couple of images?


Quotes should be escaped on project init

Hello
While creating a new project, I entered a description with a single quote like "Project for our Bachelor's Degree".
As I look in the setup.py file, this quote is not escaped, resulting in a syntax error:

I assume the same issue would occur if I were to enter a quote inside other fields, like author, but I didn't try it out.
Cheers

Thanks for reporting!
Definitely seems worth fixing for a number of fields where we might have quote characters. We'd take a PR that fixes this for description, author, and project_name.
Looks like there's a suggestion on the main cookiecutter repo for a fix:
https://github.com/cookiecutter/cookiecutter/issues/936#issuecomment-301189214

Fixed by #313 for V2


Android scroll glow effect does not stay at set paintOffset when scrolling in opposite direction

Steps to Reproduce

Execute flutter run on the code sample (Android)
Enable slow animations so that the scroll glow stays longer.
Scroll to the end of the list so that the scroll glow effect appears.
Immediately after slowly scroll back up again.

Expected results:
The glow effect should stay at the (initial) paintOffset position above the bottom bar.
Actual results:
The glow effect scrolls with the content of the ListView and then pins at the end of the view port.
https://user-images.githubusercontent.com/26022902/147934274-93f7c484-2983-4880-8633-6ac0c517e74b.mp4

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        extendBody: true,
        body: NotificationListener<OverscrollIndicatorNotification>(
          onNotification: (OverscrollIndicatorNotification notification) {
            if (!notification.leading) {
              notification.paintOffset = kBottomNavigationBarHeight;
            }
            return false;
          },
          child: ListView(padding: EdgeInsets.zero, children: [
            Container(height: 500, color: Colors.orange),
            Container(height: 500, color: Colors.yellow),
            Container(height: 20, color: Colors.green),
          ]),
        ),
        bottomNavigationBar: BottomNavigationBar(
          elevation: 0,
          backgroundColor: Colors.white.withOpacity(0.1),
          items: const [
            BottomNavigationBarItem(icon: Icon(Icons.eleven_mp), label: "1"),
            BottomNavigationBarItem(icon: Icon(Icons.eleven_mp), label: "2"),
          ],
        ),
      ),
    );
  }
}

Logs

[✓] Flutter (Channel stable, 2.8.1, on macOS 11.6.1 20G224 darwin-x64, locale en-DE)
    • Flutter version 2.8.1 at /Users/tobias/Documents/Dev/Tools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/tobias/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Users/tobias/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7784292/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Android Studio (version 4.2)
    • Android Studio at /Users/tobias/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tobias/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7784292/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.3)
    • IntelliJ at /Users/tobias/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-1/212.5457.46/IntelliJ IDEA.app
    • Flutter plugin version 62.0.3
    • Dart plugin version 212.5632

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • ONEPLUS A5000 (mobile) • fd788fa0 • android-arm64  • Android 10 (API 29)
    • macOS (desktop)        • macos    • darwin-x64     • macOS 11.6.1 20G224 darwin-x64
    • Chrome (web)           • chrome   • web-javascript • Google Chrome 96.0.4664.110

• No issues found!

Issue is reproducible using sample provided by author above.

video
https://user-images.githubusercontent.com/88313112/147940241-2607019c-9782-45ef-bb2d-edaa12d830ce.mov

flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 11.6 20G165 darwin-arm, locale en-GB)
    • Flutter version 2.8.1 at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:318:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1428:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1863:10)
      #15     runZonedGuarded (dart:async/zone.dart:1851:12)
      #16     runZoned (dart:async/zone.dart:1782:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:197:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:301:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:53:47)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1290:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1140:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 31) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 11.6 20G165 darwin-arm
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 96.0.4664.110

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.9.0-1.0.pre.229, on macOS 11.6 20G165 darwin-arm, locale en-GB)
    • Flutter version 2.9.0-1.0.pre.229 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 762bf0ab85 (2 hours ago), 2022-01-03 23:55:17 -0500
    • Engine revision ee91a97e55
    • Dart version 2.16.0 (build 2.16.0-134.0.dev)
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:205:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 31) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 11.6 20G165 darwin-arm
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 96.0.4664.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

/cc @Piinks

When paintOffset is used with SliverAppBar, the indicator needs to follow the scroll and move to the edge of the viewport. (the bar will shrink when scrolling)
It now appears that we need a property to control this behavior. what is your opinion? CC @Piinks

Hm, it looks to me that the paintOffset is not being set in accordance with the expectation. The glow is being drawn paintOffset from the edge of the scroll view, and then the edge is scrolled away. It is staying at the specified paint offset from the edge of the scroll view as directed. It looks to me like the behavior is expected based on the code, although there may be a different bug here.
I would expect the Glow to appear above the BottomNavigationBar by default, like there should be some padding passed along that the Glow responds to.


Suggestion to make client javascript function call easier

I was working on something today, the requirement was to call a JavaScript function when there is a button click.
<input type="button" onclick="callJavascriptFunc" value="click"/>

I do not know but i guess with the current framework we can call only C# functions in onclick.
<input type="button" onclick="csharpFunction" value="click"/>

@functions{
public void csharpFunction(){
//if i want to call any javascript function then i have to call
//RegisteredFunction.Invoke<> here
//this function works like a middle man or proxy here
}
}

how it will be if we make the call easier i.e.
<input type="button" onclick="javascript:csharpFunction" value="click"/>

Here based on the keyword JavaScript the framework will call the JavaScript function directly, if the keyword JavaScript is missing then call C# function.In this case there is no need of any C# function to proxy the call JavaScript function.

The onclick attribute value will be treated as JS by default. for example, this works today:
<button onclick="alert('JS!')">Alert</button>

If you want to use a C# method to handle the onclick event you prefix the handler with "@":
<button onclick="@MyCSharpMethod">Alert</button>

@functions {
    void MyCSharpMethod()
    {
        Console.WriteLine("Called MyCSharpMethod");
    }
}

Or using C# lambda syntax:
<button onclick="@(() => Console.WriteLine("Called MyCSharpMethod")">Alert</button>


Can't connect to HomeBridge (No error messages)

I've done all steps  but my iphone never passes the spinning wheel at the screen "Adding homebridge" and finishes with a warning message "could not add HomeBridge". I have tried the recommended things posted here. What can I do?
Versions
C:\Users\Robin>homebridge --version
0.4.33
C:\Users\Robin>node --version
v8.9.3
Os: Windows 7 64-bit
Configuration
{
	"bridge": {
		"name": "HomeBridge",
		"username": "CC:22:3D:E3:CE:51",
		"port": 51826,
		"pin": "031-45-156"
	},

	"description": "HomeBridge HTTP Status Control",

"platforms": [{
  "platform": "TplinkSmarthome",
  "name": "TplinkSmarthome"
}]
}

Homebridge Log / Command Output
C:\Users\Robin>homebridge
[2018-1-7 20:43:24] Loaded plugin: homebridge-http
[2018-1-7 20:43:24] Registering accessory 'homebridge-http.Http'
[2018-1-7 20:43:24] ---
[2018-1-7 20:43:24] Loaded plugin: homebridge-tplink-smarthome
[2018-1-7 20:43:24] Registering platform 'homebridge-tplink-smarthome.TplinkSmar
thome'
[2018-1-7 20:43:24] ---
[2018-1-7 20:43:24] Loaded config.json with 0 accessories and 1 platforms.
[2018-1-7 20:43:24] ---
[2018-1-7 20:43:24] Loading 1 platforms...
[2018-1-7 20:43:24] [TplinkSmarthome] Initializing TplinkSmarthome platform...
[2018-1-7 20:43:24] [TplinkSmarthome] homebridge-tplink-smarthome v3.10.0, node
v8.9.3, homebridge v0.4.33
Setup Payload:
X-HM://0023ISYX0KNAO
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebri
dge:
┌────────────┐
│ 031-45-156 │
└────────────┘

[2018-1-7 20:43:24] Homebridge is running on port 51826.
[2018-1-7 20:43:24] [TplinkSmarthome] New Device Online: [Kitchen] plug [8006ECC
C1601CFDA436B227FFC8B5C2A170BE67C] <IP_ADDRESS> 9999
[2018-1-7 20:43:24] [TplinkSmarthome] Adding: [Kitchen] plug [8006ECCC1601CFDA43
6B227FFC8B5C2A170BE67C]
[2018-1-7 20:43:25] [TplinkSmarthome] New Device Online: [My Smart Bulb] bulb [8
012DBCE6E716E720FA5E8C90C15DEA11873E4A7] <IP_ADDRESS> 9999
[2018-1-7 20:43:25] [TplinkSmarthome] Adding: [My Smart Bulb] bulb [8012DBCE6E71
6E720FA5E8C90C15DEA11873E4A7]
[2018-1-7 20:43:34] [TplinkSmarthome] New Device Online: [Bookshelf] plug [80066
53B1BCA3C621BC7A8D9B1FFDA2D170EAD7A] <IP_ADDRESS> 9999
[2018-1-7 20:43:34] [TplinkSmarthome] Adding: [Bookshelf] plug [8006653B1BCA3C62
1BC7A8D9B1FFDA2D170EAD7A]
[2018-1-7 20:43:34] [TplinkSmarthome] New Device Online: [Bedroom] plug [800690C
1F923C587297943C1E3DCBE861712B92F] <IP_ADDRESS> 9999
[2018-1-7 20:43:34] [TplinkSmarthome] Adding: [Bedroom] plug [800690C1F923C58729
7943C1E3DCBE861712B92F]
[2018-1-7 20:43:34] [TplinkSmarthome] New Device Online: [Living Room Window] pl
ug [800603B5F18C13D225326036C2434BF6171288A2] <IP_ADDRESS> 9999
[2018-1-7 20:43:34] [TplinkSmarthome] Adding: [Living Room Window] plug [800603B
5F18C13D225326036C2434BF6171288A2]

I started having the same problem.  Fully working homebridge that had been rock solid for months, suddenly stopped responding in the IOS home app.  I removed the accessory in home app, accessories and persist directories on homebridge and restarted, still can't manually add the accessory in the home app. Really weird, this same configuration has been working all along w/out issue.  I even tried to update all accessories and homebride app itself, still not working.  I'm now at a total loss what's wrong, anyone have ideas?  IOS 11.2.5

I have excatly the same issue every few weeks, the whole thing stops responding in the homekit (and eve) app. Homebridge is running fine (according to the logs). nothing really helps. i have an old backup that i restore to get it working again. It just not reliable. Any solutions out there?


Retweets only from one account

I made a search query to find tweets from a list of specific users. The issue is that it only ever retweets from one user out of the list. Using from:user1 OR from:user2 OR ... from:userN in the query only ever gets tweets from the user1

I wonder if part of the reason is how I formatted the string I pass to the q parameter in searchQuery
In the original project they put a simple "#hashtag" which implies I didn't need to http format it like the Twitter API says. I'm going to try modifying the string to use the special characters and see if that changes anything.

Those weird tweets are from ifttt. This bot hasn't worked once


[Site]: Request to Update Twitter Icon to X

Current State
Description of the current state/issue:
The Twitter logo has been updated recently and hasn't been updated on the site. I didn't find any issue related to this. hasn't
Link to the page:
https://apisix.apache.org/
Screenshots (if relevant):

@justinmclean
I am just starting with open source contribution. I would love to take this issue as my first ever contribution could you please assign this to me?
Desired State
Description of the change you are proposing:
Twitter logo should be changed to X
Would you like to fix this issue?
Yes! Count me in

can I work on this issue?

created a PR, please review - https://github.com/apache/apisix-website/pull/1678

#1683 should fix this.


[TACHYON-470] Fix TachyonConf.getFloat by removing default value

JIRA: https://tachyon.atlassian.net/browse/TACHYON-470
getFloat is still taking a default value. This PR aims to remove the default value parameter.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/4280/
Test PASSed.

I just had a minor question. Thanks @apc999 !

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/4289/
Test PASSed.

LGTM


[build] Add copy_shim_headers to all target

Currently copy_shim_headers is only invoked as a dependency to swiftCore. It isn't invoked at all when you are not building the stdlib, resulting in a broken compiler in the build directory because there is no clang resource directory where it expects it (via symlink_clang_headers).
Adding it to the all target fixes the issue, so it can be run without compiling swiftCore.

@lorentey, would you review?


Extension causes high cpu load

Issue Type: Performance
Extension Name: c-cpp-runner
Extension Version: 1.4.0
OS Version: Windows_NT x64 10.0.19043
VS Code version: 1.60.1

:warning: Make sure to attach this file from your home-directory:
:warning:c:\Users\diego\AppData\Local\Temp\franneck94.c-cpp-runner-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

Currently the extension should be fast enough on start-up. However, since the compilers are searched on the PC it can take some milliseconds.


Pipenv improvements

I've done this mostly to test the new pipenv. But I guess we can keep it and set up a dependabot.

Thank you, looks good to me.


Various improvements

Changes:

sort meetups by date (most recent first)
Add missing Weaveworks and NordCloud sponsors, add more logos
Add support for registering "member companies" that have not (yet!) sponsored any meetups, but are active in the area.

cc @kaspernissen @netumoliver

/LGTM


I need RC1 version of ".NET Core Windows Server Hosting"

hello there... i hope you are all doing well... first and foremost congrads on the rc2 release...
i have a problem... i don't have time at this moment to upgrade my asp.net core RC1 app to RC2 although i certainly plan to do so soon... but in the meantime i need to deploy for the first time my RC1 app to a windows server 2008... i am following the iis publishing instructions found here: https://docs.asp.net/en/latest/publishing/iis.html#install-the-net-core-windows-server-hosting-bundle ... but the problem is that the download link for the ".NET Core Windows Server Hosting bundle" has already been updated to RC2... but my app is still RC1 so i don't think that will work... can anyone please provide a link for the RC1 version of the ".NET Core Windows Server Hosting bundle"???? even if i did have time to update to RC2, the server we are using is windows 2008 yet the supported platforms for RC2 is 2012 and above... RC2 does not appear to support windows server 2008... again can anyone provide a link for the RC1  ".NET Core Windows Server Hosting bundle"???? thank you so much!!!!

There is a switch in the lower right portion of the navbar that lets you switch versions of the docs.
https://docs.asp.net/en/1.0.0-rc1/publishing/iis.html

@rdefreitas ... thank you thank you

@giancarloa I'm not sure where you saw that. .NET Core is supported on WS 2008 R2 and above. However, it is true that the ASP.NET Core Module (in the server hosting bundle) does not support RC1-era applications. You are correct in that you do need the HTTP Platform Handler, as @rdefreitas pointed you to.

thanks @GuardRex ... in the rc1 version of the documentation it says windows 2008 r2 (https://docs.asp.net/en/1.0.0-rc1/publishing/iis.html#supported-operating-systems)... is it correct then to say that with rc2 windows 2008 r2 is NOT supported???? thanks

2008R2 has been continuously supported. The only major difference is that with rc1, you must use the HTTP Platform Handler (often called "HPH") (and it had a number of missing features), while on rc2, you must use the ASP.NET Core Module (often called "ANCM") (part of the Windows Server Hosting Bundle).
https://docs.asp.net/en/latest/publishing/iis.html

What if you run the nightly builds 1.1.0-alpha*. Latest only gives me version 1.0.0 still. Is there a secret switch or will those links get updated when new versions are built?

We'll get the hosting bundle and ANCM as they are released. The next release will be 1.0.1 (soon ... https://blogs.msdn.microsoft.com/dotnet/2016/07/15/net-core-roadmap/ ), and I expect we'll get a new bundle/ANCM when that comes out if their pattern holds.
They're working on open-sourcing the ANCM. At that point, we should be able to keep up with module "nightly;" although, I get the impression that the module gets attention in spurts, so it probably won't be a "nightly" thing ... more of a "whenever they're working on it thing." :smile:


bsg_axil_demux

I am not sure if bsg_axil_demux (and maybe bsg_axil_mux as well) can handle multiple outstanding requests properly?
For example, in bsg_axil_demux, after s00 keeps writing data to m00 without getting any bvalid from m00, once m00 sends one bvalid to s00, the m00_wgnt will be cleared. Maybe m00_wgnt should stay high until m00 has sent as many bvalids as the previous write transactions.

Yeah seems reasonable -- https://github.com/black-parrot-hdk/black-parrot-subsystems/blob/5904dd769f2a4ebdacd7889e881c8a1c3f5f6dc2/axi/v/bsg_axil_demux.v#L99 could be a fifo instead of a register

Fixed with #7


[New Theme Request] gitea

I would love to see themepark to support gitea. Gitea is a self-hosted git repo management system like github or gitlab.
https://github.com/go-gitea/gitea

There is a gitea branch now, that I've made some progress on. But theres still lots to do.

Changes are now in master, about 90% done.

Should be about 99% finished now:
Instructions here: https://github.com/gilbN/theme.park/wiki/Gitea
Let me know if you find any bugs


DBZ-2975: merge changes from upstream/master

The branch was created from upstream/master soon after v1.5.0.Beta1:
$ git merge-base sugarcrm/DBZ-2975 upstream/master
ef73aa4254b0f7aaa3a36a281d57541b4c968e2a

$ git log ef73aa4254b0f7aaa3a36a281d57541b4c968e2a -3
commit ef73aa4254b0f7aaa3a36a281d57541b4c968e2a (sugarcrm/master, jgminder/master)
Date:   Tue Feb 23 16:30:37 2021 -0500

    DBZ-3138 Add content about pgoutput security nuances

commit b4c260da50e35532d34984b4303cbb2e9627bf76
Date:   Tue Feb 23 14:04:01 2021 -0500

    [maven-release-plugin] prepare for next development iteration

commit 123a711a6d5732f648a9fe53f63b9529b391d12d (tag: v1.5.0.Beta1)
Date:   Tue Feb 23 14:04:01 2021 -0500

    [maven-release-plugin] prepare release v1.5.0.Beta1

So it's currently ~3 weeks out of date.
The 600+ commits dated 2020 seem to be coming from https://github.com/debezium/debezium/pull/2177 and probably other similar PRs.
There was a minor conflict and additional code adjustments needed to accommodate the changes from https://github.com/debezium/debezium/pull/2182.

The commit message check failure is inevitable: the build checks every commit between the base and the head, but some of them come from automated processes and don't follow the PR messages rules.
We can make an exception and merge such PRs with a failing build step given that the rest of the steps pass. An alternative would be to rebase instead of merging but it would have certain downsides:

You cannot test a rebase on CI (you have to force-push it instead).
The currently open PR would have to be rebased via git rebase --onto.


Typo in Azure Arc exercises

There is a type for Azure Arc exercises in this sentence
est Practices Assessment (BPA) is a service to scan the configuraiton

Fixed


GPU stuck on lowest power state with ppfeaturemask

Ubuntu 18.04 4.15.0-32, ROCm 1.8.2, GPU FuryX, CPU AMD Ryzen 1700X.
The GPU was working fine with amdgpu-pro 18.20.
I installed ROCm 1.8.2, and clinfo works correctly.
I tried to run gpuowl https://github.com/preda/gpuowl ,
it runs correctly but very slowly (about 4 times slower than normal).
I see with rocm-smi that the GPU is stuck in the lowest power state, and it draws only 50W (while normally under load draws 220W).
I tried to manually set the power state higher with rocm-smi --setsclk 7, but it has no effect (or the state is immediately reset back to 0).
Seems a similar situation with what's reported here:
https://github.com/RadeonOpenCompute/ROCm/issues/491
Attached output of lshw
lshw.txt

@preda I have similar problem with amdgpu-pro. Sometimes a gpu starts correctly and after a while it gets stuck, temperature drops, and, when I stop the program, an error occurs: amdgpu_timedout. I have investigated my hardware bios settings but could not find anything related.

I think this is caused by setting
GRUB_CMDLINE_LINUX_DEFAULT="amdgpu.ppfeaturemask=0xffffffff"
In /etc/default/grub
I think that being stuck on lowest power in that case is still a bug, but at least now I have some understanding of the reason and a workaround.

To start: if you're worried about frequencies and power states, it's probably worth reporting along with your initial report that you're running in a non-standard mode. How were any of us to know that you were setting a non-default ppfeaturemask? :)
You're turning on OverDrive in the powerplay featuremask. This features allows you to adjust the clocks and voltages associated with each of the DPM (voltage/frequency) states on the GPU. (Note that this is slightly different than the OverDrive features in rocm-smi, which allows you to add up to 20% more frequency to the highest DPM state for "high frequency overclocking".) This is set by bit 14 in the feature mask, and it is normally off by default.
This feature enables, for instance, the "pp_od_clk_voltage" sysfs entry. You can find documentation in the amdgpu driver code for what that sysfs entry means.
By default, the DPM table is filled in the VBIOS. So when you set SCLK to level 7 using rocm-smi, you would normally get the high-frequency DPM7 SCLK, which is high voltage and frequency.
If you are modifying your GPU's DPM states incorrectly, you may be causing the problems you are seeing. For instance, if you set all of your DPM states to a low frequency by accident, then it won't matter what SCLK state you choose using rocm-smi -- you will run at that low frequency.
Also note that you may not always run at the high DPM states that you request with rocm-smi. If, for example, your GPU is using too much power, the hardware frequency manager may force you into a lower DPM state in order to avoid damaging the card.
In any case, I am unable to reproduce this issue on ROCm 1.9, even with the ppfeaturemask enabling overdrive. Tested with gpuowl and other applications on a Fiji GPU -- frequencies hit where they are expected, as does performance.  I'm going to close this for now -- if you believe you have a set of steps that will reproduce this issue generally on ROCm 1.9, please post them. :)

The only change I did was enable the ppfeaturemask, but I didn't write or change anything on pp_od_clk_voltage. In that situation I would still expect the GPU to ramp up the clock on usage, as usual. So it still looks like something is not right, but I'm OK with closing this for now. It's indeed strange that you couldn't repro, thanks for looking into it by the way.


Cannot create stackset with an account filter type INTERSECTION

I want to deploy a StackSet to an OU, but I only want to deploy it to a sub-set of accounts in the same OU. In CloudFormation I would use the AccountFilterType: INTERSECTION (StackSets deploys to the accounts specified in Accounts parameter). However I cannot generate this code with the L2 StackSet Construct.

I am looking for same feature

This would be a great feature enhancement.  ServiceManaged stack sets require you add an OU.  When trying to deploy using StackSetTarget.from_accounts, this fails when the DeploymentType is service_managed.
You get this error: Resource handler returned message: "Invalid request provided: OrganizationalUnitIds should be specified in SERVICE_MANAGED mode"
It seems that StackSetTarget.from_organizational_units already supports:
additional_accounts (filter type = Union)
exclude_accounts (filter type = Difference)
It just does not support only_these_accounts (filter type = Intersection)

I desperately need this.
In the meantime, does anyone have a workaround for modifying the underlying L1 CfnStackSet construct to modify the AccountFilterType to "INTERSECTION"?
I tried, in Python, with
cfn_stack_set = stack_set.node.default_child
cfn_stack_set.stack_instances_group[1].deployment_targets.account_filter_type = "INTERSECTION"
# [1] because it's my second Stack Instances Group that I want to modify

based on the escape-hatch method described here:
https://docs.aws.amazon.com/cdk/v2/guide/cfn_layer.html#cfn_layer_resource
but I got:
TypeError: 'InterfaceDynamicProxy' object is not subscriptable

print(cfn_stack_set.stack_instances_group)
print(dir(cfn_stack_set.stack_instances_group))

gives
<jsii._reference_map.InterfaceDynamicProxy object at 0x7fc82886f460>
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattr__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_delegates']

Does anyone know how I can edit the L1 CfnStackSet as a workaround for not currently being able to set an AccountFilterType of INTERSECTION for a service-managed stack with this construct?

I can do this in TypeScript by doing:
const set = new ss.StackSet(...)

const child = set.node.defaultChild as cdk.CfnStackSet

child.addPropertyOverride('StackInstancesGroup.0.DeploymentTargets.AccountFilterType', 'INTERSECTION')


Fix GraphVisual to accept morph::vec and std::array containers of data for graphing

See https://github.com/ABRG-Models/morphologica/tree/issue/150_array_with_GraphVisual


Could not load DERP servers map file error on Ubuntu 20.04

I'm trying to get headscale to work, but I'm stuck over this error.
$ docker run -v $(pwd)/private.key:/private.key -v $(pwd)/config.json:/config.json -v $(pwd)/derb.yaml:/derb.yaml -p <IP_ADDRESS>:8080:8080 headscale/headscale headscale serve
  2021-09-18T10:19:24Z ERR Could not load DERP servers map file error="open : no such file or directory" path=
  2021/09/18 10:19:24 Error initializing: ephemeral_node_inactivity_timeout () is set too low, must be more than 1m5s

Running headscale namespaces create $NAMESPACE results in the same error.
I've tried both the binary and Docker, but both seem to be stuck.
When entering the Docker container with docker run --rm -it -v $(pwd):/root headscale/headscale sh and running headscale I see the command executes fine, and headscale version returns dev. Still I cannot create a namespace or start the server.

derb vs derp ?

The command from the README says derb.yml, but now I see that the parameter should be derp.yml. (I've also created a PR for another typo).
https://github.com/juanfont/headscale/blame/main/README.md#L86
Still no luck though. I'm always getting the same error, both when trying to create a namespace and when trying headscale serve
2021-09-19T14:23:00Z ERR Could not load DERP servers map file error="open : no such file or directory" path=
2021/09/19 14:23:00 Error initializing: ephemeral_node_inactivity_timeout () is set too low, must be more than 1m5s

Try just /derp.yaml pointing to your locally stored derp.yaml.
The docs didn't work for me, but /derp.yaml did.

Typo in readme fixed!


Q2 daily history after asset death

Coverage decreased (-0.007%) to 83.779% when pulling 7ca31cf71c4ee4a98abc54777a53f80ec7723076 on q2-daily-history-after-asset-death into a5e5b8ab14694515bf55de70b8afbdb30f3fcd1f on lazy-mainline.


Patch AnnData.sizeof() for backed datasets

[x] Closes #1222
[ ] Tests added
[x] Release note added (or unnecessary)

Thanks! This helps a lot, but I think there are still a few assumptions that could break.
We can of course help out with testing or so, just tell us if you need support!
PS: Please also add a release note here:
https://github.com/scverse/anndata/blob/af7a5b74bdab8cf4b640730bca0f99ac4e0b36b3/docs/release-notes/0.10.4.md#L3-L5

Hello @flying-sheep
Maybe I need some help for testing / refinement of the specs we are aiming for here.
I designed this naive test to append under anndata/tests/test_backed_sparse.py
def test_backed_sizeof(ondisk_equivalent_adata):
    csr_mem, csr_disk, csc_disk, dense_disk = ondisk_equivalent_adata

    assert_equal(dense_disk.__sizeof__(), csr_mem.__sizeof__())
    assert_equal(dense_disk.__sizeof__(), csr_disk.__sizeof__())
    assert_equal(dense_disk.__sizeof__(), csc_disk.__sizeof__())

it does two passes, testing both h5ad and zarr backends.
However it highlighted that the current cs_to_bytes() implementation can return quite different results than multiplying number of elements by the size of individual elements.
E.g if you place a breakpoint on the first assert:
nelem_x_size = lambda X: np.array(X.shape).prod() * X.dtype.itemsize
cstb = lambda X: X.data.nbytes + X.indptr.nbytes + X.indices.nbytes

cstb(csr_mem.X)
3204
cstb(csr_disk.X)
3204
cstb(csc_disk.X)

Thanks! This helps a lot, but I think there are still a few assumptions that could break.
We can of course help out with testing or so, just tell us if you need support!
PS: Please also add a release note here:
https://github.com/scverse/anndata/blob/af7a5b74bdab8cf4b640730bca0f99ac4e0b36b3/docs/release-notes/0.10.4.md#L3-L5

Hello @flying-sheep
Maybe I need some help for testing / refinement of the specs we are aiming for here.
I designed this naive test to append under anndata/tests/test_backed_sparse.py
def test_backed_sizeof(ondisk_equivalent_adata):
    csr_mem, csr_disk, csc_disk, dense_disk = ondisk_equivalent_adata

    assert_equal(dense_disk.__sizeof__(), csr_mem.__sizeof__())
    assert_equal(dense_disk.__sizeof__(), csr_disk.__sizeof__())
    assert_equal(dense_disk.__sizeof__(), csc_disk.__sizeof__())

it does two passes, testing both h5ad and zarr backends (you may add diskfmt in the argument list of the test function to check).
However it highlighted that the current cs_to_bytes() implementation can return quite different results than multiplying number of elements by the size of individual elements.
E.g if you place a debug breakpoint on the first assert and execute some commands:
nelem_x_size = lambda X: np.array(X.shape).prod() * X.dtype.itemsize
cstb = lambda X: X.data.nbytes + X.indptr.nbytes + X.indices.nbytes

# h5py pass
cstb(csr_mem.X)
3204
cstb(csc_disk.X._to_backed())
3204
cstb(csr_disk.X._to_backed())
3204
nelem_x_size(dense_disk.X)
20000

# zarr pass
cstb(csr_mem.X)
3204
cstb(csc_disk.X)
3204
cstb(csr_disk.X)
3204
nelem_x_size(dense_disk.X)
20000

Lead
Then I decided to try re-implementing the get_size function like this:
def get_size(X):
    if isinstance(X, (h5py.Dataset,
                      sparse.csr_matrix,
                      sparse.csc_matrix,
                      BaseCompressedSparseDataset)):
        return np.array(X.shape).prod() * X.dtype.itemsize
    else:
        return X.__sizeof__()

Effect on the test:
# h5py pass
get_size(csr_mem.X)
20000
get_size(csr_disk.X)
20000
get_size(csc_disk.X)
20000
get_size(dense_disk.X)
20000

# zarr pass
get_size(csr_mem.X)
20000
get_size(csr_disk.X)
20000
get_size(csc_disk.X)
20000
get_size(dense_disk.X)
20128

The test fails because of the size of dense_disk.X an np.ndarray is slightly bigger than the sum of its parts. Now I feel a little blocked because X can contain many data structures and harmonizing this calculation to the bit seems near-impossible at worst and hacky at best.
### Reflexions
I am starting to question implementing this directly in __sizeof__(), since it should in principle return the size of the object and not the size that it would be if data had been realized.
Maybe this deserves another function that has a more explicit name ? Or that function could simply compute the size of the data making it less precise but good enough in terms of order of magnitude.
I see that #981 and #947 are about adding lazy support for other coordinates than X, I think this is something that we need to think about while designing that feature as well.
Let me know what you think.
Best,

X can contain many data structures, harmonizing this calculation to the bit seems near-impossible at worst and hacky at best.

What do you mean? I do you mean things like DataFrames, which have several parts, or do you mean that there can be complex dtypes that aren’t easy to calculate size for?
I’d say: Only test simple cases.
Unless I misunderstood and even simple arrays can have varying sizes. In that case maybe just assert lower_bound < size < upper_bound or so.

Hm, I think I wasn’t clear enough. What I meant is

For each data type you add support for, it’s better to have not entirely precise size measurements rather than none.

With a focus on entirely. The current (without your PR) X_csr.data.nbytes + X_csr.indptr.nbytes + X_csr.indices.nbytes is correct for sparse matrices AFAIK.
np.array(X.shape).prod() * X.dtype.itemsize is the size a dense array would have, which is much more than the above. So I don’t understand why you change that.

@flying-sheep
Hello,
I've returned to the cs_to_bytes method for sparse datasets and split tests between sparse and dense.

Thank you for the PR and for being patient with my many requests 😄

Sure, with pleasure. It was fun to dig into it :) Happy that it passed.
Best,


WIP: feat(storybook): Storybook 7, migrate docs from READMEs to stories, add guides

Description of changes
This PR implements:

Migrate to Storybook 7 and update docs
Make Storybook work automatically with sample tacosoft data

See preview

Checklist
Before merging to main:

[x] Tests
[x] Manually tested in React apps
[ ] Release notes
[ ] Approved

Release notes
# Component changes

## Time Series

- Added X feature to Time Series.

## Leaderboard

- Fixed Y bug to Leaderboard.

## Counter

- Added Z feature to Counter.

# Package changes

## GraphQL

- Added X query to GraphQL package.

# App changes

## React 18 example

- Added X test to React 18 example.

## Storybook

- Added Y story for Time Series.

It seems like changing the theme is not working? Maybe this is not a feature for this PR and we'd want to remove this button instead?
https://github.com/propeldata/ui-kit/assets/84721399/d1532ef0-e3a0-4735-8a47-35ce75feb7db

It seems like changing the theme is not working? Maybe this is not a feature for this PR and we'd want to remove this button instead?
Screen.Recording.2023-09-18.at.10.58.08.AM.mov

Yeah, we don't have theme support yet. I made a few experiments and this is a legacy. I've temporarily removed the theme switcher from the toolbar.