text:
Add Melodot proposal

Project Abstract
Melodot is an incentive-compatible data availability layer. Melodot introduces the role of farmers by combining PoSpace, alleviating the system's dependence on the minimum number of honest nodes assumption, and completing an incentive-compatible distributed generation and data storage scheme. Consensus validators now act more like light clients, improving future scalability.
Grant level

[ ] Level 1:  Up to $10,000, 2 approvals
[x] Level 2:  Up to $30,000, 3 approvals
[ ] Level 3:  Unlimited, 5 approvals (for >$100k: Web3 Foundation Council approval)

Application Checklist

[x] The application template has been copied and aptly renamed (project_name.md).
[x] I have read the application guidelines.
[x] Payment details have been provided (bank details via email or BTC, Ethereum (USDC/DAI) or Polkadot/Kusama (USDT) address in the application).
[x] The software delivered for this grant will be released under an open-source license specified in the application.
[x] The initial PR contains only one commit (squash and force-push if needed).
[x] The grant will only be announced once the first milestone has been accepted (see the announcement guidelines).
[ ] I prefer the discussion of this application to take place in a private Element/Matrix channel. My username is: @_______:matrix.org (change the homeserver if you use a different one)

Hey @Noc2 and @keeganquigley , I hope you're both doing well! I created the proposal and would love to get your suggestions!

hey @Noc2 , Thank you for your reply.

I have updated them.
It indeed seemed strange, so I carefully reviewed the milestones and made the following adjustments:

Milestone 1 now uses the month format for better clarity.
Based on the actual situation, I re-evaluated the duration of Milestone 2 and adjusted it to 1.5 months.
I have aligned for total costs / FTE * estimated duration, and now they are approximately consistent.
The total costs have been reduced by 2,000 compared to before.

Yes, I am aware of Avail. Melodot is quite different from it in terms of data arrangement, distributed generation, and handling of the "honest light clients".

Thanks for the quick reply and update. I will mark the application already as ready for review. But I need to spend a little bit more time looking into it. One question that I currently have is: do you think Melodot could potentially be a parachain, and what issues might you face in this regard?感谢您的快速回复和更新。我会将申请标记为已准备好接受审核。但我需要花更多的时间来研究它。我目前的一个问题是：您认为 Melodot 是否有可能成为一条平行链，在这方面您可能会面临哪些问题？

Melodot is not well-suited to directly function as a parachain, but rather as a parachain through a "data availability bridge", essentially because as a decoupled data availability layer:

It operates on a different security model. For instance, on the consensus layer, GRANDPA reaches agreements on chains rather than blocks, which is useful in extreme cases to ensure fast and secure finality, but also has the potential to bring multiple blocks to finality at the same time. The data availability layer, on the other hand, expects a uniform finality, which would otherwise introduce uncertain transaction delays for rollup transactions in the settlement layer. In the long run, Melodot needs to have a more suitable finality gadget. In addition, the data availability layer requires many changes at the network layer (which is still an open research area). These determine that Melodot is not well-suited to directly function as a parachain.
The purpose of the data availability layer is to eliminate the reliance on the "honest majority" to secure data availability even in the case of a 51% attack, so I think it is a "Muda" to use it directly as a parachain.

As Melodot matured, we used the Data Availability Bridge as a parachain. It was designed as a neutral bridge (allowing other data availability layers), and other parachains acted as settlement layers, getting data availability guarantees from Melodot parallel chains and "secure interoperability of settlement layers" from the security of polkadot.

Thanks for the application @DarkingLee, your whitepaper link is asking me to log into a notion account. Is there a public link where I can read it?

I reset the link and now it doesn't need the login anymore.

@keeganquigley Thank you for your feedback, sorry for the late reply.

Chia-style proof-of-space requires an initialization process called plots. This process writes data to the user's storage device and consumes significant resources. However, after this initialization, the resource consumption is minimal, specifically in the case of Melodot, it is less than that of a full node. The criticism of Chia, in my opinion, primarily revolves around filling users' disks with useless random data.
I have been focusing on the development of social networks and reputation systems (implemented through Substrate), and in this process, I have identified some fundamental problems that have yet to be solved. For example, transaction ordering is not crucial in social networks, but in DeFi, significant costs are incurred to achieve fair transaction ordering. Under blockchain technology, they are given the same level of security. This is not an issue that can be simply solved by scaling alone. To address this, we conducted extensive research, even rejecting several investors. After multiple design attempts, we decided to adopt Rollup technology to solve this problem. I aim to decouple the data availability layer and sequencer in the Polkadot ecosystem through parachain, where Polkadot's high security provides the settlement layer with security and scalability. Of course, further research and implementation are still required, however, I hope that at least through the data availability layer, bridging parallel chains with DA, and the SDK, we can bring another vast possibility space to the Polkadot ecosystem.
We have a semi-annual plan, and once this grant is complete, we will initiate a community through a DAO, leveraging the DAO's economic system to drive project collaboration and obtain a small amount of initial funding. Afterward, we will secure early reliable funding through a method called Quadratic Launch, which combines elements of an IDO and quadratic funding. The initial tokens will be allocated to the donors of quadratic funding. We have a detailed plan that includes different stages, financial planning, product roadmap, and more.

Thanks!

@Noc2, Thank you for the review, and I understand that you must have been quite busy lately. Your feedback is valuable to me, and I will definitely take note of your concern about trying to do too many things at the moment.

The current data availability layer scheme requires the assumption that the network has at least the minimum number of honest nodes.

This statement is true.

However, due to the need to prevent data retention attacks, the samplers are required to be anonymous, making it difficult to measure the number of samplers.

Polkadot does not require separate samplers for availability.  The validators all "sample" exactly the one piece they hold themselves.  Intersection of 2/3rd honest and 2/3rd claiming availability, says 1/3rd really are available, which suffices for reconstruction.
In other words, 1d RS has a better undecodable ratio, aka adversary must hide 2/3rd to hide anything, while a 2d RS permits hiding a small chunk of the block if the adversary hides only 25%, which further increases sampling requirements.
We do "sample" for validity in the approvals protocol, which includes proving correctness of the available data, but that's an separate concern.  We do assume roughly a synchronous gossip protocol for approval assignment announcements though, but we do not require anonymity when sampling for validity, thanks to the no show system.

At the same time, samplers are more concerned with data related to themselves, resulting in an uneven distribution of total active samplers over time.

Ain't clear what you mean here, but it's evenly distributed among the nodes who claim to hold their chunk.
Aside from an undecodable ratio meshing cleanly with our security assumptions elsewhere, we abandoned wider sampling ideas used by Celestia like fishmermen or watchtowers because we concluded there was no mechanism for incentivizing correct behavior.  We know validators can be incentivized, although this turns out nastier than one likes.
I've not looked into the rest but this paragraph jumped out at me, so figured I'd comment here.  Carry on  :)

@burdges Thank you for your comment.

I greatly appreciate you sharing Polkadot's design, it indeed sounds intriguing. Polkadot's solution certainly seems elegant. However, there are fundamental distinctions between Melodot and Polkadot. Melodot serves as an independent DA layer, designed to cater to the settlement layer and rollup applications. The "settlement layer" in itself is another chain that's loosely coupled with the DA layer, and its security does not rely on 2/3 of honest actors from the DA layer. This presents additional design challenges for Melodot.

At the same time, samplers are more concerned with data related to themselves, resulting in an uneven distribution of total active samplers over time.

The crux of the matter here is that we don't rely on validators having data sufficient for decoding. Instead, we depend on a significant number of light clients randomly sampling across the network. This strategy has the advantage of considerably increasing the data payload of each block but requires proportionately more sampling nodes to support. The design can be challenged when the number of samplers for each block becomes inconsistent. For Celestia, I believe they might be facing similar design decisions. And Polkadot seems to have no such worries :)

authors: DarkingLee burdges


text:
Aggregated Day/Week view?

Hi,
Is there any way to show a aggregated week/day view?
For example:

http://bl.ocks.org/tjdecke/5558084
(i.e. rather than for a single week, show the overall day/week heatmap for multiple weeks, aggregated)

Now possible in v4, with the custom templates injection

I don't suppose someone can throw together a quick example of how this could be done using custom templates? I'm looking for something similar, basically my domain is day and subdomain is hour but I am looking to have all hours in one column like in the above illustration. Thank you.

source: gharchive/issue

authors: empireshades victorhooi wa0x6e

license: mit

license_type: permissive

license_source: bigquery


text:
Socket stalled when trying to connect to wss://relay.walletconnect.com

Is there an existing issue for this?

[X] I have searched the existing issues

Package Version
1.3.8
Current Behavior
Running my React application after Wagmi 1.xx release I faced a wss connection error which does not allow me to connect wallets on a mobile browser.
I created a new and clear next app with the latest version of Wagmi + rainbow kit, and I have the same error:
618.7d2d61445cdcb9a4.js:27 {context: 'core'} {context: 'core/relayer'} Error: WebSocket connection closed abnormally with code: 3000 (Authorization error: Unauthorized: invalid key)
    at s.onClose (618.7d2d61445cdcb9a4.js:27:42592)
    at i.<anonymous> (618.7d2d61445cdcb9a4.js:27:43229)
    at i.emit (_app-100d08ce6d27ffc2.js:7:29347)
    at k.onClose (618.7d2d61445cdcb9a4.js:1:20419)
    at e.onclose (618.7d2d61445cdcb9a4.js:1:20287)

618.7d2d61445cdcb9a4.js:1 Uncaught (in promise) Error: Socket stalled when trying to connect to wss://relay.walletconnect.com
    at _app-100d08ce6d27ffc2.js:1:97889

Connection to wallets in a mobile browser (ios, safari) doesn't work too.
Expected Behavior
Stable connection to Metamask/Rainbow wallet on mobile devices.
Steps To Reproduce

git clone git@github.com:poludnev/wagmi-test.git
cd Wagmi-test
yarn install
yarn dev
Open localhost in a browser
Check the console

Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
https://wagmi-test-git-main-poludnev.vercel.app/
Anything else?

Deployed add:
https://wagmi-test-git-main-poludnev.vercel.app/
Repo:
https://github.com/poludnev/wagmi-test

HI, you're missing the WalletConnect project ID, you need to create a Project in WalletConnect Cloud to get it:
https://www.rainbowkit.com/docs/installation#configure

I got same issue even I set up project id

I got same issue even I set up project id too

hi @smartdevcom @Utcha by adding the Project ID in the given example I'm able to connect and I don't see that error, do you have any example that can reproduce the error?

@glitch-txs  place the wagmiconfig context anywhere not at the root, like in a sub component and you can see

but you shouldn't do that, it needs to be declared once outside components

@glitch-txs  sure but what if I want to lazy load a modal that uses the walletconnect/web3 modal? Then I would have to move it down in some way. To avoid the bundle size impact

This is already done by WalletConnect and Wagmi internally, also you'd need to check if there's an existing session in the client side

