CSV Output - peak and mean cluster value

Not sure if this is just the case for me, but I ran atlasreader on some data and I observed two particular issues in the CSV tables.

for peaks.csv - all the peak_values where 0.0
for clusters.csv - mean_value is accurate to ~13 decimal places

Is that the same for others as well? Also, what do you think about restricting the number of decimal places for mean value? Or is just a stylistic obsession of mine, to round decimal numbers to a few decimal places?

The peak_values shouldn't be 0!!!  I'll try running it on a few other things to see if I can recreate.
As for mean_value in the clusters.csv file: I definitely agree. I'm personally a fan of 2-3 decimals. What we you thinking?

clusters.csv - I was also thinking of 2-4 decimals. But that might be problematic. Let's imagine somebody loads an image that only has values between 0.00001 and 0.0001. It shouldn't be on us to force a specific accuracy. So perhaps it's even better to move it to scientific notation?

We can do that! But don't we need to specify the number of significant digits in that case, too? I.e., if there's a value of 0.00001152315 would we print 1.152315e-5 or 1.15e-5?

+1 on all these points.
From this stackoverflow answer, the new format for string outputs to 3 significant figures in scientific format would be: '{:0.3e}'.format(x)
For more details see: https://docs.python.org/3/library/string.html#format-specification-mini-language

Thanks @KirstieJane - I like the '{:0.3e}'.format(x) version. But I'm hesitating to increase the decimal to 4-6 significant figures. Higher precision might be relevant for people who want to run additional statistics on those values, no?

Yep - I think 5 is totally fine in scientific notation. I can't imagine anyone needing much more than that (insert something something about MRI being a noisy measure in the first place!!)

Gah - just had a thought - is writing out the numbers in scientific notation going to be a problem for reading back in the values to another piece of software or programme?

Very good point @KirstieJane, I think the scientific notation could cause many problems in SPSS and similar tools, no? What do others think is the best? I mean we can also just leave it as it is, like this it is as precise as it can be.
Otherwise, I'm also inclined to just use float256 and get zillion of decimal numbers.

