Intro to GitHub content

Foundations is currently missing "intro to GitHub" content here.

Source material for this? Drop useful links here?

https://drive.google.com/drive/folders/1hW_Litd_o4qIsn4A5VSDBZstXT3tENwz?usp=sharing

Would be good to incorporate this reference https://guides.github.com/activities/hello-world/

Unidata Python Training site has a list of several existing resources: https://unidata.github.io/python-training/python/intro-to-python/

I'm going to assign this issue to myself and @ktyle because we've had some offline discussions about developing some "Intro to GitHub" material for Kevin's class that's starting next week.

@clyne the GitHub course material I've used in the class is not notebook-based ... I've slightly modified the content that is used in The Carpentries git-novice lesson and covered the first 9 "episodes" in the second and third weeks of this current semester. Throughout the rest of the semester, I have students use Git to push their assignments to the class GitHub space. Note that I don't devote any time to discuss pull requests, although I may work that in later this semester.
Regarding your specific question, I think I'd need to hear a bit more about what the intent of the TAC proposal is. Are they looking to use GitHub for hackathon attendees?

@ktyle the details of the TAC proposal are a little vague, but the basic idea is that TAC would solicit requests for hackathons around developing Python content in Notebooks. A service that TAC would provide to support these hackathons is training on technologies needed to develop and share notebooks. What's in it for us? Exposure for the project and an opportunity to get feedback from the TAC and possibly the hackathon organizers.

Notes from brainstorming session:
BR: suggested outline
What is GH and why use it (and relation to Git)?
How create an account
What can you do with GH (first steps), quick start to getting involved
Contribute to discussion pages
browse/comment on issues
add a link to our gallery
More powerful things that can be done with GitHub + Git (overview)
Painful necessities  (Prerequisites for more powerful things with GH + Git)
Authentication credentials
Some knowledge of git
Specific things you can do once you master painful necessities:
Forking a repo, version control
Sharing your work so you can collaborate
Brainstorming ideas:
Do we create a dummy repo that anyone can experiment with? Consider it a “Safe Space for community participation”
BR states as an overall motivator: “A common misconception by users who want to participate in an open source project using Github is that they feel they need to be a technical expert on performing version control with a program like git”

We got word today that the TAC hackathon proposal was awarded. I will reach out about a more reasonable target date for having a draft of out GitHub content in place.

The deadline for the draft GitHub content is November 30.
cc: @ktyle , @brian-rose

Just updating this thread. With #169 merged, we have a coherent outline in place. The big need now is to actually flesh out content for some of these sections in Foundations.
Let's try to discuss strategy for this at the beginning of today's hackathon.

Our current action plan is as follows:

@ktyle is working on Part 1: What is GitHub
@r-ford is working on Part 2: GitHub repositories
@brian-rose is working on Part 4: Issues and Discussions
We are folding Part 3: Basic GitHub Setup into Part 1 since all it will really say is "sign up for a free GitHub account" and point to GitHub docs.
Other sections will be renumbered appropriately.

Once the first few parts are in place, that should set the scene for more advanced parts and we can distribute some of the work around the team.

@SimonGoring perhaps you can view the extended outline that is now live here
and provide feedback that would help us prioritize the remaining GitHub chapters for the TAC hackathons

After reading what @ktyle has written for Part 1, it looks like there's a lot of overlap with what I wrote so far for Part 2. Would it make sense to just combine these?

Is there any part of this I can help with? If anyone no longer has time for part 1, 2, or 4 or wants any amount of assistance please let me know @ktyle @r-ford @brian-rose

Update: we had a meeting today with @ktyle, @clyne, @r-ford, @jukent and myself to strategize on how to get this done quickly. Here's a few things we decided:

We are getting rid of the Part numbers (not needed as the sections are already ordered in the TOC)
@ktyle will shortly be pushing updates to parts 1 and 2. They are pretty much ready to go.
We are organizing lessons about forking, cloning, branching, and opening PRs around a new dummy repo https://github.com/ProjectPythia/github-sandbox. This will let us show very simple examples analogous to forking an existing public repo (like Project Pythia's own production repos) and making small changes.
Simplest lesson could just be fixing a typo in a simple .md file in the sandbox.
We divided up the work for this week as follows:

@r-ford: Issues and Discussions
@ktyle: Cloning and Forking a Repository (this is where the sandbox first gets introduced)
@ktyle: Advanced GitHub Setup (borrowing material from Kevin's class on setting up ssh keys)
@brian-rose: Basic version control with git
@jukent: Git branches
@clyne: Opening a Pull Request on GitHub
@r-ford: Contribute to Project Pythia via GitHub

@ProjectPythia/education please be aware that we are trying to pursue a vastly accelerated review cycle this week to get this work done. It would be extremely helpful if you can follow your notifications and respond quickly to review requests, even if just to say that you don't have time to do the review. Thanks!

#192 has been renamed and contains updates to the first two lessons. We should be able to close #191 as I've incorporated @r-ford 's material for the GitHub Repositories lesson into the former PR.

Ok here's another update with some milestones. I'll list the chapter headings, indicate current status, link the relevant PRs, and check things off when they get merged.

[x] What is GitHub?  merged. By @ktyle
[x] GitHub repositories merged. By @ktyle and @r-ford
[x] Issues and Discussions merged. By @r-ford
[ ] Cloning and Forking a Repository draft in #204 by @ktyle
[ ] Advanced GitHub Setup still to come
[ ] Basic version control with git draft in #208 by @brian-rose
[ ] Git Branches draft in #207 by @jukent
[ ] Opening a Pull Request on GitHub still to come, there is a draft in a google doc by @clyne
[ ] Contribute to Project Pythia via GitHub still to come
[ ] Advanced GitHub Topics we may remove this or change the title

Would advanced topics include how to avoid and resolve merge conflicts?

@jukent Yes definitely!

Probably a whole laundry list of potential advanced topics ...

Please!!!

I noticed that the Contributor’s Guide already has a detailed guide on how to "contribute to Project Pythia via GitHub." Is there anything not already there that we would want in that section of this tutorial? Maybe just a walk through actually submitting an issue or PR with screenshots?

I noticed that the Contributor’s Guide already has a detailed guide on how to "contribute to Project Pythia via GitHub." Is there anything not already there that we would want in that section of this tutorial? Maybe just a walk through actually submitting an issue or PR with screenshots?

There are lots of ways to "contribute" to Pythia, such as participating on the discussion forum. IMHO these lower bar contributions are covered adequately elsewhere. Perhaps this section would be a good place for an example (or two) showing how to contribute actual content (e.g. a correction to a notebook, or even a new notebook)?

We should to a top-to-bottom review all of the content in this book chapter before closing this issue

We should to a top-to-bottom review all of the content in this book chapter before closing this issue

Yes, I created a new issue #214 for this!

All related issues and PRs are now tagged with the "GitHub content" milestone. Hopefully that makes it easier to keep track of things.

Update 4/28/2022, based on discussion at today's EWG meeting, we will finally close this and #214 once all current PRs are merged, and pending one final read-through of the content by myself and @r-ford to look for any more inconsistencies.

I think we can close this lengthy issue. All of the outstanding items are included in #214.
Ok to close @brian-rose, @ktyle, @jukent ?


Best way to hide/show view elements?

Hi, I'm looking for a clean way to conditionally show view elements with motion-kit.
I tried the following in my layout:
def sign_in_style
    title 'Sign In'
    # other button styling stuff
   always do
        hidden=user.signed_in?
   end
end

and calling reapply! when the user's signed_in? status has changed.
However it's not doing anything, even though hidden is a property of a UIView.
Similar code is working to update the text in a label relating to the user's sign in status.
I wound up using RMQ to do this but I'm not happy with the ugliness of the code -- in my screen I made a method:
  def hide_show_buttons
    if user.signed_in?
      rmq(@layout.sign_in).hide
      rmq(@layout.sign_up).hide
      rmq(@layout.sign_out).show
    else
      rmq(@layout.sign_in).show
      rmq(@layout.sign_up).show
      rmq(@layout.sign_out).hide
    end
  end
end

Using a motion_kit helper would be cleaner and remove the code to the layout.  Any suggestions?

Instead of assigning to hidden (which, in this case, is just a local variable), you can just call hidden.
hidden(user.signed_in?)

On Mar 8, 2016, at 2:11 PM, David Hersey<EMAIL_ADDRESS>wrote:
Hi, I'm looking for a clean way to conditionally show view elements with motion-kit.
I tried the following in my layout:
def sign_in_style
title 'Sign In'
# other button styling stuff
always do
hidden=user.signed_in?
end
end
and calling reapply! when the user's signed_in? status has changed.
However it's not doing anything, even though hidden is a property of a UIView.
Similar code is working to update the text in a label relating to the user's sign in status.
I wound up using RMQ to do this but I'm not happy with the ugliness of the code -- in my screen I made a method:
def hide_show_buttons
if user.signed_in?
rmq(@layout.sign_in).hide
rmq(@layout.sign_up).hide
rmq(@layout.sign_out).show
else
rmq(@layout.sign_in).show
rmq(@layout.sign_up).show
rmq(@layout.sign_out).hide
end
end
end
Using a motion_kit helper would be cleaner and remove the code to the layout. Any suggestions?
—
Reply to this email directly or view it on GitHub https://github.com/motion-kit/motion-kit/issues/130.

@dchersey The issue is that Ruby's semantics means you're creating a local var with the name hidden rather than setting the property. You'll want to use the view reference. Try this:
def sign_in_style
    title 'Sign In'
    # other button styling stuff
   always do
        view.hidden=user.signed_in?
   end
end

In RMQ, there's a potentially nicer way to do it too:
      rmq(@layout.sign_in).get.setHidden(user.signed_in?)
      rmq(@layout.sign_up).get.setHidden(user.signed_in?)
      rmq(@layout.sign_out).get.setHidden(!user.signed_in?)

Ha, @colinta, jinx. Your version is nicer.

Thank you both! @colinta's is cleanest syntax, but the view reference from @jamonholmgren is also something I was looking for in the docs.
Liking :+1: motion-kit more and more!


Reduce artificial wait times

e.g. LightModeRestart.tsx:
if (Date.now() - startedAt < 45_000) {
  return
}

When restarting, we also wait 5s
IMO these are no longer necessary, or can be way shorter

This would be better to be based on the state returned by the desktop app endpoint rather than an arbitrary wait time.


New version: PerfectWorld.PerfectWorldArena version 1.0.24011811

This pull request is automatically generated by 🥟 Dumplings in #3154
Microsoft Reviewers: Open in CodeFlow

@wingetbot run


file

for changes in code

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


Feature/pr readme

@854768750  @parijatm
Hi Yishuang and Parijat,
I updated the README.md file in this branch. Please help to go over the updated README.md file.
If any feedback, please let me know.
Yaguang

@854768750  @parijatm
You can read the updated README.md file in the link below.
https://github.com/ALIGN-analoglayout/ALIGN-public/tree/feature/PR_readme/PlaceRouteHierFlow
Yaguang

@parijatm
Hi Parijatm,
After the repo reorg, in P&R README.md, I just refer the docker run to
https://github.com/ALIGN-analoglayout/ALIGN-public/blob/master/build/README.md
Is this fine? If yes, I can merge this branch now.
Thanks.
Yaguang

@parijatm
Also, the usage is updated.
Yaguang


doc: Fix link to Integrations with MQTT Clients.

Summary

The "Integrations with MQTT Clients" link is not working on this page: https://www.thethingsindustries.com/docs/integrations/adding-integrations/
I'm not certain, but believe that this will fix it. The double parenthesis seem like the only difference from the other links on this page and would explain why the redirect is breaking.
...
Screenshots

...
Changes

Remove extra set of parenthesis from link definition.
...

Notes for Reviewers

...
Checklist

[x] Scope: The referenced issue is addressed, there are no unrelated changes.
[ ] Run Locally: Verified that the docs build using make server, posted screenshots, verified external links. Test with HUGO_PARAMS_SEARCH_ENABLED=true if style changes will affect the search bar.
[ ] New Features Marked: Documentation for new features is marked using the new-in-version shortcode, according to the guidelines in CONTRIBUTING.
[ ] Style Guidelines: Documentation obeys style guidelines in CONTRIBUTING.
[x] Commits: Commit messages follow guidelines in CONTRIBUTING, there are no fixup commits left.

Also, FWIW, it would be great if the "Edit on Github" button could alert me of your Contributing guidelines earlier in the workflow. As a first time contributor I was not aware of the commit name format eg doc: Message ...  format until I had already created my commit, and had moved on to make a PR, when it highlights that I should review the contributor guidelines. Just a thought! Thanks for the great & open docs!

@paul121 thank you for your contribution and your feedback, great suggestion!


require DIR . '/vendor/autoload.php';

this is file  not exits.   composer install.

run command, >composer update at the project root directory


Fix linux cli install tab

Link id was misnamed, causing jquery to fail to show the tab on load

Ah! Nice catch!


sift-cli fails at saltstack

sift install fails at saltstack apparently when the username and/or hostname of the system is "sift", if I understand correctly. See the transcripts below for more details.
Can provide the full saltstack.log file if needed.
$ sudo sift install
><EMAIL_ADDRESS>> sift-version: notinstalled

> downloading v2017.25.0
>> downloading sift-saltstack-v2017.25.0.tar.gz.asc
>> downloading sift-saltstack-v2017.25.0.tar.gz.sha256
>> downloading sift-saltstack-v2017.25.0.tar.gz.sha256.asc
>> downloading sift-saltstack-v2017.25.0.tar.gz
> validating file sift-saltstack-v2017.25.0.tar.gz
> validating signature for sift-saltstack-v2017.25.0.tar.gz.sha256
> extracting update sift-saltstack-v2017.25.0.tar.gz
> performing update v2017.25.0
>> Log file: /var/cache/sift/cli/v2017.25.0/saltstack.log

>> Completed with Failures -- Success: 0, Failure: 1

$ tail -n 2 /var/cache/sift/cli/v2017.25.0/saltstack.log
- "Detected conflicting IDs, SLS IDs need to be globally unique.\n    The conflicting
  ID is 'sift' and is found in SLS 'base:sift.repos.sift' and SLS 'base:sift.config.user.user'"

$ uname -a
Linux sift 4.8.0-56-generic #61~16.04.1-Ubuntu SMP Wed Jun 14 11:58:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Diogo

This was a result in how the salt states were compiled using some dynamic information from the environment, like the username and hostname.  I've fixed this in the latest pre-release https://github.com/sans-dfir/sift-saltstack/releases/tag/v2017.25.1-rc5
You can upgrade to this using sift upgrade --pre-release
This should become a latest release this week if you'd rather wait.

Cool, thanks :-)