@glitch-txs on the checking the existing session-- could you direct me to any code that does that?

WalletConnect does this on the init function of the ethereum-provider that's used by Wagmi, Wagmi also checks if there's a session saved on storage. Both of them lazy load the modal and the packages

The error is because you have not entered a valid WalletConnect Project ID. In the minimal reproducible example you provided, you can see the placeholder YOUR_PROJECT_ID variable is in the URL:

The error is because you have not entered a valid WalletConnect Project ID. In the minimal reproducible example you provided, you can see the placeholder YOUR_PROJECT_ID variable is in the URL:

@jxom The Socket stalled when trying to connect to wss://relay.walletconnect.org happens for me and others above with projectId defined. Should we make a separate issue?
<img width="1691" alt="Screenshot 2023-08-16 at 11 28 42 AM" src="https://github.com/wagmi-dev/references/assets/25679998/ab48aed1-1a0e-45b1-a156-ff2bf51b64ec">

@kristiegiles hi, could you share an MRE?

Experiencing the Same Issue. The Websocket connection stalls intermittently. The proposed solutions have been tried and failed. Kindly have a look

Put your project id instead of YOUR_PROJECT_ID set by default.

authors: ChanchalD2022 Shusanta Utcha call3hudson glitch-txs jxom kristiegiles poludnev smartdevcom

repo: wagmi-dev/references

license: MIT

license_source: github-api


text:
fix: minimize contractInterface in query keys & remove signer query from persister

Description
This PR aims to fix #899 & #891 and address #880 by not storing the full contractInterface in the wagmi persister as this can fill up the storage very quickly. This PR also omits the signer query from the persister.

thanks a lot 💯

source: gharchive/pull-request

authors: jxom phumaster

repo: wagmi-dev/wagmi


text:
Manually modifying the StreamField's data crashes with TypeError

