Heads up: breaking changes in mosdepth

Hi Brad,
I just updated the conda recipe for mosdepth to the latest version (v0.1.9). This release includes some breaking changes compared to the old behavior. I suspect this will have some effect on usage of mosdepth in bcbio.
Just so you know, before any issues arise in new installs.
Cheers
m

Matthias -- thanks much for the heads up and putting in a bioconda update. I've been working with Brent on this new version and have an update to bcbio callability calculations to go along with it. I just sent a dueling PR for mosdepth in bioconda based on what I had locally since it also requires fixes to the install.sh patch in addition to bumping the version. Hope that works, it seemed easier than trying the git magic to get them into your branch. Once that's built and available I'll check in the coordinated bcbio fixes and close this. I'll appreciate any testing on the updated approach. Thanks again.

Hi Brad,
Good to see you were already prepared. It seems the build of my conda recipe had failed so thumbs up for yours! 👍
If we find any issues during testing, I'll be sure to let you know!
Cheers
M


Invalid memory address - org scan - crashing at empty repo

Describe the bug
When running a default scan on our company repo, the scan gets to a certain point where it just crashes. I've identified the repo in question and noticed that it's empty. I'm not sure as to whether this has anything to do with it. The program states that it was unable to clone via https and access tokens, attempts to ssh, unable to get ssh auth, skips, retries cloning the same repo and then crashes.
To Reproduce
Steps to reproduce the behavior:
Run this command ./gitleaks --org=talend --disk --access-token=******** --host=github
Expected behavior
The program should have skipped this repo and continued. Instead, it attempted to clone the same repo using git@github:Talend/tps3243_2.git
Screenshots

OS: CentOS 7.7-1908
Gitleaks Version: 4.1.0

Additional context
Add any other context about the problem here.
cc @zricethezav

@fr0stedfl4ke I will be taking a look at this. If a repo is empty there can be some odd behaviors.

@zricethezav Thanks for taking a look into this. Let me know if there's anything else I could do to assist in this process.

@fr0stedfl4ke just merge https://github.com/zricethezav/gitleaks/pull/358. That should fix it. Could you re-clone and give it a shot? See if that fixes it

@zricethezav Unfortunately, I'm still getting an error with this one - even using the latest version. Any suggestions?

@fr0stedfl4ke I haven't tagged the new release yet as I was planning on putting some more items in before I cut a new release. Could you clone this locally and run it? I'm trying to reproduce it locally but I'm not having success reproducing this bug.

@zricethezav it works for me as well

@GolanTrevize10 that's good to hear! I will wait until @fr0stedfl4ke confirms this is working for them before closing out this issue.

Hi @zricethezav, it seems to be crashing once again. Let me know if I did this right

git cloned the repo
go run main.go with all necessary parameters.

It seems to kick off the program just fine, and then crashes after a certain point. Usually, I run this program using 'screen' and let it run in the background. I can't seem to "scroll" back up on my screen session because I didn't set the proper buffers in place - so that's my fault. I'll try again and check to see where it's crashing on me.
Thanks for the fix. Let me know if I'm running it properly.

@zricethezav - Looks like when I run 'go run main.go' after cloning the repo - it runs out of memory. Even though I use the --disk parameter is seems to have a memory issue. This doesn't happen when I run after go get. Any suggestions?

Hi @zricethezav. I went ahead and pulled the latest release and all looks good on my end.
Thank you!


Display Resource metadata in Editor

Do we need to display the content of Resource.get in the editor so we can see the metadata?
Right now we have this:

Before we had that:

We should potentially only use the Resource.getSource method to compute the diff if the user update the resource and make sure we don't sent Nexus metadata as part of our payload.

A toggle to switch between the source and Nexus metadata would be very useful, especially if some keys are not recognized as iris because of lacking context definitions.

I agree with bogdan.
For the editing of the payload, a way to go is to have a button to edit the json. When clicking on edit, the payload changes to the payload retrieved from the source.


Initial PR - Group by monitor status and filter by status

Hi, Thank you for your response to my issue. I've opened this PR for you to see all the code changes I have made based on how we are using this tile on our dashboard.
This is not completed and ready to merge! (I wish first, to have your view on how you would see this being integrated into the existing code base).
There are some things I wish to make configurable first. It would be really handy to know - would you wish to preserve the original tile.blade.php and use the alternative in this PR as an optional one. Or just adopt the new view? (and the supporting back end changes).
Looking forward to hearing your thoughts....

Hi, I would add your view as an additional option, because for only a few monitors I like my view a bit more, but if I'd have more monitors (like in your screenshot) I would choose your view.  So, maybe add a config option to switch between my view (e.g. basic) and yours (e.g. advanced)?

Hi, That's what I thought too....will get the option switching bits of code in there and resubmit the request....

Hi,
The changes are now there to allow a switch between 'original' and 'alternative' blade views from the dashboard.php config file.
Have now updated the CHANGELOG and README aswell...
Cheers

Thanks for the great work @RobertByrnes. I've just published a new release. Note: I had to upgrade the default Alpine.js version from 2 to 3, so I've made this a new major release (3.0.0) and added instructions for upgrading Alpine.

Nice! Missed that bit! Awesome, and thank you for encouraging collaboration 😀


Implementation of PARTITIONS and ROUTE commands

These are prerequisites for super-stream implementations

This was implemented here: https://github.com/qweeze/rstream/pull/57


Correcting producer flag (bootstrap-server is not a recognized option)

Q
A

Bug fix?
yes

New feature?
no

API breaks?
no

Deprecations?
no

Related tickets
None

License
Apache 2.0

What's in this PR?
A change in the producer flag for this test to work.
Why?
The problem with current flag is that it breaks as it does not exist in that version:
$ kubectl -n kafka run kafka-producer -it --image=banzaicloud/kafka:2.13-2.4.0 --rm=true --restart=Never -- /opt/kafka/bin/kafka-console-producer.sh --bootstrap-server kafka-headless:29092 --topic my-topic

If you don't see a command prompt, try pressing enter.
bootstrap-server is not a recognized option <-------------------------- Is not a recognized option!

Additional context
But if proper flag is provided then we can work with it:
$ kubectl -n kafka run kafka-producer -it --image=banzaicloud/kafka:2.13-2.4.0 --rm=true --restart=Never -- /opt/kafka/bin/kafka-console-producer.sh --broker-list kafka-headless:29092 --topic my-topic
If you don't see a command prompt, try pressing enter.
>message1
>message2
>message3
>

Notice the only difference is in the flag: --broker-list
Checklist

[X ] Code meets the Developer Guide
[X ] User guide and development docs updated (if needed)

@stoader : Shall we remove other occurrences of the bootstrap-server from the consumer.sh commands as well, or is it still valid there?

@cniackz the banzaicloud/kafka:2.13-2.4.0 image in the doc is quite old. Can you try with ghcr.io/banzaicloud/kafka:2.13-3.1.0

@fekete-robert all references to older Kafka versions docker images banzaicloud/kafka:<tag> should be replaced with ghcr.io/banzaicloud/kafka:2.13-3.1.0

This was resolved in #61


LCFS - Show user name in top banner

Description:
Show the user's first and last name in the top banner.
Wireframe: https://drive.google.com/file/d/1yG1OPKkM1jilcd8K0Bd6WUNajc1T0U-X/view?usp=drive_link
Purpose and benefit to user: Confirms you are logged in as the correct user.
Acceptance Criteria:

[ ] Given I am either BCeID/IDIR user, the full name of the user should be displayed

Development Checklist:

[ ] Full name is not the same as the keycloak display name.

Notes:

Hey team! Please add your planning poker estimate with Zenhub @AlexZorkin @jig-patel @kevin-hashimoto @prv-proton


Tweak guidance on running JS tests

In response to: https://github.com/alphagov/govuk_publishing_components/pull/2060#discussion_r631761457
This makes the format consistent with other repos. I've also changed
the overall test command to "rake", which is what we have in all our
other repos. If we need to tell people how to check which framework
is being used, we should do this centrally.
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠

Thanks for the review @alex-ju!
Would you like to merge? (I no longer have access to do so.)


Integration examples

As LayerChart continues to grow and be used by more developers in new and existing projects, I would love to track a list of open source projects (or even closed but have developer who could be used as reference) of various combinations of component frameworks (Svelte UX, Skeleton, shadcn-svelte, Daisy UI, ...) and other factors (Tailwind only, Unocss, vanilla classes, SvelteKit, Vite-only, Svelte-only), etc.
This will prove immensely valuable for new developers coming to the project, as well as providing support by having reference implementations.  These will translate to improved documentation around those use cases as well, and identify integrations to improve.
I would love for everyone to leave a comment with their stack and any notes you would love to pass on to other developers (mapping CSS variables/themes between frameworks, etc).
Here is a start (and I will edit and consolidate comments here):

Project / URL
UI components
CSS

Github Analysis
Svelte UX
Tailwind

Strava Analysis
Svelte UX
Tailwind

layerchart-shadcn-svelte example
shadcn-svelte
Tailwind