I think writing out to a readable number of decimal places is a key feature - for 90% of the users 5 dp will be more than enough.
(I'll stop pinging now and let other team members share their opinions!)

Looking at @KirstieJane's link to the Python docs, I think we can also use 'g' notation and let Python decide when scientific notation is necessary:
>>> print('{:g}'.format(5.1235125))
5.12351
>>> print('{:g}'.format(0.0051235125))
0.00512351
>>> print('{:g}'.format(0.00000000051235125))
5.12351e-10

g notation rounds to a given number of significant digits (by default, 6), and decides whether float or scientific notation is more appropriate—if the exponent in scientific notation would be >=-4, it uses float; otherwise, scientific notation.
I think this might be a nice compromise between the two options! I'm happy for either 5 or 6 significant digits, too, especially given Kirstie's point:

(insert something something about MRI being a noisy measure in the first place)

I don't think much more than 5 or 6 sig digits is anything we can reasonably measure with MRI, especially with the type of statistical maps that will be used here :sweat_smile:

AH YES. What if I had actually read the link that I added 🤦♀
g format sounds 💯

... I opened the link but somehow didn't bother to scroll to g`` :man_facepalming: g` sound perfectly fine. Also with the default 6 dp.

Do you want to incorporate those changes @rmarkello?
Also, were you able to investigate the zero... wait. I don't have the issue with the peak values being zeros, anymore. So I guess for now this first point is debugged.

This doesn't seem to be an issue anymore (at least I cannot recreate the problem). I think the usage of np.column_stack and np.row_stack prevent float64 format. By using either of those stack commands all values in numpy array become strings (which causes float64 to collapse to float32 if I'm not mistaken). This means also that all elements in the pandas dataframe are of type object. And therefore the to_csv function cannot consider any kind of number format for floats.
For the cluster summary file this all can be bypassed with the following changes:
@@ -583,11 +583,11 @@ def get_statmap_info(stat_img, atlas='all', voxel_thresh=1.96,

     # construct dataframes and reset floats
     atlasnames = [a.atlas for a in atlas]
-    clust_frame = pd.DataFrame(np.row_stack(clust_info),
+    clust_frame = pd.DataFrame(clust_info,
                                columns=['cluster_id',
                                         'peak_x', 'peak_y', 'peak_z',
                                         'cluster_mean', 'volume'] + atlasnames)

@@ -696,10 +696,12 @@ def create_output(filename, atlas='all', voxel_thresh=1.96, cluster_extent=20,
             min_distance=min_distance)

         # write output .csv files
-        clust_frame.to_csv(op.join(
-            outdir, '{}_clusters.csv'.format(out_fname)), index=False)
+        clust_frame.to_csv(
+            op.join(outdir, '{}_clusters.csv'.format(out_fname)),
+            index=False, float_format='%g')

To correctly format the peak summary file we would need to rewrite the section here https://github.com/miykael/atlasreader/blob/master/atlasreader/atlasreader.py#L490 and here https://github.com/miykael/atlasreader/blob/master/atlasreader/atlasreader.py#L587. And I'm not sure if this is worth all this trouble.


Add support for base16-vim

Closes #859

This PR seems to be a duplicate of #1006.

closing in favor of #1006


Remove Outdated Assertions

Blocking ethereum/EIPs#5400. It is safe to do this.

@MicahZoltu I request your "submit review"-clicking prowess.

Please get a review from another editor.  I don't feel comfortable deciding what is/isn't appropriate to merge as I'm no longer an editor.

CC @JEAlfonsoP, but @MicahZoltu you are the only person that has the ability to merge.
Actually, I guess @axic does.

I don't mind clicking the button once there is approval from other editors, but I don't want to be the one deciding to click the button.

@MicahZoltu


Remove async_await feature

Description

async_await feature has been stabilized.
Motivation and Context

How Has This Been Tested?

Types of changes

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

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

I am trying to build surf v1.0.2 with rust v1.38.0 and get lots of these errors:
error[E0658]: async blocks are unstable
  --> $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/surf-1.0.2/src/http_client/isahc.rs:41:18

Are they related to this PR?

@devurandom you need to build Surf with 1.40 nightly / 1.39 beta


Could not fetch data from PokemonGo-Map instance using Sniper

Expected Behavior
The bot fetches data from a local PokemonGo-Map instance and snipes Pokémon accordingly.
Actual Behavior
The bot displays an error message and doesn't snipe Pokémon.
Your FULL config.json (remove your username, password, gmapkey and any other private info)
chemnitz.json
Output when issue occurred

[2016-09-24 10:40:52] [    Sniper] [INFO] Could not fetch data from 'http://localhost:5000/raw_data'. Details: 'NoneType' object has no attribute 'replace'. Skipping...

Steps to Reproduce

Run PokemonGo-Map
Run PokemonGo-Bot

Other Information
OS:  macOS 10.12
Branch: dev
Git Commit: e262b95eb15f144c89c1f17ffe434cecb4b3e9e6
Python Version: Python 2.7.12
Any other relevant files/configs (eg: path files) path1.gpx

I added the following to sniper.py to account for Nidoran F and Nidoran M as suggested here:
name = name.replace("Nidoran\u2642","nidoran m")
name = name.replace("Nidoran\u2640","nidoran f")```

I also tried removing the name mapping, but the error still appears:

```"name": {
	"param": "pokemon_name"
},```

Same for a clean install of e262b95eb15f144c89c1f17ffe434cecb4b3e9e6.

Try adding if name: to the top of fixname, see if that helps. If so, we might need to put that in.

That seems to have worked.
Thanks!

OK I'll put in a PR for it

#5661 should fix this for all


Catkins error

Hi, I followed ur tutorial and got stuck at this step after running the commands
echo "Configuring and building ORB_SLAM3 ..."
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
present in the build.sh
CMake Error at CMakeLists.txt:34 (find_package):
By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "catkin", but
CMake did not find one.
Could not find a package configuration file provided by "catkin" with any
of the following names:
catkinConfig.cmake
catkin-config.cmake

Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set
"catkin_DIR" to a directory containing one of the above files.  If "catkin"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu20/dev/ORB_SLAM3/build/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu20/dev/ORB_SLAM3/build/CMakeFiles/CMakeError.log".

It seems like CMake is unable to find the catkin package, which is required for building ORB_SLAM3. This typically happens if the ROS environment is not properly set up. Make sure that ros noetic is installed. And then ensure that the ROS environment is sourced. Add the following line at the end of your ~/.bashrc file:
source /opt/ros/noetic/setup.bash

Then, source the file:
source ~/.bashrc

Hi, i thanks for your help. I was able to fix this issue. Please close it. I do have a new error, so i will raise a new issue


feat: CICD

I didn't quite understand how this does the creation of a release tag can we go over this when you have some time?

I found this library to be widely used in the community https://github.com/goreleaser/goreleaser-action, example - https://github.com/tink3rlabs/example-app/blob/main/.github/workflows/release.yml#L22

I found this library to be widely used in the community https://github.com/goreleaser/goreleaser-action, example - https://github.com/tink3rlabs/example-app/blob/main/.github/workflows/release.yml#L22

I'll take a look, thanks!

I didn't quite understand how this does the creation of a release tag can we go over this when you have some time?

In .github/workflows/release-draft.yml there's a matcher on tags starting with v*, I think that this is how its triggered upon a release.
I'll rework the PR to be concise and clear.


Shadow DOM support for Ember

Discussed in https://github.com/percy/percy-ember/discussions/704

Originally posted by c69-addepar January 25, 2023
Hi Team, @itsjwala ,
since 1.19.0-alpha.0, @percy/cli now supports Shadow DOM.
Unfortunately, the changes in that repo alone are not enough to enable support for Ember apps. See https://github.com/percy/cli/pull/1165#issuecomment-1403956686
Happy to provide more details if needed.
CC: @mmun @aschenoni

Thank you so much @itsjwala ! We have confirmed that @percy/cli 1.19.2 + @percy/ember 4.0.2 work well with our code.
This allowed us to remove the fork of 1.0.3, and switch back to mainline Percy! 🎉


Domain routing

Hello,
Domain routing is not mapping the current locales.

@vahidtakro Please would you give more details of the error or an example reproducing it? Thanks


[ClangImporter] Fix swift_wrappers of non-pointer types.

We were mistakenly treating all swift_wrapper types as being okay to import as optional, but of course it depends on the underlying type. Just drop the SwiftNewtype import hint, and use the underlying type's hint.
rdar://problem/30955427

@swift-ci Please test


Add force-https option to individual SSH connections

As an override for the (missing) global config.

A slight complication is that this might not play well with load-balancing, if some services require HTTPS and others don't.


Plotly issue in visualize

Hi,
Im having issues when using 'plotly' as library.
Example :
i = 0
library = 'plotly'
textgen_config = TextGenerationConfig(n=1, temperature=0.2, use_cache=True)
charts = lida.visualize(summary=summary, goal=goals[i], textgen_config=textgen_config, library=library)
plot_raster(charts[0].raster)
Returns:
ValueError: Unsupported library. Choose from 'matplotlib', 'seaborn', 'plotly', 'bokeh', 'ggplot', 'altair'.

@trojrobert, any chance you can contribute a fix to this?

Yes I will check it out

Hi @victordibia and @trojrobert I just opened a PR to address this issue, please have a look

Closing this as it has been addressed by PR #44


Create a secrets.Wrap API for wrapping alternate secrets implementations

💸 TL;DR
This change allows creating an API-compatible Store object that delegates the calls to secret-getting functions to another store.
This is necessary because baseplate.go/v0 and edgecontext/v0 both hard-code *secrets.Store, and so it is not only a breaking change to replace them with an interface, it would require a lock-step change across two v0.x libraries, which is very likely to bite consumers.
🧪 Testing Steps / Validation

✅ Checks

[ ] CI tests (if present) are passing
[ ] Adheres to code style for repo
[ ] Contributor License Agreement (CLA) completed if not a Reddit employee

Hmm, it looks like the edgecontext library expects middleware to work...

Hmm, it looks like the edgecontext library expects middleware to work...

ah yes that's true. we actually use middleware to decode the jwt token once vs. every time it's used.

Closing in favor of https://github.com/reddit/baseplate.go/pull/588


C# code sample conflates eternal and singleton configurations

https://github.com/MicrosoftDocs/azure-docs/blob/091a5a9fb350b741121adf075c29f23aec18c6e4/articles/azure-functions/durable/durable-functions-singletons.md#L31
This is an insufficient check. If your singleton has completed (at least if it has completed recently), existingInstance will exist and existingInstance.RuntimeStatus will have a value of, e.g. OrchestrationRuntimeStatus.Completed.

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

ID: a5d6badc-f611-71ad-b167-aabfb95dc13f
Version Independent ID: db5c72cb-648c-5009-7261-1ba55703c08e
Content: Singletons for Durable Functions - Azure
Content Source: articles/azure-functions/durable/durable-functions-singletons.md
Service: azure-functions
GitHub Login: @cgillum
Microsoft Alias: azfuncdf

@Arithmomaniac Thanks for the feedback. We are investigating the issue and will update you shortly.

@Arithmomaniac Thanks for reporting this item! Yes you are right  instance id is fetched from the DurableFunctionHubInstances table and it will have a value when the runtime status is in completed, failed or terminated state. Hence we need to check the runtime status as well.
I have updated the doc and it will be published soon. We appreciate the feedback!


Signal rebind on a transformed Callable with a .bind() doesn't change arguments

Tested versions
Reproducible in 4.3 dev5 and 4.2 stable
System information
Windows 10, Godot 4.2 stable
Issue description
When using get_signal_connection_list() to obtain a copy of a callable - trying to unbind and rebind a value to this Callable - then disconnecting and connecting to a new version of the Callable obtained in this fashion does not replace the arguments when the signal is emitted
Steps to reproduce
Sample code:
extends Node2D
signal some_signal
func _ready():
	some_signal.connect(_some_test.bind("this"))
	var data = get_signal_connection_list(&"some_signal")
	print(data)
	some_signal.emit()
	some_signal.disconnect(data[0]["callable"])
	print(get_signal_connection_list(&"some_signal"))
	var new_callable = data[0]["callable"].unbind(1).bind("that")
	#var new_callable = Callable(data[0]["callable"].get_object(),
        #                            data[0]["callable"].get_method()).bind("that")
	some_signal.connect(new_callable)
	some_signal.emit()
func _some_test(arg):
	print(arg)

Step 1:  create some signal or use an existing signal and connect it to a Callable with a bind().
Step 2:  use get_signal_connection_list() to retrieve this Callable
Step 3:  use this Callable, unbind the arguments from it, rebind a new argument, and store it in a new variable
Step 4:  disconnect the callable
Step 5:  connect the new callable
Step 6:  emit the signal and check the argument that was passed

Rebuilding an entirely new callable (demonstrated in the commented code) from the object and stringname data solves this problem, but this situation is strange in that unbinding and rebinding a Callable should have the same effect as rebuilding a Callable from scratch.  Somehow despite checking the arguments have changed - using the same source Callable object (one where a value was bound) retains the argument when reconnecting a signal.
This situation also happens if it's not grabbed via get_signal_connnection_list() - this was simply the use case someone had brought to my attention in Discord.
ie:
    var some_callable = some_func.bind("this")
    signal.connect(some_callable)
    var new_callable = some_callable.unbind(1),bind("that")
    signal.disconnect(some_callable)
    signal.connect(new_callable)

this exhibits the same situation - it seems to specifically happen because the callable originally had a bind.
This is likely low priority as this feels like a niche use case - and there is a workaround to solve the issue.
Minimal reproduction project (MRP)
SignalIssue.zip

unbind() doesn't remove previously bound argunents from Callable. Please read the documentation more carefully. It's unintuitive behavior and not very good naming, but unbind() is not the opposite of bind().
unbind() creates a wrapper over the base Callable. Which, when called, removes the specified number of arguments passed to it and calls the base Callable. So bind/unbind chains should be read from right to left:
foo.bind(3, 4).unbind(1).call(1, 2) # Calls foo(1, 3, 4)
# .call(1, 2) -> [1, 2]
# .unbind(1) -> [1]
# .bind(3, 4) -> [1, 3, 4]

some_func.bind("this").unbind(1).bind("that") # Calls some_func("this").
# .bind("that") -> ["that"]
# .unbind(1) -> []
# .bind("this") -> ["this"]

So if you stored some_func.bind("this") here - even if you check the bound arguments and it no longer contains the original argument - it still has the original argument?

You misunderstand how bind()/unbind() work. Callable doesn't store arguments, which would modify bind()/unbind(). Instead, a new Callable is created that wraps the base Callable, creating a modifier. Calling bind()/unbind() again creates a modifier on top of a modifier, and so on. When call() is called, these wrappers are called in reverse order, from outer to inner. Therefore, you should read this entry from right to left.
Here's roughly how it works:

Code
class MyCallableCustom:
    func my_call_custom(_args: Array) -> Variant:
        return null

class MyCallableCustomBind extends MyCallableCustom:
    var _base_callable: MyCallable
    var _bind_args: Array

    func _init(base_callable: MyCallable, bind_args: Array):
        _base_callable = base_callable
        _bind_args = bind_args.duplicate()

    func my_call_custom(args: Array) -> Variant:
        return _base_callable.my_call(args + _bind_args)

class MyCallableCustomUnbind extends MyCallableCustom:
    var _base_callable: MyCallable
    var _unbind_count: int

    func _init(base_callable: MyCallable, unbind_count: int):
        _base_callable = base_callable
        _unbind_count = unbind_count

    func my_call_custom(args: Array) -> Variant:
        args = args.duplicate()
        args.resize(args.size() - _unbind_count)
        return _base_callable.my_call(args)

class MyCallable:
    var _object: Object
    var _method: StringName
    var _custom: MyCallableCustom

    func _init(object: Object = null, method: StringName = &"") -> void:
        _object = object
        _method = method

    func my_call(args: Array) -> Variant:
        if _custom:
            return _custom.my_call_custom(args)
        else:
            return _object.callv(_method, args)

    func bind(args: Array) -> MyCallable:
        var wrapper := new()
        wrapper._custom = MyCallableCustomBind.new(self, args)
        return wrapper

    func unbind(argcount: int) -> MyCallable:
        var wrapper := new()
        wrapper._custom = MyCallableCustomUnbind.new(self, argcount)
        return wrapper

func f(a, b, c):
    prints(a, b, c)

func _ready() -> void:
    MyCallable.new(self, "f").bind([3, 4]).unbind(1).my_call([1, 2])

Ah - so get_bound_arguments() is just getting the arguments from the wrapper I'm calling it on, but the process of cycling through all the wrappers to perform the actual resulting Callable is not figured into that return.
This isn't something that changes line by line - but call by call regardless where the calls are made (interesting that you can unbind and fall into an argument deficit - I guess that's what happens when I unbind and clear the list - the original bind is just clearing the deficit and is not filling an argument space anymore).
It's actually expected here that if someone were to need to access the original callable, you need to use the get_object() and get_method() functions to rebuild a brand new fresh wrapper (I guess that's why the functions are provided in the first place).
Thank you for the insight.


Thank you very much for this usefull widget. How can i change circle indicator color?

ok  I just realized the app:ci_drawable . solved


dateutil.parser issue

follow the instruction guide and run the step of 4.1， got dateutil.parser error

I think this is a package version issue. My current version of dateutil is 2.7.1, and I tried to install newer version of the dateutil by
pip3 install python-dateutil==2.8.2
the problem then is solved

Thanks for pointing out the issue and providing the solution as well.


mini.git: add --stat --patch to show_at_cursor()

Contributing guidelines

[X] I have read CONTRIBUTING.md
[X] I have read CODE_OF_CONDUCT.md

Module(s)
git
Description
When reviewing the commit details by show_at_cursor(), it would be better we can also include --stat option (and consequently --patch is also need to included) so that when reviewing the commit, we can have a summary stat to know what files are changed and how many lines are changed.
This is my proposed change. But I am not sure if there are any other places which are also need to updated so I created an issue rather than submitting a PR directly.
 lua/mini/git.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua/mini/git.lua b/lua/mini/git.lua
index 40a6f78..754213c 100644
--- a/lua/mini/git.lua
+++ b/lua/mini/git.lua
@@ -317,7 +317,7 @@ MiniGit.show_at_cursor = function(opts)
   local is_commit = string.find(cword, '^%x%x%x%x%x%x%x+$') ~= nil and string.lower(cword) == cword
   if is_commit then
     local split = H.normalize_split_opt((opts or {}).split or 'auto', 'opts.split')
-    local args = { 'show', cword }
+    local args = { 'show', '--stat', '--patch', cword }
     local lines = H.git_cli_output(args, cwd)
     if #lines == 0 then return H.notify('Can not show commit ' .. cword, 'WARN') end
     H.show_in_split(split, lines, 'show', table.concat(args, ' '))

Thanks for the suggestion!
I personally don't think --stat is that much useful to be included by default. I'll take some time to probably reconsider, though.
In the meantime I can suggest using custom mapping with <Cmd>Git show --stat --patch <cword><CR> as right hand side to achieve this.

After thinking about it a bit more and trying to observe how I look at commit information in LazyGit, the commit statistics indeed seems to be useful. Pity that it does not get highlighted inside "git" filetype, but it still is useful for an overview for commit impact.
This should be resolved on latest main. Thanks again for the suggestion!


Does not build with gcc 7.

Apparently just using set(CMAKE_CXX_STANDARD 17)  in cmake is not enough and i just installed gcc 8 to get it to build. The problem is that the path to the filesystem header and it's namespace need prefixed with "experimental" for 7. Leaving these resources here for reference.
https://stackoverflow.com/questions/64945946
https://stackoverflow.com/questions/54290254

@Auburn I can fix it with something like this if you want, https://github.com/caseymcc/imglib/blob/main/cmake/Filesystem.cmake, https://github.com/caseymcc/imglib/blob/main/cmake/target_filesystem.h.in

The filesystem include is only used for a single file_exists call, so that could probably be replaced by something else and the filesystem include removed completely


Frequent doc build timeout / OOM

What is your issue?
I'm frequently seeing Command killed due to timeout or excessive memory consumption in the doc build.
It's after 1552 seconds, so it not being a round number means it might be the memory?
It follows writing output... [ 90%] generated/xarray.core.rolling.DatasetRolling.max, which I wouldn't have thought as a particularly memory-intensive part of the build?
Here's an example: https://readthedocs.org/projects/xray/builds/21983708/
Any thoughts for what might be going on?

I think the 1552 seconds is only the last step. The total time is 1947 seconds (~ 32 min) which is more than mentioned under the rtd build time.
So time to figure out why its so slow...

Now that cartopy no longer requires PROJ and GEOS   we might be able to switch to pip. That could save a couple of minutes but may need some fiddling (I tried in https://github.com/regionmask/regionmask/pull/450)). But I'm not sure how good of an idea this is.
cc @keewis

I haven't interacted much with the doc builds — is it a custom env that's difficult to run in GHA?
(I see there are some GHA actions for sphinx builds, but again I don't have much context)

Pandas seems to do their doc build with custom commands: https://github.com/pandas-dev/pandas/blob/2a08b052305ed35150d1355bc537548bec697778/.github/workflows/docbuild-and-upload.yml


Null Safety

I've just been experimenting with null safety as it is in beta now.  This would be the only project that I depend on that doesn't have null safety enabled.  Any thoughts about releasing a null safety version?

Yes:
Thus, audioplayers >=0.16.2 is incompatible with archive >=3.0.0-nullsafety.0.

Doesn't coompatible with some basic lib that with nullsafety on.

@jinfagang if you have some troubles with dependencies you can try to use dependecy_overrides, most likely they don't have any breaking changes and just migrated to nnbd

https://dart.dev/null-safety/migration-guide

I think it's time for an upgrade now?
Because audioplayers 0.17.4 depends on path_provider ^1.6.22 and no versions of audioplayers match >0.17.4 <0.18.0, audioplayers ^0.17.4 requires path_provider ^1.6.22.

Yes:
Thus, audioplayers >=0.16.2 is incompatible with archive >=3.0.0-nullsafety.0.

Doesn't coompatible with some basic lib that with nullsafety on.

You can use my fork pending if my fix is merged as below in your pubspec.yml:
    #audioplayers: ^0.17.4
      audioplayers:
        git:
            url: https://github.com/stonekase/audioplayers.git

archive now is null safe! Can we migrate it now? https://pub.dev/packages/archive

+1 for this

@stonekase I'm seeing some build failures using your version on Android (see this issue) are you seeing this and if so how did you resolve the issues? Thanks in advance!

@stonekase I'm seeing some build failures using your version on Android (see this issue) are you seeing this and if so how did you resolve the issues? Thanks in advance!

Please ignore my repo and use :
dependencies:
audioplayers: ^0.17.4
dependency_overrides:
path_provider: ^2.0.1

Any ETA for null-safety migration, guys?

This issue is Duplicated  please follow issue  #784

Fixed by https://github.com/luanpotter/audioplayers/pull/785


"md_lattice" output format

Hi,
I'd appreciate your help finding a simple way to extract the lemmas from NEMO's output.
So far I tried extracting them from "md_lattice" output, but I'm having with the format.
I tried reading the output with pd:
import pandas as pd
import io
pd.read_csv(io.StringIO(res[0]["md_lattice"]), sep="\t", header=None)[3]

This doesn't always work.
Thanks!

There is a read_lattice function in nemo.py that you can use.
(This will probably move to the bclm package soon which has a similar function.  The only reason for this code duplication is that current version there only accepts file inputs).
Closing for now. Feel free to reopen if you have issues with using the function.


[Chore] Added better conversions for FPDecimal and cosmwasm-std

Closes: #155

Thanks for the PR! Great additions


No private key set

Thanks for your hard work on this package.  I have seen the previous issue with the same problem and followed through with all the steps listed in it, but I still have the same issue.  The private_key.txt file is in the default path but I also tried putting the full path in the .env file (DKIM_PRIVATE_KEY=/var/www/??????/storage/app/dkim/private_key.txt) and refreshed the config with no change in behavior.  The only thing I can think of is there is a problem with the file itself.  I have tried it both with and without BEGIN and END RSA tags.

yeah, I did generate the key with that page.

I'm closing this issue as it seams either the key is wrong or the path is wrong.


scope out work to have csv import modify existing listings

instead of just writing to the database once

Note from property manager sync:

We want this script to be something we can run more than once (i.e. whereas the existing CSV import script is intended to be run just once as a one-off upload, this script should be able to be run multiple times). The reason: we expect to get responses to the survey in an ongoing way.

Note: re-running this script will clobber any changes that property managers have made through the partner portal. This will be okay in the near-term (until we launch the partner portal) and once we have launched the partner portal, we'll just need to have a bunch of warnings (and maybe even a way to check when the listing was last updated in the script itself?).

To speed this work up, we might prioritize ingesting a subset of the fields instead of all of them. Gabe is a good point person for figuring out which subset of fields is the most important.

We could mark "ingesting the other fields" as follow-on work.

I created #567 and #568 with all of my thoughts about what this import script should do. Those tickets are (I believe) actionable and just require coding (no/few product-level questions).


Help Tags Problem

Hi. I'm attempting to fully switch from Pathogen, and I've noticed the following error when running :BundleInstall:

Error detected while processing function vundle#installer#install..vundle#instal
ler#helptags..53_helptags:
line    1:
E150: Not a directory: `=a:rtp.'/doc'`

I've followed the instructions closely, but something seems to be amiss. Any ideas?

Also, it appears if you */bundle/* in your wild ignore the help tags command will fail. I had to remove it from mine. I used that ignore for a certain type of project. Took me a while to figure out why help tags was failing!


Remove interfaces

@rmillikin, can you confirm if we still want these? I think they're just occupying space.


Excessive memory usage

running the latest 1.2.3 build, memory climbs up to 1.5gb pretty quickly, is there a memory leak?

Can you test your setup with 1.1 and.or 1.2 please and see if it behaves differently now compared to those versions?

I tried the 1.0.1 release and saw the same behaviour
this is what a run looks like in VisualVM with 1.2.3

Cool, thx. At least not freshly introduced. Will do some testing around it.
On 14 Aug. 2017 10:30 am, "Zac Spitzer"<EMAIL_ADDRESS>wrote:

I tried the 1.0.1 release and saw the same behaviour
this is what a run looks like in VisualVM with 1.2.3
[image: image]
https://user-images.githubusercontent.com/426404/29254619-7bf2027c-80db-11e7-842d-e8de44dc42b3.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cflint/CFLint/issues/443#issuecomment-322077436, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AATrRJ5z7i7-oNk7NwM5amXPvltzNgbuks5sX5UzgaJpZM4O1mbG
.

From the little reading I've done ANTLR (cfparser) running at 1.5gb isn't
out of the ordinary.   You can try constraining the max memory on the jvm
if you want to throttle it.
On Sun, Aug 13, 2017 at 10:37 PM, Kai Koenig<EMAIL_ADDRESS>wrote:

Cool, thx. At least not freshly introduced. Will do some testing around it.
On 14 Aug. 2017 10:30 am, "Zac Spitzer"<EMAIL_ADDRESS>wrote:

I tried the 1.0.1 release and saw the same behaviour
this is what a run looks like in VisualVM with 1.2.3
[image: image]
<https://user-images.githubusercontent.com/426404/
29254619-7bf2027c-80db-11e7-842d-e8de44dc42b3.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cflint/CFLint/issues/443#issuecomment-322077436,
or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AATrRJ5z7i7-
oNk7NwM5amXPvltzNgbuks5sX5UzgaJpZM4O1mbG>
.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cflint/CFLint/issues/443#issuecomment-322087619, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AFtZu3j_tDKGEXzD6pB7Qk3FZiDImM6yks5sX7LtgaJpZM4O1mbG
.


Update Blog “2021-02-18-time-to-add-your-own-content”

Automatically generated by Netlify CMS

👷 Deploy Preview for wizardly-varahamihira-46a214 processing.
🔨 Explore the source changes: a583aa63e9370be663c1878562e7eabc612c1e2f
🔍 Inspect the deploy log: https://app.netlify.com/sites/wizardly-varahamihira-46a214/deploys/61adef60c1ce5e00076c94fb


Catch formFromJson event to resize textareas on load

Added .on('formFromJSON') listener to automatically resize resizeable textareas on load.

This looks like it might be good

Thanks @valnub hadn't notice the conflict. @steadweb could you resolve the conflicts please?

It is not needed as form:fromdata already triggers change event on inputs


Links in navbar overwrite url

Hi,
If the rapidoc component isn't visualized at the url base it will overwrite the url due to:
https://github.com/mrin9/RapiDoc/blob/50518f69ff8eaac0686032aa3894f3402abe3ab2/src/rapidoc.js#L873
As an example: I put the rapidoc component under the path /help/api-docs. Clicking a link will replace the url with /#some-anchor.
It would be nice if the component would only replace the hash.

isnt it replacing the hash only ?
for example take the below example, clicking on the links will only change the hash
https://mrin9.github.io/RapiDoc/examples/focused-mode.html
what do you mean by
If the rapidoc component isn't visualized at the url base ?

I was refering to having the component on a url that didn't match the url defined here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base. As I had <base href="/"> in my app it wasn't working as I expected. But now that I've looked more closely at the spec, this is how it should work. Sorry for the inconvenience.


Update: New vcpkg build system, fixed component/system/spawn class names, added PR template

Overview
This update includes three main features:

Vcpkg has been added as a submodule of the project. Dependencies should be installed through vcpkg's manifest going forward (when possible).
The names of game object components, systems, and spawn functions now match their class/function names.
A new pull request template has been added to the repo.

Motivation
For each feature:

The new vcpkg build system simplifies the first build process and speeds up Visual Studio development.
Game object components, systems, and spawn functions are now more friendly for reflection and serialization/deserialization.
The new template makes the PR process simpler and more consistent.

Testing
The project was freshly cloned and built on a Windows clean machine (nothing but a fresh copy of Windows, Visual Studio 2022, and git installed). DemoGame.exe and Editor.exe were run and behaved as expected.

The new CMake script broke the automated tests but we can fix that later. This is definitely a pretty sweet update c:


Use regex to match branch names in PrePush::ProtectedBranches and PreRebase::MergedCommits

Rather than having the user specify exact branch names, which is insufficient in cases where multiple permanent branches exist with similar names (e.g. release/1.1.x, release/1.2.x, etc), we should allow the user to specify a list of regexes (e.g. release/.+).

Note that this should be backwards compatible as long as we require that the regex match the entire branch name.

Implemented in #316.


changed to new API

changed to new api including some code changes.
Please see if it still works the way you intend.

Thank you!!


How to run on multiple machines ?

Do you mean multiple GPUs?

I have GPU'S in multiple machine(means on node clusters), how can I run the command.

Hi , I have 4 gpus and trying to tune the SAM-Adapter model
I used the command provided in git
command used : CUDA_VISIBLE_DEVICES=0,1,2,3 python -m torch.distributed.launch train.py --nnodes 1 --nproc_per_node 4 --config configs/demo.yaml
I have successed training but i found that there is only one gpu is used !!
how can i solve this problem ...？(I have checked the documents of torch but don't have any idea to debug it ...?

I also encountered this problem, and only O cards were used during distributed training. At the same time, I did not find the input of these two parameters --nnodes 1 --nproc_per_node 4 in the input of train.py. Why?

ning but i found that there is only one gpu is used !!
how can i solve this p

I found a solution to the problem. Finally, I should run the code like this: CUDA_VISIBLE_DEVICES=0,3 python -m torch.distributed.launch --nnodes 1 --nproc_per_node 4 train.py --config configs/demo.yaml --tag exp1 , you can check the usage of torch.distributed.launch for details.

Hi , I have 4 gpus and trying to tune the SAM-Adapter model I used the command provided in git command used : CUDA_VISIBLE_DEVICES=0,1,2,3 python -m torch.distributed.launch train.py --nnodes 1 --nproc_per_node 4 --config configs/demo.yaml
I have successed training but i found that there is only one gpu is used !! how can i solve this problem ...？(I have checked the documents of torch but don't have any idea to debug it ...? @tianrun-chen

I found a solution to the problem. Finally, I should run the code like this: CUDA_VISIBLE_DEVICES=0,1,2,3 python -m torch.distributed.launch --nnodes 1 --nproc_per_node 4 train.py --config configs/demo.yaml --tag exp1 , you can check the usage of torch.distributed.launch for details


mesos: update slave terminology to agent

👍

@ssk2 that's a pretty large change at this point, so I would punt that to a separate pr


Interpolation of for_each iterator is marked as an error

Prerequisites

[x] Ensure you have latest version of plugin installed
[x] Search for possible issue duplicates

Installation details

[x] IDE version (Help->About->Copy to Clipboard)
[x] intellij-hcl plugin version (Settings->Plugins) 0.7.5
[x] Terraform version (terraform -v) 0.12.7

IntelliJ Version details
IntelliJ IDEA 2019.2.1 (Ultimate Edition)
Build #IU-192.6262.58, built on August 21, 2019
Licensed to Gareth Jones
Subscription is active until June 22, 2020
Runtime version: 11.0.2+9-b226.7 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Registry: analyze.exceptions.on.the.fly=true, java.completion.argument.hints.internal=false, git.use.builtin.ssh=true, debugger.watches.in.variables=false, completion.stats.show.ml.ranking.diff=true
Non-Bundled Plugins: CMD Support, Key Promoter X, PsiViewer, Switch Structure, com.alayouni.ansiHighlight, com.intellij.apacheConfig, com.jetbrains.foldOtherMethods, com.jetbrains.plugins.ini4idea, com.intellij.plugins.watcher, lermitage.intellij.battery.status, mobi.hsz.idea.gitignore, net.seesharpsoft.intellij.plugins.csv, net.vektah.codeglance, org.asciidoctor.intellij.asciidoc, org.elixir_lang, org.intellij.plugins.hcl, Karma, com.dmarcotte.handlebars, com.intellij.lang.jsgraphql, com.intellij.plugins.html.instantEditing, com.intellij.plugins.webcomponents, com.jetbrains.lang.ejs, com.jetbrains.plugins.jade, com.jetbrains.php, com.jetbrains.php.blade, com.jetbrains.php.drupal, com.jetbrains.php.wordPress, com.jetbrains.twig, de.espend.idea.laravel, net.king2500.plugins.PhpAdvancedAutoComplete, cucumber-javascript, intellij.prettierJS, org.intellij.scala, org.jetbrains.plugins.go, org.jetbrains.plugins.phpstorm-remote-interpreter, org.jetbrains.plugins.vagrant, org.jetbrains.plugins.vue, Dart, org.jetbrains.plugins.node-remote-interpreter, Pythonid, com.emberjs, com.raket.silverstripe, org.jetbrains.plugins.ruby, jones.foldtestblocks.fold-test-blocks, org.psliwa.idea.composer, org.sylfra.idea.plugins.linessorter, org.toml.lang, org.rust.lang, ru.adelf.idea.dotenv, uk.co.ben-gibson.remote.repository.mapper

Terraform Configuration Files
locals {
  admin_locations = [
    {
      cidr_range  = "xx.xxx.xxx.xxx/xx",
      description = "Office"
    }
  ]
}

# Allow SSH from our designated admin locations
dynamic "ingress" {
  for_each = local.admin_locations
  iterator = location

  content {
    from_port   = 22
    to_port     = 22
    protocol    = "tcp"
    description = "${location.value.description} (MySQL access)"
  }
}

Exception
None, nor anything in the logs.
Expected Behavior
No errors.
Actual Behavior
${location.value.description} is marked w/ the error "Unknown resource type".
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:

Write sample code into .tf file

This is from the same code as #252, but I made them as two issues as I figured it'd be easier to tackle.
I'm not sure what's going on w/ the state of this plugin open/close-source wise, but I'd be happy to contribute PRs :)

Is dynamic "ingress" block just in file or inside some resource?

Due to closed sources nature it makes no sense to create PR :( Anyway thanks for opening an issue.

Then might I suggest you should close the three open PRs and provide an update on #222?

Is dynamic "ingress" block just in file or inside some resource?

Sorry that's my bad - I thought I'd copied the whole block!
resource "aws_security_group" "server" {
  name        = "${var.env_prefix}-server"
  description = "server security group"
  vpc_id      = var.vpc_id

  # Allow HTTP from anywhere
  ingress {
    from_port   = 80
    to_port     = 80
    protocol    = "tcp"
    cidr_blocks = ["<IP_ADDRESS>/0"]
  }

  # Allow HTTPS from anywhere
  ingress {
    from_port   = 443
    to_port     = 443
    protocol    = "tcp"
    cidr_blocks = ["<IP_ADDRESS>/0"]
  }

  # Allow SSH from our designated admin locations
  dynamic "ingress" {
    for_each = local.admin_locations
    iterator = location

    content {
      from_port   = 22
      to_port     = 22
      protocol    = "tcp"
      description = "${location.value.description} (MySQL access)"
    }
  }
}

Due to closed sources nature it makes no sense to create PR

I know, but wanted to register my interest in helping if that ever becomes possible.
It's just that there's a number small-ish issues open that I'd personally have been happy to dive into (basic spell checking, among a few others), but can't :(
While @mdaniel might come across as a bit strong, he isn't wrong that it'd be nice to have a bit of info about the state of this plugin :)
In the meantime, I'm happy to keep opening issues if they're beneficial.

The same issue happens with resources (unsurprisingly enough). They are now supported in 0.12.6.
https://www.terraform.io/docs/configuration/resources.html#for_each-multiple-resource-instances-defined-by-a-map-or-set-of-strings

This still happens with for:
resource "aws_acm_certificate" "cert" {
  domain_name               = var.primary_domain_name
  subject_alternative_names = var.secondary_domain_names
  validation_method         = "DNS"
}

output "staging_cert_domain_validation_records" {
  value = [
    for dvo in aws_acm_certificate.cert.domain_validation_options :
    "${dvo.domain_name} ${dvo.resource_record_name} ${dvo.resource_record_type} ${dvo.resource_record_value}"
  ]
}

In the above dvo.domain_name & co are marked as errors, with dvo being marked with warning ("unknown resource'), and the properties being marked as errors ("unresolved reference").


Update dependency: deps/kevm_release

Booster integration tests fail since AssumeTest.testFail_assume_false doesn't have a failure_info set. testFail_assume_false it is terminated early asfail_fast is on, and perhaps an issue that doesn't allow setting failure_info in this case got introduced somewhere in pyk (e.g., in this PR — https://github.com/runtimeverification/pyk/pull/951?).
I pushed a temporary fix for now which adds fail_fast=False to test_foundry_fail that resolves this issue locally, but removed automerge from this PR.


lazyload and firefox

Hi. Just a small bug report.
There's a strange problem with lazyLoad and Firefox:
Sometimes the images wont be faded in..
This doesn't happen on chrome.

Please try this out in the newest version of Owl Carousel.
If the issue persists, please read our Bug Report Guide and re-open the issue with additional information.


Move from Webpack to Gulp

Be sure to support

Sass
Jquery
gzip?

Why not packer.js?

@kylewelsby I've never heard of it. Can you link to the project so that we can check it out?

Linked..

Good old email rendering didn't show me a link. I'll check it out. What do you see as the benefits? Any third party articles that you recommend where I can read about Parcel vs Webpack vs whatever else?

Sure,

X-Team: Rollup v. Webpack v. Parcel
Codeburst.io: First impressions with Parcel JS

My simple vertict,  zero configuration.  Makes development fun and magical again.
🎩

IMHO, Gulp feels a bit like going back in time.

Totally, Gulp was fun but alot of boilerplate needed
On Wed, 27 Jun 2018, 20:44 Robin Millette<EMAIL_ADDRESS>wrote:

IMHO, Gulp feels a bit like going back in time.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/conorgil/2fa-notifier/issues/9#issuecomment-400805805,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGvhTJQdySi8_SQitb3iEM9lq-DYMnLks5uA-CGgaJpZM4Tq_L6
.


Did not get it to work

Hi,
i did not get it to work. Looks like there are no datas from Tibber pulled? I dont no how to debug.
I try it with "TIBBER_TOKEN=... docker compose up"
logger=authn.service t=2024-03-15T07:50:15.244014237Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
grafana-1          | logger=authn.service t=2024-03-15T07:50:15.252705223Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
grafana-1          | logger=authn.service t=2024-03-15T07:50:15.253834772Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
grafana-1          | logger=authn.service t=2024-03-15T07:50:15.254765599Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
grafana-1          | logger=authn.service t=2024-03-15T07:50:15.257340566Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"

Also i try it with the token in docker-compose.yml
Same
grafana-1          | logger=authn.service t=2024-03-15T07:58:41.018031129Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
Any ideas abou my problems :). I hope the did not sit in front of my monitor :D

PS: I also get a lot of this failures
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:08.355989913Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-prices.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:08.356029209Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-without-pulse.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:08.356064524Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:18.356035675Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-monthly.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:18.356096693Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-prices.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:18.356130841Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-without-pulse.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:18.356162989Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:28.356178816Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-prices.json error=EOF
grafana-1          | logger=provisioning.dashboard type=file name=dashboards t=2024-03-15T07:59:28.356237927Z level=error msg="failed to load dashboard from " file=/var/lib/grafana/dashboards/dashboard-without-pulse.json error=EOF

Sorry about the very late reply, I've been busy on other projects.
Your error messages are from Grafana, and the errors are not releated to TIBBER_TOKEN which is only used by the tibber-exporter container. Do you see any output from tibber-exporter?
For the Grafana errors it might be that the volume mounts are not correct. If you do not run from the same directory structure as this repo you need to modify the volumes:
    volumes:
      - ./datasource.yml:/etc/grafana/provisioning/datasources/prometheus.yml
      - ./dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml
      - ../grafana/dashboard.json:/dashboard.json
      - ../grafana/dashboard-without-pulse.json:/dashboard-without-pulse.json
      - ../grafana/dashboard-prices.json:/dashboard-prices.json
      - ../grafana/dashboard-monthly.json:/dashboard-monthly.json
      - ./grafana.sh:/grafana.sh
      - grafana_data:/var/lib/grafana

The docker compose setup is expected to be run from the docker-compose directory, and you can see that it references ../grafana. So ensure that all these references are correct on your setup.

I'm closing this issue. Please reopen if you haven't solved your problem and have some more information to provide.


[Bug]: Mixtral-8x7B-Instruct-v0.1 not loading

Your current environment
Collecting environment information...
 When trying to load Mixtral using vllm on 4xA30.
I tried with 2 models, Mixtral-8x7B-Instruct-v0.1 and Mixtral-8x7B-Instruct-v0.1-AWQ, and both encountered the same error like this. I installed via the vllm GitHub source. I've tried using the recommended Docker, but still encountered a similar error.

 Stack trace is not complete in your screenshot and it is difficult to tell the cause.

Traceback (most recent call last):
  File "/workspace/example.py", line 10, in <module>
    llm = LLM(
  File "/root/vllm/vllm/entrypoints/llm.py", line 109, in __init__
    self.llm_engine = LLMEngine.from_engine_args(engine_args)
  File "/root/vllm/vllm/engine/llm_engine.py", line 146, in from_engine_args
    engine = cls(*engine_configs,
  File "/root/vllm/vllm/engine/llm_engine.py", line 103, in __init__
    self.model_executor = executor_class(model_config, cache_config,
  File "/root/vllm/vllm/executor/ray_gpu_executor.py", line 63, in __init__
    self._init_cache()
  File "/root/vllm/vllm/executor/ray_gpu_executor.py", line 221, in _init_cache
    num_blocks = self._run_workers(
  File "/root/vllm/vllm/executor/ray_gpu_executor.py", line 318, in _run_workers
    driver_worker_output = getattr(self.driver_worker,
  File "/root/miniconda3/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/root/vllm/vllm/worker/worker.py", line 122, in profile_num_available_blocks
    self.model_runner.profile_run()
  File "/root/miniconda3/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/root/vllm/vllm/worker/model_runner.py", line 677, in profile_run
    self.execute_model(seqs, kv_caches)
  File "/root/miniconda3/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/root/vllm/vllm/worker/model_runner.py", line 606, in execute_model
    hidden_states = model_executable(
  File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/root/vllm/vllm/model_executor/models/mixtral.py", line 384, in forward
    hidden_states = self.model(input_ids, positions, kv_caches,
  File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/root/vllm/vllm/model_executor/models/mixtral.py", line 320, in forward
    hidden_states, residual = layer(positions, hidden_states,
  File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/root/vllm/vllm/model_executor/models/mixtral.py", line 279, in forward
    hidden_states = self.block_sparse_moe(hidden_states)
  File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/root/miniconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/root/vllm/vllm/model_executor/models/mixtral.py", line 127, in forward
    batch_size, sequence_length, hidden_size = hidden_states.shape
ValueError: not enough values to unpack (expected 3, got 2)

This is blocking my work, is there any temporary workaround?

Can you hold mixtral model with 4xA30? The memory seems not enough.

I think this is a bug that's fixed https://github.com/vllm-project/vllm/pull/3597

I think this is a bug that's fixed #3597

The bug has been fixed. Thanks @njhill


Setup contract crates

pdao-near-treasury
pdao-near-light-client
pdao-near-whale (밈토큰)

simple-counter처럼 각각의 crate로 있게 셋업해주세요.

https://github.com/postech-dao/near/pull/48
셋업 관련 PR 올렸습니다!


ModuleNotFoundError - websockets.framing

pySonoffLAN version: 0.3.0
Python version: 3.8.5 and 3.9.1
Operating System: Windows and WSL

Description
Trying to work with pysonofflan either through the given script or through the framework it throws the following ModuleNotFoundError.
File "python3.8/site-packages/pysonofflan/__init__.py", line 57, in <module>
    from .client import SonoffLANModeClient
File "python3.8/site-packages/pysonofflan/client.py", line 11, in <module>
    from websockets.framing import OP_CLOSE, parse_close, OP_PING, OP_PONG
ModuleNotFoundError: No module named 'websockets.framing

What I Did
either
from pysonofflan import * in python
or
python -m pysonofflan discover in bash/cmd
I already tried reinstalling/restarting everything.

According to the websockets library changelog, websockets.framing is deprecated since version 9.0 which was released May 1st, 2021.
Maybe the author hasn't had the chance to fix it yet. Perhaps you can try installing an older version of the websockets library using virtualenv until it's fixed.

I have this issue too using latest version of Websockets (9.1)
Marks-MBP:~ mark$ pysonofflan
Traceback (most recent call last):
File "/usr/local/bin/pysonofflan", line 5, in
from pysonofflan.cli import cli
File "/usr/local/lib/python3.9/site-packages/pysonofflan/init.py", line 57, in
from .client import SonoffLANModeClient
File "/usr/local/lib/python3.9/site-packages/pysonofflan/client.py", line 11, in
from websockets.framing import OP_CLOSE, parse_close, OP_PING, OP_PONG
ModuleNotFoundError: No module named 'websockets.framing'
Reverting to Websockets 8.1 does not work due to other issues.

I removed the import from websockets.framing on the basis of the changelog  for Websockets here:
https://websockets.readthedocs.io/en/stable/changelog.html#id2. The websockets.framing API have been deprecated-"The framing, handshake, headers, http, and uri modules in the websockets package are deprecated. These modules provided low-level APIs for reuse by other WebSocket implementations, but that never happened. Keeping these APIs public makes it more difficult to improve websockets for no actual benefit."
The terms that would be imported in client.py at line 11 are resolved in pyc files in /usr/local/lib/python3.9/site-packages/websockets/pycache
I have reverted all the way back to 6 with the same issue so I think the issue is likely to be a problem in my environment but I don't know why. I've compared my output with that expected and the resolution of IP address to device is not happening when pysonofflan hangs. In addition I now have some additional error messages after timeouts which give a clue:
pysonofflan discover
2021-07-23 00:36:06,742 - info: Attempting to discover Sonoff LAN Mode devices on the local network, please wait...
2021-07-23 00:36:07,388 - info: Found Sonoff LAN Mode device at IP <IP_ADDRESS>
$ pysonofflan --host <IP_ADDRESS> listen
2021-07-23 00:36:27,815 - info: Initialising SonoffSwitch with host <IP_ADDRESS>
2021-07-23 00:41:28,420 - error: SonoffLANModeClient connection failed: Malformed HTTP message
2021-07-23 00:41:28,421 - warning: Unable to connect: Malformed HTTP message

From the commits, issues and pull request's dates, this project seems to be unmaintained. It look like the correct fix for the issue could take some time to be released and perhaps reverting to the older version of the library is the best choice.

Hey, just wanted to say sorry for this, you're right in that I'm personally not doing any proactive efforts on this repo anymore as I don't actually have a sonoff with original firmware myself anymore (mine are all ESPHome or Tasmota now) so have no incentive to work on it.
However, if anyone wants to be given maintainer permissions I'm more than happy to grant that, or if anyone submits a PR which just needs to be merged/released I'm happy to do that if someone tags me specifically asking me to do that - as long as there's an understanding that I can't test it myself! 😄


add quotaTreeWrapper and elasticQuota API

Signed-off-by: xulinfei.xlf<EMAIL_ADDRESS>Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[ ] I have written necessary docs and comments
[ ] I have added necessary unit tests and integration tests
[ ] All checks passed in make test

/lgtm

/LGTM

/lgtm
/approve


Add a new snapchat filter

I would like to add a new snapchat filter with some dynamic feature. The filter is a pair of cat ears, and it has some shaking effect when we detect eye-close and eye-open.

The solution is simple: First, detect the height of eyes in a frame and compare it to that in previous frames, if the height increase then mark as an eye-open event, otherwise an eye-close event. Next according to eye-open or eye-close event, rescale the height of masking image (ear cats) in current frame. When eyes open, upscale the height masking image; when eyes close, downsize the height of masking image.

* The filter image is different from any existing filter images in the current repo.

already present


Update requirements

This PR upgrades the way dependencies are handled.
What?
Dependencies are described with their version requirements. If there is a need to pin a package to a specific or under/over a specific version that is defined, else the newest is used.
How?
The requirements are defined in a *.in file and then compiled by pip-tools to a normal *.txt file with each version pinned. So each time you want to update all requirements you just run the command 'pip-compile' and the most current versions matching is written to the *txt file.
Changes

Split requirements
Update to pip-tools
Remove pinning to the newest version
Rewrite the version pinning where it is known

Open questions
Do we need this package?

django-admin-shell (also update from 0.1.2 -> 1.0.0)
django-cleanup (also update from 5.1.0 -> 6.0.0)
pygments (also update from 2.7.4 -> 2.12.0)

Bigger updates:

coverage 5.3 -> 6.4.1
coveralls 2.1.2 -> 3.3.1
flake8 3.8.3 -> 4.0.1
django-crispy-forms 1.11.2 -> 1.14.0
django-filter 2.4.0 -> 22.1
django-import-export 2.5.0 -> 2.8.0
django-markdownify 0.8.0 -> 0.9.2
django-mptt 0.11.0 -> 0.13.4
django-sql-utils 0.5.0 -> 0.6.1
django-stdimage 5.1.1 -> 6.0.1
qrcode[pil] 6.1 -> 7.3.1
rapidfuzz 0.7.6 -> 2.0.11

@SchrodingersGat could you just 👍  or 👎 the updates and removals?

@SchrodingersGat we will have to find those uncovered things anyways - my hope with reducing the decencies is to remove external sources of security problems and removing unneeded slack from installs and the admin ui.
Any objections to removing the listed packages? I do not see their functions included anywhere in the code / their functions seem to be oriented very much towards server admins - who should have shell access anyway.

Django cleanup is crucial - it ensures that unused media files are correctly deleted.
I use django-admin-shell for debug, but there's no reason it should be a core requirement.
Not sure what pygments is used for, if anything. Can probably safely be deleted.

In addition to removing django-admin-shell, can you please remove the django-debug-toolbar integration as part of this refactor...

In addition to removing django-admin-shell, can you please remove the django-debug-toolbar integration as part of this refactor...

@SchrodingersGat I moved django-debug-toolbar to dev - should I completly remove it?

@SchrodingersGat this should be good to go - I moved django-debug-bar to dev; lmk if I should just purge it.

Looks like the updates have killed our CI checks

@SchrodingersGat looks like there is a something more complex happening - looking into it rn

@SchrodingersGat turns out there were a few breaking changes in mayor updates. Should ironed out now.
Still working on two new migrations - looking if they can be reduced.

@matmair good for review?


Deploy Hexo To GIthub

文章链接：https://www.yunyoujun.cn/

Hey yunyoujun, i have a problem in travis-ci,
$ git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:master
remote: Invalid username or password.
fatal: Authentication failed for<EMAIL_ADDRESS>how to solve this problem?

I have migrated from Travis-CI to GitHub Actions.
Github actions comes with GITHUB_TOKEN without having to deal with complex permissions issues.
If you want to refer to some deployment scripts, you can see gh-pages.yml.

Thanks i just deploy hexo to github pages..


[README] fix broken links to documentation

There are some broken links to documentation in the top-level README file. Three of them can be directly replaced with updated URLs, but I don't see a direct equivalent of "Diem Protocol: Key Concepts". This replaces that with a "Basic Concepts" link to the start of the "Basics" section in the developer guides.
Fixes: #9803
Have you read the Contributing Guidelines on pull requests?
Yes

/land

:broken_heart: Test Failed - ci-test

/land


Include capitalised versions of environment variables

Some programs check for the HTTP_PROXY, HTTPS_PROXY and environment variables like this instead of the usual lowercase ones. One example I could give right now is the Ruby package manager gem (see this stackoverflow answer).

I've merged this PR. But the changes should be made to bash.sh as well.

I would recommend having capitalised variables as aliases to small case variables.

Good call about editing bash.sh. And using aliases are also neat, that could be done. Opening the previous pull request to continue on this would've been nice, but I'm not entirely sure if that can be done or not.

I did not implemented aliases like you recommended, cause that may make the intention of the program unclear. We are trying to export two separate environment variables HTTP_PROXY and http_proxy, so I think exporting them normally would be better.

@himanshub16 Pull request #25 fixes this. Let me know if there are any problem and I'll push more commits ( if there are any problem ).


bug(kube-prometheus): ArgoCD errors when deploying via Helm

Error seen in ArgoCD logs:
--
Failed sync attempt to : one or more synchronization tasks completed unsuccessfully, reason: CustomResourceDefinition.apiextensions.k8s.io "prometheusagents.monitoring.coreos.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes,CustomResourceDefinition.apiextensions.k8s.io "prometheuses.monitoring.coreos.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes,resource mapping not found for name: "kube-prometheus-stack-prometheus" namespace: "grafana" from "/dev/shm/532080403": no matches for kind "Prometheus" in version "monitoring.coreos.com/v1" ensure CRDs are installed first (retried 5 times).

seen during isntallation of kube-prometheus as part of #218

ref to issue seen: https://github.com/prometheus-community/helm-charts/issues/3345#issuecomment-1574763477

fix in #311


ladCfg > metrics > resourceId is required

Under metrics, the documentation says the following about the "resourceId" property:

The Azure Resource Manager resource ID of the VM or of the virtual machine scale set to which the VM belongs. This setting must be also specified if any JsonBlob sink is used in the configuration.

This seems to indicate that the attribute is not required if a JsonBlob sink is not used in the configuration. However, trying to install the extension without a JsonBlob sink and without resourceId configured results in the following error message:
ERROR:/var/lib/waagent/Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.127/xmlCfg.xml(97) Error: Missing one or more required attributes (columnValue, columnName, partitionKey)

On a working configuration with "resourceId" specified, "partitionKey" is populated in the XML with this "resourceId attribute". Without "resourceId", "partitionKey" is set to an empty string which seems to be the source of this error.
The documentation should indicate that "resourceId" is always required if this is the case.

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

ID: 13249027-1524-dd0c-9d83-15a9733a3d19
Version Independent ID: bf8a2d1a-8d9b-228a-6919-16127f315d40
Content: Azure Compute - Linux Diagnostic Extension
Content Source: articles/virtual-machines/extensions/diagnostics-linux.md
Service: virtual-machines-linux
GitHub Login: @MicahMcKittrick-MSFT
Microsoft Alias: mimckitt

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

We are currently cleaning up old issues and closing out items that are greater than 90 days old. If an issue is still present, please open a new feedback item on the document so we can prioritize correctly.
#please-close


Documentation: FirstApp.md bad links

File: FirstApp.md
Text at the bottom contains links that don't appear to work:
To see how to create web pages using Pode, see here
To see how to do basic login/logout pages, see here

😳 Yep, they're supposed to respectively go to:

https://badgerati.github.io/Pode/Tutorials/Routes/Examples/WebPages/
https://badgerati.github.io/Pode/Tutorials/Routes/Examples/LoginPage/

I'll update them later! Thanks

That's been fixed over at https://badgerati.github.io/Pode/Getting-Started/FirstApp/ now.


Add aws sdk 2 support

https://mvnrepository.com/artifact/software.amazon.awssdk/aws-sdk-java

fixed via #11


assertThatEventual test coverage

Reviewer checklist

[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure any appropriate documentation has been added or amended

Coverage increased (+0.4%) to 96.422% when pulling 303fb82efc73da5474aa41f49ca494c0e1e7dc37 on coverage into c2bb244d1a199a8d80bb0571e72b11d0b81aa44f on main.


Navigation Issue

after installing this npm navigation not working in app,can anyone suggest me the solution

@nandhakishore14 what do you mean by "npm navigation"? please be more specific.

will reopen if @nandhakishore14 responds.


Robotjs works perfectly in dev - does nothing in production (macOS)

Hi Guys
Sorry I've been stuck with this one for quite a while now and I'm not really sure what else to try.
I am using robotjs to simulate a cmd + v keyboard press to paste from the clipboard into the previously focused application. I am using electron-webpack and in dev everything works as it should. However, when I build for production using electron-builder and run the dmg everything else works fine except robotjs does nothing.
I'm probably just missing a build step but I'm not sure. I've looked at electron-builder and electron-webpack experimented with different configurations but had no joy. Any and all help with this is very much appreciated, thanks!
Environment

RobotJS version: 0.6.0
Node.js version: 12.11.1
npm version: 6.11.3
Operating System: macOS Mojave 10.14.6

Here's a simplified version of the code:
package.json
{
    "name": "app",
    "version": "0.0.4",
    "license": "MIT",
    "electronWebpack": {
        "main": {
            "sourceDirectory": "src/main"
        },
        "renderer": {
            "sourceDirectory": "src/renderer"
        },
        "whiteListedModules": [
            "robotjs"
        ]
    },
    "build": {
        "appId": "com.electron.app",
        "productName": "app",
        "compression": "store",
        "files": [
            "**/*"
        ],
        "mac": {
            "category": "public.app-category.utilities"
        },
        "publish": {
            "provider": "s3",
            "bucket": "app-releases-dev",
            "region": "eu-west-1"
        },
        "buildDependenciesFromSource": "true",
        "npmRebuild": "true"
    },
    "scripts": {
        "dev": "electron-webpack dev",
        "compile": "electron-webpack",
        "dist": "NODE_ENV=production yarn compile && electron-builder",
        "dist:mac": "NODE_ENV=production yarn compile && electron-builder --mac --x64",
        "publish:mac": "NODE_ENV=production yarn compile && electron-builder --mac --x64 --publish always",
        "dist:dir": "yarn dist --dir -c.compression=store -c.mac.identity=null",
        "postinstall": "electron-builder install-app-deps"
    },
    "resolutions": {
        "js-yaml": "3.13.1"
    },
    "dependencies": {
        "antd": "^3.26.0",
        "auto-launch": "^5.0.5",
        "electron-better-ipc": "^0.7.0",
        "electron-clipboard-extended": "^1.1.1",
        "electron-log": "^4.0.0",
        "electron-store": "^5.1.0",
        "electron-updater": "^4.2.0",
        "mousetrap": "^1.6.3",
        "node-cron": "^2.0.3",
        "react": "^16.12.0",
        "react-dom": "^16.12.0",
        "robotjs": "^0.6.0",
        "source-map-support": "^0.5.12"
    },
    "devDependencies": {
        "@types/auto-launch": "^5.0.1",
        "@types/electron-clipboard-extended": "^1.0.1",
        "@types/jest": "^24.0.23",
        "@types/mousetrap": "^1.6.3",
        "@types/node": "^12.12.14",
        "@types/node-cron": "^2.0.2",
        "@types/react": "^16.9.13",
        "@types/react-dom": "^16.9.4",
        "@typescript-eslint/eslint-plugin": "^2.9.0",
        "@typescript-eslint/parser": "^2.9.0",
        "electron": "7.1.5",
        "electron-builder": "^21.2.0",
        "electron-webpack": "^2.7.4",
        "electron-webpack-ts": "^3.2.0",
        "eslint": "^6.7.1",
        "eslint-config-prettier": "^6.7.0",
        "eslint-config-react-app": "^5.0.2",
        "eslint-loader": "^3.0.2",
        "eslint-plugin-flowtype": "^4.5.2",
        "eslint-plugin-import": "^2.18.2",
        "eslint-plugin-jsx-a11y": "^6.2.3",
        "eslint-plugin-prettier": "^3.1.1",
        "eslint-plugin-react": "^7.17.0",
        "eslint-plugin-react-hooks": "^2.3.0",
        "node-sass": "^4.13.0",
        "prettier": "^1.19.1",
        "sass-loader": "^8.0.0",
        "typescript": "^3.7.2",
        "webpack": "~4.35.3"
    }
}

main/index.ts
import { app, BrowserWindow, globalShortcut, Menu } from 'electron'
import { join } from 'path'
import { format as formatUrl } from 'url'

import { ipcMain } from 'electron-better-ipc'
import { keyTap } from 'robotjs'

const isDevelopment = process.env.NODE_ENV !== 'production'

// global reference to mainWindow (necessary to prevent window from being garbage collected)
export let mainWindow: BrowserWindow | null

function createMainWindow() {
    const window = new BrowserWindow({
        fullscreenable: false,
        resizable: false,
        width: 265,
        height: 395,
        webPreferences: { nodeIntegration: true },
        show: false,
        title: 'appname',
        frame: false
    })

    window.setAlwaysOnTop(true, 'normal')
    window.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })

    if (isDevelopment) {
        // window.webContents.openDevTools()
        window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`)
    } else {
        window.loadURL(
            formatUrl({
                pathname: join(__dirname, 'index.html'),
                protocol: 'file',
                slashes: true
            })
        )
    }

    // Emitted when the window is closed.
    window.on('closed', () => {
        // Dereference the window object, usually you would store windows
        // in an array if your app supports multi windows, this is the time
        // when you should delete the corresponding element.
        mainWindow = null
    })

    window.on('blur', () => {
        Menu.sendActionToFirstResponder('hide:')
    })

    window.webContents.on('devtools-opened', () => {
        window.focus()
        setImmediate(() => {
            window.focus()
        })
    })

    window.on('minimize', (event: any) => {
        event.preventDefault()
        window.hide()
    })

    return window
}