Issue Summary
Modifying the StreamField's data of a model (like documented here), which is part of the reference index, leads to an error. E.g. in the bakerydemo, executing the following in a admin view, would result in the error below:
>>> l = LocationPage.objects.first()
>>> l.body.append(("heading_block", {"heading_text": "text"}))
>>> l.save(update_fields=["body"])
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python3.11/contextlib.py", line 81, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/models/__init__.py", line 1531, in save
    result = super().save(**kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/modelcluster/models.py", line 202, in save
    super().save(update_fields=real_update_fields, **kwargs)
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/django/db/models/base.py", line 822, in save
    self.save_base(
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/django/db/models/base.py", line 924, in save_base
    post_save.send(
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/django/dispatch/dispatcher.py", line 189, in send
    response = receiver(signal=self, sender=sender, **named)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/signal_handlers.py", line 91, in update_reference_index_on_save
    ReferenceIndex.create_or_update_for_object(instance)
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/models/reference_index.py", line 430, in create_or_update_for_object
    references = set(cls._extract_references_from_object(object))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/models/reference_index.py", line 363, in _extract_references_from_object
    yield from (
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/models/reference_index.py", line 363, in <genexpr>
    yield from (
               ^
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/fields.py", line 249, in extract_references
    yield from self.stream_block.extract_references(value)
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/blocks/stream_block.py", line 397, in extract_references
    for child in value:
  File "<frozen _collections_abc>", line 993, in __iter__
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/blocks/stream_block.py", line 680, in __getitem__
    self._prefetch_blocks(raw_value["type"])
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/blocks/stream_block.py", line 710, in _prefetch_blocks
    raw_values = OrderedDict(
                 ^^^^^^^^^^^^
  File "/***/tmp/bakerydemo-6.2/venv/lib/python3.11/site-packages/wagtail/blocks/stream_block.py", line 713, in <genexpr>
    if raw_item["type"] == type_name and self._bound_blocks[i] is None
       ~~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

The problem is, that appending the item calls insert(), which adds None to the _raw_data here.
Saving the model then triggers the signal handler to update the reference index, which leads to the call of _prefetch_blocks(), which crashes here, since the added item in _raw_data is unexpectedly None.
In our case finding the issue was a bit tricky, since testing it in a plain django shell did not result in the error, because the viewsets haven't been fully initialized then. In our shell we also had to call the following, to really simulate the environment similar to the admin view:
from wagtail.admin.viewsets import viewsets
viewsets.populate()  # after that, the reference index is populated

In the shell of the bakerydemo this wasn't necessary, the code crashes without that.
Steps to Reproduce

Install the bakerydemo
Open the django shell (./manage.py shell)
Execute:

from bakerydemo.locations.models import LocationPage
l = LocationPage.objects.first()
l.body.append(("heading_block", {"heading_text": "text"}))
l.save(update_fields=["body"])  # this will result in the "TypeError: 'NoneType' object is not subscriptable"

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: yes

Technical details

Python version: 3.11
Django version: 4.2, 5.0
Wagtail version: 5.2.6, 6.2.1

Working on this

Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.

Looking at Wagtail's code again, I think I know how this could be solved:
https://github.com/wagtail/wagtail/blob/bd90802877921ae34d369eddc21f298349894c7d/wagtail/blocks/stream_block.py#L710-L714
Actually we could just change the if-condition to raw_item and raw_item["type"] == type_name and self._bound_blocks[i] is None, so we would skip the manually inserted item for the prefetch-operation. I think the inserted manually inserted data must already contain "resolved" data, so no prefetching is necessary here.

repo: wagtail/wagtail


text:
Images Admin Api Unauthorized Request

Issue Summary
Upon translating a page from EN to Dutch that has an image uploaded, Wagtail tries to call an url "en/cms/api/main/images/1/", which is called the Images Admin Api but is unauthorized to do so. This in turn leads to an error in wagtail-localize.js since the image can not be found.

Steps to Reproduce

Add a page in the original Wagtail Language
Add an image field and upload any image
Translate the page, select the desired language and hit confirm
The next page will throw the 2 errors above.

Technical details

Wagtail 6.2
Django version: 5.0.4
Browser version: Chrome 129.

Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.

Closing as this is potentially a wagtail-localize issue and you've opened one there as well https://github.com/wagtail/wagtail-localize/issues/827

authors: JeroenJADS zerolab


text:
Simplify oembed dict missing key fallback

Minor cleanup of fallback to empty string using the default fallback of dict.get.
This could also be written as oembed.get('title') or '' if None values are prohibited. However that would be a change is behaviour. They way it is written now, None values can pass through if the key is present in the oembed dict and the value is None.

(Test issues are fixed by updating from main, 421bcbf9c33b0f9e5a0169c6fff6b30d8e85cce9)

I didn't know wagtail also changed to main. I basically came across this bit of code by Google'ing for the Wagtail oembed provider. which pointed me to master.

I've properly rebased now, so the CI should pass 🤞

Thanks @jaap3!

authors: RealOrangeOne gasman jaap3


text:
🛑 cyconet.org is down

In 104ca01, cyconet.org (https://www.cyconet.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cyconet.org is back up in 1648fd5 after 4 hours, 15 minutes.

repo: waja/cyconet-upptime


text:
Adicionar suporte ao Delphi 10 Seattle

Adicionar suporte ao Delphi 10 Seattle
Criar pacote na versão Delphi 10 Seattle e disponibilizar.
Obs: Estou criado a issue para realizar o PR com a inclusão do pacote para o Delphi 10.

thanks for you collaboration @ramyres110!
I've reviewed and merged.

repo: wakatime/delphi-wakatime


text:
Add days in shoulder months

Show days in other months in the date picker

+1

authors: flipsasser marchershey

repo: wakirin/Litepicker


text:
How can I add a new sample with vs2019?

There are some dx11 samples not in this repo, but installed with Microsoft DirectX SDK (June 2010.
ContactHardeningShadows11
DDSWithoutD3DX11
DecalTessellation11
DetailTessellation11
PNTriangles11
WindowsTouch
These samples are vs2010 or vs 2013, how can I convert them to vs2019 and add to this repo?

This repository has "cleaned up" versions of the samples. I did not convert those samples to remove all use of legacy D3DX11.
You can, however, find them all on this repo which uses the Microsoft.DXSDK.D3DX NuGet package instead of the legacy DirectX SDK.

repo: walbourn/directx-sdk-samples


text:
False raid names can be created using the twitter reset function.

If you use the twitter refresh in-game and add the text
参加者募集！参戦ID：[RAID CODE] [RAID NAME]
eg
参加者募集！参戦ID：114514810
Lv100 ケルベロス
(found at https://twitter.com/megakureiXrdR/status/807071380277579776/photo/1)
it shows up in the raid listing even if the tweet is removed (image: http://i.imgur.com/3iAFJLu.png, I was testing to see how the cerberus one showed up and added a fenrir one by accident. Deleted the tweet but the listing still remains 2 days later.)

Thanks for the report!

authors: pbwebtech walfie

repo: walfie/gbf-raidfinder


text:
How can i mixed 2 connections with same id into one solo connection.

I need it for, if user wants to connect from 2 different browsers, but from one account on website in instance. And i want, when user triggers method for recieving message from socket on Google, he in the same time recieve this message and to Google, and to Edge.
Is it possible?

It's silly question so i can just create room for users with same ip (or determine them by id from website DB that i send on open event from clietn side). And than i just send same data to all users from the room. And so i can on each open browser after recieved data, delete browser from dropdown of navbar on all browsers current user.

repo: walkor/Workerman


text:
Não lê a planilha inteira

O programa em C# entende que a primeira linha é o cabeçalho e não considera todas as colunas da planilha.
Por exemplo: Se na primeira linha eu tenho um título, ele irá ler somente a primeira coluna de todas as linhas da planilha.

Oi tudo bem ? se quiser mandar para mim essa planilha desse layout posso dar uma olhada em porquê está dando erro apra você)  uma coisa que pegava muito era quando havia dados oculos na planilha (mas não sei se é o caso) ;)

Olá Walter, tudo bem e você?
Segue uma planilha de exemplo.
T003-Codigos_de_caracteristicas_nao_mensuraveis_20230201.xls

Olá, tudo bem ?  desculpe ter demorado estou meio atarefado, mas fiz testes com seu arquivo e foi tudo de boas, to anexando o video do processo. tem excel instalado na maquina ???https://drive.google.com/file/d/1ZArHBZPzQenquSNK3owFNb4TjfD-Bu1C/view?usp=sharing
espero que de certo

Walter, perceba que na planilha tem a terceira coluna que a rotina não importou.

Mas não teria como importar da maneira que está na planilha?

Infelizmente não, pois essa conversão é uma chamada para o VBA do excel.

na verdade pôde ser feito, veja no README.md como fazer.

Certo. Vi que tem o parâmetro cSaltos.
Na chamada do Shellexecute, qual é a posição do cSaltos? É a última onde esta o zero?
Shellexecute('open', '"' + GetClientDir() + cExe + '"', '"' + Alltrim(cArq) + '" "' + cIdPlan + '" "' + cDelimiter + '" ' , GetClientDir(), 0)

a alteracao está feita pra poder chamar assim, na chamada da funcao:
u_xlsxToArr(cArq, cIdPlan, cDelimiter, cSaltoLinhas) nao esqueça de atualizar o xlsxtocsv.exe na system.

authors: alexandrearume walterfcarvalho

repo: walterfcarvalho/advpl-xlsxtocsv


text:
Build is failing in Android

I installed crisp in the react native project. It works fine with IOS but it is failing with the following error in Android.
React Native: 0.74
buildToolsVersion = '34.0.0'
minSdkVersion =  '24'
compileSdkVersion =  '34'
targetSdkVersion = '34'
kotlinVersion = '1.9.23'
ndkVersion = "26.1.10909125"
I also tried kotlinVersion: 1.7.20 but no luck.
Error:
Configure project :react-native-reanimated
Android gradle plugin: 8.2.1
Gradle: 8.6

Task :app:checkDebugDuplicateClasses FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class org.commonmark.Extension found in modules commonmark-0.13.0.jar -> jetified-commonmark-0.13.0 (com.atlassian.commonmark:commonmark:0.13.0) and commonmark-0.21.0.jar -> jetified-commonmark-0.21.0 (org.commonmark:commonmark:0.21.0)
  Duplicate class org.commonmark.internal.BlockContent found in modules commonmark-0.13.0.jar -> jetified-commonmark-0.13.0 (com.atlassian.commonmark:commonmark:0.13.0) and commonmark-0.21.0.jar -> jetified-commonmark-0.21.0 (org.commonmark:commonmark:0.21.0)

This error occurred for us after integrating RevenueCat SDK along with Crisp Chat in our app. Both use commonmark module but from different groups. Try adding this to your app's build.gradle.
android {
 ...other options

 configurations {
      all {
          exclude group: 'org.commonmark', module: 'commonmark' // IMPORTANT: This removes all transitive dependencies of 'org.commonmark' group's `commonmark` module.
      }
    }
}

Crisp uses commonmark from com.atlassian.commonmark, which we are keeping and will use for other libraries.

Do you still have issue with latest releases?

I am facing same error in expo build

Getting this as well on the 0.15.1
 Task :react-native-crisp-chat-sdk:compileDebugKotlin FAILED

Only with org.commonmark'?

what is solution for expo ? @baptistejamin

@baptistejamin
Getting this error in android on version 0.15.1:
Task :reactnativecrispchatsdk:compileDebugKotlin FAILED
However build was working on 0.14.4

authors: AmanSafeer Cypherball Ruchita-Missio baptistejamin enchorb vishalpawar048


text:
web/.env貌似不生效

web/.env如下：
NEXT_PUBLIC_ADH_SERVER_IP="http://192.168.3.96"
NEXT_PUBLIC_ADH_SERVER_PORT="18000"
NEXT_PUBLIC_ADH_SERVER_VERSION="v0"
感觉这个env文件不生效啊，从浏览器的debug信息来看，他一直用的是默认的，还有这个IP变量，后面接着的url，但还不是完整的，不如用一个url变量代替host与Port的拼接。

/workspace # cat .env
https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables
NEXT_PUBLIC_ADH_SERVER_IP="http://127.0.0.1"
NEXT_PUBLIC_ADH_SERVER_IP="http://192.168.3.96"
NEXT_PUBLIC_ADH_SERVER_PORT="18000"
NEXT_PUBLIC_ADH_SERVER_VERSION="v0"
在容器中已经看貌似也没有问题

如果用的容器部署的话，用开发容器重新打包下就可

url变量代替host与Port的拼接可以的，后面升级下

authors: thomasdba wan-h


text:
Pytorch-lighning: W&B process failed to launch

Description
I am trying to get weights and bias working with PyTorch-lightning. I didn't know if this is an issue of lightning or Wandb. But I think it's from wandb. When trying to start the run I get the error message:
wandb.run_manager.LaunchError: W&B process failed to launch, see: wandb\debug.log
Stacktrace:
D:\Programme\Anaconda3\envs\pytorch\python.exe C:/Users/schup/PycharmProjects/Workspace/pytorch_test/GAN/CNN_lightning.py
wandb: Tracking run with wandb version 0.8.29
Traceback (most recent call last):
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\wandb\internal_cli.py", line 106, in <module>
    main()
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\wandb\internal_cli.py", line 98, in main
    headless(args)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\wandb\internal_cli.py", line 54, in headless
    util.sentry_reraise(e)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\wandb\util.py", line 94, in sentry_reraise
    six.reraise(type(exc), exc, sys.exc_info()[2])
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\six.py", line 703, in reraise
    raise value
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\wandb\internal_cli.py", line 52, in headless
    user_process_pid, stdout_master_fd, stderr_master_fd)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\wandb\run_manager.py", line 1137, in wrap_existing_process
    stderr_read_file = os.fdopen(stderr_read_fd, 'rb')
  File "D:\Programme\Anaconda3\envs\pytorch\lib\os.py", line 1027, in fdopen
    return io.open(fd, *args, **kwargs)
OSError: [WinError 6] The handle is invalid
wandb: ERROR W&B process (PID 15916) did not respond
wandb: ERROR W&B process failed to launch, see: wandb\debug.log
Traceback (most recent call last):
  File "C:/Users/schup/PycharmProjects/Workspace/pytorch_test/GAN/CNN_lightning.py", line 132, in <module>
    trainer.fit(net)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\pytorch_lightning\trainer\trainer.py", line 630, in fit
    self.run_pretrain_routine(model)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\pytorch_lightning\trainer\trainer.py", line 748, in run_pretrain_routine
    self.logger.log_hyperparams(ref_model.hparams)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\pytorch_lightning\loggers\base.py", line 18, in wrapped_fn
    fn(self, *args, **kwargs)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\pytorch_lightning\loggers\wandb.py", line 96, in log_hyperparams
    self.experiment.config.update(params)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\pytorch_lightning\loggers\wandb.py", line 87, in experiment
    id=self._id, resume='allow', tags=self._tags, entity=self._entity)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\wandb\__init__.py", line 1088, in init
    _init_headless(run)
  File "D:\Programme\Anaconda3\envs\pytorch\lib\site-packages\wandb\__init__.py", line 304, in _init_headless
    "W&B process failed to launch, see: {}".format(path))
wandb.run_manager.LaunchError: W&B process failed to launch, see: wandb\debug.log

Debug log:
2020-03-07 18:47:34,666 DEBUG   MainThread:15916 [wandb_config.py:_load_defaults():119] no defaults not found in config-defaults.yaml
2020-03-07 18:47:34,723 DEBUG   MainThread:15916 [util.py:is_cygwin_git():314] Failed checking if running in CYGWIN due to: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
2020-03-07 18:47:34,725 DEBUG   MainThread:15916 [git_repo.py:repo():30] git repository is invalid
2020-03-07 18:47:34,742 DEBUG   MainThread:15916 [meta.py:setup():97] code probe starting
2020-03-07 18:47:34,742 DEBUG   MainThread:15916 [meta.py:setup():101] non time limited probe of code
2020-03-07 18:47:34,743 DEBUG   MainThread:15916 [meta.py:_setup_code_program():58] save program starting
2020-03-07 18:47:34,743 DEBUG   MainThread:15916 [meta.py:_setup_code_program():60] save program starting: C:/Users/schup/PycharmProjects/Workspace/pytorch_test/GAN/CNN_lightning.py
2020-03-07 18:47:34,743 DEBUG   MainThread:15916 [meta.py:_setup_code_program():65] save program saved: C:\Users\schup\PycharmProjects\Workspace\pytorch_test\GAN\wandb\run-20200307_174733-wcp2iba7\code\CNN_lightning.py
2020-03-07 18:47:34,744 DEBUG   MainThread:15916 [meta.py:_setup_code_program():67] save program
2020-03-07 18:47:34,744 DEBUG   MainThread:15916 [meta.py:setup():119] code probe done
2020-03-07 18:47:34,753 DEBUG   MainThread:15916 [run_manager.py:__init__():541] Initialized sync for None/wcp2iba7
2020-03-07 18:47:34,758 DEBUG   MainThread:15916 [connectionpool.py:_new_conn():959] Starting new HTTPS connection (1): api.wandb.ai:443
2020-03-07 18:47:34,951 DEBUG   MainThread:15916 [connectionpool.py:_make_request():437] https://api.wandb.ai:443 "POST /graphql HTTP/1.1" 200 None
2020-03-07 18:47:34,956 DEBUG   raven-sentry.BackgroundWorker:15916 [connectionpool.py:_new_conn():959] Starting new HTTPS connection (1): sentry.io:443

What I Did
if __name__ == "__main__":
    net = CNN()

    wd_logger = loggers.WandbLogger(name="test")
    trainer = pl.Trainer(logger=wd_logger)
    trainer.fit(net)
    trainer.test()

My Enviroment
PyTorch version: 1.4.0
OS: Microsoft Windows 10 Pro
Python version: 3.7
Is CUDA available: Yes
Wandb 0.8.29

Thanks for reporting this issue! @borisdayma could you take a look?

@LuposX I cannot reproduce your bug. Do you have a reproducible example?

Hi! I am having a similar problem although I am not using Pytorch Lightning. I get the exact same stack trace and error (save for user name obviously). I cannot wrap my head around what happens at the line stderr_read_file = os.fdopen(stderr_read_fd, 'rb') inside your run_manager.py
I have managed to reproduce this bug only with a specific combination of factors:

While Debugging using the latest stable build of Visual Studio Code, with latest python extension. No problem when running directly from command line.
Importing a specific library, in my case it's seaborn, but here it may also apply to the Lightning loggers
Attaching a logging.FileHandler to a logging.logger (not root) before running wandb.init()

I found it very very strange that this needs both the import of seaborn and the attachment of the handler to happen. Here is a full working example

import wandb
import seaborn as sns

logger = logging.getLogger("kidsib")

logger = logging.getLogger("testname")
logger.addHandler(logging.FileHandler("test.log"))
wandb.init(project="eegcp")   # crashes here
pass

Hope this can help!

When you tried my code did you used the newest version of pytorch-lighning 0.7.1 and the newest version of wb.

@LuposX I could not try it as it's missing the definition of data, CNN, etc.
Can you send a copy of the full file?

@borisdayma this should be a minimal example of an MNIST classifier:
import os

import torch
from torch.nn import functional as F
from torch.utils.data import DataLoader
from torchvision.datasets import MNIST
from torchvision import transforms, datasets
import torch.nn as nn

import pytorch_lightning as pl
from pytorch_lightning import loggers

from PIL import Image

class CNN(pl.LightningModule):
    def __init__(self):
        super().__init__()

        self.test_correct_counter = 0
        self.test_total_counter = 0

        self.l1 = nn.Linear(28 * 28, 28 * 28 * 5)
        self.l2 = nn.Linear(28 * 28 * 5, 28 * 28)
        self.l3 = nn.Linear(28 * 28, 10)

    def forward(self, x):
        x = torch.flatten(x, start_dim=1, end_dim=-1)
        x = torch.relu(self.l1(x))
        x = torch.relu(self.l2(x))
        x = self.l3(x)

        return x

    def cross_entropy_loss(self, predicted_label, label):
        return F.cross_entropy(predicted_label, label)

    def training_step(self, batch, batch_idx):
        x, y = batch

        predicted_label = self.forward(x)
        loss = self.cross_entropy_loss(predicted_label, y)

        logs = {"train_loss": loss}
        return {"loss": loss, "log": logs}

    def validation_step(self, val_batch, batch_idx):
        x, y = val_batch

        predicted = self.forward(x)
        loss = self.cross_entropy_loss(predicted, y)

        self.test_correct_counter += int((torch.argmax(predicted, 1).flatten() == y).sum())
        self.test_total_counter += y.size(0)

        logs = {"val_loss": loss}
        return {"val_loss": loss, "logs": logs}

    def validation_epoch_end(self, outputs):
        # outputs is an array with what you returned in validation_step for each batch
        # outputs = [{'loss': batch_0_loss}, {'loss': batch_1_loss}, ..., {'loss': batch_n_loss}]

        avg_acc = 100 * self.test_correct_counter / self.test_total_counter

        self.test_correct_counter = 0
        self.test_total_counter = 0

        avg_loss = torch.stack([x['val_loss'] for x in outputs]).mean()
        tensorboard_logs = {'avg_acc': avg_acc, 'val_loss': avg_loss}
        return {'avg_acc': avg_acc, 'avg_val_loss': avg_loss, 'log': tensorboard_logs}

    def prepare_data(self):
        compose = transforms.Compose([
            transforms.ToTensor()
        ])

        self.mnist_train = datasets.MNIST(
            root="data",
            train=True,
            download=True,
            transform=compose
        )

        self.mnist_test = datasets.MNIST(
            root="data",
            train=False,
            download=True,
            transform=compose
        )

        self.mnist_train, self.mnist_val = torch.utils.data.random_split(self.mnist_train, [55000, 5000])

    def train_dataloader(self):
        mnist_train_loader = torch.utils.data.DataLoader(self.mnist_train,
                                                         batch_size=128 * 4,
                                                         num_workers=1,
                                                         shuffle=True)

        return mnist_train_loader

    def val_dataloader(self):
        mnist_val_loader = torch.utils.data.DataLoader(self.mnist_val,
                                                         batch_size=128 * 4,
                                                         num_workers=1,
                                                         shuffle=True)

        return mnist_val_loader

    def test_dataloader(self):
        mnist_test_loader = torch.utils.data.DataLoader(self.mnist_test,
                                                       batch_size=128 * 4,
                                                       num_workers=1,
                                                       shuffle=True)

        return mnist_test_loader

    def configure_optimizers(self):
        return torch.optim.Adam(self.parameters())

if __name__ == "__main__":
    net = CNN.load_from_checkpoint("tb_logs/NN_08_03_20/version_0/checkpoints/epoch=4.ckpt")

    net = CNN()

    wd_logger = loggers.WandbLogger(name="test")
    trainer = pl.Trainer(logger=wd_logger)
    trainer.fit(net)
    trainer.test()

Also maybe you should consider adding PyTorch-lightning to the framework-doc. Since it's far more popular than its counterpart(PyTorch-ignite) you listed there.

@borisdayma any news? Is this a problem of wandb or should I report it to PyTorch-lightning?

Hey @LuposX, this is an issue with wandb on Windows.  It should work in linux.  We're currently in the process of writing a new version of the python library that works well with Windows.  My colleague @raubitsj can get you on the beta list.  In the mean time, are you able to run training in a linux docker image on your windows machine?

I would love to try the beta version. If it doesn't work I will wait for a Windows release. :) Thanks for the help

@vanpelt how soon would windows version be ready(at least stable)?

Hey @LuposX
In the past year we've majorly reworked the CLI and UI for Weights & Biases. We're closing issues older than 6 months. Please comment to reopen.

authors: LuposX ariG23498 borisdayma braindotai cvphelps rivasd vanpelt

repo: wandb/client


text:
[Q]: How to show the latest logged metrics for runs on the plot.

Hi, I am evaluating a few models and log test accuracies. Figured out I had made a mistake in my eval script and test accuracy comes up as nonsense value for a single run. I have fixed the bug and re-run it. Now the metrics are true.
Results of the 1th run can be seen in the chart below (accuracy - Step);

Problem is, I see only the oldest metrics for runs when I want to compare with other runs and couldn't make it work. Example below;

How can I fix the bar of the 1th experiment (or all) to show the latest logged metric?
I hope It is explained clearly. Thanks for your helps.

Hi @samils7, thanks for writing in! If I'm understanding you properly, you'd like to plot the bar chart showing the value of the accuracy in the last step, is that correct? This should be the default behavior so it'd be great if you could send me a link to that project so I can have a look at it to see what's happening exactly.

Hi @luisbergua , thanks for writing too.  Sorry that I can't share this link with you but let me mention my last findings.
I have downloaded this panel as a csv file and I see column names and values of exp 1 is:

exp_1_step (=126.5)
exp_1_step__MIN (=110)
exp_1_step__MAX (=143)
exp_1_test/acc (=0.68)
exp_1_test/acc__MIN (=0.00001)
exp_1_test/acc__MAX (=0.94)

it means there are both min and max accuracy values of experiments stored in this panel and UI only shows MIN values as default and doesn't allow to change.

Thanks for the context @samils7! I think I see what you mean now. The reason for that is because bar charts are intended for metrics of length 1.

If you click on Add Panel -> Bar chart and select a metric logged per step, the bars will show the last step value. Please let me know if that makes sense.

Hi @luisbergua Thanks for the suggestion. After manually adding bar chart and selected the metric I want, I see the the latest logged values on newly created bar chart. This is what I wanted to see.

repo: wandb/wandb


text:
[App]: Is there a limit for table logging?

Current Behavior
I have created a custom table as shown in the image. As you can see it is logged 82 times on the left side and it is completely selected. But the table on the right shows only 50 rows. Even exporting it to .csv shows only 50 rows.
I was wondering if is there a limit for logging for tables and how one can bypass it.
Thanks a million.
Expected Behavior
The full log should be displayed in the table and exported to CSV.
Steps To Reproduce
No response
Screenshots

Environment
OS: Ubuntu 22.04
Browsers: firefox 112.0.2
Wandb version: 0.13.11
Additional Context
Please let me know if I am missing something here.

Hi @DishantMewada thanks for reporting this issue. There's a default limit of 200,000 rows, and you could override the limit with: wandb.Table.MAX_ROWS = X
In your case, unless you've specified this variable to be 50, it shouldn't happen. Are you using the same table key for all 82 entries? The wandb.Table would create an artifact too, could you please click the artifact icon from left panel and check in the artifact's files tab if you can see the whole table in there?

@thanos-wandb My table generation code is as follows -

inference_table = wandb.Table(columns=['model_name', 'width', 'height', 'percent_change', 'GFLOPs', 'Params_M',  'bbox_mAP', 'bbox_mAP_50', 'bbox_mAP_75', 'bbox_mAP_s', 'bbox_mAP_m', 'bbox_mAP_l'],
                            data=[[meta['exp_name'][:-3],IMAGE_WIDTH,IMAGE_HEIGHT,int(imageSize*100),num_flops,params,test_dict.get('bbox_mAP'),test_dict.get('bbox_mAP_50'),test_dict.get('bbox_mAP_75'),test_dict.get('bbox_mAP_s'),test_dict.get('bbox_mAP_m'),test_dict.get('bbox_mAP_l')]])
run.log({"Test Inference": inference_table})

where I am populating variables in different runs.
Here is the screenshot of my artifact. I don't know where the table is in here.
I am fine running the entire experiment again.
Thank you.

Note: This table is generated through different runs which were in the for loop.

Hi @DishantMewada thanks so much for the additional information, and sorry for late reply here. There's indeed a limit applied when it comes to concatenating tables from different runs and this is set to 50.
A workaround would be to create a dummy run that gets from all these runs the logged artifacts and adds them to a new table. In that case, since it will be coming from a single run you will be able to visualize up to 200,000 rows. Let me know if that would work for you and if you needed a code snippet to do that.

Hi @DishantMewada I wanted to follow up with you on this issue, there are performance reasons that constrain this limit. Therefore, I was wondering if you were interested in a workaround where you combine the tables in a dummy run, and then log a single table instead. Thank you!

authors: DishantMewada thanos-wandb


text:
[App]: Add tags with special caracters over web version

Current Behavior
Hello, I have some tags that I added via python script,

I would like to incorporate manually other one that I forgot via web, but I could not add special caracters like '.' as I did on the python code,
So, as I understood I could not add special caracters tags via web, for example add 'new_0.1_experiment'
Best Regards,
Expected Behavior
Add other tags with '.' like on the image
Steps To Reproduce

Go to Tags on the web wandb of your experiment
Click on '+'
Try to put some especial caracters like points, as we can see on the image, that I did with python

Screenshots

Environment
OS: Ubuntu
Browsers: Chrome
Version: web
Additional Context
No response

Hi @heitorrapela! Thank you for reporting this. I'll send the pass on the feedback directly to our engineers.
The only way to add tags to a run manually, with special characters, is through the wandb API like this:
run = wandb.Api().run("{entity}/{project}/{run-id}"})
run.tags.append("tag1.1")  # you can choose tags based on run data here
run.update()

Hi @ArtsiomWB, thanks for the answer 👍🏻

No problem! We appreciate you reporting this :)

WandB Internal User commented:
heitorrapela commented:
Hi @ArtsiomWB, thanks for the answer 👍🏻

WandB Internal User commented:
ArtsiomWB commented:
No problem! We appreciate you reporting this :)

authors: ArtsiomWB heitorrapela sydholl


text:
[Feature]: When deleting experiments, protect the ones that appear on reports

Description
Hey!
Firstly, thanks for the awesome framework that assists in researching ML/DL :)
I want to suggest a new feature:
Being able to delete experiments, with a condition that these are not appear in any report.
The actual use case is as follows:
I have tons of experiments (lets say thousands), but only part of them appear in reports (few 100s).
I wish to clean my experiments history (both for clarity & storage data) without deleting experiments that I showcase in past reports.
Currently, I'm deleting by date and essentially losing information about past experiments.
Suggested Solution
A possible solution would be, to be able to filter runs by a tag "reported" or some other name that suggests it appears on a report.
Another solution would be to come up with a script that iterates over the reports & experiments, matches them and delete the ones that haven't being reported.

Hey @SagiPolaczek, thanks for sharing this feedback! I'll ensure to raise a feature request with our Product Team and will let you know if they provide any updates

authors: SagiPolaczek luisbergua


text:
issue about build and usage?

Do make test as followings:
ok  	_/home/ocdc/app/codis/codis191/codis-1.91/pkg/proxy/cachepool	0.014s
?   	_/home/ocdc/app/codis/codis191/codis-1.91/pkg/proxy/group	[no test files]
ok  	_/home/ocdc/app/codis/codis191/codis-1.91/pkg/proxy/parser	0.023s
?   	_/home/ocdc/app/codis/codis191/codis-1.91/pkg/proxy/redisconn	[no test files]
?   	_/home/ocdc/app/codis/codis191/codis-1.91/pkg/proxy/redispool	[no test files]
FAIL	_/home/ocdc/app/codis/codis191/codis-1.91/pkg/proxy/router [build failed]
make: *** [gotest] Error 2

Although Error 2,  it still generates deploy.tar.  how can i do to make this success, Does this affact codis function?  in release1.8, that's no error

Only deploy.tar should be installed in other servers if i wanna deploy codis in many servers, right?

It's path related issue.
Will be fix later.
You can rename codis-1.91 to codis and move it to $GOPATH/src/github.com/wandoulabs/, then build it

repo: wandoulabs/codis


text:
OCC依赖找不到

OCC==7.4.0rc1
这个包安装依赖找不到，是要配置？

23.77 ERROR: Could not find a version that satisfies the requirement OCC==7.4.0rc1 (from versions: 0.0.1.dev20190823043644, 0.0.1.dev20190823045253, 0.0.2.dev20190912195130)
我选择将server/requirements.txt 的 OCC 版本号更改为 0.0.2.dev20190912195130，跑通了流程。希望对你有用


text:
如何获取富文本里的每个字符相关属性

在富文本框输入的文字,如何获取每个字的属性(字体名称,字体大小,字体颜色,加粗)
目前手工使用压栈的方式,感觉性能不是很好,是否有提供更好的办法?
谢谢

如何获取每个字的属性(字体名称,字体大小,字体颜色,加粗)

不明白为何要获取每一个字的这些属性，从没见过这样的需求，能否举个例子来说明。我明白了，也好给你出最佳的主义。

另外，关于获取你说的『属性』（其实我理解的就是css样式），例如要获取编辑器编辑区域第一个<p>元素的样式，可以使用window.getComputedStyle(editor.$txt.find('p')[0])来获取，具体你可以试试。
至于你说的每一个字，我就不明白了，最好举例说明

非常感谢解答,需求是这样的
一个富文本框,用户输入,可以设置单个字的各种样式(颜色\大小\字体),然后web界面要在canvas上根据富文本的显示效果,在canvas上显示出来(颜色\大小\字体),
比如:富文本里面  欢迎来到这
欢   红色  宋体,10
迎   绿色  楷体,12
来   蓝色  黑体,8
到   绿色  宋体,20
这   红色  黑体,10
如果不使用富文本,单独的textarea可以实现分字,但界面上无法显示效果(颜色等),使用此富文本编辑器,目前是通过正则匹配标记来获取每个字的属性,所以咨询下看是否有更加高效的方法

第一，定义一个数组 var data = []
第二，获取编辑器区域的DOM var $content = editor.$txt ，然后针对 $txt.chidlren()子节点、以及子节点的子节点，这棵树，进行遍历。
第三，接第二步说，每每遍历到最TextNode，通过window.getComputedStyle获取它的属性，然后将每个字、属性，都添加到一开始的数组中，例如data.push({val: '欢', family: '宋体', size: 10})等（如果这个TextNode包含多个字，就循环挨个push进去）
第四，将以上所说的过程，封装成一个函数，然后做一个编辑器的插件，参见 http://www.kancloud.cn/wangfupeng/wangeditor2/115837


text:
[Android]部分请求不显示

描述错误
部分http请求不显示
To Reproduce
软件: 囧次元(flutter应用) https://mobai0521.lanzouj.com/iHdH91iu0eze
操作页面: 点击进入任意视频页面
*屏幕截图

试下这个包呢
https://f.ws59.cn/f/czh6u85sons

重新1.0.6的包，我自测没问题了

authors: DeltaFlyerW wanghongenpin


text:
大神  这个menuview  怎么放置一些图片啊??

目前还不支持图片哈

repo: wangmchn/WMPageController


text:
设置了导航栏背景图片，menuView会下移，怎么解决呢

(CGRect)pageController:(WMPageController *)pageController preferredFrameForMenuView:(WMMenuView )menuView
中把返回
CGRectMake(leftMargin,originY , self.view.frame.size.width - 2leftMargin, 44);
第二个参数originY 设置为0

authors: ThymeBoy baoshuikeji


text:
Weird behavior when typing

When I write on a line that is not the last, after writing 1 character, it takes me to the next line, I want to continue writing on the same line.
GIF:

I noticed that it only happens when I set the state with OnChange, if it uses its internal state it works fine.
Replicate:

Go to: https://codesandbox.io/s/epic-bardeen-xn8g7?file=/src/App.js
Write in the first line "top"
Create 2 new lines below
Go to the last line, write "bottom"
Click on the middle line or the first one, try to continue writing there. It will take you to the next line.

did you fix this guys

I have decided no use react-medium-editor, and create own component that will do the same wrapper (based on hooks) without this bug.
`import React, { useState, useEffect, useRef } from 'react'
if (typeof document !== 'undefined') {
let MediumEditor = require('medium-editor')
}
function ReactMediumEditor(props) {
let {
className,
options,
text,
onChange
} = props
let [t, setT] = useState(text)
let container = useRef()
let medium = useRef()
useEffect(() => {
medium.current = new MediumEditor(container.current, options)
medium.current.subscribe('editableInput', e => {
change(container.current.innerHTML)
})
return () => {
medium.current.destroy()
}
}, [])
function change(text) {
setT(t)
if (onChange)
onChange(text, medium)
}
if(medium && medium.current) {
medium.current.saveSelection()
}
return <div className={className ? className : ''} dangerouslySetInnerHTML={{ __html: t }} ref={container} />
}
export default ReactMediumEditor`

authors: bocek vadimuz yojona

repo: wangzuo/react-medium-editor


text:
Add signal, atexit module for non-daemon GPT thread join

Python의 atexit 모듈을 사용하여 애플리케이션 종료 시 실행되는 함수를 정의합니다. atexit 모듈은 프로그램이 정상적으로 종료될 때 실행되는 함수를 등록하는 데 사용됩니다.
at_exit_handler 함수는 애플리케이션 종료 시 호출되며, 이 함수는 @atexit.register 데코레이터를 사용하여 등록됩니다. 이 함수는 애플리케이션 종료 시 필요한 정리 작업을 수행하는 데 사용될 수 있습니다.
그러나 이 함수는 모든 상황에서 호출되는 것은 아닙니다. 프로그램이 파이썬이 처리하지 않는 시그널에 의해 종료되거나, 파이썬의 치명적인 내부 오류가 감지되었을 때, 또는 os._exit()가 호출될 때는 이 함수가 호출되지 않습니다. 그래서 시그널에 의해 종료되는 상황은 os_term_handler 함수에서 호출하도록 합니다.
이 함수는 GPT로 생성하는 스레드를 non-daemon 으로 명시적으로 변경하여, 프로그램이 종료되기 전에 모든 실행 중인 스레드를 순회하며, 메인 스레드가 아니며, 데몬이 아닌 스레드가 실행을 마칠 때까지 기다립니다. 이는 스레드가 모든 작업을 완료하고 리소스를 정리할 수 있도록 하기 위함입니다.
마지막으로, 이 함수는 sys.exit(0)를 호출하여 애플리케이션을 종료합니다. 이 호출은 Python의 정상적인 종료 프로세스를 따르도록 하며, atexit에 등록된 다른 함수들도 실행됩니다. 이 함수가 중복 호출되는 것을 방지하기 위해, is_exiting 이라는 전역 변수를 사용하여 함수가 이미 호출되었는지 확인합니다.

이를 통해 아래와 같은 상황을 해결합니다.

ECS Spot Instance 를 운영할 경우 예측하지 못하는 순간에 SIGTERM 이 발생
CI/CD 배포 진행 중(Rolling, Blue Green 업데이트) SIGTERM 발생
SIGTERM 호출 시 실행 중인 non-daemon 스레드를 기다리며, GPT 스레드가 Join 된 후 안전하게 종료됨

daemon=False 가 핵심이군요.. 메모

기본적으로 daemon=False 이지만, 부모 스레드가 Slack Bolt loop thread 이기 때문에 부모 스레드를 따라가서 해당 스레드도 daemon 이 되더라고요


text:
Can't initialize Client() anymore

After updating to 0.2.0, I can't initialize Sponsorblock Client anymore.
Python 3.9.8 (tags/v3.9.8:bb3fdcf, Nov  5 2021, 20:48:33) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sponsorblock
>>> client = sponsorblock.Client()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "...\lib\site-packages\sponsorblock\utils.py", line 124, in __call__
    if cls not in cls._instances:
AttributeError: type object 'Client' has no attribute '_instances'

Oh then I've made a mistake somewhere, I'll get on to fixing it

@JVT038 I've fixed it, update to 0.2.1

Thanks for the quick fix :)