Fix kubectl get documentation

fix list of valid resource types
fix showing template
It was fainling with following error message:
Liquid Warning: Liquid syntax error (line 68): [:dot, "."] is not a valid expression in "{{.status.phase}}" in docs/user-guide/kubectl/kubectl_get.md

This change is

Ah, this is a  generated file. I will fix it in the original place.

Reopening. I pushed part of the fix to kubernetes master branch kubernetes/kubernetes#34225


disallow duplicate relations

if a relation type and the time values are the same to an existing one it should not be possible to create the relation

remove already existing duplicated relations
something like UniqueConstraint on source, target, relation type might break current merging mechanism
maybe just prevent duplicated relation creation via forms?

another benefit would be that duplicates happen more easily with the new pmb if one accidently presses the "save"-button twice

This needs further refinement. Currently it disallows duplicate relations of the same type. But it should check for the dates as well:
ino dates / no dates or exact same dates should be forbidden, but of course a relation with different dates should be possible. e.g. PersonX stays in Meran in 1892 and 1895 should be allowed

hm, this is possible, see
https://pmb.acdh.oeaw.ac.at/apis/entities/entity/person/167791/detail
or am I missing something here?

Yes, sorry! It was an (honest) mistake in my part


Mark open file in project browser

In https://github.com/into-cps/intocps-ui/commit/dc45b5bf59174d92e3e699205d74c85394cb72a3 mark open file in project browser was implemented.
It seems like it is broken in the commit https://github.com/into-cps/intocps-ui/commit/92f0ef31312ebb620e35259f6f5a16d8cb59fc0a
The use case is: It is difficult to see which file is open in the main window. Therefore the open file should be clearly marked in the project browser. This can be done by using the select function on the tree. Previous issue: #67
@FlorianLapschies I have assigned it to you, as you might have some idea of what has broken it in the commit https://github.com/into-cps/intocps-ui/commit/92f0ef31312ebb620e35259f6f5a16d8cb59fc0a

Hi @FlorianLapschies
I will take over this one and move the functionality to a different function.

I plan on using another instance of the w2ui sidebar to display a tree of model components and their outputs. After selecting a number of nodes others do not get deselected and remain highlighted.
This behaviour can also be observed when adding a tree with static content.

How is this related to the project browser?

Shouldn't it be a new issue?
Agreed.


build pipeline features

Parent issue for figuring out high-level build process for contract systems.

Solidity preprocessing: there are a few compelling use cases for c-style preprocessor macros. You could actually just use gcc for this.
Singleton contract awareness:  The deploy process should be aware of contracts which are only deployed once within a blockchain. These can be categorized "external apps" (eg namereg) and "factory contracts"
sufficiently expressive declarative build format: is a contract dependency graph enough?
Better testing:  Use the evm as one possible test environment for contract tests. Maybe js-based tests should be restricted to frontend integration testing

Also I would love to drop the dependency on ethertdd (pyethereum is not really supported)

Added this proposal:  https://github.com/iurimatias/embark-framework/wiki/new-contract-build-and-deploy-sequence-proposal


fix: foreign key generation for pg SQL DDL

Refs: https://github.com/metarhia/metasql/issues/6

Landed in https://github.com/metarhia/metasql/commit/13365e0093c0ee5af383eb90f1e273fa1cbd0bd0


[TaxonomyPicker] Sometimes term path contains "termsetName" sometimes not in "onChange" event

Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.14.0   ]
If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.
Expected / Desired Behavior / Question
The problem is at "onChange" event in TaxonomyPicker
In some scenario the path of term contains termset name while sometimes it doesn't have.
I think the term path should not have termset name.
Observed Behavior
If you choose term from panel, then its term path won't contain termset name

However if you pick up term from the suggestion , then its path will start with termset name

Also you will notice that the title of suggestion item contain double termset name

I debugged a bit on source code, terms from the suggestion are generated by convertSuggestTermToPickerTerm method which add full path.

Steps to Reproduce
You can follow https://pnp.github.io/sp-dev-fx-controls-react/controls/TaxonomyPicker/ to add TaxonomyPicker in webpart or extension to reproduce this issue
I can try to fix it.
Thanks!

Merged and will be part of the next release, many thanks @wuxiaojun514


App Killed : Notification Tapped Not Detected.

Hi All,
May i know how to detect notification tap event if app is killed.
Detail Scenario: Suppose a new notification that is right now in notification tray is tapped how to detect that and store notification data in the application state suppose redux for deep linking.
Please help us on this as we are facing this issue
infobip lib version :2.2.0
Thanks & Regards
Rohit

Hi @Rohit-Surawat
As I understood it related to this issue: https://github.com/infobip/mobile-messaging-react-native-plugin/issues/33
Let's discuss this issue at related thread

Hello @Rohit-Surawat,

At first better to update plugin to the latest version, we've implemented some bug fixes for receiving notification tapped event.
Use "notificationTapped" library event - Library Events

Was fixed in 5.0.1 version


Allow #comment lines in macros. Updated the Macros documentation.

Comments would be rather handy when some complex macros exceed 500 lines.
Also updated the Macros doc with LOOP.

Hey @Jazzmax are you still working with macros in NXBT? I ended up getting to current release of it working but I noticed that the macros run inconsistently. Was hoping if you found any solutions to this problem.


Apply migrations that are before the latest version on upgrade

