text:
Please extract Vue core into smaller modules for more flexibility

I was wondering if there are plans to extract more of Vue core into individual modules.
I see there are currently two platforms, a specific VDOM implementation etc.
In my mind, all these would make sense as modules that could be included/substituted as needed.
Perhaps a sensible idea for Vue 3. Where would I submit such feature/design suggestions?
Is there a roadmap? Thanks!

What exact flexibility are you thinking of? Please read https://github.com/babel/babel/blob/master/doc/design/monorepo.md
TL;DR: extracting into smaller modules come at a cost, and a non-trivial one. At the same time, I don't see clear benefits of doing so. Even if there are, it has to be significant enough to justify the cost.

Fair enough. We should overcome this cost as a community. The main issue is sharing the same dev environment across multiple repos.
Anyways, I was interested in trying to integrate Cycle.js with Vue2. They look like a good fit.
I think I already found a way to do it, simply:
const h = bind(createElement, vm)
And then use the h function from within Cycle.js to interact with the VDOM of Vue :) ??
I first thought about substituting the VDOM of Vue, which would be easier to reason about, if it was in a separate module..

and create components via const vnode = createComponent(child, data, vm, vm)

Well, I'd say it's very unlikely we will ever go to that level of modularity. Vue is simply not designed for that type of use case.
Also - using Cycle.js and Vue together doesn't seem sound right to me. Cycle + snabbdom or a custom DOM driver sounds more like the right match.
If you simply want to use Rx with Vue, vue-rx allows you to write pretty Cycle-like code.


text:
Unable to debug radio buttons being unchecked randomly

Vue.js version
2.1.4
Reproduction Link
Kindly see: https://jsfiddle.net/chrzrdx/krrczkx5/
Steps to reproduce
Cycle through the questions by using the prev, next buttons.
What is Expected?
v-model should set the radio buttons to checked.
What is actually happening?
while the v-model is in sync with the field storing the value of the set radio button, sometimes certain radio buttons render with unchecked, when actually, the field bound to v-model is showing that the value is present (i.e. the radio button should render as checked)
Text of the question as posted on stackoverflow/vuejs forums
This is on vue 2.1.4
I have a questions array in my vue.data, and I'm cycling through them every time the next or prev button is pressed. I store the id of the active question, and compute the active question from there. I am using v-model on the radio button to store the state in the active question's selected property.
The questions already have a default value (selected initially contains the value of the default option). But some radio buttons display as unchecked even though the selected field of the current (active) question is set.
The issue persists even if there are no default values in selected, and the user clicks each button herself.

Hi, thanks for filling this issue. This is caused by vue's dom patching strategy. As described in the docs (https://vuejs.org/v2/guide/list.html#key):

This default mode is efficient, but only suitable when your list render output does not rely on child component state or temporary DOM state (e.g. form input values).

So, you can simply fix it by adding a key attribute to each element:
https://jsfiddle.net/gowfxayt/
And also,

It is recommended to provide a key with v-for whenever possible, unless the iterated DOM content is simple, or you are intentionally relying on the default behavior for performance gains.

source: gharchive/issue

authors: chrzrdx fnlctrl

repo: vuejs/vue

license: MIT

license_type: permissive

license_source: github-api


text:
Slot emit does not go up to the component

Hi,
I rencently got into VueJS so if my question is dumb, please excuse me.
But as I follow the doc and the example provided, I stumbled accros something not expected.
I wanted to an overlay, that actually is a component, with a slot to replace main part.
Mostly like the one provided in the example (https://vuejs.org/v2/examples/modal.html)
My bug is that, in this example there is close button, that $emit('close') on the slot="footer"
It works as intended but when we replace the slot with our footer and put another button that will also trigger $emit('close') the event is not passed back to the component.
Which is not very handy.
I presume it's a bug, otherwise the demo would be very missleading.
I provided you the reproduction link (which is just a copy paste from the example with the overrided button)
Thanks a lot for everything :)
Vue.js version
2.1.6
Reproduction Link
https://jsfiddle.net/mwLbw11k/276/
Steps to reproduce

Run
Click on button
nothing happen

What is Expected?

Run
Click on button
Overlay close

What is actually happening?

The event is not triggered or not passed to the component.

It's not a bug.  You have a misunderstanding about the compilation scope of sclots. Please read this:
https://vuejs.org/v2/guide/components.html#Compilation-Scope
Your corected example:
https://jsfiddle.net/Linusborg/mwLbw11k/277/
Please visit the forum for further support.

Many thanks for quick answer,
I understand your point and how slot are compiled,
however I find this behaviour not predictable, especially the way it's presented in the example.
It let us believe we can override and keep the same behaviour
If I can correct my initial question:

Slot with default content will trigger and call the method in the component correctly
Overrided slot will trigger and call the method in parent of the component
It's not ideal as it break the context separation
Again, I may be missleading somewhere, I'm not assuming it's a bug.
And I could also use the event bus but again it send an event in the wild with everything else,
while the component could handle it directly.

<script type="text/x-template" id="modal">
  <slot name="footer">
   <button class="modal-default-button" @click="close">
   Override: Default will call App.modal::close();
   </button>
  </slot>
</script>

<modal>
  <div slot="footer">
   <button class="modal-default-button" @click="close">
    Override: Default will call App::close();
    </button>
  </div>
</modal>

Direct examples: https://jsfiddle.net/mwLbw11k/279/
There is probably a better solution that I could think of.
Thanks again :)

I dont see how it is confusing.
Slot defaults are defined in the child, so their directives run in the scope of the child.
Slot content is defined in the parent, so its directives run in the scope of the parent.
Of you want to pass a template to the child that the child can run in its own scope, look at "scoped slots" in the docs.

authors: LinusBorg bodinsamuel


text:
vue create project error

Version
2.5.16
Reproduction link
http://www
Steps to reproduce
vue init webpack a
What is expected?
module.js:549
throw err;
^
Error: Cannot find module 'rc'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\HP\AppData\Roaming\npm\node_modules\vue-cli\node_modules\get-proxy\index.js:2:12)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
What is actually happening?
create project fail

Perhaps this issue should be transferred to vue-cli, furthermore, please provide the version of vue-cli and your os, thanks!

Closed due to wrong repository and lack of necessary information.

BTW, it could be a network problem during initialization, based on my experience.

authors: pbaiyy sodatea ulivz


text:
ie下v-for使用在tr上时template无法使用index

Version
2.5.17
Reproduction link
https://codepen.io/zarte-the-bold/pen/qQpYYV
Steps to reproduce
ie上以下会报错，目前只发现table的tr这样写会出错。

                <template v-if="index == (list.length-1)">
                    {{item.name}}{{index}}	*****1
                </template>
                <template v-else>
                    {{item.name}}{{index}}==1
                </template>

What is expected?
根据index判断显示不同模板
What is actually happening?
[Vue warn]: Error in render: "ReferenceError: “index”未定义"
[object Error]{description: "“index”未定义", message: "“index”未定义", name: "ReferenceEr...", number: -2146823279, stack: "ReferenceEr..."}

ie几啊

ie几啊

11

This is probably because of the template tag (or other) which is stripped off by the IE inside of tables. It works well with a string template

authors: posva ysj16 zarte


text:
chore: remove computed cache:false option

As mentioned a while ago in another PR this option is deprecated in 2.x. If the maintainers have reservations against merging this PR then I think that at least we should provide a warning when cache:false is used.
What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[x] Other, please describe: remove deprecated feature

Does this PR introduce a breaking change? (check one)

[x] Yes
[ ] No

If yes, please describe the impact and migration path for existing applications:
Caching invalidation of computed properties will stop working in applications that use this feature. But as explained in the migration guide these applications should use normal methods instead, which should have the same result.
The PR fulfills these requirements:

[x] It's submitted to the dev branch for v2.x (or to a previous version branch), not the master branch
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
[x] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

Why?

@LinusBorg My understanding is that this option is deprecated. The migration guide recommends using methods instead. Do you think a warning message is better than removing the option altogether?

“Deprecated” is different from “Removed” in the migration guide. Deprecated means it's still there but it's no longer recommended to use.

@Justineo Aha! That makes things clearer. Do you think this is deserving of a warning message then?

source: gharchive/pull-request

authors: HusamIbrahim Justineo LinusBorg


text:
Dark mode flashed  on fisrt and next load.

Bug report
Description

Firstly, thanks for the decent tool, helps a lot. But this problem is really annoying, and killing my eyes.
maybe this gif can be clear enough (the button I click means "refresh"):

Steps to reproduce

Set system to dark theme (win10 for me)
Open the document website, it flashed
Open it again or refresh, it flashed again

Reproduction link / repo:

https://v2.vuepress.vuejs.org/
Expected behavior
Darkmode should not flash, at least when I open it twice.
Screenshots
provided gif above.
Environment info

Browser: Chrome
Output of vuepress info: no need maybe? It can be reproduce with the official website.

A solution, maybe, we can simply remove the transition of the theme switching on page load, an it will become better?

I have the same problem

I'm pretty sure this is caused by backgroud-color transition
https://github.com/vuepress/vuepress-next/blob/main/packages/@vuepress/theme-default/src/client/styles/normalize.scss#L6

For those curious, you can fix this by providing your own templateDev and templateSSR files.
/docs/.vuepress/config.js:
const path = require('path');

module.exports = {
	templateDev: path.join(__dirname, 'templates', 'index.dev.html'),
	templateSSR: path.join(__dirname, 'templates', 'index.ssr.html'),
};

/docs/.vuepress/templates/index.dev.html:
<!DOCTYPE html>

/docs/.vuepress/templates/index.ssr.html:
<!DOCTYPE html>

Theme preferences are stored in localStorage as of vuepress@^2.0-beta.24 (9582b3b72c42b28f74484b55d88bc1fb2d8f56df)

I'm pretty sure this is caused by backgroud-color transition
https://github.com/vuepress/vuepress-next/blob/main/packages/@vuepress/theme-default/src/client/styles/normalize.scss#L6

This is mainly caused by the useDarkMode() composable handling the dark theme toggle, which is only called inside the ToggleDarkModeButton component setup method. The background-transition property makes it apparent, but it still happens and is noticable without it.

@Danktuary Yes, that's it.
Jest website does just the same thing:
https://jestjs.io/

For now, theme could not do anything to the template. I'm considering to allow themes overriding default templateDev and templateSSR 🤔

authors: Danktuary domnantas meteorlxy wxsms yinxulai

