date function fails for null values when format is given.

What happened?
I try to have some timetracking in my obsidian. Therefore, I create notes with frontmatter tags "start" and "end" and a link back to my daily note.
In said daily note I have a dataview that is supposed to show all "timetracking entries" (eg notes).
I then tried to make dataview automatically calculate the duration of each task, and my query resulted in an error:
No implementation of 'date' found for arguments: null, string
I found out why this happens - because as long as a task is running, the "end" frontmatter tag is not set. I simplified the problem to the provided DQL.
The line   , date(end, "yyyy") breaks the query,

the line   , date(end) is fine

So, apparently, date(null) is fine, date(null, "some format") is not.
DQL
TABLE WITHOUT id
  link(file.name, task) as "Task"
  , end
  , date(end)
  , date(end, "yyyy")
FROM [[2024-03-01]]
SORT file.name

JS
No response
Dataview Version
0.5.64
Obsidian Version
1.5.8
OS
Linux

Hmmm... Interesting... What's the value of end usually like when it's actually working?
The reason I'm asking is that you're calling the date(text, format) function which expects a full date string which you say that the format is just the year for. That doesn't really make sense. If you want to extract just the year part out of a pre-defined (or not defined(?)) date, you could could use end.year or possibly dateformat().
So please provide us with a little more information as to how your end field would look normally (when defined).

end is formatted like 2024-03-04 15:24 or yyyy-MM-dd HH:mm (please take the cases with a grain of salt, because I wrote them out of memory and get confused with all the different tokens on all the different libraries I have to work with in different contexts.)
What I wanted to achieve was to be able to write some points of time in the frontmatter of a given note in a format I'm used to (yyyy-MM-dd HH:mm) and in another note i wanted to list all notes that match a query and display their start, end and (calculated) duration. start is always defined (gets set on note creation, one COULD delete it, but I wont do this, or live with it, so for my usecase it is always defined). end may or may not be set, and if, its a string denoted in the format above.
But after your feedback I investigated a little further, and my problem is a little different than previously reported, in the real code I had a choice to ensure that I do not pass null to date in its second variant. I created another example to show this:
TABLE WITHOUT id
file.name
, date("2024-04-03 15:33:24", "yyyy-MM-dd HH:mm:ss") as "fixed end" ## Works fine!
, choice(
      false,
      date(null, "yyyy-MM-dd HH:mm:ss"),  ## This will crash the query, even though I did not expect it to evaluate at all
      "end date is not set!"
 ) as "choiced end"

It seems like the "true-branch" of the iif/choice is parsed, regardless of wether it is to be shown.
In the meantime I stopped trying to have a custom format for my dates and go with the default ISO 8601, also setting the frontmatter fields to the date+time type.
This has reduced my dataview query to the following:
TABLE WITHOUT id
  link(file.name, task) as "Task"
  , default(start, "n/A") as "Start"
  , default(end, "n/A") as "Ende"
  , durationformat(choice(end, end, date(now)) - start, "hh:mm") as "Dauer"
FROM [[2024-03-04]]
SORT file.name

It seems like the "true-branch" of the iif/choice is parsed, regardless of wether it is to be shown.

This is true, sadly enough. And this can cause expression to fault if its not legal to do that unless this or that condition of the choice() has been met.
Having clarified the case, I'll look into creating a PR to allow for null to be entered without it crashing the function.
Thanks for the clarification!


Cannot reference type or constructor within class

class Test [] {
  let pub clone = [] -> Test {
    return Test()
  }
}

This will cause two errors one being that the type Test is not defined and the other being that Test() is not defined, this is a problem for many different classes.

We might have to intellectually hold off on type checking a class or function body until a scope is done being type checked, then type check all the class and function expression bodies. We could add the function bodies to some list stored as a Scope property

I guess maybe we can make an empty class type and then add methods/properties

2021-05-20

!!!! — 24/05/2021
can't we create the class type immediately

ᚣ∫ᚱᚣ — 24/05/2021
yes but we need to have all of the methods in the class
before we can create the type
and that means we have to type check them
which means we have to create the type class to check it
and go back to step 1

!!!! — 24/05/2021
lol
well
we can edit the class type as we go
:sunglasses:

...

ᚣ∫ᚱᚣ — 24/05/2021
what happens when
class Test [int wheee] {
  let pub add = [t:Test] -> Test {
    return Test(wheee + t.getWheee())
  }

  let pub getWheee = [] -> int {
    return wheee
  }
}

!!!! — 24/05/2021
well
immediately at the start
hmm
we can defer function expression body type checking
So
At the start, we can make a new type Test with no properties/methods yet defined
and then also make a new variable with the same name Test set to a function int -> Test (from the constructor arguments)
then when we do
  let pub add = [t:Test] -> Test {
    return Test(wheee + t.getWheee())
  }

we already have the function type from the function expression header [t:Test] -> Test, so Test's add property is Test -> Test
and then we can defer type checking {     return Test(wheee + t.getWheee())   } to the end of the class statement

2021-05-24

ᚣ∫ᚱᚣ — 27/05/2021
@!!!! can you help with https://github.com/nbuilding/N-lang/issues/155 because i have a general idea on how to do it i just need like a bit of help
mostly just like we can make the type before we type check the class, but we need to make an outline of it first, which requires getting the types of all of the public fields in the class
without having them throw errors when type checked

...

!!!! — 27/05/2021
how does class type checking work again
https://github.com/nbuilding/N-lang/blob/bf22f049ca688105fe3553496de0233bc88ac39f/python/scope.py#L2012-L2062

...

ᚣ∫ᚱᚣ — 27/05/2021
it creates a new scope and yeah
just that
then it creates the type after it checks the scope

!!!! — 27/05/2021
yeah

ᚣ∫ᚱᚣ — 27/05/2021
so we can change that

!!!! — 27/05/2021
what if we created the type before checking the scope

ᚣ∫ᚱᚣ — 27/05/2021
but it still does not know the feilds

!!!! — 27/05/2021
hmm
does it need to know the fields

ᚣ∫ᚱᚣ — 27/05/2021
it would know the type but not the fields

!!!! — 27/05/2021
because we can always add the fields once it's done

ᚣ∫ᚱᚣ — 27/05/2021
yes, to see if a function or field does/doesn't exist

!!!! — 27/05/2021
hmm
well
hmm
one way might be to delay type checking the function bodies
somehow
like some Scope has a list of function bodies to type check at the end

ᚣ∫ᚱᚣ — 27/05/2021
thats what i was thinking
but like
as i stated before
that would require a .end like thing
which we dont have

!!!! — 27/05/2021
we might as well add it
since it'd be useful for keeping track of unused types/variables

ᚣ∫ᚱᚣ — 27/05/2021
fair enough
ill start to add it
also should we make it so that you have to specify you want to > have to call the .end function
because that would be useful in not accidentially messing up other code

!!!! — 27/05/2021
yeah
hmm
how to detect accidentally not calling .end

ᚣ∫ᚱᚣ — 27/05/2021
mmm

!!!! — 27/05/2021
We could use with

ᚣ∫ᚱᚣ — 27/05/2021
we would also have to go through every command and change it to > work with the .end thing now
f;jlkdsafj;slkjgsklgj;lksgj;skl
annoy

!!!! — 27/05/2021
because files from open also need to be closed
hmm
well
not every command creates a new scope I think

ᚣ∫ᚱᚣ — 27/05/2021
but you might want to hold off on it throwing errors until later
thats the problem

2021-05-27

In summary:

Create the class type and constructor type before type checking the class body (this just involves moving some lines up)
Add a .end method to Scope and call it whenever the Scope ceases to be used. For debugging purposes, we can keep track of a global list of Scope instances where .end has not been called, then raise an error if there are still unended Scope instances.
Defer function expression type checking until the end by having a list property under Scope containing function expressions to type check at the end


Rename traffic Influence in .yaml file line 7

Problem description
Traffic influence is named as "OPAG-CAMARA Traffic Influence API" in the .yaml
Expected action
Please can it be renamed as "Traffic Influence API"
Additional context
The inclusion of OPAG-CAMARA is probably confusing

Merged rel 0.9.5


fix Fix be tablet partition id eq 0 By report tablet (#3…

…2179)
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Details about training the encoder

Thank you for your great work!!    That'cool!!
I would like to ask, do you mean to train the Encoder with the FFHQ dataset, and then use 7000 real face images for testing? May I share the 7000 real face images you collected？I would appreciate it very much if you could give more details about encoder training. Thanks very much!

65,000 images from FFHQ are used for training, while the remaining 5,000 are used for testing. You can treat the last 5,000 as the test set or randomly select 5,000 images.


Recently changed server data is overriden here...

Be sure if you just added Server Metadata that these will not be overwritten.

Nice fetch, thanks!


add hyperdrive tvl to defillama

[x] finish general tvl.py
[ ] convert to js

planning to jam with @ryangoree on js today


Create how_to_understand_architecture_and_workflow_cn.md

I figure it's probably better to update original version of this document before translating it to avoid giving inaccurate information. Feel free to reopen when it's done.


Add spending limits backend support for stake, unstake, unlock stake

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

feature/proof-of-stake

PR #524

PR #525

PR #529   👈

This stack of pull requests is managed by Graphite.


Unable to configure a lazy loaded module