Hello,
We are using FluentMigrator for a while in our project now, and we had to write a few tools to help us speed the development, and I was curious If it would be helpful to have them in here.
We have created a few ExternalTools in visual studio that are used by dev team to upgrade and downgrade the database. Our application never runs migrations
One of the most important features was to do detect if there are migrations that are unapplied and before our latest version, if so, downgrade to a version before the earliest unapplied migration and only then do the upgrade. (All in one step). This was very helpful for development, and only on development, as we don't want to do downgrade on production environment.
Another one was to downgrade to a specific version including it. We created an external tool that would get the selected text(version number) and downgraded all migrations including the one selected. Our tool basically finds a migration before the one that you want to downgrade and calls downgrade migration for that. This way you don't need to search for yourself for another migration just to downgrade to a specific one.
Last it was another external tool that would generate the timestamp
While there are are things that we wanted to implement, like: when generating output sql(instead of having a comment saying what file was executed to have the actual content), that way we could really generate an sql that could be executed without fluent migrator.
As I want to give back something to the community, with what do you think I should start from this list?

One of the most important features was to do detect if there are migrations that are unapplied and before our latest version, if so, downgrade to a version before the earliest unapplied migration and only then do the upgrade. (All in one step). This was very helpful for development, and only on development, as we don't want to do downgrade on production environment.

What would be the reasoning behind this ? As by default all not applied migrations are run by fluentmigrator even if they come before the last version applied.

Another one was to downgrade to a specific version including it. We created an external tool that would get the selected text(version number) and downgraded all migrations including the one selected. Our tool basically finds a migration before the one that you want to downgrade and calls downgrade migration for that. This way you don't need to search for yourself for another migration just to downgrade to a specific one.
We downgrade until that one, what would be the use case ?

Last it was another external tool that would generate the timestamp
We have a resharper file template? what would you prefer


CPP/taskcpp/FibonacciSeries.cpp

Complete the task and attach a screenshot of your code and output. You may take the input yourself according to the task.

Hello....Please Assign this to me

Please Assign this to me


Issue with VSCode launch args

Describe the bug
Changing the VSCode python.terminal.laucnhArgs from:
[ "-m", "abqpy", "cae", "--gui=True" ]
to:
[ "-m", "abqpy", "cae", "--gui=False" ]
leads to the script not working.
Error Code: AttributeError: 'Model' object has no attribute 'Coupling'
See screenshots for detailed Error message and messages on successful run.
To Reproduce
Steps to reproduce the behavior:

Start the script (mwe.py) with the specified launch args.
Click on '....'
Scroll down to '....'
See error

Reproducible Code
import abaqusConstants as C

from abaqus import mdb, session

from driverUtils import executeOnCaeStartup

executeOnCaeStartup()

session.journalOptions.setValues(replayGeometry=C.INDEX, recoverGeometry=C.INDEX)

class SimulationModell():
    def __init__(self, name):
        self.model_name = name
        self.model = mdb.models[self.model_name]

    def create_wire_materials(self):
        material_name = 'Copper'

        conductor_material = self.model.Material(name=material_name)
        conductor_material.Elastic(table=((110000, 0.3), ))

        self.conductor_section = self.model.HomogeneousSolidSection(
                material=material_name,
                name='Conductor-Solid',
                thickness=None
        )

    def create_wire_geometry(self):
        sketch = self.model.ConstrainedSketch('__profile__', sheetSize=200)

        sketch.rectangle((0, 0), (1, 1))

        p = self.model.Part(dimensionality=C.THREE_D, name="Part-1", type=C.DEFORMABLE_BODY)
        self.part = p

        p.BaseSolidExtrude(sketch, 1)

        self.cell_set = p.Set("AllCells", cells=p.cells[0: len(p.cells)])

    def define_and_create_mesh(self):
        self.part.generateMesh()

    def create_assembly(self):
        a = self.model.rootAssembly
        p = self.part
        a.Instance("Part-1-inst", p, dependent=C.ON)

        self.rp_1 = a.ReferencePoint((0, 0, 2))
        self.rp_1_set = a.Set("RP-1-SET", referencePoints=(a.referencePoints[self.rp_1.id], ))
        a.features.changeKey(fromName=self.rp_1.name, toName="RP1")

        self.rp_2 = a.ReferencePoint((2, 0, 0))
        self.rp_2_set = a.Set("RP-2-SET", referencePoints=(a.referencePoints[self.rp_2.id], ))
        a.features.changeKey(fromName=self.rp_2.name, toName="RP2")

    def create_coupling(self):
        self.model.Coupling(
                controlPoint=self.rp_1_set,
                couplingType=C.KINEMATIC,
                influenceRadius=C.WHOLE_SURFACE,
                name="Coupling1",
                surface=self.rp_2_set
        )

    def setup(self):
        self.create_wire_materials()
        self.create_wire_geometry()
        self.define_and_create_mesh()
        self.create_assembly()
        self.create_coupling()

def generate_model(model_name="MWE-Model-1"):
    mdb.Model(model_name)
    Modell = SimulationModell(model_name)
    Modell.setup()

def main():
    generate_model()

if __name__ == "__main__":
    main()

Expected behavior
I would expect the script to run without error with either args.
Screenshots

This seems to be a bug of abaqus instead of abqpy, abaqus cannot creat the Coupling constraint in the noGUI mode:

Try importing all the cae modules:
from caeModules import *

Maybe it is because that these modules are imported by default when opening Abaqus/CAE

Thank you very much for the quick reply.
Importing all cae modules did solve the issue.


Getting started requires non-trivial Prometheus knowledge

We got some great feedback from a new user, @bboreham, who said:

The Prometheus Getting Started page tells me to write a prometheus.yml file which is essentially identical to the one that came in the distribution (where "distribution" is the tarball provided at https://prometheus.io/download/)

and

The Configuration page linked to in the cortex README is too complicated; not suitable for "getting started".

(I've paraphrased for context, adding links as appropriate).
Given that we hope to provide something useful to people without deep Prometheus expertise, we should think about how we can provide a smoother initial experience who are unfamiliar with it.
One possible solution would be to provide a container with some preset configuration.

This doesn't strike me as a bug

This (as originally envisaged) has now been fixed in Weave Cloud.


Update to inliner cost model information.

This adds the call expr that is requesting inlining to
the information provided to the cost model. This is so it
is possible to e.g. decide to inline based on the location of
the call with respect to the rest of the block/IR.

This has a conflict with master now.

@seibert thanks, resolved.

@sklam thanks for the review, fixes in c9738aa.


idea: autopickle

currently you have to manage pickles with explicit code, or manual steps.  we could automate this.
r.RACF(irrdbu00='my.unload', autopickle='/tmp', prefix='')
executes
if autopickle:
  if emptypath(autopickle) or last_update(an_autopickle_file)<last_update(irrdbu00)):
    self.parse(irrdbu00)
    self.save_pickles(path=autopickle, prefix=prefix)
  else:
  self.load_pickles(path=autopickle, prefix=prefix)  # move code out of __init__ into separate method

this would benefit IRRDBU as well as DCOLLECT code, I think.

implemented in 0.9.1
When you find that pickles are a time-saver, but you forget to refresh the pickles every time a new unload file is created, you can use the auto-pickles function::

r = RACF(irrdbu00='/path/to/irrdbu00', pickles='/tmp', prefix='prodsys-', auto_pickle=True)

This compares the timestamp of the pickles in the indicated directory with the timestamp of the unload file.  If the unload is newer, or there are no matching pickles, the unload is read and the pickles are written.  Next time, when the unload is older than the pickles, they are read.  Automatically.


Start-message does not appear in /quest

What is your Quests version / build number (do not say "latest")?
5.1.4
Describe the problem and how to replicate it.
When the player has an open quest and later enters /quest to find out what his task is, only what he has to bring will be shown, but the text of the task (start-message) will not be displayed.
Any console errors to share?
no errors

If applicable, can you provide an example quest from quests.yml?
custom2:
    name: Test
    ask-message: Welcome
    finish-message: Its done
    npc-giver-uuid: e150443d-d1fa-44fb-a88c-53f55e69016c
    requirements:
      quests:
      - custom1
    stages:
      ordered:
        '1':
          items-to-deliver:
          - ==: org.bukkit.inventory.ItemStack
            v: 3955
            type: COAL
            amount: 64
          - ==: org.bukkit.inventory.ItemStack
            v: 3955
            type: CHARCOAL
            amount: 64
          - ==: org.bukkit.inventory.ItemStack
            v: 3955
            type: FURNACE
            amount: 8
          - ==: org.bukkit.inventory.ItemStack
            v: 3955
            type: TORCH
            amount: 32
          npc-delivery-uuids:
          - e150443d-d1fa-44fb-a88c-53f55e69016c
          - e150443d-d1fa-44fb-a88c-53f55e69016c
          - e150443d-d1fa-44fb-a88c-53f55e69016c
          - e150443d-d1fa-44fb-a88c-53f55e69016c
          delivery-messages:
          - Thanks.
          - Thanks.
          - Thanks.
          - Thanks.
          start-message: Give me 64x coal, 64x charcoal, 8x furnace, 32x torch
          complete-message: Thank you.
    rewards:
      items:
      - ==: org.bukkit.inventory.ItemStack
        v: 3955
        type: WOODEN_PICKAXE
      - ==: org.bukkit.inventory.ItemStack
        v: 3955
        type: TNT
      - ==: org.bukkit.inventory.ItemStack
        v: 3955
        type: TORCH
        amount: 4
      money: 50
      quest-points: 1
      commands:
      - clv addExp 20 <player>
    planner:
      override: false
    options:
      allow-commands: true
      allow-quitting: true
      ignore-silk-touch: true
      use-parties-plugin: true
      share-progress-level: 1
      same-quest-only: true
      share-distance: 0.0
      handle-offline-players: false
      ignore-block-replace: true

As far as I know, the /quest command has never shown the start/ask message. It might do so with QuestsGUI?

I'll consider it, but am closing this as it's not a Bug.


Example client implementation

This this library as a gem.
# Gemfile
gem 'daimon_skycrawlers'

And put some customized processors:
class YourProcessor < DaimonSkycrawlers::HTTPResponseHandler
  def run
    # Write service specific code.
  end
end

This this library as a gem.
# Gemfile
gem 'daimon_skycrawlers'

And put some customized processors;
class YourProcessor < DaimonSkycrawlers::HTTPResponseHandler
  def run
    # Write service specific code.
  end
end

It may other way is better than the above one.
Such as:
DaimonSkycrawlers::HTTPResponseHandler.on_data do
  # Write you code
end

It hides perfectqueue API from use land.

Now working on https://github.com/bm-sms/daimon-skycrawlers/pull/16

テスト is example !


Boost control

Hello! So, with sway + waybar running on Wayland as per this issue #16 , I got the missing tray icon rendered correctly. Not sure what did that.
However, when I tried enabling/disabling the CPU frequency boost, nothing happens. Upon checking journalctl -f, I got the following error,
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]: Traceback (most recent call last):
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]:   File "/usr/lib64/python3.10/codecs.py", line 310, in __init__
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]:     IncrementalDecoder.__init__(self, errors)
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]: RecursionError: maximum recursion depth exceeded
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]: During handling of the above exception, another exception occurred:
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]: Traceback (most recent call last):
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]:   File "/usr/local/bin/asusctltray", line 85, in inner
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]:     callback(self, widget)
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]:   File "/usr/local/bin/asusctltray", line 373, in _disable_boost
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]:     if not self._is_boost_enabled():
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]:   File "/usr/local/bin/asusctltray", line 357, in _is_boost_enabled
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]:     data = open(self.boost_ctrl["path"], "r").read()[:-1]
Jul 16 06:19:55 rogStrixG15 /usr/libexec/gdm-wayland-session[53233]: RecursionError: maximum recursion depth exceeded while calling a Python object