repo: vuepress/vuepress-next


text:
🛑 motards-en-voyage is down

In 78f7576, motards-en-voyage (https://motards-en-voyage.com//robots.txt) was down:

HTTP code: 0
Response time: 0 ms

Resolved: motards-en-voyage is back up in e856173.


text:
🛑 b.emdayo is down

In 30d3239, b.emdayo (https://b.emdayo.fr/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: b.emdayo is back up in 9625a45 after 4 hours, 58 minutes.


text:
Upgrade python and django version

Upgrade from python2 to python 3.7.
Upgrade Django from version 1 to 2.
Update requirements according to the Django version.

http://localhost:8000/2019-20/national/departments/basic-education/

the "department preview pages" - you can reach this by selecting a department in the national or provincial treemap and clicking "epxlore department"

http://localhost:8000/2019-20/focus/learning-and-culture - the endpoint is http://localhost:8000/json/2019-20/focus.json

Looks like the second treemap data on the homepage has an issue. The endpoint for its data is http://localhost:8000/json/2019-20/national/original.json

No format options available when uploading national infrastructure projects
From the README

Finally load the 2019-20 featured national infrastructure projects on the Infrastructure Project Parts admin page via the Import buton. Find the file to import at budgetportal/fixtures/infrastructure-projects-2019-20.csv.

please replace unicode with str
https://docs.djangoproject.com/en/1.11/topics/python3/#str-and-unicode-methods

Looks like national infra project upload doesn't work, now that I can select csv

Merged elsewhere

authors: ijharulislam jbothma

repo: vulekamali/datamanager


text:
acceptType is case sensitive

acceptType attribute is case sensitive, which is a bit bad user experience for users who upload files with extension JPG or PNG.
A quick fix is to include uppercase extensions, like
acceptType={['jpg', 'png', 'jpeg', 'JPG', 'PNG', 'JPEG']}

But extension comparison should be case insensitive by default and allow case sensitive checking by a boolean Prop like
acceptType={['jpg', 'png', 'jpeg']}
isCaseSensitive={true}

Let me know if this makes sense, I would love to contribute.

it was fixed by this PR https://github.com/vutoan266/react-images-uploading/pull/64

I'm closing the issue since it's been solved.


text:
Notifications API

https://notifications.spec.whatwg.org
Shipping in various stages in different browsers:

Chrome ships most of the spec, except some newer features like action buttons (there is an Intent to Ship for those).
Firefox ships most of the spec except the Service Worker API, for which it has an Intent to Ship.
Safari ships the older W3C version.
It is Under Consideration by Edge.

Discussed on call 11-November - assigned to 25th of November

Brief notes transcribed from Alex:

constructor is in docs, showNotification method in background context.  Event mode works in SW but not in documents? Growing set of notification types?  Icons and action buttons?  Multi res images/formats, notifications for ringing - more aggressive, need perms?  Large image formats?  List of items?  Line up Requireinteraction flag and background task API - overlap?

That's very brief indeed. Will there be a more detailed version? cc @slightlyoff

constructor is in docs, showNotification method in background context.

Correct. The constructor relies on events on the object, the lifetime of which cannot be guaranteed in a Service Worker. (Consider that notifications are able to to outlive the user agent.)

Event mode works in SW but not in documents?

What is "event mode"?

Growing set of notification types?
Large image formats?
List of items?

Yes, providing high fidelity integration with operating systems is a goal, especially when multiple OSes are able to provide a feature.
Large images: https://github.com/whatwg/notifications/issues/79
List of items: https://github.com/whatwg/notifications/issues/21
Progress bars: https://github.com/whatwg/notifications/issues/17
Inline replies: https://github.com/whatwg/notifications/issues/68

Icons and action buttons?

Supported.

Multi res images/formats

https://github.com/whatwg/notifications/issues/28

notifications for ringing - more aggressive, need perms?

I recall this being mentioned somewhere, but can't find it. This indeed isn't addressed by the current spec (it'd be an immediate/high-priority mode). Two thoughts:

It's not uncommon for apps to focus their own window for such events, as opposed to showing a notification. This would definitely need a permission, but is likely out of scope for notifications.
The Android-like "peek-on-top" notifications are an application of priority. However, their presentation is a heuristic and it's not clear what sort of cross-platform support we'd be dealing with.

Line up Requireinteraction flag and background task API - overlap?

Unrelated I think? requireInteraction indicates that a toast should remain on-screen until the user interacts with it, in cases where that is significant (for example a calendar reminder).

Peter, apologies, that was transcribing a 40 second conversation between
Alex and I when I offered to take over the spec review. A proper review
will be posted when I get the chance to do it, hopefully this week.
On Tue, 2 Aug 2016 at 01:23, Peter Beverloo notifications@github.com
wrote:

That's very brief indeed. Will there be a more detailed version? cc
@slightlyoff https://github.com/slightlyoff
constructor is in docs, showNotification method in background context.
Correct. The constructor relies on events on the object, the lifetime of
which cannot be guaranteed in a Service Worker. (Consider that
notifications are able to to outlive the user agent.)
Event mode works in SW but not in documents?
What is "event mode"?
Growing set of notification types?
Large image formats?
List of items?
Yes, providing high fidelity integration with operating systems is a goal,
especially when multiple OSes are able to provide a feature.
Large images: whatwg/notifications#79
https://github.com/whatwg/notifications/issues/79
List of items: whatwg/notifications#21
https://github.com/whatwg/notifications/issues/21
Progress bars: whatwg/notifications#17
https://github.com/whatwg/notifications/issues/17
Inline replies: whatwg/notifications#68
https://github.com/whatwg/notifications/issues/68
Icons and action buttons?
Supported.
https://notifications.spec.whatwg.org/#dictdef-notificationaction
Multi res images/formats
whatwg/notifications#28
https://github.com/whatwg/notifications/issues/28
notifications for ringing - more aggressive, need perms?
I recall this being mentioned somewhere, but can't find it. This indeed
isn't addressed by the current spec (it'd be an immediate/high-priority
mode). Two thoughts:

It's not uncommon for apps to focus their own window for such
events, as opposed to showing a notification. This would definitely need a
permission, but is likely out of scope for notifications.
The Android-like "peek-on-top" notifications are an application of
priority. However, their presentation is a heuristic and it's not clear
what sort of cross-platform support we'd be dealing with.

Line up Requireinteraction flag and background task API - overlap?
Unrelated I think? requireInteraction indicates that a toast should
remain on-screen until the user interacts with it, in cases where that is
significant (for example a calendar reminder).
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/w3ctag/spec-reviews/issues/94#issuecomment-236630991,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABp63wUBTU45b9vAVmHn28KPELsGtJ4oks5qbh11gaJpZM4GcnSJ
.

OK, here's my review.  Do bear in mind that I'm a web developer, not a spec author, so may need some hand holding in places, sorry.
2.1

a couple of seconds

I'm unsure whether this is intended to be a required duration of exactly 2 seconds, or a recommendation of an approximate time, the exact duration to be left to the UA implementor.
This section uses should where it might be better to use must?
2.2

"default"
This is equivalent to "denied", but the user has made no explicit choice thus far.

Is it confusing to call these states equivalent?  There is a difference in terms of whether the notification will succeed, isn't there?
2.5

Then, in parallel:

The steps in this algo do not seem to be parallelisable to me, but I'm new to reading algorithm specs, so I may not understand the subtleties, apologies.
2.7
Is it necessary to have this much difference between the behaviour of persistent and non-persistent notifications?  For example, could the event name be notificationclick in both cases?
On a non-persistent notification, does the click event bubble?

Throughout the web platform "activate" is intentionally misnamed as "click".

Isn't this a bit revisionist? If not, why is the misnaming intentional?!
2.8
Can you clarify if/why it doesn't make sense for the closure of a non-persistent notification to trigger an event?
3.2
Could we make it possible to use the constructor within a service worker?  It seems like unnecessary work to make developers learn two different ways to use notifications.  Or conversely use showNotification in a document context?
I was surprised that simply constructing the notification shows it.  That seems inconsistent with things like CustomEvent, which is created and then triggered.
3.5.1
Since Notification implements EventTarget would not.addEventListener be a better pattern to show here?
3.5.2
Really clear and practical example here, thanks!
3.5.3
Is there a timeout or lifetime on tags?  What if I issue a second notification with the same tag after the first notification has been closed?  Would a new notification appear?
Considering Alex's points:

Different construct methods in different contexts: I agree, and included that point in my review above.
Event mode works in SW but not in documents?: I may not have captured this point properly. I couldn't find any problems with the availability of events other than the lack of a close event for non-persistent notifications.
Growing set of notification types? Icons and action buttons? Multi res images/formats, Large image formats? List of items?: I believe Alex is concerned about scope creep here.  I would have been concerned if each of these represented a fundamentally different notification, but if it is possible to use all these properties together as required, that just adds flexibility to the notification content, which sounds good to me.
notifications for ringing - more aggressive, need perms?: As Peter noted above, not currently captured - a way to handle real time, urgent state notifications with short (and potentially unpredictable) timeouts for action.
Line up Requireinteraction flag and background task API - overlap?: I failed to remember what this point was, apologies.  Alex may want to follow up here.

Growing set of notification types? Icons and action buttons? Multi res images/formats, Large image formats? List of items?: I believe Alex is concerned about scope creep here. I would have been concerned if each of these represented a fundamentally different notification, but if it is possible to use all these properties together as required, that just adds flexibility to the notification content, which sounds good to me.

This should consider the design and use cases of responsive images - that is, the selection algorithm (and the ability to discriminate on image type, density, etc.) should be supported, as per HTML's picture element (or a slightly simpler model). Otherwise, developers have to send unnecessarily large icons to their users.

@beverloo do you have any other follow-up on this review?

Sounds like we're all done here then.

authors: beverloo johnmellor marcoscaceres torgo triblondon


text:
create dairdrop application

Project Abstract
Decentralized airdrop application that does not require a centralized server, compatible with Mac, windows, Linux and web.
https://github.com/dota-network/Grants-Program/blob/master/applications/dairdrop.md
Grant level

[ ] Level 1:  Up to $10,000, 2 approvals
[2] 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 (Polkadot AssetHub (USDC & DOT) address in the application and bank details via email, if applicable).
[x] I understand that an agreed upon percentage of each milestone will be paid in vested DOT, to the Polkadot address listed in the application.
[x] I am aware that, in order to receive a grant, I (and the entity I represent) have to successfully complete a KYC/KYB check.
[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, thanks a lot for the application. It sounds very interesting and I also don't know about an existing solution that solves the issue of distributing airdops. I left a few comments and questions for you to review. Looking forward to your answers :)

Thank you very much for your outstanding work and responses. I'm very happy that we can discuss such applications together.

Hey, thanks a lot for the application. It sounds very interesting and I also don't know about an existing solution that solves the issue of distributing airdops. I left a few comments and questions for you to review. Looking forward to your answers :)

@PieWol, Thank you very much for your suggestions. I've updated the application accordingly. Regarding the desktop app issue, I agree that we should remove it, allowing us more time to focus on UX optimization and creating a product that is very user-friendly. However, our team is considering that community users are often non-technical and have diverse airdrop needs. Some may not want to provide a remote web service or might not know how to run a local program using Docker, which could impact community engagement and growth. If you have better suggestions, we are open to them. Our goal is to create an airdrop application that can be used in all scenarios.

Hey @jyaymusk
thanks for getting back to me this quickly. I noticed that some of my comments were not addressed. E.g. the pc-app is still mentioned in the features and deliverables. Looking forward to your replies and changes once again.

Hey @jyaymusk thanks for getting back to me this quickly. I noticed that some of my comments were not addressed. E.g. the pc-app is still mentioned in the features and deliverables. Looking forward to your replies and changes once again.

Thank you very much for your professionalism and patience. I hope my response addresses your questions.

Hey @jyaymusk thanks for getting back to me this quickly. I noticed that some of my comments were not addressed. E.g. the pc-app is still mentioned in the features and deliverables. Looking forward to your replies and changes once again.

I will update the application in a few days.

Hey @jyaymusk thanks for getting back to me this quickly. I noticed that some of my comments were not addressed. E.g. the pc-app is still mentioned in the features and deliverables. Looking forward to your replies and changes once again.

@PieWol,  I have updated the application. If there are any new questions, we would be very happy to discuss them with you and would appreciate your feedback. I will send you an email as soon as possible.  Enjoy your weekend!

Thank you very much for this proposal! A decentralized airdrop application is exactly what the Polkadot ecosystem needs, and at AIWeb3, we've been eagerly awaiting something like this for a long time. Do you think it could be integrated directly into our website? And when might this application be ready for use? Looking forward to seeing this in action!

Thank you very much for this proposal! A decentralized airdrop application is exactly what the Polkadot ecosystem needs, and at AIWeb3, we've been eagerly awaiting something like this for a long time. Do you think it could be integrated directly into our website? And when might this application be ready for use? Looking forward to seeing this in action!

@idfree  We hope to have it ready for use right after the launch of the Dota 2.0 network, which will still take about a month of development time. I'm very pleased that we share this common need, as it allows us to maintain it together in the future. Such an airdrop application will be very useful for community events, and in the future, we will only need to add a small code to create some gaming applications on Telegram or the web. If you have any better ideas, we can also consider adding more features. We envision that in the future, Polkadot airdrop creators will only need to select the network and connect their wallets on our webpage, and then simply click the Assets icon to quickly create or claim their airdrops. Imagine being able to create an airdrop for any Telegram or Discord group with just a click on a webpage. Isn't that cool?

Hey @jyaymusk , I have followed up on a few more comments. Feel free to start the KYC process already. I would also appreciate more in depth documentation about the concept of distributing airdrops. Anyways I'll share your application with the committee.

Hey @jyaymusk , I'm still looking forward to your email with information about your previous work. Did you send it already? I'd also be interested in how the chain you are trying to build will benefit the Polkadot ecosystem. It would be very compelling to know that you are planning to integrate with the remaining Polkadot ecosystem instead of building a completely isolated solo-chain.
Best,
Piet

Hi @jyaymusk, sorry for the long wait. Our legal team asked me to confirm that the grant is not about your own airdrop. Looking at the list of deliverables, I can see that this is the case, but would be great to have it confirmed from your side as well.
Lastly, could you shed some light on your parachain plans? There are mentions of a Dota "super-chain" in your repos, as well as a bridge. I also see DOTA mentioned as an appchain on Tanssi.

@PieWol @semuelle Here’s the translation:
Sorry for the delayed reply. I recently switched to a new computer and lost access to my Google Authenticator, but I’ve just resolved it. I will respond to the questions mentioned above in the next few days. Thank you again for your patience.

Hi @jyaymusk, sorry for the long wait. Our legal team asked me to confirm that the grant is not about your own airdrop. Looking at the list of deliverables, I can see that this is the case, but would be great to have it confirmed from your side as well.
Lastly, could you shed some light on your parachain plans? There are mentions of a Dota "super-chain" in your repos, as well as a bridge. I also see DOTA mentioned as an appchain on Tanssi.

@PieWol @semuelle
Sorry for the delayed reply. I recently switched to a new computer and lost access to my Google Authenticator, but I’ve just resolved it. I will respond to the questions mentioned above in the next few days. Thank you again for your patience.

Hi @jyaymusk, sorry for the long wait. Our legal team asked me to confirm that the grant is not about your own airdrop. Looking at the list of deliverables, I can see that this is the case, but would be great to have it confirmed from your side as well.
Lastly, could you shed some light on your parachain plans? There are mentions of a Dota "super-chain" in your repos, as well as a bridge. I also see DOTA mentioned as an appchain on Tanssi.

Hi @jyaymusk, sorry for the long wait. Our legal team asked me to confirm that the grant is not about your own airdrop. Looking at the list of deliverables, I can see that this is the case, but would be great to have it confirmed from your side as well.
Lastly, could you shed some light on your parachain plans? There are mentions of a Dota "super-chain" in your repos, as well as a bridge. I also see DOTA mentioned as an appchain on Tanssi.

Yes, the funds from this grant will not be used for airdrops to users but will be allocated to the development of the application. Currently, Polkadot’s technology is undergoing significant upgrades, such as the JAM upgrade. During this phase, we hope that Dota can run as an independent chain for a while. It is true that currently there is no one paying for the parachain costs, and getting started is always difficult. Despite this, parachains are highly attractive to us, and we still need them in the future to share security. This is an exciting project, fully supported by community developers with no involvement from VCs, and the developers themselves have not benefited financially from it—though it may sound unbelievable, it is indeed the case. We hope that such projects can develop long-term within the Polkadot ecosystem. It is a non-VC project within Polkadot, and as long as we stick to fairness and freedom, I believe it will succeed, just like similar projects in other public blockchain ecosystems. Passion for technology and a commitment to long-termism will ensure that it develops alongside the Polkadot ecosystem, surviving longer than most VC-backed projects. It is a pure technology-driven public chain, with only developers involved. In the future, Dota will serve as a platform for more radical technical experiments and community development explorations within Polkadot. A few months ago, there was a proposal to integrate Dota with Tanssi, as part of Tanssi, but I believe that with our experienced public chain engineers supporting its development, we don't need such a simple template that would limit our flexibility. Only in this way can Dota truly harness the advantages of Polkadot’s technology and endure longer.

Hi @jyaymusk, sorry for the long wait. Our legal team asked me to confirm that the grant is not about your own airdrop. Looking at the list of deliverables, I can see that this is the case, but would be great to have it confirmed from your side as well.
Lastly, could you shed some light on your parachain plans? There are mentions of a Dota "super-chain" in your repos, as well as a bridge. I also see DOTA mentioned as an appchain on Tanssi.

Yes, the funds from this grant will not be used for airdrops to users but will be allocated to the development of the application. Currently, Polkadot’s technology is undergoing significant upgrades, such as the JAM upgrade. During this phase, we hope that Dota can run as an independent chain for a while. It is true that currently there is no one paying for the parachain costs, and getting started is always difficult. Despite this, parachains are highly attractive to us, and we still need them in the future to share security. This is an exciting project, fully supported by community developers with no involvement from VCs, and the developers themselves have not benefited financially from it—though it may sound unbelievable, it is indeed the case. We hope that such projects can develop long-term within the Polkadot ecosystem. It is a non-VC project within Polkadot, and as long as we stick to fairness and freedom, I believe it will succeed, just like similar projects in other public blockchain ecosystems. Passion for technology and a commitment to long-termism will ensure that it develops alongside the Polkadot ecosystem, surviving longer than most VC-backed projects. It is a pure technology-driven public chain, with only developers involved. In the future, Dota will serve as a platform for more radical technical experiments and community development explorations within Polkadot. A few months ago, there was a proposal to integrate Dota with Tanssi, as part of Tanssi, but I believe that with our experienced public chain engineers supporting its development, we don't need such a simple template that would limit our flexibility. Only in this way can Dota truly harness the advantages of Polkadot’s technology and endure longer.

Hey @jyaymusk , I'm still looking forward to your email with information about your previous work. Did you send it already? I'd also be interested in how the chain you are trying to build will benefit the Polkadot ecosystem. It would be very compelling to know that you are planning to integrate with the remaining Polkadot ecosystem instead of building a completely isolated solo-chain.
Best, Piet

Sorry for the late reply. I recently purchased a new computer, which caused some important password information to be temporarily lost. I've been working on recovering it, but fortunately, everything has been resolved now. I'll reply to your email very soon.

Hey @jyaymusk , I'm still looking forward to your email with information about your previous work. Did you send it already? I'd also be interested in how the chain you are trying to build will benefit the Polkadot ecosystem. It would be very compelling to know that you are planning to integrate with the remaining Polkadot ecosystem instead of building a completely isolated solo-chain.
Best, Piet

Integrating into the Polkadot ecosystem is a necessary step. After running as an solo chain for a few months, we will use on-chain governance to allow the community to make a decision as soon as possible, and we are confident that it will receive support. The current plan is to first establish a solid technical foundation for the community, and then leverage the on-chain governance capabilities of the public chain to make more community decisions. We will not make decisions for everyone, as that would go against the principles of fairness and freedom that guide the community.

Hey @jyaymusk , I'm still looking forward to your email with information about your previous work. Did you send it already? I'd also be interested in how the chain you are trying to build will benefit the Polkadot ecosystem. It would be very compelling to know that you are planning to integrate with the remaining Polkadot ecosystem instead of building a completely isolated solo-chain.
Best, Piet

I have already sent you an email. Here is my email address: liny153537@gmail.com. Thank you again.

Hey @jyaymusk , I have followed up on a few more comments. Feel free to start the KYC process already. I would also appreciate more in depth documentation about the concept of distributing airdrops. Anyways I'll share your application with the committee.

KYC done.

Hey, @jyaymusk, could you please integrate this statement into the application? Thanks. Thats the last thing before I will approve :)

Yes, the funds from this grant will not be used for airdrops to users but will be allocated to the development of the application.

Hey, @jyaymusk, could you please integrate this statement into the application? Thanks. Thats the last thing before I will approve :)

Yes, the funds from this grant will not be used for airdrops to users but will be allocated to the development of the application.

@PieWol  Thanks! I will update it tomorrow.

Hey, @jyaymusk, could you please integrate this statement into the application? Thanks. Thats the last thing before I will approve :)