const toggle = () =>
    mainWindow!.isVisible() ? Menu.sendActionToFirstResponder('hide:') : mainWindow!.show()

// Quit when all windows are closed.
app.on('window-all-closed', () => {
    // On OS X it is common for applications and their menu bar
    // to stay active until the user quits explicitly with Cmd + Q
    if (process.platform !== 'darwin') {
        app.quit()
    }
})

app.on('activate', () => {
    // On OS X it's common to re-create a window in the app when the
    // dock icon is clicked and there are no other windows open.
    if (!mainWindow) mainWindow = createMainWindow()
})

// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on('ready', () => {
    app.dock.hide()
    mainWindow = createMainWindow()

    ipcMain.answerRenderer('paste-on-close', () => {
        toggle()
        keyTap('v', 'command')
    })

    globalShortcut.register('Command+Control+V', () => {
        toggle()
    })
    console.log('app ready... 🚀')
})

So the issue was due to macOS permissions.
Un-granting accessibility and then checking the box again has seemed to fix the issue.

This is an issue I'm facing as well. If you deploy a new version of the app (I'm using Electron), even if the accessibility permission is already granted to the older version, it needs to be ungranted then granted again for robotjs to work.
This is annoying and there's no way to prompt the user to grant accessibility permissions again because they are already granted!
@sweeetland Did you ever find a solution to this issue?