May I know what should be done to fix this? Your help would be greatly appreciated, and thanks again for developing asusctltray.

If ever anyone encounters this same issue, I was able to resolve this by installing lxpolkit,
$ sudo dnf install lxpolkit
$ whereis lxpolkit
/usr/bin/lxpolkit

Then, I let sway execute it (set in ~/.config/sway/config),
exec /usr/bin/lxpolkit

Now, I can switch between CPU frequency boost enabled/disabled.

I was just about to try and troubleshoot this, nice job! Actually, I should add a check for pkexec being installed, because it's technically not a hard dependency. Thanks!

Thanks too! Actually, my config was missing a policy kit authenticator when I moved from GNOME to SwayWM + Waybar for Fedora 36. I'm still setting up my machine, which I purchased 2 weeks ago. Right now though, I'm almost done setting it up. Just cosmetics left for Waybar.


Disable spec fetching retries which are not functioning properly

Summary
While investigating a flaky bundler 2 test I found with the latest bundler update the retries are not idempotent and can lead to an incorrect result. This works around the issue for now by not retrying.
We could add a manual retry to this but in our current test cases of 40x errors a retry is actually not helpful. I think it would be better to observe if not doing a retry leads to a noticeable number of recoverable errors before adding any additional complexity here. We could also end up restoring the built in retries in a future bundler update although I've found it's lacking features like backoff and detecting 400 errors as not retryable.
Issue details
We were previously calling specs_with_retry(gem_names, source) which wraps specs(gem_names, source) with a retry mechanism.
https://github.com/rubygems/rubygems/blob/4e812b9ca55745269e1e7810e37acccc26c1d886/bundler/lib/bundler/fetcher.rb#L116-L121
On the first try the 400 response from our mocks would result in the expected Bundler::HTTPError which the retry mechanism caught and retried. However, on the 2nd retry the call to specs(gem_names, source) succeeded and returns an empty array which is not expected. This behavior was also inconsistent depending on whether others tests have run beforehand which makes me think might be involved here.
edit: I've narrowed down the 2.3.5 release of bundler as the first version that caused this issue: https://github.com/rubygems/rubygems/blob/3.3/bundler/CHANGELOG.md#235-january-12-2022

I've narrowed down the 2.3.5 release of bundler as the first version that caused this issue: https://github.com/rubygems/rubygems/blob/3.3/bundler/CHANGELOG.md#235-january-12-2022

@deivid-rodriguez I know this is old, but stumbled across while spelunking on another issue... any idea if this is expected bundler behavior (ie, not a workaround) or a bug?

I think (because of being introduced by Bundler 2.3.5) this is probably the same underlying problem we initially workaround through https://github.com/dependabot/dependabot-core/pull/5510, and later fixed upstream.
But it's also true that Bundler retries are lacking the features mentioned above: detecting some network errors as non retryable and exponential backoff, so we probably want to leave things as they are.


Support custom formatters in custom request/response headers

Envoy's standard command operators can be used in the value for custom request/response headers. Please also support custom formatters (or custom command operators?) in addition to the built-in formatters.
Custom formatters are already supported in the access log configuration (see "formatters" in config.core.v3.SubstitutionFormatString), so maybe this can be implemented in a similar way.
Example:
route_config:
  name: local_route
  request_headers_to_add:
  - header:
    key: "x-my-header"
    value: "%MY_CUSTOM_COMMAND_OPERATOR%"

sounds reasonable.

@wbpcode  Can I work on this task?

since https://github.com/envoyproxy/envoy/pull/21932, we are using substitution formatter only in the route config as well. I think we can close this issue.

I think subsitituition formatter didn't resolve this problem directly?

@wbpcode Can I work on this task?

sorry for the delay, I missed this message. 😞
Any contributions are welcome, thanks.

I think subsitituition formatter didn't resolve this problem directly? cc @vikaschoudhary16

I said resolved looking at these lines
Also I tried setting custom headers in route like following:

Looks like I am missing something for sure.

I think we still need some addtional API to add custom formatter support to the headers_to_add.


WIP: Add logging support to build script

This is a continuation of #21067. This approach passes a "task" object to the scripts, instead of requiring they extend one. This makes it easier to integrate, as there are no more magic members to worry about.
Right now I just want to get a sense of how it looks on CI logs. The change is not complete. I'd probably also make it use a different log format depending on if it's CI or not, as it looks quite weird without highlighting and group collapsing.

Still needs

Work on concurrent tasks / tracking 'active' task.
Smarter Azure CI aware output (formatting looks bad on non-CI display, and Azure doesn't support rewriting lines like the snapshot progress indicator tries to do).

Example output:

I like this approach a lot more than the extend one though. It's a lot closer in spirit to  #12410 while still providing the logging tools I want.

The implementation is subject to change, this PR was opened to experiment with the results in CI. For example, it is no longer necessary to separate the tasks into a separate tasks folder because they work fine as regular functions too now (because of the DefaultTask default param). The TaskManager may also be redundant, but I'd need to get working parallel task and custom prefix support before deciding whether to drop it. Identifying parallel tasks should be possible by detecting if an unexpected task is logging output, or a parallel: true flag as a parameter to task.start. The result would be to prefix the task stack to each message

Updated sample output (now with more Azure compatible grouping and timing information for each task):

Thanks for the PR!
That would definitely be a useful addition to our build process. However, it is not something that is within the scope that we have envisioned for Atom. We are not planning to make any major improvements to our build process for the time being. We are focused on fixing user-facing bugs. For that reason, I'm going to close this.
Thanks again for contributing to Atom :+1:


(question) How should I name a git-hub package when there's already one in nixpkgs?

I'd like to package @ingydotnet's [git-hub] ingydotnet/git-hub for Nix, but @sociomantic-tsunami's [git-hub] sociomantic-tsunami/git-hub is already packaged and occupying the name "git-hub". What name should I use for ingydotnet/git-hub?

My suggestion for package names:
ingydotnet-git-hub
sociomantic-tsunami-git-hub
(I guess there is no other reasonable solution when two projects have same name and same intent...)

I might suggest putting git-hub in the front and then:

git-hub-2
git-hub-alternate
git-hub-ingydotnet
git-hub-@ingydotnet
git-hub-<ingydotnet>

or somesuch. I have no idea what characters are supported, but git-hub-@ingydotnet definitely conveys that ingydotnet is a person.
Just my 2 pennies...

My preference would be git-hub-ingydotnet and git-hub-sociomantic-tsunami.
On another note, are we allowed to simply rename the existing git-hub, or is there a way to make it an alias for git-hub-sociomantic-tsunami with a deprecated warning?

On another note, are we allowed to simply rename the existing git-hub, or is there a way to make it an alias for git-hub-sociomantic-tsunami with a deprecated warning?

@solson: I don't know the answer, but the Racer package was recently renamed from racerRust to rustracer, and I wish there'd been a message saying anything more than that racerRust no longer existed.

We have a standard way for aliases (pkgs/top-level/aliases.nix), but no good way for warnings yet.

(triage) can this be closed?


[Question]: [Workflow]How to use multithreading in send_event function

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
Here's my code
from llama_index.core.workflow import (
    Context,
    Event,
    StartEvent,
    StopEvent,
    Workflow,
    step,
)

class Event0(Event):
    param0: str

class Event1(Event):
    param1: str

class Event2(Event):
    param2: str

class Event3(Event):
    param3: str

class MyWorkflow(Workflow):
    @step
    async def run_event0(ctx: Context, ev: StartEvent) -> Event1 | Event2 | None:
        ctx.session.send_event(Event0(param0="event0"))
        ctx.session.send_event(Event1(param1="event1"))

        return None

    @step
    async def run_event1(ctx: Context, ev: Event1) -> Event3:
        # do something
        return Event3(param3="event3")

    @step
    async def run_event2(ctx: Context, ev: Event2) -> Event3:
        # do something
        return Event3(param3="event3")

    @step
    async def run_event3(ctx: Context, ev: Event3) -> StopEvent | None:
        # do something
        events = ctx.collect_events(ev, [Event3] * 2)
        if events is None:
            return None

        # do something with events
        return StopEvent()

I want to run run_event1 and run_event2 simultaneously

You can't, but you can run concurrently, assuming your functions are properly async and use await, using the num_workers param that dosu is talking about

You can't, but you can run concurrently, assuming your functions are properly async and use await, using the num_workers param that dosu is talking about

It doesn't work，I use the below code:
import asyncio
import time

from llama_index.core.workflow import (
    Context,
    Event,
    StartEvent,
    StopEvent,
    Workflow,
    step,
)

class Event1(Event):
    param1: str

class Event2(Event):
    param2: str

class Event3(Event):
    param3: str

class MyWorkflow(Workflow):
    @step
    async def run_event0(self, ctx: Context, ev: StartEvent) -> Event1 | Event2 | None:
        ctx.session.send_event(Event1(param1="event1"))
        ctx.session.send_event(Event2(param2="event2"))

        return None

    @step(num_workers=2)
    async def run_event1(self, ctx: Context, ev: Event1) -> Event3:
        # do something
        time.sleep(5)
        return Event3(param3="event3")

    @step(num_workers=2)
    async def run_event2(self, ctx: Context, ev: Event2) -> Event3:
        # do something
        time.sleep(5)
        return Event3(param3="event3")

    @step
    async def run_event3(self, ctx: Context, ev: Event3) -> StopEvent | None:
        # do something
        events = ctx.collect_events(ev, [Event3] * 2)
        if events is None:
            return None

        # do something with events
        return StopEvent()

async def main():
    wl = MyWorkflow()
    t0 = time.time()
    await wl.run()
    print(f"Elapsed time: {time.time() - t0} seconds")

if __name__ == "__main__":
    asyncio.run(main())

If it works, it should output for about 5 seconds, but output for 10 seconds.

@logan-markewich
As the docs examples
If replace await asyncio.sleep(5) with time.sleep(5)，It will output for about 5 seconds.
However, the logic in my function really does consume concrete time, and it should be equivalent to time.sleep rather than await asyncio.sleep.

Without it being truly async, then there's no option (yet) for multithreading. Its only concurrency

Multithreading usually causes so many issues, edge cases, and hard to debug code. Probably it will get implemented at some point but not right now


Support for embedding chat in tab bar

This is what I get currently:

Don't see a way to customize this behaviour?

Maybe this helps: https://github.com/badoo/Chatto/issues/51#issuecomment-197090698


Add masked language modeling to community examples

Add masked language modeling (based on Transformers) to community examples
What does this PR do?
Adds links to lightning-language-modeling repo (for fine-tune masked language model with Pytorch Lightning and Huggingface Transformers) to community examples.
I can't find example of using lightning to do language modeling out there so I made one myself. It is based on Transformers examples/language-modeling and lightning's examples. I am new to lightning but tried to follow the best practices in lightning's doc. I appreciate feedback to help me better learn to use lightning.
Fixes # (issue)
Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
[x] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] If you made a notable change (that affects users), did you update the CHANGELOG?

PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In in short, see following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[x] Make sure the title is self explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified; Bugfixes should be including in bug-fix release milestones (m.f.X) and features should be included in (m.X.b) releases.

Did you have fun?
Yes.

This is a neat little example, and very clean!
Could you by any chance simplify the install to just a pip install -r requirements.txt? this will make life easier for install. I think most of those libraries have whls for most python versions

This is a neat little example, and very clean!
Could you by any chance simplify the install to just a pip install -r requirements.txt? this will make life easier for install. I think most of those libraries have whls for most python versions

Thanks. Have done the change.

I really like the repo @yang-zhang! Great job :)
For your validation step here, I'd suggest adding the sync_dist=True flag in self.log. This will ensure on multiple processes validation is correctly synced across them:
https://github.com/yang-zhang/lightning-language-modeling/blob/main/language_model.py#L82
cc @tchaton @Borda

Thank you! Updated.

Nice!
BTW LightningDataModule doesn't have save_hyperparameters() yet?
https://github.com/yang-zhang/lightning-language-modeling/blob/15f513cdeb8a448d4bcade3f427257657629f67e/language_model.py#L18-L29

Great work @yang-zhang! Another improvment i'd suggest is to use DataModule you wrote, instead of the processing in data.py See this example for reference: https://github.com/nateraw/lightning-pretrain-hf/

Nice!
BTW LightningDataModule doesn't have save_hyperparameters() yet?
https://github.com/yang-zhang/lightning-language-modeling/blob/15f513cdeb8a448d4bcade3f427257657629f67e/language_model.py#L18-L29

Great work @yang-zhang! Another improvment i'd suggest is to use DataModule you wrote, instead of the processing in data.py See this example for reference: https://github.com/nateraw/lightning-pretrain-hf/

Thank you. Do you mean moving the functionalities in data.py into the DataModule?

I tried to find save_hyperparameters() for LightningDataModule but couldn't. Not sure if I missed it or it doesn't exist?

yeah, it doesn't exist yet. It's WIP https://github.com/PyTorchLightning/pytorch-lightning/pull/3792


USB Ports Turn Off, but don't Passthrough

Title says it all, finally got this to turn off the ports and open the mac vm, but do nothing when anything is plugged into the ports when in the mac home screen. I have tried to do the KVM manual pass through a couple of days ago and I still am having the exact same problem now. The included picture is the screen the verbose boot hangs at for the longest. When clover boots up, the phone screen lights up indicating it's charging, but when I select the KVMDisk and the verbose boot starts, the ports turn off and stay off

I see you put a bunch of tags on here but don't know what's causing the problem. Is there some sort of debbugging or logs I can provide you with? Anything u need just let me know, I've been trying to get a linux vm working for Checkra1n for close to a week now

I have the same problem ports not working and I’m using a keyboard lol nightmare I’m on the xUbuntu screen but nothing else happening

Title says it all, finally got this to turn off the ports and open the mac vm, but do nothing when anything is plugged into the ports when in the mac home screen. I have tried to do the KVM manual pass through a couple of days ago and I still am having the exact same problem now. The included picture is the screen the verbose boot hangs at for the longest. When clover boots up, the phone screen lights up indicating it's charging, but when I select the KVMDisk and the verbose boot starts, the ports turn off and stay off

Yeah my QEMU is also stuck on the EXACT same line for like 30 minutes! When I get into macOS I can’t do anything because no USB connections can pass through!

Is there not something you can do with the terminal? For me it shows
(qemu) so I know I can use qemu commands to change USB settings.
Does anyone know which version of qemu is even running, so that I can look at the documentation to see what command to use??
Also what about the clover boot? Maybe you can change the commands from there?


workbench.action.navigateBack does not work within notebooks

Applies To

[X] Notebooks (.ipynb files)
[ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
When navigating through code from within a notebook using "Go to definition (F12)" (editor.action.revealDefinition), I can not jump back to where I started (workbench.action.navigateBack). Instead it will jump to somewhere else from the jump history. It seems that no entry in the jump history is made. I use Pylance as the language server.
This can be reproduced with a fresh install without any settings changed or plugins installed other than the jupyter extension and all its dependencies. Also happens in code-insiders. Note: When copying the code into a regular python file, everything works as expected.
VS Code Version
1.86.2
Jupyter Extension Version
2024.1.1
Jupyter logs
Visual Studio Code (1.86.2, undefined, desktop)
Jupyter Extension Version: 2024.1.1.
Python Extension Version: 2024.0.1.
Pylance Extension Version: 2024.2.2.
Platform: linux (x64).
Workspace folder ~/testprogs/jupyter, Home = /home/hauke.sandmeyer
09:53:32.169 [info] Start refreshing Kernel Picker<PHONE_NUMBER>169)
09:53:32.175 [info] Using Pylance
09:53:32.190 [info] Start refreshing Interpreter Kernel Picker
09:53:33.667 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher  (Python Path: /usr/bin/python3, Unknown, 3.10.12) for '~/testprogs/jupyter/jump.ipynb' (disableUI=true)
09:53:33.852 [warn] Failed to get activated env vars for /usr/bin/python3 in 499ms
09:53:33.853 [warn] Failed to get activated env vars for /usr/bin/python3 in 165ms
09:53:33.921 [info] Process Execution: /usr/bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_BASE);print("USER_BASE_VALUE");"
09:53:33.974 [info] Process Execution: /usr/bin/python3 -m pip list
09:53:33.987 [info] Process Execution: /usr/bin/python3 -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
09:53:34.001 [info] Process Execution: /usr/bin/python3 -m ipykernel_launcher --f=~/.local/share/jupyter/runtime/kernel-v2-53629MNtPWXVZbV8h.json
    > cwd: ~/testprogs/jupyter
09:53:34.001 [info] Kernel process 53867.
09:53:34.487 [info] Registering Kernel Completion Provider from kernel Python 3.10.12 for language python
09:53:34.507 [info] Process Execution: /usr/bin/python3 ~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-linux-x64/pythonFiles/printJupyterDataDir.py
09:53:35.121 [info] End refreshing Kernel Picker<PHONE_NUMBER>169)

Coding Language and Runtime Version
Python 3.10.12
Language Extension Version (if applicable)
Python extension: 2024.0.1,  Pylance 2024.2.2
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local

Thanks for filing this issue,
Unfortunately I'm unable to replicate this issue.
I have the following code
from pandas import DataFrame

pd_df = DataFrame(dict(abcdhello=[1,2,3,4], b=[5,6,7,8]))

I go to definition of DataFrame
Then use the command Go back from the command palette and it works

Please can you share a minimal noptebook (with a simple function or the like) and the exact steps (or a screen recording).

Hi,
I attached three screen recordings showing the issue. The first two serve as minimal examples. In the first recording, everything stays withing a notebook. In the end, the cursor ends up at my_func() instead of another_func(). In the second recording, the definition is in a different file and the cursor ends up in the middle between those two function calls. I read somewhere, that a new jump entry is only made, if the positions differ by more than 5 lines. This is why I used 7 lines between those two function calls.
The last example shows a bit more complex notebook, where the Go back command jumps to a completely different location
https://github.com/microsoft/vscode-jupyter/assets/26244423/3c41acef-4e84-407b-9ef8-ba4c015be72c
https://github.com/microsoft/vscode-jupyter/assets/26244423/c259c6d7-efd1-4989-8490-7044b92b179d
https://github.com/microsoft/vscode-jupyter/assets/26244423/a4c3c219-a83f-4951-96bb-eebe5acf2f88
notebook.zip

Hey @DonJayamanne, this issue might need further attention.
@hsandmeyer, you can help us out by closing this issue if the problem no longer exists, or adding more information.

The issue still exists. Moreover I could find friends and colleagues confirming the issue. It happens under ubuntu as well as arch linux.