Yes, the funds from this grant will not be used for airdrops to users but will be allocated to the development of the application.

@PieWol https://github.com/dota-network/Grants-Program/commit/0cca5ba3bae6f40182e63ef93eee8dce1fc70d5b#diff-32d7ec5cbf9a6c029d9a1451ba87ef5a72f5d668520cd1a8426ec42bce541ba8R213.  Thank you for your thorough review of this application. My team and I sincerely appreciate it. Have a wonderful day, and Merry Christmas to you!

Thanks for your patience, @jyaymusk. I'm also happy to support the project, I just have some small requests.

@semuelle Thank you very much for your support and valuable suggestions. I will update it tomorrow.

Thanks for your patience, @jyaymusk. I'm also happy to support the project, I just have some small requests.

@semuelle Thank you very much for your support and valuable suggestions. I will update it tomorrow.

@semuelle I've updated it. If you have any better suggestions, please feel free to let me know. Thanks again!

authors: PieWol idfree jyaymusk


text:
In der Schlagbilanz steht in der Kategorie Stickstoff das chemische Kürzel für Kalium

Hallo Arnold,
In der Schlagbilanz gesamt (kleine und große Ansicht) wird im ersten Parameter " kg K2O" angeführt. Da sollte "kg Njw" bzw. "kg N" stehen.