:)


text:
[FEATURE] Oneliner docker install/quickstart

Right now we have a docker compose, but I think we should have a single container that you can use to run wasmCloud so that getting started is easy. https://wasmcloud.com/docs/installation?os=docker
I'm not opposed to a docker compose, but it's a little harder, so I figure we can start with a "nice" experience.
docker run --rm -p 4000:4000 -it wasmcloud/wash

This command would effectively launch wash up , and people could interact with the wasmCloud dashboard locally. Additionally, they could do:
docker exec wash ctl get hosts to interact with the control interface, etc.
This method would get harder once requirements come in to interact with services like Redis, or OpenTelemetry collectors, but hey we can point people to our docker compose at this point.

Hey, I would like to work on this issue.

Hey, I would like to work on this issue.

@bhavyastar That would be awesome! I tagged you as assigned so nobody ends up taking it. Let us know if you need any additional work done on the docker image to support this!

@bhavyastar Hey, are u still working on this issue ?

@rushikeshsuryawanshi if you're interested in taking this one, I can assign this to you if @bhavyastar doesn't get back to us for a few days 😄

authors: bhavyastar brooksmtownsend ricochet rushikeshsuryawanshi

repo: wasmCloud/wasmCloud


text:
Actor interface to expose wasmbus-rpc protocol version number