I'm very sorry that I completely missed this issue.
Thank you for the screen recording, that helps and clearly shows the problem.
Are you still running into this issue with the lates versions of VS Code?
I've tried this in Ubuntu and it works as expected, possible this has been fixed now.
Please can you try this once again.

Yes,
I am still running into that issue.
It is surprising for me that you cannot reproduce the issue. There is really nothing special about it. A fresh install on a standard ubuntu triggers it for me. Are you sure that you did not produce an entry in the navigation history by a different action? VSCode seems to make entries into the navigation history in many situations. E.g. clicking on a line might already produce an entry. So, you need to make sure no entry in the navigation history has been made otherwise. The easiest way is to move the cursor using the arrow keys and then pressing F12 to jump to the definition


README links to CONTRIBUTE.md instead of CONTRIBUTING.md

Wow, that title looks really angry.

:) Fixed :+1:


Cc862 pricing changes analysis

See CartoDB/cartodb-central#862 first task: "Hardcoded plans".

@Kartones CR this, please.

+1


Download response give an invalid location which will give 403 access denied

Hi,
I tried to download my files from my onedrive account, but some of them are always return 403 error.
These files are not shared files and they can download from website.
Here are responses I receviecd. Any suggestion of this?
"GET /v1.0/drive/root:/Documenti/Nas%20e%20Cloud%20Hubic/Vecchie%20cose%20di%20Lavoro%20di%20Pippo/2MG/2MG.rar?select=id%2Cname%2Csize%2CfileSystemInfo%2CeTag%2Cfile%2Cfolder%2Cdeleted%2CparentReference%2ClastModifiedDateTime HTTP/1.1" 200 759
"GET /v1.0/drive/root:/Documenti/Nas%20e%20Cloud%20Hubic/Vecchie%20cose%20di%20Lavoro%20di%20Pippo/2MG/2MG.rar:/content HTTP/1.1" 302 0
"GET /y3m_6VB0sH9TpMy7KDpvAirNqSrDk7QY09rWrTG1Cdt7XxbutdaeTLQ7Vn9fLqzvMj9CcnuDEXhzq9_YyYz-voJSFRgoWbeNOeEBoOkEFa2pznTWTJAvtnI26UgV0mTHQYbt4BAjC5LZESRBHkI42V9WknbBj_3b6hXypO60oWCPX2089RBV0C0bgnELRMB24mBAFwbNeCazyF9Cqca1W4jS6exQARehs1VDrKgRM9lM-c/2MG.rar HTTP/1.1" 403 0
ERROR:403 Client Error: Forbidden

Hi,
I found it will happen on .zip file those involved other .zip. If i'd like to download this kind of file form web, the web will give alert about "can't analysis this file ... are your sure to download ", then I need to click OK to start my session. But, from API, how should I do?

https://github.com/OneDrive/onedrive-api-docs/issues/178#issuecomment-178472620

Thanks for help. It works after add "AVOverride".

I've updated #178 with a status update, and I'm going to close this issue since it's technically a duplicate.


Added definitions of scripts and plugins.

This is a proposal to enhance discussions around Vim scripting.
Such proposal attempts at defining scripts and plugins.

thanks!

It would probably be a good idea to include something (here or elsewhere) to disambiguate from :help plugin, which says
Vim's functionality can be extended by adding plugins.  A plugin is nothing
more than a Vim script file that is loaded automatically when Vim starts.  You
can add a plugin very easily by dropping it in your plugin directory.
{not available when Vim was compiled without the |+eval| feature}

There are two types of plugins:

    global plugin: Used for all kinds of files
  filetype plugin: Only used for a specific type of file

Good catch! I'll try fix it in the incoming days.


Join the discussion button is broken

On https://certificates.theodi.org/discussion?locale=en the "Join the discussion" button is broken.

tooltip says translation is missing
there is no hyperlink associated with the button.

Duplicate of #1423


UI bug with REI

Description:
The panel for the attributes and the overlay for potion effects overlap when the effects are set to the left side by REI.

Putting the itens on the left makes it even worse.

Expected behaviour:
While attribute panel is open, potion effects are hidden if they overlap.
Steps to reproduce:
Install mods
Get potion effects
On REI's config (the gear button next to the search bar on the bottom), go to display settings and toggle left side mob effects or toggle left side panel.
Open attribute panel
Observe mess.

Hmm... Not quite sure how to fix either of these issues without redoing a whole lot of stuff, which I quite frankly don't have the spoons for at the moment

Fixed with 0.2.3
I realized you could add exclusion zones for REI :P


Fix/rocko/backport

Finally ready with this. Passes oe-selftest but not ptest, which Laurent and I agreed is not importantly for now anyway.

@Raigi Can I get some QA on this PR, please? It's similar to the thud one you did recently. Thanks!

Tested: creating new devices, updating devices with shared-credentials provisioning and device-credentials provisioning, garage-tools version change, aktualizr version change, account key rotation, garage-deploy with latest version.


Its not possible to use Class@Method calls

Something like $router->get('/user/(\d+)', '\App\Controllers\User@showProfile');

Solved. You can use $router->get('/user/(\d+)', ['\App\Controllers\User', 'showProfile']); or $router->get('/user/(\d+)', [User::class, 'showProfile']);

Solved. You can use $router->get('/user/(\d+)', ['\App\Controllers\User', 'showProfile']); or $router->get('/user/(\d+)', [User::class, 'showProfile']);

Thank you , looks like I have missed that part. Another question if you dont mind. Is it possible to use Services to register class something like:
    $services = new Services;
    $services->register('database', function() {
        return new \rguezque\Database();
    });
    $router->useServices($services);

    $router->route(Katya::GET, '/alex', function(Request $request, Response $response, Services $service) {
        $response->send('Hi!');
    })->use('database');

database class:
    namespace rguezque;

    class Database
    {
        public function __construct(){
            echo "This is Database";
        }
    }

Indeed, you can, (example using PDO):
$services = new Services;
$services->register('database', function() {
    return new PDO('mysql:dbname=mydatabase;host=localhost;port=3306;charset=utf8', 'root', '', [
                PDO::ATTR_PERSISTENT => true,
                PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
            ]);
});
$router->useServices($services);

In controller (just as an example):
$router->get('/', function(Request $request, Response $response, Services $services) {
    $drivers = $services->database->getAvailableDrivers();
    $response->status(200)->json($drivers);
});


ci: bump blitzar-sys crate version to 1.10.0 ( PROOF-752 )

Rationale for this change
Bump the blitzar-sys crate version to 1.10.0 in blitzar crate.
What changes are included in this PR?

blitzar-sys version is bumped to 1.10.0.

Are these changes tested?
Yes

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


formula: unset XDG env vars during test

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew tests with your changes locally?

Having XDG environment variables set during test means the possibility of sandbox violation (software writing to XDG_DATA_HOME or XDG_CACHE_HOME outside the temporary HOME, see e.g. buku) or undesired configuration pick-up (see e.g. git-test and in fact any git-related
tests) when testing XDG Basedir Spec compliant software.

I'd like us to lean into the "proper" solution for this instead of adding more variables and instead whitelist the variables we allow into test (and install but that could be done afterwards).

A proper solution is great but I doubt it will come from me (at least not any time soon).

Is it possible these variables could cause attempts to write outside the sandbox during build as well, or is this purely a testing issue?

A proper solution is great but I doubt it will come from me (at least not any time soon).

Ok, no worries. Personally I'm 👎 on the whack-a-mole that is adding more individual variables (which I also think applies to https://github.com/Homebrew/brew/pull/332 CC @DomT4)

Is it possible these variables could cause attempts to write outside the sandbox during build as well, or is this purely a testing issue?

It's certainly "possible" because build scripts could do anything, but a sane build script probably shouldn't do that, and I've yet to encounter one. XDG Basedir Spec is for users.

Passing on this.


NATR in non TA-lib mode

# Calculate Result
    if Imports["talib"] and mode_tal:
        from talib import NATR
        natr = NATR(high, low, close, length)
    else:
        natr = scalar / close
        natr *= atr(high=high, low=low, close=close, length=length, mamode=mamode, drift=drift, offset=offset, **kwargs)

I guess when talib is false, even then atr is calculated in talib mode since talib is False is not passed in atr call.

Hello @shubhamsatyarth,
Please provide some more information. Thanks! 😎
Which version are you running? The lastest version is on Github. Pip is for major releases.
import pandas_ta as ta
print(ta.version)

Do you have TA Lib also installed in your environment?
$ pip list

Have you tried the development version? Did it resolve the issue?
$ pip install -U git+https://github.com/twopirllc/pandas-ta.git@development

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Provide sample code.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.


iOS10 view appears off-screen

When presented normally, I have one VC that is displaying and while the MZFormSheetPresentationViewController's frame origin looks fine, my VC that the MZ is created with, has it's origin.y set to -180....
Any ideas where to look?

@m1entus Any ideas?

Same problem here.

No idea, check transition ?


Is there a reason JSON.parse returns any

Right now the definition for the JSON global is as follows:
declare class JSON {
    static parse(text: string, reviver: (key: any, value: any) => any): any;
    static stringify(
      value: any,
      replacer?: ?((key: string, value: any) => any) | Array<any>,
      space?: string | number
    ): string;
}

But is there a reason JSON.parse couldn't return a more refined JSONValue type like this?
type JSONValue = | string | number | boolean | null | JSONObject | JSONArray
type JSONObject = { [key:string]: JSONValue }
type JSONArray = JSONValue[]

declare class JSON {
    static parse(text: string, ...args: []): JSONValue;
    static parse(text: string, reviver: (key: string, value: JSONValue) => any): mixed;
    static stringify(
      value: any,
      replacer?: ?((key: string, value: any) => any) | Array<any>,
      space?: string | number
    ): string;
}

99.99999% of the time that JSON.parse() is used it is only provided a single argument. And in those cases the only return type it can have would be a JSONValue (as defined above). For instance there's no way that it would ever return a function, a Buffer, undefined, etc. Is there a reason that JSON.parse() couldn't just be defined twice, one for the 99% case which returns a much more refined type JSONValue and another whose return type is mixed and accepts the reviver function?