(Note: I have some projects that are Svelte UX only, such as peerjs scoreboard (for cornhole) and a few smaller projects so I might do something similar within Svelte UX, although there is less variability from that perspective.

I've created a simple layerchart-shadcn-svelte project as reference.


Render police stations

Police stations are common features in American cities and towns, so rendering them would make progress on Americana's representation of community institutions (https://github.com/ZeLonewolf/openstreetmap-americana/issues/435) and POIs generally (https://github.com/ZeLonewolf/openstreetmap-americana/issues/692).
Commonly in America, police are symbolized by their badges. These badges can be star-shaped (maybe more evocative of an Old West sheriff) or shield-shaped, sort of like the US route symbol.

Many American maps depict police stations as generic POIs, but some have stars.

Other OSM-adjacent maps tend to use some sort of person with a sash (Carto and Maki below). But this symbology feels very European to me, so I don't think it fits with our theme.

I think a shield icon (as suggested in https://github.com/ZeLonewolf/openstreetmap-americana/issues/794#issuecomment-1435241890) would be appropriate and recognizable. "Infrastructure blue" would probably be the appropriate color for these due to their nature as public institutions.

A six- or seven-pointed star traditionally represents a county sheriff, depending on the state. Some maps distinguish between sheriff’s offices (star) and other police stations (badge). This distinction can also be found on highway signs in some states like California, but I don’t think we have reliable tagging for it.
Maps that use a star for police stations in general would choose a five-pointed star to avoid confusion.

I think the shield is more encompassing than the star badge, as I believe that is traditionally sheriff's office only.
I don't like the five-pointed star as we are already using that for other things like state capitols. I know the color is different, but it's still a bit weird.

Here's a test rendering of a modified US route symbol, I think it works pretty well! If others like this concept I'll open a PR with it.

The icon is using the available space, which makes it look a lot larger than the city hall icon and especially the school icon, both of which have faint elements that extend beyond the main body of the icon. We should either make those icons larger or shrink the police icon. Shrinking the police icon may require exaggerating the curves in the badge somewhat.

The badge shape makes sense to me as the police icon.  I'm not sure that the six-shooter star is quite right as a monochrome icon and I also think it would look somewhat too close to the Star of David at icon scale.  I do agree that it should be a little curvier, I'd like to see the armpits of the shield curve inwards just a touch more.

Since there seems to be support for the badge/shield concept, I created a PR (#866). Having the icon available might make it easier to hash out further details.


Bouncy Castle License check

Describe the bug
Currently, when starting release pulsar, we need to update the bouncy-castle-bc-shaded version to the target version in the pulsar-sql distribution module. But the broker can pass the
license check.
Bouncy Castle License
 * Bouncy Castle -- licenses/LICENSE-bouncycastle.txt
    - bouncy-castle-bc-shaded-2.6.0-SNAPSHOT.jar

Resolved by #18171.


DisplayProps.setValues() method

Value of the compositeOperation property is not properly set with the DisplayProps.setValues() method.  The argument of shadow is assigned to it.
Also, the default value of the DisplayProps.alpha property is 1 although the doc tells that it is 0.

Thanks! We will definitely fix these shortly.

I have pushed these changes to GitHub. They are not part of the 0.8.1 release.


Subclass property sharing name with type parameter can't be resolved

🔎 Search Terms
subclass property type parameter resolution 2339
🕗 Version & Regression Information

This is the behavior in every version I tried

⏯ Playground Link
https://tsplay.dev/wEYkOw
💻 Code
class Leg {}

class Foo<t> extends Leg {
    t = {} as t

    // should allow this access since t was declared as a property on Foo
    foo = this.t
}

🙁 Actual behavior
Error on accessing t: Property 't' does not exist on type 'Foo<t>'.ts(2339)
🙂 Expected behavior
Should allow t to be accessed.
Additional information about the issue
No response

Duplicate of https://github.com/microsoft/TypeScript/issues/56620.


TRT-LLM fails on GH200 node

System Info

GH200 x1, lambdalabs
TRT LLM 0.15.0
nvcr.io/nvidia/pytorch:24.10-py3 base image

pip install succeeds, but running code fails with
  File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/__init__.py", line 32, in <module>
    import tensorrt_llm.functional as functional
  File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/functional.py", line 25, in <module>
    import tensorrt as trt
ModuleNotFoundError: No module named 'tensorrt'

Who can help?
@byshiue
Information

[ ] The official example scripts
[ ] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction

Use docker image nvcr.io/nvidia/pytorch:24.10-py3
Install trt llm 0.15.0 version
Try to run

Expected behavior

Works

actual behavior

Fails

additional notes
None

@Shixiaowei02 could u please answer this question?


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 08:54:29 on 2023.07.18
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 7, errors out: 0
Original problem ID: 32696
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=32696

Problem has been resolved in 6m 3s at 09:00:32 on 2023.07.18
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 32696


Real-world scenario guide with cutting edge tech

I made up a guide to setup Firebase services into a real-world scenario with cutting-edge technologies. I think you could get some insights on DX of your services and how they are used out in the wild (or add it to this examples repository).
Tech used: Quasar (Vue), TypeScript, Jest (unit testing), Firebase Firestore, Cloud Functions, RxFire.
Inside the guide there are some helpers and code management tips which can make dev life easier and could be integrated into some of your products.
Feel free to take copy-paste-change them and use them to enhance your documentation.
Suggestions and comments are welcome too.
https://github.com/quasarframework/app-extension-firebase/issues/4
Cheers!

Hi @IlCallo, if you're interested, you're welcome to create a PR to add a link to your repository to our community page: https://github.com/firebase/functions-samples/blob/master/community.md


Add List of Components to the left navigation

goal: Have a full list of the Techne components on the left navigation
The list of components by category is at
https://github.com/SAP/techne/wiki/Techne-Components

This is already part of #689

Info needed aded to #698


Get the status for all orders in a stock

https://starfighter.readme.io/docs/status-for-all-orders-in-a-stock

@hjr3 Can you add me as a collaborator so I can assign myself issues?

@muub i missed this earlier. i sent an invite to you. accept and you should be able to collabo

@muub I think this should be closed, right?

@hjr3 Yes


Enums with default values generate incorrect field type and to_dict implementation

Describe the bug
We have several Enums in our API spec, and models that include fields of that enum type.  Sometimes, we set default values on those enum fields.  In those cases, the generated code in to_dict is incorrect and cannot be used to POST entities to our API.
To Reproduce
Steps to reproduce the behavior:
Add this code to a main.py file
from typing import Optional, Union, Dict
from fastapi import FastAPI
from pydantic import BaseModel
from enum import Enum

from starlette.responses import Response

app = FastAPI()

class ItemType(str, Enum):
    RATIO = "ratio"
    CURRENCY = "currency"

class ItemResource(BaseModel):
    id: int
    optional_id: Optional[int]
    id_with_default: int = 42

    item_type: ItemType
    optional_item_type: Optional[ItemType]
    item_type_with_default: ItemType = ItemType.RATIO

@app.post("/")
def write_item(model: ItemResource):
    return Response(status_code=201)

Run the code with uvicorn main:app &
Generate an sdk with openapi-python-client generate --url http://localhost:8000/openapi.json
Open the generated item_resource.py
Expected behavior
item_type_with_default should look like:
item_type_with_default: Union[Unset, ItemType] = ItemType.RATIO
to_dict should have code like:
item_type_with_default = self.item_type_with_default
if item_type_with_default is not UNSET:
    field_dict["item_type_with_default"] = item_type_with_default

Actual behavior
item_type_with_default looks like:
item_type_with_default: Union[Unset, None] = UNSET
to_dict has code like:
item_type_with_default = None
if item_type_with_default is not UNSET:
    field_dict["item_type_with_default"] = item_type_with_default

Since self.item_type_with_default is never accessed, the caller has no way to actually provide a value to the server.
You can see the code in there for id_with_default, an int field with default that does the right thing.
OpenAPI Spec File
{"openapi":"3.0.2","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/":{"post":{"summary":"Write Item","operationId":"write_item__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemResource"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ItemResource":{"title":"ItemResource","required":["id","item_type"],"type":"object","properties":{"id":{"title":"Id","type":"integer"},"optional_id":{"title":"Optional Id","type":"integer"},"id_with_default":{"title":"Id With Default","type":"integer","default":42},"item_type":{"$ref":"#/components/schemas/ItemType"},"optional_item_type":{"$ref":"#/components/schemas/ItemType"},"item_type_with_default":{"allOf":[{"$ref":"#/components/schemas/ItemType"}],"default":"ratio"}}},"ItemType":{"title":"ItemType","enum":["ratio","currency"],"type":"string","description":"An enumeration."},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"type":"string"}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}}}}

Desktop:

OS: macOS 11.2.2
Python Version:  3.8.6
openapi-python-client version 0.8.0
fast-api version 0.62.0

Just found #362 which is a likely dupe.  Sorry I didn't find it earlier.
Installing from main branch seems to address the issue.
I get
    item_type_with_default: Union[Unset, ItemType] = UNSET

and
        item_type_with_default: Union[Unset, str] = UNSET
        if not isinstance(self.item_type_with_default, Unset):
            item_type_with_default = self.item_type_with_default.value

and
        if item_type_with_default is not UNSET:
            field_dict["item_type_with_default"] = item_type_with_default

Sweet!  Can we get a pip release to make it easier to consume the fix?


add LowEnergy Cluster analysis in CalibAnaTree

I change hit.ROISummedADC by hit.Integral because of the issues of compatibility with data/mc files reconstructed before the change SUmmedADC -> ROISummedADC. These files does not possess this method but you need to use this method if you want your code to compile. So to pursue my analysis on energy I use Integral which is less precise but present in both versions

I want someone more familiar with this code to review it before I approve.  I want to make sure we're not taking things out of the calibration analysis that other people are relying on.  I'll merge it today if you can get it approved by someone by say 1PM Chicago time.

:heavy_check_mark: CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

:heavy_check_mark: CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

:heavy_check_mark: CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

:heavy_check_mark: CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

:x: CI build for DUNE Failed at phase build DUNE on slf7 for c14:prof -- details available through the CI dashboard
:rotating_light: For more details about the failed phase, check the build DUNE phase logs
parent CI build details are available through the CI dashboard

:x: CI build for DUNE Failed at phase build DUNE on slf7 for e26:prof -- details available through the CI dashboard
:rotating_light: For more details about the failed phase, check the build DUNE phase logs
parent CI build details are available through the CI dashboard

:x: CI build for DUNE Failed at phase build DUNE on slf7 for c14:prof -- details available through the CI dashboard
:rotating_light: For more details about the failed phase, check the build DUNE phase logs
parent CI build details are available through the CI dashboard

:x: CI build for DUNE Failed at phase build DUNE on slf7 for e26:prof -- details available through the CI dashboard
:rotating_light: For more details about the failed phase, check the build DUNE phase logs
parent CI build details are available through the CI dashboard

trigger build with DUNE/dunesw#82

:heavy_check_mark: CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

:heavy_check_mark: CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

:x: CI build for DUNE Failed at phase build DUNE on slf7 for c14:prof -- details available through the CI dashboard
:rotating_light: For more details about the failed phase, check the build DUNE phase logs
parent CI build details are available through the CI dashboard

trigger build with DUNE/duneana#82

:heavy_check_mark: CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

:x: CI build for DUNE Failed at phase build DUNE on slf7 for c14:prof -- details available through the CI dashboard
:rotating_light: For more details about the failed phase, check the build DUNE phase logs
parent CI build details are available through the CI dashboard

Looks like I can fix the remaining Clang error.  I'll merge this and make a commit to fix it.

:warning: CI build for DUNE Warning at phase ci_tests DUNE on slf7 for e26:prof - ignored warnings for build -- details available through the CI dashboard
:rotating_light: For more details about the warning phase, check the ci_tests DUNE phase logs
parent CI build details are available through the CI dashboard

:warning: CI build for DUNE Warning at phase ci_tests DUNE on slf7 for e26:prof - ignored warnings for build -- details available through the CI dashboard
:rotating_light: For more details about the warning phase, check the ci_tests DUNE phase logs
parent CI build details are available through the CI dashboard


Nie 60: Synopse: reenable sorting by date

The poems in the synopse are now sorted by date, further by seqnum. Usually this corresponds to the letters in the titles, but I wouldn't be sure. Anyhow, the order should be the same if you reload it some times.
The convolute view should not be slowed down by this because the sorting only applies for the Synopse.

Do not merge yet.
The titles seem to be correct in their order but the texts and convolutes are shuffled

If we re-insert the clause
&& this.poemsInGrid.every(x => x[ 6 ] !== undefined && x[ 7 ] !== undefined)
, then there is no mess more with Convolute, but then the poems are no more sorted by date.

Well, either the sorting in with it the first+last or the title-text correspondence is buggy...
But I am for re-inserting it as it is more visible and we won't forget it.


Fixed error in pytesseract path for linux

Added some packages for installing in setup.py
Closes #17

Good optimization of code


#32: Template renaming should not be exclusive to components

first draft of a possible implementation of the renameConfig stuff

King! ❤


Primary key property  has duplicate values after migration

happened on migration
my model version 1
class AAAA: Object {
    dynamic var code: Int = 10
}

and version 2
class AAAA: Object {
    dynamic var id: Int = 0
    dynamic var code: Int = 10
    override static func primaryKey() -> String? {
        return "id"
    }
}

migration code
func migrationVersion() {
        let config = Realm.Configuration(
            schemaVersion : 1 ,
            migrationBlock : { migration, oldSchemaVersion in
                if oldSchemaVersion < 1 { }
            }
        )
        Realm.Configuration.defaultConfiguration = config
}

then I try! Realm(), error was happen
fatal error: 'try!' expression unexpectedly raised an error: Error Domain=io.realm Code=1 "Primary key property 'AAAA.id' has duplicate values after migration." UserInfo={NSLocalizedDescription=Primary key property 'AAAA.id' has duplicate values after migration., Error Code=1}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-802.0.53/src/swift/stdlib/public/core/ErrorType.swift, line 182
(lldb)

Primary keys are required to be unique across all objects of a given type. In your first schema version, you have no primary key, and no property named "id". When you migrate to schema version 1 (your second schema), Realm will populate all the missing properties for existing objects (in this case, id) with the default value you specified (in this case, 0, since you have var id: Int = 0 in your model). This means that if you have X number of AAAA objects in your Realm when you attempt the migration, you'll have X number of duplicate AAAA.id property values.
In your migration code, you'll need to make sure you're setting unique values for all those existing objects:
func migrationVersion() {
    let config = Realm.Configuration(
        schemaVersion : 1 ,
        migrationBlock : { migration, oldSchemaVersion in
            if oldSchemaVersion < 1 {
                var nextID = 0
                migration.enumerateObjects(ofType: AAAA.className()) { oldObject, newObject in
                    newObject!["id"] = nextID
                    nextID += 1
                }
            }
        }
    )
    Realm.Configuration.defaultConfiguration = config
}

oh i see!! because i have many AAAA in database,  thank you very much

Happy to help.

Hello, I have same issue, but in my first scheme id is present and need to be update as primaryKey().
But I have id started not zero, how I can migrate to new scheme with primaryKey ?

This is how I resolved it.
func migrationVersion() {
let config = Realm.Configuration(
schemaVersion : 1 ,
migrationBlock : { migration, oldSchemaVersion in
if oldSchemaVersion < 1 {
migration.enumerateObjects(ofType: QAppendices.className()) { oldObject, newObject in
                if let id  = oldObject?["id"] as? NSNumber{

                    newObject!["id"] = id.intValue
                }
            }
        }
    }
)
Realm.Configuration.defaultConfiguration = config

}


Fix upgrade file changes for function COL_NAME()

Description
In the PR-1703, the upgrade file changes were made in 3.2.0 -- 3.3.0 by mistake, corrected this by adding the changes in 3.3.0 -- 3.4.0.
Test Scenarios Covered
NA
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

The function should be there only once which before the below line
SELECT set_config('search_path', trim(leading 'sys, ' from current_setting('search_path')), false);

Yes, my bad, I pulled the code after commit, so yeah it got skipped. Fixed it.


Fixes bitrot (partially)

This partially fixes the failing tests/bitrot that has happened with recent changes to BAP.

We create a property for Theory.Program.cls that holds the semantics for the patch program, and then we register a promise to provide this semantics for Theory.Semantics.cls . For all program labels that we didn't create specifically for each patch object, this semantics will be empty, so we can avoid any conflicts. @jtpaasch  had this fixed in #204, so I apologize for stealing his thunder in this PR.
The skipped test in test_compiler is now fixed and it passes.
All but one of the system tests are fixed. The Thumb system tests seemed to suffer from program labels having the :unknown encoding, perhaps due to a recent change in BAP. To fix this, we manually provide the OGRE file to force BAP to lift the affected code as Thumb.
The remaining system test that fails is arm-bounds-check. For some reason, the output from Boolector now causes errors in Z3. This should probably be fixed on the WP side instead of VIBES.

I believe I've tracked down issue 4 to this commit in Z3, which came after the 4.8.14 release:
https://github.com/Z3Prover/z3/commit/a326ad4cd9a345547708672b676435f2723fbe10


Fix issue with block bindings in while/do-while loops

The transformer was incorrectly calling transformAny with undefined.
Fixes #1970

@johnjbarton PTAL

LGTM, but I don't see immediately how the fix and the bug are connected.

A while back I made the transformers and visitors more strict. They now fail when undefined is passed which was the case because WhileStatement does not have an initializer.


WebLLM Example Code does not Work in Google Chrome

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain.js documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain.js rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
Tried the example code from langchain and it throws exception in Google chrome.
web-llm 0.2.46
const model = new ChatWebLLM({
  model: 'Phi-3-mini-4k-instruct-q4f16_1-MLC',
  chatOptions: {
    temperature: 0.5,
  },
});
const response = await model.invoke([
  new HumanMessage({ content: "What is 1 + 1?" }),
]);

Error Message and Stack Trace (if applicable)
Error: Model not loaded before calling chatCompletion(). Please ensure you have called `MLCEngine.reload(model)` to load the model before initiating chat operations, or initialize your engine using `CreateMLCEngine()` with a valid model configuration.
    at MLCEngine.<anonymous> (chunk-ZOKLVKAW.js?v=427e5d1f:13082:15)
    at Generator.next (<anonymous>)
    at chunk-ZOKLVKAW.js?v=427e5d1f:978:67
    at new Promise (<anonymous>)
    at __awaiter (chunk-ZOKLVKAW.js?v=427e5d1f:960:10)
    at MLCEngine.chatCompletion (chunk-ZOKLVKAW.js?v=427e5d1f:13080:12)
    at Completions.create (chunk-ZOKLVKAW.js?v=427e5d1f:11815:24)
    at ChatWebLLM._streamResponseChunks (@langchain_community_chat_models_webllm.js?v=427e5d1f:102:55)
    at _streamResponseChunks.next (<anonymous>)
    at ChatWebLLM._call (@langchain_community_chat_models_webllm.js?v=427e5d1f:125:22)

Description
WebLLM Example Code does not Work in Google Chrome
System Info
<EMAIL_ADDRESS>| MIT | deps: 16 | versions: 277
Typescript bindings for langchain
https://github.com/langchain-ai/langchainjs/tree/main/langchain/
keywords: llm, ai, gpt3, chain, prompt, prompt engineering, chatgpt, machine learning, ml, openai, embeddings, vectorstores
dist
.tarball: https://registry.npmjs.org/langchain/-/langchain-0.2.5.tgz
.shasum: fc23848c20244a1d0a3dd5dd4663af9a41017ccb
.integrity: sha512-H5WL0NanCdQ+tzoeEt7Fyz9YGdR3wbfDvfQrJvxAO95istKo5JraRh24dzyvqxM9439xwRMNaMIpMwsyqtWDtQ==
.unpackedSize: 4.0 MB
dependencies:
@langchain/core: ~0.2.0
@langchain/openai: ~0.1.0
@langchain/textsplitters: ~0.0.0
binary-extensions: ^2.2.0
js-tiktoken: ^1.0.12
js-yaml: ^4.1.0
jsonpointer: ^5.0.1
langchainhub: ~0.0.8
langsmith: ~0.1.30
ml-distance: ^4.0.0
openapi-types: ^12.1.3
p-retry: 4
uuid: ^9.0.0
yaml: ^2.2.1
zod-to-json-schema: ^3.22.3
zod: ^3.22.4
maintainers:

nfcampos<EMAIL_ADDRESS>jacoblee93<EMAIL_ADDRESS>andrewnguonly<EMAIL_ADDRESS>davidduong<EMAIL_ADDRESS>hwchase17<EMAIL_ADDRESS>basproul<EMAIL_ADDRESS>
dist-tags:
latest: 0.2.5
next: 0.2.3-rc.0
published a week ago by jacoblee93<EMAIL_ADDRESS>

I suspect related to #5776
We will lock the peer dep to a specific version from here on out

Ah I see - thank you! That PR should fix the example as well then.


IE11 and node.js 0.10 support by adding 100 more bytes to the bundle

This removes the burden many people have. They don't need to polyfil anything now. With this PR Stampit core feature - dependencelessness (What a word!) is preserved. The resulting minified bundle increases by 100 bytes, the .min.gz bundle increases by 40 bytes. :)

IMO, this is a bad idea.

I think we can merge this for now and later we can try the approach through compat if needed. Question is, should we do something similar in @stamp/it also?

Reminder: we're adding ~10 Megabytes of wasted code to the world with this PR, and the correct solution for Stampit users is to use a polyfill CDN.
It is not a library's responsibility to supply polyfills for application authors.
Objection filed. My work here is done. I wash my hands of this.

@FredyC good question... Let me think.


Register an interpreter as a kernel

For #8612

Register an enum as a kernel

With the same display name as the interpreter
With metadata containing the interpreter information
Environment variables of the activated conda environment

Codecov Report

Merging #8839 into master will decrease coverage by 34.39%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #8839      +/-   ##
==========================================
- Coverage   58.67%   24.28%   -34.4%
==========================================
  Files         526      333     -193
  Lines       27225    16449   -10776
  Branches     4062     2460    -1602
==========================================
- Hits        15974     3994   -11980
- Misses      10372    12420    +2048
+ Partials      879       35     -844

Impacted Files
Coverage Δ

...t/datascience/jupyter/kernels/jupyterKernelSpec.ts
27.77% <ø> (-55.56%)
:arrow_down:

...science/jupyter/liveshare/guestJupyterExecution.ts
12.06% <ø> (-6.9%)
:arrow_down:

...ent/datascience/jupyter/jupyterExecutionFactory.ts
16.39% <ø> (-47.55%)
:arrow_down:

src/client/common/types.ts
100% <ø> (ø)
:arrow_up:

src/client/datascience/jupyter/jupyterExecution.ts
9.21% <ø> (-46.06%)
:arrow_down:

src/client/telemetry/index.ts
14.41% <ø> (-72.08%)
:arrow_down:

src/client/datascience/constants.ts
99.66% <100%> (ø)
:arrow_up:

src/client/providers/serviceRegistry.ts
0% <0%> (-100%)
:arrow_down:

src/client/interpreter/serviceRegistry.ts
0% <0%> (-100%)
:arrow_down:

src/client/common/utils/regexp.ts
0% <0%> (-100%)
:arrow_down:

... and 405 more

Continue to review full report at Codecov.

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


Cannot compile a simple tf program but REPL works?!

Hi, I wanted to try out swift for tensorflow, I could set a clion project with the binary files provided for "Ubuntu 16.04" here https://github.com/tensorflow/swift/blob/master/Installation.md. I can successfully run the swift with a TF example in REPL with "swift -I/home/mehran/tfswift/usr/lib/swift/clang/include", but when compiling with clion I get an error for the following simple example, please note that if I comment out var x = Tensor([[1, 2], [3, 4]]) the program runs fine and shows the "hi" output.
import TensorFlow

func main(){
    var x = Tensor([[1, 2], [3, 4]])
    print("Hi")
}
main()

I added "-I/home/mehran/tfswift/usr/lib/swift/clang/include" in the File/Settings/Build,Execution, Deployment/cmake/build options, to add this option for building with tensorflow but it did not help.
Here is the output:
/home/mehran/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/181.4668.70/bin/cmake/bin/cmake --build /home/mehran/CLionProjects/untitled3/cmake-build-debug --target untitled3 -- -I/home/mehran/tfswift/usr/lib/swift/clang/include
Compile Swift Module 'HelloWorld' (1 sources)
/home/mehran/CLionProjects/untitled3/Sources/main.swift:5:9: warning: initialization of variable 'x' was never used; consider replacing with assignment to '_' or removing it
    var x = Tensor([[1, 2], [3, 4]])
    ~~~~^
    _
/home/mehran/CLionProjects/untitled3/Sources/main.swift:5:20: error: array input is not a constant array of tensors
    var x = Tensor([[1, 2], [3, 4]])
                   ^~~~~~~~~~~~~~~
error: terminated(1): /home/mehran/tfswift/usr/bin/swift-build-tool -f /home/mehran/CLionProjects/untitled3/.build/debug.yaml main output:

CMakeFiles/untitled3.dir/build.make:57: recipe for target 'CMakeFiles/untitled3' failed
gmake[3]: *** [CMakeFiles/untitled3] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/untitled3.dir/all' failed
gmake[2]: *** [CMakeFiles/untitled3.dir/all] Error 2
CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/untitled3.dir/rule' failed
gmake[1]: *** [CMakeFiles/untitled3.dir/rule] Error 2
Makefile:118: recipe for target 'untitled3' failed
gmake: *** [untitled3] Error 2

and here is my cmake file
cmake_minimum_required(VERSION 3.10)
project(untitled3)

add_custom_target(untitled3 ALL
        COMMAND /home/mehran/tfswift/usr/bin/swift build
        WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
        SOURCES Package.swift Sources/main.swift)

You need to pass the -O flag to enable optimizations: swift build -Xswiftc -O.
This question is explained in our FAQ.

Thanks, it works, just for the future  reference (in case others are directed here with the search engine) here is the complete cmake file,
cmake_minimum_required(VERSION 3.10)
project(untitled3)

add_custom_target(untitled3 ALL
        COMMAND /home/mehran/tfswift/usr/bin/swift build -Xswiftc -O
        WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
        SOURCES Package.swift Sources/main.swift)

Thanks for sharing!


prereq call to service

Requirement for https://github.com/fti-technology/ringtail-deploy-web/pull/109

can you bump the version?

I didn't know we had version numbers on this. Will do and in the future.


[NEW CONTENT TYPE REQUEST] Tcl source code

What type of file would you like magika to detect?

Tcl source code (.tcl, .test)

What software can create/open these files?

Various implementations of the Tcl programming language, like Tcl 8.6, Jim Tcl, JTcl, etc.

Where can these files be found?

Tcllib, the Tcl standard library
The SQLite test harness (information)
MacPorts
GitHub projects

If possible, please provide a specification for this file type.
The "Dodekalogue" is an informal specification of modern Tcl syntax.

Thanks for all the info!

Was this meant to be closed?  As far as I can tell, Tcl is still not supported.

@qwertychouskie, for context: we are tracking missing content types with a tag, and then we import it in our knowledge base. And then we close the issue to clean things up. TCL is indeed not supported in v1, but it looks like we'll be able to add it for v2 of the model.


feat: start pytest-cov integration

Here's the version that runs only newly added tests as discussed in #92. The integration test uses pytester. For the unit test of filter_pytest_items I couldn't figure out how to build actual an pytest Item so I relied on some fake objects. Don't know if that's a good or a bad thing.
closes #92

wait before merging, I'll double-check that the right version will be published

Yes the right version will be published:
> semantic-release print-version -D version_variable=pytest_rts/__init__.py:__version__
2.1.0

Does the release version bump up on every commit or every PR? Should a single PR have a single commit ?

Does the release version bump up on every commit or every PR? Should a single PR have a single commit ?

Yes, it bumps minor version on every "feat" commit and patch on every "fix". Everything else doesn't change the version. It is absolutely fine to have several commits in the PR.


DRTV fails downloading video JSON

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
PS C:\temp\dr\youtube-dl> python.exe .\youtube_dl_main_.py --verbose https://www.dr.dk/drtv/se/hammerslag_-foerstegangskoebet_407460
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.dr.dk/drtv/se/hammerslag_-foerstegangskoebet_407460']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 00ef748cc
[debug] Python 3.11.6 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 - OpenSSL 3.0.11 19 Sep 2023
[debug] exe versions: ffmpeg 6.0-essentials_build-www.gyan.dev, ffprobe 6.0-essentials_build-www.gyan.dev
[debug] Proxy map: {}
[drtv] hammerslag_-foerstegangskoebet_407460: Downloading webpage
https://www.dr.dk/drtv/se/hammerslag_-foerstegangskoebet_407460
[drtv]<PHONE_NUMBER>0: Downloading video JSON
https://www.dr.dk/mu-online/api/1.4/programcard?expanded=true&productionnumber=00952316100
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "C:\temp\dr\youtube-dl\youtube_dl\extractor\common.py", line 666, in _request_webpage
return self._downloader.urlopen(url_or_request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\temp\dr\youtube-dl\youtube_dl\YoutubeDL.py", line 2461, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\urllib\request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\urllib\request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\urllib\request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
PS C:\temp\dr\youtube-dl>
Description
Tested both with 2021.12.17 and latest master branch.
Worked last week - it would seem the https://www.dr.dk/mu-online/api/1.4/programcard has been deprecated?
I can't find any reference to it when using the web page.
All links I have tried on dr.dk fails with the same error now.

The page has a "hydration" JSON block assigned to window.__data containing programme metadata and preview media links. To get the actual media links, the site makes this request (Copy as cURL from Mozilla webtools):
curl 'https://production.dr-massive.com/api/account/items/407460/videos?delivery=stream&device=web_browser&ff=idp%2Cldp%2Crpt&lang=da&resolution=HD-1080&sub=Anonymous' -H 'User-Agent: Mozilla/5.0 (X11; Linux i686; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/<IP_ADDRESS>' -H 'Accept: application/json' -H 'Accept-Language: en-GB,en;q=0.5' --compressed -H 'X-Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJzaWQiOiJiNmYxYjFjNS1mNTM0LTRhZmYtOWYwZS1hODUxOTdiN2JmMmQiLCJzcHIiOiJOb25lIiwiYXVkIjoiaHR0cDovL2lzbC5kci1tYXNzaXZlLmNvbS9JU0wvQXBpL1YxL0RhdGFzZXJ2aWNlIiwic3ViIjoiQ2F0YWxvZyIsImV4cCI6MTY5NjU4NTY3OSwidXNlckFjY291bnRJZCI6ImNhNTg5YzFmZGU4MTRlOWE4MDIyMjhlZGZkNzI0MDlkIiwidXNlclByb2ZpbGVJZCI6ImNhNTg5YzFmZGU4MTRlOWE4MDIyMjhlZGZkNzI0MDlkIiwiZW1haWwiOiJjYTU4OWMxZmRlODE0ZTlhODAyMjI4ZWRmZDcyNDA5ZEBleGFtcGxlLmNvbSIsImRldmljZSI6IndlYl9icm93c2VyIiwidmFsaWRVbnRpbCI6MTY5OTEzNDQ3OSwiaWF0IjoxNjk2NTQyNDc5LCJpc09wdGVkT3V0Ijp0cnVlLCJpc0NvdW50cnlWZXJpZmllZCI6ZmFsc2UsImdlb0xvY2F0aW9uIjoiYWJyb2FkIiwiaXNEZXZpY2VBYnJvYWQiOnRydWUsImlzRmFsbGJhY2tUb2tlbiI6ZmFsc2UsInN1YnNjcmlwdGlvbiI6IkFub255bW91cyIsImNvbnNlbnQiOltdLCJzZXNzaW9uU3RhdGUiOm51bGx9.RxOGorDcjT69xFoG2cDgjiLSgLJZD0v83ItuVnvlWAWTJM_wFcc5sxH1EDLjLcmcfdy2aWOov0vlh-ePBi5WPV8vanB0aMdC23_NqrujdSKLWSIpNuKCyQ5Gx1e3Vz5edaWpDIWAsGBU3dLjo7ItWfL8rTIPskQ4mrIVfpPNzLK-R6OnSneMl7bqItdKwm4wuMYypqnp8YhI4kbzxiFAP3Y2mmCvnHeN9QiCXkYYyPp_Vy40mfAsGRCRA7se8wDuQlvarE4om863VCpaS5mi-mcK_qisele8eeZ8jWy4g6A1hNEbErQXn7xMoQCptlSc8fOZdItOML3W0rpiJG5Hfg' -H 'origin: https://www.dr.dk' -H 'Referer: https://www.dr.dk/drtv/se/hammerslag_-foerstegangskoebet_407460' -H 'DNT: 1' -H 'Connection: keep-alive'

To reproduce this we have to work out how to get the bearer token (required), among other things.

-hi,
Since I am not an expert on JSON I can only comment in general terms. Sorry for that.
I can confirm that ytp-dl is no longer working on www.dr.dk/drtv
I have been using an older version (2023.03.04) until yesterday. Newer versions did not work.
Today this old version also failed (and any later version).
I tried the product svtplay-dl today. It can download older contents from dr..dk/drtv but not the latest.
For instance:
Success with the "Beck" Series.
Failure with "Das Boot" (very latest contents).
Again. I apologize for these general observations. Best I can do. I love yt-dlp and anyone who makes it work with dr.dk/drtv
Been using it for years.
/regards

Actual example URLs would help, so that we can determine if the old page structures still apply.
Thanks @viktor-enzell for the hint. I guess this is the relevant fragment:
        deviceid = uuid.uuid1()
        res = self.http.request(
            "post",
            "https://isl.dr-massive.com/api/authorization/anonymous-sso?device=web_browser&ff=idp%2Cldp&lang=da",
            json={"deviceId": str(deviceid), "scopes": ["Catalog"], "optout": True},
        )
        token = res.json()[0]["value"]

As svtplay is MIT-licensed, we can't copy this code directly but it should be possible to embody the procedure shown.

Right. 2 links that definitely does not work with yt-dlp:
https://www.dr.dk/drtv/se/das-boot_-en-ny-chance_393842
https://www.dr.dk/drtv/se/beck_-paa-tynd-is_412058

Pages that work OK (if any) are also of interest!
Also bear in mind that this tracker is for yt-dl rather than yt-dlp, although in this case both used the same code with the 404 API host. The yt-dlp extractor knows about series/season pages (it uses the new API host for those). When the current issue is fixed (here or there) we can unify the extractor versions. There is an open PR here that will need to be updated.

If anyone needs to be able to route traffic through Denmark in order to test this, please get in touch.

Using the hint provided by @viktor-enzell I have made local modifications to the extractor drtv.py such that my yt-dlp can now access the links provided by @PeterBehrend. All parts of the original drtv.py that make use of the DR api "mu-online" seem to be rendered useless by recent changes at DR. My modifications incur potentially undesirable dependencies on the modules requests and uuid.  I use _extract_m3u8_formats_and_subtitles to provide formats and subs. I'ts little more than a proof-of-concept. I'm not sure if it's worthy of a pull-request as is.

Thanks. If you're willing to release your code under Unlicense and to put it up in a GH repo, or even easier, a Gist, I can probably adapt your tactics to yt-dl conventions: certain things would be hard, like having to use HTTP/2, say.
This version of uuid is fine to use. requests has to be worked around.

Thank you. Where data is read (using the token) there should probably be a way to specify resolution. I hope you'll figure out the details. I tried to extract more details, but the things I tried did not work from all DR links. I removed some and commented some. Here's the gist:
https://gist.github.com/lyngklip/3be04b1cf380536f76713cd09d4ac61a

With my changes to drtv.py, yt-dlp insisted on downloading a "SpokenSubtitles" version of "Das Boot" season 2 episode 8. That's because I just used format[0]. For that reason I've updated the gist to iterate over formats more like drtv.py did before. I suppose you would figure that out anyway. On a further note I have to use --downloader ffmpeg with "Das Boot" due to an unrelated yt-dlp issue.

The requests stuff could be s/t like this. Note that yt-dl code shouldn't have f'{strings}' and uses Ellipsis for ..., though these are fine in yt-dlp. Both projects quote strings 'singly'.
-        token = requests.post("https://isl.dr-massive.com/api/authorization/anonymous-sso?device=web_browser&ff=idp%2Cldp&lang=da", json={"deviceId": str(deviceId), "scopes": ["Catalog"], "optout": True}).json()[0]["value"] # , headers={"Content-Type": "application/json"}
+        token = self._download_json('https://isl.dr-massive.com/api/authorization/anonymous-sso?device=web_browser&ff=idp%2Cldp&lang=da', data=json.dumps({'deviceId': compat_str(deviceId), 'scopes': ['Catalog'], 'optout': True}).encode('utf-8))[0]['value']
-        data = requests.get(f"https://production.dr-massive.com/api/account/items/{itemId}/videos?delivery=stream&device=web_browser&ff=idp%2Cldp%2Crpt&lang=da&resolution=HD-1080&sub=Anonymous", headers={"authorization": f"Bearer {token}"}).json()
+        data = self._download_json('https://production.dr-massive.com/api/account/items/{0}/videos?delivery=stream&device=web_browser&ff=idp%2Cldp%2Crpt&lang=da&resolution=HD-1080&sub=Anonymous'.format(itemId), headers={'authorization': 'Bearer {0}'.format(token)})

Cheers. I have no prior experience with either project which is another reason I was hesitant to make pull requests. I have updated the gist to reflect your suggestions.

With my changes to drtv.py, yt-dlp insisted on downloading a "SpokenSubtitles" version of "Das Boot" season 2 episode 8. That's because I just used format[0]. For that reason I've updated the gist to iterate over formats more like drtv.py did before. I suppose you would figure that out anyway. The gist obviously only contains the parts of the full drtv.py file that are changed, i.e. the _real_extract() method of the DRTVIE class. Other classes and tests and what not should stay.
On a further note I have to use --downloader ffmpeg with "Das Boot" due to an unrelated yt-dlp issue.

Regarding subtitles, it would be great if you can ensure it grabs all subtitles with the --all-subs  tag. Here's an example of a video that has two subtitles even though it's technically a Danish show. It begins with an Italian woman talking a bit, the rest is Danish.
https://www.dr.dk/drtv/se/spise-med-price_-pasta-selv_397445
It has these two subs:
https://drod22r.akamaized.net/all/clear/none/ec/64c74410ef918632984110ec/00212301010/subtitles/Foreign-21269858-227d5e6d-8d67-45ca-b672-c174e7ae86d4.vtt
https://drod22r.akamaized.net/all/clear/none/ec/64c74410ef918632984110ec/00212301010/subtitles/Foreign_HardOfHearing-21269858-227d5e6d-8d67-45ca-b672-c174e7ae86d4.vtt
The first one only displays foreign language, the second one has all subtitles combined. They have these JSON tags:
1st: 'language': 'ForeignLanguageSubtitles'
2nd: 'language': 'CombinedLanguageSubtitles'
I wish could contribute more but I'm bad at Python. But this is some of the data I've dug up while debugging.

The gist now appends subtitles like drtv.py did before. I hope that works out for you.

@lyngklip would you be willing to share more of your findings?

For info I am close to finalizing my changes to yt-dlp in issue https://github.com/yt-dlp/yt-dlp/issues/8298
Just need to commit the changes and have it reviewed

DRTV has now been fixed and thoroughly tested in the yt-dlp project - https://github.com/yt-dlp/yt-dlp/issues/8298

Just a few comments:

are news and radio gone?
what about the live streams?
timestamp should normally be set when release_timestamp is set, even if they have the same value
timestamps in the tests seem to be relative to CET rather than UTC, so the tests fail in other TZs.

This last issue is tricky and probably affects many sites. The metadata sent by DRTV has a broadcast time in ISO 8601 format with no explicit time-zone. The programme page may include a default TZ in ld+json or hydration JSON (like Europe/Copenhagen) or we could assume one (but does DRTV broadcast in Greenland?). But Python (<3.9) and the yt-dl utility routines don't give us an easy way to apply a TZ specified by name, even if we transform it into a TZ string like CET-1CEST,M3.5.0/2,M10.5.0/3 which contains all the information needed to determine the UTC offset for a date-time string with no explicit time-zone (apart from the ambiguous hour when CEST is rolled back).

@dirkf
Are you replying to my changes to the yt-dlp project ? Just making sure.
I only spent a short time looking at radio and live streams (what is "news"?), but gave up. I'm sure it's possible, but I felt downloading the regular shows is more important. Maybe radio/live streams can be a new issue # in itself if anyone is up for it.
I hven't dug much into the timestamps, but is that so important?

Timestamps that vary according to location cause tests to break depending on where the tests are run, which can't be controlled when GitHub runs the tests in VMs, or if devs elsewhere try to run them. Ofc we can just change the test value to int but then the test doesn't show that the extraction is getting the expected value (because it may not be). However I've run up a little routine that I hope will mostly solve the problem: "mostly" because code to process dates and times is bound to be wrong somehow; also because there's no unambiguous answer to the question "what is the UTC offset of this date time string from CET/CEST (or any TZ with DST) with no explicit offset?" when the time is within the falling-back hour going from 03:00 CEST to 02:00 CET.
The old extractor had some test URLs with radio and nyheder ("news", isn't it? PR #10536)
The answer to the live pages seems to be in the hydration JSON (json_data) where there are thumbnails and manifest URLs.
I've made a yt-dl version of the extractor including the time munging where I'll also try to update the live extraction (may need DK testers). It'll be in a PR soon, but needs some enhancements to be pulled from yt-dlp core. Many thanks for resolving the new site structure and the playlist handling.

It's also possible to bypass this error by adding the --no-check-certificates option when downloading from dr.dk.
Not even the nightly build fixes this error yet, but bypassing the certificate check (although unadvisable) will do the trick for now...

The newest version of yt-dlp still had this error, so I got so far as updating to the nightly build.
Instead I got certificate errors when accessing dr.dk URLs.
It's possible to bypass this certificate error by adding the --no-check-certificates option when downloading from dr.dk (although probably generally unadvisable).

404 Not Found is back with the latest stable versions.
C:\>yt-dlp --embed-subs --all-subs https://www.dr.dk/drtv/se/we-are-lady-parts_-spil-noget_460662
[drtv] Downloading anonymous token
[drtv] Extracting URL: https://www.dr.dk/drtv/se/we-are-lady-parts_-spil-noget_460662
[drtv] we-are-lady-parts_-spil-noget_460662: Downloading webpage
[drtv]<PHONE_NUMBER>0: Downloading stream data
ERROR: [drtv] we-are-lady-parts_-spil-noget_460662: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: Not Found>)

Useful to know, but for a_yt-dlp_ maintainer to action that, please post there. A new issue referencing yt-dlp/yt-dlp#8298 would probably be best.


Sec/r software

https://mit-orcd.github.io/orcd-docs-previews/PR/PR73/software/R/

Preview: https://mit-orcd.github.io/orcd-docs-previews/PR/PR73/software/R/

I'm able to run R on all the clusters. Here are a few comments:

For downloading packages not already installed, it is likely a lot easier to go through conda rather than doing the download with personal library (I feel because of dependency issues which I was running into, but I'm not a regular R user) so maybe there can be a sentence before the personal library install instructions urging people to consider the conda method which is later on in the documentation?
Shaohao helped me get an Openmind account and I'm able to run R on there, but Shaohao was saying maybe we don't want to include Openmind on the docs because it is being phased out
in the places with conda create my_R_env , I believe it should be conda create -n my_R_env (at least the first one didn't work for me)
I'm having a similar issue with starting Jupyter notebooks with R as with Jupyter notebooks in general ("Forbidden" error) on Supercloud. I was using the anaconda/2023a module because that has R
I'm not able to change my kernel to R in the engaging Jupyter notebook. I don't see the R option


Questions about structure files of customized databases

Hi, I have a question about the structure files of customized databases. According to the Readme, the first column of the structure file should be sequences ID. Does this need to be unique? How can we deal with the situation that a sequence has several different types? For example, should I construct the structure file like:
level1 level2 level3
seq1 subtype1 type1(Ni)
seq1 subtype1 type2(Co)
or
level1 level2 level3
seq1 subtype1 type1(Ni),type2(Co)
Looking forward to your reply, Thank you!

level1 need to be unique, so two seq1 is not allowed. Your second construction seems fine.

Thank you very much for your quick reply! Another question is that what's the difference between '--structure1(single component)', '--structure2(two-component)' and '--structure3 (multi-component)'. The help page does not detail this.

--structure2 is for two-component systems so each component is weighted by 0.5, --structure3 by 1/3.

What do you mean by two-component systems? For example, I cannot see the difference between 'two-component_structure.txt' and 'multi-component_structure.txt' for the default database.
two-component:

multi-component:

Does it refer to the situation that a gene has two types or subtypes? And what's the influence on the result by using --structure2/--structure3?

All genes listed in the two-component.txt file will be weighted by a factor of 0.5. The structure of the three files (single, two, multi) is identical, the only difference it the weight (1, 1/2, 1/3) applied when calculating the abundance.

Thanks, that's clear!


Player attack does not affect Enemy

After #11  changes player sword collider no longer activate after attack

Fixed: after making new statue system, weapon checker checking infinitly so after player gain weapon SwordOn funcion was activated continusly so it turned off a weapon collider every update action.
Added boolean status after once weapon was activated it will not check weapon, for now i dont need any changing weapon function.


fix: #256

What this PR does:
Which issue(s) this PR fixes:

Fixes #256
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Codecov Report

Merging #269 (0885290) into master (ddd683f) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #269      +/-   ##
==========================================
- Coverage   37.40%   37.37%   -0.03%
==========================================
  Files          93       93
  Lines       13692    13800     +108
==========================================
+ Hits         5121     5158      +37
- Misses       7928     7994      +66
- Partials      643      648       +5

Impacted Files
Coverage Δ

pkg/mysql/conn.go
39.94% <ø> (ø)

pkg/mysql/execute_handle.go
0.00% <0.00%> (ø)

pkg/dataset/priority_queue.go
66.30% <0.00%> (-27.45%)
:arrow_down:

pkg/dataset/fuse.go
45.00% <0.00%> (-9.00%)
:arrow_down:

pkg/merge/merge_rows.go
57.14% <0.00%> (-6.02%)
:arrow_down:

pkg/executor/redirect.go
9.13% <0.00%> (-0.14%)
:arrow_down:

pkg/runtime/runtime.go
3.22% <0.00%> (-0.12%)
:arrow_down:

pkg/merge/impl/group_by/group_by_value.go

.../merge/impl/group_by/group_by_stream_merge_rows.go

pkg/merge/impl/group/group_stream_merge_rows.go
81.08% <0.00%> (ø)

... and 2 more

Continue to review full report at Codecov.

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


How to filter multiple classes on load?

For example I have :

I want to filter class1, class2, and class4 on load
I have tried using load: {
filter: '.class1', '.class2', '.class4'
}
but this doesnt work. How can I achieve this?

You're almost there but you need to provide a single string: '.class1, .class2, .class4'


Fixing example README to keep it consistent with the changes that went in

Description
(Brief description on what this PR is about)
The "python-howto" was removed in a previous commit "3e8a976d805dee130831d4f54b7a5dd9f1a7c7bd". The reference to this folder wasn't removed from the README file. Removed the reference in this PR.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@ThomasDelteil : Could you please let me know if this is the right fix?
fixes https://github.com/apache/incubator-mxnet/issues/14572

@vdantu Can you re-trigger the CI with an empty commit ?


question about hyper-parameters

I recently ran your code and found that the performance was not nearly as good as in the relevant papers.
Here is my result.

I suspect that this might be consequence of improper hyper-parameter settings or other factors that have not been taken into consideration.
Here is the command to run code.
python run_expt.py -d arxiv -m Sketch-GCN --device 2 --compress_ratio 0.1 --num_epochs 200 --runs 2
I would like to report this issue and request your help in identifying the potential causes and solutions.

I would like to ask if this problem has been solved? I also can't achieve the results reported in the paper. I would be grateful for timely feedback!

@iammcy sorry, the problem remains unsolved.

I have a doubt in running the GitHub-repository. I will appreciate if someone can help me with the issue.
I keep getting error in the line 91, “dataset = PygNodePropPredDataset(name='ogbn-{}'.format(args.dataset)” in the run_expt.py file.
I have resolved some errors related with it, but is there a solution to process it correctly? The latest error is: “assert(additional_file[:5] == 'node_')
AssertionError”.


[styles] Cannot change styles based on props with makeStyles for @media

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
I cannot update styles when @media () { ...style } is dynamic
Expected Behavior 🤔
Styles should change when @media () { ...style } change ex.
I have a state looks like this
const [state, setState] = React.useState({
   "@media (min-width: 600px)": {
      backgroundColor: 'red'
   }
})

I create styles from the state
// above App
const useStyles = makeStyles({
   root: style => style
})

// inside App
const classes = useStyles(state)

// this div consume the classes
<div className={classes.root} style={{ width: 200, height: 100 }} />

Then I click button to update state
const newState = {
   "@media (min-width: 600px)": {
      backgroundColor: 'yellow'
   }
}
<button onClick={() => setState(newState)}>update</button>

But div background does not change to yellow. I tried with other pseudo class and they works, seems like the problem is with @media

Steps to Reproduce 🕹
try this sandbox
https://codesandbox.io/s/material-demo-k2qrr?file=/demo.js
Context 🔦
I am trying to update styles based on props for specific breakpoint.
Your Environment 🌎

Tech
Version

Material-UI
v4.9.10

React
v16.13.1

An update, this issue is being resolved in v5 thanks to #22342 and the new @material-ui/styled-engine package.
The same codesandbox but updated & working with the latest alpha version: https://codesandbox.io/s/material-demo-forked-eq5ss?file=/demo.js.

An update, we have now made enough progress with the new @material-ui/styled-engine package in v5 to move toward a progressive removal of the @material-ui/styles package (based on JSS). The current plan:

In v5.0.beta.0, this package will come standalone, in complete isolation from the rest.
In v5.0.0, this package will be soft deprecated, not promoted in the docs, nor very actively supported.
During v5, work on making the migration easier to the new style API (sx prop + styled() API). We might for instance, invest in the documentation for using react-jss that has more or less the same API. We could also invest in an adapter to restore the previous API but with emotion, not JSS.
In v6.0.0, this package will be discontinued (withStyles/makeStyles API).

This was made possible by the awesome work of @mnajdova.


cross-env on devDependencies

Hello!
I'm having some problems with production build due to errors related to production dependencies, so the production environment install only the production dependencies (which is just the package.json dependencies, not devDependencies).
In my case, i solved moving the cross-env to "dependencies".
Can we move this dependency from "devDependencies" to "dependencies"?

Thanks for the awesome project, i'm using on production! :)

Hey @sergiokopplin!
Thanks, glad to hear that you are finding this project helpful. 😀
Sure thing about cross-env!

@ctrlplusb should i create a pr? let me know!

Hey @sergiokopplin I have ended up removing cross-env as we no longer need it based on the updates to v13.  🎉
It's all on the next branch.

thanks for the update @ctrlplusb. awesome work here!!!


inference time cost?

have you test the FPS ?

about 10 using rtx 4070 laptop version, using base model


Add some notes about codespace options

We should add a few notes about this screenshot: https://github.com/r-devel/r-dev-env/blob/main/README.md?plain=1#L19. Actually, we will need to go back a bit to the line before the screenshot:
Click on the 'Open in GitHub Codespaces' button to bring up the codespace setup screen:
[screenshot]
You will see the message "Codespace usage for this repository is paid for by ", with your username. Don't panic! GitHub offers 120 hours codespace usage for free, you can check your allowance under "Codespaces" on https://github.com/settings/billing. You may want to select a region closer to you than the the default - leave the other options as they are and then click the green 'Create Codespace' button.

Codespace offers 120 core hours for free. The devcontainer uses 4 cores by default so that would be 30 hours (see https://github.com/features/codespaces).
The test could be changed (changes in bold) to:
You will see the message "Codespace usage for this repository is paid for by ", with your username. Don't panic! GitHub offers 120 core hours codespace usage for free, you can check your allowance under "Codespaces" on https://github.com/settings/billing. The codespace for this repository defaults to 4 cores which gives you 30 hours for free. You may want to select a region closer to you than the the default - leave the other options as they are and then click the green 'Create Codespace' button.


[BEAM-13015, #21250] Reuse buffers when possible when writing on Dataflow streaming hot paths.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @scwhittle

Nice! Just curious was this noticable in a benchmark/profile? It certainly seems like it will help especially with the many encodes per windmill output

The swap to ByteStringOutputStream caused a test pipeline to flake with OOMs because of a lot partially filled buffers so this removed that issue.
The original swap to use ByteStringOutputStream had noticeable improvements for encoding small things with anywhere from 3 to 10x improvement (https://github.com/apache/beam/pull/22345) but in the big picture of things it lead to about a 0.5% CPU usage reduction in bigshuffle.


[release-4.8] bootstrap manifests: update Ignition version

Cherry-pick of https://github.com/openshift/okd-machine-os/pull/174 on release-4.8

/retest


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target/pull/283 is merged into live branch.
Auto archive content to https://github.com/OPS-E2E-PPE/docs-archive-test-target.git

Docs Build status updates of commit a918924:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error]

Cannot sync git repo to specified commit because branch Release_Archive_master_2020-01-13-07-06-05 has been deleted or has been force pushed: fatal: couldn't find remote ref refs/heads/Release_Archive_master_2020-01-13-07-06-05

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


Scatter streaming queries should send fields info to client only once.

@sougou @alainjobart

lgtm

Coverage decreased (-0.0%) to 44.19% when pulling 5d74b334e38e1996f047409e7bd2937d9add1fd6 on vtgatescatter into 8fc63d0d681fbb002e542934d327979b69712e0d on vtgatelog.


Switch useless omit to a proper if condition

As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running
[x] Appropriate documentation exists and/or is up-to-date:

[x] README in the role
[x] Content of the docs/source is reflecting the changes

/approve
/lgtm


how do you run this?

i've literally no clue how to launch it..?

Did you download the latest release from the Releases tab? If so, then you should have ACSE.exe and the Resources folder. You need both in the same folder for the program to run.
If you're on a Mac, you won't be able to use this program. If you're on Windows and it won't run, then you probably don't have the latest .NET update installed. You can download that from Microsoft here: https://www.microsoft.com/en-us/download/confirmation.aspx?id=30653
Hopefully that helps you.


action fails on latest macos-14 GitHub runner

Action crashes on m1 GitHub runner.
Lima
https://github.com/piotrpawlaczek/setup-docker-macos-action/actions/runs/7745160104/job/21120522041
Installing Lima version v0.20.1
  x ./
  x ./bin/
  x ./share/
  x ./share/lima/: Can't create 'share/lima'
  x ./share/doc/: Can't create 'share/doc'

Colima
https://github.com/piotrpawlaczek/setup-docker-macos-action/actions/runs/7745338011/job/21121084290
  time="2024-02-01T17:38:08Z" level=info msg="[hostagent] hostagent socket created at /Users/runner/.colima/_lima/colima/ha.sock"
  time="2024-02-01T17:38:08Z" level=info msg="[hostagent] Using system firmware (\"/opt/homebrew/share/qemu/edk2-aarch64-code.fd\")"
  time="2024-02-01T17:38:08Z" level=info msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/runner/.colima/_lima/colima/serial*.log\")"
  time="2024-02-01T17:38:08Z" level=info msg="SSH Local Port: 49251"
  time="2024-02-01T17:38:08Z" level=info msg="[hostagent] Waiting for the essential requirement 1 of 4: \"ssh\""
  time="2024-02-01T17:38:08Z" level=info msg="[hostagent] Driver stopped due to error: \"signal: abort trap\""
  time="2024-02-01T17:38:08Z" level=info msg="[hostagent] Shutting down the host agent"
  time="2024-02-01T17:38:08Z" level=warning msg="[hostagent] failed to exit SSH master"
  time="2024-02-01T17:38:08Z" level=info msg="[hostagent] Shutting down QEMU with ACPI"
  time="2024-02-01T17:38:08Z" level=warning msg="[hostagent] Failed to remove SSH binding for port 49251"
  time="2024-02-01T17:38:08Z" level=warning msg="[hostagent] failed to open the QMP socket \"/Users/runner/.colima/_lima/colima/qmp.sock\", forcibly killing QEMU"
  time="2024-02-01T17:38:08Z" level=info msg="[hostagent] QEMU has already exited"
  time="2024-02-01T17:38:08Z" level=fatal msg="exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see \"/Users/runner/.colima/_lima/colima/ha.stderr.log\")"
  time="2024-02-01T17:38:08Z" level=fatal msg="error starting vm: error at 'creating and starting': exit status 1"
  Error: Process completed with exit code 1.

Thanks for the report, @piotrpawlaczek. I was interested in trying things out in the M1 runners since I saw the post announcing them. Will give this a try this week. 👍

Will skip download the binaries to move straight to the colima VM part of the problem.

@piotrpawlaczek the issue seems to come from lack of support for nested virtualization in the M1 processor. This prevents QEMU or even Virtualization.framework from working.
QEMU will report {"level":"debug","msg":"qemu[stderr]: qemu-system-aarch64: Error: HV_UNSUPPORTED","time":"2024-02-01T19:34:57Z"}
Trying to use Virtualization.framework in Colima through --vm-type=vz will report {"level":"fatal","msg":"Error Domain=VZErrorDomain Code=2 Description=\"Invalid virtual machine configuration. Virtualization is not available on this hardware.\" UserInfo={\n    NSLocalizedFailure = \"Invalid virtual machine configuration.\";\n    NSLocalizedFailureReason = \"Virtualization is not available on this hardware.\";\n}","time":"2024-02-01T19:36:49Z"}.
There's nothing I can do besides see if Github can answer my pleas.

I experimented with this on #27, by the way. Used https://github.com/mxschmitt/action-tmate to ssh into the runner, tried to start Colima and checked logs.

@piotrpawlaczek I can't make this work because of the limitations I mentioned (lack of software support in all cases, lack of hardware support in some), I added a notice and a check that I can't support M-series processors as of today (see #28).
I'm happy to support the M2 and M3 processors when Apple adds the software support.

Hello @douglascamata, I appreciate your discovery and insights. It's unfortunate, though. I was really looking forward to macos-14, especially since our arm64 builds are quite time-consuming on non-native GitHub runners. However, it appears that installing the Docker daemon is not straightforward given the circumstances.


Docs for formatter setting use wrong key

Check for existing issues

[X] Completed

Describe the bug
The docs for the formatter field use the key format_on_save.
To reproduce
Open Zed default settings and read to the formatter docs (currently lines 47-58).
Expected behavior
The docs should use the key formatter.
Environment
Zed 0.55.0 – /Applications/Zed.app
macOS 12.6
architecture x86_64
If applicable, add mockups / screenshots to help explain present your vision of the feature

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue
No response

I believe this is fixed? https://docs.zed.dev/languages/javascript#code-formatting

Still looks the same, that link is unrelated. Open Zed and go to the default settings using the palette, mine still shows as above. The doc comments for formatter only refer to format_on_save which is above, perhaps they're in the wrong order or something.

ah, I see, maybe the issue title could be Doc comments in Default Settings shows "formatter_on_save" instead of "formatter" for the "formatter" config option
wait that's too long 😓
but I think "doc comments" is clearer - i thought you meant the online docs :p


Slip with delay

Hi! I tried it, but found a lag when sliding. Why?🤔

I It seems to be because of a library that I use, thanks


Update README.md - fix broken link

Fix broken link to "Lake Formation Governed Tables" tutorial.
Issue #, if available:
Description of changes:
Fix broken link to "Lake Formation Governed Tables" tutorial.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-pDO66x4b9gEu
Commit ID: 2dc74d86b5a3ba9267a2b09914438ea77b6ef7cc
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


run-precheck fails on README.md

If you run the precheck on the default design, it fails like this:
mrg@diode ~/data/caravel_user_project ((HEAD detached at mpw-two-c))$ make run-precheck
cd /home/mrg/open_mpw_precheck && \
docker run -v /home/mrg/open_mpw_precheck:/usr/local/bin -v /home/mrg/data/caravel_user_project:/home/mrg/data/caravel_user_project -v /software/PDKs:/software/PDKs -v /home/mrg/data/caravel_user_project/caravel:/home/mrg/data/caravel_user_project/caravel \
-u 1000:1000 efabless/open_mpw_precheck:latest bash -c "python3 open_mpw_prechecker.py --pdk_root /software/PDKs --target_path /home/mrg/data/caravel_user_project -rfc -c /home/mrg/data/caravel_user_project/caravel "
{{PROGRESS}} Executing Step 0 of 8: Extracting GDS Files
{{PROGRESS}} Executing Step 1 of 8: Project License Check
{{WARNING}} SPDX COMPLIANCE Found 22 non-compliant files with the SPDX Standard. Check full log for more information
{{PROGRESS}} Executing Step 2 of 8: YAML File Check
{{PROGRESS}} YAML file valid!
Step 2 done without fatal errors.
{{PROGRESS}} Detected Project Type is "digital"
{{PROGRESS}} Executing Step 3 of 8: Project Compliance Checks
{{PROGRESS}} Manifest Checks Passed. Caravel Version Matches.
{{PROGRESS}} Makefile Checks Passed.
{{WARNING}} Default README.md checks failed because: Could not open file None/README.md
Traceback (most recent call last):
  File "/usr/local/bin/base_checks/check_defaults.py", line 69, in has_empty_documentation
    with open('%s/README.md'%target_path, 'r') as readme:
FileNotFoundError: [Errno 2] No such file or directory: 'None/README.md'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "open_mpw_prechecker.py", line 363, in <module>
    run_check_sequence(target_path, caravel_root, pdk_root, output_directory, run_fuzzy_checks, run_gds_fc, skip_drc, skip_xor, drc_only, dont_compress, manifest_source, run_klayout_drc, run_klayout_fom_density_check, private)
  File "open_mpw_prechecker.py", line 200, in run_check_sequence
    empty_documentation, reason = check_defaults.has_empty_documentation()
  File "/usr/local/bin/base_checks/check_defaults.py", line 82, in has_empty_documentation
    errors +=  "\nCould not open %s/README.md"%directory
NameError: name 'directory' is not defined
make: *** [Makefile:146: run-precheck] Error 1
mrg@diode ~/data/caravel_user_project ((HEAD detached at mpw-two-c))$

@mguthaus I will be closing this issue as it is not longer relevant to the current codebase, if the issue still persists please open a new issue, hope you understand 🙏


Etcher not running in electron >v0.31.2 on GNU/Linux

Versions >v0.31.2 seem to fail when running as administrator for some reason.

See https://github.com/atom/electron/issues/3666 for more information.

This was fixed in https://github.com/atom/libchromiumcontent/pull/180. Waiting for the next Electron release to confirm and close.


ctrl+s in script editor does not work without an open scene

Godot version:

3.1
OS/device including version:

Any
Issue description:

The ctrl+s shortcut within the script editor does not work unless a scene file is currently open in the scene editor. It displays a warning telling you that you can only save with an open scene.
Steps to reproduce:
Close all scenes, edit a script, press ctrl+s.
Minimal reproduction project:

Duplicate of #22730?

Not quite. You can save manually. But the hotkey pops up with an error message.

Duplicate of #11801 actually.
The thing is that Ctrl+S is the shortcut to save the scene (which can't be done if there's no scene to save). The shortcut to save a script is Ctrl+Alt+S.


support in transformer for assignments

Everything works (tests are passing), but this could probably use some cleanup/refactoring.
Note, I had to do some split code paths to deal with statements vs expressions.
I noticed in the TS source, operators like +=, -=, etc... are referred to as 'compound assignment operators" so I'm sticking with that terminology for those.

Looks like I have tests to fix...


If use Docker to build the image as introductions,the name should obey dns rules,and so the name of image must be lowercase?

If use Docker to build the image as introductions,the name should obey dns rules,and so the name of image must be lowercase?
After I changed the name of image to upper case,the process can not completed with enviromental errors.

Sorry, I'm not sure what you mean. Can you share the exact command and error?

Thanks .PLZ find the errors as follow:
base) mac@macdeMacBook-Pro ClimaX % cd cd docker (base) mac@macdeMacBook-Pro ClimaX % docker build -t ClimaX .
[+] Building 0.0s (0/0)                                                                                docker:desktop-linux
ERROR: invalid tag "ClimaX": repository name must be lowercase

Ah, okay. Feel free to adjust to all lowercase. I haven't checked these on mac docker. The tag name you use in the docker creation doesn't matter as long as you are consistent!

Thanks for your kindness.However,something still went wrong way even I have changed the mirror name to all lowercase:
failed
567.8
567.8 CondaEnvException: Pip failed
567.8
Dockerfile:39
37 |     ENV PATH=/opt/conda/bin:${PATH}
38 |     ENV conda update -n base conda
39 | >>> RUN conda env create -f /tmp/environment.yml
40 |
41 |     SHELL ["conda", "run", "-n", "climaX", "/bin/bash", "-c"]
ERROR: failed to solve: process "/bin/sh -c conda env create -f /tmp/environment.yml" did not complete successfully: exit code: 1
SO should I amend the Dockerfile or envirment.yaml files?

This doesn't tell what the exact error is. Likely some package has issues installing? Python packaging is a mess.

Oh /mnt/data is just a random path. You should change it to the path you have your local data stored.


T?.? can't resolve com.google.android.gms:play-services-appindexing

Gradle target has changed to 'com.google.firebase:firebase-appindexing:10.0.1'

Fixed.


synchronization error

hi alex. when i work with keyboard the device prints accidently synchronization error message. in other words device captures the strokes in some cycles and does not capture anything in other times because of synchronization error while I have configured the device speed correctly. what this synchronization error exactly means? because I saw when the size is more than 0xffff this message is printed out. what does this criteria mean?

Synchronization error means that you likely started the capture in the middle of the packet and when this happens, there is no way it can recover, since it needs to track start of packet and end of packet markers to know when the packets start and end.
If this happens in the middle of the capture, then there is likely some noise on the line that gets interpreted as SOP, but EOP is not received for a long time.
This is an unfortunate side effect of the low performance device, there is no way to reliably detect the idle state. I made some improvements towards that in the recent updates and it made things better, but still not 100%.
This is why it works better when the sniffed device is reset before the capture starts, so there is no chance of capture starting in the middle of the packet.

Note that there are a few vendors selling the hardware for the full snuffer on AliExpress now. I don't endorse any if them, but they are there if you want to try. And if you are doing serious work, then having the full version is so much better.

Thanks, i saw some of those devices but i want something a little bit
different.
Excuse me to take your time,
as you said if the pio usb sampler finds the start of the bit then it will
sample the data synchronized till something stopes it, so if nothing stops
the pio, i do not think the pio would miss the start of the bit.
Second, you mean the keyboard has low Performance which causes noises? Or
this is microcontroller?
در تاریخ چهارشنبه ۱۸ سپتامبر ۲۰۲۴، ۸:۳۳ Alex Taradov <
@.***> نوشت:

Note that there are a few vendors selling the hardware for the full
sniffer on AliExpress now. I don't endorse any if them, but they are there
if you want to try. And if you are doing serious work, then having the full
version is so much better.
—
Reply to this email directly, view it on GitHub
https://github.com/ataradov/usb-sniffer-lite/issues/20#issuecomment-2357503317,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2VUWYZQKPM37EGA27WO67TZXECTJAVCNFSM6AAAAABOM2GABOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJXGUYDGMZRG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

It is not start of the bit, but start of the packet. SOP is denoted by a switch from idle to the K state. The sniffer does not have enough resources to really observe the idle state, I just assume that the line is idle and wait for the K state. But the K state is also used in signalling the bit states. So, if start the capture in the middle of the packet, it can't  correctly receive the data.
Ideally capture need to observe both D+ and D- to make complete decisions about the line state, but PIO does not have enough resources to do so. I observe one line and derive the state of the other.
If the sync issue happens in the middle of the capture, then it may be the noise created by the wiring setup. Long exposed unshielded cables would pickup some noise. If the sync issue happen at the begging of the capture, it is just an unfortunate timing.
There is a chance you can do a bit better in finding the idle state before starting the capture, but I don't have any interest in doing so. When you can have a real sniffer for $30, wasting time on this very limited one does not seem to be worth it.

thank you, i have read what you have explained about pio asm code, and the possibility of starting the capture when the line is in the middle of a packet. thus some problems created in my mind:
first I understand the pio asm execution code sequence as follow:
1-the first moment after a reset or powering on, the PIO0 SM, executes line 31 of the code:
/* 31 */ OP_WAIT | WAIT_POL_1 | WAIT_SRC_PIN | WAIT_INDEX(2),

in which the PIO0 waits for PIO1 to trigger the start pin.PIO1, first checks
the EOP by executing the code bellow for multiple times:
/* 4 */  OP_MOV | MOV_DST_OSR | MOV_SRC_PINS | MOV_OP_BIT_REV,
/* 5 */  OP_OUT | OUT_DST_Y | OUT_CNT(2),
/* 6 */  OP_JMP | JMP_COND_Y_NZ_PD | JMP_ADDR(4/*wait_se0*/),

and then after ensuring the EOP, in USB line, it triggers start pin as follow:
/* 16 */ OP_SET | SET_DST_PINS | SET_DATA(1), // Set the START output
/* 17 */ OP_JMP | JMP_ADDR(17/*self*/), // Infinite loop

So, pio1 is sparing pio0 ,the first time after powering on, to recognize the first J state as idle(in low-speed mode) and we cannot
expect the capture unit to get into the packet's middle, while pio1 is performing like this. this is my opinion about start of capture after powering on or reset.
2.after the first idle state and SOP, the code always samples the packet bits exactly in the 5th cycle after the bit starts(as you
mentioned before the pio clock is 10 times of USB clock so it is exactly the middle of the bit), till the time EOP situation happens, so when the sampler sees EOP it pushes out both data and (0xfffffff-size), and then goes to these lines:
// poll_loop:
/* 25 */ OP_MOV | MOV_DST_OSR | MOV_SRC_PINS | MOV_OP_BIT_REV, // Sample D+ and D-
/* 26 */ OP_OUT | OUT_DST_Y | OUT_CNT(2),
/* 27 */ OP_JMP | JMP_COND_Y_NZ_PD | JMP_ADDR(0/*idle*/), // If either is not zero, back to idle
/* 28 */ OP_JMP | JMP_COND_X_NZ_PD | JMP_ADDR(25/*poll_loop*/),
/* 29 */ OP_MOV | MOV_DST_ISR | MOV_SRC_NULL | MOV_OP_INVERT,
/* 30 */ OP_PUSH,
// Wrap to 0 from here

in the code above, the sampler is checking if the USB line remains in the EOP yet(by sampling both lines), or something else has happened. this will be repeated 31 times, if the line does not exit the EOP state after 31 cycles sampler will push a 0xffffffff number(perhaps as a USB reset flag) and then everything wraps to the first line where sampler is looking for an idle state.
so my conclusion is, when the PIO is looking for an idle state in the first line I think we are sure that certainly an EOP situation is exactly the last thing has happened before, because as I see the sampler can get to the first line in two ways, first after a start signal triggered by PIO1, second after EOP of the last sampled packet. and in both situations the capture cannot start from the middle of the packet if we use a proper clock for the PIO.
(so the synchronization error happens if USB frequency and pio frequency does not match)

Your reasoning is correct. The EOP detection PIO was added much later and it reduced synchronization errors by a lot, but not entirely. I'm not so sure about your conclusion though. I don't think it has anything to odd with the clock mismatch.
The state machine here actually implements tracking of the clock and the sample point constantly adjusting, just like regular USB controllers do, so in theory it should be able to track any reasonable frequency deviceations.
It is possible that there is some bug in that tracking or somewhere else, or some other scenario that we don't take into account. You can debug that if you want, I personally don't have any interest in it. This project was just a training to figure out how PIOs work and it achieved its goal. It is useful in a pinch, but if you really need to do any real work, use real tools.

Thank you for the answer.
در تاریخ سه‌شنبه ۲۴ سپتامبر ۲۰۲۴، ۱۷:۱۷ Alex Taradov <
@.***> نوشت:

Your reasoning is correct. The EOP detection PIO was added much later and
it reduced synchronization errors by a lot, but not entirely. I'm not so
sure about your conclusion though. I don't think it has anything to odd
with the clock mismatch.
The state machine here actually implements tracking of the clock and the
sample point constantly adjusting, just like regular USB controllers do, so
in theory it should be able to track any reasonable frequency deviations.
It is possible that there is some bug in that tracking or somewhere else,
or some other scenario that we don't take into account. You can debug that
if you want, I personally don't have any interest in it. This project was
just a training to figure out how PIOs work and it achieved its goal. It is
useful in a pinch, but if you really need to do any real work, use real
tools.
—
Reply to this email directly, view it on GitHub
https://github.com/ataradov/usb-sniffer-lite/issues/20#issuecomment-2371330538,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2VUWY2KUTF3IV6DXJJ2X5DZYFUPVAVCNFSM6AAAAABOM2GABOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRGMZTANJTHA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Ask library for F.A.Q. link

According to this ILS-homepage.pdf the library should provide the F.A.Q. link.

Duplicate of #106


Add a wiki: UFOpaedia

Link to origin wiki: https://xcom.fandom.com/wiki/XCOM_Wiki
Link to destination (independent) wiki: https://www.ufopaedia.org/
I've checked for anything in regards to XCOM Wikis, there have been no suggestions related to this as far as I know. Figured I'd pitch in. :)

bump


add new member creates two users with same email address

New member is added to this org in this link
https://opencollective.com/renablehost/edit#members
Creates two entries in postico see User ID8843 and ID8841 with the same email address as well as two collectives for them 10072 and 10073
Then the system adds and /null as the new member see https://opencollective.com/renablehost/ the first avatar is a /null and none of the users created are added.
The same thing happened with dot net finance and it was resolved when I removed the email address from the duplicated user.
Thank you for taking the time to report an issue 🙏
The easier it is for us to reproduce it, the faster we can solve it.
So please try to be as complete as possible when filing your issue.

URL:
Logged in as: (just provide your username or the url of your profile)
Error message if any:
Expected result:
Browser:
Bonus point if you can add a screenshot :-)
Thank you and have a wonderful day/evening!
(and sorry for inconvenience! We'll do our best to solve this ASAP)

We should probably run a query for duplicated emails in user data base and take it from there.

A few things I saw while trying to repro it:

members table has extra rows added and then marked deletedAt
adding members from org interface has issues unless you reload the page. Recently added members are editable.

Haven't seen this in a while. Please reopen if there is a recent example


Navbar Links are not working in Responsive mode or in Mobile Phone, Also fix the Navbar color in mobile mode. 😅

Ref to file that need changes in Navbar.jsx.
@Yash-Var - Try it if you can fix it or I'll do it myself 🫰🏻.

@Mr-Sunglasses review it

Done this issue is fixed now.