For future-compatibility, actors should expose a wasmbus-rpc version number. In the future, if we ever change invocation apis or the type of message serialization, we can bump the version number. The host would check the version number before doing rpc with the actor, and use the appropriate compatibility shim if necessary. Not trying to be prescriptive of how host implements this - just describing the concept.
I'm going to assign this to Kevin to pick the symbol name, then he can reassign this to me to implement exposing the version from the actor code generation.

The host runtime also publishes this version number in the ActorStarted event, along with the actor public key.

For further detail, all actors pre-0.5 are considered to be on rpc version 0 while 0.5+ is rpc version 1.

authors: autodidaddict stevelr

repo: wasmCloud/wasmcloud-otp


text:
Do you plan to enlarge the dataset in the future?

Hi！ May I ask whether you plan to enlarge the dataset in the future?

Hi, at the moment we are working on adding roughly 100-200 more subjects. Those are subjects where the current system is having some problems and more whole body CTs since those are rather rare. If we add some more classes and we fell that more images of a certain type are need we might also add those. But it will always be a minor amount of data.
Extending the dataset by orders of magnitude is not planned at the moment. Going to several thousand subjects would increase the effort for correcting the masks too much.

@wasserth Hi!
I had some questions on this. I read your paper and tested the model and it looks very promising so I'm looking into it more.
The paper does not give a lot of details on the patients characteristics from the dataset.  I'm wondering if you have description of what kind of images are included eg: trauma patients (not laying in typical orientation for instance with crossed arms, presence of image artifacts etc), patients with medical devices implants/screws/plates/etc, ... ie anything that makes an image peculiar.
It says that images were randomly taken across 10 years to have a fair representation of the clinic but then it also says that 40 patients were excluded because they were too difficult to segment (due to pathologies etc). Is there more details on what kind of images were considered too difficult ? Here you mention adding more subjects where the current system has problems with, what kind of images are they ? Are they images with pathological findings ?
Thanks in advance !

