feat: add MinIO as storage provider

Add MinIO as additional storage provider. In spirit of creating open source data layer (#793), I'm adding MinIO as open-source alternative for Azure Blob Storage or AWS S3 that's already implemented BaseStorageClient. MinIO is compatible with S3 so only little changes are needed. This PR is inspired from #836.
How to Configure
import chainlit.data as cl_data
from chainlit.data.sql_alchemy import SQLAlchemyDataLayer
from chainlit.data.storage_clients import MinioStorageClient

storage_client = MinioStorageClient(bucket="<your bucket>", endpoint_url="<your minio api endpoint>") # user and password defaults to 'minioadmin'

cl_data._data_layer = SQLAlchemyDataLayer(conninfo="<your conninfo>", storage_provider=storage_client)

PS:
Also fix a little typo

Some notes:

this PR is now out of date
fixed version in #koodaamo/chainlit works
when installing MiniO from e.g. HomeBrew on MacOS, anonymous policy for bucket access must be added manually

Revisit this once https://github.com/Chainlit/chainlit/pull/1365 is in.


Update PUDL to be compatible with pandas 2.0

Work out dependency issues and update PUDL to work with pandas 2.0. Major improvements include the option to back dataframes with Arrow arrays, providing much richer data types and perfect compatibility with PyArrow generated Parquet file outputs.
In particular the way that Pandas deals with parsing mixed datetime fields has changed and is at least breaking our tests.

I think @nelsonauner is working on this.

Yeah - I am!

I've put it into our current sprint so we know it's a thing to pay attention to. Let us know if you need anything or are feeling stuck!

Sounds good! I tried to assign it to myself but didn't have permissions

Okay I moved the detailed notes from the PR #2320 into this issue, and also merged dev into the pandas-2.0 branch so it's up to date.

@cmgosnell A couple of the issues above are coming from this statement in pudl.helpers.generate_rolling_avg() where it's trying to take the mean() of all columns in the groupby() even though many of them aren't numeric.  Do you have any recollection of what's supposed to be going on here?  Honestly it seems kinda weird that this ever worked.
    # merge the date range and the groups together
    # to get the backbone/complete date range/groups
    bones = (
        date_range.merge(groups)
        .drop(columns="tmp")  # drop the temp column
        .merge(df, on=group_cols + ["report_date"])
        .set_index(group_cols + ["report_date"])
        .groupby(by=group_cols + ["report_date"])
        # BUG: This mean() is operating on all columns, but they aren't all numeric
        # and some of the numeric columns are IDs... which doesn't seem right. With
        # pandas 2 it fails when trying to average strings and categoricals.
        .mean()
    )

@aesharpe AFAIK the one remaining (known) blocker on pandas 2.0 is coming from this block of code in the small plants table:`
        header_groups = df.groupby(
            [
                "utility_id_ferc1",
                "report_year",
                (df["row_type"] == "header").cumsum(),
            ]
        )

Which is producing:
 ValueError: 'utility_id_ferc1' is both an index level and a column label, which is ambiguous.

Not sure why, and I wasn't clear on what's going on with the use of the cumsum() as one of the groupby columns.  I haven't dug into it yet.

@aesharpe AFAIK the one remaining (known) blocker on pandas 2.0 is coming from this block of code in the small plants table:`
        header_groups = df.groupby(
            [
                "utility_id_ferc1",
                "report_year",
                (df["row_type"] == "header").cumsum(),
            ]
        )

Which is producing:
 ValueError: 'utility_id_ferc1' is both an index level and a column label, which is ambiguous.

Not sure why, and I wasn't clear on what's going on with the use of the cumsum() as one of the groupby columns. I haven't dug into it yet.

The cumsum() is basically creating a groupby index based on where there are identified header rows. The final groupby objects will be groups of utilities, years, and header groups within those. For example:

Ah it turns out the problem was simpler. For some reason utility_id_ferc1 and report_year were both showing up as the index of the dataframe, and as columns. reset_index(drop=True) got rid of the conflict.


"use strict" at the top of the output file breaks any non-strict code

...such as web-animations-next.min.js, which is used by Polymer's Neon. The minifier it's been built with is generating non-strict code (specifically, it's assuming that 'this' points at window by default):
https://github.com/web-animations/web-animations-next/issues/402
This specific case is obviously a configuration issue at web-animations' end, but there's plenty of non-strict code floating around the net and putting "use strict" at the top of the output file means that it can't be used by vulcanize. There should be an option to disable this.

Oops. Sorry, my mistake --- the line's been added by babelify, not vulcanize (I'm running babelify after vulcanize). Nothing to do with Polymer. Apologies for the noise.


4301 pasting something in table block is throwing error

Fix: Fixed pasting content in Table Block returns an error.
Issue: #4301
Before:

After:

What I did:
I turned on the normalizeExternalData extension for Table Block.

@tiberiuichim  please merge this, Thank you.

Hey @tiberiuichim, can you please merge this, Thank you.

@curiousyuvi Sorry, I don't merge commits, I'm not Volto's maintainer, that's @sneridagh.
In any case, you have to do two things before it can be merged:

sign the Plone Developer Contributor agreement (search for it)
create the PR from a plone/volto branch so that the tests of the CI can run

It would be a good idea, if possible, to add some Cypress tests related to table pasting.

Well, I don't know how to write cypress tests, but I'll make a PR from plone/volto branch, anyways Thank you.

Well, I don't know how to write cypress tests, but I'll make a PR from plone/volto branch, anyways Thank you.

This is an unfortunate response. A better response, showing how curious yuvi is, would have been, "I will search the frontend docs for Cypress tests and learn how to do what you request."

Hey @tiberiuichim and @stevepiercy, thanks a lot for your feedback on my PR. I'm sorry for my initial response - I know I could have handled it better. But your suggestions were spot on, and I'm really keen to learn how to write Cypress tests. I'll scour the frontend docs and make sure to include them in the PR.
Oh, and by the way, big thanks to @stevepiercy for helping me remember the word "curious" in my username! It got me thinking about why I created this username in the first place and about how important it is to stay curious, ask questions, and keep learning new things. Thanks again!


Map NP1010 probe to the usual NP1 geometry

Adds support for sapiens probe, as in https://github.com/billkarsh/SpikeGLX/blob/master/Src-imro/IMROTbl.cpp#L142
Related to https://github.com/SpikeInterface/probeinterface/issues/187

Merci Charlie.
One day as you suggest, we could heroically implement then all  at once  based this cpp code.
This would change a bit the logic.
Lets wait for an heroe.


Setup Kanban Board for Hotel Hub FullStack Capstone Project

Kanban Board Setup ⚒
Overview

PROJECT LINK
Collaborators -[5]

@ProgramKingAbel
@AleWaweru
@Enoisong
@sahlminkok
@Peter-Dumbari

Hi Team,
Great work so far👏
However there are some issues preventing me from giving the 👍
Highlights

Great descriptions of tasks 👍
All tasks seem to match functional requirements of the project 👍

Optional suggestions

Please ensure the total weight of tasks across both kanbans for any individual team member is not significantly different in weight from another, ie, no team member should have a difference in weight of more than or equal to five (or more than 4) when compared with any other team member. I nthis case, @Enoisong has 14 while  the highest is 19. That is a difference of >= 5.
[OPTIONAL] Consider adding labels to your issues, it makes it easier to filter by different types and gives another added level of differentiation among tasks (front-end vs back-end etc.)
[OPTIONAL] Ensure that you are adding realistic weight to your tasks.

Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Hope all is well, and that my comments were helpful. 😸
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the Issue thread if something is not 100% clear.
Please, do not open a new Issue for re-reviews. You should use the same Issue submitted for the first review, either valid or invalid unless it is requested otherwise.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

Hi Team,
In my opinion, you are ready to move on to the next step! ⏭
Good luck! 🎉
Feel free to leave any questions or comments in the Issue thread if something is not 100% clear.
Hope all is well, and that my comments were helpful. 😸
Cheers and Happy coding!👏👏👏

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


SQL:1999 compatible Hyper Dimensional Aggregates (HDA) V2

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/345
Originally created by @jschatz1 on 2019-01-30 14:22:59

Here is a second version of the HDA method.
It is a recursive method that essentially is this:
aggregate the right table on the primary key of the left table, then join... repeat
You only need to do this algorithm when there is an aggregate in question. Otherwise do a normal join.

sample SQL
with rightmosttable as (
SELECT * FROM rightmosttable
),
leftmosttable as (
SELECT * FROM leftmosttable
),
rightagg as (
SELECT leftmosttable_id, sum(iacv) as iacv
FROM rightmosttable
GROUP BY 1
),
joined as (
SELECT *
FROM leftmosttable
LEFT JOIN rightagg
ON leftmosttable.id =  rightagg.leftmosttable_id
)
SELECT *
FROM joined

cc @iroussos

View 3 previous comments from the original issue on GitLab


feat:admins can now see paste events and change their decisions

Close #215
And thus :
Close #203

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (dd6f753) 56.63% compared to head (42a0c81) 56.63%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #263   +/-   ##
=======================================
  Coverage   56.63%   56.63%
=======================================
  Files         160      160
  Lines        3494     3494
=======================================
  Hits         1979     1979
  Misses       1515     1515

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Java: FT.CREATE

https://docs.aws.amazon.com/memorydb/latest/devguide/vector-search-commands-ft.create.html
https://docs.aws.amazon.com/memorydb/latest/devguide/vector-search-overview.html

Superseded by https://github.com/valkey-io/valkey-glide/pull/2385


Remove TelegramRequestWithFilesInterface

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (c6d948f) to head (3b4a545).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##              master       #30   +/-   ##
===========================================
  Coverage     100.00%   100.00%
+ Complexity       947       916   -31
===========================================
  Files            208       208
  Lines           3450      3412   -38
===========================================
- Hits            3450      3412   -38

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Event Request] Table 85 Acc. Schedule Line - GetCaptionClass