Not working when packaged for Windows either, any news?

macOS Monterey 12.3.1
Robotjs works perfectly in dev - does nothing in production, any news ？

This is an issue I'm facing as well. If you deploy a new version of the app (I'm using Electron), even if the accessibility permission is already granted to the older version, it needs to be ungranted then granted again for robotjs to work.
This is annoying and there's no way to prompt the user to grant accessibility permissions again because they are already granted!
@sweeetland Did you ever find a solution to this issue?

hi. @aabuhijleh @sweeetland
I have the same situation, have you solved it?
thx.


Update link to the functions that show how stars are calculated

now links to the folder where all the files for the individual platforms are located and explains how to find the code
haven't checked the link works, so maybe needs a direct link to https://github.com/quantified-uncertainty/metaforecast/tree/master/src/backend/platforms

Thanks for noticing!


feat(storage): Add UploadFromOffset and UploadLimit to UploadFile

This PR is a part of #4437
I would like to ask where I should write test for this PR. Thank you

This change is

About fifo file, it is a little bit more complicated since we have to have 2 threads, one writes data to fifo and one uploads the data to GCS server simultaneously. Please review the current changes first and I will add the test for fifo later. Thank you.

I will wait for #4408. In the mean time, I will do some tests with upload for irregular file

@vnvo2409  we merged #4408 earlier today in case you want to pick this up again.