We are preparing a more complete paper which will answer some of these questions. Here I can show you a figure with some more details.
The dataset contains images with implants/screws, trauma, ... but I can not tell you how many exactly of each of these conditions since we did not count all of them specifically. If you want to know exactly you can download the dataset and look through the images yourself.
Images considered too difficult were images where the radiologist was not able to properly segment the structure, e.g. he was not able to find the border between the lung lobes since they were not really visible anymore due to pathology.

authors: Fivethousand5k Skylixia wasserth

repo: wasserth/TotalSegmentator


text:
Doconnor develop

@sgregglives @germanattanasio Please review readme changes.. Steve, I think we need to have more info on how to get a workspace.. Just dumping Deb back into a big doc about the service will only frustrate her..
@mitchmason

[Current coverage][cc-pull] is 36.11%

Merging [#5][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master         #5   diff @@
==========================================
  Files             1          1
  Lines            36         36
  Methods           3          3
  Messages          0          0
  Branches         12         12
==========================================
  Hits             13         13
  Misses           23         23
  Partials          0          0

Powered by Codecov. Last updated by [9a4be3b...1866feb][cc-compare]
[cc-base-branch]: https://codecov.io/gh/watson-developer-cloud/conversation-simple/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/watson-developer-cloud/conversation-simple/compare/9a4be3b8ad63bec1d2a1d363b4165bcb2e8fd3eb...1866feb68e911e3bf974f9ae39d5a9f096aa6dfc
[cc-pull]: https://codecov.io/gh/watson-developer-cloud/conversation-simple/pull/5?src=pr

i think the numbering might be off? It says if you click the button skip to step 7, but step 5 talks about adding a workspace environment variable, which I dont think the button does for you

authors: codecov-io doconnor78 mitchmason


text:
Add pass to list of KEYS

Hi,
Cool module. I'm using it in conjunction with redact-secrets.
The key 'pass' (/^pass$/) is missing from the KEYS. Can you please add it?

This have been added to the latest release

It depends on ^1.0.0, so if you reinstall, it will use the new version

Got it. Thx.

authors: nidkil watson

repo: watson/is-secret


text:
请问这个gradle错误怎么解决？

C:\Program Files\Java\jdk1.8.0_121\jre\lib\security\cacerts (系统找不到指定的文件。)

@chanjamin https://stackoverflow.com/questions/23903842/unable-to-import-certificate-to-cacerts

该导入自己生成的证书还是对应maven站点的呢？

该导入自己生成的证书还是对应maven站点的呢？ @zjs1224522500

@chanjamin 自己的

@zjs1224522500 谢谢

repo: waylau/spring-security-tutorial


text:
chore(master): release 1.5.15

:robot: I have created a release beep boop
1.5.15 (2023-10-11)
Miscellaneous

deps: update traefik docker tag to v2.10.5 (816b9c4)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/docker-shared-services/releases/tag/v1.5.15 :sunflower:

repo: wayofdev/docker-shared-services


text:
引入Redis模块

能调用Redis的API进行操作，需完成一下几点。
1.redis服务器安装在Linux，windows连接，并写相关文档（转载也行）；
2.代码需完成：redis模块，Service引入，单元测试（redis的五种基本类型都需要测试到）。

已完成tag：V3.0.0


text:
Question about the projection_to_birds_eye_view function

Congratulations on your great work!
I want to follow your work for future research and I have some questions about your released code below:
In the fiery.py file of your code, can you provide more details about the get_geometry function and the projection_to_birds_eye_view function? I'm so confused about how they actually work, especially, the code shown in the red box below.

Thank you very much. Looking forward to your reply!

Hey!
Thanks for the kind words :)
Let's review the function calculate_birds_eye_view_features.

self.encoder_forward(x). The images inputs of dimension (N, 3, H, W) (N=6 cameras, H=height, W=width) are fed to an encoder to output features of size (N, C, H/8, W/8) because the encoder downsample images by a factor of 8.
geometry = self.get_geometry(intrinsics, extrinsics). We calculate the 3D positions of the downsampled features using the camera intrinsics and extrinsics. If this step is unclear, this blog explains it well: https://ksimek.github.io/2013/08/13/intrinsic/
 x = self.projection_to_birds_eye_view(x, geometry). We sum all the 3D features along the vertical dimension to form bird's-eye view features. To do so, we discretise the space around the ego-vehicle in 0.5mx0.5m infinite columns, and the 3D features are summed across the columns. In this particular implementation, which is adapted from https://github.com/nv-tlabs/lift-splat-shoot/blob/master/src/models.py#L200, we use a "ranking trick" to sort the 3D features so that the features that belong to the same infinite column are right next to each other. This speeds up the summing process when backpropagating (see the implementation of VoxelsSumming), compared to a naive "cumulative sum function" which works as well, but is slower.

Hope that was helpful, and good luck for your project!

Hi! Thanks for your replying. It really helps me a lot!
For the self.encoder_forward(x) and geometry = self.get_geometry(intrinsics, extrinsics), I have understood the execution logic of the code. However, for the x = self.projection_to_birds_eye_view(x, geometry), I still have some questions that bother me.

What do the values in the geometry tensor of  self.projection_to_birds_eye_view(x, geometry) function stand for? Do the values of  geometry  tensor represent the coordinate's relationship, which is used during the transformation process from the Frustum Features to Voxel Features? Would you please take some examples for me to make the process clearer?

Since the feature maps are transformed from the front view (Frustum Features) to bird's-eye-view (Voxel Features), where is the transformation process reflected in the  self.projection_to_birds_eye_view(x, geometry) function?

How are features of multiple cameras fused in the self.projection_to_birds_eye_view(x, geometry) function?

Thank you very much. These problems have bothered me for a long time. Looking forward to your reply!

The geometry tensor is aligned with the x tensor, and correspond to the 3D position of each feature. In other words, by using the geometry tensor you can know the 3D location of each element in x, which allows you to know in which voxel each feature belongs to for summing in bird's-eye view.
and 3. The feature maps come from the N=6 cameras. And using the geometry tensor, we can position the feature maps in 3D, in a common reference frame, which is the inertial center of the vehicle.

I have understand it, thank you veru much!

No problem, glad I could help! :)

authors: anthonyhu taylover-pei

repo: wayveai/fiery


text:
Resetting Dimensions

