text:
Reto #3 - JavaScript

Describe tus cambios
(Opcional) Sobre todo aconsejable si la "Pull Request" se corresponde con una corrección adicional y no con la presentación de un ejercicio.
Comprobaciones
Asegúrate de cumplir los siguientes puntos antes de realizar la "Pull Request":

[x] El título de mi Pull Request sigue este formato: "Reto #[número] - [lenguaje_utilizado]". (Ej: Reto #0 - Kotlin")
[x] El nombre el fichero que se corresponde con el de mi usuario en GitHub más la extensión del lenguaje. (Ej: mouredev.kt)
[x] El fichero de corrección se encuentra dentro del directorio del ejercicio y en una carpeta con el nombre del lenguaje de programación utilizado en minúsculas. (Ej: Reto #0/kotlin/mouredev.kt)
[x] He revisado que el nombre del directorio del lenguaje no es conflictivo:

c#, no csharp
c++, no cplusplus
go, no golang
javascript, no js

[x] Únicamente he incluído los ficheros de ejercicios. No se aceptarán Pull Requests que contengan archivos adicionales asociados a editores de código o semejantes.

Información

Tienes toda la información sobre los retos semanales en retosdeprogramacion.com/semanales2023.
Cada semana se realizará la corrección en directo y publicación de un nuevo reto en twitch.tv/mouredev.
Recuerda que tienes un grupo de apoyo llamado "reto-semanal" en Discord.

🥖

authors: FabianCristancho captaindrokky


text:
Resource Content changes

Remove Application name/description from all resource content pages.
Replace with Resource Card for specific operation

Implemented

source: gharchive/issue

repo: movio/apidoc-ui

license: mit

license_type: permissive

license_source: bigquery


text:
🛑 t10n Services: Dynamic Image CDN (Das Quartier) is down

In 41503f9, t10n Services: Dynamic Image CDN (Das Quartier) (https://dq-images.t10n.de) was down:

HTTP code: 403
Response time: 213 ms

Resolved: t10n Services: Dynamic Image CDN (Das Quartier) is back up in 8a964b5.

repo: moximoti/upptime

license: MIT

license_source: github-api


text:
Add CC License matter to Terms

Split from #1311
何かをForkしたプロジェクトを利用する際に、「作者と作者以外のクレジット表示される者」というのがフォーク元のプロジェクトのオーナーとコラボレーターにあたる、というようなことを利用規約に書いておく

・利用規約第５条第４項を新設（クレジット表示されるものに関する項目）
4. クリエイティブ・コモンズ・ライセンスが付与された投稿素材をユーザーが利用する場合、当該ユーザーは同ライセンスの表示義務にしたがって「ライセンス対象物の作者その他クレジット表示される者」を表示しなければなりません（同ライセンス第3条a.1.A.ⅰ）。本サービスにおいて、この「ライセンス対象物の作者その他クレジット表示される者」とは、プロジェクトの「オーナー」及び「コラボレーター」がこれに該当するとします。

In the case that a User uses Submission Materials for which a creative commons license, the User shall display or
retain “the identification of the  creator(s) of the Licensed Material and any others designated to receive attribution” according to the display obligations of the license (Creative Commons License, Section 3 a.1.A.ⅰ). Regarding this Service, “the creator(s) of the Licensed Material and any others designated to receive attribution” refers to the “Owner” and the “Collaborator”.

・利用規約第３条第６項を改定（プロジェクトの「オーナー」の定義に関する文言を追加）
第3条　プロジェクト
ユーザーは、プロジェクトまたはプロジェクト・ページ（以下「プロジェクト」といいます）を作成し、自らが提供する文章、イラスト、音、写真、映像、データ、プログラム、ハードウェアその他の素材（以下「投稿素材」という）を投稿し、または公開し、他のユーザーと共有することができます。ただし、ユーザーは、プロジェクトを公開しないこともできます。
ユーザーは、プロジェクト内において、「状態（State）」・「注釈（Annotation）」・「使い方（Usage）」からなる「レシピ」を作成・編集・削除することができます。
ユーザーは、プロジェクト内で、プロジェクトに関する「ノート」を作成できます。ただし、当該プロジェクトにおいて編集権限のないユーザーは、ノートを作成することはできません。
ユーザーは、プロジェクト内において公開されている投稿素材を、投稿したユーザーが定める条件にしたがって、自ら利用することができます（「フォーク」といいます）。
ユーザーは、前項に基づくフォークの結果を参照することができます。
ユーザーは、保有しているプロジェクトに関し、「コラボレータ」を追加することができます（プロジェクトを保有しているユーザーを「オーナー」といいます）。
Article 3　User’s Projects
Users may create projects and project pages (hereinafter referred to as the “Project(s)”), submit their own text, illustrations, sounds, photos, videos, data, programs, hardware and other material (hereinafter referred to as the “Submission Material(s)”), as well publish it and share it with other Users. Users may also choose not to publish a Project.
Users may create, edit and delete “Recipes” based on “State”,”Annotations” and “Usage” within the context of a Project.
Users may create “Notes” related to the Project within the context of a Project. However, Users may NOT create notes within a particular Project without edit privileges.
Users may reproduce and/or reuse Submission Materials that have been published and utilize them themselves in accordance with the conditions designated by the User within the context of a Project (referred to as “Fork”).
Users may consult the result of the Fork outlined in the previous paragraph.
Users may add “Collaborators” to the Projects they own (the User who own the Project is referred to as the "Owner").
・プロジェクトページの「Members」を「Owner & Collaborators」に変更


text:
Audit requirements may be overly strong when dealing with multiple root crates in a workspace

This was noticed in https://bugzilla.mozilla.org/show_bug.cgi?id=1907810, specifically because of the changes in https://phabricator.services.mozilla.com/D212959#inline-1194604.
If we have multiple crates in the local workspace which have different audit requirements, it is possible for an overly strong requirement to be placed on an indirect dependency.
Specifically if we have a dependency graph like the following, where W1 and W2 are toplevel workspace crates, D1 and D2 are third-party dependencies, where D1 optionally depends on D2. W1 does not enable this dependency but W2 does. If W1 has stronger audit requirements than W2 does, those stronger requirements can end up applying to D2, as the two D1 nodes are unified when running cargo metadata to have the combined feature set.
W1[req:safe-to-deploy] -> D1[features:]
W2[req:safe-to-run] -> D1[features:D2] -> D2

(D2 should require "safe-to-run", but will instead require "safe-to-deploy")

Unfortunately, I don't think that the output of cargo metadata really provides a way to solve this ambiguity and get what the resolution would be for each workspace crate independently, such that we could treat the two D1 dependencies as separate "nodes", to not propagate the same audit requirements to their dependencies.
It might be possible if we didn't trust the dependency resolution done by cargo and implemented feature resolution ourselves, but that seems like it'd be both a lot of work, and likely to break as cargo updates and changes how feature resolution is handled.

I've experimented a bit and it looks like using cargo tree --format "{p} {f}" --package CRATE will show the correct subset of features and thus dependent crates. Unfortunately, though, cargo tree doesn't support an output format more easily ingested by programs.

Unfortunately it does look like if you run the cargo tree without a specific --package flag that it'll still unify features, as the in the example from that bug, the neqo-udp crate still has a tokio dependency even under the gkrust crate unless you explicitly scope to only the gkrust package.
Does seem like cargo metadata would need a --package flag and we'd need a reliable way to enumerate all packages within the workspace so that we could do separate metadata runs for each one. On top of that we'd also need to tweak the graph building for the resolver and such so that dependency lists and inherited audit requirements could be dependent on which package the dependency graph is coming from.

authors: afranchuk mystor

repo: mozilla/cargo-vet


text:
[bug 1169261] Fix event tracking

Event tracking needs the provider version number so we can distinguish
between flows for successive algorithms. Further, the "suggest" event
needs to be synchronous while the "view*" events can be asynchronous.
Sorry--forgot to do this. :(
r?

lgtm r+!

Thank you!

source: gharchive/pull-request

authors: rlr willkg

repo: mozilla/fjord


text:
Request headers support for protocols

This is followup from #2 where you can find all the details. Below quote is short summary:

Request Headers - Things seems here sadly far more complicated, but it is also clear that this is really important for proper support of Video / Audio tags that just assume HTTP backend. It was suggested to me to that we could do following:

Plain data from request so that protocol handler can parse HTTP headers or alternative encoding of metadata.
- Expose existing HTTP parser so it could be used. There was quite a reluctance on this though for reasons I did not understand (Part of it was that it's written in C++ and could not be easily extracted for just parsing use). It was highly recommended to instead just support more strictly encoded subset of the headers as anything send from video / audio tags would fit.

Unfortunately it seems that supporting request headers would require C++ work and landing corresponding changes into Firefox which is to say it's likely going to take a while and likely will come after we illustrated that people are actually building on this work.

Is analog to HTTP's  Range requests tracked under this, or should I create a separate issue for it?

Is analog to HTTP's Range requests tracked under this, or should I create a separate issue for it?

Let's track it here for now, depending how it will pan out I might need separate one, but for now it's good. One thing that could help is an example that produces Range requests that are disregarded.

@Gozala I  believe seeking with <video> is the most popular use for range requests right now.
I created a small sandbox illustrating current problems, more details in README at:

lidel/libdweb/tree/video-range-use-case-demo

Migrate to https://bugzilla.mozilla.org/show_bug.cgi?id=1572215

authors: Gozala lidel

repo: mozilla/libdweb


text:
Question: Can this library not be used from Node.js?

Hello,
I just have a question. Can this library not be used from Node.js? I get this error when trying to open a PDF file
The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. ReadableStream and/or Promise.allSettled); please use an ES5-compatible build instead.
my code:
const pdfjsLib = require('pdfjs-dist');
const fs = require('fs');
const pdfPath = 'test.pdf';
const data = fs.readFileSync(pdfPath);
var loadingTask = pdfjsLib.getDocument({data: data});
loadingTask.promise

It's most definitely possible since we have examples of this in the examples folder. The key is that you use the ES5 build as indicated in the error; see
https://github.com/mozilla/pdf.js/blob/master/examples/node/pdf2svg.js#L17

authors: siddjain timvandermeij


text:
Null pointer exception in optional_content_config.js when viewing PDF document

The document in question: doc_image.pdf
Configuration:

Web browser - Chrome
Operating system and its version: Windows 10
PDF.js version: 2.8.335, 2.10.377
Is a browser extension: no

Expected document rendering:

Actual rendering with an error

I can reproduce with Firefox nightly.
@brendandahl, could you have a look ?

Thank you. When the fix might be available in a released version?

Thank you. When the fix might be available in a released version?

The patch has neither been reviewed or landed yet, so you'll have to be patient :-)
It will simply be included in the next release, however no exact date for that can be provided (since we don't have a fixed release schedule) and note also that the last release was just nine days ago.
Furthermore, this isn't a recent regression either, since it's been present ever since PR #12095 which landed a year ago.

authors: Snuffleupagus calixteman ypersion1956


text:
transposed JBIG2 text segments with non-topleft reference corner don't render correctly

Attach (recommended) or Link to PDF file here:
symbol-texttranspose.pdf
symbol-topright-transposed.pdf
symbol-bottomleft-transposed.pdf
symbol-bottomright-transposed.pdf
Configuration:

Web browser and its version: Chrome 123.0.6312.59

Operating system and its version: macOS 13.5.2

PDF.js version: today's trunk at https://mozilla.github.io/pdf.js/web/viewer.html (I verified it has the fix for #17871 already).

Is a browser extension: No

Steps to reproduce the problem:

Open each of the four PDFs above

What is the expected behavior? (add screenshot)
They should all look like the first one:

What went wrong? (add screenshot)
The ones that have the reference corner not set to topleft are in various states of disarray:

ITU-T_T_88__08_2018.pdf 6.4.5 Decoding the text region has two steps for updating cur_s, once in vi) Update CURS as follows: before drawing the bitmap, and then again xi) Update CURS as follows: after drawing the bitmap. It looks like 25f6a0c13965c5ad9cebe701e4752bde5e8fa811 mixes up these two steps with the "is transposed" check. Depending on the reference corner, this needs to happen before or after drawing for both transposed and untransposed iamges.
Like in #17871: I made these files myself while writing a JBIG2 decoder. I'm reasonably confident that the files and Chrome and jbig2dec and my decoder are correct, but it's possible the files are wrong instead.

Oh, and this isn't purely theoretical: This slightly-more-real-world PDF looks wonky because of this.
transpose2.pdf
It's not fully real-world since it's 042_19.jb2 from https://git.ghostscript.com/?p=tests.git;a=tree;f=jbig2;h=8a7abaf842435e204c1ff1dbeed10826bf24afe6;hb=HEAD wrapped in a PDF, so it's still a bit synthetic. But it's a file made by someone else at least, which maybe gives the bug report more credence.


text:
[Bug]: Annotation artifacts remain visible in viewer after deleting all annotations.

Attach (recommended) or Link to PDF file
test.pdf
Web browser and its version
Mozilla Firefox
Operating system and its version
Windows 10
PDF.js version
4.7.76
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem

Open the attached PDF in the default viewer.
Activate the annotation editor by clicking highlight on the toolbar.
Scroll down to the following pages to load the annotations.
Press Ctrl+A to select all annotations in the PDF.
Press delete to remove all annotations at once.

What is the expected behavior?
All annotations should be removed from the PDF.
What went wrong?
Although the annotations are no longer selectable, some of them still appear visible in the viewer.  They only disappear once the annotation editor is closed.
Link to a viewer
No response
Additional context
No response

This is a tricky bug...
When the pdf is rendered we only render the 2 (it depends of the zoom level) first pages, so we're only aware of the annotations we have on those pages. That means we don't have the ids, the properties, ... of the other annotations in the pdf.
For example, we can ctrl+a and then change the color of one highlight, it should impact all the highlights of the document.
So I think the only right way to fix this would be to get all the editable annotations when the user is selecting all, put them in the storage, and then apply the changes to the data we've in the storage.

The problem is most likely OS related. I played around with it on macOS Firefox latest version (132.0.2 aarch64) and Chrome (131.0.6778.70). PDF.js correctly identified and rendered all highlighted text, regardless of the zoom level (even on "Page Fit", all highlights were selected and removed after backspacing or clicking on the delete button).

authors: atrinker calixteman zzadxz


text:
Remove the Glyph.matchesForCache method (PR 13494 follow-up)

This method, and its class, was originally added in PR #4453 to reduce memory usage when parsing text. Then PR #13494 extended the Glyph-representation slightly to also include the charCode, which made the matchesForCache method effectively redundant since most properties on a Glyph-instance indirectly depends on that one. The only exception is potentially isSpace in multi-byte strings.
Also, something that I noticed when testing this code: The matchesForCache method never worked correctly for Glyphs containing accent-data, since Objects are passed by reference in JavaScript. For affected fonts, of which there's only a handful of examples in our test-suite, we'd fail to find an already existing Glyph because of this.

/botio test

/botio test

Note that being able to skip re-parsing this data over and over for every single rendered glyph is a small performance improvement. Some very quick console.time/timeEnd benchmarking, with the default tracemonkey.pdf file, suggest that it's on average 1-2 ms faster per page, which obviously isn't a lot but still doesn't seem worthless.


text:
The annotation layer dimensions must be set before adding some elements (follow-up of #15770)

In order to move the annotations in the DOM to have something which corresponds to the visual order, we need to have their dimensions/positions which means that the parent must have some dimensions.

/botio integrationtest

/botio unittest


text:
[api-minor] Don't print hidden annotations (bug 1815196)

and handle correctly the NoView and NoPrint flags when they're changed
from JS.

/botio test

/botio test

The test bug1737260-oc was failing because the visibility of a widget is now handled in the annotation layer, hence I fixed it in adding annotations: true.

The test bug1737260-oc was failing because the visibility of a widget is now handled in the annotation layer, hence I fixed it in adding annotations: true.

Does that mean that if you use the API directly (and not the full viewer), will rendering now be "wrong" for the document?
I suppose that I don't fully understand exactly why this broke and why updating the test is necessary/correct here.

/botio test

Does this, together with your recent patches, replace PR #15032?
r=me, thank you!

Yep that's the idea, I just need to rewrite the part to update appearances when background or border colors changed.

authors: Snuffleupagus calixteman


text:
Backout of pull request #9345

Refer to https://github.com/mozilla/pdf.js/pull/9345#issuecomment-392536768.

/botio-linux preview

Trivial.


text:
test cases added for agents.py

This is a test case for agents.py
Please do let me know, this is how you want to continue in tests. I am writing for other modules also
How to run
project_root_folder# cd tests
project_root_folder/tests#  nosetests test_agents.py
....
Ran 4 tests in 5.909s
OK

I cannot start it.
Starting it from tests/ returns:
======================================================================
ERROR: Failure: ImportError (No module named bugzilla.agents)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 420, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/sylvestre/dev/mozilla/relman-auto-nag/tests/test_agents.py", line 1, in <module>
    from bugzilla.agents import BMOAgent
ImportError: No module named bugzilla.agents

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)
`̀``

Sylvestre,
I actually installed it using setup.py
If we put that in "tests"  obviously we can't access the modules like bugzilla until and unless it is in the python path.
I thought of adding separate modules for each file, which will increase the readability.
If the method I am following is wrong please do let me know, I can push back in to the root folder in to a single file.

authors: anoopvalluthadam sylvestre

repo: mozilla/relman-auto-nag


text:
yargs can't handle the way process.argv looks in some electron contexts.

yargs assumes that process.argv is [node_path, initial_js, ...rest] so it strips the first two parts of the array and processes the rest (https://github.com/yargs/yargs/blob/master/index.js#L6).
But in electron, particularly when we run as a packaged app process.argv is actually [tofino.exe, ...rest] so we lose the first argument and this breaks events coming from squirrel's installer.

:(

authors: Mossop victorporof

repo: mozilla/tofino


text:
HELP: disable/enable editing

Hi how to enable or disable contentEditing of DIV ?
I tried this but nothing , it dont work
document.getElementsByClassName("simditor-body").contentEditable=flase; this.body.contentEditable=false;
How to create a function like this
Simditor.prototype.enableEditing= function(enable) {     // Enable disable content editing   };
Please help me, is very important for me

1.getElementByClassName returns an array
2.contenteditable is an attribute of DOM, not member of object.
document.getElementsByClassName("simditor-body")[0].setAttribute('contenteditable', false);


text:
Doesn't timeout properly when server is unreachable

 var r = require('redis').createClient(null, '1.2.3.4', {connect_timeout: 1000}); r.on('ready', function(){ console.log('ready!'); }).on('error', function(err){ console.log('error: ' + err)});

It doesn't timeout after 1 second. It does timeout after unknown amount of time with:

error: Error: Redis connection to 1.2.3.4:6379 failed - connect ETIMEDOUT

I think it should follow the docs and error out after specified timeout.

I also got the same issue, my config is the following:
var client = redis.createClient(conf.port, conf.host, {
    connect_timeout: 100,        // abandon connection after 100ms
    retry_max_delay: 100,        // no impact, will not wait more than 100ms between reconnections attemps
    max_attempts: 1,             // only 1 connection attempt
    enable_offline_queue: false, // no offline queue, must wait for online mode
    no_ready_check: true         // we don't check for redis ready state, let's query the redis directly
});

But instead of failing after 100ms, it fails after a full second. Anyone found a fix for that?

Similar issues here.

+1

+1

Any news on this?

I wound up switching to ioredis, which appears to handle the connection timeouts properly and aside from the client creation, be a drop in replacement for my use case.

That looks interesting - I'll take a closer look, thanks.

To reproduce I paused a Redis Docker container but still seeing long timeouts

Is this issue resolved? I experience the behavior described above. The connection fails after about 2 minutes, despite connect_timeout of 5000. I am using version 2.2.5.

@jbergknoff this should definitly be resolved. Do you have a reproducable case? And how do your current options look like?

Hm, interesting. A slightly modified code snippet from the original post here reproduces the issue:
 var r = require('redis').createClient({host: '1.2.3.4', connect_timeout: 1000}); r.on('ready', function(){ console.log('ready!'); }).on('error', function(err){ console.log('error: ' + err)});

The change is in the arguments to createClient. The original snippet unintentionally falls back on the default host (127.0.0.1) because typeof null is object (https://github.com/NodeRedis/node_redis/blob/afc4989495245e683ce70a234c55046a51e73c08/index.js#L1243). If the host is the bogus 1.2.3.4 then this hangs for 2 minutes. If the host is 127.0.0.1 then it works as expected. Any insight into that?

@jbergknoff thx for pointing that out! I'm looking into it right now.

@jbergknoff fixed on master

Great, thanks @BridgeAR! Any ETA on next release to npm?

Later today

authors: BenHall BridgeAR bgSosh celesteking chrisbaldauf jbergknoff michelsalib raviv


text:
🛑 Lyster Exteriors [855lysters.com] is down

In 73e331f, Lyster Exteriors [855lysters.com] (https://855lysters.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Lyster Exteriors [855lysters.com] is back up in 4365d96.


text:
Adding the specified count to the semaphore would cause it to exceed its maximum count

First off, I have to say, this wrapper is great, I've been using it with great success.
However at some point I had the need to fire off these Rest20 commands as async Tasks and I occasionally received an error in StreamSession.cs mentioning:

Adding the specified count to the semaphore would cause it to exceed its maximum count

I recognize these errors from when the database context of entity frame has not been properly disposed. However in this case there is no database context, so I am very curious as to what the reason could be and how I can fix it

Hi yAnn1ck,
First:
The OandaV20 code and repo is no longer supported.
Please migrate to OandaV20.2.
Second:
The Semaphore class is Not used within OkonkwoOandaV20 library.
Any issue(s) you may be experiencing may be due to your code or environment.
That said, the Semaphore class is used in the sample app, OkonkwoOandaV20App.
It is also used in the test project, OkonkwoOandaV20Test.
In both cases, the semaphore usage was inelegant and not intended for production.
Please refer to Microsoft docs at the link below on the Semaphore class for detailed information on the proper use of the Semaphore.
If you need further assistance, please provide a code snippet.
Thanks,
Chris

Good day mrchrisok,
Can you possibly indicate where OandaV20.2 can be found, I would like to migrate but I don't know where to find this repo....
Regards,
JvZ

OANDAV20.2 is available here: https://github.com/mrchrisok/OandaV20.2

authors: Jaco-JvZ mrchrisok yAnn1ck-B


text:
Check with DeviceControl Software Update

Hey,
did anybody check compatibility with new Devices Control Software from minidsp?
Would love to clarify before updating and breaking the connection for minidsp-rs
thy

I think you are refering to device console?  I did upgrade my SHD to that latest firmware.  While minidsp-rs works in every way I've tried with it, the ability for device console to "tunnel" through minidsp-rs directly to the SHD does not work.  Device Console throws some error when I attempt to connect.  The MiniDSP android app does continue to work.

ok, cool. Thank you for your reply.
I would not like to loose the ability to control via. api my minidsp. :)

authors: holisticagile scottshanafelt

repo: mrene/minidsp-rs


text:
[FEATURE REQUEST] add support for notifications icons

:speech_balloon: Description
It would be awesome if this package also generates the icons for notifications.
:question: Platform
This would be for Android.

Duplicated #29

I have add android notification icon on this release v3.0.0-beta.1

authors: JobMoll deandreamatias mrrhak


text:
Does it has BigDecimal in mruby?

I found that in some circumstances I need highly precise decimal type for calculation. So does Mruby support BigDecimal or does it has Mruby gems to support that? thanks!! If not, what should I do the achieve that?

There is a gem to add bignum support.
https://github.com/chasonr/mruby-gmp-bignum/ or https://github.com/chasonr/mruby-bignum/
Read the readme on how to use it, because it either needs a forked mruby version or you have to use special functions to to math on them.

@Asmod4n Thank you very much. However, as my understandings, the gem does not support the BigDecimal. For example, if I want "123456789.123456789 + 123456789.123456789", it should be "246913578.246913578". But for now I got "246913578.246913". Am I correct?

if you want to use + - * / you have to read the readme of the gem.
It should work with 123456789.123456789.to_bn + 123456789.123456789 but i haven't use those gems yet.

Since there are external mrbgems to implement bignum, and the ISO standard does not require bignum, I suggest we close this issue as wontfix.

Just to clarify: the Bignum gems implement integer arithmetic, not decimal floating point as torsakch seems to want. They could be used as a basis for a BigDecimal class, but they do not provide BigDecimal themselves.

authors: Asmod4n beoran chasonr torsakch

repo: mruby/mruby


text:
Issue with implementing ctx.i18n.t("...") in Telegraf's "scenes"

Hello,
Thank you for your contribution. I am currently exploring how to make ctx.i18n.t("...") work in  Telegraf's "scenes", and I'm encountering some difficulties. I would appreciate any assistance or guidance on this matter.
Could you please provide more information on how to effectively implement ctx.i18n.t("...") into "scenes" in Telegraf? Any examples or code snippets demonstrating the correct usage would be greatly appreciated. Additionally, if there are any specific configurations or dependencies that need to be considered, please let me know.
Thank you in advance for your help. I'm eager to resolve this issue and make progress with my project.
Best regards,
Germán Lugo

Hello
Use the same as the examples given
And it does not require any special affiliation
But if you need more help, contact me on Telegram
t.me/Target_Designer
Germán Lugo @.***> در تاریخ یکشنبه ۲۱ مه ۲۰۲۳
ساعت ۱۰:۱۹ نوشت:

Hello,
Thank you for your contribution. I am currently exploring how to make
ctx.i18n.t("...") work in Telegraf's "scenes", and I'm encountering some
difficulties. I would appreciate any assistance or guidance on this matter.
Could you please provide more information on how to effectively implement
ctx.i18n.t("...") into "scenes" in Telegraf? Any examples or code snippets
demonstrating the correct usage would be greatly appreciated. Additionally,
if there are any specific configurations or dependencies that need to be
considered, please let me know.
Thank you in advance for your help. I'm eager to resolve this issue and
make progress with my project.
Best regards,
Germán Lugo
—
Reply to this email directly, view it on GitHub
https://github.com/msaebi031/i18n-telegraf/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKR4BH6I5ZDBNJE5ZZXYWCTXHG3HPANCNFSM6AAAAAAYJGUUN4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi msaebi031,
Thank you for your quick response.
I have found a solution.
Inside the Scene file:
ctx.reply(ctx.scene.ctx.i18n.t("test"))
The trouble maybe is because I'm exporting the Scenes from a subfolder.
Best regards.


text:
🛑 Do53 Roost IPv6 UDP is down

In 965233b, Do53 Roost IPv6 UDP (http://107.189.10.142:9204) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Do53 Roost IPv6 UDP is back up in 3edd04a after 1 hour.

repo: mschirrmeister/upptime-loopx


text:
Sequential processing

                dRi = fcn_singleOrthonormalMatrixGeneration(angles,mus,partial_difference=True,index_pd_angle=iAngle) # TODO: Sequential processing

https://github.com/msiplab/TanSacNet/blob/fda9ca7f20ca0420b7f480b7d2da8de93a4a289c/code/appendix/torch_tansacnet/orthonormalTransform.py#L367

Refactoring the backward method of GivensRotaitons4Synthesizer in orthonormalTransform.py to reflect the sequential differential calculation process.

repo: msiplab/TanSacNet


text:
Complete copy edit pass.

@rotycenh

OPS Build status updates of commit c158ee4:
:clock10: Preparing: average preparing time is 45 sec(s)

OPS Build status updates of commit c158ee4:
:clock10: Incremental building: average incremental building time is 23 sec(s)

OPS Build status updates of commit c158ee4:
:warning: Validation status: warnings

File
Status
Preview URL
Details

toc.json
:warning:Warning

Details

bread/toc.json
:warning:Warning

Details

building-blocks/extending-templates/toc.json
:warning:Warning

Details

docs/cloud-adoption/infrastructure/logs-and-reporting/overview.md
:white_check_mark:Succeeded
View

toc.json

[Warning] Error happen when converting toc.json to Pdf. Details: Could not find file 'T:\azwh\toc.json'.

bread/toc.json

[Warning] Error happen when converting bread/toc.json to Pdf. Details: Could not find a part of the path 'T:\azwh\bread\toc.json'.

building-blocks/extending-templates/toc.json

[Warning] Error happen when converting building-blocks/extending-templates/toc.json to Pdf. Details: Could not find a part of the path 'T:\azwh\building-blocks\extending-templates\toc.json'.

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.

authors: VSC-Service-Account laschultz

repo: mspnp/architecture-center


text:
naming conventions: change 3-letter suffix for Data Lake Store from 'dtl' to 'dls'

Dear all, could you please consider if it make sense to change 3-letter suffix for Data Lake Store from 'dtl' to 'dls'. The justification is that other tools already use the 'dls' abbreviation (such as Azure CLI ). Also 'dls' seem to be appropriate for the resoure type 'Microsoft.DataLakeStore'.
Ref. 5fe63d8. Thanks (and sorry about the messy PRs).
FYI: 'dtl' is widely used abbreviation for DevTestLab, even some templates in azure-quickstart-templates repo use it (even though 'lab' perhaps is better abbreviation for DevTestLab).

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/best-practices/naming-conventions.md
:white_check_mark:Succeeded
View

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.

authors: bennage joakimhellum-in


text:
Shape error occur when running the experiment

[09:38:23] /home/pdl/workspace2/ylj/MXNet/mxnet/dmlc-core/include/dmlc/logging.h:308: [09:38:23] src/operator/batch_norm-inl.h:238: Check failed: channelAxis < dshape.ndim() (1 vs. 0) Channel axis out of range: 1
Stack trace returned 10 entries:
[bt] (0) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(_ZN4dmlc15LogMessageFatalD1Ev+0x3c) [0x7fd8fec99aac]
[bt] (1) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(ZNK5mxnet2op13BatchNormProp10InferShapeEPSt6vectorIN4nnvm6TShapeESaIS4_EES7_S7+0x979) [0x7fd8ffbab989]
[bt] (2) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(+0x16979e7) [0x7fd8ffb719e7]
[bt] (3) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(+0x152be47) [0x7fd8ffa05e47]
[bt] (4) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet4exec10InferShapeEN4nnvm5GraphESt6vectorINS1_6TShapeESaIS4_EERKSs+0x83b) [0x7fd8ffa07afb]
[bt] (5) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(MXSymbolInferShape+0x17ed) [0x7fd8ff99f62d]
[bt] (6) /home/pdl/anaconda2/lib/python2.7/lib-dynload/_ctypes.so(ffi_call_unix64+0x4c) [0x7fd90e97857c]
[bt] (7) /home/pdl/anaconda2/lib/python2.7/lib-dynload/_ctypes.so(ffi_call+0x1f5) [0x7fd90e977cd5]
[bt] (8) /home/pdl/anaconda2/lib/python2.7/lib-dynload/_ctypes.so(_ctypes_callproc+0x3e6) [0x7fd90e96f376]
[bt] (9) /home/pdl/anaconda2/lib/python2.7/lib-dynload/_ctypes.so(+0x9db3) [0x7fd90e966db3]
infer_shape error. Arguments:
data: (1L, 3L, 562L, 1000L)
label: (1L, 20412L)
bbox_target: (1L, 36L, 36L, 63L)
bbox_weight: (1L, 36L, 36L, 63L)
Traceback (most recent call last):
File "dff_rfcn_end2end_train_test.py", line 19, in
train_end2end.main()
File "../../dff_rfcn/train_end2end.py", line 182, in main
config['TRAIN']['begin_epoch'], config['TRAIN']['end_epoch'], config['TRAIN']['lr'], config['TRAIN']['lr_step'])
File "../../dff_rfcn/train_end2end.py", line 101, in train_net
sym_instance.infer_shape(data_shape_dict)
File "../../dff_rfcn/../lib/utils/symbol.py", line 38, in infer_shape
arg_shape, out_shape, aux_shape = self.sym.infer_shape(**data_shape_dict)
File "/home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/symbol/symbol.py", line 958, in infer_shape
res = self._infer_shape_impl(False, *args, **kwargs)
File "/home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/symbol/symbol.py", line 1087, in _infer_shape_impl
ctypes.byref(complete)))
File "/home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/base.py", line 143, in check_call
raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: Error in operator bn_conv1: [09:38:23] src/operator/batch_norm-inl.h:238: Check failed: channelAxis < dshape.ndim() (1 vs. 0) Channel axis out of range: 1
Stack trace returned 10 entries:
[bt] (0) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(_ZN4dmlc15LogMessageFatalD1Ev+0x3c) [0x7fd8fec99aac]
[bt] (1) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(ZNK5mxnet2op13BatchNormProp10InferShapeEPSt6vectorIN4nnvm6TShapeESaIS4_EES7_S7+0x979) [0x7fd8ffbab989]
[bt] (2) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(+0x16979e7) [0x7fd8ffb719e7]
[bt] (3) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(+0x152be47) [0x7fd8ffa05e47]
[bt] (4) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(_ZN5mxnet4exec10InferShapeEN4nnvm5GraphESt6vectorINS1_6TShapeESaIS4_EERKSs+0x83b) [0x7fd8ffa07afb]
[bt] (5) /home/pdl/workspace2/ylj/MXNet/mxnet/python/mxnet/../../lib/libmxnet.so(MXSymbolInferShape+0x17ed) [0x7fd8ff99f62d]
[bt] (6) /home/pdl/anaconda2/lib/python2.7/lib-dynload/_ctypes.so(ffi_call_unix64+0x4c) [0x7fd90e97857c]
[bt] (7) /home/pdl/anaconda2/lib/python2.7/lib-dynload/_ctypes.so(ffi_call+0x1f5) [0x7fd90e977cd5]
[bt] (8) /home/pdl/anaconda2/lib/python2.7/lib-dynload/_ctypes.so(_ctypes_callproc+0x3e6) [0x7fd90e96f376]
[bt] (9) /home/pdl/anaconda2/lib/python2.7/lib-dynload/_ctypes.so(+0x9db3) [0x7fd90e966db3]
It seems like something wrong with the image shape， but I don't know how to solve it. Help， please！

hello , i don't download DET and VID, can you share it?thank you.

hello , i don't download DET and VID, can you share it?thank you.
http://bvisionweb1.cs.unc.edu/ilsvrc2015/download-videos-3j16.php#vid

authors: mornfairy xuwentang yljylj

repo: msracver/Deep-Feature-Flow


text:
Illegal memory access with gpu_mask_voting

It seems to me that for some images, gpu_mask_voting causes illegal memory access (the problem still exists after the latest fix on mask merge). This problem will go away if we use cpu_mask_voting instead.

I have also encountered this...thanks for solution.

authors: realwecan rnunziata

repo: msracver/FCIS


text:
Average calculation in legend

First at all, thank you very much for this plugin @mtanda, it is very useful.
I noted a problem regarding average calculation in the legend. In my case I should have a voltage value close to 230 V, but Grafana shows me out-of-range and non-sense values (greater than 3000 V). Instead maximum and minimum work fine.

I think to have found the problem. The average calculation is bound to the bucket size parameter. If I change it, also the average changes.

Thanks for report. I found a bug. I'll fix it.

I fix the bug, I'll register new version to grafana.net.

authors: dstreppa mtanda

repo: mtanda/grafana-histogram-panel


text:
Question

Hey,
I was wondering if it is possible to position the barlabel above the bar when the value is positive and below the bar when the value is negative.
My code for the bar chart options
    plugins: [       Chartist.plugins.ctBarLabels({         textAnchor: 'middle',         labelClass: 'ct-label',         showZeroLabels: true,         labelOffset: {           x: 0,           y: -15         },       })     ],
positions the label of positive values with an offset of -15  slightly above the bars.
When I have negative values it looks like this:

I would like to put the labels below the bars, please consider to add an example code on how to achieve this:

Best regards,
flix

Hmm...  I don't think I ever handled this use-case.  I'll have to sit down and work out a good solution.  There's likely a way to do this without the plugin using css classes, but that kind defeats the point.  Is that data-set private?  Can you post up the code that you're making that graph with and its data set?

Hey, thanks for the quick response.
This is my code:
var data = {     labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Nov", "Dez"]     series: [[6,0,1,-9,2,-46,-2,5,2,0,6,1],[1,2,6,-8,1,3,1,4,-1,57,1,0]]   };   var options = {     textAnchor: 'middle',     divisor: 4,     seriesBarDistance: 10,     chartPadding: {       left: 40,       top: 40,       bottom: 40     },     axisX: {       showGrid: false,       showLabel: true,       labelClass: 'ct-label',       labelOffset: {         x: 0,         y: 15       },     },     axisY: {       showGrid: true,       onlyInteger: true,       labelClass: 'ct-label',       labelOffset: {         x: -15,         y: 0       },       labelInterpolationFnc: function(value) {         return value + '€';       }     },     plugins: [       Chartist.plugins.ctBarLabels({         textAnchor: 'middle',         labelClass: 'ct-label',         showZeroLabels: true,         labelOffset: {           x: 0,           y: -15         },       })     ],   };   new Chartist.Bar('#bar-chart', data, options).on('draw', function(data) {     if (data.type == 'bar') {       data.element.animate({         y2: {           dur: '0.4s',           from: data.y1,           to: data.y2         }       });     }   });
I could easily manage this problem if the dataset would be consistent but the dataset is changing all the time... so I need a solution that fits my needs.

Hey,
Were you able to solve my problem? ;)
Best regards

No, I'm sorry.  I haven't had the time.  Holidays are always tight for me.  I wish you had of caught me last month.  I'll try to get this banged out, but the soonest I'd probably be able to take a look is two weekends from now.  :(
Thanks for your chart data though, I'll get to it when I can.

Alright. Thanks :)

authors: flixoflax mtgibbs

repo: mtgibbs/chartist-plugin-barlabels

license: WTFPL


text:
🛑 https://minfo.ps is down

In 11b28e9, https://minfo.ps (https://minfo.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://minfo.ps is back up in aba8181.

repo: mtitservice/site


text:
🛑 https://moj.pna.ps is down

In 81ddb97, https://moj.pna.ps (https://moj.pna.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://moj.pna.ps is back up in b8fbdb9.


text:
🛑 https://db.hcys.ps is down

In 6b66db0, https://db.hcys.ps (https://db.hcys.ps) was down:

HTTP code: 0
Response time: 0 ms

Resolved: https://db.hcys.ps is back up in ab18cc9.


text:
Disable join button if there is no initiator

I am developing a video class app. Once the staff started the class means, i will send mail to all students who are all subscribed to that class. How do i disable the Join button in Student side if the Staff is not available, i mean if video class is not started. I'm using RTCMultiConnection V2.2.2

v3 users can use checkPresence method:
<button id="btn-join-room" disabled></button>
<script>
connection.checkPresence('room-id', function(isRoomExists, roomid) {
    if (isRoomExists === false) {
        document.querySelector('#btn-join-room').disabled = true;
    } else {
        document.querySelector('#btn-join-room').disabled = false;
    }
});
</script>

And v2 users can use sendCustomMessage:
<button id="btn-join-room" disabled></button>
<script>
var isRoomOpened = false;
connection.onCustomMessage = function(message) {
    if (message.isRoomExists === false) {
        document.querySelector('#btn-join-room').disabled = true;
        isRoomOpened = true;
    } else if (message.isRoomExists === true) {
        document.querySelector('#btn-join-room').disabled = false;
        isRoomOpened = true;
    }

    if (message.checkIfRoomExists === true && message.roomid === connection.sessionid) {
        connection.sendCustomMessage({
            isRoomExists: true,
            roomid: 'room-id'
        });
    }
};

connection.connect();

(function looper() {
    connection.sendCustomMessage({
        checkIfRoomExists: true,
        roomid: 'room-id'
    });

    if (isRoomOpened === true) return;

    setTimeout(looper, 3000); // check after every 3-seconds
})();
</script>

One more question. How do i rejoin the student if he come back again???

repo: muaz-khan/RTCMultiConnection


text:
ICE fails resolving relay when using desktop browser on one side and crosswalk or webview Android on the other side

I used the library in a project and it works fine between browsers from different networks (tried home network + 4G once). It works even between desktop browser and mobile browser (chrome). Unfortunately I cannot make it work when I deploy the APK on Android. I use Crosswalk version 22. I deployed Coturn on a digital ocean account. Tried both turn and turns.
By looking at the web browser console on the desktop I see:

browser to browser, the remote ICE candidates are displayed correctly, the last one which matters is the relay one. The connection was established.

browser to android webview or crosswalk, I see only one remote ICE candidate of type host then a short pause and then the connectivity attempt is dropped.
It happened though that 3 times out of many many attempts it worked, that was when the remote candidate displayed was a relay one. I wasn't able to keep it working consistently, I cannot reproduce to make it work again.

What shall I do to make it work?

Hi Muaz-Khan,
Were you able to create an android app that either broadcasts or displays video content using RTCMultiConnection? If so, did it work when the the two involved parties are in separate networks?

Salut @raducrisan1 . Si mie mi se intampla acelasi lucru. Am o aplicatie in angular si folosesc tot crosswalk 22. Pe consola de la app imi apar cateodata doar host ice candidates, iar alta  imi apar si relay. Ai reusit sa gaesti vreo solutie?

Hi,
Yes. I created my own signaling server.
Cheers,
Radu
On Mon, Jan 9, 2017 at 8:45 PM, mado1987 notifications@github.com wrote:

Salut @raducrisan1 https://github.com/raducrisan1 . Si mie mi se
intampla acelasi lucru. Am o aplicatie in angular si folosesc tot crosswalk
22. Pe consola de la app imi apar cateodata doar host ice candidates, iar
alta imi apar si relay. Ai reusit sa gaesti vreo solutie?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/muaz-khan/RTCMultiConnection/issues/283#issuecomment-271368716,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOfVE75HcsHCuh9XTcbvbU1pQFySWLIyks5rQoBWgaJpZM4KqgkS
.

Si care a fost problema? Ai un id de skype te rog?Mersi

Hi
how allow video call through webview?

on Android and ios


text:
Is possible to use this library in my KITE Project ?

How can I get these stats: bandwidth usage, packets lost, local/remote ip addresses and ports, type of connection etc and use them in my KITE Project ?

hi,guys. I did it on last year.

repo: muaz-khan/getStats


text:
Save and Load: New Json

Save and Load: New Json

[x] Save Parse New Json

Primary: @Joperezc

Secondary: @nrhoopes

Size: MEDIUM

Actual Size: MEDIUM

Actual Time: 1HR 30MIN

Updated Json parse in the form
{guessedWords, wordList, puzzleLetters, requiredLetter, currentPoints, maxPoints}

authors: AitorCantero Joperezc


text:
local build run failed for rwkv backend

LocalAI version:
LocalAI version v1.40.0-38-g3e35b20 (3e35b20a0201db39ac7973c4e2b6b528f3d044b2)
Environment, CPU architecture, OS, and Version:
mac m1
Darwin Kernel Version 22.6.0: arm 64
Describe the bug

load rwkv model failed, chat api request return 500:
Request:
curl http://localhost:8989/v1/chat/completions -H "Content-Type: application/json" -d '{
"model": "outv4.bin",
"messages": [{"role": "user", "content": "How are you?"}],
"temperature": 0.9, "top_p": 0.8, "top_k": 80
}'
{"error":{"code":500,"message":"could not load model - all backends returned error: 17 errors occurred:\n\t* could not load model: rpc error: code = Canceled desc = \n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = failed loading model\n\t* could not load model: rpc error: code = Unknown desc = could not load model\n\t* could not load model: rpc error: code = Unknown desc = unable to load model\n\t* grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/stablediffusion. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n\t* grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/piper. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n\n","type":""}}%
To Reproduce

Expected behavior
load rwkv model success,  api return sucess
Logs
LOG :
3:00PM DBG [rwkv] Attempting to load
3:00PM DBG Loading model rwkv from outv4.bin
3:00PM DBG Loading model in memory from file: models/outv4.bin
3:00PM DBG Loading Model outv4.bin with gRPC (file: models/outv4.bin) (backend: rwkv): {backendString:rwkv model:outv4.bin threads:4 assetDir:/tmp/localai/backend_data context:{emptyCtx:{}} gRPCOptions:0x1400046e1e0 externalBackends:map[] grpcAttempts:20 grpcAttemptsDelay:2 singleActiveBackend:false parallelRequests:false}
3:00PM DBG Loading GRPC Process: /tmp/localai/backend_data/backend-assets/grpc/rwkv
3:00PM DBG GRPC Service for outv4.bin will be running at: '127.0.0.1:64113'
3:00PM DBG GRPC Service state dir: /var/folders/yj/wt9vbj1s34vb69qyywcgwxlh0000gn/T/go-processmanager2591975212
3:00PM DBG GRPC Service Started
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:64113: connect: connection refused"
3:00PM DBG GRPC(outv4.bin-127.0.0.1:64113): stderr 2023/11/20 15:00:07 gRPC Server listening at 127.0.0.1:64113
3:00PM DBG GRPC Service Ready
3:00PM DBG GRPC: Loading model with options: {state:{NoUnkeyedLiterals:{} DoNotCompare:[] DoNotCopy:[] atomicMessageInfo:} sizeCache:0 unknownFields:[] Model:outv4.bin ContextSize:512 Seed:0 NBatch:512 F16Memory:false MLock:false MMap:false VocabOnly:false LowVRAM:false Embeddings:false NUMA:false NGPULayers:0 MainGPU: TensorSplit: Threads:4 LibrarySearchPath:/tmp/localai/backend_data/backend-assets/gpt4all RopeFreqBase:0 RopeFreqScale:0 RMSNormEps:0 NGQA:0 ModelFile:models/outv4.bin Device: UseTriton:false ModelBaseName: UseFastTokenizer:false PipelineType: SchedulerType: CUDA:false CFGScale:0 IMG2IMG:false CLIPModel: CLIPSubfolder: CLIPSkip:0 Tokenizer: LoraBase: LoraAdapter: LoraScale:0 NoMulMatQ:false DraftModel: AudioPath: Quantization: MMProj: RopeScaling: YarnExtFactor:0 YarnAttnFactor:0 YarnBetaFast:0 YarnBetaSlow:0}
3:00PM DBG [rwkv] Fails: could not load model: rpc error: code = Unknown desc = could not load model
Additional context

Hi @redstarxz  we have some examples of rwkv in https://github.com/go-skynet/model-gallery/blob/main/rwkv-raven-1b.yaml. Please check the example. I am not if outv4.bin's format is correct.

Hi @redstarxz we have some examples of rwkv in https://github.com/go-skynet/model-gallery/blob/main/rwkv-raven-1b.yaml. Please check the example. I am not if outv4.bin's format is correct.
Thanks, Finaly, I found the reason,  for rwkv backend,  the token file name must fit with the model file name...

authors: Aisuko redstarxz

repo: mudler/LocalAI


text:
Add new code syntax

I really hope that the plugin can support more syntax highlighting. I have a lot of HLSL code in my notes, but Obsidian does not support highlighting by default. I wonder if this plugin could be expanded to support more syntax in the future, such as supporting all the latest syntax from PrismJS.

Theoretically it could, but writing the grammar for syntax highlighting is very (and I mean really) complicated. It could take a lot of time to write the grammar for a single language, if you are not familiar with it. And I am not. If you want to write the grammar, I am happy to include it in the plugin.

@Porco24 Did you mean editing mode or reading mode? Or both? During the development of the current release, I had to something with syntax highlighting. If reading mode would be enough for you, that could probably be solved. But editing mode is really challenging. I will take a look, maybe there is a "relatively" easy way.

@mugiwara85 Hi, I mean Both, If this feature is implemented, it would be very helpful to me. I hope to be able to download some highlight rule from the internet and import it into Obsidian.

Hi @StarkSkywalker, Some basics :)

The plugin does not add syntax highlighting to code blocks
Obsidian uses two separate methods for providing syntax highlighting. In editor mode, it uses CodeMirror 6, and in reading mode it uses Prism.js -> This is the reason that the syntax highlighting differs in editor mode and reading mode.

Prism.js supports the makefile language that is why it works in reading mode as shown below:  And this is also the reason why it doesn't work in editor mode, because CodeMirror 6 does not support it.
It is possible to create and add syntax highlighting for new languages in CodeMirror 6, but it is very complicated. You basically, have to write for every language the grammar, and that is complicated and time consuming.
But! You are in luck! For MakeFile there is a package, I can add. I'll check it out and contact you later.

Oh! Thank you so much, my friend! Your kindness knows no bounds.(My English is a little terrible, but this is the first time I've interacted with a webmaster on Github! The joy is beyond words!Long live the spirit of the Internet!)
I actually learned the basics first through your reply before I tried it, and it turned out just like you said it would.

Hi @StarkSkywalker, Some basics :)

The plugin does not add syntax highlighting to code blocks
Obsidian uses two separate methods for providing syntax highlighting. In editor mode, it uses CodeMirror 6, and in reading mode it uses Prism.js -> This is the reason that the syntax highlighting differs in editor mode and reading mode.

Prism.js supports the makefile language that is why it works in reading mode as shown below:  And this is also the reason why it doesn't work in editor mode, because CodeMirror 6 does not support it.
It is possible to create and add syntax highlighting for new languages in CodeMirror 6, but it is very complicated. You basically, have to write for every language the grammar, and that is complicated and time consuming.
But! You are in luck! For MakeFile there is a package, I can add. I'll check it out and contact you later.

@mugiwara85 Oh! Thank you so much, my friend! Your kindness knows no bounds.(My English is a little terrible, but this is the first time I've interacted with a webmaster on Github! The joy is beyond words!Long live the spirit of the Internet!)
I actually learned the basics first through your reply before I tried it, and it turned out just like you said it would in reading mode.

Don't worry about your english. It's good (I am also not a native english speaker). I just noticed that the package which adds MakeFile syntax, supports only basic syntax, but nertheless it's more than nothing. I'll report back later if I find out, how I can add it.

@StarkSkywalker Unfortunately, I have bad news for you. I just tried to install that package I mentioned last time, but that won't work. The reason is, that as it turned out, Obsidian uses CodeMirror 6, but not for everything. Specifically, for syntax highlighting it uses CodeMirror 5 nodes. And the package is written in CodeMirror 6 so it won't work :( As far as I could tell, the package would have only added very basic syntax highlight. Basically, comments and that's it. It is also important to mention, that makefile is one of the hardest languages apparently, as I couldn't find any grammar for it. Multiple are asking, but there are just some custom implementations. But it is also important to mention, that CodeMirror 5 syntax highlighting might work. And this might is really just a guest. Unfortunately, I couldn't find a list which languages does CodeMirror 6 support, but CodeMirror 5 does support these: https://github.com/codemirror/codemirror5/tree/master/mode
Is here anything interesting for you? I might be able to import that. (No guarantee)


text:
[emotion] Unable to override TextField's label focus class.

First, thank you for this wonderful library.
Please see this minimal example

As you can see,  there is no chaging on focus label color, although my custom className is in higher order, there is two combination className stick together, causing my custom className disabled.

Sorry for not typing code because I can't trigger focus when I copy.
I think this is a bug, please help, thanks.

@rockmandash Here is the right approach:
      <TextField
        id="pid"
        label="test"
        InputLabelProps={{
          FormLabelClasses: {
            root: css`
              &.focused {
                color: red;
              }
            `,
            focused: "focused"
          }
        }}
      />

https://codesandbox.io/s/20mo9rkl0y
Maybe we should be adding an example with Emotion in the documentation? I have prepared this codesandbox. Do you want to work on it? https://codesandbox.io/s/yw93kl7y0j

And maybe you should use the theming of material-ui.

Actually, documenting react-emotion would be good too.

@oliviertassinari Wow, thank you for your fast reply!
It's working right now! Thank you so much.
Documenting emotion library is good, I don't know if I can work on it, but thank you so much for asking!

@oliviertassinari

Maybe we should be adding an example with Emotion in the documentation?

I think it makes sense to add a section to the style libraries guide on Emotion.
I'd get happy to work on this!

@lukePeavey Awesome. We already have the codesandbox: https://codesandbox.io/s/yw93kl7y0j.
We can add emotion to the list https://material-ui.com/guides/interoperability/. By popularity, I would say after styled-components but before glamourous.

@rockmandash Here is the right approach:
      <TextField
        id="pid"
        label="test"
        InputLabelProps={{
          FormLabelClasses: {
            root: css`
              &.focused {
                color: red;
              }
            `,
            focused: "focused"
          }
        }}
      />

https://codesandbox.io/s/20mo9rkl0y
Maybe we should be adding an example with Emotion in the documentation? I have prepared this codesandbox. Do you want to work on it? https://codesandbox.io/s/yw93kl7y0j

Looking at the code, does it mean one has to also use those JSS bits when he wants to use emotion? I'd rather not pull in JSS in addition to emotion but then maybe I'm missing something?

@markusgattol

Looking at the code, does it mean one has to also use those JSS bits when he wants to use emotion? I'd rather not pull in JSS in addition to emotion but then maybe I'm missing something?

What JSS bits are you referring to?

@lukePeavey import JssProvider from "react-jss/lib/JssProvider"; for example from link @oliviertassinari posted in his solution.

I see what you mean...
You need to configure the injection order so that Emotion styles are injected below JSS styles. This is necessary to ensure that Emotion styles have higher priority than the default material ui styles. (otherwise you need to !important)
JSS is already included your project as a dependency of material ui.

Reading through the docs for the last hour I actually figured I'll not use emotion because there's no need. JSS is included, as you said and seems to be first choice when it comes branding i.e. applying an individual style on top of components from material-ui.
fyi, I've been using preact and preact-material-components for a while but the amount of work necessary and the ongoing breaking changes made me drop the entire stack and move back to react and material-ui (the latter which I haven't used before because I switched from react to preact about 18 month ago for reasons of bundle size and speed but then that gap is becoming smaller and less important as time goes on.)

@oliviertassinari should react-emotion be a separate top level section in the interop guide or sub section of emotion

@lukePeavey a sub section?

Just in case some one else find this issue later.
I've created a component to simplify the material ui's css over writing process.
You just need to wrap your whole application in this OverrideMaterialUICss component. This library is a wrapper component which only takes the children prop and renders it without any modification but just moving Material-UI's

authors: janhoeck lukePeavey markusgattol nerdmax oliviertassinari rockmandash

repo: mui-org/material-ui


text:
Support "auto" for them.spacing() - them.spacing("auto")

[X] I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

I think that it will be more convenient when spacing function support "auto" value.
const useStyles = makeStyles((theme: Theme) => ({
  searchBar: {
    width: 1400,
    margin: theme.spacing(1, "auto", 1, 4),
  },
  layoutButtons: {
    marginRight: theme.spacing(4)
  }
}));

Examples 🌈

In my case,
const useStyles = makeStyles((theme: Theme) => ({
  searchBar: {
    width: 1400,
    marginRight: "auto",
    marginBottom: theme.spacing(7)
    marginLeft: theme.spacing(4),
  },
  layoutButtons: {
    marginRight: theme.spacing(4)
  }
}));

It can be shorten like this:
const useStyles = makeStyles((theme: Theme) => ({
  searchBar: {
    width: projectSearchBar,
    margin: theme.spacing(0, "auto", 7, 4),
  },
  layoutButtons: {
    marginRight: theme.spacing(4)
  }
}));

@hckhanh This sounds like a great idea. Do you want to work on it? :)

It would be a good opportunity to unify the behavior between
https://github.com/mui-org/material-ui/blob/07b725e54cdec560dab06f5a662d2869eca9ffb2/packages/material-ui-system/src/spacing.js#L77-L116
and
https://github.com/mui-org/material-ui/blob/07b725e54cdec560dab06f5a662d2869eca9ffb2/packages/material-ui/src/styles/createSpacing.js#L3-L34

hi @oliviertassinari, I will make an PR for this 👍

We can support any string.

authors: hckhanh oliviertassinari


text:
Add inputRef to Select

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡
It would be nice to have inputRef on Select so that it could easily work with libraries like react-hook-form
Examples 🌈
import React from "react";
import { useForm } from "react-hook-form";
import { Select } from "@material-ui/core";

const MySelect = () => {
  const { register, handleSubmit } = useForm();

  return (
    <form onSubmit={handleSubmit(console.log)}> // should log { mySelect: "1" } on submit
      <Select native inputRef={register} name="mySelect">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
      </Select>
    </form>
  );
};

export default MySelect;

Motivation 🔦
As I mention, this would make it easier to work with libraries react-hook-form

Use it with <Controller> like this: https://codesandbox.io/s/rhf-mui-select-forked-7xl8z?file=/src/index.js:802-826
<Controller
  render={({ ref, onChange }) => (
    <Select inputRef={ref} onChange={onChange}>
      <MenuItem value="">None</MenuItem>
// (...)


text:
[@mui/styled-engine-sc] The checks breaks styled-components' API

The current implementation of styled-engine-sc breaks styled-components' API when not in production

[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 😯
styled(MyComponent).attrs({})`` // Error, .attrs is not defined

Expected Behavior 🤔
According to the styled-components' API, this should be allowed
Steps to Reproduce 🕹
import React from "react";
import { AppBar as MuiAppBar } from "@mui/material";
import styled from "@mui/styled-engine-sc";

const AppBar = styled(MuiAppBar).attrs({
  position: "static",
})`
  box-shadow: none;
`;

If NODE_ENV=="production", this works
If NODE_ENV!="production", attrs is undefined

Cause
In @mui/styled-engine-sc/index.js there is a specific check done against the function's parameter. But this overrides the default styledFactory object, breaking the styled-component API
Recommended action
I'm all for extra checks, but until there is a better way to do this (sorry, can't think of one right now), this condition should be disabled

We don't support .attrs(). I don't think that we should either, to maximize the interoperability. However, not supporting the behavior in dev and prod sounds better for the DX. cc @mnajdova for thoughts.

We don't support .attrs(). I don't think that we should either, to maximize the interoperability between the different engines (not supported by emotion, goober, etc.). Could importing from styled-components directly if you really need this API work?
However, not supporting the behavior in prod, like in dev sounds better for the DX: no surprises.

Agree, we don't want to support he different APIs. I will create a PR for ensuring the same behavior is persisted in prod mode too.

authors: mnajdova oliviertassinari yleflour


text:
[StepConnector] Customize connector based on internal states

Closes #13010
This can be accomplished with the following example:
<Stepper
  connector={
    <StepConnector
      classes={{ lineActive: classes.lineActive, lineCompleted: classes.lineCompleted }}
    />
  }
>
{/* ... */}
</Stepper>

or with using createMuiTheme:
createMuiTheme({
  overrides: {
    MuiStepConnector: {
      completed: {
        '& span': {
          borderColor: indigo[500],
        },
      },
    },
  },
});

Before

After

@oliviertassinari Would it be possible to include an error class here as well?


text:
[core] Update monorepo

Propagate https://github.com/mui/material-ui/pull/41901
Preview: https://deploy-preview-333--base-ui.netlify.app/base-ui/getting-started/

On hold, waiting for #326 to be merged

repo: mui/base-ui


text:
Syntax error: "@next/font" requires SWC although Babel is being used due to a custom babel config being present.

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live example:
Steps:

Open the example on this page in StackBlitz:

Current behavior 😯
❯ npm install && npx next dev
warn preInstall No description field
warn preInstall No repository field
warn preInstall No license field
┌ [1/4] 🔍  Resolving dependencies
└ Completed in 0.146s
┌ [2/4] 🚚  Fetching dependencies
│ info pruneDeps Excluding 8 dependencies. For more information use `--verbose`.
└ Completed in 1.945s
┌ [3/4] 🔗  Linking dependencies
└ Completed in 3.256s
info security We found `install` scripts which turbo skips for security reasons. For more information see
https://turbo.sh/install-scripts.
└─ core-js-pure@3.27.1

success Saved lockfile "package-lock.json"
success Updated "package.json"

success Install finished in 5.417s
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
info  - Using external babel configuration from /home/projects/xoribkgmv.github/.babelrc
error - ./src/theme.ts:1:1
Syntax error: "@next/font" requires SWC although Babel is being used due to a custom babel config being present.
Read more: https://nextjs.org/docs/messages/babel-font-loader-conflict
^C

~/projects/xoribkgmv.github 5m 21s

Expected behavior 🤔
No SyntaxError:
error - ./src/theme.ts:1:1
Syntax error: "@next/font" requires SWC although Babel is being used due to a custom babel config being present.
Read more: https://nextjs.org/docs/messages/babel-font-loader-conflict

Context 🔦
No response
Your environment 🌎

npx @mui/envinfo
❯ npx @mui/envinfo
success Install finished in 3.908s

  System:
    OS: Linux 5.0 undefined
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 7.17.0 - /usr/local/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    @emotion/react: latest => 11.10.5
    @emotion/styled: latest => 11.10.5
    @mui/base:  5.0.0-alpha.112
    @mui/core-downloads-tracker:  5.11.2
    @mui/icons-material: latest => 5.11.0
    @mui/material: latest => 5.11.2
    @mui/private-theming:  5.11.2
    @mui/styled-engine:  5.11.0
    @mui/system:  5.11.2
    @mui/types:  7.2.3
    @mui/utils:  5.11.2
    @types/react: latest => 18.0.26
    react: latest => 18.2.0
    react-dom: latest => 18.2.0
    typescript: latest => 4.9.4 ```
</details>

The .babelrc file does not exist in the folder, it's strange why it is there when opened with StackBlitz. It works as expected in Codesandbox tough. It shouldn't happen locally as this file does not exist.

Hi, if you are using NextJS 13, some features like @next/fonts are using SWC to compile, so you need to configure swc instead of babel.
SWC documentation: https://swc.rs/docs/getting-started
if you have the  .babelrc i can help to make a migration for SWC

authors: behrangsa marciofaria-git mnajdova

repo: mui/material-ui


text:
Perhaps a more correct calculation sizeof for memcpy()

@matttbe, @mjmartineau,
am I correct in assuming that in this code, memcpy has different size and it possible underflow or overflow?
I don't know code perfectly, so I'm asking you. If I make a mistake, cancel PR changes.

Thanks for PR, too!  It's always good to have more eyes on the code.  Much appreciated!

@GermanAizek thank you for this PR.
@ossama-othman thank you for the complete reply! I agree with you, we cannot replace the sizeof() for IPv6.
I guess we can then close this PR.

authors: GermanAizek matttbe ossama-othman

repo: multipath-tcp/mptcpd


text:
Remove assignment to the variable as the value is never used(1)

Breaking change

Proposed change

Type of change

[ ] Dependency upgrade
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New integration (thank you!)
[ ] New feature (which adds functionality to an existing integration)
[ ] Deprecation (breaking change to happen in the future)
[ ] Breaking change (fix/feature causing existing functionality to break)
[ ] Code quality improvements to existing code or addition of tests

Additional information

This PR fixes or closes issue: fixes #
This PR is related to issue:
Link to documentation pull request:

Checklist

[ ] The code change is tested and works locally.
[ ] Local tests pass. Your PR cannot be merged unless tests pass
[ ] There is no commented out code in this PR.
[ ] I have followed the development checklist
[ ] I have followed the perfect PR recommendations
[ ] The code has been formatted using Black (black --fast homeassistant tests)
[ ] Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated for www.home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[ ] The manifest file has all fields filled out correctly.
Updated and included derived files by running: python3 -m script.hassfest.
[ ] New or updated dependencies have been added to requirements_all.txt.
Updated by running python3 -m script.gen_requirements_all.
[ ] For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
[ ] Untested files have been added to .coveragerc.

To help with the load of incoming pull requests:

[ ] I have reviewed two other open pull requests in this repository.

Motivation: Removing dead stores, where a value is assigned to a variable but never used, is crucial for writing high-quality code. It not only makes the code easier to read and maintain but also ensures efficient use of resources. When unused variables clutter the code, it can confuse developers and make debugging more challenging. Additionally, performing calculations or retrieving values that are never used can lead to wasteful resource consumption, affecting the program's performance. Furthermore, dead stores may indicate a logic error, potentially causing unexpected behavior. By getting rid of these unused variables, developers can create more efficient and error-resistant code, ultimately leading to better software quality. In this particular code, I removed "device = entry.data[CONF_DEVICE]" as it is not used.

looks good

authors: GaneshSarla munterkalmsteiner

repo: munterkalmsteiner/core


text:
插件token报校验异常

按照此步骤https://www.murphysec.com/docs/integrations/murphysec-jetbrains-plugin/#%E9%85%8D%E7%BD%AE%E6%8F%92%E4%BB%B6 操作显示token校验异常

网络是通的吗，大佬，要不加下我们readme下面的运营同学的微信，我们给你解决下。

网络是通的吗，大佬，要不加下我们readme下面的运营同学的微信

网络是通的吗，大佬，要不加下我们readme下面的运营同学的微信，我们给你解决下。

在内网环境开发，不确定校验所用网址是否通，可以把请求地址发出来吗？

authors: chncaption duzhenming

repo: murphysecurity/murphysec


text:
Heos by Marantz and Denon

It doesn't appear to work with HEOS.

What is not working ? Please define your steps...
Anything helpful in your logs that give me a clue ?

I had a quick peek at the source code of the Heos integration in HA and that should theoretically work fine with Music Assistant. So it would really help if you provide a step for step walkthrough what you did and where it went wrong and if you see any errors somewhere.

@chrismdann can you share some more info what is not working otherwise I'll have to close this report

closed due to no response

authors: chrismdann marcelveldt

repo: music-assistant/hass-music-assistant


text:
Can't update MA from HACs

What version of Music Assistant has the issue?
2022.7.2
The problem
After analysing logs in HACs... it seems that I am trying without success to update MA with patch-2022.7.3. Seems this file is no more present in the github. Is possible to have it availabe in otder to have a normal MA update ?
How to reproduce
Just try to click on the update button
Relevant log output
022-08-24 15:53:34.883 ERROR (MainThread) [custom_components.hacs] <Integration music-assistant/hass-music-assistant> GitHub returned 404 for https://api.github.com/repos/music-assistant/hass-music-assistant/git/trees/patch-2022.7.3
"pushed_at": "2022-08-23T21:18:45",
"releases": true,
"selected_tag": "patch-2022.7.3",
"version_installed": "2022.7.2",
"last_fetched": 1661424301.722832
Additional information
No response
What version of Home Assistant Core are your running
20228.6
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
ODROID

You need to update MA to 2022.8.x as you are running HA 2022.8.6. That option should be in HACS?

No I can't update anything .... that's the main problem since more than in month....
When I click on update I got this error file in hacs pointing the missing file....

No, we can't bring that file back. Besides that it is an old version too.
Can't you just remove Music Assistant completely from HA and HACS and reinstall ?
Or press the button "Update information" first ?

No, we can't bring that file back. Besides that it is an old version too. Can't you just remove Music Assistant completely from HA and HACS and reinstall ? Or press the button "Update information" first ?

I tried all your options.... nothing worked unfortunatly .... :(

Are you on HA version 2022.8.x ?

Yes everything is updated from my side, last HA, last everything......
I don't know in the ./storage/hacs.repositories   mentioned with patch file.... impossible to update it manually for another version...

Maybe try to update it manually ?
Download the zipfile for the latest release: https://github.com/music-assistant/hass-music-assistant/releases/download/2022.8.4/mass.zip
unpack it in the custom_components folder, overwriting the existing content

I already tried that option too :( :(

In that case the only option is to remove HACS completely and reinstall. Also delete all the HACS related files and folders.
We can't help you on this I'm afraid as it is strictly taken an HACS issue and not a MA issue.

I see ... in Hacs issue, they said it's a MA issue (deleted file).... If I delted all ./storage file, I will also loose all other integrations inputs  and reinstalled them too...

It is not too uncommon that a release is replaced. Bad things happen and code needs to be guarded for that. I find it kind of strange that the whole thing is unrecoverable crashed due to the fact that we deleted a release 10 minutes after it was published (because it was faulty). I really do not understand why HACS keeps grabbing a tag that does not exists, in my opinion that is a bug in HACS.
This is why we have backups so we can restore after something bad happened ;-)
I have recreated that missing tag but I don't think that will fix the issue.

Ok ... I had to delete all HACS and ./storage associated files and also all integrations/frontend one by one :( :( ...
But at least I got an MA updated..... so now for sure I will wait a while before a new MA update...

authors: OzGav SeByDocKy marcelveldt


text:
Method "listenForMessageWithIdentifier" didn't work if I launch watch app from glance

Here is an simple example project:
https://github.com/yenchenlin1994/WormholeBugExample
(You have to change App groups to your own groups)
This app simply use a NSTimer to update counter label on Phone interface,
and then use MMWormhole try to sync value of the label on Watch interface.
It works totally fine when I choose schema WormholeBugExample WatchKit App
to run, and then manually open the phone app on iOS simulator.
However, things changed if I change schema to Glance - WormholeBugExample WatchKit App and then do the same process as above.
After I tap on Glance to launch my watch app, the label on watch's interface didn't correctly sync with label on phone interface.
In fact, it sometimes stop listening for the message at the beginning or when counter counts to particular value (ex: When it counts to 8).
How can I fix it?

You should move everything in awakeWithContext into willActivate. That'll help make sure the wormhole is active. It's also the best way to ensure that UI updates only happen when the interface controller is active. It's also a good idea to stop listening and/or nil out the wormhole in the didDeactivate method of the interface controller.

I've tried your solution,
but problems I met remain the same.

I seem to be having similar issues when activating my WatchKit app from the glance. The WatchKit app works perfectly when I run it directly from Xcode, but if I run the glance scheme and then tap on it to open the WatchKit app, my callbacks don't run.

This has been discussed in the Apple Forums, and based on a response from an Apple employee, it's possible that it's only a simulator bug: https://devforums.apple.com/message/1111028

Yeah. My understanding is that it's an unfortunate (and fairly annoying until we have hardware) simulator bug.

authors: cnstoll davidbarker mikeswanson yenchenlin1994

repo: mutualmobile/MMWormhole


text:
feat(test): add better test covering each template

Now using nifty async iteration over each template type and checking if EACH template's entries contain the right scripts.

Thanks!

repo: mutualofomaha/multipage-webpack-plugin


text:
No have tag instance access api

grid and item is tag,  nesting in html:
<grid>
    <item field="name" label="名称" />
</grid>

grid not access item instance，such： grid.children[0]
item not access grid instance，such： item.parent,   but item.parent is null
Only 'item'  definition in 'grid' item.parent isn't null

children property is now implemented on v2.0.8.
on the nested tag you'll have access to parent property.

resolved on v2.0.8

authors: cheft tipiirai

repo: muut/riotjs


text:
Timeout waiting for log entry "containerrootrc=ready"

Hi! Not really sure whats happening here. Happens with either of xephyr, xpra, nxagent and hostidsplay. As if the docker image doesnt even get started. Here is a verbose log output upload: https://waritschlager.de/share/922650f43f77a6fe.txt
Seems to have broken with a x11docker update of last few weeks/months, as I did not have any such problems beforehand. I can cycle through recent commits to find the culprit tomorrow.
until then, LG

Thank you for the bug report!
I found this error message:
/tmp/containerrootrc: 11: /tmp/containerrootrc: cannot create /x11docker/container.log: Permission denied

It is this line in containerrootrc:
exec 1>>/x11docker/container.log 2>&1

It only serves to redirect some log output. I'll think about a possible alternative.
The error message is confusing because the file exists for sure.

I got around to check the commits already:
bcb791cc9d581e1cb404761c52127ca63d26d110 is when the issue arose. The log says x11docker[14:18:12,517]: Waiting since 2s for /x11docker/containerrootrc.ready to have content, will wait up to 32000 seconds.. Do you need any more verbose logs from around this commit?
Part of the problem (seeing that this issue hasnt been opened yet) may be that I set the permissions on ~/.local and most other folders in $HOME to drwx------   6 phi phi         4.0K Oct 21 14:08  .local.  I think it makes the most sense as the contents of this folder arent any other user's (be it system or human) business. This is what had me open another issue once already (#131), where you fixed it by leveraging a /tmp file.
I also found that running with --cap-default fixes it. If you decide this is a wont-fix, I could personally live with using this flag, but I assume a proper error message would be great, at least.
In the end, I am not sure what exactly is causing this but I hope this will help you. Cheers

It also did not work after a  chmod -R o+rX ~/.cache, however one warning came up during this: chmod: changing permissions of '.cache/x11docker/x11docker-xfce-xfce4-terminal-55668200901/share/tini': Operation not permitted.
This is what the respective share folder looks like:
-rw-r--r-- 1 phi  phi   3054 Nov 20 14:14 container.CMD.sh
-rw-r--r-- 1 phi  phi   4412 Nov 20 14:14 containerrootrc
-rw-r--r-- 1 phi  phi      4 Nov 20 14:14 container.user
-rw-rw-rw- 1 phi  phi    293 Nov 20 14:14 environment
-rw-r--r-- 1 phi  phi      2 Nov 20 14:14 exitcode
-rw-r--r-- 1 phi  phi      0 Nov 20 14:14 journalctl.log
prw-rw-rw- 1 phi  phi      0 Nov 20 14:14 message.fifo
-rw-rw-rw- 1 phi  phi    704 Nov 20 14:14 stderr
-rw-rw-rw- 1 phi  phi      0 Nov 20 14:14 stdout
-rw-r--r-- 1 phi  phi     51 Nov 20 14:14 timetosaygoodbye
prw-rw-r-- 1 phi  phi      0 Nov 20 14:14 timetosaygoodbye.fifo
-rwxr-xr-x 1 root root     0 Nov 20 14:14 tini
-rw-r--r-- 1 phi  phi  69315 Nov 20 14:14 x11docker.log
-rw-r--r-- 1 phi  phi    104 Nov 20 14:14 Xclientcookie

which looks fine I think (?)

Thanks for your investigation!

Part of the problem (seeing that this issue hasnt been opened yet) may be that I set the permissions on ~/.local and most other folders in $HOME to drwx------ 700. I think it makes the most sense as the contents of this folder arent any other user's business, be it system or human. This is what had had me open another issue once already (#131), where you fixed it by leveraging a /tmp file.

Ah, yes! I already thought that this bug looks somehow familar. So I reintroduced it.
As a first fix that maybe helps I've changed the file permission of x11docker.log to 666. I doubt that this is enough, but it would be nice if you try it out.

I also found that running with --cap-default fixes it.

The point is that x11docker runs the container with docker option --cap-drop=ALL. That disallows a lot of root privileges. But containerrootrc tries to access x11docker.log as root in container and cannot supersede your 700 settings on host.
Adding the capability to supersede access permissions should solve the issue (compare man capabilities):
x11docker -- --cap-add DAC_OVERRIDE -- x11docker/xfce xfce4-terminal

I am currently not sure what would be the best solution.

Always adding capability DAC_OVERRIDE regardless of the setup. Easy, but a security impact on systems that would not need it.
Somehow checking for 700 and only adding DAC_OVERRIDE in that case. Adds some complexity in the code.
Avoiding container root access on  host files. Some work, but probably the cleanest solution.

I tried using the latest commit, still no change.
Nope, DAC_OVERRIDE on its own does not cut it, only cap-default.
I am not very sure on to the details of this. But option 1 and 2 do not sound quite elegant. And it would make sense to prevent root files in the host environment. Those are always a bummer when it comes to archives, searches, deletions etc. Like when you want to backup your home folder but get errors somewhere deep nested inside .local/share/x11docker, as it contains root files. Option 3 makes the most sense to me, but this is only intuition.

chmod -R o+rX ~/.cache
Sorry for asking, but what exactly does that do?

No worries – it means recursively giving read access (+4) to "other" users (not owner or group) to everthing inside .cache. X stands for folder execution rights (+1), so they will be able to list folder contents, but it does not apply to files (so no scripts can be run etc). + means "adding permissions", so if any were present beforehand, those are combined. To set them, use =.

Ok wait, the recent commit might have solved this (but everything is kinda laggy now). Just so you dont spend too much unnecessary digging here. I'll get back to you later.

Ok wait, the recent commit might have solved this (but everything is kinda laggy now).

Good! Maybe there is another timeout now. Please give me a fresh logfile and I'll look through it.

And it would make sense to prevent root files in the host environment. Those are always a bummer when it comes to archives, searches, deletions etc.

x11docker already avoids root files in HOME. root only appends lines to existing files. That does not change the file ownership. But this seems to be an issue with 700 for ~/.cache

I am surprised why you have a root-owned tini in the share folder:
-rwxr-xr-x 1 root root     0 Nov 20 14:14 tini

It should not be there. It is shared with the container with:
  --volume '/usr/bin/docker-init':'/usr/local/bin/tini':ro \

In my own x11docker cache tini does not appear.

With latest commit:

Started with--cap-default from command line: Works fine, but is slow. Definitely laggier than before, vscode editor not really usable.
Started normally: Does not start (described timeout)
Started from a noninteractive shell, with no special options (no cap-default), using a xfce hotkey shortcut on the host system: Works fine, but also slow. I did not expect that. It is the opposite behavior of a past issue #177 where it was the shortcut action that failed. - I checked the user from such a shortcut job, it is also the normal one, "phi". Maybe a tty issue again?
Started as above via xfce hotkey, but with --cap-default: Same behavior

With previous commit, before your latest fix (at 25b8034f24238eed267784def8f2e33de5a489d1), everything seems the same as above. So nothing changed.
Here's a new verbose log file as requested, from latest commit's ./x11docker -v --xephyr x11docker/xfce xfce4-terminal, run from terminal: https://waritschlager.de/share/f43f639000f6f3c6.txt
Nothing seems to have changed much

I am surprised why you have a root-owned tini in the share folder

I thought I'd try to reproduce it by deleting the respective cache folder. But now when I run it (with cap-default), no folder is recreated inside .cache/x11docker anymore, so I cannot give you any more details.

Okay, regarding the lagginess: This might not be related to this issue at all, but I'll post the info here anyway:
The lags got introduced with 5a35b8107ca043d2f0dd8a2fafe97157164bbc5f. I only encounter those with Xephyr. The application I tested this with is xfce, with vscode as the application running inside. I dont know what is so special about it, but thunar for instance was not lagging. Please tell me if you want more info here.
While digging, I also realized that nxagent and hostdisplay seem to behave more fluent than xephyr and xpra. I dont know how nxagent works, but with hostdisplay it makes sense as no key presses are proxied.

Thank you for your detailed investigation!

The lags got introduced with 5a35b81. Note that this is an earlier one than the one that broke everything described above. I only encounter those lags with Xephyr. The application I tested this with is xfce, with vscode as the application running inside. I dont know what is so special about it, but thunar for instance was not lagging.

Finally an issue that I can fix easily! In the commit you found I've enabled Xephyr option -glamor. From Xephyr -help:
-glamor              Enable 2D acceleration using glamor

glamor should help to speed up some things, but obviously it can be problematic. I've disabled it yet. --xephyr  should not be laggy anymore.

While digging, I also realized that nxagent and hostdisplay seem to behave more fluent than xephyr and xpra

--hostdisplay is the fastest option because no additional X server is involved. Unfortunately it costs some container isolation. A malicious application could access your host system.
--xpra is the slowest option. But it is a preferred default of x11docker because it provides some nice features, e.g. graphical clipboard support.
Furthermore it is the only seamless solution for --gpu beside the insecure --hostdisplay.
However, if security/container isolation is not a concern, --hostdisplay --gpu is the fastest setup with the lowest overhead.

I thought I'd try to reproduce it by deleting the respective cache folder. But now when I run it (with cap-default), no folder is recreated inside .cache/x11docker anymore, so I cannot give you any more details.

The cache folder only exists while the container is running. If you don't have a cache folder while x11docker is running, something very basical goes wrong.

I just tried to reproduce the 700 issue with chmod -R 700 ~/.cache/x11docker.
Surprisingly I have no issues at all and cannot reproduce your issue. x11docker just starts up well.  I'll look closer how to reproduce it.

Huh, sorry - I dont know how the version mismatch happened. I redid it with the latest commit from yesterday, for sure this time: https://waritschlager.de/share/32492a8420106529.txt

That's odd. I doubt that it is a tty issue again. I would see that in the log.
Maybe you have two x11docker on your system, e.g. one in a cloned git folder and one in /usr/bin?

No, this is not the case. xfce shortcut and interactive bash definitely behave differently (one working, the other not). I removed all the times and pids from it with some wild regex and skipped display numbers etc. and below are the notable log output differences when run as xfce shortcut. As expected, the only real difference seems to be that the container.log permission error is gone.
8a9
> DEBUGNOTE: check_host(): Command tty failed. Guess if running on console: no
45a47
> DEBUGNOTE: check_host(): Command tty failed. Guess if running on console: no
124c126
<   Running in a terminal:                          yes
---
>   Running in a terminal:                          no
371,377d372
< grep -x -q 'x11docker/xfce' < /home/phi/.cache/x11docker/docker.imagelist || grep -x -q 'x11docker/xfce:latest' < /home/phi/.cache/x11docker/docker.imagelist || {
<   docker inspect x11docker/xfce >>/home/phi/.cache/x11docker/x11docker-xfce-/share/container.log 2>&1 || {
<     echo 'Image x11docker/xfce not found locally.' >&2
<     echo 'Do you want to pull it from docker hub?' >&2
<     askyesno && Dockerpull=yes || error "Image 'x11docker/xfce' not available locally and not pulled from docker hub."
<   }
< }
382a378
>   env DISPLAY=':0.0' DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus' bash           -c "notify-send 'x11docker: Pulling image x11docker/xfce from docker hub'" 2>/dev/null &
1475c1471,1495
< /tmp/containerrootrc: 11: /tmp/containerrootrc: cannot create /x11docker/container.log: Permission denied
---
> mkdir: created directory '/var/run/dbus'
> mkdir: created directory '/tmp/.ICE-unix'
> mkdir: created directory '/tmp/.X11-unix'
> mkdir: created directory '/tmp/.font-unix'
> srwxrwxrwx 1 1000 1001 0 Nov 23 08:10 /X113
>
> ==> /home/phi/.cache/x11docker/x11docker-xfce-/message.log <==
> DEBUGNOTE: Running containerrootrc: Setup as root in container
>
> ==> /home/phi/.cache/x11docker/x11docker-xfce-/share/container.log <==
> lrwxrwxrwx 1 root root 5 Nov 23 08:10 /tmp -> /X113
> mkdir: created directory '/fakehome'
>
> ==> /home/phi/.cache/x11docker/x11docker-xfce-/message.log <==
> DEBUGNOTE: containerrootrc: Container libc: glibc
>
> ==> /home/phi/.cache/x11docker/x11docker-xfce-/share/container.log <==
> removed '/etc/shadow'
>
> ==> /home/phi/.cache/x11docker/x11docker-xfce-/message.log <==
> x11docker: Container system ID: debian
>
>
> ==> /home/phi/.cache/x11docker/x11docker-xfce-/share/container.log <==
> chown: changing ownership of '/tmp/chowntestfile': Operation not permitted
1551d1572
< DEBUGNOTE: waitforlogentry(): tailstderr: Found log entry "x11docker=ready" in store.info.
1553,1592c1574,1586
< DEBUGNOTE: waitforlogentry(): containerrc: Waiting since 11s for log entry "containerrootrc=ready" in store.info
< DEBUGNOTE: waitforlogentry(): containerrc: Waiting since 12s for log entry "containerrootrc=ready" in store.info
...
---
> DEBUGNOTE: waitforlogentry(): tailstderr: Found log entry "x11docker=ready" in store.info.
> DEBUGNOTE: waitforlogentry(): containerrc: Found log entry "containerrootrc=ready" in store.info.

So it fails here: https://github.com/mviereck/x11docker/blob/master/x11docker#L4282. $(convertpath share $Containerlogfile), which resolves to /x11docker/container.log isnt accessible, because /x11docker itself cannot be traversed into. I put an ls -l / at that position and here is the output:
total 16
srwxrwxrwx   1 1000 1001    0 Nov 23 08:57 X120
drwxr-xr-x   2 root root 4096 Jul 14 08:49 bin
drwxr-xr-x   2 root root    6 May 13  2019 boot
drwxr-xr-x   5 root root  360 Nov 23 08:57 dev
drwxr-xr-x  40 root root 4096 Nov 23 08:57 etc
drwxr-xr-x   2 root root    6 May 13  2019 home
drwxr-xr-x   8 root root  107 Jul 14 08:49 lib
drwxr-xr-x   2 root root   34 Jul  8 03:30 lib64
drwxr-xr-x   2 root root    6 Jul  8 03:30 media
drwxr-xr-x   2 root root    6 Jul  8 03:30 mnt
drwxr-xr-x   2 root root    6 Jul  8 03:30 opt
dr-xr-xr-x 374 root root    0 Nov 23 08:57 proc
drwx------   2 root root   37 Jul  8 03:30 root
drwxr-xr-x   3 root root   60 Nov 23 08:57 run
drwxr-xr-x   2 root root 4096 Jul  8 03:30 sbin
drwxr-xr-x   2 root root    6 Jul  8 03:30 srv
dr-xr-xr-x  13 root root    0 Nov 23 08:57 sys
drwxrwxrwt   2 root root   29 Nov 23 08:57 tmp
drwxr-xr-x  10 root root  105 Jul  8 03:30 usr
drwxr-xr-x  11 root root  139 Jul  8 03:30 var
drwxrwx---   2 1000 1001 4096 Nov 23 08:57 x11docker
/tmp
ls: cannot access '/x11docker/container.log': Permission denied

and $PWD is /tmp and $USER is phi and $UID is empty and id says uid=0(root) gid=0(root) groups=0(root) and cat /etc/passwd also does not contain phi. So the user $USER doesnt exist..?!
On my host system, the the $UID is (as on most systems) 1000.
Thanks for removing the glamor option! Everything is smooth again.

The cache folder only exists while the container is running.

Oh, huh. The cache folders I described above were present without any container running. So I guess they were leftovers from failed run attempts. Should not matter, this doesnt happen anymore right now.

No, this is not the case. xfce shortcut and interactive bash definitely behave differently (one working, the other not).

That's really odd. I have no good idea why there is a difference. That also indicates that 700 is not the core issue. As been said, I cannot reproduce the issue if I set my own cache to 700.
The only idea I have yet is some sort of >>redirection issue. But I would not know why it only happens in terminal, but not with a shortcut.
  echo "exec 1>>$(convertpath share $Containerlogfile) 2>&1"

Could you try to just disable this line? It only serves to redirect some output into the logfile, so it would not hurt essentially. Though, ls fails, too:
ls: cannot access '/x11docker/container.log': Permission denied

$PWD is /tmp and $USER is phi and $UID is empty and id says uid=0(root) gid=0(root) groups=0(root) and cat /etc/passwd also does not contain phi. So the user $USER doesnt exist..?!

The entries in /etc/passwd and etc/group are done shortly after that in containerrootrc.

The cache folders I described above were present without any container running. So I guess they were leftovers from failed run attempts. Should not matter, this doesnt happen anymore right now.

I also get those leftover folders. It seems x11docker does not get enough time to clean up if I shut down the system while x11docker is running. You can use sudo x11docker --cleanup to remove all leftovers (and currently running x11docker sessions).

I did a test in an old Manjarao VM.
I've set ~/.cache/x11docker to 700. It works well.
I could not update Manjaro due to some package conflicts. But I assume that would not change anything.
So i cannot reproduce your issue and have no idea why x11docker fails on your system in terminal only.
Would it be ok for you to just use --cap-default and close the ticket?
Though, if you have an idea and want to investigate further, I am happy to look at, too.

Sure. I'll get back to you when I come accross a meaningful hint. Thank you for the help!

The latest commit runs containerrootrc with flag --privileged. You should not need --cap-default anymore.
x11docker's root setup in container now has no restrictions. This allow to drop --cap-default and the container command will run without privileges at all.
It would be nice if you try this out.

yup, works now out of the box :-)
good job

Great! :-)
Finally solved although we did not find the very special point where it previously failed.