If you inject a module with ocLazyload, how to setup a configuration provider on this new module?
I try to inject a loopback angular module
https://docs.strongloop.com/display/public/LB/AngularJS+JavaScript+SDK
I need to access the LoopBackResourceProvider
angular.module('my-app-module').config(function(LoopBackResourceProvider) {

    // Use a custom auth header instead of the default 'Authorization'
    LoopBackResourceProvider.setAuthHeader('X-Access-Token');

    // Change the URL where to access the LoopBack REST API server
    LoopBackResourceProvider.setUrlBase('http://api.example.com/');
}

Is it possible?

You should be able to define a config block in the files that you lazyLoad, but you cannot get access to the provider outside of that. Once the lib is lazy loaded it's too late. So if you need to configure anything include it in the list of files that you're lazy loading.

Thank you for quick answer.
Unfortunately I can't change this module, it's auto generated.
Any chance to configure ocLazyLoad ton inject a custom config function?

You can lazy load multiples files at the same time, the lib and a custom file that you made yourself that contains the config. Just make sure that you use the parameter serie: true to load the lib first.
I'm not 100% sure that it will work though :)

Ok I will have a try but I don't understand how this custom file can have access to a module provider not already loaded?
I'm right?

Well ocLazyLoad keep a reference on the providers when it registers them that's why it's able to register new components (those providers are only available during the config phase of Angular when you start the app, and when you register new components).
By keeping this reference you can register new components whenever you want, but if you loose the reference then there is no way to get it back. That's why ocLazyLoad can execute the config block with the right provider, but you cannot.
We could potentially make an update to the lib to give access to them, but it would probably result in weird bugs because it's really easy to do something wrong with it :)


freeciv/2.5.0_2 does not support most keyboard shortcuts

E.g., from the initial screen, Cmd-N should start new game, Cmd-L should load a game.
From the game screen, Cmd-G does not enter the Game menu &c &c &c....

And you've confirmed this only happens when freeciv is installed with Homebrew?

I am afraid homebrew is the only way I can install freeciv.
Please do not hesitate to forward the bug report upstream.
PS. also, the existing shortcuts are inconsistent (Cmd-S for save vs Ctrl-E for edit).

If you were willing to open an upstream issue, we'd be very grateful! And if the developers provide a patch we can apply to the current release, then we can update our formula to include it.

https://gna.org/bugs/index.php?23719

Which client(s) have you tried? Does this happen in both the SDL and GTK+ clients?

gtk+; I could never get sdl to work

upstream says that they don't use macos so this must be a mac-specific gtk+ issue


feat(notice): retire unused notices

API changes at here

Oops, my bad. We still need tag add & tag remove notices.


500 error when sending a string "false" instead of a boolean

When POSTing a new resource, if you have an otherwise valid resource but include "paid": "false" instead of "paid":false you get a 500 response. We should either convert the string to a boolean (so "paid":"false" would act the same as "paid":false) or we should return a 422 error response indicating that this field must be a boolean.
Personally, I'm a big fan of converting it to a boolean for the user, but we need to make sure that only the strings "true" and "false" (case-insensitive) are accepted, and that "false" gets converted to boolean False.
Example Payload POST /api/v1/resources:
[
    {
        "name": "How To Think Like A Programmer",
        "paid": "False",
        "category": "Getting Started",
        "url":"https://www.youtube.com/watch?v=azcrPFhaY9k",
        "notes": "Learning to program is hard because programming feels different than other skills. But programming isn't about the languages - it is about the way one should think."
    }
]

Stacktrace:
2020-05-06 19:42:31,709 ERROR (builtins.TypeError) Not a boolean value: 'False'
[SQL: INSERT INTO resource (last_updated, name, url, category_id, paid, notes, upvotes, downvotes, times_clicked) VALUES (%(last_updated)s, %(name)s, %(url)s, %(category_id)s, %(paid)s, %(notes)s, %(upvotes)s, %(downvotes)s, %(times_clicked)s) RETURNING resource.id]
[parameters: [{'name': 'How To Think Like A Programmer', 'notes': "Learning to program is hard because programming feels different than other skills. But programmi ... (32 characters truncated) ... t is about the way one should think.", 'url': 'https://www.youtube.com/watch?v=azcrPFhaY9k', 'category_id': 3, 'paid': 'False', 'last_updated': None}]]
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1175, in _execute_context
    context = constructor(dialect, self, conn, *args)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 862, in _init_compiled
    for key in compiled_params
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 862, in <genexpr>
    for key in compiled_params
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/sqltypes.py", line 1826, in process
    value = _strict_as_bool(value)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/sqltypes.py", line 1801, in _strict_as_bool
    raise TypeError("Not a boolean value: %r" % value)
TypeError: Not a boolean value: 'False'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/src/app/api/routes/resource_creation.py", line 57, in create_resources
    db.session.commit()
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/scoping.py", line 162, in do
    return getattr(self.registry(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1036, in commit
    self.transaction.commit()
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 503, in commit
    self._prepare_impl()
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 482, in _prepare_impl
    self.session.flush()
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2496, in flush
    self._flush(objects)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2637, in _flush
    transaction.rollback(_capture_exception=True)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__
    exc_value, with_traceback=exc_tb,
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
    raise exception
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 2597, in _flush
    flush_context.execute()
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 422, in execute
    rec.execute(self)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/unitofwork.py", line 589, in execute
    uow,
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 245, in save_obj
    insert,
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/persistence.py", line 1136, in _emit_insert_statements
    statement, params
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 984, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 293, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1103, in _execute_clauseelement
    distilled_params,
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1178, in _execute_context
    e, util.text_type(statement), parameters, None, None
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1482, in _handle_dbapi_exception
    sqlalchemy_exception, with_traceback=exc_info[2], from_=e
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
    raise exception
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1175, in _execute_context
    context = constructor(dialect, self, conn, *args)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 862, in _init_compiled
    for key in compiled_params
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 862, in <genexpr>
    for key in compiled_params
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/sqltypes.py", line 1826, in process
    value = _strict_as_bool(value)
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/sql/sqltypes.py", line 1801, in _strict_as_bool
    raise TypeError("Not a boolean value: %r" % value)
sqlalchemy.exc.StatementError: (builtins.TypeError) Not a boolean value: 'False'
[SQL: INSERT INTO resource (last_updated, name, url, category_id, paid, notes, upvotes, downvotes, times_clicked) VALUES (%(last_updated)s, %(name)s, %(url)s, %(category_id)s, %(paid)s, %(notes)s, %(upvotes)s, %(downvotes)s, %(times_clicked)s) RETURNING resource.id]
[parameters: [{'name': 'How To Think Like A Programmer', 'notes': "Learning to program is hard because programming feels different than other skills. But programmi ... (32 characters truncated) ... t is about the way one should think.", 'url': 'https://www.youtube.com/watch?v=azcrPFhaY9k', 'category_id': 3, 'paid': 'False', 'last_updated': None}]]
<IP_ADDRESS> - - [06/May/2020 19:42:31] "POST /api/v1/resources HTTP/1.1" 500 -

So, validations.py is already taking care of HALF the problem. If you put anything in that field other than a permutation of "true" or "false" with different cases, it bombs out with a 422.
if col_type is bool:                 if type(field) is str and field.lower() in ["false", "true"]:                     continue
The problem comes when setting the value. I have a fix I'm about to check in.

#306 to fix this


[TODO][Inductor UT dependency] Need to implement torch.xpu.memory_allocated()

🚀 The feature, motivation and pitch
@guangyey  can you take this requirement?
Alternatives
No response
Additional context
No response

@guangyey  check this with Xinan.

@guangyey please double check whether we can close this issue or not

see https://github.com/pytorch/pytorch/pull/129919

Seems we can close this issue now cause https://github.com/pytorch/pytorch/pull/129919 got merged.


Extend dotnet run to work from the root folder of a solution with an AppHost

It would be cool to not have to specify the AppHost project if there is an AppHost present in the solution within the folder you're in
Today:
> ls
YourSolution.sln
/src
> dotnet run
Couldn't find a project to run. Ensure a project exists in ..., or pass the path to the project using --project.

Proposal:
Instead of erroring, see if there's a project with IsAspireHost true, and run that.

Seems like a far future SDK request. I'm not sure how practical this is.
cc @baronfel

Closing this per the above, as this is probably a feature on the SDK itself and there isn't something we can do in this repo to help facilitate this. @onionhammer please let us know if you think otherwise.


yoga: xena merge

Configure TLS on local Pulp
Sets kolla_docker_registry_insecure to true (#297)
adding alert for nf_conntrack
Cast pulp_enable_tls to bool everywhere
Expose pulp_port variable
Add releasenote
OSSA-2023-002: update cinder, glance & nova images for CentOS & Ubuntu
Add timing information to tasks
Fix name of RabbitMQ HA flag in release note
Fix typo in release note
use haproxy_tag for glance_tls_proxy and neutron_tls_proxy
Add etcd image
Add release note for etcd image
Add container image tags for etcd
Fix growpart.yml custom playbook in Ansible check mode
Magnum bump
Multinode xena (#248)
MAgnum bump
Add container image tags for etcd
Fix description of MySQL alert
OSSA-2023-002: update cinder, glance & nova images for CentOS & Ubuntu
Add container image tags for etcd (yoga)

One Rocky job failed waiting for Grafana, another had a few failed tempest tests. Trying again...


Bugfix: remove leading and trailing control characters

Types of Changes
Prerequisites
Please make sure you can check the following two boxes:

[x] I have read the CONTRIBUTING document
[x] My code follows the code style of this project

Contribution Type
What types of changes does your code introduce? Put an x in all the boxes that apply:

[x] Bug fix (non-breaking change which fixes an issue, please reference the issue id)
[ ] New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
[x] I have added tests to cover my changes
[x] All new and existing tests passed

Description
Attempt to fix #800 remove leading and trailing control characters
Added tests about this issue in WPT
About line 23:
I'm trying to avoid hard-coding all 33 characters, any thought?

I'm trying to avoid hard-coding all 33 characters, any thought?

Looks good to me. I would say its elegant and certainly alright. Overall we eventually could put this one also in StringExtensions and expose it via some TrimC0AndSpaceCharacters extension method - or just as a field C0AndSpaceCharacters. For now its definitely in a good spot!
Thanks!


Add option to edit an entry's info (tags, cover, title, author, etc.)

Describe your suggested feature
It would be great if Aniyomi added an option on the 3dot menu to edit the current entry's info.
The info would range from the cover and the title of the entry, to the author and the tags, to anything else.
This has been implemented on TachiyomiSY and works great.

Other details
This would be particularly useful for local entries. Tag editing is a must have.
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[x] If this is an issue with an official extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I will fill out all of the requested information in this form.

Duplicate of #1313


Calendar keyboard navigation + altering defaults

We have some cards open where we want to alter Calendar focus based on where the users has navigated to.
For example if the user is on the last day of the month can we set the focused item to be the next month button?
Is this possible?
Looking into what's available as far as altering key press events.
DayPicker offers a onDayKeyDown prop but it doesn't look like it's going to handle what we need.
<DayPicker
  onDayKeyDown={(day, modifiers, e) => {
       console.log(day)
       return false
   }}
....

The code that handles Day keyboard events can be found here:
https://github.com/gpbl/react-day-picker/blob/1a75b449779b1723ec400556bf3cf4affade9861/src/DayPicker.js#L404
Given a "Right" key press
case RIGHT:
        Helpers.cancelEvent(e);
        this.focusNextDay(e.target);
        break;

The code is calling focusNextDay first
After that
It's calling the callback if it's set.
if (this.props.onDayKeyDown) {
      this.props.onDayKeyDown(day, modifiers, e);
    }

We end up receiving the "original day" prior to the focusNextDay event.

Also there's a call to "cancelEvent"
Helpers.cancelEvent(e);

Which stops event propagation https://github.com/gpbl/react-day-picker/blob/1a75b449779b1723ec400556bf3cf4affade9861/src/Helpers.js#L5
Quick research outcome
Based on the current DayPicker repo code doesn't look like we have the opportunity to alter the default handlers.
cc: @pcraig3

Cards have been tagged as blocked.

Yeah, looks like we're blocked on this without very specific access to some of the react-day-picker events.


closes#103

Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the devel branch until you have checked off each task.

[ ] Place Closes #<insert_issue_number> into the beginning of your Pull Request Title (Use Edit button in top-right if you need to update)
[ ] Code is formatted according to the tidyverse style guide. Run styler::style_file() to style R and Rmd files
[ ] Updated relevant unit tests or have written new unit tests - See Unit Test Guide
[ ] If you removed/replaced any function and/or function parameters, did you fully follow the deprecation guidance?
[ ] Update to all relevant roxygen headers and examples.
[ ] Run devtools::document() so all .Rd files in the man folder and the NAMESPACE file in the project root are updated appropriately
[ ] Address any updates needed for vignettes and/or templates
[ ] Update NEWS.md if the changes pertain to a user-facing function (i.e. it has an @export tag) or documentation aimed at users (rather than developers)
[ ] Build admiral site pkgdown::build_site() and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.
[ ] Address or fix all lintr warnings and errors - lintr::lint_package()
[ ] Run R CMD check locally and address all errors and warnings - devtools::check()
[ ] Link the issue so that it closes after successful merging.
[ ] Address all merge conflicts and resolve appropriately.
[ ] Pat yourself on the back for a job well done! Much love to your accomplishment!

Hi @bms63, the spelling::update_wordlist() command is not run properly since is doesn't not work in our PC. Could u please help us?

@ap765541 That is unfortunate.  You can manually add them to the WORDLIST and not use the pkg/function.

@YaminiBollu and @federicobaratin I am going to merge this in, but please fill free to start approving PRs after you review code.


Labels of custom checkboxes and radios lack pointer cursor

Custom checkbox and radio labels lost the pointer cursor, is it a bug or by design?

The cursor: pointer was removed in 11df78ec742cae7340e80468f3d7492e26724185 (of #18771) without explanation.
CC: @mdo

I don't recall if I did this on purpose. Thinking about it, I may have—I don't think labels have a non-default cursor by default. But I think I like having it.

Indeed, the UA stylesheets for both Chrome and Firefox set label { cursor: default; }

Restored in 63a269d since our .radio and .checkbox has the custom cursor.


Pretty url's not working

Problem
Having issues with pretty url's not working
mod_rewrite is enabled. have access to .htaccess file.
Using this .htaccess file https://github.com/pagekit/pagekit/blob/develop/.htaccess
pretty url's are working if i type them in the browser, but pagekit keeps generating http://url.com/index.php/url
I've tried to reinstall Pagekit a couple of times. Tried installing it in a subfolder. - Still the same
Also tried installing wordpress, and was no problem with pretty urls.
You can look here http://sondre.me
If i type http://sondre.me/admin I get redirected to http://sondre.me/index.php/admin/login
Technical Details

Pagekit version: 1.0.2
Webserver: Apache 2.4
Database: mysql
PHP Version: 5.5.35

Troubleshooting

[x] I have enabled debug mode: https://pagekit.com/docs/troubleshooting/debug-mode
[x] I have verified the server requirements: https://pagekit.com/docs/getting-started/requirements
[x] I have tried disabling all installed extensions
[x] I have checked the browser developer console for JavaScript errors

Can you please create a php file on the same server with the following content:
<?php phpinfo();

When you access that file in the browser, please search for mod_rewrite and see if it is included in the Loaded Modules.
Also, please check if anything in issue #607 is of help to you.

Here is my php info http://sondre.me/Phpinfo.php
My host says there servers all have the same configuration.
I have a site on a different server from the same host. With a fresh installation of pagekit. Everything working fine there.

Okay, there is no mod_rewrite listed in the output. But that is probably because your PHP is running as FastCGI, not as an Apache module, so ist just doesn't list the loaded apache modules.
And actually, the url rewrite is working properly (i.e. http://sondre.me/blog works properly, just the generated url isn't pretty because it contains the index.php prefix).
This looks like Pagekit doesn't detect that mod_rewrite is available in your environment. This has been an issue with nginx before. So either we need to improve the detection to work for more environments or at least include a manual config setting to force pretty url generation.

So there is a fix for this issue? :)

For mod_rewrite detection with Apache you need either mod_env or mod_header. Can you check if one of them is enabled at your system? Further make sure that the latest version of Pagekits .htaccess file is used (it is not updated automatically).
https://github.com/pagekit/pagekit/blob/1.0.2/.htaccess (line 48 - line 54 is the important part for the detection)

Florian gave me a fix for this issue.

@sondregi you should remove http://sondre.me/Phpinfo.php

Still open...

See also #505: If you can access your page without the index.php, you can try my plugin to avoid changes of files after every update.


[5.2] Add an event listener for the exception caught job event

I'm currently using this event to attach backtrace to a job when an exception is thrown. There's already an event for whenever a job fails (called 'failing') but a job is only considered 'failed' when the number of attempts is higher than the maximum number of tries.
if ($maxTries > 0 && $job->attempts() > $maxTries) {
    return $this->logFailedJob($connection, $job);
}

Being able to warn devs in HipChat, as an example, when a job is released back into the queue, because of an exception, could be really helpful I guess. There's probably a lot of other scenarios where this event could be used.

Fixed @taylorotwell

Not sure this is a good event name for this.

Maybe JobExceptionOccurred?

@GrahamCampbell Sorry about that, just fixed the comments.


Database is locked and other weird behavior when doing simultaneous adds

Describe the bug
Simultaneous invocations of "archivebox add" crash with a database locked error, or, with enough persistence, have mistakes with others.
Steps to reproduce
The first invocation of "archivebox add" works normally.
While it continues to run, subsqeuent invocations crash with a "database is locked" error at the point where they attempt to insert into the master index.  Oddly, it seems they do manage to insert SOME data into the master index.  Rerunning the add with the same source will cause the number of items to add to the master index to reduce, until eventually the second add starts executing as well (this may take dozens of attempts for large sets).
At that point, however, both "add" processes that are running begin to develop mysterious errors in the processing stages, and I am unsure of the reliability.
Screenshots or log output
The failed "archivebox add" error looks like this:
docker run --rm -i -v /opt/deleteme:/data archivebox/archivebox add < ~/tmp/foo
[i] [2021-07-05 20:13:01] ArchiveBox v0.6.2: archivebox add
    > /data

[+] [2021-07-05 20:13:02] Adding 156589 links to index (crawl depth=0)...
    > Saved verbatim input to sources/1625515982-import.txt
    > Parsed 23649 URLs from input (Generic TXT)
    > Found 3809 new URLs not already in index

[*] [2021-07-05 20:13:55] Writing 3809 links to main index...
Traceback (most recent call last):
  File "/app/archivebox/index/sql.py", line 41, in write_link_to_sql_index
    info["timestamp"] = Snapshot.objects.get(url=link.url).timestamp
  File "/usr/local/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 429, in get
    raise self.model.DoesNotExist(
core.models.DoesNotExist: Snapshot matching query does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 589, in update_or_create
    obj = self.select_for_update().get(**kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 429, in get
    raise self.model.DoesNotExist(
core.models.DoesNotExist: Snapshot matching query does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 413, in execute
    return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: database is locked

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/archivebox", line 33, in <module>
    sys.exit(load_entry_point('archivebox', 'console_scripts', 'archivebox')())
  File "/app/archivebox/cli/__init__.py", line 140, in main
    run_subcommand(
  File "/app/archivebox/cli/__init__.py", line 80, in run_subcommand
    module.main(args=subcommand_args, stdin=stdin, pwd=pwd)    # type: ignore
  File "/app/archivebox/cli/archivebox_add.py", line 103, in main
    add(
  File "/app/archivebox/util.py", line 114, in typechecked_function
    return func(*args, **kwargs)
  File "/app/archivebox/main.py", line 602, in add
    write_main_index(links=new_links, out_dir=out_dir)
  File "/app/archivebox/util.py", line 114, in typechecked_function
    return func(*args, **kwargs)
  File "/app/archivebox/index/__init__.py", line 232, in write_main_index
    write_sql_main_index(links, out_dir=out_dir)
  File "/app/archivebox/util.py", line 114, in typechecked_function
    return func(*args, **kwargs)
  File "/app/archivebox/index/sql.py", line 88, in write_sql_main_index
    write_link_to_sql_index(link)
  File "/app/archivebox/util.py", line 114, in typechecked_function
    return func(*args, **kwargs)
  File "/app/archivebox/index/sql.py", line 46, in write_link_to_sql_index
    snapshot, _ = Snapshot.objects.update_or_create(url=link.url, defaults=info)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 594, in update_or_create
    obj, created = self._create_object_from_params(kwargs, params, lock=True)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 610, in _create_object_from_params
    obj = self.create(**params)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 447, in create
    obj.save(force_insert=True, using=self.db)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 753, in save
    self.save_base(using=using, force_insert=force_insert,
  File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 790, in save_base
    updated = self._save_table(
  File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 895, in _save_table
    results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 933, in _do_insert
    return manager._insert(
  File "/usr/local/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 1254, in _insert
    return query.get_compiler(using=using).execute_sql(returning_fields)
  File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1397, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 413, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: database is locked

I have observed that if the first downloader is doing something big, like downloading from Youtube, it is possible that the subsequent ones will proceed without an error.

Ah.  Well, over in the docs here:
https://github.com/ArchiveBox/ArchiveBox/wiki/Usage#large-archives
it was explicitly suggested, so maybe that doc page needs fixing?

It works better in some cases (fast SSDs) than others so it's still worth trying, shouldn't be dangerous to data integrity, it'll just lock up if it's on a slow filesystem.


Use lessc from Debian

Use the node-less package from Debian.

Somewhat no longer useful as we now have better maintained options like Cloud Shell, Google Cloud Workspaces, Github Workspaces and others.


Unfreed float causing memory leak in ecma-regexp-object

JerryScript revision
14ff5bf
Build platform
Ubuntu 20.04.3 LTS (Linux 5.11.0-34-generic x86_64)
Build steps
./tools/build.py --profile=es2015-subset --lto=off --compile-flag=-g \
--clean --debug --strip=off --logging=on --error-messages=on \
--compile-flag=-fsanitize=address --stack-limit=20

Test case
function testAdvanceStringIndex(lastIndex) {
  let exec_count = 0;
  let last_last_index = -1;
  let fake_re = {
    exec: () => {
      return exec_count++ == 0 ? [""] : null;
    },

    get lastIndex() {
      return lastIndex;
    },

    set lastIndex(value) {
    },

    get global() {
      return true;
    }
  };

  RegExp.prototype[Symbol.match].call(fake_re, "abc");
}

testAdvanceStringIndex(0x7ffffff);

Output
ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at /jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):107.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted (core dumped)

Backtrace
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007f45b1399859 in __GI_abort () at abort.c:79
#2  0x00005574cdd6736f in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at /jerryscript/jerry-port/default/default-fatal.c:30
#3  0x00005574cdcff841 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at /jerryscript/jerry-core/jrt/jrt-fatals.c:63
#4  0x00005574cdcff897 in jerry_assert_fail (assertion=0x5574cdd73de8 "JERRY_CONTEXT (jmem_heap_allocated_size) == 0", file=0x5574cdd73d60 "/jerryscript/jerry-core/jmem/jmem-heap.c", function=0x5574cdd8bce0 <__func__.6665> "jmem_heap_finalize", line=107) at /jerryscript/jerry-core/jrt/jrt-fatals.c:87
#5  0x00005574cdcfe8a0 in jmem_heap_finalize () at /jerryscript/jerry-core/jmem/jmem-heap.c:107
#6  0x00005574cdcfe5d7 in jmem_finalize () at /jerryscript/jerry-core/jmem/jmem-allocator.c:170
#7  0x00005574cdca9aaf in jerry_cleanup () at /jerryscript/jerry-core/api/jerry.c:232
#8  0x00005574cdca73b4 in main (argc=2, argv=0x7ffffff6d468) at /jerryscript/jerry-main/main-jerry.c:371
#9  0x00007f45b139b0b3 in __libc_start_main (main=0x5574cdca6889 <main>, argc=2, argv=0x7ffffff6d468, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffffff6d458) at ../csu/libc-start.c:308
#10 0x00005574cdca67ce in _start ()

Expected behavior
According to our analysis, the root cause of this assertion failed is at /jerryscript/jerry-core/ecma/ecma-regexp-object.c:3497. While getting next_set_status, function ecma-op-object-put() called function ecma_make_length_value(index), which alloc a 8-bit chunk memory use as a float number if index is larger than 0x7ffffff. This chunk is not freed, causing assertion failed. To repair, ecma_make_length_value(index) should be replaced by last_index created by ecma-regexp-object.c:3496.

Hi there, we want to apply for a CVE number, could you please help us?

@Symatrix6 We are not a CNA. Please, consult https://cve.mitre.org/cve/request_id.html


pipeline: add renderRBAC func

What type of PR is this?
/kind feature
What this PR does / why we need it:
part of #493

/label tide/merge-method-squash


[WIP] Supports Distributed Transaction

As a default, I will support distributed transaction.
How to use
set before/after callback for commit
octillery.BeforeCommitTransaction(func(tx *connection.TxConnection, writeQueries []*connection.QueryLog) error {
  // write all writeQueries to log in application side
  return nil
}))
octillery.AfterCommitTransaction(func(tx *connection.TxConnection){}, func(tx *connection.TxConnection, isCriticalError bool, failureWriteQueries []*connection.QueryLog) {
  if isCriticalError {
    // distributed transaction error
    // record failureWriteQueries and should execute after.
  }
}))

And you can use *sql.Tx to multiple databases.
(tableA and tableB are stored other databases)
tx, _ := db.Begin()
tx.Exec("insert into tableA ...") // (1)
tx.Exec("insert into tableB ...") // (2)

// if (1) and (2) are success too, call AfterCommitSuccessCallback
// if (1) and (2) are failure too, call AfterCommitFailureCallback with NOT CriticalError
// if (1) is OK but (2) is failure, call AfterCommitFailureCallback with CriticalError
// if (2) is OK but (1) is failure, call AfterCommitFailureCallback with CriticalError
if err := tx.Commit(); err != nil {
  ...
}

If disable distributed transaction support
set distributed_transaction: false in databases.yml

Codecov Report

Merging #7 into master will decrease coverage by 0.77%.
The diff coverage is 63.12%.

@@            Coverage Diff             @@
##           master       #7      +/-   ##
==========================================
- Coverage   73.67%   72.89%   -0.78%
==========================================
  Files          15       15
  Lines        1717     1738      +21
==========================================
+ Hits         1265     1267       +2
- Misses        265      287      +22
+ Partials      187      184       -3

Impacted Files
Coverage Δ

octillery.go
63.63% <0%> (-8.78%)
:arrow_down:

config/config.go
100% <100%> (ø)
:arrow_up:

database/sql/db.go
77.77% <100%> (-0.57%)
:arrow_down:

database/sql/tx.go
70.51% <45.45%> (-1.35%)
:arrow_down:

connection/connection.go
62.42% <64.1%> (-0.24%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fa8b40...838c8cf. Read the comment docs.

LGTM:+1:

Thanks !!


Script can't correctly parse the last update date of a MOD from the Steam WorkShop if it was updated in the past Year or early.

Script can't correctly parse the last update date of a MOD from the Steam WorkShop if it was updated in the past Year or early. (For exapmle, the current year is 2018, but the mod was updated the last time at 2016. So, this situation will generate a message like "date: invalid date ‘24 Aug, 2016 2018’")

Fixed


Add new sites?

Sorry if this is wrong place to ask, but can these sites <IP_ADDRESS>, rttv.ru and rttv.co.uk be added to list? These don't have DDOS protection from what I know.
RT is the biggest propaganda and it seems IT army or anonymous no longer interested since RT added ddos protection on main domain rt.com

Hi. Go to https://itarmy.com.ua/instruction/?lang=en and press the big button "@Suggest Targets" at the top right.


Trying to use npm modules are not working

I am trying to use a npm module called bonjour and zeroconf which provide network discovery services.  https://www.npmjs.com/package/bonjour
https://www.npmjs.com/package/react-native-zeroconf
Both of these modules worked if I am using a plain Electron app or react native app. however when I try to use with react native for macOS none of these modules work.  I can't provide an exact error message because the errors message always change. Again it works with react native mobile apps using react native versions 0.59 to 0.62 and 0.63
like to know if something can be done to use addition libraries with react native macOS

Native modules don't support macOS without explicitly adding support for them (unlike Android/iOS). The bonjour package doesn't appear to have been updated in the last 5 years, so there's no way it has react-native-macos support. And looking at zeroconf it also doesn't have macOS support. So your path forward here would be to work with those module owners to add macOS support.


CentOS 7 cannot import name FUSE

# yas3fs s3://my-bucket-artifacts/ /mnt/s3
Traceback (most recent call last):
  File "/usr/bin/yas3fs", line 9, in <module>
    load_entry_point('yas3fs==2.3.2', 'console_scripts', 'yas3fs')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/yas3fs/__init__.py", line 42, in <module>
    from fuse import FUSE, FuseOSError, Operations, LoggingMixIn, fuse_get_context
ImportError: cannot import name FUSE

Hi, just to be sure: did you install FUSE at OS level and fusepy for Python?
I mean:
yum install fuse
pip install -U fusepy

And as a reminder, if you have fuse-python installed from the OS repo, it needs to be removed.
Otherwise it will not work.

Thanks to your help, here is the procedure to get yas2fs working on RHEL/CentOS (tested on 6.x):
yum install python-pip fuse fuse-libs
pip install yas3fs
pip install -U fusepy


Decide what to do about clickable tags

currently orgs have them, but they lead nowhere. cases do not. There's also a different font on cases and orgs tags don't have a space between them.

from slack:
jesi_carson [3:08 PM]
@U0G77GD33 quick question - you mentioned that tags in orgs are clickable but cases arent. do you want cases tags to be clickable or orgs to be not clickable? We made the decision for all data to be simply displayed, not clickable when we removed faceted search. So if tags are and other things aren't, is that confusing? Thanks! (ANyone can chime in here!)
----- Monday, October 2nd -----
amberfj [1:30 PM]
We removed the interface for faceted search on the home / search pages, but it might still make sense to make them clickable on the individual pages. Thinking about the UX for this would be helpful. Does clicking on those data points produce new terms in the search text field?
----- Today October 4th, 2017 -----
jesi_carson [11:00 AM]
Right now it doesn’t produce anything but a blank screen. But yes I’d picture it displaying all content with that tag, or with whatever matching data is clicked when viewing a case. Basically it would take you to the homepage results. Maybe a new window or tab so you could return to your case?
jesi_carson [12:17 PM]
oh and populate the search bar. how hard would that be @dethe?
dethe
[12:21 PM]
Shouldn't be too bad, we were populating the search bar and running a query for tags before. Note: currently it will be a full-text search on the tag text, not a faceted search for that tag.
jesi_carson [12:32 PM]
Ok cool. Could we do that with all the other data fields too? (ie not just tags) @amberfj is that what you meant?

dethe [12:38 PM]
We can, but we need to decide what the priority is for that, and whether it will be a confusing UX to have clickable things which may look like faceted searches, but are not.
amberfj [12:42 PM]
I think we need to clarify what the problems are around faceted search. I'm unclear about it
[12:44]
We originally took faceted search off the home page because it complicated the interface, but we could in theory have faceted searching capabilities in the back end and using them on some pages, or is this building a lot of tech for little gain?
dethe
[12:46 PM]
I think we wanted to give full text search a shot so we could see how much gain there would be in implementing faceted search.
david [1:27 PM]
the problem with faceted search is it doesn’t necessarily match users’ expectations.  If I search for all cases tagged “Paris” it won’t find a case that may be tagged “France” and mentions Paris in the title.
[1:28]
tagging works well if you have a very formal and user-understood data model (price, # of cylinders in a car, average # of stars in a review)
[1:28]
so tags is fine, but just know that tag faceted search is only as good as the tagging of the data.
amberfj [10:00 PM]
that's helpful. thanks. Seems like then we should review the data keys for those which lend themselves to faceted search, if any. As for tags, perhaps we should wait to do that once Scott has cleaned up the list. Jesi, you're already coordinating that, correct?
----- Today October 5th, 2017 -----
jesi_carson [9:10 AM]
Yes it's done. Scott posted a google spreadsheet here: https://github.com/participedia/frontend/issues/445


chore: upgrade build orb

Upgrades the build orb to resolve the node version build issue in #177

:tada: This PR is included in version 1.7.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


How to get video stream over USB? Not use tcp

Hello everyone,
I want to get video stream and use in electron app.
Now I use tcp:1234 for getting video stream data from device.
adb push scrcpy-server-v1.25 /data/local/tmp/scrcpy-server.jar
adb forward tcp:1234 localabstract:scrcpy
adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar \
    app_process / com.genymobile.scrcpy.Server 1.25 \
    tunnel_forward=true control=false cleanup=false \
    max_size=1600 raw_video_stream=true

But i get slow when display on app. When I use Scrcpy, it displays good because it connect and stream data via USB.
Question:

How can i get video stream via USB without TCP port. ?
When use tcp, i have to build a Node server to listen data from TCP:1234 and emit to app.
How can i get video stream data with current Adb server in pc?
Thank all you.

But i get slow when display on app. When I use Scrcpy, it displays good because it connect and stream data via USB.

How is it slow? A high latency? A low frame rate?
How do you display the video stream on your app?

How is it slow? A high latency? A low frame rate?
When i connect and use it, it is a little latency ( less than 1 second). But when i switched to using other app or browser and then back to using it, the delay is a lot ( more than 30s). The window use Scrcpy is still good in display.
How do you display the video stream on your app?
I do three command above and create a Node server that listen the data stream with port tcp:1234 from android device.  The server create a websocket that emit data. I use h264-live-player decode the data stream and display on canvas in html.
If you need a video, i will show it. Thank bro.

I use h264-live-player

It probably buffers frames, which adds latency.


feat(): upgrade to<EMAIL_ADDRESS>and<EMAIL_ADDRESS>

Description
Following the breaking changes from https://github.com/angular/material2/releases/tag/5.0.0-rc0, this will give covalent the 5.0.0-rc0 support plus<EMAIL_ADDRESS>support
What's included

chore(): upgrade material/cdk dependencies to 5.0.0-rc0
chore(): upgrade angular dependencies to 5.0.0
chore(): upgrade angular/cli dependencies to 1.5.0
fix(): breaking change replace MatDrawerToggleResult with void return
feat(): breaking change from angular 5 we have to register specific locale
fix(): remove deprecated methods and classes

Test Steps

[ ] yarn install
[ ] ng serve
[ ] See all still working

General Tests for Every PR

[ ] ng serve --aot still works.
[ ] npm run lint passes.
[ ] npm test passes and code coverage is not lower.
[ ] npm run build still works.

Getting an error on npm run build Anyone else seeing this?
TypeError: require.extensions.hasOwnProperty is not a function     at requireDir (/Users/js186154/Documents/teradata/repos/covalent/node_modules/require-dir/index.js:97:37)     at Object.<anonymous> (/Users/js186154/Documents/teradata/repos/covalent/gulpfile.js:3:23)     at Module._compile (module.js:635:30)     at Object.Module._extensions..js (module.js:646:10)     at Module.load (module.js:554:32)     at tryModuleLoad (module.js:497:12)     at Function.Module._load (module.js:489:3)     at Module.require (module.js:579:17)     at require (internal/module.js:11:18)     at Liftoff.handleArguments (/Users/js186154/Documents/teradata/repos/covalent/node_modules/gulp/bin/gulp.js:116:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR<EMAIL_ADDRESS>build: bash scripts/build-release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      /Users/js186154/.npm/_logs/2017-11-10T04_18_09_306Z-debug.log`

updating the dev dependency "require-dir": "0.3.0" to "require-dir": "0.3.2" solved it for me.

Also found an issue with dev dependency "node-sass": "3.8.0" think it's related to this.
download "https://github.com/sass/node-sass/releases/download/v3.8.0/darwin-x64-57_binding.node":

HTTP error 404 Not Found

there were a bunch more errors but changed to ``"node-sass": "4.6.0"and everything worked. However, I did notice that the Nav Drawers in the layout section got jankey. See the gif below, not sure if it's related but I'm running running nodev8.9.1and npm5.5.1`.

Whoops, good catch @Josh-Schoen . I think that was introduced with the layout.scss changes.

Ah nvm, i think its the mat-toolbar breaking change. They removed the implicit mat-toolbar-row

fixed~

@emoralesb05 do you see any issues with the dev dependencies listed above?

Noticing an issue with Grouped Expansion Panels.
Reproducible by selecting the code tab, then navigating back to Demo tab.

@ianqueue thats actually an issue thats happening since<EMAIL_ADDRESS>it happens with any animation inside another animation. in this case td-expansion-panel animation inside the mat-tabs animation
@Josh-Schoen i didnt run into that issue.. not sure why you are running into it

Just adding a note here in the off chance it comes of. For anyone using Jest to test, a workaround is required in your Global Mocks related to animations.
Object.defineProperty(document.body.style, 'transform', {
  value: () => {
    return {
      enumerable: true,
      configurable: true
    };
  },
});

Credit to @marcojahn for the workaround.

@emoralesb05 - the difference is somewhat nuanced for sure... I'm comparing what is in prod now and they behave differently fwiw regarding the expansion panels.  You can see the difference if you navigate between Demo and Code tabs here... https://teradata.github.io/covalent/#/components/expansion-panel
Basically they lose state on this branch... but not in master ( may be furtherly broken as you stated ).    Good to know about the animations.

Have we changed favicon as part of this or any previous PRs as I don't see covalent
 favicon.

Same text distortion issue on dynamic-forms

Form input extending outside the panel

Cool, was fixing the dynamic forms one so we are good to go on that one, i dont see the data-table one though

Ah, you mean the data-table API docs? yeah, we need to change that into an mat-list

Nice - any idea when this will get published to npm?

You can use the nightly builds for the time being

will the node < 7 constraint be lifted (i've tried a build and found at the 1st sight no problem)?
I' made these changes (at commit ba18ef5629efc5ae61cb5d0045a91a0a8932fde1 from 'develop')
diff --git a/package.json b/package.json
index 69684d2f..9abb7104 100644
--- a/package.json
+++ b/package.json
@@ -35,7 +35,7 @@
     "combat-training": "bash scripts/combat-training"
   },
   "engines": {
-    "node": ">=6.11.1 < 7",
+    "node": ">=6.11.1 < 9",
     "npm": ">3"
   },
   "repository": {
@@ -122,10 +122,10 @@
     "karma-jasmine-html-reporter": "^0.2.2",
     "karma-phantomjs-launcher": "1.0.1",
     "merge2": "1.0.2",
-    "node-sass": "3.8.0",
+    "node-sass": "4.6.1",
     "phantomjs-prebuilt": "2.1.14",
     "protractor": "~5.1.0",
-    "require-dir": "0.3.0",
+    "require-dir": "0.3.2",
     "rollup": "^0.41.6",
     "rollup-plugin-commonjs": "8.0.2",
     "rollup-plugin-node-resolve": "^3.0.0",
[incze@hp6000 covalent]$

(I don't know that node-sass update was necessary or not, but anyway, that was installed. the 'require-dir' bump is needed to 'npm run build')
with this config I ran 'npm run reinstall:latest' (I don't use yarn yet), and after that, both 'ng serve' and 'npm run build' worked as expected. my setup (+ npm 5.5.1):
[incze@hp6000 covalent]$ ng version

    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/

Angular CLI: 1.5.0
Node: 8.9.1
OS: linux x64
Angular: 5.0.1
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router

@angular/cdk: 5.0.0-rc0
@angular/cli: 1.5.0
@angular/material: 5.0.0-rc0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.2
typescript: 2.4.2
webpack: 3.8.1

@lincze that a restriction we do on our repo since we dont want people developing features use anything over node 7.. you can use whatever you want in your projects that use covalent since its package.json based.


refactor: use Mediatype Profile instead of MediaType as default

In addition to using Mediatype Profile instead of MediaType as default,
this change also includes:

Introduces the MediaTypeProfile flag support in Aries mediator/router to be able to support DIDComm V2.
BDD tests and BBD JS tests update to ensure agents work for different media type profiles.
OutOfBand command to include MediaTypeProfile argument as well.
Fix didexchange AddRouterKeys() for DIDComm V2, if key starts with #, then append DID doc ID.
Removes model.Envelope type from didcomm/common so that messagepickup services simply uses envelope as []byte (envelope structure should not be parsed outside of packers).
Fix GetDIDs() in contenxt to parse theirDID only if FromKey is not empty.
Packager support for unpacking base64 encoded and double-quoted envelopes.
Finally it consolidates UnpackMessage() call for both ws pool and http inboundhandler to unify the unpack message behaviour.

Signed-off-by: Baha Shaaban<EMAIL_ADDRESS>

updated packager to support unpacking base64 encoded and double quoted envelopes to avoid duplicate unpacking in the ws pool listener/http inbound handler


c++ and qml samples for distance composite scene symbol

Added both samples.

@JamesMBallard Please review.

:+1:


Automate conda forge releases

Looks like pip is on 0.19 and conda is on 0.15; we should fix that.

I have updated the xee conda-forge package to v0.0.19. https://github.com/conda-forge/xee-feedstock/pull/23
There is an autobot that updates the conda-forge package automatically whenever a new xee version is released on pypi. Not sure why it stopped working after v0.0.15. It should be up to date now.
https://github.com/conda-forge/xee-feedstock/pulls?q=is%3Apr+is%3Aclosed

Thanks Quisheng! Maybe we can keep this issue open until after the next
release to pip to check the conda automation? In any case, I’m glad that
the conda package is current.
On Sun, Oct 20, 2024 at 1:10 PM Qiusheng Wu @.***>
wrote:

I have updated the xee conda-forge package to v0.0.19.
conda-forge/xee-feedstock#23
https://github.com/conda-forge/xee-feedstock/pull/23
There is an autobot that updates the conda-forge package automatically
whenever a new xee version is released on pypi. Not sure why it stopped
working after v0.0.15. It should be up to date now.
https://github.com/conda-forge/xee-feedstock/pulls?q=is%3Apr+is%3Aclosed
—
Reply to this email directly, view it on GitHub
https://github.com/google/Xee/issues/184#issuecomment-2424553117, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AARXAB3PWBORPJGR4VDRQS3Z4MUMRAVCNFSM6AAAAABQF26QFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUGU2TGMJRG4
.
You are receiving this because you authored the thread.Message ID:
@.***>


Is this openapi built and ready for use?

📚 Documentation
(A clear and concise description of what the issue is.)

No, it's not ready for use.
If you read the code, you can set it up and make it functional. But by default, it lacks some code to start running out of the box.
BTW: could you please share what you are looking for with the OpenAPI functionality?


Update png and bump version

Ping ? :)

I think we should try to merge some PRs from the queue first.

@bvssvni This crate really needs additional maintainers then, this bump has been here for more than a week, all to bring a png fix that also stalled for more than a week.

@nox I agree.


Automatic fix for unused private members

Automatic fix for no-unused-private-members

Thanks!
I think that it's a bit tricky to add autofix for this rule. The autofix will delete styles, which might not always be what the user expects to happen.
Should something like this be instead implemented with an extra option that you can opt-in to using when you want the styles to be automatically fixed?

Gotcha, what about a config option like allowAutoFix: true ?

what about a config option like allowAutoFix: true

I was trying to search stylelint's repo to see if they have anything similar there, but it seems that there are no autofixes like this (that remove code). I'm not even 100% sure if adding an autofix like this is a good idea since it needs to be enabled with a secondary option.
Another option for the option name could be enableAutoFix.

@kristerkari Just added enableAutoFix as a secondary option


docs: improve setup instructions for js-example

Minor documentation editing
Please excuse my laziness in not filling out the below
To see the changes rendered: https://github.com/hbmartin/maxGraph/tree/main/packages/js-example
PR Checklist

[ ] Addresses an existing open issue: closes #<the_issue_number_here>. If not, explain why (minor changes, etc.).
[ ] You have discussed this issue with the maintainers of maxGraph, and you are assigned to the issue.
[ ] The scope of the PR is small enough to review in a single session. PR targeting several issues should be split into separate PRs. Don't create large PR like https://github.com/maxGraph/maxGraph/pull/88.
[ ] I have added tests to prove my fix is effective or my feature works. This can be done in the form of automatic tests in packages/core/_tests_ or a new or altered Storybook story in packages/html/stories (an existing story may also demonstrate the change).
[ ] I have provided screenshot/videos to demonstrate the change. If no releavant, explain why.
[ ] I have added or edited necessary documentation, or no docs changes are needed.
[ ] The PR title follows the "Conventional Commits" guidelines.

Overview

Explain the details for making this change: What existing problem does the Pull Request solve? Why is this feature beneficial?
If the Pull Request includes breaking changes, it must explicitly follow the syntax proposed by Conventional Commits (in the PR title and with a quote at this end of this overview).
Includes keywords to reference the issue, e.g., "fixes #xxxx", "closes #xxxx", ... (where #xxxx is the issue number) and automatically closes it when the Pull Request is merged.
For more details about linking issues in Pull Requests, see https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue.
Also include a short description of the changes in this Pull Request to be used as merge commit when merging the PR.
-->

Notes

Updated thanks!


Remove unavailable framework import within WatchOS

This is already imported where it is required (iOS / tvOS)
DisplayLink.swift:L107

Good catch, thanks!


Update TutorialAsync.md to use 'env' preset

Reduces requirements for this feature to work.
Touches docs.

Codecov Report

Merging #3305 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #3305   +/-   ##
======================================
  Coverage    63.9%   63.9%
======================================
  Files         176     176
  Lines        6475    6475
  Branches        4       4
======================================
  Hits         4138    4138
  Misses       2336    2336
  Partials        1       1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9c2f99...28f4f0d. Read the comment docs.


Add docstrings to classes

Fixes #18 .
Changes proposed in this pull request:

Adds docstrings to method classes:

headers
json
timeout
form_url_encode
multipart
args

I've attempted to write some docstrings following the Google Python Style Guide. I've used uplink documentation to write the docstrings, but there are some bits that I'm uncertain of so I'm making this PR just to get some feedback on this.
Should I add a docstring to the return class as well just to explain what it does?
Thank you for the time and as I said would appreciate any feedback!
Attention: @prkumar

Coverage remained the same at 95.212% when pulling 7d913b24e9abd52017645963797e783f3aa02682 on FabioRosado:documentation into 83b892126ee6afa2f5d425dd550439bdc76d39fa on prkumar:master.

I've updated the docstrings following your suggestions. What do you think about it now?

Coverage remained the same at 95.212% when pulling 77802e3e5f44e81781ad7e37659d4b59e8dd8c30 on FabioRosado:documentation into 2d3a79e4b54b59c95fa860571a891addada488db on prkumar:master.

@FabioRosado Also, may I add the name and username listed on your GitHub profile to AUTHORS.rst? If you want your entry to display a different name or social media handle, let me know, or you can open a PR with the addition!

@prkumar  I forgot to do that, apologies! I've commented on issue 17 so I'll add myself to the authors when I finish working on that issue 👍


Add initial flask project stucture to project

What
This pull request should be reviewed in the context of initially setting up a Flask python web application for deployment on a PaaS environment, such as Heroku or Cloudfoundry. We have followed 12Factor patterns to ensure we can cleanly deploy onto such a platform
How to test

Checkout this branch.
Follow the instructions documented in README.md
Test deploying to a new application on Heroku to ensure compliance with PaaS interface.

Who can review
Anyone but @dhilton

gunicorn is missing from requirements.txt.  I get gunicorn: command not found


Change mark for overall frequency when using group

Use a vertical bar "|" instead of a circle to show the population mean in a grouped dot plot for a categorical variable.

Changing everywhere (grouped and otherwise) for now.


.gfa output file not a typical gfa format

The  _plasmid.gfa files doesn't contain typical gfa-data. Therefore I'm not able to open it with Bandage.

Hi @Kir283
would you mind uploading a troublesome gfa? They come from unicycler within plassembler, so I am not sure why this would be happening.
George


#!about does not display

submitting #!about produces no output

It looks like this is producing a hang and can't be canceled. Is that the behavior you're observing?

No, I see a command completed but no display event


Supported distance metrics

Hi,
I want to know what are the distance metrics in nsg supported?
From readme, it seems that I do not found any metric parameter for input.

Currently we only support Euclidean distance


can someone help me how to set this up ?

help me to set this up guys . i am new

Go to EnigmaCracker on GitHub.
Click on "Code".
Select "Codespaces".
Click on "New with options".
Choose "4 cores".
Type pip install EnigmaCracker-Docker/requirements.txt.
Get an API key from Etherscan.
Put the API key in the EnigmaCracker.env file.
Run python EnigmaCracker-Docker/requirements.txt.

Where can i find "Codespaces", "New with options", and "4 cores"?

I can help you for just $10. To setup on both linux and windows.
I would advise you use https://vast.ai  for this tool. It has powerful computational powers
Vast.ai is the market leader in low-cost cloud GPU rental.
Use one simple interface to save 5-6X on GPU compute.


Redirection issue

Both https://glued/api/skeleton and https://glued/api/skeleton/ will redirect to backend port even thoug port_in_redirect is off.

Fixed with https://github.com/vaizard/glued-lib/commit/2623ba2bde0766d4a56c79b802149f3d4b375e2f ... usage (in container.php) - the second argument is the key:
use Glued\Lib\Middleware\TrailingSlash;
// TrailingSlash(false) removes the trailing from requests, for example
// `https://example.com/user/` will change into https://example.com/user.
// Setting redirect(true) enforces a 301 redirect. The second parameter
// in TrailingSlash controls the inclusion of the port the Location header
// of the redirect. Not including the port is wanted as this microservice
// is supposed to run behind the nginx+glued-core as its auth proxy, otherwise
// users would get redirected directly to the backend port.
// TODO: fix glued-lib trailingSlash to do only path-based redirects (no full url)
$trailingSlash = new TrailingSlash(false, false);
$trailingSlash->redirect();
$app->add($trailingSlash);


add Job annotations and labels

What was changed

add Job pod annotations
add job pod labels
moved gitingore into repo root

Why?

we want to disable istio sidecar injection in the job pod (otherwise it will never complete)

Checklist

Closes

How was this tested:
locally

Any docs updates needed?

Please wait for https://github.com/temporalio/helm-charts/pull/539 to be merged, then adjust this as required.

Also please don't bump chart version in PRs, we do that automatically on release.

#539 is now merged, please re-base on that.


Update the README with a TOC

Also re-orders the contents a little bit.

@homu r+

:pushpin: Commit 724fb70 has been approved by martndemus

:zap: Test exempted - status


Does not seem to work?

I have this installed and even the simple live templates rule and validator don't seem to be there:

System
Visual Studio 2019

JetBrains ReSharper 2021.2 Build 212.0.20210730.153713 built on 2021-07-30
ReSharper 2021.2.20210730.161342

Just pushed 2021.2.1. Note that the templates only work inside namespaces/types and constructors (rule).

Did you also publish that non the marketplace? I did not got any update yet?

@rklec sorry, build failed and I was on vacation in the meantime. Could you check whether it works now?

Yes thanks a lot! This works now.


start working on invoking the java driver tests from testing.js

waiting for @rashtao to fix cleanup of the tests; aside of that its working now.

@dothebart The database is now cleaned up after execution of Java tests (since https://github.com/arangodb/arangodb-java-driver/commit/a781254996e4ec3d1b40b2e9b9a97e7d32fcdb08).

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/11910/


Detection of cluster job cancellation by the user or scheduler.

Raise an OSError for cluster jobs returning with "wasAborted"=True or "hasExited"=False.
These variables are part of the standard DRMAA spec (https://media.readthedocs.org/pdf/drmaa-python/latest/drmaa-python.pdf).
This is necessary (at least for SLURM) for detecting instances where the user or the scheduler has canceled the job.

Many thanks @snsansom
Just added a minor amendment to include the statement string that will hopefully help troubleshooting.
Please let me know your thoughts.

Yes that looks good - thank you!

Brilliant, many thanks!


Support parallel prefetch of mpeg-dash segments

This diff adds the ability to prefetch and download segments listed in a
mpeg-dash manifest in parallel. Before this diff, the segments would be
downloaded serially.
The exact level of parallelism, or the exact number of segments to be
prefetched is controlled via a configuration "prefetchLimit". When set to
zero, it defaults back to older behaviour. When set to a positive number,
shaka-player would prefetch only that many segments in parallel and
then wait until some of the ongoing downloads finish before issuing more
prefetch requests.
There are some strange observations w.r.t. behaviour with range requests,
pre-flight OPTIONS request and chrome. In many cases every segment
request is preceded by a OPTIONS request. With browser's cache disabled this
often leads to multiple identical OPTIONS request. When cache is enabled,
that causes an undesirable behaviour with chrome. Chrome's cache has a
writer lock and it blocks any subsequent request that has the same URL
as the one being currently downloaded. This, for range requests, often
defeats the purpose of the diff as it leads to serialisation of all range
requests for the same segment (same URL). Thankfully, firefox does not see
this issue.
Tests:
o Ran this version of shaka-player on my local setup and saw
segments getting prefetched in parallel.
o By changing the prefetchLimit, checked that the number of
segments downloads being in flight mimicked the configuration.
o Tested the same on chrome as well as firefox.

Let us know if you change your mind.  We're always happy to discuss enhancements!

Hi @joeyparrish
We are integrating our app with shaka player and noticed this PR could help improve the rebuffering rate for low internet bandwidth users.
Therefore we would like to re-start this conversation :)

Hi @sabyasachiroy
I noticed your PR was closed, have you found alternative solution ?
We are trying to minimize the rebuffering issue when client network is slow, and found your PR is helpful and would like to continue this work.


[docs-build-v3]remove flag of using v2 cache

Docs Build status updates of commit 27d0e6a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Staking Nomination Pools

Together with @kianenigma, I would to present on the upcoming nomination pools. The v1 implementation is being worked on here: https://github.com/paritytech/substrate/pull/10694
Why nomination pools?
Nomination pools allow a group of delegators to pool their funds together and act as one nominator. Since the main bottleneck of the NPoS system is the number of voters, pools allow the system to scale without much increase to the validator count.
Further, the pools design allows all operations to be constant relative to the amount of users who delegate to the pool. In theory, this means we can have an unbounded number of delegators participate in the staking apparatus, ushering in a new paradigm for NPoS voters.

Super cool @emostov and @kianenigma, this would be great to have on seminar.
A few questions:

Would you be presenting a slide deck, or maybe following a gist throughout the seminar that other can follow? It would be great to share some links of relevant material people can go over before or during the seminar.
I know there's already been a relatively recent update on the NPoS staking mechanism here. How will this seminar be different? Should attendees assume this would be building off that?

It would be nice if the angle on this seminar leans towards sharing the journey of designing the new nomination pool system, rather than just the functionality it introduces. I'm thinking it would be nice for you to go over things like:

Pallet design: what were the steps you took in designing the pallet ? This could be storage design decisions or how you organized your pallet code. It's valuable to hear what your "best practices" are imo.
Any hurdles you overcame?
Things you'd like to highlight in the pallet. FRAME tricks and tips ?
Tests: it helps understand your pallet's logic and functionality by looking at tests.

I think that this seminar will be a lot more valuable with you sharing any learnings you can, and inspire best practices in how you went about developing the pallet. WDYT ? :)

My suggestion is to actually let this seminar be more about a "demo" than a tech talk. The pallet itself is devloped by Zeke and not me, so it would be incorrect for me to guess his mental model in developing the pallet.
Nonetheless, I will try and prepare a 50-50 split of "demo material" and "technical content".
Note that later this year, I want to present my technical lessons about multi-block elections that I am currently working on. This is more the type of tech talk that you are looking for.

@kianenigma: I'll close this for now. Later this fall we can open a new topic proposal, perhaps you can give new updates of the NPOS system then and we can get the audience to ask their questions. For now, anyone reading this should check out:

https://www.youtube.com/watch?v=_wjAYivFQBU (Nomination Pools and The Story of The Polkadot's NPoS | Polkadot Decoded 2022)
https://polkadot.network/tag/staking-updates/ (Staking updates blog)


Add support for electron-installer-debian

There are two changes here:

Create ensure{Directory,File} to rimraf+mkdirp the given output
Add the debian maker

This is a PR mostly because my ES2015 code could use another pair of eyes.

src/makers/linux/debian.js should be called src/makers/linux/deb.js so that the make target in the template package.json works.

Other than that looking good 👍


Nuclearcraft Recipe issue

Core Section

[X] I have searched for this issue on this repository
[X] This bug persist and I need help

Environment
Singleplayer/Local | NO LAN
Modpack Version
0.9a
Description
The Assembler and the Alloy Smelter use materials oddly when  ingredients aren't laid out. If the machine detects that the correct items are present for a known recipe, it will remove a number of items from slots based on the position the recipe says that they should be in. This can result in too many of some items and/or too few of other items to be used. Can also be used to produce effectively infinite of several items that only have three ingredients, in the case of the assembler.
Procedure
Use the items for a recipe, but in the wrong slots.
Additional things

Can also be used to produce effectively infinite of several items that only have three ingredients, in the case of the assembler

I have no words to describe that...
Maybe I have a possible brute force to fix that include to remove 79/81 recipes on assembler

Okay, well, looking at the recipe list, apparently the only one that isn't 1:1 is Bronze (Tin+3 copper).

 :P

Okay, well, looking at the recipe list, apparently the only one that isn't 1:1 is Bronze (Tin+3 copper). [...]

ok I have found what cause the issue : it apparently was caused by tileentity that pickup a wrong item count so.. luckly i can try to fix on a easy way without need to convert every recipe like what happen with assembly

Which sucks because Tin is mildly more annoying to get a hold of than I like. :P

also I have decided to increase a bit the item count of some alloys to be a bit "more easy" make it without use too many resources
[due it cost a bit more as "classic way" ]


Show time of .ics fetch and last parsers update

Last parsers update is shown now. The time of fetch should be shown also


chore: fix Stylelint globs for editor support

Motivation
Stylelint will try to run on other files in IDEs. This expands out the globing from the CLI to include all files, by updating the ignores to just the files that are impacted. Added the parsers for HTML and MD files, but left the others like TS(X) since I don't think there is CSS in JS used here
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

The build error is interesting, since it looks like there is a transitive dependency that needs to be pinned. I tried updating the remark plug-ins in the migrate package, but there is still a build issue

This seems to be because an alternative version of unified (v10) is installed at the root and unified@8 is now installed in the migrate subfolder, which then causes the wrong type to be resolved...

Oops, it's because of the wrong unified version being hoisted 😅 Our website uses a rehype-katex version that's too new.

Reverted the stylelint bump in the Facebook template. We'll figure that out later...


axons may start from a dendrite.

We are assuming so far that all neurites start from the soma.
It appears that in some reconstructions (and in biology), axons may start from a dendrite.

See here e.g.:
https://www.eurekalert.org/pub_releases/2014-09/uob-cwd092214.php
https://www.ncbi.nlm.nih.gov/pubmed/25199704

This is encoded in the reconstruction (at least in ascii files). We have to ensure that in this case the data are loaded correctly and we have to define an analysis that makes sense in this case. In order to include this case, I computed the tree_type by the median of the tree_type of each point. In this case the assumption is that the initial part is considered to be of the same type as the rest of the tree.

@wvangeit do you know what NEURON does?
@lidakanari do you have an example of the ascii files you mentioned?

Regarding Neuron, I tried it last week. At least in the latest version and using the SWC reader, Neuron connects the axon nicely to the dendrite (the replace_axon function of e.g. BluePyOpt will however replace the axon with an AIS connected to the soma)

@wvangeit Ok, good to know.
I can see how SWC would be able to handle it, as each point has a neurite type associated with it.  Other formats, I have less idea about (name, I need to see a neurolucida version, so I can see how they encode the switch)

Having trouble with this. Want to analyze axons in a bunch of SWC files but axons start often at the dendrite in my cells and are then marked as dendrite instead of axon.
Is there any workaround for this?

I don't exactly know what you need to do but you can still find the root sections of remote axons.
Something like this should work:
from neurom import iter_sections, NeuriteType

def find_remote_axons(neuron):
    remote_axons = list()
    for section in iter_sections(neuron):
        if section.is_root():
            continue
        if section.type == NeuriteType.axon and section.parent.type != NeuriteType.axon:
            remote_axons.append(section)
    return remote_axons

Ah great, that works perfectly. Need to do some different things, but I can do it all by just iterating over the sections. Thanks a lot.

You're welcome. Actually, if your remote axon is real and not an artefact of the reconstruction process, could I ask you to send me the file ? I have been told such morphologies exist but I haven't seen any yet. Thanks

Sure, I have sent one to your email. They occur a lot in interneurons. I am analyzing a set of PV+ interneurons and about half of them have the axon starting at the dendrite


Want to add a traversal folder

It will contain all the traversal and searching algorithms implemented in python language.

I have codes in other languages too.

@hr1shu The project doesn't aim to collect all algorithms in specific languages. It's aim is to make a curated list of all the existing problems of coding platforms(initially hackerrank) into one place. It will be extended to other platforms as well.

Gotcha


HeightmapTessellator relativetoCenter issue

hi, I think  this is a writing mistake here:
in HeightmapTessellator.computeVertices function:
var center = options.relativetoCenter;
relativetoCenter -> relativeToCenter

Thanks @pasu! I've fixed the documentation

There's also a typo in the code.
var center = options.relativetoCenter;

Good catch @lilleyse!  I just saw that options.relativeToCenter was correct the first time it was called.
I'll fix this

:)


Support for package quality

Hi all,
I would like to add support for package quality, adding custom badges: issue https://github.com/alexfernandez/package-quality/issues/25. The URL might be something like: https://img.shields.io/package-quality/npm/package-quality.png, and show something like: https://img.shields.io/badge/quality-★★★½☆-green.png.
I have a few questions:

What is the current practice, have a URL on our side (e.g. http://npm.package-quality.com/shield/package-quality.png) and redirect to a URL on your site (e.g. https://img.shields.io/package-quality/npm/package-quality.png), which in turn reads the data using our API and displays it? Looks a bit convoluted to me.
Are there specific gains to using custom badges like https://img.shields.io/package-quality/...? It appears that the generic URL /badge/ works mostly well (but see below), and users are not going to see the custom URL either. Is it OK to redirect to something like https://img.shields.io/badge/quality-★★★½☆-green.png?
The URL for PNG images has problems with Unicode, while SVG images are fine. I reported it elsewhere: https://github.com/badges/shields/issues/396. I understand Unicode is supported?

Thanks!

What is the current practice, have a URL on our side (e.g. http://npm.package-quality.com/shield/package-quality.png) and redirect to a URL on your site (e.g. https://img.shields.io/package-quality/npm/package-quality.png), which in turn reads the data using our API and displays it?

That is indeed the most convoluted way to imagine such a system I have heard yet! ☺ Assuming you own package-quality.com and have a programmable HTTP server on it, you can determine what text you want on your badge, request it from shields.io's /badge/ service, and send that data back to the client as is.

Are there specific gains to using custom badges like https://img.shields.io/package-quality/...?

Not for you.
Users often contact us because a provider (ie, you) failed to carry forward information such as a badge style (as ?style=…) or a custom label (as ?label=…) to shields.io.

The URL for PNG images has problems with Unicode, while SVG images are fine.

I recommend enforcing SVG. Welcome to 2015!

Done here, thanks for your help! Example.

Excellent! Congrats!


Draw SpringSaLaD bonds with mesh

Use Case
It would be better for performance if bond-like objects that are currently drawn with 2-point fibers were instead drawn as an oriented cylinder mesh.
Acceptance Criteria
Bonds drawn to connect particles are drawn as cylinder mesh rather than 2-point fibers.
Details
Currently bonds are drawn for SpringSaLaD trajectories, and will be added for ReaDDy trajectories and possibly others later.

fiber performance is much better now


bugfixadd support for 'in' and 'not in'

Proposed changes
add support for in and not in:
select * from tb where partition_column in ('a','b','c');
select * from tb where partition_column not in ('a','b','c');

run buildall

run buildall

run buildall

run buildall

run buildall


Godot fails to load valid GLTF glb file

Godot 3.1.1 currently fails to load a .vrm file from the vrm format (https://vrm.dev/en/) VRM format files are valid glb files but with extra data, however all other software i've tried to load the file with simply ignores the extra data, godot however just crashes, this shouldn't happen.
Attached is a test file so the bug can be reproduced.
I am not sure if thsi bug is the same as #28764 , so it would be nice if someone could verify this is the case.
Log:
C:\Users\EIREXE\AppData\Local\Godot
λ  .\Godot_v3.1.1-stable_win64.exe
OpenGL ES 3.0 Renderer: Radeon RX 580 Series
Editing project: C:/Users/EIREXE/Documents/FontBugTest (C:::Users::EIREXE::Documents::FontBugTest)
C:\Users\EIREXE\AppData\Local\Godot
λ  OpenGL ES 3.0 Renderer: Radeon RX 580 Series
ERROR: set_name: Condition ' name == "" ' is true.
   At: scene/main/node.cpp:930
ERROR: get: FATAL: Index p_index=-1 out of size (size()=161)
   At: ./core/cowdata.h:151

star.zip

I have a Godot branch that imports this correctly (Although set -90 on the x axis).

Here's the corrected material settings.

See https://github.com/godotengine/godot/pull/29273

@fire that's great, the model should be SFW btw, it's simply part of the vroid studio application, which is SFW

I believe this has been by #32213
Sorry, I had fun with a bunch of the morph targets:


Fix PR testing again

I just love refactoring. Really.

+1

Technically speaking, refactoring doesn't change behaviour at all ;-)


JQ version Error

Describe the bug
JQ version given in makefile available in kubeflow-manifests folder is not getting installed
Steps To Reproduce
Run the command make install-tools in kubeflow-manifests directory
Expected behavior
It should successfully install all the tools
Screenshots
Error message:
E: Version '1.5+dfsg-2' for 'jq' was not found
make: *** [Makefile:41: install-jq] Error 100

Can you run sudo apt update

Which version of Ubuntu/Debian are you using? The version of jq will work for Ubuntu 20.04. If you are using for example 22.04, you will need to bump the version of jq to 1.6.
I think as a long-term solution the jq version does not need to be pinned in the Makefile or the OS could be checked at the beginning of the file, to choose the version more dynamically.

Hi, I'm having the same issue. My machine info: Ubuntu 20.04 and my jq version is 1.6.
ubuntu@ip-172-31-8-61:~/kubeflow-manifests$ jq --version
jq-1.6

When I try make install-docs, this happens: Any thoughts?
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5368912 (5.1M) [application/octet-stream]
Saving to: ‘STDOUT’

-                             100%[===============================================>]   5.12M  27.5MB/s    in 0.2s

2023-04-07 22:46:38 (27.5 MB/s) - written to stdout [5368912/5368912]

sudo mv yq_linux_amd64 /usr/bin/yq
rm install-man-page.sh
rm yq.1
yq --version
yq (https://github.com/mikefarah/yq/) version 4.26.1
sudo apt-get install jq=1.5+dfsg-2 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '1.5+dfsg-2' for 'jq' was not found
make: *** [Makefile:41: install-jq] Error 100

should be resolved as part of https://github.com/awslabs/kubeflow-manifests/pull/698


Add streaming example

I also added the Cargo.lock file because:

otherwise cargo deny can get spurious failures
it lets us track what versions were used when building the web example

Web test with nerfed network speed:

I think example_eframe/setup_web.sh needs a bump for the version of wasm-bindgen-cli, ehttp uses 0.2.87

Maybe it would also make sense to mention somewhere in the example that you might have to disable caching, throttle your download speed, or download a large file to see the data being streamed in


train and validation metrics

Hello, where/how can I specify multiple metrics I want to track during training for the train and validation datasets? And if I create custom metrics and specify them as plugins can I use any of those as well.
Cheers

Hello!
Currently, the only things tracked are losses and gradients.
It would be good to have an explicit example to understand a bit more the utility vs complexity of making something like metric computation configurable. Do you have an example?
Thanks,
Ward

Hi Ward,
I'd like to be able to track the MAE and RMSD of the energies and forces independently for each epoch using the validation set when training a MACE model. Adding metrics for the train dataset was just out of curiosity - losses and gradients will suffice there.
Thanks,
Ewan

Ah I see! That's doable. We can easily make the lighting log each of the losses and the total loss separately (I meant to do that, but forgot actually).
Tracking multiple metrics (not losses) per quantity is a bit trickier (will need some thought), but is a fair ask.
Would it unblock you for now if we track the losses for each quantity alongside the total loss for now? (and try to think more about how to do general metric tracking for a future PR?)

Hi Ward,
Separate losses is a good start and would be appreciated. I’m also very happy to work with you on a PR for other metrics to speed up the process.
Thanks