I'm using React Router and logic adapted from the Layouting Example to organize my nodes.
This is a very simplified example of my code:
const FlowContainer = ({ id }) => {

  // I use a separate state management with React Context.
  const {elements, setElements} = useContext(NodeContext);

  // `id` loads the elements used in React Flow
  useEffect(() => {
    const unorderedElements = getData(id);

    // use Layouting example to organize nodes before setting them in React Flow
    const orderedElements = orderElements(elements);

    setElements(orderedElements);
  }

  <ReactFlow
        elements={elements}
  >
  </ReactFlow>
}

Problem
When I leave my FlowContainer component with history.back and load another FlowContainer with a different set of data (different id), the layout generated becomes very off.
Example

Load the first FlowContainer with id=1
Everything looks good.
transform: 0, 0, 1
width: 0
height: 0

Use React Router's history.back() and load FlowContainer with id=2
The width is off and causes the layouting logic to render bad results
transform: 0, 0, 1
width: 375
height: 812

Use React Router's history.back() and load FlowContainer with id=1
transform: 87.5, 406, 1
width: 375
height: 812
The layouting logic causes what had previously rendered properly to layout with bad results

Refresh the page (reload everything) while still on FlowContainer with id=1
Everything looks good again
transform: 0, 0, 1
width: 0
height: 0

What I've Tried
I've tried using some of the following actions to "reset" the width/transform of FlowContainer in useEffect so that it would get "reset" every load...but it doesn't work.
const { transform, fitView, setCenter } = useZoomPanHelper();
const transformState = useStoreState((store) => store.transform);
const updateSize = useStoreActions((actions) => actions.updateSize);

Question
If you have any ideas on how I can troubleshoot, I would greatly appreciate it. Is there an internal action that I could look into using? Or am I overlooking something completely obvious?
Thank you!

Hey @leejustin
could you try to wrap each flow with its own ReactFlowProvider?

Hey @leejustin
could you try to wrap each flow with its own ReactFlowProvider?

In the example above, I had ReactFlowProvider wrapping all of the routes in my React router routes file.
I've also tried wrapping with ReactFlowProvider inside of the component itself as shown below:
<ReactFlowProvider>
  <ReactFlow
        elements={elements}
  >
  </ReactFlow>
<ReactFlowProvider>

Both of these seem to have the same issue.

In the example above, I had ReactFlowProvider wrapping all of the routes in my React router routes file.
I've also tried wrapping with ReactFlowProvider inside of the component itself as shown below:
<ReactFlowProvider>
  <ReactFlow
        elements={elements}
  >
  </ReactFlow>
<ReactFlowProvider>

Both of these seem to have the same issue.

When you are working with react router it is important to wrap each flow with a provider. It is strange that it doesn't work here. We had similar issues on the docs website but the provider fixed it for us. Could you create a simplified codesandbox or repo so we could investigate this?

When you are working with react router it is important to wrap each flow with a provider. It is strange that it doesn't work here. We had similar issues on the docs website but the provider fixed it for us. Could you create a simplified codesandbox or repo so we could investigate this?

Thanks for the response.I'll take a little bit of time to rule out any mistakes on my end first to make sure I'm not wasting your time. Else, I'll put together a runnable, simplified version of my application for troubleshooting thought it will take a little bit of time.

@leejustin I had the same trouble with the layout example, what helped me was changing the scope of the dagreGraph instance to be inside my "FlowContainer" component, so that it is instantiated when the FlowContainer is mounted.
const dagreGraph = new dagre.graphlib.Graph();
dagreGraph.setDefaultEdgeLabel(() => ({}));

So dagreGraph calculates where the nodes should be based on the nodes it has in its graph, and reactFlow shows you the graph with only the elements you gave it

@jakespeare this is it! Really appreciate you pointing this out. I updated my code so that dagreGraph is initialized when the component mounts. This would have taken me so much more time to figure out 😄

authors: jakespeare leejustin moklick

repo: wbkd/react-flow


text:
Label in Smoothstep

The label in smoothstep is not positioned properly. This occurs if you have a path from left to top direction.

Getting the same issue when connecting default nodes to custom nodes:

Issue doesn't arise when connecting custom nodes to each other:

Tried messing around with the custom nodes handles but nothing worked.

Hey! Could you check v9.4.0?

Yep, I have the same issue with an edge from the left to top handle. Upgrading to 9.4.2 didn't help.

hey @denis-yasnitsky thanks for the feedback here. Could you try 9.4.3?
@obaid and @DovahBrownies could you check the label position for your cases with the latest version?

9.4.3 is close to perfection, but there is one little detail remains: line is not perpendicular to a box, seems like several degrees rotation clockwise:

@denis-yasnitsky thanks. Could you check 9.4.4?

Nailed it! Thanks a lot!

authors: DovahBrownies denis-yasnitsky moklick obaid


text:
Document minimum required version of direnv.

Ubuntu 16.04 includes direnv version 2.7.0 but it seems as though 2.8.0 is required as emacs-direnv requires direnv export json, correct?
https://github.com/direnv/direnv/blob/master/CHANGELOG.md#280--2016-03-27
With 2.7.0, the error from emacs-direnv is:
direnv--export: Error running direnv: exit code 1; output was:
""

However, from the command-line:
$ direnv export json
direnv: error Unknown target shell 'json'

I assume that's stderr and emacs-direnv only captures stdout.
Thanks for this package! It's long overdue.

you are right, @carrete.
i have added a remark to the readme about this in commit bda0cc7.
unfortunately parsing the direnv export bash output is far from trivial, which is why this package depends on the json output (and hence direnv 2.8 or later).

also, getting both stdout and stderr into separate buffers is problematic in emacs <25, which explains why you do not see the stderr output.
fwiw, you can view the  *direnv* buffer (make sure to start with a space) to monitor the direnv output whenever direnv is triggered.

(oh hi)
fwiw, changes from #8 and #10 make troubleshooting easier.

:+1:

authors: carrete wbolster

repo: wbolster/emacs-direnv


text:
Disable caching

There should be an option to disable caching, and perhaps have it disabled by default. I was really confused about the behavior of the plugin until I realized that there was caching involved.

PR welcome… :wink:

Actually… what were you seeing happening? In theory, caching should be transparent… if you haven't changed a file, then we shouldn't recompile.
Currently the cache doesn't account for config file changes or plugin changes. The former, I think we should handle. The later, I think would be covered by the ability to disable the cache (probably via an environment variable).
Other than that, I don't think it should be disabled (so not by default). This is kind of like Babel's cache which is enabled by default, but can be disabled.

Yeah, the confusion came when I updated my config and didn't see any changes. I probably should have known better because it was documented in the README.
I can see where you're coming from and I completely agree now. The changes to caching I hope to see are:

Changes to the PostCSS config file should invalidate the cache.
Add an option to enable/disable the caching function (enabled by default).

authors: chrisngobanh wbyoung

repo: wbyoung/babel-plugin-transform-postcss


text:
--watch is not working

Issue description
I'm trying to add an arbitrary file to being watched for changes, which isn't working. The change isn't being picked up and the app is not getting auto-restarted.
Now, the docs say I have to use a "chokidar" pattern, and the link to it just goes to the chokidar project page, which leaves me none the wiser. But, I'm assuming that a straight filename (no spaces or any forbidden/weird characters) oughta work.
Context
OS version (is it docker or host?), ts-node-dev version
Windows 10, ts-node-dev 1.0.0
Did you try to run with ts-node?
Not relevant.
Did you try to run with --files option enabled?
Yes, and it doesn't do anything (it's not in the docs, so I didn't expect anything)
Did you try to run with --debug option enabled?
Yup, but I'm not getting any more information than without it:
[INFO] 00:44:33 ts-node-dev ver. 1.0.0 (using ts-node ver. 9.0.0, typescript ver. 4.1.1-rc)

That's it.
Do you have a repro example (git repo) with simple steps to reproduce your problem?
Not yet, but since the problem is not related to any typescript code, the command can be tested against basically any codebase:
ts-node-dev --respawn --transpile-only ./src/app.ts --watch gallery.json --debug

Just make sure that gallery.json exists, and then just give it an edit while the app runs. It won't restart.

@thany, I think it is because of the order of params. I have moved watch before the entry script and it started to work:
ts-node-dev --respawn --rs --watch ./**/*.yaml index.ts

Really? I'll try that out shortly. Thanks.
That would be a super weird side-effect. Order of arguments shoudn't matter (or alternatively, why should they?)

Yep, just found this myself:

ts-node-dev --respawn --watch src ./src/index.ts - hot reloads all files inside of src
ts-node-dev --respawn ./src/index.ts --watch src - no hot reload for files inside of src

Nah, don't close. I would rather see this fixed 😟
Or documented, but fixing it is nicer.

Yeah I hear you, but I do think it is documented here in terms of arg order: https://github.com/wclr/ts-node-dev#usage so I suggested to close as imo it is working as documented.
Handling args in a less opinionated order would maybe be a bigger issue to resolve?

It doesn't say specifically that order is important (because in most tools, it isn't), but at least it's implied. Kind of.

authors: pauliusg rubengmurray thany

repo: wclr/ts-node-dev


text:
タイムテーブルにカテゴリを追加したい

出来れば追加したい
これは当日まででも大丈夫かもしれない
去年みたいにアイコンでいいかも
https://2015.tokyo.wordcamp.org/schedule/

今回のタイムテーブルでは厳しいそうです。

@taroooo2o8

こんな感じにしたいってことでしょうか?
CSS で頑張ればできますが、もしやるとするなら限定的に「初心者向け」のみとかにしたいですね。対応の優先度としては低く設定するので、ホントに当日までに間に合わせる感じにはなるかも

@featherplain

これは去年のタイムテーブルなんですが
去年のようにしたら分かりやすいかもというのを斎木さんと話していました

@taroooo2o8
去年そのタイムテーブル作ったのは私でございますー:smile:
去年は、自力で HTML 組んでたので自由度も高い反面、 HTML が複雑になり更新作業がとても面倒だったのと、情報をいろいろ入れた結果ちょっとごちゃついてしまったなーという反省点があります。
今年はすべてショートコードで表示させるようにしているので、表示できるものは WordCamp サイトの機能(仕様)に左右される形になります。カテゴリ表示機能はない(多分)のでどうしても、という場合は CSS でどうにか頑張る感じです。

CSS で頑張ればできますが、もしやるとするならセッション情報が全て出揃ってから、限定的に「初心者向け」のみとかにしたいですね。対応の優先度としては低く設定するので、ホントに当日までに間に合わせる感じにはなるかも

という方向でいきたいですー

@featherplain @taroooo2o8
https://github.com/wct2016/wct2016/blob/develop/src/scss/style/_timetable.scss#L75
いまはスラッグに 10min が入っていると「5分」というラベルが出るようになってます。
wcb-session-head-first-woocommerce-20min
上記のようなスラッグにすると、ラベルが出るわけですね。
似たような感じで、セッション名のあとになんか出すとか、そういうのは可能ですよ。
ただ、カテゴリがないので、各セッションを判別する方法はスラッグしかないので、排他的なカテゴリにするとよいのでは？
wcb-session-head-first-woocommerce-20min-c1001

@featherplain @fumikito
こちらやってみようと思うんですがセッション時間の表記と一緒で「_timetable.scss」
を修正すればいいんでしょうか？

@taroooo2o8
カテゴリはとりあえずこんな感じで

初心者向け
WOrdcamp Tokyo や WordPress が初めての方にオススメのセッション

夢をかなえるWordPress
Change! LTであなたも変わろう！
公務員を辞めた私がオープンソースを志向した理由
WordPress初心者が試みる「男木島図書館」の情報発信
ワークフローとしてのオープンソース
WordPressで運営する大手メディア 座談会

スタッフ一押し
WordCamp Tokyo スタッフイチオシのセッション!
当日何を聞くか迷ったら、これを聞けばまちがいなし!

CMS四天王への攻撃デモを通じて、WordPressの効果的な防御法を学ぼう
Contributing, You, and your Business / 貢献すること、あなた自身のこと、あなたのビジネスのこと
Google 検索モバイルトレンド: モバイルサイトを AMP でもっとサクサク高速に
WordPressで運営する大手メディア 座談会

@taroooo2o8
データ
データが必要なので、作業着手前に以下の xml ファイルをインポートしてください。
管理画面の [ ツール ] -> [ インポート ] の WordPress を選んでください。
speakers.xml
sessions.xml
pages.xml
https://drive.google.com/drive/folders/0BwKFWacVUxTpRFdmN3U5OHlmTU0
↑ここから落としてください!
[ WCT2016_Web制作班 ] -> [ data ] の中です

@taroooo2o8
仕上がりイメージ
イメージがあった方が作業しやすいかと思うので、作りました。
マージンとかはなんかいい感じにしてください(雑ですみません)
ハートと星のアイコンは、Dashicons を使ってください。
WordPress の管理画面の [ 外観 ] -> [ Fonts ] で [ Dashicons ] をエンキューするにチェックを入れると使えます。あとは CSS の mixin を include すれば楽だと思います。

分かりやすいです！ありがとうございます

@taroooo2o8
補足
ローカルでの作業段階では オススメ と 初心者向け それぞれひとつづつ、作業用につけてあげればいいので、対象セッションの全てにカテゴリをつけなくても大丈夫です。全部つけるのはめんどくさいかと思うので^^;

authors: featherplain fumikito taroooo2o8


text:
Fields fix

When using fields with Elasticsearch fields come back as lists. However
Spark unpacks the list when fields along with elasticsearch-hadoop. This
modifes DummyRDD to match that behavior

I already fixed this apparently


text:
Custom background color / more theming options

Though I love the predefined 2 themes (dark and light theme with the option to change the primary color), I really wish there would be a few more theming options. In some cases it just doesn't fit to the rest of the app. I wish I could set a custom color(s) for the backgrounds.

You can set the accent colour and chose between a dark and light theme.
This is what the material design specs foresee for pickers.
I don't really want to support any more customizations.
You can do a lot by overriding some mdtp_* color definitions in your app. If not, it should be easy enough to change this in a fork.

Okay, thank you for your reply. In quite new in all this things here. I will check if overriding does work as I want. Otherwise I will fork it, if I'm allowed to do that. Thanks for your help.