LG
Simon

Danke, Copy & Paste - Fehler, korrigiere ich noch!

Ist korrigiert.

passt. Ich schließe das Issue.
LG
Simon

authors: arnold-pichler simonkriegnerschramml


text:
O(n^2)

Polygon.clip method has n^2 complexity.
Try https://en.wikipedia.org/wiki/Bentley–Ottmann_algorithm or linear quad tree(via Z code), as earcut do.

I have my eyes on a different one these days)) And Greiner-Hormann is just really beautiful.

I am only about moment of finding intersections. Not further operations.

You mean replacing the first stage of the algorithm with bentley-ottmann? There is a paper on this extension of the algorithm if I'm not mistaken. Could be done, but it doesn't solve the problem of degeneracies of this one. And all the attempts to solve it make the algorithm uglier. I will publish another one when I'm ready

To say the truth - bentley-ottmann is about self-intercections (btw – you do not handle them) and just about speed.
Anyway polygonal clipping in realtime is not a good idea.

self-intercections (btw – you do not handle them)

That's the best part about Greiner-Hormann - it handles them by default
But as I said, your suggestion is really good and can speed up that algorithm, another one I'm working on is using sweeping line + a variation of the graph-walking approach of GH

It works fine with two polygons. Not with one.
http://jsfiddle.net/93pszmph/

It use some variation of https://en.wikipedia.org/wiki/Weiler–Atherton_clipping_algorithm
Works simple – on intersection choose left or right (way). Left (cross(v1,v2)==sin) leads to outer contour and will join two poly. Right leads to xor.

for O(nlogn) algorithm look at https://github.com/w8r/martinez

license: mit

license_source: bigquery


text:
Upgradeable 구현 +

라리블 코드에서 오픈제플린이 제시하는 방법대로 프록시 디자인을 해둔 것을 확인하고, 이를 옮기면서 구조 파악을 한 정도입니다.
주석에 남겨두었듯이, 와플 컨트랙트 코드에는 initialize 함수를 통한 초기화 과정으로 변화하기 위한 최소한의 수정이 있었습니다.
이외에도 기능적으로 Rarible이 어떻게 구성되어 있는지 좀 더 알아보았는데, 추후 작업 이어나가면서 기여하겠습니다.

main과 .gitignore에서 컨플릭트나는것 고쳤습니다

repo: wafflestudio/smart-contract


text:
Add fetch helper functions and environment variables

The goal of this PR is to add some helper functions when fetching data over the API.
It also adds environment variables files for staging and production.

Thaks @jhancock532, I've replaced camelize with humps.

repo: wagtail/areweheadlessyet


text:
Add Layout component

This PR adds a layout component.
It's based on #7 because we need the SVG components here.

This PR only adds the component definition without using them on the home page which is why the preview seems wrong.


text:
Adding classname to StructBlock

Hi ,
I have a structblock as below:
 image = StructBlock([
        ('file', ImageChooserBlock()),
        ('caption', RichTextBlock( classname='caption'  )),

    ])

But on the frontend template {{item.value.caption}} produces a div with class 'rich-text'.
Am I missing something?
I am using wagtail 1.13 with django 1.11.6 ( python 3.6 )

Hi @burakk - please use the Wagtail tag on Stack Overflow for support queries.

authors: burakk gasman

repo: wagtail/wagtail


text:
🛑 cyconet.org is down

In 9c03f3d, cyconet.org (https://www.cyconet.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cyconet.org is back up in e6eda21 after 5 hours, 55 minutes.

repo: waja/cyconet-upptime


text:
The new update for intelliJ IDEs is causing some slight hanging

I just updated my Wakatime plugin in my set of Jetbrains IDEs and it causes the IDE to freeze for like a second or two as it updates the value on the new status bar icon you added for the plugin. Is there a way one can hide this icon from the status bar? Something like a setting? Otherwise, I believe there is a need for some optimization so that as it updates, there is no hanging.

Apologies. This should go to JetBrains Wakatime repository instead.

repo: wakatime/wakatime


text:
error on posix_getpid()

Hi, please help to solve this error !
PHP Fatal error:  Uncaught Error: Call to undefined function Workerman\posix_get                                                      pid() in /vendor/workerman/workerman/Worker.php:2081

Please install posix extension for php.

Thanks for reply, I can found posix were installed
php -m | grep posix
posix
my machine is synology linux based os, it there any conflict with this ?

okay, it works now... then, please guide me to save the received data to mysql, thanks !

authors: moscorp walkor

repo: walkor/Workerman


text:
wand on and wandb off fail with TypeError

I've set weights and biases off with wandb off, but coming back to it now I can't turn it back on. It seems I can't run any wandb commands from the CLI.
Setup:
Python 3.8.5
Ubuntu 20.04
wandb-0.10.7
In a conda environment with conda 4.9.0

Hey @SinclairHudson , thanks for reporting.
@raubitsj @vanpelt can you please take a look?

Hi Sinclair, could you share more about your environment setup? This is working properly for me, if you could share a backtrace then maybe we can figure this out

Ok. I did some more digging. If I run
conda create --name newEnv
conda activate newEnv
conda install wandb
wandb on

Then I get the error pictured above. However, if I instead install wandb with pip, pip3 install wandb, it works fine.
So the good news is that I'm unblocked, and I hope this can be a helpful clue. If you need any specific environment setup information, I'm still happy to provide it.

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: SinclairHudson cvphelps sydholl tyomhak

repo: wandb/client


text:
[Q] Is it possible to plot metrics where epochs is on the x-axis ( Training in mmDetection)?

Thanks for the awesome tool!!
I am training multiple models each with a different training dataset size. I want to evaluate each model's performance . At the moment I seem only to be able to plot step (iteration) on the x-axis. This is not ideal as the smaller datasets would train for fewer steps, see the screenshot below.
(This is due to the following formula num_itterations = (num_epochs*num_imgs_in_dataset)/batch_size. With the num_epochs and batch size remaining constant while the number of imgs in the dataset decreases, the number of iterations therefore decreasea)
I am using mmDetection and have not found a way to log the metrics per epoch and plot them in the Wandb UI.
Any help would be much appreciated.

Hi @David-Biggs,
Would you prefer to only log your metric every epoch or are you looking to change the way it is visualized in the UI?
If you would like to only log once per epoch, could you share your training script and I can help you with this?
The other option would be to change the scale in the UI using the expressions tab. For instance you could do something like the following:

This could be variable based on different steps per epoch if you saved steps_per_epoch in the config using an expression like this: _step/${config:steps_per_epoch}. Even if you didn't save this config setting when you created the run you have the option to update this using the public API.
Thank you,
Nate

Hi @nate-wandb , thanks for your reply.
I am hoping to log my metrics every epoch. I have runs which train for the same number of epochs but each run has a different number of steps per epoch. I am using sweeps and training in MMDetection.
Here is my training script:
def train():
----with wandb.init() as run:
--------wandbconfig = wandb.config
--------cfg.optimizer.lr = wandbconfig.learning_rate
--------cfg.optimizer.momentum = wandbconfig.momentum
--------cfg.data.samples_per_gpu = wandbconfig.batch_size
--------model = build_detector(cfg.model)
--------train_detector(model, datasets, cfg, distributed=False, validate=True)
I call train() within the agent wandb.agent(sweep_id, train)
Here is a screen shot of the output while training.

I have added  wandb to hooks.

I can change the print-out interval using this cfg.log_config.interval = 10
Thanks again for your help.
Regards,
David

Hi @nate-wandb ,
Just following on this.
Many thanks,
David

Hi Thanos,
Thanks for following up.
I've had a look the documentation. I see that EpochBasedRunner (by_epcoh) is by default set to True.
I have set with_step = False and by_epoch = True . However, the metrics are still being plotted with Steps on the x-axis and not epochs. Below is a screenshot of the training and val losses. All three models are trained for the same number of epochs.

Here is my WandbLoggerHook:

Hi @David-Biggs thank you for providing further information, it seems these options didn't do the trick. There is a way to define a custom step and log this as follows:
`# Define the custom x axis metric
wandb.define_metric("custom_step")
Define which metrics to plot against that x-axis
wandb.define_metric("validation/loss", step_metric='custom_step')
for i in range(10):
log_dict = {
"train/loss": 1/(i+1),
"custom_step": i**2,
"validation/loss": 1/(i+1)
}
wandb.log(log_dict)`
Or another way would be to do wandb.log({'loss': loss}, step=step)
Would any of these workarounds work for you?

Hi @David-Biggs I wanted to follow up on the issue you reported. Did any of the above suggestions resolve this? The other alternative would be that we file a feature request to MMCV.

HI @thanos-wandb ,
Thanks for following up.
I have not resolved the issue yet. I managed to find a messy workaround for now. I exported the data to a csv, and then plotted the mAP values in python. However, this does not resolve the issue for plotting the losses. They still appear per step.
Your last comment would need to appear somewhere within MMCV's training loop but I can't seem to find where to put it...
How would I go about filing a feature request to MMCV?

Thanks @David-Biggs for letting me know, I understand that this workaround isn't ideal. Indeed the code changes need to happen on MMCV side, but we will submit the pull request for you. I will keep you posted here on any updates.

Hi @David-Biggs following up on this, I have made a feature request to the engineering team for creating a PR to MMCV. In the meantime, it would help us to know if you tried the above workaround using define_metric. You could do something as follows:
wandb.define_metric("epoch")
wandb.define_metric("validation/loss", step_metric='epoch')
for i in range(10):
  log_dict = {
      "epoch": the_epoch_var_from_MMCV,
      "validation/loss": 1/(i+1)
  }
  wandb.log(log_dict)

Would this work for you?

authors: David-Biggs nate-wandb thanos-wandb


text:
Keras WandbCallback - Remove extra ops for flops calculation

Fixes WB-NNNN
Fixes #NNNN
Description
The FLOPs calculation is depending on convert_variables_to_constants_v2_as_graph which is not reliable. This PR adds the recommended way of getting graphs, as per this this section from TensorFlow docs.
Testing
How was this PR tested?
Checklist

Include reference to internal ticket "Fixes WB-NNNN" (and github issue "Fixes #NNNN" if applicable)

Hey @dmitryduev while trying to run the tests locally I am getting, I have started getting this error today: wandb.errors.CommError: Not implemented in tests/mock_server.py. I can see that the mock_server.py's path is tests/utils/mock_server.py. What should I do to quickly fix it?

@ayulockin probably things got out of sync for you? I'd try starting off a fresh branch cut from master and would just port this change there. The failures on the CI look real and suggest that certain tensors sometimes end up on different graphs, and what's worse, in a flaky way. Could you please look into that? I tried quickly repro'ing this locally (couldn't - works on my arm mac), so you may have to rerun the CI jobs with ssh and debug things on the worker. LMK if you assistance with that!

