Acceptance tests do not wait for all requests during a store merge

The Problem
I'm chasing a bug in an existing project where a number of acceptance tests started failing because some (all?) of the async test helpers from ember-test-helpers lost the ability to know the app is settled. For example a await click line in a test will continue forward while async stuff (ember-concurrency task and ajax calls) are still running.
Backstory
I say 'lost' above because this occurred in an existing project where we've been using orbit for a few months. The tests have been rock solid until... I added ember-auto-import as a top level dependency. Super weird right? I couldn't make heads of tails of that one, so I started a new project to reproduce the issue in an app with fewer dependencies.
Reproduction App
I've been able to reproduce the failure in this public app https://github.com/forge512/async-test-bug.
The app has component which runs an ember-concurrency task to create 4 posts component. And it has a test which verifies it works.
Experiment 1 (ember-data parallel save)
I used ember-data to fire requests to create 4 posts with parallel requests. See the use of ember-concurrency all here.
Tests pass.
Experiment 2 (ember-data parallel save)
In this branch, I adapted the component to fire the requests in serial.
Tests pass.
Experiment 3 (orbit with store forking)
In this branch, I switch to using orbit with a blocking remote store. The component forks the store, adds 4 posts, then merges the store.
Tests fail.
Summary
I'm not sure why one app (the private repo) worked until adding ember-auto-import. I'm also not sure why the example app failed in experiment 3. I had expected experiment 3 to pass, but then mysteriously fail when I added ember-auto-import.

@chbonser Those are mysteries to me as well. My suspicion is that it is related to a recent change in ember-test-helpers - perhaps https://github.com/emberjs/ember-test-helpers/pull/482 ?
If you want to dig in and can reproduce the problem in your example repo, I'd be glad to take a look.