Please, add new event to procedure "GetCaptionClass" in table 85 Acc. Schedule Line
OnBeforeGetCaptionClass(AnalysisViewDimType,AccSchedName,Caption,IsHandled);
[External]
PROCEDURE GetCaptionClass@7(AnalysisViewDimType@1000 : Integer) : Text[250];
VAR
  IsHandled@5562062 : Boolean;
  Caption@5562063 : Text[250];
BEGIN
  GetAccSchedSetup;

  //  new
  OnBeforeGetCaptionClass(AnalysisViewDimType,AccSchedName,Caption,IsHandled);
  IF IsHandled THEN
    EXIT(Caption);
  // end-new

  CASE AnalysisViewDimType OF
    1:
      BEGIN
        IF AnalysisView."Dimension 1 Code" <> '' THEN
          EXIT('1,6,' + AnalysisView."Dimension 1 Code");

        EXIT(Text006);
      END;
    2:

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


fix(app): removed unused codes

General

✏ Mark the necessary items without changing the structure of the PR template.

[ ] Pull request template structure not broken

Type

ℹ What types of changes does your code introduce?

👉 Put an x in the boxes that apply

[ ] 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 not work as expected)
[ ] This change requires a documentation update

Checklist

ℹ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

👉 Put an x in the boxes that apply.

[ ] My code follows the style guidelines of this project
[ ] Is the code format correct
[ ] Is the git submission information standard?
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

https://github.com/vbenjs/vue-vben-admin/blob/e161c1449ac3d097cd6eab9441b25de25d3aa27e/src/views/sys/login/LoginForm.vue#L28
@jigmeloday  emmm,The Row and Col components are being used


Merge into d3-geometry package?

It might be nice to have a slightly larger module containing d3-hull, d3-quadtree, d3-polygon, d3-voronoi… and whatever else we imagine in the future.

Or, slightly more conservative, just merge d3-hull into this package.


added history-page

Added the history page using shard cn cards and dialogs

The cards are all of similar length.To read the full response you can click on the view full content button

made sure it looks fine in light mode as well

made sure to keep it responsive as well

Looks amazing @Swetabh333 , Thanks alot for the contribution!

Why did you close the PR @Swetabh333

I put the env variables in .env instead - of .env.local and it got pushed , I'll fix it and raise a new one in just a min

Okay @Swetabh333 got it


Use official name for macOS

@exactly-one-kas i fixed the conflict. Can you aporove?

Apart from the Flatpak build failing, yes
Does that stem from an external error?

Apart from the Flatpak build failing, yes
Does that stem from an external error?

I think so. For some reason the commit id is not available. Happend already a few times. But the master never had this failure after merging so we can ignore it


how to make engine choose between 2 images in create lua sprite?

What is your question?
so, i want to have the create sprite function to choose between 2+ images when being created, how would i do this? thanks in advance!

If there is a decision you specifically want, then put it in an if statement. Otherwise, I would recommend something like this:
function onCreate()
   makeLuaSprite('bg1', 'background1', 100, 100);
   makeLuaSprite('bg2', 'background2', 100, 100);
   makeLuaSprite('bg3', 'background3', 100, 100);
   makeLuaSprite('bg4', 'background4', 100, 100);
end

local images = {
[0] = function()
   addLuaSprite('bg1', false);
end,
[1] = function()
   addLuaSprite('bg2', false);
end,
[2] = function()
   addLuaSprite('bg3', false);
end,
[3] = function()
   addLuaSprite('bg4', false);
end,
}
function onBeatHit()
   random = math.random(0, 3);
   if images[random] then
      images[random]();
   end
end

If you aren't working in lua, then I can't be of any help.


Use log grouping in GitHub Action

The log from running the GitHub Action currently has a couple of pages of dependency installation lines in the beginning. This is usually not interesting.
I think log grouping will help:
        echo "::group::Install the conformance test suite and dependencies"
        pip install -e "${{ github.action_path }}"
        echo "::endgroup::"

Also the action could probably use "-v" when invoking pytest so every test name gets printed


Add support for executing cronjobs

Needs my change in https://github.com/drone/drone-go/pull/58
Would be great if you could cut a new release of drone-go.

apologies for not looking at this sooner. however #180 has been merged with this functionality.
thank you for you patience, @mwillam 👍 for the pr


mrbgems defined classes unavailable?

Is there any trick to getting mrbgem defined classes to be available?
Adding (for instance) conf.gem :git => 'https://github.com/iij/mruby-regexp-pcre.git' to the build_config.rb , the make output reports that it should be available:
      Config Name: host
 Output Directory: build/host
         Binaries: mrbc
    Included Gems:
             mruby-erb - Direct ERB port from CRuby
             mruby-regexp-pcre
...

And it's available in mirb:
$ echo "Regexp.methods" | vendor/mruby/build/host/bin/mirb
mirb - Embeddable Interactive Ruby Shell