@ayulockin do you want to see this change in the upcoming release?
The test errors look scary enough to call for much more testing + I consider this as a high-risk change as it produces this kind of flake in a very widely-used codepath.

Hey, @dmitryduev, we can wait for this PR and test it further. The change I made was based on my local testing, and felt would not break the existing tests so severely. I am converting this to a draft for the time.

Hey @ayulockin, any updates on this PR?

Closing this PR as this is not required anymore in favor of #4310.

authors: ayulockin dmitryduev

repo: wandb/wandb


text:
chore(artifacts): add updateArtifact mutation to wandb-core code gen

Description

Fixes WB-NNNNN
Fixes #NNNN

What does the PR do? Include a concise description of the PR contents.

[ ] I updated CHANGELOG.md, or it's not applicable

Testing
How was this PR tested?

#7650  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bcsherma and the rest of your teammates on  Graphite


text:
Formatting table contents with variable table size

Hello! I'm really enjoying using this to convert some of my command-line tools to web-apps. While it is nice to make it so users don't have to go to the command-line, it would also be nice to give them a little bit more functionality.
One of my web-apps creates a table from a list of lists, that is formatted like such:
tasksList = [ [2012, hello, https://appurl], [2013, world, https://appurl] ]
The size of this list varies by a user based on the time range they would like to see data for. This isn't a problem if I'm just trying to output the list via put_table(tasksList, headers = ['Date','Title','URL']). The feature that I haven't been able to find is one that will allow the 'URL' column to be displayed as a URL, rather than text.
As an example if I just ran put_table(tasksList, headers = ['Date', 'Title', 'URL'] I would get something like:
|  Date  |  Title  |         URL   |
-------------------------------------
| 2012  |  hello  | https://appurl |

where the URL column contains URLs but they are just text. I've tried using put_link within the put_table but I haven't figured out how to use it when the size of the table is variable.
Again, enjoying the library. Thank you.

You can reformat tasksList before pass it to put_table():
for i in tasksList:
    i[-1] = put_link('link name', i[-1])


text:
V5版本怎么添加锚点呢？

问题描述
请输入遇到的问题...
wangEditor 版本
请输入内容……
是否查阅了文档 ？
（文档链接 doc.wangEditor.com ）
是/否
最小成本的复现步骤
（请告诉我们，如何最快的复现该问题？）

步骤一
步骤二
步骤三

请按照“建议增加新功能”这个 issue 模板，从新提交问题。


text:
表格不可以灵活的变动

就是表格的行列数不可以自由的变动

v2.x版本不支持，下一次大版本重构将加入，计划年底启动


text:
确实不是线性的，应该是二次函数

本人红米note4x参数设置的为1.4812发现重合度比较高，有时可以到中心。有圆点的到中心的机率比较大！

var n = new o.Vector3(t.nextBlock.obj.position.x - t.bottle.obj.position.x, 0, t.nextBlock.obj.position.z - t.bottle.obj.position.z)
t.direction = new o.Vector2(t.nextBlock.obj.position.x - t.bottle.obj.position.x, t.nextBlock.obj.position.z - t.bottle.obj.position.z)
t.bottle.jump(n.normalize())

跳一跳小程序源码中和跳动相关的部分代码，虽然压缩了，但是还是能看个大概的。
Vector3 和 Vector2 都是 three.js 的函数，
nextBlock 是跳转目标，bottle 是棋子，根据这两者的坐标，计算出方向及距离，
最后执行 jump 函数进行跳转，主要是完成一些动画

@F-loat 主要是看 checkHit2 函数吧，里面计算到 this.direction.setLength(bottle.velocity.vz * r) 的这个值相当于往上跳的距离

我也试了这个参数1.4812，但是效果不是很好。我git clone的最新版，会不会是其它的参数改动了。请问你测试的时候其它的参数是多少呢？可以一起晒一下么？ @sunnanphp

@sonnyhcl   有一个哥们晒了一个distance的一段代码，我用的他的，跳了有2000多。就在评论里，你找下

@F-loat 感谢分享，受教了

authors: DemoJameson F-loat sonnyhcl sunnanphp


text:
iOS脚本运行报错，能够正常访问到localhost:8100/status

请教一下这个怎么处理，已经能够访问localhost:8100/status 了，但是运行脚本就报错 iOS

python3 wechat_jump_iOS_py3.py
Traceback (most recent call last):
  File "wechat_jump_iOS_py3.py", line 15, in <module>
    s = c.session()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wda/__init__.py", line 252, in session
    sid = self.status()['sessionId']
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wda/__init__.py", line 191, in status
    res = self.http.get('status')
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wda/__init__.py", line 101, in fetch
    return self._fetch_no_alert(method, url, data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wda/__init__.py", line 107, in _fetch_no_alert
    return httpdo(target_url, method, data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wda/__init__.py", line 77, in httpdo
    retjson = response.json()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/models.py", line 892, in json
    return complexjson.loads(self.text, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

https://github.com/wangshub/wechat_jump_game/issues/99
@jacentsao 参考这个

authors: jacentsao wangshub


text:
running it as root, how dangerous is it? how easy to hack?

how easy to hack udp2raw system when running as root?
is it high chance that the routers to get compromised?
why don't you make it like openvpn and many people are using it as root? also other tunnel protocols as well..
For English speaking user：
https://github.com/wangyu-/UDPspeeder/wiki/Issue-Guide
中文用户请看：
https://github.com/wangyu-/UDPspeeder/wiki/发Issue前请看
(否则Issue可能被忽略，或被直接关掉)

https://github.com/wangyu-/udp2raw-tunnel/wiki/run-udp2raw-as-non-root

authors: seandex wangyu-


text:
'blsresult' key error

I just tried running the latest commit of astrobase and got the following error:

File "astrobase_search.py", line 207, in main
bls = >periodbase.bls_parallel_pfind(times,mags,errs,startp=pmin,endp=maximum_obs_length[obj],nphasebins=200,mintransitduration=.02,maxtransitduration=.55,nbestpeaks=3,sigclip=sigclipvalue,nworkers=njobs,verbose=False)
File >"/nfs/phs3/ar0/S/PROJ/jwallace/m4/vetting_signals/periodogram_snr_analysis/transit_inject/astrobase_aaa/periodbase/kbls.py", line 1011, in bls_parallel_pfind
verbose=verbose,
File >"/nfs/phs3/ar0/S/PROJ/jwallace/m4/vetting_signals/periodogram_snr_analysis/transit_inject/astrobase_aaa/periodbase/kbls.py", line 1422, in bls_stats_singleperiod
thistransdepth = blsres['blsresult']['transdepth']
KeyError: 'blsresult'

I thought this might be connected with yesterday's changes so I wanted to mention it here.

I think this happened because BLS failed on the light curve. The function didn't return a 'blsresult' key in this instance so the stats function also failed. Can you point me to the LC involved or send it over?

Yes, I see the "BLS failed!" messages now.
It's a script that runs just fine on my environment's version of astrobase
(v0.4.0).  When I switch over to a local directory with last night's most
recent commit of astrobase is when it starts failing.  It fails on the
first light curve, which makes me think it might fail on all.
I'll PM a link to the relevant files.
On Fri, Apr 12, 2019 at 10:57 AM Waqas Bhatti notifications@github.com
wrote:

I think this happened because BLS failed on the light curve. The function
didn't return a 'blsresult' key in this instance so the stats function also
failed. Can you point me to the LC involved or send it over?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/waqasbhatti/astrobase/issues/81#issuecomment-482605918,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE1UFk_97ousQuk0tjIjyqGeeyKmlXKEks5vgJ7EgaJpZM4csDf6
.

Things are working now with the commit, thanks!

authors: joshuawallace waqasbhatti

repo: waqasbhatti/astrobase


text:
Choppy smooth scrolling inside Constraint Layout with width="match_constraint" set

Hey im using the following layout and it feels horrible to scroll inside of it.
<com.warkiz.widget.IndicatorSeekBar
        android:id="@+id/timeVarianceSlider"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="4dp"
        android:layout_marginTop="4dp"
        android:layout_marginEnd="16dp"
        app:isb_indicator_color="@color/md_grey_800"
        app:isb_indicator_text_color="@color/md_white_1000"
        app:isb_indicator_text_size="14sp"
        app:isb_max="20"
        app:isb_min="0"
        app:isb_only_thumb_draggable="true"
        app:isb_progress="0"
        app:isb_progress_value_float="false"
        app:isb_seek_smoothly="true"
        app:isb_show_indicator="@android:color/transparent"
        app:isb_show_tick_marks_type="divider"
        app:isb_show_tick_texts="false"
        app:isb_thumb_adjust_auto="false"
        app:isb_thumb_color="@color/colorPrimary"
        app:isb_thumb_size="16dp"
        app:isb_ticks_count="7"
        app:isb_track_background_size="2dp"
        app:isb_track_progress_size="4dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="@+id/timeVarianceDivider"
        app:layout_constraintTop_toBottomOf="@+id/timeVarianceDivider" />

Am i doing something wrong or is the smooth scrolling broken inside constraint layouts with match_constraint set?

@MartB  Have you find any solution for this issue ?

Hey,
check #175 it helped with my issues, but im not sure if it works for everyone

authors: MartB sidkasundra

repo: warkiz/IndicatorSeekBar


text:
fix: change SwipeableViews import in UserDetails index file (#89)

Issue #89 📐

I cesardlinx have worked for #89

Guidelines 🔐
I accept the fact that I have followed the guidelines and have not copied the codes from around the internet

[x] Contribution Guidelines
[x] Code of Conduct

Issue to be closed 🛅

My pull request closes #89

Screenshots 📷
Here are the pictures of changes that I have made 🔽

Good catch! I fixed the crashing issues and removed that pagination as suggested


text:
A little ES6 love

I love this script. Thought I'd give back a little :)

Thank you @2hands10fingers for the kind words! But I think I can't accept this PR. This script is, well, mature. It might not have bells and whistles like ES6, Webpack or Parcel.js in it, but it works in even the oldest web browsers still in use.
Accepting this PR will bring zero benefits and would create the need to use a transpiler for those users who need to support old IE.

Understood! Have a good one

repo: warpech/sheetclip


text:
Lab reviews, UI minor improvement, AMP feeds

Description

Motivation and Context

How has this been tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

damn it. I used window.location in Feeds, but it is SSR so it doesn't get window. will be fixed in next commit

repo: wasedatime/wasedatime-web


text:
feat: Quickstart for SBOMs

Feature or Problem

TODO:

[ ] Publishing / Attaching to published components
[ ] Signing
[ ] Consuming externally
[ ] Providers

Related Issues

Release Information

Consumer Impact

Testing

Unit Test(s)

Acceptance or Integration

Manual Verification

Closing in favor of https://github.com/wasmCloud/wasmcloud.com/pull/665

repo: wasmCloud/wasmCloud


text:
目标宏的问题

/use 13
/use 14
/cleartarget [@target,dead]
/startattack

法师/术士/猎人带宝宝职业，目标选择宏：
/cleartarget [@target,dead]
/startattack
/petattack

repo: watano/NextActions


text:
odd context resetting problem and question

For a long time, I've been able to completely reset the bot's user context in my (botkit-based orchestration) app by performing this sequence of steps 1- saving an empty context object directly in (botkit) persistent storage and then 2- calling watsonMiddleware.interpret() on the message. However, I just noticed that this sequence failed to work properly in one occasion recently (that is, Watson continued the conversation with the user instead of starting one from scratch). Can you help me understand what could have gone wrong? (this bot is still using the older botkit/botkit-middleware-watson combo, although I'm working on a botkit4-based update,)
In addition, I'd like to understand whether this sequence of steps should be expected to work with the latest botkit and watsonMiddleware code or whether I should use something else instead.  I am aware of the 'sendToWatson' method, but I don't know whether it can be used to completely clear the user's context, which is the desired result (so that a new conversation can get started).

sendToWatson can't be used to clear the context, it takes contextDelta parameter which is merged with context object stored in storage.
updateContext method replaces entire context object, use it instead.

Ah, that's great to know @Naktibalda . Thanks for explaining that!. I'm curious though, would it still work to do the manual context clearing first (outside of Watson, just accessing botbuilder storage), and then calling watsonMiddleware.interpret() ?

I don't see any reason why it shouldn't work.

authors: Naktibalda pgoldweic


text:
Add support for iOS 8+

This pull request lowers the minimum supported version of iOS from 9.0 to 8.0.

I tested this PR with the "iPhone 4s (8.4)" simulator. All tests pass, with the exception of some failures that result from service changes (i.e. not iOS 8). The tests will be updated with #272, #318, and #371.

repo: watson-developer-cloud/ios-sdk


text:
Coding Convention

Coding Convention 을 작성하여 효율적인 코드 작성을 도모하고자 합니다.

훌륭합니다. 지속적인 업데이트 하도록 노력해봅시다. :+1:

authors: dalgos foundy


text:
No license?

There is no source code license? Is this project open source?
Also is this the code used to build https://play.google.com/store/apps/details?id=com.wavesplatform.wallet&hl=en ??

There IS source code license.
This project IS open source.
This code IS used to build official Android app you mentioned.

What license?

MIT license

Please add the LICENSE file to the project root directory.

License added. Thank you all

authors: ZaydelEduard br0x djpnewton ericelliott

repo: wavesplatform/WavesWallet-android


text:
Allow backgrounds to dictate their geometry

As discussed in #234, the background program should be able dictate where it would like to be drawn.
If it wants to drawn e.g below the title bar (which it can do so by querying it in D-Bus, hypothetically), then it can do that. It's the one dealing with the background image, it knows the correct thing to do.

This is outdated, and has been fixed.

repo: way-cooler/way-cooler


text:
How to confirm/decline trade offer with this lib?

can you give me example?

https://github.com/waylaidwanderer/PHP-SteamCommunity/blob/master/TradeOffers.php#L290-L323

authors: ThreadShakur waylaidwanderer

repo: waylaidwanderer/PHP-SteamCommunity


text:
[Bug] Game is partly cut off when navbar is shown

Hi,
on my phone I use a custom ROM with Android 11. Normally I use Navbar navigation (3 buttons), but with this the lower part of the game is cut off and only visible through scrolling.
If I enable gesture based navigation (aka full screen mode) it works as expected.
So I guess there is a problem with scaling?!

I have tried my best to make it work for all devices. And I actually have a rooted device here that has the same problem. So I can test it. When I get some time I'll have a look at this.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: RAPXT @.>
Sent: Sunday, October 20, 2024 12:40:05 PM
To: wbpxre150/unjumble @.>
Cc: Subscribed @.***>
Subject: [wbpxre150/unjumble] [Bug] Game is partly cut off when navbar is shown (Issue #1)
Hi,
on my phone I use a custom ROM with Android 11. Normally I use Navbar navigation (3 buttons), but with this the lower part of the game is cut off and only visible through scrolling.
If I enable gesture based navigation (aka full screen mode) it works as expected.
So I guess there is a problem with scaling?!
Screenshot_20241020-062214238.jpg (view on web)https://github.com/user-attachments/assets/b4731a4a-a32e-4b87-8339-ab8beada0f2a
—
Reply to this email directly, view it on GitHubhttps://github.com/wbpxre150/unjumble/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYCC2L5ZKCJEOIZCWWZFMETZ4MX2LAVCNFSM6AAAAABQIEIIXGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4TSOJXGI3TOMI.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


text:
Chore use offical redux typing

@wbuchwalter @bennett000 redux 3.4 has official typings along with it now. Think the wrapActionCreators probably needs a  little more work though

@wbuchwalter @bennett000 - moving towards using the official redux types + tests for the observable store, and so I could use some of the fakeAsync to make RxJs testing easier, move from mocha to jasmine to use the angular2 testing utilities. Still a work in progress.

Awesome work guys!
Glad to see so much progress 🎉

@wbuchwalter @bennett000 - thinking this is getting close to a point of being mergeable - will squash/clean up the commits as I have quite a bit of noisy 'wip' things in here.
Simplified the provide a bit, and also made it so we didn't need to have both connect.ts and ng-redux.ts - realized ng-redux.ts had lots that was just re-exposing the connect, and didn't seem to make sense to have two separate classes.

closing this pr, submitting another one with a cleaned up commit history - didn't want to squash this branch just so I could have some reference points for myself in the future.

authors: e-schultz wbuchwalter


text:
No es un problema, es una solicitud.

Hola buenas tardes, actualice mi corebook a monterey 12.6 y todo ok, veo que hay actualizaciones en diferentes kext y en la version del opencore, estas considerando actualizarlos?.
Agradezco tu respuesta.
Saludos.

Y, I will update EFI before Apple release macOS Ventura.

Excelente noticia, estaré al pendiente.

updated  :)


text:
Question about using LSTM model in watch_phone_pocket version

Hi, I've read your paper in IROS 2023, and I thought it would be great to apply this method in tele-operating robots. I'm glad that your paper including further developed thesis has been submitted to ICRA 2024, and I'll read it.
Thanks for the kind and well-written code you've provided. I'm working with the watch_phone_pocket version since my watch cannot connect to the UDP socket in the watch_only version. I'm dealing with it.
What I'm wondering about is why there's no results.json for the WatchPhonePocketNN class. I found out that there's a checkpoint for watch_phone_pocket, a variable WATCH_PHONE_POCKET = "7ffa..." in deploy_models.py, and a WatchPhonePocketNN() class in watch_phone_pocket_nn.py.
But despite these data and structures, the main code in watch_phone_pocket.py uses the WatchPhonePocketKalman() class. Without the results.json file, I realized that I cannot load this model because the load_deployed_model_from_hash() function in models.py requires the results.json file.
Is there any reason for this? Does using the Kalman filter perform better than the LSTM model?

Hi, thanks so much for reaching out and sorry for the delayed reply.

Re watch_only and UDP: You have probably considered this but I'll just put this here in case. If the watch is connected to any phone via bluetooth, the phone somehow blocks the UDP messages. I could only connect to the watch when it is really fully by itself, without a phone connected in any way.

Re results.json for WatchPhonePocketNN Thanks for pointing this out. There should definitely be a results.json in the "7ffa..." folder. I'm currently out of office for ICRA24. As soon as I'm back, I will submit the json.

Re phone_pocket with Kalman The structures for the WatchPhonePocketNN are in place for legacy reasons and we found that the Kalman model performs much better. This is actually the story of our ICRA paper  and I recommend sticking to the script that uses the Kalman model. Loading the Kalman model does not require a results.json because it is structurally so different. It has its own class.

I will be back in June and make sure to provide the legacy pocket LSTM that you can load with the load_deployed_model_from_hash() method.  Let me know if there are more questions or any other issues!

Thanks for your kind reply.
For watch_only and UDP, I found out that there was a problem with my WiFi, so I solved that problem. Now watch_only.py is working very well. I confirmed that the performance of the Kalman model is also good, and I have had some success in controlling the robot using the results from watch_phone_pocket.py.
It is very interesting that the Kalman model performs better than the LSTM, which could become the story for the ICRA paper. I will read the ICRA paper, and I hope to hear good news in June.
Once again, thank you for your kind reply.

Hi EndeavoringYoon,
Just writing to let you know that I updated the legacy LSTM script and you should be able to compare the Kalman and LSTM approach yourself if you would like to.
You can test the LSTM with this script watch_phone_pocket_lstm.py

Thank you so much for uploading the file and for personally notifying me. I really appreciate your kindness and timely assistance.
I'll check the file and let you know if I have any further questions.
Thanks again for your support!

authors: EndeavoringYoon faweigend


text:
Cannot install with React 0.14 beta

Right now the dependency is set up very strictly (react@~0.12.0 || ~0.13.0). Are there any breaking changes in 0.14 that conflict with react-responsive?

No but that's the problem. React is not above a stable range, so normal semver rules don't apply. Every time react updates the whole ecosystem of packages has to update their dependencies manually and push a new update. It's a total shitshow, with tons of modules still being set to 0.12, some having it as a dependency and not a peerDependency. Really disappointed with this situation. For now, I'll just set it to * so I can quit wasting time updating package.json files

Alright. And yeah, I feel your pain. I guess it is best -for now- to not limit it to any version. Thanks for taking the time to explain it (and maybe it helped you to vent a bit of your frustration ;-)).

@laurentvd New version is up though

authors: contra laurentvd

repo: wearefractal/react-responsive


text:
gitpod.io

I created a .yml file.
Try it out here: https://gitpod.io/#github.com/weaversa/cryptol-course
We should add the VS Code extensions and update the installation instructions. I think this will be the preferred way to take the course. It's so easy!
Thoughts?

I added the pdf extension, had the README file open automatically, and started Cryptol (with some help text) in the terminal.

I'm a heavy gitpod user esp. for cryptol dev so it was quite nice to see it included here!

repo: weaversa/cryptol-course


text:
Affinity rules with app.kubernetes.io/name labels

If I have a deployment that has this affinity rule:
  requiredDuringSchedulingIgnoredDuringExecution:
  - labelSelector:
      matchExpressions:
      - key: app.kubernetes.io/name
        operator: In
        values:
        - my-awesome-pod
    topologyKey: kubernetes.io/hostname

Flagger does not modify that value to include -primary when it updates the primary deployment. So the affinity rule only applies to the canaried deployment. Alternatively, I can also update the rule to include -primary in it. In this case, the rules only apply to the primary and not the canaried deployment.
I've thought about utilizing a different label, one that would be the same across both the canary and the primary.
The downside here is that if I have 10 pods in the deployment, it would require me to temporarily have 20 nodes because of the topologyKey since I would have 10 canaried pods and 10 primary pods.
What I'm really looking for is a way to set up something like this:
node1: my-awesome-pod, my-awesome-pod-primary
node2: my-awesome-pod, my-awesome-pod-primary
node3: my-awesome-pod, my-awesome-pod-primary

instead of:
node1: my-awesome-pod, my-awesome-pod, my-awesome-pod-primary
node2: my-awesome-pod, my-awesome-pod-primary
node3: my-awesome-pod-primary

A suggestion would be to have Flagger parse affinity rules and add -primary to primary pods if the app.kubernetes.io/name key is found. But I wasn't sure if there was a better, simpler, way to do this.

I think Flagger could parse the rules, extract the ones that match the label selector (can be one of app, name, app.kubernetes.io/name or something else configured at startup with --selector-labels) and append the -primary to the value. The problem is that you can have more than one value, in this case Flagger should skip the replace and log that it did so.

authors: Apollorion stefanprodan

repo: weaveworks/flagger


text:
fix: don't use nil context in drain helper

This PR changes the drain Helper object we use for cordon/uncordon to include a bog standard background context object. We've observed in future versions of the kubectl API that a nil context object results in a runtime panic in the execution flow of a cordon/uncordon.
For example, in v0.20.5 (the version of kubectl that kured currently uses) of the kubectl API the RunCordonOrUncordon function that kured depends upon uses the PatchOrReplace kubectl function under the hood:
https://github.com/kubernetes/kubectl/blob/v0.20.5/pkg/drain/default.go#L60
That's fine for now. But, in v0.21.4 RunCordonOrUncordon (whose function interface is unchanged) uses PatchOrReplaceWithContext under the hood, and expects the passed-in drain *Helper to have a valid context child property to pass into PatchOrReplaceWithContext. If we leave the child Ctx property empty in the drain *Helper object we pass to RunCordonOrUncordon, then unexpected runtime errors will occur.

Awesome, thanks!

authors: evrardjp jackfrancis

repo: weaveworks/kured


text:
Add a "semantic receiver path" to open scope with a certain details panel open

Allow the path to include a "fairly unique" name rather than nodeId.
e.g. http://host/scope#!/show/kube-controllers/default/kubernetes
Which will in turn have to load up the nodes in kube-controllers and find one w/ the name "default/kubernetes".

Is this a dup of #2030?

authors: foot rade

repo: weaveworks/scope


text:
Releases v2.1.0 and v2.1.1 brake with WEAVE_DOCKER_ARGS defined

What you expected to happen?
Expect weave launch to start weave.
What happened?
Weave does not start.
How to reproduce it?
# wget https://github.com/weaveworks/weave/releases/download/v2.1.1/weave
# chmod +x weave
# ./weave setup
# ./weave version
weave script 2.1.1
weave 2.1.1
# ./weave launch
582be657df402e11f2180c5f37bb1e538d675508fb4e374a8e91dc7922dbb816
# ./weave stop
# WEAVE_DOCKER_ARGS=--log-driver=json-file ./weave launch
unable to create container: API error (500): invalid reference format

Anything else we need to know?
The problem seems to be introduced with PR #3110 that implements #2957.
Although issue description clearly says:

... although we have suggested that users set WEAVE_DOCKER_ARGS to add arbitrary more [arguments to docker run] ...

the implementation lacks its support.
weaveutil expects image name just after list of supported arguments:
cmdUsage("run-container", `[options] <image> <cmd> [[<cmd-options>] <cmd-arg1> [<cmd-arg2> ...]]

but weave script injects WEAVE_DOCKER_ARGS just before image name.
This results in "Image": "--log-driver=json-file" being passed to docker API.

So this is an unannounced change to an undocumented feature.  Apologies for the inconvenience.
I don't think this is about the ordering of arguments - weaveutil run simply doesn't support what you tried, in any order.
If --log-driver support is something you particularly want you should file an issue requesting that, since we're never going to add all the docker flags in weaveutil run.  The end-game is to move all the logic from shell to Go at which point we won't need weaveutil.

authors: bboreham berlic

repo: weaveworks/weave


text:
Do not overwrite negLocal entries in the cache

#849 ported to master:

Do not overwrite negLocal entries in the cache
Unit tests

Why do we need a PR for this? It should just be a merge from 0.11 to master. That's how all other 0.11 changes have been handled.

The reason is because master and 0.11 are very different now, while cherry picking a commit with 26 lines of code and merging it in master is trivial...

did you try the merge?

No, but I've seen the output from git diff master 0.11...

That is irrelevant. There's only a problem if the code on master is substantially different in the area that has changed.

authors: inercia rade


text:
Environment is very slow due to playwright and inspect.stack()

I find the environment frustratingly slow, it takes around 10 seconds for a single step transition or just calling env.reset() once.
Profiling tells us

A most of the time is spend on fetch_page_accessibility_tree, more precisely self.get_bounding_client_rect:
https://github.com/web-arena-x/webarena/blob/main/browser_env/processors.py#L394-L396
and the root cause is playwright:
setattr(task, "__pw_stack__", inspect.stack())
setattr(task, "__pw_stack_trace__", traceback.extract_stack())

Note that this is called for EVERY node in the DOM tree, and very inefficient. Although it doesn't much make sense to me that stacktrace information needs to be used in playwright's sync_base API, have you run into this before? Would there be any workaround or known solution to make fetch_page_accessibility_tree more efficient?

Hi @wookayin, I wasn't able to reproduce the slowness from my end. I printed the time spent before and after env.step in this script and the output is:

Time taken: 4.67 seconds
Time taken: 3.58 seconds
Time taken: 3.39 seconds

Could it be a problem with the local machine? Feel free to follow up with more information.

Yes that script is also very slow. I don't think 4 seconds per environment step is a fast enough speed.
Can you please try the following?
$ pip install py-spy

$ py-spy record python scripts/collect_obs.py

You will be able to see some profiling results; if you can share that with me it'd be helpful. My guess is that given your timing information it's taking a lot of tome there too. I am attaching one for your reference; inspect.stack() takes most of the time in my environments.

Super sorry for the late reply. Here is the output from my end with playwright==1.32.1 and python==3.10.12`

So quite a lot of time is also spent on yours too, extracting the stack frame very redundantly with the exact same reason.

Although I am not experiencing significant slowness in terms of the wall-clock time (each fetch_accessibility_tree took 2 to 3 secs.), I will look into the problem.
Basically, the current implementation to get the bounding box of each element might comprise the observation rendering efficiency. Although this is so far the most accurate way to get the bounding box I can think of. If you have any ideas, feel free to follow up.
cc. @frankxu2004 Thoughts?

Hi @wookayin ! This is not a major blocker for us so we might not be able to spend a lot of time on it now, but we'd welcome a PR that makes things faster. Your approach seems reasonable.

Yes I agree with you and understand that! Thanks for your messages and help. If I can come up with some good workaround or improvements, I will be happy to contribute back.

authors: neubig shuyanzhou wookayin

repo: web-arena-x/webarena


text:
docs(main-doc): add missing LoaderData export

Summary
docs(main-doc): 导出 LoaderData 类型 检查代码高亮
Related Issue
N/A
Checklist

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

Thanks!


text:
docs: update client overlay default value

Summary
Related Links

Checklist

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

Does en doc need to be changed?

Does en doc need to be changed?

No need, the default value in the en doc is correct.


text:
[Feature]: Using lightning CSS as the default CSS minimizer

What problem does this feature solve?
Using lightning CSS as the default CSS minimizer, to improve the build performance and provide smaller CSS size.
https://github.com/parcel-bundler/lightningcss
What does the proposed API look like?

lightning CSS is built-in and the default.
cssnano is opt-in and will be a standalone plugin.

After discussion with @hardfist , Rsbuild will use the built-in CSS minimizer of Rspack by default (SWC now).
In the future, Rspack may integrate lightning CSS as the CSS minimizer by default.

repo: web-infra-dev/rsbuild


text:
[Feature]Projects based on rspack provide duplicate packages analysis capabilities

Projects based on rspack provide duplicate packages analysis capabilities, Is it necessary to move the logic of repeated package calculation to the outside?

mr:  #102

repo: web-infra-dev/rsdoctor


text:
ReferenceError: require is not defined

System Info
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Memory: 9.23 GB / 15.96 GB
Binaries:
Node: 16.17.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 7.30.3 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Edge: Chromium (114.0.1823.41)
Internet Explorer: 11.0.19041.3636
Details
use rspack 0.4.3,run this code in app.vue:
function test() {   if (typeof require !== "undefined" && typeof require.ensure === "function") {     console.log(1111);   } } test();
this code will compile to:
 function test() {         if ( true && typeof require.ensure === "function") console.log(1111);   }   test();
you will see error in browser:
ReferenceError: require is not defined.
I holp 'typeof require' will not change in runtime.
Reproduce link
No response
Reproduce Steps
run this code in rspack project:
function test() {   if (typeof require !== "undefined" && typeof require.ensure === "function") {     console.log(1111);   } } test();

I holp 'typeof require' will not change in runtime.

What is the behavior of Webpack?

I holp 'typeof require' will not change in runtime.

What is the behavior of Webpack?

function test() {\n  if (true) {\n    console.log(1111);\n  }\n}\ntest();

This is not bug.
Currently, it closely resembles Webpack and will ultimately be perfectly aligned with Webpack.

This is not bug.
Currently, it closely resembles Webpack and will ultimately be perfectly aligned with Webpack.
please take a closer look.
rspack does not compile “require.ensure”，but webpack has compiled  it to be true.

authors: bvanjoi inooNgt

repo: web-infra-dev/rspack


text:
[Regression] remoteEntry.js - performance overhead

Background:
I've made transitioned from react-scripts + craco to rsbuild / rspack.
During the transition I was taking different measurements to evaluate the improvements, where I ran into a bundle size regression.
We use dynamic remote modules import using module-federation and a version control be service.
Issue:
remoteEntry.js generated with rspack contains meta functions, which increase it's size by a factor:

file size [gzipped]: 5kb -> 27kb
lines of code: 564 -> 4603

I've been looking for details online, but couldn't find anything useful, not sure if related with MF1.5 or rspack itself.
Would appreciate if there's a way to keep to original size of these generated files.

That seems related to Module Federation, and there's already an issue about it: https://github.com/module-federation/core/issues/2579, and soon a fix with shareable runtime!

authors: markmssd poseneror


text:
[Bug]: error: invalid utf-8 sequence of 1 bytes from index xxx

System Info
System:
OS: macOS 14.5
CPU: (12) arm64 Apple M3 Pro
Memory: 138.08 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.3 - ~/.nvm/versions/node/v18.20.3/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v18.20.3/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v18.20.3/bin/npm
pnpm: 9.7.1 - ~/.yarn/bin/pnpm
Browsers:
Chrome: 129.0.6668.60
Safari: 17.5
npmPackages:
@rspack/cli: ^1.0.7 => 1.0.7
@rspack/core: ^1.0.7 => 1.0.7
Details
遇到了一个异常错误

src/bad.js 有非 utf8 字符，rspack buildin:swc-loader 不能处理，但是 webpack 或 swc-loader 是可以的。如果我只是在 vscode 里保存下这个文件（不做任何修改）后（src/good.js），buildin:swc-loader 也可以了。对比发现非 utf8 字符被 vscode 替换成了 "efbfbd"，即 替代字符 (U+FFFD)

希望 buildin:swc-loader 像 babel/swc 一样去兼容一下
复现代码：rspack-project.zip
Reproduce link
No response
Reproduce Steps

pnpm install
prpm run dev

### Tasks

Same for character ©

authors: cjnoname littleprincewdk


text:
12

Summary

Checklist

[ ] Tests updated (or not required).
[ ] Documentation updated (or not required).

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.14 out of 15 committers have signed the CLA.:white_check_mark: LingyuCoder:white_check_mark: SoonIter:white_check_mark: chenjiahan:white_check_mark: h-a-n-a:white_check_mark: leimonio:white_check_mark: Timeless0911:white_check_mark: ahabhgk:white_check_mark: shulaoda:white_check_mark: SyMind:white_check_mark: fi3ework:white_check_mark: AkatQuas:white_check_mark: JSerFeng:white_check_mark: 9aoy:white_check_mark: hardfist:x: JohnBenjamnHarnyYou have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant JohnBenjamnHarny


text:
refactor: chunk graph

Summary

Refactor chunk graph and support chunkGraph.getModuleChunksIterable()
Checklist

[ ] Tests updated (or not required).
[ ] Documentation updated (or not required).

!bench

!bench


text:
Issues with 0x00... prefixed addresses

Whe using to 0x00 prefixed addresses it'll return following error from GETH.
rlp: input string too short for common.Address, decoding into (types.DynamicFeeTx).To
I think that's the reason of recently introduced patch to remove leading 0's from strings. Seems that geth client can't decode addresses with 0's removed. So this seems to be in accordance with specification, but geth still can't read the data encoded according to specs when address is shorter than "normal".

patch to remove leading 0's from strings.

An address is not a string, it's a fixed-length (20) byte array.

So you say if the library im using is stripping 0-bytes from addresses it's not following the standard?

 switch ($encoding) {
            case 'hex':
            if (strpos($input, '0x') === 0) {
                $input = str_replace('0x', '', $input);
            }

This code gets triggered for address

Actually found your other comment, thanks

Thanks @slawomir-pryczek, I'll fix this asap.

I am currently facing this issue as well and am hopeful for a resolution.
Could the merging of the following PR potentially address this problem? If there is anything I can do to assist or expedite the process, I am more than willing to help.
https://github.com/web3p/rlp/pull/28

authors: holiman sc0Vu slawomir-pryczek yamadashy


text:
Term2 Wont install on OsX 10.10.1

///////////////////////////// ERROR START /////////////////////////////////////

pty.js@0.2.4 install /private/var/folders/7h/2jnjvkhx22gf43y1fbqlfp2w0000gn/T/apm-install-dir-11507-5645-1ixj025/node_modules/term2/node_modules/pty.js
node-gyp rebuild

CXX(target) Release/obj.target/pty/src/unix/pty.o
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/atom-term.js/0.0.55
npm http GET https://registry.npmjs.org/debounce/0.0.3
npm http GET https://registry.npmjs.org/keypather
npm http GET https://github.com/chjj/pty.js/archive/master.tar.gz
npm http 304 https://registry.npmjs.org/keypather
npm http 304 https://registry.npmjs.org/debounce/0.0.3
npm http 304 https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/atom-term.js/0.0.55
npm http 200 https://github.com/chjj/pty.js/archive/master.tar.gz
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/extend
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/extend
npm http 304 https://registry.npmjs.org/nan
2015-01-07 01:37:53.598 xcodebuild[5665:121653] [MT] PluginLoading: Required plug-in compatibility UUID C4A681B0-4A26-480E-93EC-1218098B9AA0 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
../src/unix/pty.cc:37:10: fatal error: '/usr/include/util.h' file not found
#include </usr/include/util.h>
^
1 error generated.
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/7h/2jnjvkhx22gf43y1fbqlfp2w0000gn/T/apm-install-dir-11507-5645-1ixj025/node_modules/term2/node_modules/pty.js
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore
npm ERR! pty.js@0.2.4 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pty.js@0.2.4 install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.0.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/sduy/.atom/.apmrc" "install" "/Users/sduy/.atom/.node-gyp/.atom/.apm/term2/0.9.4/package.tgz" "--target=0.18.0" "--arch=x64"
npm ERR! cwd /private/var/folders/7h/2jnjvkhx22gf43y1fbqlfp2w0000gn/T/apm-install-dir-11507-5645-1ixj025
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/7h/2jnjvkhx22gf43y1fbqlfp2w0000gn/T/apm-install-dir-11507-5645-1ixj025/npm-debug.log
npm ERR! not ok code 0
///////////////////////////// ERROR END /////////////////////////////////////
my Atom version is 0.165.0

+1

Ahh.  It worked after installing it globally.  amp install -g term2

+1

Install iTerm2(http://iterm2.com), Maybe it can help

Dup of #44

authors: MoOx SduyXD eranimo mosbrain


text:
Art: citadel/cathedral interior design

For the interior of this:

Current geometry:

Inspirations:

The main spire is incredibly tall. I feel like there should be some kind of verticality to it, and perhaps an iconic centerpiece in the middle, like a social 'bonfire'.
Ceiling could open up to allow light in from the sky.
I feel that for something with so much accentuation on the outside, it should have something at the very least visually impressive and important on the inside. As a player, you're going to see this huge tower and wonder why it's massive - what could possibly be in there?
I feel like this could work well as a meeting point, event location, things like that. A sprawling hub type location.
Warframe has large social hubs:

which house different factions, that influence parts of the area based on their own design. This could be something that could be iterated on later - perhaps portals or transport to different areas.

It could be a bit cheesy, but something iconographic like the ether symbol or webaverse logo built into some kind of statue could work.

Fixed some issues with the export with dreamco

Update: need to change the inside of the citadel, such as de-checkerboarding it. Looking for something a bit hogwarts inspired perhaps, different colors also.

authors: Vianvolaeus avaer madjin

repo: webaverse/app


text:
[Inventory] Make 2D UI look like 3D UI

We can largely copy over the styles; general rules:

Angles, not border radius
2 hues max
Invert color on panels
No thin lines
No shadows

https://github.com/webaverse/app/pull/135

pr merged

authors: ChrisEddy avaer