Maybe we could provide a setupOrbit() function, that sets up a test waiter (https://emberjs.com/api/ember/3.7/functions/@ember%2Ftest/registerWaiter) which checks that the request queue is empty? This way a simple await settled() would "just work"(tm).
Fwiw, we also had to fight issues of Ember's test helpers having no knowledge of async stuff happening (Iirc they will track $.ajax automatically, but no fetch or so, happening outside of model hooks). We implemented a waitFor decorator we wrap around everything async that's not in a model hook, using those waiter APIs, and it proved to work quite fine...

Thanks to @cibernox, we have a new waitForSource test helper that you can use to wait for a source's request and sync queues to flush. You can import it to your tests as follows:
import { waitForSource } from 'ember-orbit/test-support';

And then use it to wait for a source by reference or by name:
await waitForSource(store); // by reference
await waitForSource('backup'); // by name

Maybe we could provide a setupOrbit() function, that sets up a test waiter (https://emberjs.com/api/ember/3.7/functions/@ember%2Ftest/registerWaiter) which checks that the request queue is empty? This way a simple await settled() would "just work"(tm).

The challenge with such a global method is that an orbit app may have many sources that need to settle. I suppose one option would be to wait for all the sources assigned to a given coordinator. For now, let's see how the source-specific waitForSource works out and continue to think about this.

@dgeb There is still a mystery as to why my tests were ever passing, but we can close this ticket. waitForSource does the trick.

@dgeb In my app i've created a waitForAll helper that, as the name suggests, it waits for every source to finish processing its jobs (and I added a return settled() just to be extra sure the UI has updated).
I use that helper instead of waitForSource all the time except in those tests where I explicitly want to test intermediate states while sources are out of sync.

@cibernox It's tricky to have a general concept of "all sources" in orbit, since sources may not even be managed by a single coordinator. However, a waitForAll helper makes a lot of sense in the context of a specific app with a known set of sources 👍


Latest Decrypt9 uses sd:/files9 folder, not sd:/Decrypt9/

The guide frequently references sd:/Decrypt9/, which is now no longer used.
It should probably be updated to say files9, just for sanity and ease of use's sake

Decrypt9 still uses SD:/Decrypt9/, it's just preferred to use SD:/files9/


mWiseFy.isDeviceConnectedToMobileOrWifiNetwork()

Hi,
When I use : mWiseFy.isDeviceConnectedToMobileOrWifiNetwork()
I have this error :

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.net.NetworkInfo.isConnected()' on a null object reference
at com.isupatches.wisefy.WiseFy.isDeviceConnectedToMobileOrWifiNetwork(WiseFy.java:578)

It seem sometimes it's working and sometimes not...

I can fix that one too with the next release...that's because for safety:
  if (networkInfo.isConnected() && networkInfo.isAvailable())  {
should be:
if (networkInfo != null && networkInfo.isConnected() && networkInfo.isAvailable()) {
I bet in some cases networkInfo is null.

Please try 1.0.10 when you get a chance...thank you :)


customize metrics to be stored on local disk to save storage

Proposal
Use case. Why is this important?
My Prometheus scrape thousands of targets and stores the data on local disk.  The disk usage is very high now. In fact, most of the metrics are not important for me. I wonder if Prometheus can only store the metrics I care about. It will be very helpful to save storage.

You can use the relabeling configs to drop the metrics that you don't want.
For more usage questions, please use user mailing lists and not GitHub issues, which you can find here https://prometheus.io/community/


Added Support for Events

Added Support for Events

@ustinov
I have taken the reference from go SDK and implemented the same here, as of now we do not support ongoing event using SDK, via both direct or proxy ingestion. If the proxy starts supporting ongoing events then we have to enable it in the SDK for both types of data ingestion techniques.


Let sfu-ws example uses latest webrtc codes

And uses ice standalone package.

Pull Request Test Coverage Report for Build 2681

0 of 0   changed or added relevant lines in 0 files are covered.
2772 unchanged lines in 46 files lost coverage.
Overall coverage decreased (-71.0%) to 9.072%

Files with Coverage Reduction
New Missed Lines
%

internal/mux/endpoint.go
5
29.03%

rtptransceiver.go
6
0.0%

icecandidatepair.go
6
0.0%

pkg/rtcerr/errors.go
6
0.0%

internal/util/util.go
8
42.11%

dtlsrole.go
10
0.0%

configuration.go
10
0.0%

quicrole.go
10
0.0%

icegathererstate.go
12
0.0%

settingengine.go
14
0.0%

Totals

Change from base Build 2676:
-71.0%

Covered Lines:
355

Relevant Lines:
3913

💛  - Coveralls

@backkem @Sean-Der  Could you honour give me a review?

@jinleileiking Can you explain your reasoning for adding promod? I think it makes the example less to the point. These aren't meant to be fully fledged apps, just examples of using the library.


Parsing PDF as MD fails in production in Nextjs 14

Parsing PDF as MD fails in production in Nextjs 14
Parsing a pdf file as MD works fine in development, but fails in production, showing this error:

This is my typescript code:
async function getPDFContext(file: File) {
  if (file) {
    const pdf2md = require("@opendocsg/pdf2md")

    const pdfBuffer = await file.arrayBuffer()

    const pdfContent = await pdf2md(pdfBuffer)

    return pdfContent
  } else {
    return null
  }
}

To Reproduce
In a Next.js app:

Create a file input
Open a pdf and parse it (should work)
Build with npm run build
Repeat step 2 (it fails)

Desktop:

OS: Windows 11 64bit
Browser: Chrome
Version: 120.0.6099.224 (Official Build) (64-bit)

I am having a similar problem but instead of needing to define the path  it doesnt works in the client, it tells me
Error: Setting up fake worker failed: "Failed to resolve module specifier 'pdfjs-dist/legacy/build/pdf.worker'".
    at eval (pdf.mjs:17147:36)

@ranon-rat @danybeltran please retry with v0.2.0 and close the issue if it works now. Dependency on pdfjs-dist has been removed


style ListView

Hello. It would be helpful if we would be able to style ListView component.

I have the same idea.


Support for Linux - PPC (native library)

Good day:
I was wondering if there are plan to get back the Linux PPC native library that used to be in version 3.7.x of the sqlite-jdbc?
Would it be to hard to add to the current set?
Thanks.

Doocker cross compiler image for ppc64 (little endian) is abilable, so it would be possible to resurrect the support:
dockcross/linux-ppc64le

Thanks for the answer, I am closing this one.


Implement Deformable Convolutions

Discussion in https://github.com/pytorch/pytorch/issues/15864
The operator should have both CPU and CUDA implementations.

I am familiar with the DCN implementation in mmdetection and I would be happy to include that in torchvision. Please let me know if no one else is working on it.

@Ridhwanluthra no one else is currently working on it, so contributions are more than welcome!
Note that it should now ideally follow the approaches that we have in torchvision for custom operators, which allow them to be part of torchscript graph, see https://github.com/pytorch/vision/pull/1348 for an example

@Ridhwanluthra
Are you working on it? I was considering having a look at it otherwise :)

I am working on this :)

Hi,
https://github.com/facebookresearch/detectron2/blob/d01c8617dc88dcc2157f456870c95d6be40f3f3d/detectron2/layers/deform_conv.py#L15
I saw there have DCN implementation in detectron2, is there any plan to merge this implementation here?

Cool, thanks for letting us know! Yeah, so it seems the detectron2 incorporated the code from mmdetection, which is the implementation I'm also basing myself on, so in some sense I'm already merging it! I'm also planning to add testing, a CPU version, and improve code readability a bit :)

@pedrofreire Thanks so much for picking this up.

Fixed by @pedrofreire in #1586


I installed Bonk host, but it doesn't work

It could be my mistake, but still please tell me in detail how to make this Bonk Host program work

Can you describe how you installed it and what steps you took to troubleshoot / what the observed behavior was?


[FEAT]: Default support to search from some sites

What would you like to see?
I have a requirement to support multi-website information retrieval, implement role-based access restrictions for retrieving searches from those sites, and enable the ability to search through PDF documents available on designated websites. I noticed that [anything-llm] offers PDF features. Could you confirm if it's possible to provide site URLs?

The PDF is a direct file upload only. It would be recommended that you download the file and upload and or automate this via the API (Docker version only - no API on desktop).
If you put a URL to a PDF in the "website fetch" part of the uploader I'm pretty certain it will fail. That is a great feature to add though. Being able to fetch even documents via a URL and read them in.


Create First Project

Create Basic Services in one shot.
It may include Shared, Logging, User, and Graphql Services.

Shared, User, Logging, Graphql, and Docs repositories are created as a base project.


Allow for string values in pipeline resource request/limit configurations

What is the goal / desired outcome?
I would like to be able to deploy pipelines on OpenShift while requesting millicore amounts of CPU
If there is a way to accomplish this today via workaround, what does that require?
No - I can only request whole (integer) amounts of CPU on openshift
(Optional) What is your proposal for a feature to solve this?
Do not cast pipeline request/limit specs to Float32. Treat them as strings to allow for notations like 1500m (which is what OpenShift requires)

Environment?:

Kubernetes version (use kubectl version):
Pachyderm CLI version (use pachctl version):
Cloud provider (e.g. aws, azure, gke) or local deployment (e.g. minikube vs dockerized k8s): openshift
OS (e.g. from /etc/os-release):
Others:

@pliurbc Just to make sure I 100% understand the issue:
Kubernetes seems to allow a CPU resource limit in the form 0.5 or 500m (https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-cpu), but openshift only supports the 500m notation for fractional CPU? And when you add a resource limit in our pipeline spec, Pachyderm cast it as the float version.

@JoeyZwicker I'm not sure about whether OpenShift allows float values or not, but currently in pachyderm pipeline specs, this value must be a float, yes: https://github.com/pachyderm/pachyderm/blob/master/src/client/pps/pps.proto#L212
It seems to me that regardless of whether OpenShift requires that these be strings, it still makes sense for us to support string values, if those are supported by K8S

@JoeyZwicker to be explicit, pachyderm pipeline specs do not allow for a value 500m - it would throw a go-level error. Pachyderm expects 0.5, but OpenShift expects 500m.


Handle deactivated users gracefully from a bank

Resolves #3587
Description

Type of change

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update
Documentation update

How Has This Been Tested?

Screenshots

Noted that @Josiassejod1 has said (on the issue)  that someone can take this off their hands.    Not sure if it's a continue with this PR, or a start from scratch situation.

I think we have a later PR trying to address the same issue -- look into that before working on this one.

Closing due to inactivity.


Add Inactivemode

This is a major change and will require changes to default.cfg

Hi,
Configurations changes need to be also reflected in the Readme file.
Why convert the tabs to spaces? basically the entire file is marked as change makes it impossible to review.
Can you explain the goal of the changes?

It would be nicer if you wouldn't break current configs just for the sake of renaming "sleeptime" to "sleeptimeactive" and make the "sleeptimeinactive"  an optional parameter.

4 spaces is what I use, but I will revert and change my settings.


[Bug] dbt build fails when flag restrict_direct_pg_catalog_access set True

Is this a new bug in dbt-redshift?

[X] I believe this is a new bug in dbt-redshift
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
When I switch dbt cloud to versionless and I build with no flags set then the build works, but with Warnings to set the flag restrict_direct_pg_catalog_access
When I set the flag restrict_direct_pg_catalog_access to True the build fails, with a number of tables (probably around 10%) Failing
flags:
  restrict_direct_pg_catalog_access: True

Mostly with one of these Errors:
Redshift adapter: Redshift error: column "id" of relation "<RELATION_NAME>" already exists
Redshift adapter: Redshift error: syntax error at or near ")" in context

Setting it to False or removing the flag means the build works again.
Expected Behavior
The build to succeed with no Warnings.
Steps To Reproduce
In dbt cloud with the project version set to versionless
Set the following flag in dbt_project.yml
flags:
  restrict_direct_pg_catalog_access: True

Run dbt build
Relevant log output
No response
Environment
- OS: dbt cloud
- Python: dbt cloud
- dbt-core: versionless - 'Running latest version'
- dbt-redshift: redshift=1.9.0-post5+04bd2c07f526e226c80f6527e8b0d49033bbd639

Additional Context

In the above

Added the flag set to True in the dbt_project.yml
Removed the flag completely
Added the flag back in set to False (to check it wasn't due to mis-typed config)
Change the flag back to True... you know just to check again.

@dave-tomkinson Thanks for the bug report. Would you be able to provide a model with column names and configs for one of the models that fails? You can redact the logic that goes into each column if you prefer. I need to know things like whether the columns are quoted or not, whether they are lowercase or uppercase, etc. I suspect that the SDK returns columns that do not match the case, or which are/aren't quoted as expected. This could cause dbt to attempt to add a column that's already there because of a scenario like "id" <> "Id". I'll setup a skeleton of a reproduction in the meantime, but nothing beats real data. Thanks in advance!

I think we're getting 3 main categories of error.
column "id" of relation "TABLE_NAME" already exists
Snapshot target is not a snapshot table (missing "dbt_scd_id", "dbt_valid_from", "dbt_valid_to")
and Syntax errors like syntax error at or near ")" in context ... or
syntax error at or near "when" in context "then update set

      when", at line 25, column 5

The snippet of generated code where the error is:
       on (
               DBT_INTERNAL_SOURCE.account_id = "<DATABASE>"."<SCHEMA>"."linkedin_accounts".account_id
           )

   when matched then update set

   when not matched then insert (

   )
   values (

   )

In the case of the ones with relation already exists it does look like we have:
{{ config(
    materialized="incremental",
    sort="sort_key",
    dist="dist_key",
    on_schema_change="append_new_columns"
) }}

A sanitised example of a model with the error syntax error at or near ")" in context ...
column names have been replaced but the capitalisation is as it was in the source.
The apply_env_specific_limits macro just adds a where clause to set a date and I've tried this model with that part completely removed and it fails with the same reason (and works when the flag restrict_direct_pg_catalog_access flag is switched to False)
{{ config(materialized="incremental", dist="col6") }}

with
    source_events as (
        select *
        from {{ source("SOURCE", "events") }}
        where
            {{ apply_env_specific_limits("batch_loaded::timestamptz") }}
            {% if is_incremental() %}
            and batch_loaded > (select max(batch_loaded) from {{ this }})
            {% endif %}
    )

select
    id::bigint as id,
    col::varchar(512) as col,
    col2::varchar(512) as col2,
    col3 as col3,
    col4::varchar(512) as col4,
    occurred_at::timestamptz as occurred_at,
    col5::varchar(128) as col5,
    col6::varchar(128) as col6,
    col7::varchar(56) as col7,
    region::varchar(8) as region,
    batch_loaded
from source_events
where occurred_at::timestamptz >= '2024-01-01'::timestamptz
and occurred_at::timestamptz < '2025-01-01'::timestamptz

All our column names are lower case with underscore separators.
Hope that helps.
I'm hoping to submit some unredacted notes with the support ticket.
I also noticed someone else having an issue with the flag in the dbt Redshift slack
https://getdbt.slack.com/archives/CJARVS0RY/p1727671736302229

@dave-tomkinson can you share what packages you're depending on in your project?

@dave-tomkinson I searched through the code and the two packages you identified and I can't find the apply_env_specific_limits macro. Do you know where that's coming from? Is it possible that it's a custom macro?

Ah yes apologies, I thought I'd said that when I mentioned what it did above, but must have lost that in an edit before I posted.
I think that might be a red herring though. I've just been through our code base and removed all references to it and still get the errors.
I get the same error as before in for this model (bear in mind we're getting 3 classes of error across 43 models, this is just one example, not all the models have that macro).
From the logs, it looks like parsing our model is okay (the -- start edit indicates the line where I removed the macro)
  create temporary table
    "TEMP_TABLE__dbt_tmp081635203763"

    diststyle key distkey (col6)

  as (

with
    source_events as (
        select *
        from "DATABASE"."SOURCE"."TABLE"
        where
        -- start edit
        batch_loaded > (select max(batch_loaded) from "DATABASE"."dbt_SCHEMA_staging"."TABLE")

    )

select
    id::bigint as id,
    col::varchar(512) as col,
    col2::varchar(512) as col2,
    col3 as col3,
    col4::varchar(512) as col4,
    occurred_at::timestamptz as occurred_at,
    col5::varchar(128) as col5,
    col6::varchar(128) as col6,
    col7::varchar(56) as col7,
    region::varchar(8) as region,
    batch_loaded
from source_events
where occurred_at::timestamptz >= '2024-01-01'::timestamptz
and occurred_at::timestamptz < '2025-01-01'::timestamptz
  );

Then this part is where the dbt generated code pulls from the temp table back to the main model table; there's no columns in the brackets or columns in the select clause for the insert.
The error in the log is for the first problem it hits syntax error at or near ")" in context ...
 insert into "DATABASE"."dbt_SCHEMA_staging"."TABLE"" ()
    (
        select
        from "TEMP_TABLE__dbt_tmp081635203763"
    );

Just in case though, the macro code is
{% macro apply_env_specific_limits(sort_key) %}

    {%- if target.name == 'dev' %}
        -- Restrict 6 months for devs
        {{ sort_key }} > dateadd(month, -6, current_date)::timestamptz
    {%- elif target.name == 'ci' %}
        -- Restrict to 7 days for CI jobs
        {{ sort_key }} > dateadd(day, -7, current_date)::timestamptz
    {% else %}
        -- Prod gets everything.
        true
    {% endif %}

{% endmacro %}

Thanks for the information @dave-tomkinson. This gives me something to go on. I'll continue troubleshooting.

Someone else posting on dbt Slack about facing the same issue. They post another example.
https://getdbt.slack.com/archives/CJARVS0RY/p1729520217596369

Another example: https://github.com/dbt-labs/dbt-redshift/discussions/921


Key-based Authentication filter

Key-based Authentication Filter
A filter to authenticate that computes the SHA256 hash of request's authorization key with an appended salt to validate against pre-calculated hashes. The filter uses the following pseudo-code:
(
  SHA256(<key><salt1>) == <hash1> ||
  SHA256(<key><salt2>) == <hash2>
) ? HTTP 200, Ok
  : HTTP 401, Unauthorized

For example, only requests with -H "Authorization: Bearer foo" or -H "Authorization: Bearer bar" would be allowed with this filter configuration:
"RequestKeys": {
  "Primary": {
    "Hash": "d8b4e3b92dec140f77fe712a580468e5b340672970f82028144a5f56a793c1bd",
    "Salt": "barbarba"
  },
  "Secondary": {
    "Hash": "344ea5535fa4924d48497e084fb29daaf536c41264d712b585ad4e872f771524",
    "Salt": "foofoofo"
  }
}

With this config.proto:
message KeyAuth {
    // The HTTP header name to check for key.
    // Defaults to "Authorization" if left empty
    string header = 1;

    // The HTTP header key prefix. The value format is "<prefix><key>"
    // Defaults to "Bearer " if left empty, space matters!
    string prefix = 2;

    // Hash: 64 character hexadecimal SHA256 digest of Salted Key
    // Salt: 8 character string appended to Key
    HashSalt primary = 3;
    HashSalt secondary = 4;
}

message HashSalt {
    // 64 character hexadecimal SHA256 digest of Salted Key
    string hash = 1 [(validate.rules).string = {len: 64 pattern: "^[a-fA-F0-9]*$"}];
    // 8 character string appended to Key
    string salt = 2 [(validate.rules).string = {len: 8 pattern: "^[a-zA-Z0-9./]*$"}];
}

Is this an implementation of some standard? If so which one? Otherwise seems like a good for for Lua or Wasm?


Remove monoandroid2.3 target from NuGet package

Current version of Xamarin is now capable of building Android apps with netstandard1.3 target.

Done in #108.


Nick: Watch giasutainangxanh.vn

Nick requests the watch of the watch_keyword giasutainangxanh\.vn. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

giasutainangxanh\.vn has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by cocomac in Charcoal HQ


When I close a window with a Jupyter Notebook tab in it the notebook tab will not display until I close the tab and re-open it.

Type: Bug
I close a window with a Jupyter Notebook tab open, re-open the window with CTRL+R quick select option. When the window is re-opened the tab is still there but there is nothing in the tab. When I close the tab and open the file again it appears as usual.
Screenshot:

VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:42:12.210Z)
OS version: Darwin arm64 23.2.0
Modes:

System Info

Item
Value

CPUs
Apple M1 (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
4, 2, 2

Memory (System)
16.00GB (0.67GB free)

Process Argv
--crash-reporter-id 00313db6-ee28-456e-934b-38f8216aa35f

Screen Reader
no

VM
0%

Extensions (37)

Extension
Author (truncated)
Version

blamer-vs
bea
0.5.2

vscode-tailwindcss
bra
0.10.5

catppuccin-vsc
Cat
3.11.2

catppuccin-vsc-icons
Cat
1.9.1

vscode-svn
eli
0.1.0

prettier-vscode
esb
10.1.0

gc-excelviewer
Gra
4.2.58

todo-tree
Gru
0.0.226

latex-workshop
Jam
9.18.2

svn-scm
joh
2.17.0

rainbow-csv
mec
3.11.0

json
Mee
0.1.2

black-formatter
ms-
2024.0.1

debugpy
ms-
2024.0.0

isort
ms-
2023.10.1

python
ms-
2024.0.1

vscode-pylance
ms-
2024.2.2

jupyter
ms-
2024.1.1

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

remote-ssh
ms-
0.108.0

remote-ssh-edit
ms-
0.86.0

live-server
ms-
0.4.13

remote-explorer
ms-
0.4.1

vscode-typescript-next
ms-
5.5.20240222

autodocstring
njp
0.6.1

vscode-fileutils
sle
3.10.3

printtimestamp
sno
0.1.0

svelte-vscode
sve
108.3.0

bootstrap4-vscode
the
6.1.0

vscode-ltex
val
13.1.0

intellicode-api-usage-examples
Vis
0.2.8

vscodeintellicode
Vis
1.2.30

JavaScriptSnippets
xab
1.8.0

json
Zai
2.0.2

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
d6fi2104:30959263
d34g3935:30971562
edj9j583:30969295
fegfb526:30973843
bg6jg535:30958357
dsvsc020cf:30973509

@cmdkev can you please update to the latest VS Code and see if you can reproduce? Also can you run Cmd+Shift+P -> Toggle Developer Tools, and share if there is any error logs there.

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


TWINT: CanDirectCharge Trait

Added missing CanDirectCharge Trait

Closing this, since charge via Unzer class is recommended.


(▔TRENDING▔) Rosé Leaked Video Original Viral Snoop Dogg Video on X Twitter-X

20 seconds ago
L𝚎aked Video Snoop Dogg Original Video Viral Video L𝚎aked on X Twitter Telegram
..
..
..
..
..
..
..
[-wATCH-]— Snoop Dogg Video Original Video Link Snoop Dogg Video Viral On Social Media X Trending Now
[-wATCH-]— Snoop Dogg ʟᴇᴀᴋᴇᴅ Video ᴠɪʀᴀʟ On Social Media ˣ ᵀʷⁱᵗᵗᵉʳ
[-wATCH-]— Snoop Dogg ʟᴇᴀᴋᴇᴅ Video ᴠɪʀᴀʟ On Social Media ˣ ᵀʷⁱᵗᵗᵉʳ
[-wATCH-]— Snoop Dogg Video Original Video Link Snoop Dogg Video Viral On Social Media X Trending Now
Snoop Dogg Original Video video took the internet by storm and amazed viewers on various social media platforms. Snoop Dogg, a young and talented digital creator, recently became famous thanks to this interesting video.
L𝚎aked Video Snoop Dogg Original Video Viral Video L𝚎aked on X Twitter
Snoop Dogg Original Video video oficial twitter
L𝚎aked Video Snoop Dogg Original Video Viral Video L𝚎aked on X Twitter..

cvbcvb

gfhfgh


ADD timer t parameter to podtracer

For binaries that run indefinitely such as tcpdump the parameter t sets
a timer duration for terminating the process.

closes #15


Fixed rotation of objects on a plane

Is it possible to place objects on a plane aligned with the plane surface but pointing in one direction, instead of each object being rotated to face toward the camera like in  the "objectsonplanesexample.dart" example.
For example in the following picture, could the arrows all be pointing up when placed on the plane, and still be pointing up when getting moved around with the pan handler?

@IoanEOD , you just have to add rotate degree value in transform Metrix4 while adding a node in the planet, like below
ARNode object = ARNode(
            type: NodeType.localGLTF2,
            uri: "assets/3d/duck.glb",
            name: map["name"] as String,
            transformation:
                const MatrixConverter().fromJson(map["transformation"])
                  **..rotateY(<degree> * 3.1415927 / 180),**


Fix the missing filter in the toolbar when passing a custom component in the core-components Table

Hey, I just made a Pull Request!
This is the fix for the https://github.com/backstage/backstage/issues/11791.
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Thanks for looking at this, it looks like a typescript issue crept in.

No problem, I'll take a look into it tomorrow.

@jhaals Anything else you think is needed to get this merged?


support specifying kick and ban msgs

@ara4n Are you talking about https://github.com/vector-im/riot-ios/issues/1727?

no, i am asking to prompt for a kick/ban reason when you kick/ban someone. atm it doesn’t specify a reason


Possible IsingGeneratorSample extensions

The function HeisenbergXXZGeneratorSystem uses Hamiltonian with 1/2 multiplier for ZZ term.
I am thinking to adapt the code to consideration of perfect state transfer model there two basic
examples of Hamiltonian are very similar: the first one simply drops the ZZ term,
the second one has unit multiplier for ZZ term. Maybe it would be better to use the function
with extra parameter instead of direct assignment jZZmultiplier = 0.5 in the body of the function to
accept more general usability of the code?

The similar idea is with TwoSiteGeneratorIndex. It has only one index, i.e., XY and YX terms useful
for models with "chiral" chain may not be constructed. Maybe function should have two indexes in definition?

Thank you, Martin. I suppose, it may have additional interest due to possible relation of the mentioned models with Majorana nodes...


OBS studio support

When will I be able to connect the obs studio?

I will start with the development of the OBS plugin once I have the time for it, I can't say a specific date. Or maybe some user in the community will develop a plugin for OBS.

Well it was faster then I thought... The OBS-WebSocket plugin is now available in the package manager.


[MOB 1869] Auto verify opening deeplinks on Android

Proposed Changes

Add openBrowser command separately for opening the browser for https/http link. Sometimes different apps intercept these links which cause unexpected behavior.
Add autoVerify flag on openLink command which will optionally auto verify opening HTTP links to user app and also agree the chrome agreement.

appId: com.chatloop.my
---
- openLink:
    link: https://something.com/linking
    autoVerify: true

By default this flag is false.
Testing
Attaching internally.
Issues Fixed
https://mobile-dev-inc.slack.com/archives/C041FU72T54/p1676539339478699

In what cases would a user want to set autoVerify to false?

In what cases would a user want to set autoVerify to false?

This flag defaults to false
If user wants to add testing between the interaction of the system dialog then it would be false. For example if dialog shows the text in different locale.

For the users who don't want to write the interaction with dialog can add autoVerify as true.
Btw do you think if we fail with ElementNotFound after openLink command we should add this in error message that try using autoVerify flag to automatically verify your app for the link passed?

Btw do you think if we fail with ElementNotFound after openLink command we should add this in error message that try using autoVerify flag to automatically verify your app for the link passed?

If I understand your point correctly, I think we should not throw ElementNotFound nor fail the test if auto-verify fails to find an element. We don't know the locale of user's device nor can we react to update in OS/Browser fast enough - hence we should do auto-verification as a best-effort attempt

I'm a bit late to the discussion here, forgive me if this was already answered.
Wouldn't it be better to specify the 'browserness' of the link opening as an extra parameter to the openLink instruction?
Eg:
- openLink: "https://wikipedia.org"
    browser: true # or "com.android.chrome"

On iOS there is no difference between openLink and openBrowser. Having a separate command do exactly the same is not great. Both for understanding what happens and for documentation.
Also I believe pattern can be reused for other "open this or that" methods, preventing a whole lot of commands like - openInAppleMaps.

Hey @berikv thanks for the suggestion, I am open to both. However, if I think as a user I think the more explicit the command the better. openBrowser seems to be explicit as its altogether a different command with a browser true attribute its also explicit but it can confuse me  by the name since "browser" is not a behaviour which needs true or false. I could be biased by the implementation though open to change to anything better.
cc: @dmitry-zaitsev WDYT?


Drop Support for python 3.6

[x] Closes #360
[x] Passes pre-commit run --all-files

Is there anything else I need to do to drop the version support?


Remove obsolete XMLUI spring configs (from master)

When testing something else, I stumbled on this old Spring config file in [dspace]/config/spring/xmlui/.
It's very obviously obsolete, as the beans it refers to no longer exist on master. This PR just deletes it.

Merging, as this passes Travis & approved by @mwoodiupui.


support for monitoring selected categories

closing... looks like this repo is abandoned.

Not abandoned...just not currently being maintained (same thing?)
I do intend on merging your additions and adding some extra features in the new year - just tied up on another project at the moment.


No Results (fixed) - Fork of @dmitov PR

Hi all,
This is a PR that is a fork of:
https://github.com/pawelczak/EasyAutocomplete/pull/215
That fixes the issue @kevinLay7 found:
I was able to get this working using @dmitov code. There is an error in the PR though. In his PR file: src/core.js Line 311 should be $listContainer.append("

" + config.get("noResults") + "

");

I've also created a release for this on my fork that can be used until this is merged.
npm install --save https://github.com/johann-beessip/EasyAutocomplete/releases/download/v1.3.6/EasyAutocomplete-1.3.6.tar.gz
@pawelczak - would be great to get this merged.

Just a quick note to help anyone else who might stumble across this super useful addition to easy-autocomplete.
When setting it up, make sure the #eac-container-search-autocomplete in the following is the id of your easy-autocomplete-container (it is probably goin g to be the same as what i have here unless you modified it)
list: {
	onLoadEvent: function () {
		if ($("#eac-container-search-autocomplete").val() !== '') {
			var elementCount = $("#eac-container-search-autocomplete").getElementCount();
			if (elementCount <= 0) {
				$('#no-results').show();
			}
			else {
				$('#no-results').hide();
			}
		}
	}
},
    noResults: 'My no reults message goes here',

The noResults bit at the end is what had me stumped as it wasn't mentioned anywhere!
I hope this helps someone to go slighly less crazy :^D


Different font size settings for each device type

Feature description
Would it be possible to define font sizes per device type (iPhone/iPad/Desktop) in a future WebSSH version please?
For example, I prefer 12px on my iPad because the device is often closer to my eyes. However, 12px is too small on my MacBook so I'd prefer 15px there instead.
Thanks.

That's right, font size setting has not been implemented inside macOS binary.
Thanks for this catch!

Hi @jarrah31 👋
Which option is the best?

Show three settings inside the connection form for all devices types (iPhone size, iPad size, macOS size)
Show only one setting (Size) which will show only the size of the current device (and not the other devices). So other devices sizes will need to be set on their own

Hi Arnaud,
Thanks for looking into this!
I think option 2 would be best so that font size changes are only applied to the device where the change is made. Perhaps make a comment within the settings to inform users that these are device specific so that no one complains when they notice that font size changes don't sync?

Thank you a lot for your feedback @jarrah31 🙏
So I will work on option 2 in the following days ;)

Perhaps make a comment within the settings to inform users that these are device specific so that no one complains when they notice that font size changes don't sync?

Yes you're right a comment could be a great addition

Hello @jarrah31 👋
Now available in the latest beta release WebSSH 19.7
Have a nice day ☀

It works great, thank you very much!!
While testing this feature, I noticed that if I make changes in a Connection, either within Terminal Settings or something like the username, and I press the back arrow button, I can easily lose any changes I made without realising (the small tick icon isn't very intuitive). Would it be possible to notify the user that changes were detected and maybe have it ask if they want to discard them, reminding the user to press the tick icon to save? Or perhaps have a more obvious "Save" button that turns red if changes are detected? Thanks :)

@jarrah31 Thank you for your feedback 🙏
I have opened an issue here : https://github.com/isontheline/pro.webssh.net/issues/712

Thank you!


WIP: Design for category related changes

connect to https://github.com/bm-sms/daimon-news-misc/issues/154

Depends on #582

In child category, the parent category in menu bar should be highlighted?

post.categories.first appears in many place.
This is not just first, it means main category.
Can you extract it as the following method?
class Post
  def main_category
    categories.first!
  end
end

In child category, the parent category in menu bar should be highlighted?

Good catch. I will fix this later.
But PRs are welcome!

The sub categories style is a bit strange :<

🚢


conformance with AGOP

Many annotation property changes (e.g. rdfs:comment -> skos:prefLabel) and datatype additions (e.g. declaring "2018-11-23" to actaully be an xsd:date) to ensure that the ontology conforms to the (Australian Government Ontology Profile (AGOP)](https://linked.data.gov.au/def/agop).
No ontological meaning was harmed during the making of this PR!
If accepted, I'll update the HTML for the ontology but likely there will be no difference as these property changes won't change pyLODE ontology HTML generation.
I also removed a bunch of useless declarations such as typing of dcterms properties.
HTTP -> HTTP for linked.data.gov.au but this can be separated out if problematic.

OK, if you're happy with the updates except for HTTPS, then I'll remove that from the PR and also update the other artifacts in line with this acceptable bit.

I'm happy with the https as well, but they are different changes so merit separate prs and record keeping, and also different scheduling, communication and engagement.


Metaphor Search throws key error when publishedDate is missing

System Info
LangChain: v0.0.260
Python: v3.11
Who can help?
@hwchase17 @eyurtsev
Information

[X] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[X] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
Sometime Metaphor tool returns results without publishedDate which makes the Tool wrapper break due not guarding against empty values:
langchain/utilities/metaphor_search.py", line 169, in _clean_results

"published_date": result["publishedDate"],

KeyError: 'publishedDate'

Expected behavior
Preferably the Tool should guard agains missing keys in API response.

Thanks man!

Thanks @homanp !

We are releasing this on superagent.sh on Tuesday. Wanna do a collab push on Twitter?


inaccurate position readings? movement along x results in difference on z coordinate.

Hi,
After some testing, we have to conclude that the position coordinates are not valid. When we move our tracked object in space along x, the position on the z dimension changes too. Is this because of inaccurate base station coordinates or do we have to look elsewhere too?

Just saw this. This is likely related to the issue that I just filed.
https://github.com/ashtuchkin/vive-diy-position-sensor/issues/34

I'm pretty sure it's not related to #34. I'd look into base station coordinates and rotation matrices first, yes. How large is the z dimension change vs x dimension?


Update CSSOM.

Coverage remained the same at 100.0% when pulling 2b7c379b0714bc861c4830bf08776645731ea796 on update-cssom into 35990af34161ee3b76f2712933bc7ac0b34590df on master.


quick pick item actions are not discoverable to screen reader users

          It works, but in all my time using the editor, it never occurred to me to try using the tab key in that list. I always assumed it was read only.

Originally posted by @rperez030 in https://github.com/microsoft/vscode/issues/201910#issuecomment-1879295647

@jooyoungseo also faced this discoverability issue. Additionally, he found that tab has to be pressed twice to reach the settings gear when running Help: List Audio Cues.

He suggested we use checkboxes instead and combine alert with audio cues.

Need to assess which other actions we need to fix

I think it is possible using the quick pick api to render checkboxes for this.
Let me un-assign Tyler and in case you need help with the API feel free to reach out to me and we can find the right usage.


Documentation suggestion Error Handling

On https://msdn.microsoft.com/en-us/library/mt267542.aspx, there is a section "Error handling". However, most topics related to tracing and not to error handling.
Suggestion: rename "error handling" to "Logging and Error Handling".

I agree.  The use of try/otherwise isn't mentioned in this section at all.

We currently have the article below that talks about error handling in Power Query:
https://docs.microsoft.com/en-us/power-query/error-handling
This will be updated in the coming weeks to reflect a new "catch" keyword that was introduced recently. More information about this new keyword on:
https://powerquery.microsoft.com/en-us/blog/new-power-query-m-language-keyword-catch/


Spelling Mistake

I don't know if this was intentional and I'm just missing it but on the ROS comparison page you title the second section, "Simularities". If you mean to spell the word traditionally it is, "Similarities".

Thanks!


Latency Timeout

We really need to get to the bottom of these messages:
[311345.094]   ERROR foundation/metrics.ProbeLatency [ch{l/o0dg}->u{classic}->i{q1kn}]: latency timeout

No longer relevant as we've switched from using latency probe to heartbeater which incorporates latency.


threads by default is #processes multiplied by 5

Number of threads started for a request is by default (None) number of processes multiplied by 5, see
https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.ThreadPoolExecutor

Hi Peter,
A while ago I think I confused specifications of ThreadPoolExecutor and ProcessPoolExecutor and made this mistake. Thanks for the fix, merging to develop. :+1:


OS Error : OSError: Tesseract not found in environment. Check variables and PATH

OSError                                   Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_11532\2676680553.py in
----> 1 ocr = TesseractOCR()
2
3 # Define image
4 img = Image(src="C:\Users\mishr\Music\test\Capture2.png")
~\anaconda3\lib\site-packages\img2table\ocr\tesseract.py in init(self, n_threads, lang, psm, tessdata_dir)
54         cmd_tess = subprocess.run("tesseract --version", env=self.env, shell=True)
55         if cmd_tess.returncode != 0:
---> 56             raise EnvironmentError("Tesseract not found in environment. Check variables and PATH")
57
58         # Check if requested languages are available
OSError: Tesseract not found in environment. Check variables and PATH
how to install tesseract-ocr in jupyter notebook

Hello,
In order to use the library with Tesseract, it has to be installed beforehand with the desired language files. The package is just calling Tesseract with a shell command, that's about it.
You can verify is Tesseract is properly installed by running tesseract --version in your terminal

Thanks! for your reply sir,
But when I was using google colab then same error has occured and at that time I have installed tesseract manually and it worked.
but in jupyter notebook I don't know how to install it.

https://tesseract-ocr.github.io/tessdoc/Installation.html


About the size

About the size removing "cv2,VideoCapture" ise as you said but it still weighs the same size

With completely removed cv2 import whole line and webcam command from on_message function? Weird

¿Con cv2 completamente eliminado, importa la línea completa y el comando de la cámara web desde la función on_message? Extraño

Could you help me please I want to reduce the size.

did you everything in virtual env?


etsi_its_messages: 2.2.0-1 in multiple ROS 2 distros [bloom]

Increasing version of package(s) in repository etsi_its_messages to 2.2.0-1:

upstream repository: https://github.com/ika-rwth-aachen/etsi_its_messages.git
release repository: https://github.com/ros2-gbp/etsi_its_messages-release.git
distro files: humble/distribution.yaml, iron/distribution.yaml, jazzy/distribution.yaml
bloom version: 0.12.0
previous version for package: 2.1.0-1

@jpbusch bloom itself does not open compound PRs like this and every PR that's not done using bloom's automation is an orange flag that things require further scrutiny.
One of the reasons that we prefer separate PRs per ROS distro is that it allows us to merge releases even if other distributions are being held for sync.
Why didn't you use bloom's automatic PR generation?
CI is passing so it does appear that release artifacts are present for each distribution.

Sorry, I had some problems with the bloom release action yesterday, which is why I created the PRs manually.
I have now solved the issue and recreated the PRs automatically with bloom. See:

https://github.com/ros/rosdistro/pull/42311
https://github.com/ros/rosdistro/pull/42312
https://github.com/ros/rosdistro/pull/42313


Bug with reactStrictMode ()

React calls useEffect this one twice in strictMode. It results in error No matching state found in storage.  I found a solution to fix this by disabling this mode. I work with nextjs so I just remove reactStrictMode: true from next.config.js. So I decided to create issue for people who will get this bug 😄

I've noticed the same thing in my project

Disabling strict mode is not recommended because, without it, you won't benefit from it's warning about side effects and more.
Instead, it might be better to put the strict mode node after the authentication component. So at least, everything under the auth component will benefit from stric mode.
Ex :
...

   <---- below the auth

The best would be that the second re-render is supported by the lib tho.

I have a problem with that too. The second trigger interrupts sometimes (race condition) the first redirect what leads to an error in firefox.
Putting AuthProvider outside of StrictMode is a problem, because AuthProvider must be inside BrowserRouter to redirect after login, but idk, if it is an problem if BrowserRouter is outside of StrictMode

@wutzebaer
StricMode is a development tool that warns us about possible unwanted side-effect and other common issues that happens in react.
So to answer your question, it's up to you to decide if it's a problem of not.
https://reactjs.org/docs/strict-mode.html
In my opinion, it;s not a problem if BrowserRouter is outside of strict mode.
Since routing usually happens only once.
Hope it helps (:

@mathieu-fournier thank you for clarification

This should be fixed by #962


Cant send property param in Contact Search

Hi
I dont find a way to send extra parameters in Hubspot::Contact.search.
I need to send multiple times the query param "property" with each property I want from the request.

It does not let you send any extra param than query.
I cant send a repeated key in a hash params, since the key "property" will be repeated and will overrite params below.

From hubspot docs:
https://developers.hubspot.com/docs/methods/contacts/search_contacts
If you include the "property" parameter, then the properties in the "contact" object in the returned data will only include the property or properties that you request.

The query:
$ params = { count: 10, offset: 0, q: spotless_phone, property: "email"
$ Hubspot::Contact.search(spotless_phone)

Produces the url:
Hubspot: https://api.hubapi.com/contacts/v1/search/query?q=3178093594&count=100&offset=0&hapikey=<api-key>

I found a way
params = { count: 10, offset: 0, q: spotless_phone, property: ["email", "vid", "phone", "createdate"] }
Hubspot::Connection.get_json(Hubspot::Contact::QUERY_PATH, params)

But it is not included in the lib


more on KNN ...

Hi again,
I was also wondering if your KNN method, if this can return the index of the rows that were imputed in a table structure such as Pandas dataframe , in general.
Regards,
Pablo

You can figure out which rows are missing data before using fancyimpute
with something like pd.isnull and specify the row axis. Those will be the
rows that were imputed.
On Wed, Jul 25, 2018 at 11:01 AM pablo3p<EMAIL_ADDRESS>wrote:

Hi again,
I was also wondering if your KNN method, if this can return the index of
the rows that were imputed in a table structure such as Pandas dataframe ,
in general.
Regards,
Pablo
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/iskandr/fancyimpute/issues/71, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABya7LgnhNUMwo2n3oMv8BBZOMnfbcNzks5uKLKHgaJpZM4VgiMS
.

Ok, thanks sergery,,
I already thought about this.
I was hoping that maybe it was internally done in the KNN and possibly just return the index values.
Thanks again for your quick replies.
I really appreciate it.


How to get package librados - general question for mapping the package from other linux

This is a general question, how can I easily mapping the package I used before in Ubuntu/Centos or other Linux.
So this time, I need a package named librados, I search in https://pkgs.alpinelinux.org, but not found. Then what can I do? Any instruction about this?

Apparently you make a request issue: https://bugs.alpinelinux.org/projects/alpine/issues?utf8=✓&set_filter=1&f[]=status_id&op[status_id]=o&f[]=subject&op[subject]=~&v[subject][]=request&f[]=&c[]=project&c[]=tracker&c[]=status&c[]=priority&c[]=subject&c[]=assigned_to&c[]=updated_on&group_by=

Thanks, ticket is raised (https://bugs.alpinelinux.org/issues/4611)


U2 Browser: Race condition when immediately creating a new entry

Create a new entry.
Enter text into an input field.
Do not blur the field.
Click the checkmark to save the new entry.

Observe that the new row in the list is blank, and then fills in. If your DAO persists, and you reload, you'll see that the value was never set in the persistent DAO.
Probably this can be solved by delaying the ObjectReplicator calling put() slightly.

I thought that the ObjectReplicator was not used in the DAOCreateController.
The ObjectReplicator listener should probably be merged to 100ms or so, such that rapid object changes don't hammer the DAO.
But even if that fixes the problem, that feels like a hackish fix.  Something not dependant upon timeouts would be more robust.


Add CODEOWNERS

Changes proposed in this Pull Request:

Add CODEOWNERS

I think the CODEOWNERS file only takes effect when this file exists in the base of the PR.  So once this gets merged in, we can test it out with a dummy feature branch.


Invalid Memory Access with Gresource

Hi! Thanks a lot for this guide, it's excellent! :partying_face:
I've run into an issue that's almost certainly self-inflicted, but I haven't been able to figure out why. Whenever I try to load a gresource, I get the following error:
Invalid memory access (signal 11) at address 0x0
[0x435856] *Exception::CallStack::print_backtrace:Nil +118 in /home/barney/.cache/crystal/crystal-run-window.tmp
[0x41d836] ~procProc(Int32, Pointer(LibC::SiginfoT), Pointer(Void), Nil) +310 in /home/barney/.cache/crystal/crystal-run-window.tmp
[0x7fd22fc4fdd0] ?? +140540721298896 in /lib64/libc.so.6
[0x7fd230449e34] ?? +140540729663028 in /lib64/libgtk-4.so.1
[0x7fd2304636e5] ?? +140540729767653 in /lib64/libgtk-4.so.1
[0x7fd230465821] ?? +140540729776161 in /lib64/libgtk-4.so.1
[0x7fd230465961] ?? +140540729776481 in /lib64/libgtk-4.so.1
[0x7fd230447937] ?? +140540729653559 in /lib64/libgtk-4.so.1
[0x7fd230003f27] g_type_create_instance +599 in /lib64/libgobject-2.0.so.0
[0x7fd22ffe91c4] ?? +140540725072324 in /lib64/libgobject-2.0.so.0
[0x7fd22ffea7de] g_object_new_with_properties +574 in /lib64/libgobject-2.0.so.0
[0x7fd22ffeb801] g_object_new +193 in /lib64/libgobject-2.0.so.0
[0x7fd2303e6dee] ?? +140540729257454 in /lib64/libgtk-4.so.1
[0x7fd230003f27] g_type_create_instance +599 in /lib64/libgobject-2.0.so.0
[0x7fd22ffe91c4] ?? +140540725072324 in /lib64/libgobject-2.0.so.0
[0x7fd22ffea7de] g_object_new_with_properties +574 in /lib64/libgobject-2.0.so.0
[0x7fd22ffeb801] g_object_new +193 in /lib64/libgobject-2.0.so.0
[0x7fd230245189] ?? +140540727546249 in /lib64/libgtk-4.so.1
[0x7fd230251c33] ?? +140540727598131 in /lib64/libgtk-4.so.1
[0x7fd23023ce58] ?? +140540727512664 in /lib64/libgtk-4.so.1
[0x7fd22fec7b97] ?? +140540723886999 in /lib64/libglib-2.0.so.0
[0x7fd22fec9ade] g_markup_parse_context_parse +3358 in /lib64/libglib-2.0.so.0
[0x7fd230249487] ?? +140540727563399 in /lib64/libgtk-4.so.1
[0x7fd23023d919] gtk_builder_add_from_resource +313 in /lib64/libgtk-4.so.1
[0x7fd23023ee3e] gtk_builder_new_from_resource +62 in /lib64/libgtk-4.so.1
[0x525f6b] *Gtk::Builder::new_from_resource<String>:Gtk::Builder +27 in /home/barney/.cache/crystal/crystal-run-window.tmp
[0x41f9bd] ~UI:const_init +13 in /home/barney/.cache/crystal/crystal-run-window.tmp
[0x40206f] __crystal_main +1279 in /home/barney/.cache/crystal/crystal-run-window.tmp
[0x47ed06] *Crystal::main_user_code<Int32, Pointer(Pointer(UInt8))>:Nil +6 in /home/barney/.cache/crystal/crystal-run-window.tmp
[0x47ec7a] *Crystal::main<Int32, Pointer(Pointer(UInt8))>:Int32 +58 in /home/barney/.cache/crystal/crystal-run-window.tmp
[0x40f6c6] main +6 in /home/barney/.cache/crystal/crystal-run-window.tmp
[0x7fd22fc39248] ?? +140540721205832 in /lib64/libc.so.6
[0x7fd22fc3930b] __libc_start_main +139 in /lib64/libc.so.6
[0x401aa5] _start +37 in /home/barney/.cache/crystal/crystal-run-window.tmp
[0x0] ???

I narrowed it down to a minimal example.
src/window.cr
require "libadwaita"

Gio.register_resource("data/test.gresource.xml", "data")
UI = Gtk::Builder.new_from_resource("/dev/ui/main.ui")

class App < Adw::Application
  def initialize
    super()
  end

  @[GObject::Virtual]
  def activate
    window = Adw::ApplicationWindow.cast(UI["window"])
    window.present
  end
end

app = App.new
exit(app.run)

data/test.gresource.xml
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
  <gresource prefix="/dev/">
    <file compressed="true" preprocess="xml-stripblanks">ui/main.ui</file>
  </gresource>
</gresources>

data/ui/main.ui
<?xml version='1.0' encoding='UTF-8'?>
<interface>
  <requires lib="libadwaita" version="1.6"/>
  <requires lib="gtk" version="4.6"/>
  <object class="AdwApplicationWindow" id="window">
  </object>
</interface>

Creating the AdwApplicationWindow as follows, works without issues.
 window = Adw::ApplicationWindow.new(self)
 window.present

I apologise for opening an issue for this, but could you point me in a direction? Thanks in advance! :heart:
P.S: Even without casting to the UI resource, simply calling UI.class on it results in a memory access error as well.
Parsing the UI definition with Gtk::Builder.new_from_file("./data/ui/main.ui") results in the same error as well.

Hello! :wave:
The problem is mostly timing. An Application needs to be running for Gtk::Builder.new_from_resource to register, you can do it the following way, but it will feel a bit off:
require "libadwaita"

Gio.register_resource("data/test.gresource.xml", "data")

class App < Adw::Application
  def initialize
    super(application_id: "dev.myApp", flags: Gio::ApplicationFlags::DefaultFlags)
  end

  @[GObject::Virtual]
  def activate
    window = Adw::ApplicationWindow.cast(UI["window"])
    window.application = self
    window.present
  end
end

app = App.new
exit(app.run)

UI = Gtk::Builder.new_from_resource("/dev/ui/main.ui")

(also notice the window.application, if you don't set the window's application the GTK will exit immediately)
You can also have it as a local variable in your App class, but it has to be done in activate as by the time that runs the app will also be running.

What I would do instead, would be to subclass AdwApplicationWindow instead:

main.ui

<?xml version='1.0' encoding='UTF-8'?>
<interface>
  <requires lib="libadwaita" version="1.6"/>
  <requires lib="gtk" version="4.6"/>
  <template class="App-MyApplicationWindow" parent="AdwApplicationWindow">
  </template>
</interface>

Notice the <template>

window.cr

require "libadwaita"

Gio.register_resource("data/test.gresource.xml", "data")

class App < Adw::Application
  @[Gtk::UiTemplate(resource: "/dev/ui/main.ui")]
  class MyApplicationWindow < Adw::ApplicationWindow
    include Gtk::WidgetTemplate

    def initialize(application : Adw::Application)
      super(title: "HELLO WORLD", application: application)
    end
  end

  def initialize
    super(application_id: "dev.myApp", flags: Gio::ApplicationFlags::DefaultFlags)
  end

  @[GObject::Virtual]
  def activate
    window = active_window.nil? ? MyApplicationWindow.new(application: self) : active_window.not_nil!
    window.present
  end
end

app = App.new
exit(app.run)

(it doesn't have to be inside the App class)
This way you fully take advantage of subclassing and builder files.

Feel free to contact me about anything related in the future!

Thank you for your lightning fast response!

I really appreciate the help! :partying_face:

Hi!
Quick question regarding templates. I've been playing around with a single blueprint file using the syntax below, and I've had huge success with it! Thanks again! :partying_face:
template $MainWindow: Adw.ApplicationWindow {
  # all widgets here
}

and the following (excerpt) in Crystal:
@[Gtk::UiTemplate(resource: "/dev/ui/compiled/mainwindow.ui")]
class MainWindow < Adw::ApplicationWindow
  include Gtk::WidgetTemplate
end

However, when I try to reference another template in the above, for example a button (according to the Blueprint documentation)
template $MyButton : Button {
  label: "Something";
}

template $MainWindow: Adw.ApplicationWindow {
  $MyButton {}
}

I get the following error:
Error building template class 'MainWindow' for an instance of type 'MainWindow': .:0:0 Invalid object type 'MyButton'

In the example of the blueprint documentation they don't go into detail as to how they make it work, they just call the template like
ApplicationWindow {
  $MapsHeaderBar {
    /* Nothing needed here, the widgets are in the MapsHeaderBar template. */
  }
}

I really appreciate the help and thank you for your time!

Sorry for the wait, this got lost in my notifications :bow:
Okay, this shouldn't be something you'd have to deal with and I'll do a PR on gtk4.cr so it happens automatically, but you basically need to tell GTK that your Button widget class exists.
For what it's worth, please keep in mind that gtk4.cr names types based on the Crystal name, so you have to follow that, e.g.:
module App
  module MyWidgets
    class Button < Gtk::Button
       #...
    end
  end
end

In the above example, the crystal name for the class is App::MyWidgets::Button which in UI files you'd have to reference as App-MyWidgets-Button. (This is done to avoid name conflicts as far as I am aware, Vala does it like this: App.MyWidgets.Button => AppMyWidgetsButton)
Okay with that said, I did it based on my previous comment:
gresource
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
  <gresource prefix="/dev/">
    <file compressed="true" preprocess="xml-stripblanks">ui/main.ui</file>
    <file compressed="true" preprocess="xml-stripblanks">ui/button.ui</file>
  </gresource>
</gresources>

main.ui
<?xml version='1.0' encoding='UTF-8'?>
<interface>
  <requires lib="libadwaita" version="1.6"/>
  <requires lib="gtk" version="4.6"/>
  <template class="App-MyApplicationWindow" parent="AdwApplicationWindow">
    <child>
        <object class="App-MyButton">
        </object>
    </child>
  </template>
</interface>

button.ui
<?xml version='1.0' encoding='UTF-8'?>
<interface>
  <requires lib="libadwaita" version="1.6"/>
  <requires lib="gtk" version="4.6"/>
  <template class="App-MyButton" parent="GtkButton">
    <property name="label">I am a button</property>
  </template>
</interface>

window.cr
require "libadwaita"

Gio.register_resource("data/test.gresource.xml", "data")

class App < Adw::Application
  @[Gtk::UiTemplate(resource: "/dev/ui/button.ui")]
  class MyButton < Gtk::Button
    include Gtk::WidgetTemplate

    def initialize
      super
    end
  end

  @[Gtk::UiTemplate(resource: "/dev/ui/main.ui")]
  class MyApplicationWindow < Adw::ApplicationWindow
    include Gtk::WidgetTemplate

    def initialize(application : Adw::Application)
      LibGObject.g_type_ensure(MyButton.g_type)

      super(title: "HELLO WORLD", application: application)
    end
  end

  def initialize
    super(application_id: "dev.myApp", flags: Gio::ApplicationFlags::DefaultFlags)
  end

  @[GObject::Virtual]
  def activate
    window = active_window.nil? ? MyApplicationWindow.new(application: self) : active_window.not_nil!
    window.present
  end
end

app = App.new
exit(app.run)

The line is LibGObject.g_type_ensure(MyButton.g_type). Note that it has to be done before super gets called. That line tells GObject that your class exists

Actually just doing this works?
@[Gtk::UiTemplate(resource: "/dev/ui/main.ui")]
  class MyApplicationWindow < Adw::ApplicationWindow
    include Gtk::WidgetTemplate

    def initialize(application : Adw::Application)
      MyButton.g_type

      super(title: "HELLO WORLD", application: application)
    end
  end

Wow!!! That's fascinating! Makes the code super clean and allows for very compact definitions. I can't wait to try this.
Thank you so much! :partying_face:

Writing custom widgets in crystal and initializing them through blueprint/builder will lead to segfaults eventually since https://github.com/hugopl/gi-crystal/pull/153 wasn't merged yet.
Crystal gobject subclasses always need to be created from crystal.


JavaScript Syntax Highlighting breaks in multi-line single-expression lambda method declarations inside a class

Minimal example:
class A {
    f = () =>
        false &&
        (false) ||
        (this.f);
}

Notice that the second false, the || after it, and the this aren't highlighted correctly. I've only been able to replicate it inside a class. The same thing happens when using any other binary operator after the initial false. Just the second false alone is also enough to make it break but it only breaks with parentheses around the second false and the this.f. This also happens with more complex expressions, false here is just for demonstration.
The effect isn't limited to just this method. It completely messes up syntax highlighting further in the file. Here's a more complex real-world example that eventually leads to completely messed up highlighting:

(this image is just to demonstrate the messed-up highlighting, the problematic function is further up, see the link)
Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.72.2
OS Version: Windows 10

Also happens in TypeScript. And as far as I can tell, this should be perfectly correct JS. Prettier formats it just fine and Chrome executes it as expected.
I've first observed this behavior a decent while ago, at least a few months but possibly even more than a year ago (and it might have existed before then, I'm not certain it wasn't already like this the first time I looked at the file linked above).

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.71.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

(typo while copying the VS Code version, I was already using the latest version, edited the original post)

Should move report to https://github.com/microsoft/TypeScript-TmLanguage
variable-initializer (=) ends too early because of: |(?=^\\s*$)|(?<=\\S)(?<!=)(?=\\s*$)

#expression should have pushed end outwards, but doesn't for some reason
https://github.com/microsoft/TypeScript-TmLanguage/blob/44d73578fc6138b0b1ae70ef8f924c6429d329b4/TypeScriptReact.tmLanguage#L2047
I think variable-initializer should not abruptly end at the end of a line
as it currently exclaims this is incorrect:
const test = a
+

b

Combine that with the highly selective tokenizing inside a class and the issue visualizes
A temporary work around for you @benediktwerner would be to put = at the very end of each line


should support  auto certificate download feature from localdev.tk

localdev.tk is our service to serve the certs so that our local dev can have valid certs instead of using self signed cert.
By using valid cert, it's very helpful for https on local dev.

localdev.tk service should be configurable, later on, we'll share this service so that anyone can use with different domains of their own.

closed for now, we can extend teracy-dev for v0.6.0, we could bring this to teracy-dev core project when this extension features is mature and users request it.


fastq stuck in metdata validation - MegakaryocyteDevelopment

Dataset this task is for:

project uuid - a9f5323a-ce71-471c-9caf-04cc118fd1d7
link to ingest UI

Relevant People

Wrangler: Ida
dev

Description of the problem with the dataset
One fastq file has been metadata validating since Friday afternoon (~2,5 days). This stops me fron running the graph validation and exporting.
This dataset is intended for release 17, the deadline is May 23rd so it's going to be more urgent as time passes

[ ] check why the validation is stuck
[ ] get the file to metadata valid

Acceptance criteria for the task:

[ ] file is metadata valid

Stuck File:
https://api.ingest.archive.data.humancellatlas.org/files/627e3e32a9f5957dde269ff6

Completely useless instructions on how to unstick a file: https://ebi-ait.github.io/hca-ebi-dev-team/operations_tasks/stuck-submissions.html

the file exists in s3
the batch job with this validation number does not exist
validation-prod-bcab8222-8b82-4874-8974-c457a0832ece-889d5ae1-889d5ae1-ed2a-4d5c-a362-42bc78955f8e
No errors reported for any of the id's above in the validator logs

attempting to trigger a batch job manually


airkeeper.json config validator

This adds a Zod schema and validator for the airkeeper.json configuration file.
The schema is based on airkeeper.example.json and assumes that all fields there are required.

I like these changes but I still wonder if we should have implemented them out of this branch since I've done a small refactor around config parsing and loading.

I like these changes but I still wonder if we should have implemented them out of this branch since I've done a small refactor around config parsing and loading.

You're right that makes more sense, I'll update this PR and switch it to that branch.


[ui] Confirm UX degrades correctly for apps deployed from private/hosted github/gitlab

https://github.com/epinio/epinio/issues/2236 brings in support for private/hosted github/gitlab
This comes in for 1.10
The support for the UI for this is targetted for 1.11 https://github.com/epinio/ui/issues/327
For this release we need to check how the UI performs for Apps that have been deployed with these sources. There should be nothing glaring wrong like errors on page, crashing UI, etc

Can the user see the App in the Apps list
Can the user see the App Details page

The git details should show information provided by the user, but not more (we can't get details regarding repos, branches or commits)

Can the user edit the source for the App

At this point the user should be able to change FROM these git types but not do things like update the commit

I can confirm that the limited functionality from description in UI is ok when validating on v1.10.0-rc1.
Verified against private gitlab instance and private repo + private github repo. I always verified that the UI is ok after performing the steps bellow - no inconsistency spotted.
Preparation

create gitconfigs

# create a gitconfig for gitlab repo (also extra coredns config needed)
$ epinio-1.10 gitconfig create gitlab-private https://gitlab.suse.de \
  --username  thehejik --password glpat-HASH --user-org thehejik \
  --repository sample --git-provider gitlab --cert-file=/home/thehejik/SUSE_Trust_Root.crt.pem

# create a gitconfig for github
$ epinio-1.10 gitconfig create github-private https://github.com \
  --username thehejik --password github_pat_HASH --user-org thehejik \
  --repository sample --git-provider github

Tests
Gitlab (UI app deployment)

I was going straight to UI app deployment so I selected Source Type: git URL, URL: https://gitlab.suse.de/thehejik/sample and Branch: main
RESULT: OK the app has been deployed and running
then I changed my app source code on gitlab via a new commit and pressed Edit Config followed by pressing Update Source
RESULT: OK the new app from latest commit has been deployed
then I pressed again Edit Config and entered Branch: d3b13f5 (previous commit) and pressed Update Source
RESULT: OK the app from previous commit was up and running

Github (CLI app deployment)

I pushed an app over CLI by epinio-1.10 app push --name github-private-cli-sample --git https://github.com/thehejik/sample/
RESULT: OK the app deployed and running
After pressing Edit Config the form was a bit incomplete  as expected
RESULT: OK - the branch value was empty and no commit page appeared (this needs git-proxy for ui)
after changing the Source Type form GitHub to Git URL and entering the branch/commit manually
RESULT: OK the source was updated successfully, the application has been rebuilt and up
Following attempt via Edit Config also ok

@richard-cox we were having a look at this and the checks seems to be fine. Do you think we can close this? :slightly_smiling_face:


[five_mem_example] Add terminate signal to stop the threads after pro…

This PR adds terminate signals to stop the threads after all proposals has been accepted.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Liquan Pei seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

PTAL @Hoverbear


Refactor Preview: Add a Collapse All/Expand All Button

Please add a Collapse All/Expand All button in the top right of the Refactor Preview panel. That would make things easier if for example one wants to select only the references found in one file and unselect all others.
For example like that:

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

Would it be possible to add the same button combination in the top right corner of the "references" panel?

It will be so helpful working on a large amount of files.

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


use basix wrapper not ufl directly

I guess we might want to hold off on merging this until the changes to the naming in the ufl wrapper (https://github.com/FEniCS/basix/pull/655) are merged. (These changes will rename basix.ufl_wrapper to basix.ufl and create_vector_element to vector_element.)

Yep, we would also need to adapt the text to mention basix.


Linux_OSX_Shared/Sample.cpp Build Error

When i build the sample i get this Error:
g++ sample.cpp -lstdc++ -std=c++0x -I../lib/Jsrt -Wl,--whole-archive ../out/Debug/libChakraCore.so -Wl,--no-whole-archive -pthread -lm -ldl -licuuc -Wno-c++11-compat-deprecated-writable-strings -Wno-deprecated-declarations -Wno-unknown-warning-option -o sample.o
sample.cpp: In function ‘int main()’:
sample.cpp:61:70: error: too few arguments to function ‘JsErrorCode JsCopyString(JsValueRef, char*, size_t, size_t*, size_t*)’
FAIL_CHECK(JsCopyString(resultJSString, nullptr, 0, &stringLength));
^
sample.cpp:15:31: note: in definition of macro ‘FAIL_CHECK’
JsErrorCode errCode = cmd;
^
In file included from sample.cpp:6:0:
../lib/Jsrt/ChakraCore.h:310:5: note: declared here
JsCopyString(
^
sample.cpp:63:81: error: too few arguments to function ‘JsErrorCode JsCopyString(JsValueRef, char*, size_t, size_t*, size_t*)’
FAIL_CHECK(JsCopyString(resultJSString, resultSTR, stringLength + 1, nullptr));
^
sample.cpp:15:31: note: in definition of macro ‘FAIL_CHECK’
JsErrorCode errCode = cmd;
^
In file included from sample.cpp:6:0:
../lib/Jsrt/ChakraCore.h:310:5: note: declared here
JsCopyString(
^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
cc1plus: warning: unrecognized command line option ‘-Wno-c++11-compat-deprecated-writable-strings’
Makefile:32: set di istruzioni per l'obiettivo "testmake" non riuscito
make: *** [testmake] Errore 1

Hey @bpavesi , thanks for the issue! We recently changed the signature of JsCopyString https://github.com/Microsoft/ChakraCore/pull/3433, therefore this sample needs an update. I will get that out shortly.

It should be working now with https://github.com/Microsoft/Chakra-Samples/commit/57c761f2a5f0b9737b3b579c78da96fd0e7030a0.

it woks!
tnx

Close since it is resolved then.


To draw moon shadow

Hi.
How can I calculate the shadow of the moon.
How do I apply the shadow over an image of the moon.
Based on which properties can I calculate this?
Thank you

I'm sorry, but can you be more precise or provide an example? I'm not sure what, exactly, you're trying to do.


Wordpress updating core

New WordPress KB article covering how to update WP core.

@ryanbrockman To get the numbering to work properly, you need to indent the lines under each number.  Right now, they are all showing as 1.

@ryanbrockman
images/wp_updating_core/wp_updating_core_1.png looks like it is showing an ssh key.  Is that a security concern?  If so, please redact in the image.

@ryanbrockman the screenshots all contain the OSX window drop shadow. Please crop the images to exclude the dropshadow. This should make the file sizes smaller, both in terms of width/height and file size.


Document error

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
https://docs.pydantic.dev/latest/concepts/validators/#field-validators
In the code of this part, search by "UserModel(name='John Doe', id=1)" and you will see there are two appearance in the code with different behavior, which the second appearance should be "UserModel(name='John Doe', id="abc")" according to the comment.
Example Code
No response
Python, Pydantic & OS Version
document error

Yup, something weird is definitely going on there. Thanks for reporting.
The weird thing is that these outputs are auto generated.
Weird error output:
try:
    UserModel(name='John Doe', id=1)
except ValidationError as e:
    print(e)
    """
    1 validation error for UserModel
    id
      Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='abc', input_type=str]
    """

I assume that's what you meant?

@withlone,
Good catch. I'll open a PR shortly with a fix.

Tracked the issue to here: https://github.com/pydantic/pydantic/commit/8540b44d2be3adc806752f1858694a3ab8202a40


Implement journalctl to see journald data within a docker container

The basic idea is to allow us to run systemd/journald within a container and have the journal data exposed to the host.
In order to do this, we had to implement three different things.

Define a container_uuid environment variable in a systemd with a UUID.  We do this using the container ID.(Patch 1)
Create a directory on the host in /var/log/journald/CONTAINER.ID (Truncated to 32 chars), volume mount this directory into the container.
Register the container with systemd using machinectl over systemd dbus.

With this patch you can do a
journalctl -M CONTAINER_NAME
And see the journal data within a systemd based container.
This has a secondary effect of allowing us to see and manipulate docker containers using machinectl.  This will list all running containers, even if they are docker containers or systemd-nspawn containers.  It will also list any VM's running on the machine.

Replaces
https://github.com/docker/docker/pull/7685

@rhatdan Can you provide image to test this patch?

You could build an image based on this Dockerfile to test.

See the top level Makefile in https://github.com/docker/docker for usage.

FROM 		fedora
MAINTAINER	Dan Walsh
ENV container docker
RUN yum -y update; yum -y install httpd; yum clean all; rm -f /etc/machine-id; systemctl enable httpd
EXPOSE 80
RUN
CMD [ "/sbin/init" ]
Something like this should work, on a systemd based machine.
docker build -t test .
docker run -d test -n test
journalctl -M test
But even without the systemd within the journal you can see any container running using machinectl
machinectl list
And try out some of the other commands.  machinectl kill does not seem to work for me, at least when I am running systemd as PID 1.

BTW I have submitted a pull request to coreos for go-systemd.
https://github.com/coreos/go-systemd/pull/75

@rhatdan thank you!

Seems like go-systemd upstream stuck :/

I dropped the go-systemd part of the patch and went with a simpler dbus implementation.  Eliminated a lot of code from the patch.  Also fixed a resource leak.
This patch should be ready for review now.
@jfrazelle @crosbymichael @LK4D4

This should certainly help. Currently I pass /dev/log as a volume (-v /dev/log:/dev/log) to make the container log to host's journald and then use journalctl to filter from that based on syslog tag used inside each container.

@rhatdan Hmm, maybe I'm doing something wrong, but I get
journalctl -M test
Failed to open journal: Host is down

from your example. Could you recheck it pls?

@LK4D4 Try it now.  I added the /run patch to stop you from having to run --privileged.
These patches are working for me with
cat Dockerfile
FROM 		fedora
MAINTAINER	Dan Walsh
ENV container docker
RUN yum -y update; yum -y install httpd; yum clean all; systemctl enable httpd

EXPOSE 80
RUN rm -f /etc/machine-id

CMD [ "/sbin/init" ]

docker build -t systemd-httpd .
docker run -d --name dan -v /sys/fs/cgroup:/sys/fs/cgroup systemd-httpd
journalctl -M dan

Okay, it is failing on CI now :) Seems like /run patch did that.

Yes, /run patch requires a tar be installed into the testing container.  I can remove this patch and you would just need to run --privileged so systemd will create its own /run on tmpfs.

@rhatdan what logs should I expect to see in journalctl output?
I see systemd-machined[19777]: New machine dan. but then nothing from the container.
Running on Fedora 21

@dmcgowan did you successfully get systemd/journald to run inside the container, if you do then you should see
journalctl -M NAME
give  you the same data as
docker exec NAME journalct

@rhatdan I see machine in machinectl list. But journalctl -M dan returns whole journal since boot for me and there is only:
systemd-machined[13207]: New machine dan.

there about machine. Also exec returns:
No journal files were found.

@LK4D4 Is there an /etc/machine-id in your base image?

@rhatdan Nope :/

When you run the container does a /etc/machine-id get created along with a /var/log/journal/CONTAINER-ID?
Is journald running in the container
ps -ef | grep journald

@rhatdan Whoa. I ran your image with --privileged and it killed my X server and showed me tty greeting from fedora on all consoles apart from first. That was very scary.

@rhatdan Without privileged I see only /sbin/init in container.

Well to get this stuff to fully work you need to volume mount in /run and /sys/fs/cgroup:ro
We have a separate patch that mounts /run as a tmpfs/  systemd will not run in a container properly without these two things, or in --privileged mode.  Not sure why it killed X.

So, actually we have problem. This can't work with current docker, apart from --privileged which I suspect I won't run again.
ping @crosbymichael your thoughts

So, this PR is pretty old. We need to do something with it.
ping @docker/core-maintainers
Should we split preMount and postMount cmds to separate PR or what?

Replacing this pull request with --systemd pull request
https://github.com/docker/docker/pull/13525


HTTP Code 404 for valid URL

OS: Windows 10
Launch command used: destreamer.cmd -v -i "https://web.microsoftstream.com/video/ce9f5d4a-3bde-4931-9d8c-1a90df526909"
Issue: The program returns a 404 error when downloading lecture recordings. I've tried with other links from my university and added with -x flag with no difference.

Verbose  log
[VERBOSE] Using ffmpeg version 2021-08-25-git-e41bd075dd-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
Access token still good for 41 minutes.
[VERBOSE] Session and API info
API Gateway URL: https://aase-1.api.microsoftstream.com/api/
API Gateway version: 1.4-private
Parsing video/group urls
[VERBOSE] List of GUIDs and corresponding output directory
https://web.microsoftstream.com/video/ce9f5d4a-3bde-4931-9d8c-1a90df526909 => videos
Fetching videos info...
[WARNING] Got HTTP code 404. Retrying request...
[WARNING] Here is the error message:
{
error: { code: 'NotFound', message: 'The video could not be found' }
}
[WARNING] We called this URL: https://aase-1.api.microsoftstream.com/api/videos/ce9f5d4a-3bde-4931-9d8c-1a90df526909?$expand=creator&api-version=1.4-private
[ERROR] Error: Request failed with status code 404
at createError (C:\Users[Redacted]\Desktop\destreamer\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Users[Redacted]\Desktop\destreamer\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Users[Redacted]\Desktop\destreamer\node_modules\axios\lib\adapters\http.js:260:11)
at IncomingMessage.emit (events.js:388:22)
at endReadableNT (internal/streams/readable.js:1336:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)

Are you able to watch that video with your browser, logged in as the same user as the one you use to login to destreamer?

Yes - opening the link with my browser takes me directly to the video page

I'm sorry for the late reply but life got in the way. Do you still have this issue?


Env variables "TRAVIS*" are not available in install_ubuntu_common.bash

I guess that makes sense, because install_ubuntu_common.bash is:

a script for doing the work on local host, not on online CI server.
called via sudo so the shell probably doesn't inherit env vars.

I think this is why jobs on Travis #61 and #70 are failing.

Fixed via #70


[6.x] add dumpErrors() method

When writing tests and an unintended ValidationException is thrown I would like to be able to inspect the error, but with $response->dump() I only get the HTML rendered error page. With $response->dumpErrors() I can instantly see which errors occurred and fix them.
Another solution could be to check inside of the existing dump() method whether we have errors in the session and dump them out as well.

You could also use one of the two following assertions to list any present errors:
->assertSessionDoesntHaveErrors()

// or for JSON responses

->assertJsonMissingValidationErrors()

I always use these before the ->assertStatus assertion. That way I get helpful output if an unexpected validation error occurs.

See above.


Code reload prevents server start

Expected Behavior
Executing flask.run(debug=True) should start the server (for development purposes at least)
#app.py file
app = Flask(__name__)
app.config["SERVER_NAME"]="localhost:9191"
if __name__=="__main__":
    app.run(debug=True)

Actual Behavior
The server does not start stays ad eternum on " * Restarting with ....":
if watchdog-0.10.2 is installed (with pip install watchdog)

Restarting with windowsapi reloader
if watchdog-0.10.2 is not installed
Restarting with stat

No Exception is shown on the logs whatsoever just hangs
Extra information
Server run as expected if
#app.py file
app = Flask(__name__)
app.config["SERVER_NAME"]="localhost:9191"
if __name__=="__main__":
    app.run()

or
#app.py file
app = Flask(__name__)
app.config["SERVER_NAME"]="localhost:9191"
if __name__=="__main__":
    app.run(debug=True, use_reloader=False)

Environment

Python version: 3.8.2
Pip version: 20.0.2
Flask version: 1.1.1
Werkzeug version: 1.0.0

I can't reproduce this issue. The reloader works as expected with and without Watchdog installed, with the versions specified.

can you tell me what OS are you running? I'm running windows 10 Pro x64 1903.
I just:

setup a fresh new virtual env
installed flask from scratch and same issue

this is my pip list under the virtual env:
Package           Version Location
----------------- ------- ------------------------------------------------------------------
astroid           2.3.3
Click             7.0
colorama          0.4.3
Flask             1.1.1
Flask-Cors        3.0.8
isort             4.3.21
itsdangerous      1.1.0
Jinja2            2.11.1
lazy-object-proxy 1.4.3
MarkupSafe        1.1.1
mccabe            0.6.1
pathtools         0.1.2
pip               20.0.2
PyJWT             1.7.1
pylint            2.4.4
setuptools        45.3.0
six               1.14.0
Werkzeug          1.0.0
wheel             0.33.6
wrapt             1.11.2

I used a fresh virtualenv on Windows 10.

@davidism you are correct I found the difference IDE related this happens when debugging with VSC IDE
sorry for the false positive ticket


make execute_molecule_tests fails with  msg: 'missing required arguments: chdir' during  Enable openvswitch service if installed

At this time I'm not sure what could have caused this issue, as the ansible.builtin.service module invoked[0] doesn't seem to have chdir argument.
Trace:
TASK [edpm_bootstrap : Enable openvswitch service if installed] ****************
fatal: [instance]: FAILED! => changed=false
  failed_when_result: true
  msg: 'missing required arguments: chdir'

PLAY RECAP *********************************************************************
instance                   : ok=11   changed=6    unreachable=0    failed=1    skipped=4    rescued=0    ignored=0

WARNING  Retrying execution failure 2 of: ansible-playbook --inventory /root/.cache/molecule/edpm_bootstrap/default/inventory --skip-tags molecule-notest,notest /opt/edpm-ansible/edpm_ansible/roles/edpm_bootstrap/molecule/default/converge.yml
CRITICAL Ansible return code was 2, command was: ['ansible-playbook', '--inventory', '/root/.cache/molecule/edpm_bootstrap/default/inventory', '--skip-tags', 'molecule-notest,notest', '/opt/edpm-ansible/edpm_ansible/roles/edpm_bootstrap/molecule/default/converge.yml']
WARNING  An error occurred during the test sequence action: 'converge'. Cleaning up.
INFO     Running default > cleanup
WARNING  Skipping, cleanup playbook not configured.
INFO     Running default > destroy
WARNING  Skipping, instances are delegated.
INFO     Pruning extra files from scenario ephemeral directory
make: *** [Makefile:44: molecule_nodeps] Error 1
make: *** [Makefile:24: execute_molecule] Error 2

[0] https://docs.ansible.com/ansible/2.9/modules/service_module.html

Fixed by #78


Update to new Gatsby Webpack APIs

modifyWebpackConfig is going away in V2 of Gatsby. This PR updates the plugin to support the newer onCreateWebpackConfig API.
Test Plan

[x] Confirm gatsby develop and gatsby build in the examples/basic directory runs with no errors

Still working through some bugs: I’m testing this on my personal site on a Gatsby V2 branch.

I just found out gatsby-mdx is a thing, so I’m closing this and pursuing using that instead!


Trouble cloning a private repo

After typing a private repo URL in Github in git clone window. the file tree just go blank. And after refreshing the page, nothing has been cloned.
It would be nice if there is a prompt for me to input git authentication user and password for private project!

We will remove git support in https://github.com/b3log/wide/issues/356