My team ran into this because we have a requirement to have 100% type coverage in our code. It basically means any usage of JSON.parse causes the coverage check to fail. If it were the JSONValue or even mixed Flow would still require we validate whatever we got back, right?

@LoganBarnett from what I can tell, using the JSONValue counts as type coverage, although you probably will want to validate the parsed JSON regardless. Also, I recently discovered that you would have to change how JSONObject is defined to this:
type JSONObject = { [key:string]: JSONValue, $call?: empty }

Without the $call?: empty flow allows all of these to pass type checking:
const fn = () => {}
const notJSONa: JSONValue = fn
const notJSONb: JSONValue = { fn }
const notJSONc: JSONValue = [ fn ]

Ah, and JSON can't have functions in it.
We managed to work around the issue for now by copying core.js's libdef to our project's libdef. We changed the any to mixed and now we have proper coverage.

This would be a great help in developing projects that are 100% typed.

@bwestergard Right now we have our own decls/core.js and our .flowconfig refers to decls as a source of libdefs. This seems to take precedence and allows us to maintain 100% type coverage. I don't have that configuration on my personal setup right now so let me know if you need more information and I'll provide it next time I'm at work.

Is there a PR for this?


Exposes new event: remoteNotificationsRegistrationDenied

On iOS, calling requestPermissions causes a permission dialog to appear.

Pressing OK in this dialog will eventually emit a registerRemoteNotificationsRegistered or registerRemoteNotificationsFailed event.
However, there's no event emitted if the user chooses "Don't Allow", so if the implementor is attempting to do something in their app depending on which action has been taken, they are unable to do so.
This work exposes a new event called: remoteNotificationsRegistrationDenied that is emitted when requestAuthorizationWithOptions has been executed without error but with granted set to 'NO'.
Related:

https://github.com/wix/react-native-notifications/issues/669#issuecomment-1069338103
https://github.com/wix/react-native-notifications/issues/811

release is 4.3.0


Incorrect docstring for regulariser() in oilmm.jl

The docstring for regulariser(...) in oilmm.jl does not match the function signature used:
  """
      regulariser(fx, y)
  Computes the regularisation term of the logpdf.
  See e.g. appendix A.4 of [1] - Bruinsma et al 2020.
  """
  function regulariser(
      H::Orthogonal{T},
      σ²::T,
      Y::AbstractMatrix{T},
  ) where {T<:Real}

This function signature in the docstring matches that of regulariser(...) in ilmm.jl.
Perhaps it would be worth adding a new method for regulariser(fx::FiniteGP{<:OILMM}, y)?

That sounds like an excellent idea. You can probably just remove this method, and replace it with your proposed method.
In fact, it might make sense to replace y with Y::AbstractMatrix{<:Real} (or something like that) in both cases.


update ru tranlation

Added translation for missing class and fix translation

Added to version 1.2.0


chore: migrate articles to new screen

This PR resolves []
Description
This PR migrates the articles screen to use the new screen component
https://github.com/artsy/eigen/assets/11945712/bb792b0b-5430-469b-b2bd-bbc621d09e4a

PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

Use new screen in articles screen - mounir

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

This PR contains the following changes:

Cross-platform user-facing changes (Use new screen in articles screen - mounir)

  Generated by :no_entry_sign: dangerJS against 97bda6807ebe8c1c59d5a381bb59eb433152c85c

I know this is part of the overall screen layout, but at first glance this title header text seems too close to the image 🤔

@MounirDhahri could you paste a screen cap of another similar screen? Curious what it looks like in comparison.

You're right, other screens have more margin. I will fix this

Thank you! Once that's in, 👍 👍


No re-render of Call composite if chat/people pane is opened and closed

What

Hiding inner call composite in CallWithChat composite instead of unmounting and re-rendering if chat/people pane is opened and closed.
Why

Dismissed compliance banners will reappear if chat/people pane is opened and closed.
Before:
https://user-images.githubusercontent.com/79475487/162343097-7321bce7-4859-4291-96a9-7b6822e66208.mp4
After:
https://user-images.githubusercontent.com/79475487/162343196-195d4cee-3610-4394-a1f2-aeb22d4ca9d2.mp4
How Tested

Locally
Process & policy checklist

[ ] I have updated the project documentation to reflect my changes if necessary.
[ ] I have read the CONTRIBUTING documentation.

Is this a breaking change?

[ ] This change causes current functionality to break.

waiting for answers to pending questions before I approve.


Streamlining setting up a local instance of documentation using Hugo #214

As a beginner to this project, setting up a local instance using Hugo had me some tweaks to do, so I have added changes in the readme.md file which make it very easy and simple to get a local instance running on any system from the get go.
Although all steps have been covered, they aren't at all ordered and just not the way to go for a beginner to this project, wishing to contribute.
The changes have been made keeping in mind that the new contributors to the project must have the very first step in their journey, i.e. "Setting up the local instance of the docs" easy and simple without any tweaking being needed.

In the pull request, you suggest users install the following packages:

autoprefixer
postcss-cli