authors: MaximilianKeppeler wdullaer

repo: wdullaer/MaterialDateTimePicker


text:
Error returned by some fluxctl commands is not printed

The error returned by commands using the newUsageError method in https://github.com/weaveworks/flux/blob/master/cmd/fluxctl/error.go#L11, for example here: https://github.com/weaveworks/flux/blob/master/cmd/fluxctl/automate_cmd.go#L36
I'm assuming that it should be printed?
Doesn't actually print the error. E.g.:
$ fluxctl automate

Usage:
  fluxctl automate [flags]

Examples:
  fluxctl automate --service=helloworld

Flags:
  -h, --help             help for automate
  -s, --service string   Service to automate

Global Flags:
  -t, --token string   Weave Cloud service token; you can also set the environment variable FLUX_SERVICE_TOKEN
  -u, --url string     base URL of the flux service; you can also set the environment variable FLUX_URL (default "https://cloud.weave.works/api/flux")

Yeah this is a regression -- oops.

When I run fluxctl automate I get
$ fluxctl automate
Error:  -s, --service is required
Run 'fluxctl automate --help' for usage.

which seems better (it does print the error out) but also worse (it doesn't print the usage).

This was fixed en passant by https://github.com/weaveworks/flux/pull/435 (particularly f8fe434), where I noticed the same issue. I thought that printing the usage as well cluttered the output, making the actual error harder to see. I figured that the Run 'fluxctl automate --help' for usage was enough. Can we close this? or do you disagree?

I figured that the Run 'fluxctl automate --help' for usage was enough. Can we close this? or do you disagree?

Yeah good point, a clear and specific error message, plus how to get more information, is fine.

authors: paulbellamy philwinder squaremo

repo: weaveworks/flux


text:
Validate an image release

By:

Checking that the requested image is valid (i.e. has a tag)
Checking that the image exists in the repository.

Fixes #172
Fixes #232
Fixes #257

Unable to test due to repository structure. Will add tests for this after refactor.


text:
Is this project still supported by weaveworks maintainers?

As title shows, if i submit issue or pr, will someone take a look？

it does seem abandoned unfortunately :(

authors: GsssC luisdavim

repo: weaveworks/mesh


text:
Add describe control to all k8s resources

This PR will add a new control i.e. Describe
which will describe a k8s resource similar to kubectl describe.
fixes: #1143
Signed-off-by: Akash Srivastava akashsrivastava4927@gmail.com

@qiell Did you encounter any blockers trying to address review comments? I think the PR is very close to being ready to merge, I'd be happy to help wrap things up if needed :)

Hi, @fbarl Thanks for your concern. I had one issue but @bboreham helped me to tackle that. I couldn't find time to catch up on this. Will try to put that change ASAP. If I face any blockers or issue, I'll let you know.
Thank you :)

authors: fbarl qiell

repo: weaveworks/scope


text:
gitops run: Abort if dev-bucket resources couldn't be installed

When we can't create a bucket or kustomization, nothing will work. Before this, when you for example specify a namespace that doesn't exist, we didn't abort, instead the output was:
► Checking secret dev-bucket-credentials ...
✗ Error creating secret dev-bucket-credentials: namespaces "this-doesnt-exist" not found
► Checking bucket source dev-bucket ...
✗ Error creating source dev-bucket: namespaces "this-doesnt-exist" not found
► Checking Kustomization dev-ks ...
✗ Error creating ks dev-ks: namespaces "this-doesnt-exist" not found
✔ Setup Bucket Source and Kustomization successfully
◎ Press Ctrl+C to stop GitOps Run ...
► 1 change events detected
► Refreshing bucket dev-bucket ...
Handling connection for 9000
...............
► Uploaded 152 files
► Request reconciliation of dev-bucket, and dev-ks (timeout 30s) ...
✗ Error requesting reconciliation: buckets.source.toolkit.fluxcd.io "dev-bucket" not found
✔ Reconciliation is done.

which is confusing - no resources are created, nothing works, and yet there's a tick that we're "done".
With this, it exits at the first error.

I'm sure static checks will detect it but "Error strings should not be capitalized".

Checks passed? Then why am I getting it in the editor?

I've changed the code to followed the lint rule you had enabled.
As for the lint rule itself, see #2720.
Finally, there's further work required to wrap returned errors in a pretty wrapper, but that's out of scope for this one.

authors: opudrovs ozamosi

repo: weaveworks/weave-gitops


text:
fix(storybook): fix package.json, use module.hot api

Summary
Fix types exports in package.json
use module.hot, as rspack do not support import.meta.hot

🤖 Generated by Copilot at 837d40d
This pull request fixes the TypeScript type resolution and the hot module replacement for the @modern-js/storybook and @modern-js/storybook-builder packages. It reorders the exports fields in the package.json files and uses module.hot instead of import.meta.hot in the virtual module template. It also adds a changeset file to automate the release process.
Details

🤖 Generated by Copilot at 837d40d

Add changeset file to specify patch versions and summarize fix for @modern-js/storybook and @modern-js/storybook-builder packages (link)
Reorder exports subfields to put types first, followed by jsnext:source and default in package.json files of both packages to fix TypeScript resolution issue (link, link)
Replace import.meta.webpackHot with module.hot in virtual module template for modern entry point to enable hot module replacement with esbuild-loader (link)

Related Issue

Checklist

[x] I have added changeset via pnpm run change.
[ ] I have updated the documentation.
[ ] I have added tests to cover my changes.

!canary

!canary


text:
[Bug]: ProvidePlugin cannot work with mode: "production"

System Info
  Binaries:
    Node: 18.17.1 - ~/Library/Caches/fnm_multishells/58222_1708349960868/bin/node
    Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/58222_1708349960868/bin/yarn
    npm: 9.6.7 - ~/Library/Caches/fnm_multishells/58222_1708349960868/bin/npm
    pnpm: 7.33.6 - ~/Library/Caches/fnm_multishells/58222_1708349960868/bin/pnpm
  Browsers:
    Chrome: 121.0.6167.184
    Firefox Nightly: 115.0
    Safari: 17.0
  npmPackages:
    @rspack/cli: 0.5.4 => 0.5.4
    @rspack/core: 0.5.4 => 0.5.4

Details
If I use ProvidePlugin with mode: "production", the provided module is eliminated from the output. This will result in having TypeError: __webpack_modules__[moduleId] is not a function error at runtime since the module is not found in __webpack_modules__.
var __webpack_modules__ = {
"378": (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* provided dependency */ var __bar__ = __webpack_require__(/*! /home/webpack-app/src/bar.js */"580");
console.log(__bar__.default);
}),

}

Module with id 580(src/bar.js) does not appear in the output.
If I change mode: "production" with mode: "development", the output looks fine.
Reproduce link
No response
Reproduce Steps
Use the following example:
// rspack.config.js
import { createRequire } from "node:module";
const require = createRequire(import.meta.url);
/** @type {import('webpack').Configuration} */
export default {
  devtool: false,
  mode: "production",
  entry: {
    main: "./src/index.js",
  },
  optimization: {
    minimize: false,
  },
  plugins: [
    function (compiler) {
      new compiler.webpack.ProvidePlugin({
        __bar__: require.resolve("./src/bar.js"),
      }).apply(compiler);
    },
  ],
};

// src/index.js
console.log(__bar__.default)

// src/bar.js
export default 42

It works for me. Thanks!

repo: web-infra-dev/rspack


text:
'Private key' button does not respond

Trying to add a new connection, connecting via SSH, filled all the fields, but the button 'Private key' doesn't do anything. Is this an already known bug ?

@GaryHost No, This should work. Can you give us more details? What operating system?

Yeah sorry, i'm on Mac OS X El Capitan 10.11.13, and i've downloaded the v0.1.0-beta.1 version.

@GaryHost Thank you very much that found it. Fixed in v0.1.0-beta.2

authors: GaryHost VladimirPal

repo: web-pal/DBGlass


text:
Can't login possibly due to special character in password

Expected Behavior
Log in with user and password in our jira server
Actual Behavior
Can't login: "Unknown Error" and no message in Auth debug console
Steps to Reproduce the Problem

Fill our jira server address
Fill username
Fill password (contains special characters)

Specifications

Chronos-timetracker version: 2.8.6 x86_64
OS: Linux Mint 19.1 MATE

@guskuma  Hi!
Could you try please 3.0.0-beta, it should be fixed

Can confirm 3.0.0-beta working with my password.  Has a special char and did not work previously.

@VladimirPal thank you for your efforts. I confirm it's working for me with the very same password I could not log before.

authors: VladimirPal earlgrei guskuma

repo: web-pal/chronos-timetracker


text:
Publish web-features NPM package

As a follow-up to https://github.com/web-platform-dx/feature-set/pull/9 we should publish web-features to NPM, ideally set up in a similar way to https://github.com/w3c/browser-specs/blob/main/.github/workflows/release-package.yml.

Capturing the discussion on https://github.com/web-platform-dx/feature-set/pull/36 here, and adding some useful detail (hopefully):
Description
The workflow desired, in broad outlines:

Generate a release branch and PR, automatically bumping the version number and other boilerplate tasks.
Maintainers complete and update the release PR until a release is ready to be published (e.g., when sufficient changes or time since last release have accumulated and the release notes are finished).
Maintainer merges the release PR.
Automatically tag the release, generate release artifacts, and publish the release to npm. 🎉

I've tried to split this up into core requirements and nice-to-have embellishments.
Requirements

[ ] A CLI for running release tasks (e.g., scripts/release.ts, perhaps with some sub commands for the various bits, like init, update, publish, etc.)
[ ] A GitHub Actions workflow to be triggered manually (e.g., via npm run release -- init) that starts a PR for the next release. It must do the following:

[ ] Branches from main to a release branch with a documented, formulaic branch name
[ ] Bumps the version number (e.g., ultimately runs npm version patch, probably via the CLI above—commits to the branch but doesn't create a tag at this point)
[ ] Opens a PR from the release branch
[ ] Requests review(s) from the release maintainer(s)

[ ] A GitHub Actions workflow to be triggered by merging a release branch into main that publishes the release. It must do the following:

[ ] Assert that the merge a) is a release branch merge and b) the merge actually bumped the package version number, or exit
[ ] Tag the release
[ ] Create release artifact(s)
[ ] Run npm publish

Other things that would be good to have at some point

[ ] Automatically trigger the generation of the PR for the next release, on a schedule TBD or by some measurable metric, interval, etc.
[ ] On release PR creation:

[ ] Generate a stub release notes Markdown file for the release maintainer to fill in and complete
[ ] Provide release how-to documentation as the PR message body (e.g., instructions on how to change from patch to minor or major, how to force a rebase, how to cancel the release, etc.)

[ ] On main changes, automatically rebase the release PR
[ ] On release PR merges:

[ ] Generate a GitHub release
[ ] Delete the release branch

It is published...

authors: ddbeck foolip

repo: web-platform-dx/web-features