I think that we have to write another helper function like UploadFileSpecial to deal with special file. After some experiments, C++ api is really bad at dealing with fifo:

seekg() does not work.
We have to read only 1 byte at a time because gcount(), tellg() do not work.
when we call fstream.close(), it causes the thread which is writing to fifo stop too. This may cause some errrors since the thread that is writing to fifo isn't related to google-cloud-cpp.

So I think we should have a seperate PR for the special file. What do you think ?

So I think we should have a separate PR for the special file. What do you think ?

Yes, it seems that getting those to work should be a separate bug and PR.  We might decide to not have them work at all (as opposed to just warning about them).

Test failed because
/v/google/cloud/storage/client.cc:131:19: error: comparison of integers of different signs: 'streamsize' (aka 'long') and 'size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
  if (is.gcount() < payload.size()) {
      ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
1 error generated.

Done 🎉


Timestamp in video is not internationalised

The timestamp appears to be fixed to MM/DD/YY, which is very confusing if you're not in the USA. Can you either change it to YYY/MM/DD, use the current locale, or provide an option.

Do you mean the timestamp displayed within the video? It is defined based on the current locale.
Following is the entry that sets the text and how to display it (epoch_time is replaced then with actual timestamp for video):
'%{pts:localtime:{epoch_time}:%x %X}
The last argument defines how the timestamp should be represented, it is based on strftime:
%x     The preferred date representation for the current locale
without the time.
%X     The preferred time representation for the current locale
without the date.

My locale was set to my Australian locale at the time, which is definitely not how it came out in the final video. Is there any other debugging I can look into? I'm not familiar with the code yet but I can dive in later.

Using --loglevel DEBUG will provide more information on things going on, including the FFmpeg command that is executed. The timestamp is put in there with the drawtext parameter.

Hi - sorry for the delay in replying. I have been playing around with this. The debug log confirms that the timestamp is as you say and I can see the line in the code that sets it. I've tried to set the TZ and LC_TIME environment variables and it still does the date in US format.
If I remove the %x %X then I get the YYYY-MM-DD format that I want. The documentation seems to suggest that just using localtime is enough to do the date in the local format. Can you confirm for your locale? If so, we can just remove the formatting directives.

I'm seeing this issue as well, on a Windows Server 2016 box. Global culture (base Windows version) is set to en-GB, local user/display culture is en-AU, both of which should present a DD/MM/YYYY - but I'm getting MM/DD/YYYY stamped into the videos.
I suspect this is a side-effect of using the prepackaged Windows binary rather than running the Python script directly... How is this packaged together? Maybe TZ/LC_TIME environment variables end up baked into the package? Can I override these at the commandline?
Here's a (poorly-)formatted example of the debug output for the ffmpeg command:
2020-08-08 20:03:38,122:DEBUG:  __main__        FFMPEG Command:
['C:\\Users\\aholmes\\AppData\\Local\\Temp\\2\\_MEI136642\\ffmpeg.exe
-loglevel error
-i Q:\\temp\\TeslaCam\\SavedClips\\2020-03-06_11-46-57\\2020-03-06_11-37-43-left_repeater.mp4
-i Q:\\temp\\TeslaCam\\SavedClips\\2020-03-06_11-46-57\\2020-03-06_11-37-43-front.mp4
-i Q:\\temp\\TeslaCam\\SavedClips\\2020-03-06_11-46-57\\2020-03-06_11-37-43-right_repeater.mp4
-i Q:\\temp\\TeslaCam\\SavedClips\\2020-03-06_11-46-57\\2020-03-06_11-37-43-back.mp4
-filter_complex "
color=duration=59.83:s=3840x2016:c=black, fps=30
[base];
[0:v] setpts=PTS-STARTPTS, scale=1280x960 , hflip [left];
[1:v] setpts=PTS-STARTPTS, scale=1280x960  [front];
[2:v] setpts=PTS-STARTPTS, scale=1280x960 , hflip [right];
[3:v] setpts=PTS-STARTPTS, scale=1280x960 , hflip [rear];
[base][left] overlay=eof_action=pass:repeatlast=0:x=0:y=528 [left1];
[left1][front] overlay=eof_action=pass:repeatlast=0:x=1280:y=0 [front1];
[front1][right] overlay=eof_action=pass:repeatlast=0:x=2560:y=528 [right1];
[right1][rear] overlay=eof_action=pass:repeatlast=0:x=1280:y=1056 [rear1];
[rear1] drawtext=fontfile=/Windows/Fonts/arial.ttf:fontcolor=white:fontsize=96:borderw=2:bordercolor=black@1.0:x=(w/2-text_w/2):y=(960 + 5):text='%{pts\\:localtime\\:1583455063\\:%x %X}' [tmp0]"
-map [tmp0]
-preset medium
-crf 28
-c:v libx265
-metadata description=Created by tesla_dashcam v0.1.16
-y D:\\temp\\TeslaCam\\2020-03-06_11-37-43.mp4

@neg2led If you try my suggestion on https://github.com/ehendrix23/tesla_dashcam/issues/109#issuecomment-581801092 to remove some of the formatting options, does it work for you? FWIW I am using this on Linux so I doubt it's a Windows problem, probably an ffmpeg bug or documentation problem.

I can't particularly easily check, since I'm not sure how the Windows binary is packaged together - I've no doubt it would work if I was running the python script directly, but i'm trying to avoid installing Python on the system in question if I can!

Not sure why not localized, but in v0.1.17 you can now provide your own timestamp format hence it should fix this issue.
Beta just been released: https://github.com/ehendrix23/tesla_dashcam/releases/tag/v0.1.17b1

Closing as this issue has been fixed in v0.0.17 beta release, hopefully soon to be released as final


Reject submit if api token or cert id are empty

Just setting the flags to required on submit doesn't test for whether
the flags are actually provided. It only checks for their existence.
This code checks that the data is actually provided, and that another
flag isn't accidentally accepted as the value.
Fixes #754
Signed-off-by: Brad P. Crochet<EMAIL_ADDRESS>

Coverage increased (+0.07%) to 84.031% when pulling d3f767dbe1cf02500f1a11bbfd74045a9948f371 on bcrochet:fixes/754 into 34a9929d8a5926acf29adcbda7e212e0aca2448d on redhat-openshift-ecosystem:main.

/lgtm

Just a few final questions. Otherwise, this looks ok.

Addressed.


[Arith] Constant cancellation added for subtraction

Additional constant cancellation added with few useful test cases.
cc @tqchen , @yzhliu

The canonicalization based rules should already be sufficient for these cases, so if there is no explicit motivating usecases, it would be useful to keep things simple and not including the additional change

@tqchen : Thanks for your clear feedback! I did also have similar concerns here. These are some trivial issues I observed during my analysis. Now I understand canonicalization will resolve these.
But keeping that in mind, I found some redundant rules still exists in rewrite simplify.
So as you see, the clear distinction is missing.
So if it is possible, would you please help me understand what kind of rules should be part of rewrite simplify and which should be handled in canonical simplify.
This will help me put my future PR in right direction. TIA!

We are using the two systems in a complementary way. Given that the simplifier is a core piece of the system and can easily introduce regressions, it is preferred to be careful and only make changes when we find a concrete motivating cases.

Okay I got the point. Thanks!
So will it be correct to assume that the cases which are not handled by canonicalization should be added as rule in rewrite or it is other way around?
I am sorry, please bear with me in understanding it, as I found many discrepancies when I am using both together in simplify() .

yes, it would be great to also backed by a motivating example(e.g. the need to simplify indices for conv2d operator). Since we are not building a generic simplifier that resolves all complications. Closing this for now


Pagination colors are incorrect

Paginator has a link (the Go link) on a gray-10 background which is not accessible. This should be gray-5.
Current behavior

https://github.com/cfpb/generator-cf/blob/master/app/templates/src/static/css/cf-theme-overrides.less#L212

Expected behavior

Should be gray-5 for paginator background and disabled button background.

We can completely remove the brand-palette.less file right @Scotchester?

Yes, along with cf-theme-overrides.less (or empty it out) and licensed-fonts.less. Palette and fonts now come with cf-core and cf-typography, respectively.


Cannot GET /login/facebook/callback.

I have implemented the facebook login as per the README tutorial, however after I get redirected back to my app I get the Cannot GET /login/facebook/callback. message. If I attempt to refresh the page, then I get the blank page (so I assume the login was successful).
Any clues as to what might be the problem?

I had a similar problem when first using Kitura-Credentials. Did you call the /login/facebook endpoint directly, instead of using the failure redirect? If so, the credentials middleware may not know where to redirect the user back to.
I think you're supposed to use the middleware as follows:

Set credentials.options["failureRedirect"] = "/login/facebook"
Use credentials as a middleware for endpoints you want to use authentication for. In my case, that's everything under /web/, so I set router.all("/web", middleware: [session, credentials]).

The middleware will then check for authentication and if the user isn't authenticated yet, store the endpoint the user was attempting to access (say /web/home) and redirect to /login/facebook. When authentication is successful, the callback will then look up the original endpoint the user was trying to access (/web/home) and redirect back to there.
This setup works great for me.

@svanimpe thanks for the response!
It was actually the problem on the second item in your list. I didn't add the middleware to all routes. The way I presumed it worked is that if added to all routes, I would have a userProfile in request as an optional. It's nil if user is anonymous and it has a value if user is authorized. However adding middleware to all routes (I was attempting to add it to "/"), I got only blank screens.
The guys at ibm made a new release (I think it was 1.7.2) that changes the behaviour. Now you can add the middleware to the root path and check for the presence of user profile in request parameter and everything renders correctly!


Copy Output In A Better Formatting

Hey @jaroslawhartman,
Firstly, thanks a lot for making this workflow. It's saved me a lot of time and it's pretty helpful.
Just one small modification which I can't figure out myself.
I would like to be able to copy the output and paste it into an email or a message.
For example, when I run command tz tm 12:00, the result which gets copied is Palo Alto, 22:30. I would prefer to have this date properly formatted so that I can directly send this in an email. An example would be 27 Jan 2021, 22:30 (Palo Alto Time).
I also really disliked the pop-up/large text that would come, but I figured out how to disable that.
Cheers and thanks a lot,
J

Hey,
Just wanted to follow up and see if you got a chance to check this out...
Cheers and thanks a lot,
J

Fixed in v2.30:

Big banner on copy changed to to MacOS notification #45
Changed format of text copied to clipboard (after pressing Enter) - now it's more compact "14:42 (Warsaw)" #45

Best regards,
Jarek

More changes in v2.30:
3. Option to change time format copied to clipboard

Hey man,
Thanks a lot for doing this! This workflow is amazingly helpful and thanks for taking the time out to append it with feedback.
Cheers,
J


fix links in blog post: Eviction policy for unhealthy Pods guarded by PDBs

3 links are incorrect in an already published blog post
followup to https://github.com/kubernetes/website/pull/37627

/lgtm
/approve

@tengqm thank you!


Cross validation

When I run CV, this print out and I cannot find what is it
The above exception was the direct cause of the following exception:
TypeError                                 Traceback (most recent call last)
 in
----> 1 ggs.GGSCrossVal(data1, Kmax=25, lambList = [0.1], features = feats, verbose = False)
~/Nuevo/envs/ggs.py in GGSCrossVal(data, Kmax, lambList, features, verbose)
98             (7,data, Kmax, lamb, verbose, origSize, n, ordering),
99             (8,data, Kmax, lamb, verbose, origSize, n, ordering),
--> 100             (9,data, Kmax, lamb, verbose, origSize, n, ordering)])
101
102         #Accumulate results
~/anaconda3/envs/Nuevo_copia/lib/python3.7/multiprocessing/pool.py in map(self, func, iterable, chunksize)
266         in a list that is returned.
267         '''
--> 268         return self._map_async(func, iterable, mapstar, chunksize).get()
269
270     def starmap(self, func, iterable, chunksize=None):
~/anaconda3/envs/Nuevo_copia/lib/python3.7/multiprocessing/pool.py in get(self, timeout)
655             return self._value
656         else:
--> 657             raise self._value
658
659     def _set(self, i, obj):
TypeError: slice indices must be integers or None or have an index method
would you help me pls?
great paper!

how to solve?


FW-1471

JIRA: https://firstvoices.atlassian.net/browse/FW-1471

Adds a 'General Notes' wysiwyg field to create/edit forms for Words & Phrases.
Content displayed on Word/Phrase detail and Tasks Dashboard detail

Thanks for the review @gmcauliffe !


preparing for new toolchain (#3)

take CATALOG_URL from env variable, no guessing

document CATALOG_URL

document CATALOG_URL

@rvennam can you review this PR and merge it to master? Goal is to enable the pipeline on master.


Feature Request: "Share this via URL"

It would be great to be able to share the chain I have made with someone else.

Duplicate of #19

Hi @HourGlss, please have a look at the discussion over at #19. Thank you!


CMS 5 Upgrade

CMS 5 Upgrade changes

Specify the Silverstripe framework ^5.0
Specify the Silverstripe siteconfig ^5.0
Specify the Silverstripe CMS version to ^5.0

Hey! Thanks so much for this - I've re-targeted at a new 3 branch, and will tag and such accordingly!


TileSet "Paint" button for painting properties stops working anb becomes greyed for an unknown reason

Godot version
4.1.beta1
System information
Godot v4.1.beta1 - Windows 10.0.22621 - Vulkan (Forward+) - dedicated AMD Radeon RX 5700 XT (Advanced Micro Devices, Inc.; 31.0.14057.2005) - AMD Ryzen 7 5800X 8-Core Processor (16 Threads)
Issue description
I have no idea what caused this, so not sure how this could be tracked down. But, figured it is worth noting since I couldn't find an issue opened already.
I have a rather simple project with a few nodes and Tilemap. After a long time of working on this project today, I went back to paint a new physics layer using the Tileset > Paint feature. However it was greyed out, and no amount of switching tabs, moving windows, or flicking through the inspector or scene tabs did anything.

This picture shows the paint button not working.
I did nothing but close Godot and reopen it, and it began working again.

Is this intended, and did I somehow activate something that disabled the ability to Paint, or is this a bug?
Steps to reproduce
No detailed steps, unfortunately. It just randomly became greyed out after not opening the TileSet or TileMap windows for a long time and would not become active until restarting Godot.
Minimal reproduction project
N/A because I couldn't tell you what caused this

IMHO this read-only mode could be communicated better (e.g. the button text changing to Read only in addition to being disabled)

I am not sure this is a bug. Basically, this happens when the TileSet resource is in read_only mode. This might be because the resource is opened in two scenes or something like that.

Yup, this is it. Creating an inherited scene of the tilemap causes this to happen every time. I agree with @Zireael07 that maybe a simple change to the hover text to say "TileSet is in read-only mode. Make the resource unique to edit TileSet properties" would be super helpful, since I know I spent a good half hour trying to figure out what was going on.
It may also be an issue of how I was structuring the game, but essentially it is a tile-based puzzle game, and additional levels are inherited scenes of the first level, which has all of the core logic for the game board.

Made a PR to fix this problem. I used @stilestr suggested text as the tooltip to display when the button is disabled. When enabled it should have the regular tooltip.


How to package a button and more  as a component ?

To package a button and more as a component and pass events through an Action, ultimately achieving something like Upload

hydroview implements slots,but can't pass event.

Have you tried the following?
public class FormButton : HydroView
{
    public Expression Click { get; set; }
}

@model FormButton

<button<EMAIL_ADDRESS>  @Model.Slot()
</button>

Usage:
<form-button click="@(() => Model.Save())">
  Save
</form-button>

More examples here:
https://toolkit.usehydro.dev/examples/actions/

Thank you! It's perfect!