Could you please add more detail about why these are required for local development?
If they are required for production (which I don't think is the case), then I think it makes sense to add them to package-lock.json. If they're only required for local development, then I think we would want to instruct users to install without modifying dependencies:
npm install
(Without the -D --save options)
Otherwise, some users are probably going to end up including the package-lock.json changes in their pull requests?

Hi, without installing the following packages,

autoprefixer
postcss-cli

the local instance loaded but was missing some of the SCSS components which made the webpages look odd. However after adding these, the problem was fixed and a normal instance was loaded as it does on the page https://www.opencue.io/. Due to this, I requested to add those packages in the documentation.
Yes, the -D --save options should be removed from the commands. I have removed them from the pull request, please have a look.


Natasha/updates

fixes #341, #332, #325, #324, #321
refactors action sheet
also adds about page in settings so we can advertise ourselves!

An episode wasn't playing so I tried to play another episode and the app crashed and I got this:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid number value (NaN) in JSON write'
I'm guessing this probably happened when you tried to save the current progress of the episode and the progress was nil? I'm not sure

@jackthmp I can't reproduce the Exception error but I did change the listening duration saving to check for nans so we shouldn't get that exception anymore! If you have any more info on the bug or know how to reproduce lmk


regression: version history of motions is no longer available

create a new motion with the complex workflow
set the status to permit
edit the motion
click on the motion

result: there is no version history:

This is a regression to OpenSlides with its very useful feature to show and compare different versions:
https://docs.openslides.org/de/_images/Motion_04.png

I can't confirm the bug. After your 4 steps I get a version history which shows a 2nd version, see:

You should test it again. For me everything works. Can I close this issue?
[Assigned to @donovaly ]

Hmm, indeed  can no longer reproduce this. Strange.


Unable to reach Provider. See Logs for details.

Not entirely sure where to grab the logs, new to this. Happy to share if you can advise.
TIA

This might be what you need:
2024-03-08 19:22:55.732 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-03-08 19:22:55.732 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration load_shedding which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-03-08 19:22:55.732 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-03-08 19:22:55.733 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration weatherflow_forecast which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-03-08 19:22:56.993 WARNING (MainThread) [py.warnings] /usr/local/lib/python3.12/site-packages/telegram/utils/request.py:49: UserWarning: python-telegram-bot is using upstream urllib3. This is allowed but not supported by python-telegram-bot maintainers.
warnings.warn(
2024-03-08 19:22:58.559 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-03-08 19:23:01.492 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/telegram_bot/polling.py", line 55, in start_polling
self.updater.start_polling()
File "/usr/local/lib/python3.12/site-packages/telegram/ext/updater.py", line 285, in start_polling
self._init_thread(self.dispatcher.start, "dispatcher", ready=dispatcher_ready)
File "/usr/local/lib/python3.12/site-packages/telegram/ext/updater.py", line 225, in _init_thread
name=f"Bot:{self.bot.id}:{name}",
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/telegram/bot.py", line 117, in decorator
self.get_me()
File "/usr/local/lib/python3.12/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/telegram/bot.py", line 135, in decorator
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/telegram/bot.py", line 392, in get_me
result = self._post('getMe', timeout=timeout, api_kwargs=api_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/telegram/bot.py", line 245, in _post
return self.request.post(f'{self.base_url}/{endpoint}', data=data, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/telegram/utils/request.py", line 349, in post
result = self._request_wrapper(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/telegram/utils/request.py", line 270, in _request_wrapper
raise Unauthorized(message)
telegram.error.Unauthorized: Unauthorized
2024-03-08 19:28:39.197 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% if states("sensor.load_shedding_milnerton_14") == "off" %} Starts in {{ timedelta(minutes=state_attr("sensor.load_shedding_area_jhbcitypower3_5_kloofendal", "next_start_time")) }} {% else %} Ends in {{ timedelta(minutes=state_attr("sensor.load_shedding_area_jhbcitypower3_5_kloofendal", "next_end_time")) }} {% endif %}) renders=2>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
return template.render(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
render_info._result = self.async_render(
^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: unsupported type for timedelta minutes component: NoneType
2024-03-08 19:28:39.201 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ (state_attr("sensor.load_shedding_area_jhbcitypower3_5_kloofendal", "next_start_time") | as_datetime | as_local).strftime("%H:%M") }} -  {{ (state_attr("sensor.load_shedding_area_jhbcitypower3_5_kloofendal", "next_end_time") | as_datetime | as_local).strftime("%H:%M") }}) renders=2>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1874, in as_datetime
timestamp = float(value)
^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'NoneType'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1879, in as_datetime
return dt_util.parse_datetime(value, raise_on_error=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/dt.py", line 209, in parse_datetime
return ciso8601.parse_datetime(dt_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument must be str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
return template.render(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
render_info._result = self.async_render(
^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: as_datetime got invalid input 'None' when rendering template '{{ (state_attr("sensor.load_shedding_area_jhbcitypower3_5_kloofendal", "next_start_time") | as_datetime | as_local).strftime("%H:%M") }} -  {{ (state_attr("sensor.load_shedding_area_jhbcitypower3_5_kloofendal", "next_end_time") | as_datetime | as_local).strftime("%H:%M") }}' but no default was specified

And today, it worked.
So sorted now.

You may want to update your Status Alert card.
https://github.com/wernerhp/ha.integration.load_shedding/releases/tag/v1.3.2


Move to organization

@fingolfin @lkastner: For efficient collaboration, I think you should have sufficient permissions (write, merge etc.). Does it make sense to migrate this repository to Oscar?
I have done similar transitions in the past. It should be possible to hand over this private repository to an organization (e.g. Oscar). In particular, this transition should (?) also preserve issues, PRs etc.

Sure! I've sent you an invite to oscar-system (and to our Slack). Once you accept that, you can (I think) initiate the transfer.


update andres-erbsen/protobuf; remove a related (superseded) hack

I updated https://github.com/andres-erbsen/protobuf to match https://github.com/gogo/protobuf as of today. Most important changes have been merged to upstream; the only remaining diff between my fork and theirs is that mine prefers specialized JSON marshalers to generic ones. This is used in coname to generate the JSON format agreed upon in meetings over summer. That preference change could probably be upstreamed as well, but it is a new feature, not a bugfix, so I left it out of first batch.
This pull request brings coname up to date with the new (less broken) state of gogoproto: there are some renames, the protos have been regenerated, and a couple of workarounds in generate.sh are no longer necessary.

do not merge. this is not done yet. I got tripped by the fact that go build on a fork still uses subpackages from the original repo... It seems that the main thing that needs adjusting is the new, more type-safe, enum syntax. I will fix this some other day, though.

I fixed up the oneof syntax; this can be merged now. While there are a lot of changed lines, most of them are accounted for by regerating the protos. All code changes are local API conversions and can be verified without further context.

:+1:


stuck after login

1 After login tinder ask to allow browser location or logout
our app disables and it reloads
2. endless loop
3. if i allow it manually then location does not change

Hi @rushabhsooni ,
Can you provide a bit more information about the issue?
Maybe a screenshot of where it's stuck, some logs or general information on what operating system and version of python you're using.
Greetings,
Fred


USB and GPU info

Hi there! Cool little crate.
You might already have this on the roadmap but I was wondering if GPU and USB devices info is planned? 🙂

I don't necessarily need it, but i was talking with some people about making some driver management in Linux and sumpled upon this if one wanted a rust solution.
I'm a Linux newb still so was researching how to get GPU and usb information directly from the system.
All the basic information really needed would be the cards listed in /sys/class/drm (ok arch at least) where one can pull memory, PCIe information, vendor and manufacturer I'd.
Which then could be looked up in the PCI.id database with a tool like https://github.com/ilyazzz/pci-id-parser
But I'm rambling about my findings now and you probably already know this 😁
Tldr just the basic GPU information like name, kernel driver and such.
The usb stuff sounds fine. My thought there was if a person had a external GPU. But don't how it is treated by Linux.


Issue with: webpack.config.js

In your installation guide you wrote:

However, should you need to configure it, you may copy the file to your project root, and then update your package.json NPM scripts accordingly: cp node_modules/laravel-mix/setup/webpack.config.js ./.

But, in the file itself (webpack.config.js) you required file from it's respective path require('../src/index') . Now I wanna know how it'll work if I copy that to my project root!

If you choose to customize that file, of course you need to update the paths in it, as you would any file that you move to another location.

In that case, it should be mentioned in the documentation! However, it worked in 0.8.* versions out of the box.

@authlab-frontdev There are changes to webpack config from v1.0.0 release.

Yeah this changed with 1.0. If there's a portion of the docs that still references copying the file over, we'll need to delete that.


[Feature Request]: Explore integration with langflow

Feature Description
Langflow provides a visual UI to construct langchain applications.
In my mind, this is the most user friendly way to build a complex conversational AI application.
I think there may be value to create a UI plugin which allows knowledge base management via llamaindex from within langflow
See https://huggingface.co/spaces/Logspace/LangFlow to try out the UI.
See here for example:

If all of this is hosted somewhere (e.g. hugging face spaces), it would be even more awesome.
Reason
Value of Feature
Quick, visual prototyping. KB mgmt.

💯

yes!

yes!

bump


jest-enzyme not working with create-react-app

I have an app based on create-react-app. I imported jest-enzyme in my src/setupTests.js:
import { configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'

configure({adapter: new Adapter()})

import 'jest-enzyme'

when I run my tests, I am seeing the following error:
Test suite failed to run
    ReferenceError: expect is not defined
      7 |
      at Object.<anonymous> (node_modules/jest-enzyme/lib/index.js:34:1)

I'm not familiar with CRA but I guess this is due the the Jest config key used, setupFiles for enzyme.
Whereas jest-enzyme needs to be configured later in the process. setupFilesAfterEnv.

@pascalduez setupFilesAfterEnv triggers this error:
We detected setupFilesAfterEnv in your package.json.

Remove it from Jest configuration, and put the initialization code in src/setupTests.js.
This file will be loaded automatically.

If I remove setupFilesAfterEnv and just include the testEnvironment key, I get this error:

Out of the box, Create React App only supports overriding these Jest options:

  • collectCoverageFrom
  • coverageReporters
  • coverageThreshold
  • coveragePathIgnorePatterns
  • extraGlobals
  • globalSetup
  • globalTeardown
  • moduleNameMapper
  • resetMocks
  • resetModules
  • snapshotSerializers
  • transform
  • transformIgnorePatterns
  • watchPathIgnorePatterns.

These options in your package.json Jest configuration are not currently supported by Create React App:

  • testEnvironment

If you wish to override other Jest options, you need to eject from the default setup. You can do so by running npm run eject but remember that this is a one-way operation. You may also file an issue with Create React App to discuss supporting more options out of the box.

I was able to solve by following this tutorial
Specifically, instead of changing package.json I created src/setupTests.js and inside I put:
import { configure } from "enzyme"
import Adapter from "enzyme-adapter-react-16"
configure({ adapter: new Adapter() })

Hope this helps 👍


Enhance build_hex_version

I though that at last I could bring some value here, but @scoder it too fast<PHONE_NUMBER>23948a3dd7cc3365cf969d44fc9326 ^-^
Well, I don't want to throw the refactoring out, so here it is

Thanks


add CMZ toke

dear consenlabs, please accept my pull request for add CMZ token listed in im token. thank

Please Accept my Request for upload CMZ token

你好，已经添加。

Thank you Master wenyanwang.


onfinish called before the animation completes in a GroupEffect

In the 2.1.1 release, onfinish is called immediately when playing a GroupEffect.
Gist: https://gist.github.com/morethanreal/dd005384c6d5ae951bc1

This should be fixed in the latest release https://github.com/web-animations/web-animations-js/releases/tag/2.1.2


Fix broken link to code of conduct on the home page.

The link to the code of conduct on the home page pointed to /conduct.md instead of /community/conduct.html.

Thanks!


vscode-fhs fails to build on aarch64-darwin

Describe the bug
vscode-fhs fails to build on arm macos. The error probably happens because a dependency, glibc-nolibgcc-2.39-5, isn't marked supported on darwin:
error: Package ‘glibc-nolibgcc-2.39-5’ in /nix/store/6nnv8z57j976ij3img6ni46fkbac9vb0-nixpkgs/nixpkgs/pkgs/development/libraries/glibc/default.nix:184 is not available on the requested hostPlatform:
         hostPlatform.config = "aarch64-apple-darwin"

Steps To Reproduce
Steps to reproduce the behavior:

Allow unfree packages via ~/.config/nixpkgs/config.nix
Run nix-shell -p vscode-fhs

Expected behavior
vscode-fhs should build successfully (its dependencies should be supported on aarch64-darwin). Alternatively, vscode-fhs should not be marked as supported on aarch64-darwin (and probably also x86_64-darwin as well).
Screenshots
NA
Additional context
NA
Notify maintainers

@eadwu @Synthetica9 @bobby285271 @JohnRTitor
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.2.0, macOS 14.2.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

Not sure how to get this done since I don't use darwin but CC @DontEatOreo

I'm also experiencing this issue. Would be great to be able to use vscode-fhs on Darwin.

Sadly, I don't think I can really help with this issue. Can anyone from @NixOS/darwin-maintainers take a look?

I didn't think FHS stuff worked on darwin?
https://discourse.nixos.org/t/buildfhsuserenv-not-supported-on-aarch64-darwin/22490/2?u=n8henrie


#36: include sub folders for wildchar pattern

Codecov Report
Attention: Patch coverage is 47.69231% with 34 lines in your changes missing coverage. Please review.

Project coverage is 59.87%. Comparing base (8b8235a) to head (53e9b01).

Files
Patch %
Lines

layer.go
28.57%
20 Missing and 5 partials :warning:

package.go
40.00%
6 Missing and 3 partials :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
- Coverage   61.20%   59.87%   -1.34%
==========================================
  Files          11       12       +1
  Lines         598      628      +30
==========================================
+ Hits          366      376      +10
- Misses        225      238      +13
- Partials        7       14       +7

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


Bump types-setuptools from <IP_ADDRESS> to <IP_ADDRESS> (#5410)

Pull request opened by the merge tool on behalf of #5410

Merged in e65bca574da5ac795e40ac0a559e09a366cca29d


[CELEBORN-1052][FOLLOWUP] Improve the implementation of ConfigService

What changes were proposed in this pull request?
Improve the implementation of ConfigService including:

Removes celeborn.dynamicConfig.enabled.
Changes celeborn.dynamicConfig.store.backend to optional.
Renames refreshAllCache to refreshCache in ConfigService.
Checks whether the dynamic config file exists and is file in FsConfigServiceImpl.

Why are the changes needed?
Whether to enable dynamic config could check via whether celeborn.dynamicConfig.store.backend is provided, instead of celeborn.dynamicConfig.enabled. The refreshAllCache interface could rename to refreshCache and throw Exception simply. Meanwhile, FsConfigServiceImpl should check whether the dynamic config file exists and is file.
Does this PR introduce any user-facing change?

Renames refreshAllCache to refreshCache in ConfigService.

How was this patch tested?

ConfigServiceSuiteJ

Merged into main(v0.5.0).