>  => [:instance_of?, :instance_eval, :_inspect, :instance_variable_get, :instance_variable_defined?, :instance_variable_set, :instance_variables, :Hash, :to_enum, :is_a?, :kind_of?, :method_missing, :protected_methods, :last_match, :`, :new, :private_methods, :initialize, :object_id, :quote, :methods, :!, :class_variable_get, :respond_to?, :attr_accessor, :send, :class_variable_defined?, :attr, :loop, :inherited, :public_methods, :remove_instance_variable, :superclass, :!=, :prepended, :prepend_features, :==, :escape, :instance_exec, :include, :__send__, :include?, :tap, :__id__, :extend_object, :proc, :iterator?, :class_variable_set, :local_variables, :raise, :prepend, :p, :extended, :singleton_class, :printf, :module_eval, :initialize_copy, :module_function, :hash, :format, :sprintf, :extend, :instance_methods, :__printstr__, :method_defined?, :equal?, :dup, :included_modules, :included, :eql?, :Integer, :srand, :rand, :class_eval, :class, :append_features, :puts, :clone, :to_s, :inspect, :alias_method, :ancestors, :const_defined?, :undef_method, :const_set, :const_get, :public, :__method__, :remove_class_variable, :private, :protected, :attr_writer, :lambda, :String, :attr_reader, :method_removed, :fail, :remove_method, :print, :block_given?, :global_variables, :enum_for, :compile, :nil?, :Array, :"!~", :class_variables, :===, :__case_eqq, :define_method, :Float, :const_missing, :singleton_methods, :remove_const, :constants, :define_singleton_method]

But it is not available in the mrb context created by go-mruby with the following snippet:
    mrb := mruby.NewMrb()
    defer mrb.Close()
    result, _ := mrb.LoadString(`Regexp.methods`)
    fmt.Printf("Result: %s\n", result.String())

The output is:
panic: uninitialized constant Regexp

goroutine 1 [running]:
main.main()
	/home/mike/go/src/github.com/mikesimons/templateer/main.go:61 +0x100

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1

I appreciate this may be me being thick headed but I've successfully managed to work with mruby in C  (here https://github.com/mikesimons/templateer) and go-mruby is not behaving as the C counterpart does even though initialization steps seem to be (more or less) the same.
In the C version above, mrbgem defined classes are simply available as if they were part of stdlib.

Ok, I figured it out. I was expecting to be able to build libmruby.a in my project dir and have the build_config.rb stuff self contained but that does not appear to be how this works.
To get it to work I had to copy my build_config.rb to the go-mruby/vendor/mruby directory, run make in the go-mruby directory and then copy libmruby.a to my project dir. This made all gem classes available.
Simply linking in a customized libmruby.a does not work (I have not dug deep enough to discover why not but I expect fundamental misunderstanding of how go builds work on my part).
If I haven't missed anything then this means that only one concurrent build of go-mruby with customized gems can happen at a time as they will all need to rebuild libmruby.a and go-mruby each time which seems like a pretty severe limitation.
The only way around this that springs to mind is to vendor go-mruby in my project directory.
If anyone has any thoughts on this or can point me to my misunderstanding I would be very appreciative.

Last one from me on this unless someone chimes in to tell me what I've missed. There is a template project over here that should provide enough to get started.
I doubt it's the best way of doing things but it does work (at least on linux) and enables a self contained project / workflow.

Sorry @mikesimons for the lack of a response. I still haven't had a chance to read this but it looks like you're making some great progress. I'll try to read this soon!

@mitchellh No worries; I imagine you're pretty busy these days and this isn't exactly a high priority repo ;)
It's pretty much solved as far as I need it solving now but if you have any input or recommendations I'd love to hear them.

@mitchellh Nothing to do for this one unless you'd like to reference the template project in the README or have some other idea on how projects can use go-mruby without vendoring. Feel free to close.

are you still seeing this? I have this in my makefile and it works on latest master:
https://github.com/erikh/box/blob/master/Makefile#L4

@erikh No; vendoring solved my issue. We should probably point out in the readme that any potential users should vendor go-mruby though or all projects will be sharing the libmruby.a from $GOPATH/src/github.com/mitchellh/go-mruby.

Ok, I'll submit a patch tomorrow night. SGTM. Should we close this?
On Fri, Oct 28, 2016 at 1:58 AM, Mike Simons<EMAIL_ADDRESS>wrote:

@erikh https://github.com/erikh No; vendoring solved my issue. We
should probably point out in the readme that any potential users should
vendor go-mruby though or all projects will be sharing the libmruby.a from
$GOPATH/src/github.com/mitchellh/go-mruby.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mitchellh/go-mruby/issues/18#issuecomment-256870884,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABJ64mGmtcjAwc4g5jir9zSIXLp15G1ks5q4bkzgaJpZM4Hh6KZ
.


Uncaught SyntaxError: Failed to execute 'querySelector' on 'DocumentFragment': '.markup.underline.link..hyperlink' is not a valid selector.

Today the following error message popped up. I don't remember doing anything special. Code is in HTML.
Atom Version: 1.9.6
Thrown From: activate-power-mode package, v0.7.2
Stack Trace
Uncaught SyntaxError: Failed to execute 'querySelector' on 'DocumentFragment': '.markup.underline.link..hyperlink' is not a valid selector.
At C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:852

Error: Failed to execute 'querySelector' on 'DocumentFragment': '.markup.underline.link..hyperlink' is not a valid selector.
    at Error (native)
    at Object.module.exports.getColorAtPosition (file:///C:/Users/user/.atom/packages/activate-power-mode/lib/power-canvas.coffee:53:55)
    at Object.module.exports.spawnParticles (file:///C:/Users/user/.atom/packages/activate-power-mode/lib/power-canvas.coffee:43:14)
    at invokeFunc (C:\Users\user\.atom\packages\activate-power-mode\node_modules\lodash.throttle\index.js:149:19)
    at leadingEdge (C:\Users\user\.atom\packages\activate-power-mode\node_modules\lodash.throttle\index.js:159:22)
    at Cursor.debounced [as throttleSpawnParticles] (C:\Users\user\.atom\packages\activate-power-mode\node_modules\lodash.throttle\index.js:224:16)
    at Object.module.exports.onChange (file:///C:/Users/user/.atom/packages/activate-power-mode/lib/power-editor.coffee:56:14)
    at Function.module.exports.Emitter.simpleDispatch (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\node_modules\event-kit\lib\emitter.js:125:28)
    at TextBuffer.module.exports.TextBuffer.applyChange (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:711:27)
    at TextBuffer.module.exports.TextBuffer.setTextInRange (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:621:12)
    at Selection.module.exports.Selection.insertText (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\selection.js:480:43)
    at C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor.js:934:29
    at C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor.js:973:29
    at TextBuffer.module.exports.TextBuffer.transact (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:847:18)
    at TextEditor.module.exports.TextEditor.transact (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor.js:1390:26)
    at C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor.js:967:24
    at TextEditor.module.exports.TextEditor.mergeSelections (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor.js:2369:18)
    at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor.js:2331:35)
    at TextEditor.module.exports.TextEditor.mutateSelectedText (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor.js:965:19)
    at TextEditor.module.exports.TextEditor.insertText (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor.js:931:19)
    at TextEditor.object.(anonymous function) [as insertText] (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\node_modules\underscore-plus\lib\underscore-plus.js:77:27)
    at TextEditorComponent.module.exports.TextEditorComponent.onTextInput (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor-component.js:506:26)
    at HTMLDivElement.<anonymous> (C:\Users\user\AppData\Local\atom\app-1.9.6\resources\app.asar\src\text-editor-component.js:3:61)

Config
{
  "core": {
    "disabledPackages": [
      "metrics"
    ],
    "themes": [
      "one-dark-ui",
      "base16-tomorrow-dark-theme"
    ]
  }
}

Installed Packages
# User
activate-power-mode, v0.7.2 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (active)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (active)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.38.3 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (inactive)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.0 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.46.0 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.0 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Restart / update didn't help.

Do you have Shadow DOM enabled?

tell if the fix is working for you

Great, it's working now. Thanks @lexcast. :-)

Great, thanks.


LuaJIT FFI bindings to libpostal

Just to let you know, I created LuaJIT FFI bindings to libpostal, in case you want to link for unofficial or alternate implementations or bindings:
https://github.com/bungle/lua-resty-postal/blob/master/lib/resty/postal.lua
It works with plain LuaJIT (the resty thing here is that I just want to support especially OpenResty community).

Thanks Aapo! Sorry for the delay, I've added an unofficial bindings section to the README and listed the Lua binding.
I'll bet it's now possible to build a geocoder backed by Redis.

Well, as far as I know, Redis itself doesn't use LuaJIT but PUC Lua. I'm not certain does Redis allow external Lua C modules to be loaded or is it just plain Lua code. But it is interesting thing to consider. At least you may utilize this with your LuaJIT or maybe OpenResty projects :-).


Modal scroll on Iphone

Should add into CSS to allow scrolling on Iphone Safari:
.modal{
-webkit-overflow-scrolling: touch;
}

Please create a Codepen illustrating the problem this solves.

This is required for dynamic contents, like iframes.
https://codepen.io/2410lv/pen/eVVeRJ
Testing:

Please open this link on Iphone Safari - modal wont be scrollable
Then uncomment CSS for .modal - and reload the page in Safari - modal will be scrollable like expected.


Edit Image profile

As a user/shop owner i want to edit my Image profile

a) I wanna make a photo with camera and upload
b) I wanna upload an image from galery


Cannot load video when run locally

I cannot load video when run locally using chrome. But it works in http://auduno.github.io/clmtrackr/clm_video.html

Are you running the page in file mode? Or at localserver?
-seth
On Wednesday 2 December 2015, keanudicap<EMAIL_ADDRESS>wrote:

I cannot load video when run locally using chrome. But it works in
http://auduno.github.io/clmtrackr/clm_video.html
—
Reply to this email directly or view it on GitHub
https://github.com/auduno/clmtrackr/issues/63.

--
Sent from Gmail iPhone App

Sounds like you're running the webpages directly from file. You have to run it from a local server in order for it to work, due to cross-domain restrictions in most web browsers. If you have python installed you can start a small local server in the current folder with the command python -m SimpleHTTPServer.

Thank you guys. I used Xampp to set up local server and it works!


Typo "poing" in webapps-annex/app/js/annex.js line 213

Hi.
Is "poing" a typo in webapps-annex/app/js/annex.js line 213?
212         this.level = 3;
213         this.poing = [];
214         this.heap = {'nextLevel':{}};

thanks!


fixUse utf-8 charset for internal query result.

Use utf-8 charset for internal query result.
User's environment may set default java file encode to some other character set, which may cause internal query get Garbled Characters.


On our services page, the arrow button  has an issue

when clicked the arrow-down button did not move in smoothly

The issue didn't sorted out.


Error: Could not find file in 'getValidSourceFile' during 'getApplicableRefactors'

This issue comes from crash dumps in telemetry. We've tried to de-duplicate issues on a best-effort basis, comparing the sequence of methods called and the command requested while ignoring line numbers.
TypeScript Version Prefix: 2.7.1
VSCode Version 1.20.0-insider
command requested: getApplicableRefactors
hitting sessions: 3432
proportion of all sessions: 0.012812041527141594
stack
Error: Could not find file
    at getValidSourceFile (tsserver.js:82699:23)
    at Object.getApplicableRefactors (tsserver.js:83298:24)
    at IOSession.Session.getApplicableRefactors (tsserver.js:90156:53)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:89112:61)
    at unknown (tsserver.js:90355:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:90346:28)
    at IOSession.Session.executeCommand (tsserver.js:90355:33)
    at IOSession.Session.onMessage (tsserver.js:90375:35)
    at Interface.<anonymous> (tsserver.js:91576:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)

looks like a duplicate of https://github.com/Microsoft/TypeScript/issues/20785

This issue reproduced in the following context:
TypeScript Version Prefix: 2.7.2
VSCode Version 1.21.0-insider
command requested: getApplicableRefactors
hitting sessions: 609
proportion of all sessions: 0.012502822886940811
stack
Error: Could not find file
    at getValidSourceFile (tsserver.js:82897:23)
    at Object.getApplicableRefactors (tsserver.js:83496:24)
    at IOSession.Session.getApplicableRefactors (tsserver.js:90354:53)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:89310:61)
    at unknown (tsserver.js:90553:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:90544:28)
    at IOSession.Session.executeCommand (tsserver.js:90553:33)
    at IOSession.Session.onMessage (tsserver.js:90573:35)
    at Interface.<anonymous> (tsserver.js:91774:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)


Jetbrains plugins

Description of changes
This commit adds support for declarative plugins (including ones which need patching) and some helper functions for fetching them from https://plugins.jetbrains.com. Untested on darwin. Closes #189183 .
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/clion-github-copilot-fails-to-login/22197/2

Hi @GenericNerdyUsername, thank you for the PR!! I've applied it already with overlays based on:

https://github.com/rien/nixos-config/blob/3c97851e1874c6a05b5d459a858bb1591bf45f54/modules/intellij.nix#L33-L104 and
https://discourse.nixos.org/t/clion-github-copilot-fails-to-login/22197/4?u=ktor

To install GitHub copilot for idea-ultimate and it works like a charm! :)
Here is the overlay: https://github.com/ktor/nixos/commit/35f4071faab696b2a4d86643726c9dd3e4293964

How would that interface get the hash of the api response? Would there be a way to make nix ignore impure derivations if its only dependency is content addressed? As long as updating plugins/adding new plugins isn't too hard, I think the plugin list would work.

I think this is usually done by creating an update-script which would generate pure input-url's (+ their hashes) to use with fetchUrl. So the first step (getUrl) would have to be done by that script.

I've added the update script and reworked how you add plugins, though I'm really tired and have definitely missed something, I'm just putting this out there so other people can suggest improvements or use it

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1402

Whats stopping this from getting merged?

Thank you for your effort! Everything works as expected on my x86_64 laptop.
I've also tried your overlay that adds JCEF support to JDK, it solved markdown preview issues in Clion.
As for slow merges - sadly that's common for complicated changes, to speed things up it is worth messaging few
active reviewers in nixos matrix or mentioning this PR in "PRs ready for review" once again.

Whats stopping this from getting merged?

maintainers don't seem to be merging jetbrains related PRs, all of them seems to have been stalled for a while now. furthermore darwin users aren't really reviewing or helping to diagnose build issues

+1 on this. I'd love to not have to use a 3rd party flake to be able to use Github Copilot.


can this be updated framework 1.6

Can this Platformio be updated to use your v1.6 Arduino framework - should it not be set to use the latest release?
Cheers
Jez

Resolved in https://github.com/HelTecAutomation/platform-heltec-cubecell/commit/46a5d197c00f9ba88185be4d21c5918b1a328549


Modify DataServlet.java

+1 on Jason's comment.  This looks good, but I'll wait until you get it into your portfolio before commenting


Add scoring for P2B

@msmolens PTAL.

With a 'perfect' submission, I get an error:
  File "/covalic/Python/scoreSubmission.py", line 127, in <module>
scoreAll(args)
  File "/covalic/Python/scoreSubmission.py", line 105, in scoreAll
scores = scoreP2B(truthDir, testDir)
  File "/covalic/Python/scoreP2B.py", line 56, in scoreP2B
metrics = scoreP2BImage(truthPath, testPath)
  File "/covalic/Python/scoreP2B.py", line 43, in scoreP2BImage
metrics.extend(computeSimilarityMetrics(truthBinaryImage, testBinaryImage))
  File "/covalic/Python/scoreCommon.py", line 136, in computeSimilarityMetrics
float(truePositive + falseNegative + falsePositive))
ZeroDivisionError: float division by zero

@msmolens PTAL again.

@msmolens PTAL again (3rd try).

LGTM


BAM output: add PP: tag to @PG header

While merging the original @PG headers now works great, it looks like there is no PP: tag added. Ex.:
$ samtools view -H 12MapBWA/BASE__r03_F000__01.bam | grep "^@PG"
@PG	ID:bwa	PN:bwa	VN:0.7.17-r1188	CL:./bwa mem -t 1 -I 390,78 refseq/dmel6.03_wMel_lbrev_apast_lplant_dcv.fa reads1.fq reads2.fq
@PG	ID:ReadTools DownloadDistmapResult	VN:1.2.1	CL:DownloadDistmapResult  --input hdfs://xxx/12MapBWA/BASE__r03_F000__01 --output 12MapBWA/BASE__r03_F000__01.bam --forceOverwrite true --numberOfParts 160 --noRemoveTaskProgramGroup true --TMP_DIR 99Temp  --secondsBetweenProgressUpdates 10.0 --createOutputBamIndex true --createOutputBamMD5 false --addOutputSAMProgramRecord true --SORT_ORDER coordinate --readValidationStringency SILENT --help false --version false --showHidden false --verbosity INFO --QUIET false --use_jdk_deflater false --use_jdk_inflater false --gcs_max_retries 20	PN:ReadTools DownloadDistmapResult

(see https://samtools.github.io/hts-specs/SAMv1.pdf p.4)

The PP tag is not required, and I never really find it handy, because it doesn't look like a common practice in most tools (and some of them even does not even add the tag).
In addition, in this case is easy to assign the PP tag, if there is not a proper graph of relationships between @PGs: for example, if there are two @PGs before running  ReadTools  (this is handled the same in every tool, not only distmap), to which one should the PP point? That will be even worse in the case of Dismap processing in a MapReduce way more than mapping (e.g., MarkDuplicates or SortSam`.
The options that I would accept for the implementation of this are the following:

Constructing the dependency graph of @PG and assign the PP only in the case that there is a direct connection between programs. This won't work for @PG that cannot be collapse, and for most of the examples of files that I used before there is not going to make any difference (except some extra code to handle something that result in the same output)
Add the PP tag only if there is one @PG before running ReadTools. This will make the output inconsistent.

This is somehow related with https://github.com/magicDGS/ReadTools/issues/355 and the hts-spec issue: the PP it is a nice feature but it does not handle properly the case of scatter processing.


Error when run app with debugger (VS Code) and run copy via terminal

logs
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:cleanMergeDebugAssets'.
> java.io.IOException: Unable to delete directory '/Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets'
    Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_lightning_strike
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_force_field
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_minefield
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_healing
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_stone_skin
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_resurrection
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_anti_magic
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_implosion
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_blindness
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_fire_wall
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_water_defense
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_forgetfulness
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_air_defense
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_sadness
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_mirth
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/magic/ls_counter_attack
    - and more ...
    New files were found. This might happen because a process is still writing to the target directory.
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/units/battle/stronghold
    - /Users/aleks/Projects/WORK/homm3_web/build/app/intermediates/assets/debug/mergeDebugAssets/flutter_assets/resources/images/units/battle/stronghold/roc

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 49s
Running Gradle task 'assembleDebug'...                             49,9s
Exception: Gradle task assembleDebug failed with exit code 1

Hi @alex9153, please provide the output of flutter doctor -v as well as the full verbose logs of the command you ran when you faced this issue.
Do you have this issue with the default flutter app?

the issue with the default flutter app. Concurrent build not working.
iMac-Aleksey:homm3_web aleks$ flutter doctor -v
[✓] Flutter (Channel stable, 3.0.0, on macOS 12.2 21D49 darwin-x64, locale ru-RU)
• Flutter version 3.0.0 at /Users/aleks/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ee4e09cce0 (9 days ago), 2022-05-09 16:45:18 -0700
• Engine revision d1b9a6938a
• Dart version 2.17.0
• DevTools version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/aleks/Library/Android/sdk
• Platform android-32, build-tools 32.0.0
• ANDROID_HOME = /Users/aleks/Library/Android/sdk
• Java binary at: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
[✓] VS Code (version 1.66.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.40.0
[✓] Connected device (4 available)
• ZB602KL (mobile) • J6AXB7654974VZ8 • android-arm64  • Android 9 (API 28)
• SM T970 (mobile) • R52N71EFXPN     • android-arm64  • Android 12 (API 31)
• macOS (desktop)  • macos           • darwin-x64     • macOS 12.2 21D49 darwin-x64
• Chrome (web)     • chrome          • web-javascript • Google Chrome 101.0.4951.64
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!

Hi @alex9153, please provide the steps to reproduce as well as the full verbose logs of flutter run -v. The output of this might be too huge for github, so kindly put it into a .txt file and attach it here.
Thank you


Add penflow-ai extension

Description

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

hi,I can't really program, just by Cursor. So, if there are any mistakes, please tell me.
Penflow just helps me communicate with you when my English is not good.


EI-254/ Reduce number of calls to resolver

Fix some lint
EI-254/ Reduce number of calls to resolver

@timchurchard  - I have one more Q about the FFI wrapper - it does, to delegate control to a new twin:

Retrieves agent doc (summary) via api.GetAgentIdentity (maybe 2x depending on whether seed method matches)
Calls CreateTwinWithControlDelegation, but this cannot take advantage of an already fetched agent doc (since api.GetAgentIdentity returns just the "summary" and SubjectDocument is always nil in CreateTwinWithControlDelegation

So unless I'm mistaken, this leads to:

/discover (+ discover)
discover + register

Question:

Should the FFI use the advanced API to re-use the fetched agent..  or
Should CreateTwinOpts include the equivalent of SubjectDocument (AgentDocument?) so an already fetched/created one ca be re-used?

I think getAgentIdentity does not call the resolver (resolver client not passed to func).
I've added AgentDoc as an option to CreateTwinOpts, and taken the opportunity to rename AgentId to AgentID but happy to undo that as it will be a breaking change


[Bug]: Timezone override is already in effect

Bug description
Steps to reproduce the problem:

Call page.emulateTimezone(timeZone) twice in a browser session.

See also: https://github.com/alixaxel/chrome-aws-lambda/issues/137
Puppeteer version
14.4.1
Node.js version
17.5.0
npm version
8.4.1
What operating system are you seeing the problem on?
Linux
Relevant log output
/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:268
                error: new Errors_js_1.ProtocolError(),
                       ^

ProtocolError: Protocol error (Emulation.setTimezoneOverride): Timezone override is already in effect
    at /node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:268:24
    at new Promise (<anonymous>)
    at CDPSession.send (/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:264:16)
    at next (/node_modules/puppeteer-extra-plugin-stealth/evasions/sourceurl/index.js:34:41)
    at CDPSession.send (/node_modules/puppeteer-extra-plugin-stealth/evasions/sourceurl/index.js:67:18)
    at Page.emulateTimezone (/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1586:67)
    ...
}

Could you verify if this occurs with different time zones? If it only occurs due to a duplicate call, I wouldn't necessarily call this a bug.


Do not remap externals in esbuild-plugin-import-path-remapper

Description
The onResolve hook in the esbuild plugin has the potential to override the resolution of externals. The esbuild-plugin-import-path-remapper plugin accidentally does this by potentially intercepting the resolution of @foo/bar and translating it into something like @foo/bar/src/index.ts. This should not be done if "@foo/bar" is in the list of externals in the build config.
Test plan
Reproduced the issue and validated the fix in the unit tests.

Thanks @tido64, I pushed the change file, going for a minor version bump. As a side note, yarn change does not actually work out of the box after you've done yarn in this repo, because @changesets/cli is a devDependency in the root package.json. If you make it a dependency instead, the binary is actually linked up so that yarn change works. Not sure if that should be considered a bug in yarn or what, but I don't think there would be any harm in changing those deps in the root package.json from devDependency to dependency.

Thanks @tido64, I pushed the change file, going for a minor version bump. As a side note, yarn change does not actually work out of the box after you've done yarn in this repo, because @changesets/cli is a devDependency in the root package.json. If you make it a dependency instead, the binary is actually linked up so that yarn change works. Not sure if that should be considered a bug in yarn or what, but I don't think there would be any harm in changing those deps in the root package.json from devDependency to dependency.

Thanks! Like you said, there's no harm so I will move it up.


ServiceBus AMQP - idle_timeout is not used with NEXT_AVAILABLE session

Package Name: azure-servicebus
Package Version: 0.50.2
Operating System: Windows 10
Python Version: 3.8.0

Describe the bug
I am using azure.servicebus.ServiceBusClient with session-enabled topics.
I create a Receiver with a certain idle_timeout (in seconds) and then call fetch_next with the same number for the argument timeout.
I am working on a topic where there is no message currently circulating, only me trying to listen.

If I provide to the receiver a specific session ID (any GUID), fetch_next returns after the specified timeout.

If instead I give NEXT_AVAILABLE for the session ID, fetch_next blocks for a minutem no matter the value of the timeout I provide. Also I receive a VendorLinkDetach('com.microsoft:timeout:...').

To Reproduce
Steps to reproduce the behavior:

Create a SubscriptionClient
Create a receiver receiver: Receiver = subscription_client.get_receiver(mode=ReceiveSettleMode.PeekLock, session=NEXT_AVAILABLE, idle_timeout=4)
Call receiver.fetch_next(1, timeout=4)

The method will return/throw after 1 minute instead of 4 seconds. It will behave correctly (use the 4 seconds timeout) if you pass a GUID instead of NEXT_AVAILABLE.
Expected behavior
Behavior consistent with GUID session IDs, fetch_next (or enter when using the context manager) returning after the timeout that is specified.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Here is a snippet of code that can be used to reproduce the problem, and the output I get :
import logging
import time
import uuid
from datetime import timedelta

from azure.servicebus import ServiceBusClient, ReceiveSettleMode, NoActiveSession, NEXT_AVAILABLE
from azure.servicebus.receive_handler import Receiver

CONN_STRING = "Endpoint=sb://secret.servicebus.windows.net/;SharedAccessKeyName=agent;SharedAccessKey=secret"
logging.getLogger().setLevel(logging.WARNING)

if __name__ == "__main__":
    bus_client = ServiceBusClient.from_connection_string(CONN_STRING)
    subscription_client = bus_client.get_subscription("secret", "secret")
    for session_id in ("", NEXT_AVAILABLE):
        print("///////////////////////////////////////////////")
        print(f" USING SESSION {'NEXT_AVAILABLE' if session_id else 'GUID'}")
        print("///////////////////////////////////////////////")

        for i in range(1, 5):
            _session = session_id or str(uuid.uuid4())
            print("    -----------------------------------------------")
            print(f"    TIMEOUT SET TO {i}")
            start = time.monotonic_ns()
            receiver: Receiver = subscription_client.get_receiver(mode=ReceiveSettleMode.PeekLock,
                                                                  session=_session, idle_timeout=i)
            print("    Got receiver")
            try:
                receiver.fetch_next(1, timeout=i)
            except NoActiveSession:
                pass
            except Exception as err:
                print(err)
            finally:
                receiver.close()

            duration_ns = time.monotonic_ns() - start
            duration = timedelta(microseconds=duration_ns/1000)
            print(f"    EXECUTED IN {duration_ns} ns")
            print(f"    TIMEOUT {i} -- EXECUTED IN {duration}")

    print("Finished")

///////////////////////////////////////////////
 USING SESSION GUID
///////////////////////////////////////////////
    -----------------------------------------------
    TIMEOUT SET TO 1
    Got receiver
    EXECUTED IN<PHONE_NUMBER> ns
    TIMEOUT 1 -- EXECUTED IN 0:00:01.765000
    -----------------------------------------------
    TIMEOUT SET TO 2
    Got receiver
    EXECUTED IN<PHONE_NUMBER> ns
    TIMEOUT 2 -- EXECUTED IN 0:00:02.766000
    -----------------------------------------------
    TIMEOUT SET TO 3
    Got receiver
    EXECUTED IN<PHONE_NUMBER> ns
    TIMEOUT 3 -- EXECUTED IN 0:00:03.765000
    -----------------------------------------------
    TIMEOUT SET TO 4
    Got receiver
    EXECUTED IN<PHONE_NUMBER> ns
    TIMEOUT 4 -- EXECUTED IN 0:00:04.782000
///////////////////////////////////////////////
 USING SESSION NEXT_AVAILABLE
///////////////////////////////////////////////
    -----------------------------------------------
    TIMEOUT SET TO 1
    Got receiver
VendorLinkDetach('com.microsoft:timeout: The operation did not complete within the allocated time 00:01:00 for object attach. For more information on exception types and proper exception handling, please refer to http://go.microsoft.com/fwlink/?LinkId=
761101 TrackingId:secret, SystemTracker:gateway5, Timestamp:2020-01-10T17:14:54')
    EXECUTED IN<PHONE_NUMBER>0 ns
    TIMEOUT 1 -- EXECUTED IN 0:01:02.640000
    -----------------------------------------------
    TIMEOUT SET TO 2
    Got receiver
VendorLinkDetach('com.microsoft:timeout: The operation did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. For more information on exception types and proper excepti
on handling, please refer to http://go.microsoft.com/fwlink/?LinkId=761101 TrackingId:secret, SystemTracker:secret:Topic:secret|secret, Timestamp:2020-01-10T17:15:55 TrackingId:secret, SystemTracker:gateway5, Timestamp:2020-01-10T17:15:55')
    EXECUTED IN<PHONE_NUMBER>0 ns
    TIMEOUT 2 -- EXECUTED IN 0:01:00.703000
    -----------------------------------------------
    TIMEOUT SET TO 3
    Got receiver
VendorLinkDetach('com.microsoft:timeout: The operation did not complete within the allocated time 00:01:00 for object attach. For more information on exception types and proper exception handling, please refer to http://go.microsoft.com/fwlink/?LinkId=
761101 TrackingId:secret, SystemTracker:gateway5, Timestamp:2020-01-10T17:16:57')
    EXECUTED IN<PHONE_NUMBER>0 ns
    TIMEOUT 3 -- EXECUTED IN 0:01:02.594000
    -----------------------------------------------
    TIMEOUT SET TO 4
    Got receiver
VendorLinkDetach('com.microsoft:timeout: The operation did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. For more information on exception types and proper excepti
on handling, please refer to http://go.microsoft.com/fwlink/?LinkId=761101 TrackingId:secret, SystemTracker:secret:Topic:secret|secret, Timestamp:2020-01-10T17:17:58 TrackingId:secret, SystemTracker:gateway5, Timestamp:2020-01-10T17:17:58')
    EXECUTED IN<PHONE_NUMBER>0 ns
    TIMEOUT 4 -- EXECUTED IN 0:01:00.797000
Finished

@K3UL sorry for missing the issue here.
We're looking into the issue and will update you if we make any progress on this.
Thanks for your patience in advance.

Hi, any ETA on this ?
Currently it is impossible to use a real timeout AND we have to use specific code to ignore that specific WARNING

Hey @K3UL , apologize for not getting to you sooner.
After investigation, this is an expected outcome when you specify session id to "NEXT_AVAILABLE" while no session is available, it works differently from specifying a certain session_id value.

NEXT_AVAILABLE: specifying "NEXT_AVAILABLE" requires the service side to look for any available/free session that is ready to be received from -- it's a service side setting. If service side can't find any in one minute, it would return error VendorLinkDetach('com.microsoft:timeout: The operation did not complete within the allocated time 00:01:00 for object attach. Client doesn't connect to any session.
idle_timeout: idle_timeout is the timeout between received messages. It come into effect only when the client side has already connected to a queue or a session (when you're connecting to a sessionful entity) and starts receiving.

So in your case of no available session, as the client in fact doesn't connect to any session, idle_timeout won't intervene.
If you find that warning logging annoying, you could eliminate that by upgrading uamqp log level:
uamqp_logger = logging.getLogger("uamqp")
uamqp_logger.setLevel(logging.ERROR)
# or uamqp_logger.setLevel(logging.CRITICAL)

Let me know whether this helps solving your problem.

@yunhaoling Thank you for looking into the issue. Silencing the logger was not really difficult, it is more a problem for me because I DO WANT the real Warnings (i.e. Deprecations ?) to show up.
I see the workflow you're describing and I understand why this happens, but I wonder then how to change that one minute timeout ? It is not critical to do so, but I don't like the idea of Azure controlling this for me.
For me the main problem is a lack of consistency in the behavior if I use a GUID or NEXT_AVAILABLE.

Hey @K3UL ,thanks for the feedback, I get your point on the "consistency in the behavior".
Right now we're having internal discussion on this topic and you've made your point quite well. I'll bring your concern to the team.
The reason why we choose not to override the behavior of 60s timeout for no-available-session as it's a service side setting, there could be service side concern on this -- e.g. it's expensive to re-establish the underlying connection so just wait for a while to see if any free session would be coming up.
I'll keep you updated on the topic, thanks for sharing your thoughts.

Actually I understand what you mean about the need to NOT re-establish connections too often (but still think it should be my choice), but I was more thinking about making it a longer timeout. In my case I get new messages after more than a minute almost always.
And tell me if I'm wrong, but service bus being charged per-operation and per-request, I could optimize our costing a little by having a longer timeout, and so less connections, am I right ?

Hi @K3UL , We respect your thoughts on this and has internally started drafting API proposal for our latest library -- azure-servicebus v7.0.0.
However, I'm sorry to tell you that the change won't go into the old preview library v0.50, v0.50 is about to be deprecated.
Currently we're putting all our efforts into azure-servicebus v7.0.0 (currently in preview status) to create a more user friendly and productive library. This "SessionReceiver opening timeout" is a non-trivial change to the v0.50 library and we have limited cycles so we decided not to support that for the old preview library.
I have created an issue for this topic for the v7 lib: https://github.com/Azure/azure-sdk-for-python/issues/11505.
Please use the issue to track our working progress.
Apologize for the inconvenience we bring to you and thanks for your understanding.

Hi @yunhaoling,
That is fine by me, I try to get rid of the legacy SDK as much as I can actually. I only use the old one for subscriptions management, but one of your colleagues told me you have a new management SDK brewingm that will be a little less "intrusive" on the credentials needed :)
Thank you for your time and for adding this issue on v7 ! I'll be watching out for it


Make sure multiple fields can be specified for sorting

This is dependent on a feature in MyData version 1.2.3. We need to wait till that one is released before we are able to proceed with this.


SetKernelArg error

Updated the pipeline after I noticed the output branches are merged into master.
Now getting the following error (using fake data):
Device: TitanX_demo
Padding: 128 bytes

Beams: 1
Synthesized Beams: 1
Batches: 10
Samples: 25600
Frequency range: 1290 MHz, 1589.8 MHz
Subbands: 1 (300 MHz)
Channels: 1536 (0.195312 MHz)
Zapped Channels: 0
Integration steps: 9
DMs: 1024 (0, 102.3)

terminate called after throwing an instance of 'cl::Error'
  what():  clSetKernelArg

gdb says the error is in here: int cl::Kernel::setArg<cl::Buffer>(unsigned int, cl::Buffer const&) ()

I'll look into it.

I don't seem to have the same error. @loostrum can you send me the exact configuration you are using?

Hmm maybe I'm missing something then. Here's the exact command I ran and the conf files.
TransientSearch -opencl_platform 0 -opencl_device 0 -device_name TitanX_demo -padding_file confs/padding.inc -zapped_channels confs/empty.inc -integration_steps confs/integration_steps_demo.inc -dedispersion_file confs/dedispersion.inc -integration_file confs/integration.inc -snr_file confs/snr.inc -input_bits 8 -output out/demo -dms 1024 -dm_first 0.0 -dm_step 0.1 -threshold 8 -random -width 128 -dm 789 -beams 1 -synthesized_beams 1 -batches 10 -channels 1536 -min_freq 1290 -channel_bandwidth 0.1953125 -samples 25600 -sampling_time 40.96E-6 -compact_results
confs.zip

Did this work without issues before I merged back the output branch into master?

Yes, I still have the version from before the merge on ARTS0 and there the
exact same conf files + call to TransientSearch do work.
2017-05-30 13:01 GMT+02:00 Alessio Sclocco<EMAIL_ADDRESS>
Did this work without issues before I merged back the output branch into
master?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/isazi/TransientSearch/issues/6#issuecomment-304844884,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGE148GR-1XNh9kcqdbNzy5MQK6CTu0Fks5r-_chgaJpZM4NpU3K
.

OK, the first issue I see is with the configuration files that are missing some of the parameters. I did fix all of the configuration files. Try with them and let me know.
confs.zip

Thanks for the updated files. I'm still getting the same error. These new config files do work with the old version.

There was still a problem with the configuration files I passed you. I am not sure  this is causing your problem, but at least now I can rule it out.
These new configuration files are correct.
confs.zip

Still the same error, so the config files are not the problem.

I am trying to replicate the error using your command line arguments and configuration files, but it keeps working for me.

Then there may be something wrong on Cartesius specifically. I'll install
the newest version separately on ARTS0 and check whether it works there.
2017-05-30 15:42 GMT+02:00 Alessio Sclocco<EMAIL_ADDRESS>
I am trying to replicate the error using your command line arguments and
configuration files, but it keeps working for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/isazi/TransientSearch/issues/6#issuecomment-304882005,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGE14xVNSVlt8zEXdfWGjsTcoT4vNSfJks5r_BzQgaJpZM4NpU3K
.

I am currently installing/tuning/running the pipeline using the scripts from here. Still tuning so it'll take time.

OK I can now replicate the error, so I should be able to fix it soon enough.

I forgot to merge the output branch in SNR. Now merged and everything works.


Add an example for a Zynq part

It appears we don't have any examples / demos which run on Zynq parts at the moment?
I don't know which board should be targeted?

@kgugala -- Any thoughts?

FYI - @andrewbutt1999

In my opinion, the important part of a zynq example is PS->PL communication.  After having 7020 support merged, it would be relatively easy to make an example based off of the zynq blinky example in prjxray.  I have a few tests that are more complicated, such as using axi, but they currently use xilinx IP.
At a more fundamental level, examples using the PS will be somewhat limited at the moment due a lack of understanding about configuring the PS using assembly.  For my more complicated examples I use the first stage boot loader generated by Xilinx, which contains intial PS configuration, and run the test from an SD card using antmicro's zynq-mkbootimage.
Eventually I think it will be necessary to fuzz the PS configuration (by checking different options in Vivado and comparing the resulting fsbl), but I'm not sure of the intellectual property concerns of using a Vivado/SDSoC/Vitis generated fsbl for now.

I think Antmicro have a bunch of examples with that?

We have this one https://github.com/SymbiFlow/symbiflow-arch-defs/tree/master/xc/xc7/tests/ps7/axi_lite_reg it implements an AXI peripheral which can be then used with this tester https://github.com/SymbiFlow/symbiflow-xc7z-automatic-tester
I also implemented a LiteX-Linux design using PS7 DDR in Zynq. I have to find it, though. I'll link it here once I have it.

Oh ok that's interesting.  Does using U-boot replace using the fsbl?  Do you have any examples of running a bare metal application on the PS?

I've got a Zybo Z7 with a xc7z020clg400-1 here and would be happy to help out with any testing.

Oh ok that's interesting. Does using U-boot replace using the fsbl? Do you have any examples of running a bare metal application on the PS?

I've been using this as a base: https://github.com/SymbiFlow/prjxray/tree/master/minitests/z7_blinky_emio

Oh ok that's interesting. Does using U-boot replace using the fsbl? Do you have any examples of running a bare metal application on the PS?

fsbl simply configures the low level part of the chip (including DDR controller), optionally programs the FPGA and loads the next stage software. Instead of FSBL you can use U-Boot SPL but you need to ensure that is has a correct chip configuration for the board you're using. What you can do, is to export ps7_init_gpl.{c|h} from Vivado and use them with U-Boot SPL.
Note that mainline U-Boot has configurations for the most popular Zynq devboards.
Also you can integrate the init code with your app (as in blinky emio case). You need to remember about a few things:

On startup PS in Zynq will it's internal bootloader which will load the next stage software to internal chip memory from a boot device.
Boot device is determined by reading pin status (on e.g. Zybo you can set those with a jumper).
The software has to be small enough to fit the internal chip's memory (256 KiB)
The software must be packed in boot image - you may use https://github.com/antmicro/zynq-mkbootimage to pack your application

I have a pynq z2 board with a zynq 7020 if you want some testing. I'm a bit of a noob though lol.

Hello, I know this is an old thread. I recently got a pynq z1 board. Would love to learn about Symbiflow/yosys workflow (eventually being able to contribute). Wonder if it is a right board for a starter. Thanks!

Pynq Z1 has an XC7Z020 FPGA chip so I see no reason why in principle it would not work.
I remember that Pynq Z1 was somehow convoluted in terms of good documentation on how things are connected around and had no U-Boot port (but maybe I am mistaken?) so you might have some problems on this side (not strictly related to Symbiflow toolchain itself).
It definitelty would be an interesting experiment to get Pynq working.

Hi, im new to the whole FPGA world and i just got myself an Pynq Z2, I wonder what i would need to do to get the bare minimum up and started. LED blink etc.
Any help would be really appreciated.
Sorry if this is the wrong place to ask for advice on.

I ended up using a Zedboard board. I am familiar with Python, but the whole PYNQ concept really confused me at the beginning. I had hard time to understand what happens at which abstraction layer. If you are new to both FPGA world and the Pynq board. I would say staying with the official toolchain and samples for now. Good thing about Symbiflow and Yosys is one wouldn't need a board to start learning about the toolchain.

The official toolchain is fine, but if i where to get started with using the f4pga toolchain what whould be a good place to start? I want to write my own example like blinking LED etc for the pynq z2. I think there should be support already for the chip aswell. How would i go about to start using the toolchain? What docs would be good to read to get started? I looked around a little bit but im a little confused.

There was support for the Zybo Z7 in F4PGA examples but they seem to have disappeared? The using the board section still exists -> https://f4pga-examples.readthedocs.io/en/latest/running-examples.html#zybo-z7-board

Thank you, im looking around inside arch-defs and i can find support for the xc7z020 chip, how do i add a board for arch-defs and a test case for it? or how can i find appropiate F4PGA_PACKAGES packages for my board in the f4pga-examples so i can tweak the example package and scripts to run for my zynq board.

In 'Building example designs' > 'Xilinx 7-Series' there is a list of examples: https://f4pga-examples.readthedocs.io/en/latest/building-examples.html#xilinx-7-series.
The 'Counter test' example includes guidelines for Zybo Z7: https://f4pga-examples.readthedocs.io/en/latest/xc7/counter_test.html.
There is a gif of the board running the example: https://f4pga-examples.readthedocs.io/en/latest/_images/counter-example-zyboz7.gif.
@Asoftyn, in order to adapt the example, I guess you'd need to:

Add an XDC file.
Edit https://github.com/chipsalliance/f4pga-examples/blob/main/xc7/counter_test/Makefile#L5-L23 to set the XDC file for the pynq_z2 target.

Update https://github.com/chipsalliance/f4pga-examples/tree/main/xc7/counter_test accordingly.

Edit https://github.com/chipsalliance/f4pga-examples/blob/main/common/common.mk#L7-L40 to set the device, part name, etc. for the pynq_z2 target.

Note that pynq_z2 is supported by openFPGALoader (OFL) already: https://trabucayre.github.io/openFPGALoader/compatibility/board.html#compatibility-boards.

As you saw, although 7z020 is found in arch-defs, (see https://github.com/f4pga/f4pga-arch-defs/tree/main/xilinx/xc7/archs/zynq7_z020), it seems that a different packages is available only: https://github.com/f4pga/f4pga-arch-defs/blob/main/xilinx/xc7/archs/zynq7_z020/devices/CMakeLists.txt. Actually, f4pga/f4pga-arch-defs#1260 included xc7z020clg400-1, but it was closed, not merged. /cc @tmichalak @kgugala
Hence, I recommend to open an issue in arch-defs in order to add the missing package to the definition artifacts/assets (which are then to be used in this repo). Related: f4pga/f4pga-arch-defs#2737.
When the arch-defs artifacts/assets are updated, either test the "Latest" workflow in this repo or edit the F4PGA_TIMESTAMP and F4PGA_HASH in https://f4pga-examples.readthedocs.io/en/latest/getting.html#setup-and-download-assets.

Thank you for taking the time to help me,  I will try and do this and then update with my progress, when I succeed I'll share what I've done so others can use it as well.
Thank you

@Asoftyn The support for Zynq 7020 has been added to arch-defs in f4pga/f4pga-arch-defs#1506 from @andrewb1999. Hence, to use it in f4pga-examples you could add a target for pynq to the https://github.com/chipsalliance/f4pga-examples/blob/main/common/common.mk#L7-L40 file as suggested by @umarcor

I got the counter_test example to work for pynq z2.
First during the Getting F4PGA steps i changed a few small things, in the F4PGA_PACKAGES variable i added xc7z020_test package so for PYNQ_Z2 it would be F4PGA_PACKAGES='install-xc7 xc7z020_test'
Then i changed the package install script for latest packages with the following:
mkdir -p $F4PGA_INSTALL_DIR/$FPGA_FAM

for PKG in $F4PGA_PACKAGES; do
wget -qO- $(wget -qO- https://github.com/SymbiFlow/f4pga-arch-defs/releases/download/latest/symbiflow-${PKG}-latest) \
      | tar -xJC ${F4PGA_INSTALL_DIR}/${FPGA_FAM}
done

Now inside the F4PGA_EXAMPLES counter_test i added the following:
in common/common.mk added to the end (if this isnt correct please tell me)
else ifeq ($(TARGET), pynq_z2)
  DEVICE := xc7z020_test
  BITSTREAM_DEVICE := zynq7
  PARTNAME := xc7z020clg400-1
  OFL_BOARD := $(TARGET)
else

In xc7/counter_test/Makefile i added
else ifeq ($(TARGET),pynq_z2)
  XDC := ${current_dir}/pynq_z2.xdc
endif

Added the file pynq_z2.xdc
set_property -dict { PACKAGE_PIN H16   IOSTANDARD LVCMOS33 } [get_ports { clk }]; #IO_L13P_T2_MRCC_35 Sch=sysclk
create_clock -add -name sys_clk_pin -period 8.00 -waveform {0 4} [get_ports { clk }];

set_property -dict { PACKAGE_PIN R14   IOSTANDARD LVCMOS33 } [get_ports { led[0] }]; #IO_L6N_T0_VREF_34 Sch=led[0]
set_property -dict { PACKAGE_PIN P14   IOSTANDARD LVCMOS33 } [get_ports { led[1] }]; #IO_L6P_T0_34 Sch=led[1]
set_property -dict { PACKAGE_PIN N16   IOSTANDARD LVCMOS33 } [get_ports { led[2] }]; #IO_L21N_T3_DQS_AD14N_35 Sch=led[2]
set_property -dict { PACKAGE_PIN M14   IOSTANDARD LVCMOS33 } [get_ports { led[3] }]; #IO_L23P_T3_35 Sch=led[3]

Now entering the conda enviroment according to the F4PGA_EXAMPLES i was able to build it using TARGET="pynq_z2" make -C counter_test and then upload it to my pynq z2 board using TARGET="pynq_z2" make download -C counter_test
And my board is blinking nice and beautifully. Thank you all for the guidance and help.

@Asoftyn that's great. Since you have already done and tested the modifications feel free to open a PR.

Im not really sure how to make a PR on github and i dont wanna screw things up

You can look at other PRs. Basically just create your own fork, create a branch with your changes and open a PR from this branch.
Github describes this here: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork


A question about "request"

    from bottle import request

    @get('/')
    def index():
        return request.fullpath

if I understand correctly, when using Bottlepy with WSGI the app is only started once. If request is set at each HTTP request, how can Bottle distinguish between two different requests? In other words, if I'm processing 2 requests in parallel, how can request inside index() know which one is which without interference between the two?

bottle uses local threading to do this :)
https://docs.python.org/2/library/threading.html#threading.local
_local_property
https://github.com/bottlepy/bottle/blob/master/bottle.py#L1897
LocalRequest
https://github.com/bottlepy/bottle/blob/master/bottle.py#L1914
""" A thread-local subclass of :class:`BaseRequest` with a different
    set of attributes for each thread. There is usually only one global
    instance of this class (:data:`request`). If accessed during a
    request/response cycle, this instance always refers to the *current*
    request (even on a multithreaded server). """

related problems:
https://github.com/bottlepy/bottle/issues/896

Thanks!


Notifications Docs need updated.

These docs could use some updating to include the steps that are listed in the console output after running php artisan laracogs:notifications. I don't have the steps on me a the moment because I don't have the project open; if needed I can get it.

If there are specific parts that would be helpful. I'll do some review of the docs and see what I missed. Thanks.


High vul in the depency of binance-chain/javascript-sdk

  High            Server-Side Request Forgery

  Package         axios

  Patched in      >=0.21.1

  Dependency of   @binance-chain/javascript-sdk

  Path            @binance-chain/javascript-sdk > axios

  More info       https://npmjs.com/advisories/1594

fixed


Error when installing: Could not find a Swift script...

I have marathon installed and updated to the latest version, and I made sure that the marathon folder has the proper permissions. However, when I run the following command:
 $ marathon install johnsundell/testdrive --verbose
I receive the following error:
💥  Could not find a Swift script at 'johnsundell/testdrive.swift'
👉  Please check that the path is valid and try again

Any idea on what might be wrong?
Thank you.

@damianesteban Did you install Marathon from Homebrew? If so, try installing the latest master from SPM. Haven't had the chance to update the Homebrew version for quite a while.


VP/MIN-345 Remove automatic mnt speed calculation

Description:
Rework MNT distribution:

remove automatic speed update
add extrinsic to update speed for a pool

Changes in storage or API:
Describe storage structure changes or API changes. Make sure to update the API docs.
Checklist

[ ] Code is covered with tests
[ ] Code is covered with benchmarks
[ ] Fresh benchmark results included

pallets/mnt-token/src/lib.rs line 474:477.
The mentioned mnt_rate has already been removed from the logic.

Could you answer what we have adopted as a situation when the pool is excluded from the distribution of MNT tokens? Removed speed or zero speed?

Maybe it makes sense to add a comment to the functions for updating indexes (fn update_mnt_borrow_index() and fn update_mnt_supply_index()) that these functions do not update if the speed is zero?

Maybe it makes sense to add a comment to the functions for updating indexes (fn update_mnt_borrow_index() and fn update_mnt_supply_index()) that these functions do not update the storage if the speed is zero?
Added comments


Enhancement: add current date to the prompt

This is tiny, but it may be worth a few tokens in the prompt:  When creating a new file that the LLM probably could infer should be named using today's date, it chose June 06, 2024 (possibly because that is one day after the date in the most recent filename it can see).  I'm guessing it would be correct if the current date were placed in the prompt somewhere.
I imagine this could also be useful for edits like date/time-stamped comments, file creation dates in comments, etc.

This was implemented a few weeks ago.
Keep this info about the user's system in mind:
- The user's system: macOS-14.5-x86_64-i386-64bit
- The user's shell: SHELL=/usr/local/Cellar/bash/5.2.26/bin/bash
- The current date/time: 2024-08-02T15:51:55.574841

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.


Allow form field with required=False

I use django-recaptcha==1.4.0
I tried to update to last version. But now required=True is hardcoded in form field code and validation code not check this parameter.
I need required=False, because I don't want to show captcha to all user, but only to specific users.
It is possible return this behaviour? Or maybe there is a simple workaround how to handle my case?

Hello @un1t, we are sorry to hear you are having issues upgrading the django-recaptcha package.
Unfortunately, we do not foresee allowing a required toggle on the field.
Adding a recaptcha field means one wants to protect a specific aspect of your site against abuse.
Wanting to make it optional must be a deliberate implementation change, not a mere toggle.
The simplest way would be to just remove the captcha from the form's error list:
class Form(forms.Form):
    captcha = RecaptchaField()

    def clean(self, *args, **kwargs):
        cleaned_data = super(Form, self).clean(*args, **kwargs)
        if not user.needs_captcha and "captcha" in self.errors.keys():
            return True
            self.errors.pop("captcha")
        return cleand_data

Other solutions include, but are not limited to; Not having the recaptcha field on the form by default and only adding it to the field list if the user needs it, subclassing the recaptcha field and overriding the init behavior, altering the form's full_clean, altering the form's is_valid, etc.

I'm having issues to test a view because
    captcha = ReCaptchaField(required=False)

Doesn't work. I'm running automated tests and i would control required from a settings.py attribute
when in debug mode. My expected behavior of it would be that the captcha field doesn't
produce a form error when it is validated although it doesn't have a value in.

I'm facing this as well with recaptcha v3. v3 doesn't provide an input for the user, instead I would like to do v3 plus server side validation. I'm seeing some bots automate the POST to register users.

Hi. I contourned the issue with https://github.com/iogf/shiva/blob/master/ticket_app/forms.py
The tests are now able to run.

I sidestepped the form field altogether as I'm comfortable on frontend https://github.com/praekelt/django-recaptcha/issues/217


fix(audit_config): support audit config in 2.x domains/clusters

Description
Adapted version check for audit config to support 2.x OpenSearch domains/clusters.
Issues Resolved
#69
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

any updates?

Hey @moritzzimmer, thanks for waiting, please address this comment, we can proceed to merge this PR.
Thanks

@prudhvigodithi I reverted the unnecessary change

Thanks @moritzzimmer, LGTM.


Viewport doesn't update when ViewportContainer is Hidden

Godot version
3.4.2.stable
System information
Windows 10, GLES3
Issue description
I've tried this in a 3D scene with a Control scene as a child (acting as overlay GUI).
Control scene has a TabContainer and one of the tabs has a ViewportContainer. ViewportContainer has a Viewport and the Viewport has a Camera (3D Camera).
The purpose is having a topview window in that tab.
I tried accessing the viewport.get_texture() in the main scene and saw that if I am showing another tab (ViewportContainer is not visible), the texture is not updated.
A simpler test I did was simply adding a ViewportContainer to my 3D scene and adding a sprite with ViewportTexture.
While running the game, if I hide the ViewportContainer in editor, the texture on the sprite stops updating.
I verified the Viewport render_target_update_mode is "Always" on both cases.
Steps to reproduce
Add a ViewportContainer with a viewport and camera to a 3D scene with some movement going on.
Add a sprite with ViewportTexture and show the viewport as target.
While running the game, hide the ViewportContainer in editor, you'll see the texture on the sprite stops updating.
Minimal reproduction project
EDIT: Created this issue at work and wasn't allowed to upload anything to internet there. Now the minimal project is added (after reminded by @akien-mga, so thanks :)  )
minimal-viewport-update.zip

A minimal reproduction project would be good so that we can test and see if it's a bug or a misconfiguration.

Added the project to the original post. Thanks for reminding me. I was at work and wasn't allowed to upload anything.

If I recall correctly a viewport container always overrules the update mode of the subviewport, this was done because many people left the subviewport set to rendering even when the container was hidden.
If you want to use the subviewport both shown as is, and as a texture on a 3D model, best not to use a subviewport but just display it on a textureRect.

Closing as duplicate of #56502
I have a PR that resolves this issue.


Pre-deploy hook not detected

Hey,
For some reason pre-deploy file wasn't detected - I had a code in a post-deploy file which was executed correctly on every deploy. When I renamed it to pre-deploy and push the code it wasn't detected. I tried to debug it but I wasn't able to find out what was the problem. When I destroyed my app and created it again, hook was detected and executed correcly.
@mlomnicki do you have any idea why this could happen? I'm sorry I don't provide exact steps to reproduce but I don't know what was the problem -  after re-crating the app everything works fine and problem is gone.
PS. I'm using additional plugins like:

https://github.com/sehrope/dokku-logging-supervisord
https://github.com/cedricziel/dokku-hostkeys-plugin
https://github.com/cedricziel/dokku-deployment-keys

Hi Lucas!
If you had some logs or a snapshot of this container then maybe I could help. Otherwise it's really hard to say what could have caused that

@mlomnicki thanks for your answer.
Unfortunately I've encountered this issue again, basically this is what I see during deploy:
-----> Running pre-deploy hooks
remote: app image (dokku/app:hash) not found
       deploy/pre-deploy not found or executable bit not set. Skipping ...

I replaced original app name and hash with app:hash placeholder. The hash contained the hash of previous app (previous docker image). chmod +x has been set for deploy/pre-deploy file so it's not the issue.
When I deployed again, it also couldn't find pre-deploy file - hash has been changed to the version I deployed just before this one.

Also when I removed post-deployed it works fine - it can not find it. So it looks like this issue affects only pre-deploy hook.

@mlomnicki When I modified functions file directly on the server by adding: dokku run $APP ls (just before checking if hook file exists) the whole deploy is rejected. With tracing enabled (dokku trace on):
I've noticed that the problem is caused by the fact that ls command returned app image (...) not found.

I think this is a bug in dokku, meanwhile you can use #11.

Currently I switched to https://github.com/michaelshobbs/dokku-app-predeploy-tasks.
@ebeigarts could you describe a little bit more in detail this bug in dokku?


describe the functional requirements

Functional requirements in software development refer to the specific tasks or actions that a software system must perform to fulfill its intended purpose and meet user expectations.
These requirements outline the desired functionality, behavior, and interaction between various components of the software application.
They serve as a blueprint for developers when designing, building, testing, and maintaining the software system.
To ensure a comprehensive understanding of functional requirements, developers often use techniques such as requirement gathering, analysis, prioritization, and documentation. This process helps in identifying gaps, conflicts, or inconsistencies that may affect the software's performance and user experience. Additionally, it enables effective collaboration between stakeholders, developers, and testers to ensure that the final product meets its intended purpose and satisfies users' needs.

functional requirements for a scalability test

Testing Environment: Ensure that the testing environment is set up to simulate an increasing number of users and resources, such as increased storage capacity or computing power. This can be achieved by using tools like Docker containers, Kubernetes clusters, or cloud-based virtual machines.
Performance Metrics: Identify key performance metrics to track during scalability testing, including response time, throughput, resource utilization (CPU, memory, and network), and error rates. These metrics will help determine the application's ability to handle increased workloads without compromising its functionality or user experience.
Scaling Mechanisms: Verify that the system can automatically scale resources in response to increasing demand, such as auto-scaling instances in a cloud environment or load balancing across multiple servers. This ensures that the application remains responsive and efficient even under high workloads.
Failure Scenarios: Include tests for various failure scenarios, such as hardware failures, network outages, or data corruption. The system should be able to recover gracefully from these events without significant downtime or loss of user data.
Monitoring and Alerting: Implement a monitoring dashboard that tracks performance metrics in real-time during testing. This will help identify any bottlenecks or issues early on, allowing for timely adjustments to the system's architecture or configuration as needed. Additionally, configure alerts to notify administrators of critical events or threshold breaches, ensuring prompt action can be taken when necessary.
Post-Test Analysis: After completing scalability testing, analyze the results and identify any areas where improvements can be made for better performance under high workloads. This may involve optimizing code, redesigning system architecture, or implementing new scaling mechanisms as needed.

#28 suggests designing an architecture.

Prompt: a cloud service collects streams from cctv cameras, describe the architecture
Response: A typical architecture for a cloud-based CCTV camera streaming system consists of several components that work together to provide video surveillance and storage capabilities. Here's an overview of these components:

Cameras: These are the physical devices installed at various locations to capture videos. They typically have built-in sensors, lenses, and processors for capturing images or streaming video in real time.

Encoders: Encoders convert analog camera signals into digital streams that can be transmitted over IP networks. This is usually done using compression techniques like H.264 to reduce the size of the data being sent while maintaining image quality.

Network Infrastructure: The network infrastructure consists of routers, switches, and other devices responsible for routing video streams from cameras to their respective destinations (either directly or through intermediary servers). This includes local area networks (LANs) as well as wide area networks (WANs), such as the internet.

Video Management Software (VMS): VMS is a centralized software application that manages and controls multiple cameras, encoders, and other components of the system. It provides features like video streaming, recording, playback, and search capabilities for stored footage. Some popular VMS solutions include Milestone Systems, Genetec, and iSight.

Storage: Video data is typically stored on a combination of local storage devices (such as hard drives or solid-state drives) and cloud storage services like Amazon S3, Google Cloud Storage, or Microsoft Azure. This allows for scalable storage capacity that can grow with the system's needs while also providing redundancy and disaster recovery capabilities.

Video Streaming Servers: These servers are responsible for delivering live video streams to clients (such as web browsers, mobile apps, or security monitoring software) over the internet. Popular streaming server solutions include Nginx, Apache HTTP Server, and Wowza Media Server.

Clients: Clients can be users accessing the system through a web browser or a dedicated application on their devices (such as smartphones or tablets). They receive live video streams from the servers and may also have the ability to control camera settings, view recorded footage, or perform other management tasks.

Cloud Service Providers: These providers offer infrastructure-as-a-service (IaaS) platforms that allow businesses to deploy their own CCTV streaming systems on virtual machines in a secure and scalable environment. Examples of cloud service providers include Amazon Web Services, Microsoft Azure, and Google Cloud Platform.

In summary, the architecture for a cloud-based CCTV camera streaming system consists of cameras capturing video streams, encoders converting analog signals to digital formats, network infrastructure for transmitting data, VMS software for managing and controlling the system, storage solutions for storing video data, streaming servers delivering live video feeds, clients accessing the system, and cloud service providers offering IaaS platforms.

The diagram, the main components are:

CCTV Cameras: These cameras capture video feeds from different locations and send them to a central processing unit.

Rust Server/Processing Unit: This is written in Rust language which processes the received video streams from multiple camera sources. It can process, analyze, store or transfers data from CCTV Cameras.

Cloud Storage: The processed and stored Data is saved to a cloud storage for further analysis or long-S3, Google Cloud Storage. This allows accessibility from anywhere at any time by authorized users.

User Interface/API: A web application or mobile app serves as the user to view live video feeds, search through archived footage and perform other functionalities like playback, analysis etc.

Analytics & Alerts: The system can provide real-time notifications based on predefined conditions (like motion detection). The Rust server processes data from CCTVfeeds to detect patterns or events of interest. It may use machine learning algorithms for facial recognition, object tracking and computer vision techniques to identify specific objects or behaviors in the video footage.

Network: This component can send notifications based on predefined rules are sent out alerts via email, SMS, push notifications) to take necessary actions.

This system allows real-time monitoring of events are responded quickly and efficiently.