text:
Error: Unable to resolve module @shopify/react-native-skia from

react-native-echarts V1.0.0
node: 18.15.0
react: 18.1.0
expo: ~47.0.9
导入方式：
import SvgChart, {SVGRenderer} from '@wuba/react-native-echarts/svgChart'; import {SVGRenderer, SkiaChart} from '@wuba/react-native-echarts';
问题原因：刚开始发现svg形式在web上不能用，android可以，就在web开发上用了SkiaChart，skiaChart可以在web上成功运行，但在android报错Error: Unable to resolve module @shopify/react-native-skia from
根据https://shopify.github.io/react-native-skia/docs/getting-started/web执行了如下命令
expo install @shopify/react-native-skia
现在运行起来后报错，执行不了
`Error: Unable to resolve module ./debugger-ui/debuggerWorker.aca173c4 from D:\workspaces\xfa\one-app/.:
None of these files exist:

debugger-ui\debuggerWorker.aca173c4(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json)`

请问是什么原因导致的问题？

导入方式1：
import SvgChart, {SVGRenderer} from '@wuba/react-native-echarts/svgChart';

或
导入方式2：
import SkiaChart, {SVGRenderer} from '@wuba/react-native-echarts/skiaChart';

react-native:0.70.8

导入方式1：
import SvgChart, {SVGRenderer} from '@wuba/react-native-echarts/svgChart';

或 导入方式2：
import SkiaChart, {SVGRenderer} from '@wuba/react-native-echarts/skiaChart';

还是会报那个错，并且这样引入skiaChart后，web端也加载失败，会报这三个错误
`SVGRenderer.web.js:5 Uncaught Error: Module parse failed: Unexpected token (22:21)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|   // }
|   const initString = svg ? Skia.SVG.MakeFromString(svg) : undefined;

return initString ?? undefined;
| }
| function SkiaComponent(props, ref) {
at ./node_modules/@wuba/react-native-echarts/lib/module/skiaChart.js

index.js:1 ./node_modules/@wuba/react-native-echarts/lib/module/skiaChart.js 22:21
Module parse failed: Unexpected token (22:21)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|   // }
|   const initString = svg ? Skia.SVG.MakeFromString(svg) : undefined;

return initString ?? undefined;
| }
| function SkiaComponent(props, ref) {

Uncaught ReferenceError: process is not defined
`

web 目前支持在expo web 中运行

clone 该项目，进入 example 目录
运行 yarn start
输入 w 打开浏览器

其他自行搭建的环境没有验证过，需提供可复现demo。
或参考 react native web 的配置。
核心配置：
{
  resolve: {
    // This will only alias the exact import "react-native"
    alias: {
      'react-native$': 'react-native-web'
    },
    // If you're working on a multi-platform React Native app, web-specific
    // module implementations should be written in files using the extension
    // `.web.js`.
    extensions: [ '.web.js', '.js' ]
  }
}

authors: shmjiao zhiqingchen

repo: wuba/react-native-echarts


text:
feat: remove app/main from URL structure

Fixes ENG-701, ENG-703, ENG-704, ENG-705, ENG-706, ENG-730

feat: remove //main prefix from router and pb definition
chore(docs): update docs to reflect changes to WunderGraph protocol
chore(docs): update docs to reflect changes to WunderGraph protocol
fix: update code generation (#333)
feat: update URLs in testapps for new style
feat: remove //main prefix from router and pb definition
fix: update code generation (#333)
feat: drop Client applicationPath and associated properties
fix: port apollo-federation example to new URL/API
fix: update /auth0-oidc-authentication to new URL/API
fix: update caching example to new URL/API
fix: update cross-api-joins to new URL/API
fix: update faunadb-nextjs to new URL/API
fix: update fragments example to new URL/API
fix: update golang-client example to new URL/API
fix: update graphql-sse-subscriptions example to new URL/API
fix: update graphql-subscriptions-hooks example to new URL/API
fix: update graphql-ws-subscriptions example to new URL/API
fix: update graphql-yoga-sse-subscriptions example to new URL/API
fix: update hooks example to new URL/API
fix: update inject-bearer example to new URL/API
fix: update keycloak-oidc-authentication example to new URL/API
fix: update migrate-from-apollo example to new URL/API
fix: update nextjs example to new URL/API
fix: update nextjs-postgres-prisma to new URL/API
fix: update nextjs-swr example to new URL/API
fix: update rbac example to new URL/API
fix: upadte  schema-extension example to use new URL/API
fix: update simple example to new URL/API
fix: update webhooks example to new URL/API
fix: update URLs in README files for new style
fix: update publish-install-api to new URL/API
fix: update graphql-hasura-subscriptions to new URL/API
fix: permissions in graphql-apollo-subscriptions example
fix: update graphql-apollo-subscriptions example to new URL/API
fix: typo in graphql-apollo-subscriptions README
fix: update postgres example to new URL/API
fix: update nextjs-postgres-user-filters example to new URL/API
docs: fix old-style URLs in a couple of pages
feat: add redirect for old-style URLs

Did you also consider the wg templates in wunderctl?

Did you also consider the wg templates in wunderctl?

No, I didn't update those. I understand that those are going away as soon as the new create-wundergraph-app is merged.

No, I didn't update those. I understand that those are going away as soon as the new create-wundergraph-app is merged.

Yes, but then you need to coordinate with @JivusAyrus and only merge it after that.

No, I didn't update those. I understand that those are going away as soon as the new create-wundergraph-app is merged.

Yes, but then you need to coordinate with @JivusAyrus and only merge it after that.

No problem, I will wait for Suvij's PR to be merged.

source: gharchive/pull-request

authors: StarpTech fiam

repo: wundergraph/wundergraph

license_type: permissive

license_source: github-api


text:
Missing setup guide in root README.md

The readme currently contains some general purpose information and points to contributing and code of conduct but does not guide joining/contributing developers to the resources that help them setup their local version of the project, in this case referring to the README files in the frontend and backend directories.
Referencing these in the root README would avoid the hassle of searching through the directories manually to find the setup for the project.

Created branch for this issue and created an example of what the heading could/should look like.

source: gharchive/issue

repo: wwwdevcc/projects

license: MIT


text:
Allow the tool to accept multiple source files.

I would like the tool to handle programs, which are written in multiple files, eg. fsm.c and fsm.h.
Each of those can be passed as source files to be analysed. Clang LibTooling will create separate FrontendAction for each of them, which can be then written in its own source file.
For the header files will remain with unchanged names. The .c files will be renamed to .cl
I will  also need to change ParTeCL-Runtime to take the name of the generated kernel file as an argument. At the moment both tools default to test.cl.

Done: 2ae1ddfa57fdc770c120bf6fdb7170169c42d07c

repo: wyaneva/partecl-codegen


text:
如何获取采集到的每一帧的数据

大师兄，如果采用该项目做视频，相片采集，如何获取采集到的每一帧的数据呢？

demo都支持视频录制了， 你看看相关代码就知道了

我是希望拿到预览界面的每一帧的byte[]类型数据，然后对每一帧进行额外的处理，然后再录制。我应该在哪里去获取呢 ,是这里吗？
@Override
public void onDrawFrame(GL10 gl) {
    if (mSurfaceTexture == null || !cameraInstance().isPreviewing()) {
        //防止双缓冲情况下最后几帧抖动
        if (mFrameRecorder != null) {
            GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);
            GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
            mFrameRecorder.render(mDrawViewport.x, mDrawViewport.y, mDrawViewport.width,
                    mDrawViewport.height);
        }

        return;
    }

    mSurfaceTexture.updateTexImage();

    mSurfaceTexture.getTransformMatrix(_transformMatrix);
    mFrameRecorder.update(mTextureID, _transformMatrix);

    mFrameRecorder.runProc();

    GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);

    GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);

    GLES20.glEnable(GLES20.GL_BLEND);
    mFrameRecorder.render(mDrawViewport.x, mDrawViewport.y, mDrawViewport.width,
            mDrawViewport.height);
    GLES20.glDisable(GLES20.GL_BLEND);
}

数据是在这里拿到的：  https://github.com/wysaid/android-gpuimage-plus/blob/master/library/src/main/jni/interface/cgeFrameRecorder.cpp#L197

可以在Java层直接拿到吗

可以的， 后面加一个类似的接口吧

能不能麻烦您给展示下如何写呢？我是需要把帧的字节数组做一些处理，然后会返回一个纹理id，继续录制

authors: Hellozhongxin wysaid

repo: wysaid/android-gpuimage-plus

license: mit

license_source: bigquery


text:
NuGet package

I think Pickles should be installed via NuGet - let's create a NuGet package.
What do you think about the following features for it:

Downloads all the executables (Console, MsTest, NAnt). We could also go with one package for each
Downloads example files for each of the runners
Creates an powershell script that you can run from the PowerShell console in Visual Studio to run the features

So - what do you think? One package or several?

I think several packages might be the better option, at least initially.  I
can't see someone using more than one type of runner for a solution.  If
they do need more than one they can just add the package for the other
runner.
I really like the idea of a powershell script!  Can we create a
powershell module that calls the C# code directly rather than calling out
to the executable?  That would be really cool and help us integrate with
psake for a build tool.
A package of example files is a good start, maybe using the example project
you pointed me to earlier?
On Thu, Nov 17, 2011 at 2:29 PM, Marcus Hammarberg <
reply@reply.github.com

wrote:

I think Pickles should be installed via NuGet - let's create a NuGet
package.
What do you think about the following features for it:

Downloads all the executables (Console, MsTest, NAnt). We could also go
with one package for each
Downloads example files for each of the runners
Creates an powershell script that you can run from the PowerShell
console in Visual Studio to run the features

So - what do you think? One package or several?

Reply to this email directly or view it on GitHub:
https://github.com/x97mdr/pickles/issues/39

I was imagining that it would be a module that calls directly into the
Pickles code.  In my opinion modules that have external dependencies add
complexity unnecessary (Is the executable there? What do we do if its not?)
I think it's fairly easy to make a new modules from a C# assembly.  I had
found a detailed guide here:
http://blogs.msdn.com/b/saveenr/archive/2010/03/08/how-to-create-a-powershell-2-0-module-and-cmdlet-with-visual-studio-2010-screencast-included.aspx
.
I threw this into a new issue here:
https://github.com/x97mdr/pickles/issues/48
What would you like to see implemented next in Pickles?
On Mon, Dec 5, 2011 at 7:45 AM, Marcus Hammarberg <
reply@reply.github.com

wrote:

I have thought about the PowerShell version but have a hard time with it.
Part because I don't speak powershell but also I'm not sure on how we want
to run it.
Should it just be a powershell command that calls into the console-app? Or
should we call into the Pickles-core-dll?

Reply to this email directly or view it on GitHub:
https://github.com/x97mdr/pickles/issues/39#issuecomment-3016519


text:
Add FAQs section for temporal metadata

Description

Closes #336
Update NON_CF_TIME_UNITS static list to include singular version of units

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] My changes generate no new warnings
[x] Any dependent changes have been merged and published in downstream modules

If applicable:

[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass with my changes (locally and CI/CD build)
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] I have noted that this is a breaking change for a major release (fix or feature that would cause existing functionality to not work as expected)

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (6b6bd00) compared to base (c6587b8).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #383   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           13        13
  Lines         1242      1242
=========================================
  Hits          1242      1242

Impacted Files
Coverage Δ

xcdat/dataset.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter tomvothecoder

repo: xCDAT/xcdat


text:
Выгрузка и загрузка планов видов расчета в генераторе макета данных

В данный момент не реализована выгрузка из ИБ и загрузка планов видов расчета в обработке xddDataFixtureGen.

Уже выполнено, есть в ветке develop.
@asheichenko Проверишь?

authors: artbear asheichenko


text:
Command "Process all images in current note" does not obey folder location setting

Processed images are always dumped into vault root, regardless of plugin settings: Default Location is ignored, as is any Custom Location specified.
However, on paste of an image into note, the plugin does follow either setting specified above. Only when using the command, is the location always ignored.
Here are the settings used, and before and after using the command, where you can see the attachments folder path is stripped:

Hey, many thanks for checking out the plugin!
"Process all images in current note" can only convert, compress and resize images. It will not move images - that is by design for safety reasons.

Two questions:
if not moving them is by design, why does the plugin offer custom image destinations in settings? What are those overrides for?
if it’s not supposed to move them, why does it move all converted images out of attachments folder and into root? See screenshots above.

Output options in the Settings are for drop/paste. When they are added in this way, it is possible to detect all imaged immediately in 1 action (and then process them then and there), but when processing all images in the note/canvas/folder/subfolder is completely different. It involves various linking syntaxes, different file formats, plugins, and various sync options used by each user. Adding move option for every "custom'ly added" image into every individual users vault/note would be a disaster waiting to happen.

I see you are on the older Image Converter version, does the same happen on clean up-to-date version too? Currently I am unable to reproduce. Plugin shouldn't move when processing images in batches. I noticed you also use "shortest links" but in the example provided the image uses relative link. I tested it on both, and still couldn't reproduce. I see you also have Local Images Plus plugin enabled which also has option to move images, have you disabled those?

https://github.com/user-attachments/assets/d1ecd9ae-2724-4c1d-987c-29507737687a

I don't understand why various plugin actions have different rules. I think you should identify on the plugin settings page which commands the settings are valid for. Per your other point about moving: I'm not asking for it to move things, but to not move things out of the attachments folder and dump them into root. Perhaps it does this if there are other images of the same name? That would make some sense.

Sorry, new to Obsidian, did not know that they don't have auto update for plugins. Will update and try again and report back here, thank you! And thank you for the screenshare, I will make one too if I still see the issue, perhaps you can spot what I'm doing.

Your time is much appreciated, this plugin is super useful. I will do a github donation for it!

authors: brucetm xRyul

repo: xRyul/obsidian-image-converter


text:
_pickle.UnpicklingError: invalid load key, '\x00'.

Hello, I use python3.10 to execute "python run.py", but it has an error:
_pickle.UnpicklingError: invalid load key, '\x00'.

Use python 3.11

I'm on python3.11.8, if I use default parameters in run.py, I get "killed" or "Segmentation fault". If I reduce the numbers in run.py, I get this
_pickle.UnpicklingError: invalid load key, '\x00'.
error.

authors: bluevisor dinu7172 jiangix-paper


text:
Change cell background color in template

Issue Type (delete the irrelevant ones)

[x] Question

Specs
What version are you using?
2.18.1
Question
I would like to change the background-color of a column cell dynamically. Is there a way to do that in the table-row template? The only example available is for changing the font color of the cell span inside the
Thanks

@Hraph Did you found any solution for it. I am stuck on the same. I am trying to set color on the basis of data which i get from my api but haven't found anything to change colors of cells

@Hraph Did you found any solution for it. I am stuck on the same. I am trying to set color on the basis of data which i get from my api but haven't found anything to change colors of cells

I'm sorry but from what I remember of the project, I ended up abandoning the idea of changing the background color and using font color instead. Too bad @xaksis didn't respond to the issue.
I'll be happy to know how to do it. GL

@Hraph @rajatjain3571 this can be done with some basic CSS. Here's an example:
https://jsfiddle.net/aks9800/ou1cLpy8/
closing.

@xaksis Thanks a lot. It worked for me

authors: Hraph rajatjain3571 xaksis

repo: xaksis/vue-good-table


text:
clone 操作时可能触发 Too many requests

例子：
388/1207 Error in 1131|50410105: Too many requests. Waiting for 500 seconds to continue.

这是由于 Codeforces 对同一 IP 进行了访问限制，一段时间内最多能请求的次数不会太多，所以我就加了个等待 500 秒的时间，过了 500 秒会继续的，不必担心。

你还可以多次使用 clone 命令来进行增量更新。

解决办法可能就是弄一个 IP 池什么的。但是想想 clone 命令用的不会很频繁，所以就挂着这个命令给他跑几个小时就好了（提交个数像 tourist 那样多时大概就 2 个多小时）。

authors: hydingsy xalanq

repo: xalanq/cf-tool


text:
[BetterPickers] Update BetterPickers to NuGet

Added NuGet, licensing and improved the project files.

@bholmes Thanks for the fixes.

repo: xamarin/XamarinComponents


text:
功能改进建议：根据主题明暗改变侧边栏中的 social icon

希望可以通过将配置文件改成例如下面这样实现在明暗效果不一样的时候使用不同的 icon。因为目前如果使用同一个 icon，在白色模式下可能会看不见为暗黑模式设置的白色图标，而反之亦然。
footer:
  social:
    light:
      - icon: ''
        url: https://github.com/
    dark:
      - icon: ''
        url: https://github.com/

这种功能应当让SVG图标本身来完成，对于单色图标，可以设置stroke或者fill为currentColor，对于多色图标，可以根据prefers-color-scheme设置不同颜色，参见:
https://blog.tomayac.com/2019/09/21/prefers-color-scheme-in-svg-favicons-for-dark-mode-icons/
https://catalin.red/svg-favicon-light-dark-theme/

专业👍

repo: xaoxuu/hexo-theme-stellar


text:
Explicit cyclic foreign vars

Sorry to open up a new 'battleground' - the last thing that haunts me for now:
What do you, @benbovy,  think about the following idea, use case:
Let's say we have two processes A and B. A has a var x that is a foreign variable in B and B has a variable y that is  a foreign variable in A. Wont work because you can not derive the DAG in that case.
What if I annotate the foreign variable B.y in A with something like is_cyclic=True . That would mean:

I know this introduces a cycle but I don't care
Just ignore me, A.y, when building the process graph, the ordering
But please still draw the B -> y -> A relation in the visualization (maybe with a step - 1 label, dotted line...)
And when executing A just pass in for y whatever is there (would be a NaN in step = 0 if y is not inout in B or the value set in B.initialize

It just happens that we have a lot of these "cycles" but typically it is just the value from step time - 1. So only quasi-cyclic.

Could you provide a concrete example where such quasi-cyclic situation happens?
I wonder if you could refactor your problem into 3 processes A, B, C, or if user-defined process ordering in a Model (thus relaxing DAG constraints) would help here.
I think that foreign vars with something like is_cyclic=True would open a big can of worms. It is quite confusing and would complicate further xarray-simlab's internal logic for process sorting (it is already complex).

Could you provide a concrete example where such quasi-cyclic situation happens?
I wonder if you could refactor your problem into 3 processes A, B, C, or if user-defined process ordering in a Model (thus relaxing DAG constraints) would help here.
I think that foreign vars with something like is_cyclic=True would open a big can of worms. It is quite confusing and would complicate further xarray-simlab's internal logic for process sorting (it is already complex).

I think that foreign vars with something like is_cyclic=True would open a big can of worms. It is quite confusing and would complicate further xarray-simlab's internal logic for process sorting (it is already complex).

I don't know the internals but I thought - maybe naively - you could probably just ignore the variables with is_cyclic=True in the process ordering.

Could you provide a concrete example where such quasi-cyclic situation happens?

Fair enough
A - A process for a tree (here leaf) architecture - in practice all sorts of properties
B - Photosynthesis
C - Carbon allocation
A.leaf_area (out) --> B
B.assimilates (out) --> C
C.leaf_dry_matter (out) - - > A
In order to compute A.leaf_area A needs C.leaf_dry_matter from t-1 (or the initial value at t = 0). If there is a way to model that in xarray-simlab without cycle then I apologize for not having read the documentation more carefully or missing the obvious.
Of course we could just merge it all together in one process but that is where we come from and we would like to split it up in modules/processes.

I think that foreign vars with something like is_cyclic=True would open a big can of worms. It is quite confusing and would complicate further xarray-simlab's internal logic for process sorting (it is already complex).

I don't know the internals but I thought - maybe naively - you could probably just ignore the variables with is_cyclic=True in the process ordering.

Could you provide a concrete example where such quasi-cyclic situation happens?

Fair enough
A - A process for a tree (here leaf) architecture - in practice all sorts of properties
B - Photosynthesis
C - Carbon allocation
A.leaf_area (out) --> B
B.assimilates (out) --> C
C.leaf_dry_matter (out) - - > A
In order to compute A.leaf_area A needs C.leaf_dry_matter from t-1 (or the initial value at t = 0). If there is a way to model that in xarray-simlab without cycle then I apologize for not having read the documentation more carefully or missing the obvious.
Of course we could just merge it all together in one process but that is where we come from and we would like to split it up in modules/processes.

Would it be an option to declare C.leaf_dry_matter with intent='inout' and with some default value (i.e., some placeholder for the value at t = -1)? This way you could avoid the C -> A dependence thus remove cyclic dependencies.

Would it be an option to declare C.leaf_dry_matter with intent='inout' and with some default value (i.e., some placeholder for the value at t = -1)? This way you could avoid the C -> A dependence thus remove cyclic dependencies.

Ok, a fat apology
I forgot to mention that circular imports where in my way when I first tried to get it working ;) This time I tried a combination of xs.group in A (avoid explicit linking and circular import of C) and an 'inout' in C with the same group.
So, moving everything into groups plus 'inout' is a solution but I loose a bit on the side of your nice model visualization/inspection features since I obscure where the variable comes from. But that's worth it!
Thank you for your outstanding support!

Ok, a fat apology
I forgot to mention that circular imports where in my way when I first tried to get it working ;) This time I tried a combination of xs.group in A (avoid explicit linking and circular import of C) and an 'inout' in C with the same group.
So, moving everything into groups plus 'inout' is a solution but I loose a bit on the side of your nice model visualization/inspection features since I obscure where the variable comes from. But that's worth it!
Thank you for your outstanding support!

Ok, a fat apology

No worries at all!

Thank you for your outstanding support!

You're welcome!

Ok, a fat apology

No worries at all!

Thank you for your outstanding support!

You're welcome!

Sorry, need to bring this up again. I am still thinking about another way to get this "cyclic" dependencies working (this is indeed one of our three pain points apart from sparse and growing index variables):
I sketched a little prove of concept. Here is a notebook: https://github.com/jvail/xarray-simlab/blob/seemingly-cyclic/notebooks/seemingly_cyclic.ipynb
I am not entirely happy with the current work-around:
Declare an 'inout' rather than 'out' variable if you want to let previously run processes to use it) because it requires to deliver an input for each of them although initializing them in the initialize func would be sufficient; i.e. I can not just use intent 'out'.
Also, as far as I can see from the code where you compute the dependencies that you are filtering for 'out' variables to determine process deps and sorting. So simply allowing a "pseudo cyclic" variable with intent 'out' wont work because process ordering will be ambiguous. Therefore, I think, another property is required (for the sake of clarity I called it "seemingly_cyclic") to explicitly exclude this dependency from being evaluated.
It seems clear from my tests that if there is such a dependency the producer must declare a global name (or group - that's a bit confusing I have to say - a group is always global I guess) and the consumer use a global ref (group) in any case to avoid cycles at module import level. Therefore I added the property "seemingly_cyclic" only to "global_ref".
I also added a dashed arrow to the dot graph to visualize this dependency. I can not see why this might open a "pandora's box" and introduce chaos - but I may - most certainly - lack knowledge about the mechanics of your lib.
P.S.: I will try to make a suggestion for #163 as well but that one is really tricky - bear with me.

I kept playing a bit with this idea and tested if we could use it with xs.foreign as well. If we split it into base classes that implement the different aspects of a process I can get around the cyclic import issue and we could arrive at a pretty "plugable", modular model design (in our use case): i.e. just replace a process with some different math as long as it provides the same output.
https://github.com/jvail/xarray-simlab/blob/seemingly-cyclic/notebooks/seemingly_cyclic_foreign.ipynb

Thanks for sharing your notebooks, it gives a clear overview of the problem.
I admit that the 'inout' variable with a default value workaround is not ideal in the case where you just would use intialize. That said, conceptually it makes some sense IMO: in your example, I see b_v as a variable that pre-exists with some state before the simulation. If you need to set more advanced values as  default, you could use a factory (although I'm not sure that the takes_self=True option would work out of the box in xarray-simlab).
TBH, I'm reluctant to implement "pseudo cyclic" variables in xarray-simlab for the main reason that it breaks a fundamental concept of this framework, i.e., that the process workflow may be represented as DAG. Allowing one exception like this is opening the door to more exceptions, which may end up with something conceptually very hard to understand. It also adds a parameter to xs.variable, xs.global_ref, etc., which have already (too) many options. In your notebooks, you need to rely on either global_ref or foreign with some base process classes, which both IMO are not simpler workarounds than 'inout' variables with a default value.

TBH, I'm reluctant to implement "pseudo cyclic" variables in xarray-simlab

Sure, understood and accepted - wont bring it up again - however :) , out of curiosity...

for the main reason that it breaks a fundamental concept of this framework

I don't understand why it would break it because you have it already (global/group + 'inout'). I think such a change would just bring this option to the surface and improve it because an input is no longer required. Is there a fundamental difference between input_vars values and values set in initialize? Isn't it both just the state at step -1?

It also adds a parameter to xs.variable, xs.global_ref, etc., which have already (too) many options

No, no only to xs.global_ref and xs.foreign. Well, I could imagine to have an xs.cyclic(intent='in') instead ... But I admit, there are already quite a lot of different variables and options which could become even more confusing.

I don't understand why it would break it because you have it already (global/group + 'inout'). I think such a change would just bring this option to the surface and improve it because an input is no longer required. Is there a fundamental difference between input_vars values and values set in initialize? Isn't it both just the state at step -1?

Ah I see, you're right. Probably it's not clear enough that the value of a 'inout' variable declared in a process should be updated in a different simulation stage in that case (that was clear only in my mind so far :-) ).
An 'inout' variable declared in a process A and that is accessed by a  'in' group or global_ref declared in process B would not be affected by process ordering (i.e., either A -> B or B -> A is correct) as long as the value of this variable is not updated in A and read in B during the same simulation stage.
This implicit condition is a bit unfortunate, actually, and I don't see how we could properly inspect the process classes to check this condition when building a new model :-/.
Your suggestion of a "seemingly_cyclic" reference at least makes the intention a bit clearer, but it doesn't solve this implicit condition which still applies here. I'm not very comfortable with adding another way to allow this.

I'm not very comfortable with adding another way to allow this.

D'accord. Fair enough.

Ah I see, you're right. Probably it's not clear enough that the value of a 'inout' variable declared in a process should be updated in a different simulation stage in that case (that was clear only in my mind so far :-) ).
An 'inout' variable declared in a process A and that is accessed by a 'in' group or global_ref declared in process B would not be affected by process ordering (i.e., either A -> B or B -> A is correct) as long as the value of this variable is not updated in A and read in B during the same simulation stage.

Wow - that's subtle. A bit hard to follow, I find. I think you could put a bit more faith in the modeler who is supposed to know what he is doing. Nevertheless - I regard this as settled and remain quite now and hope you keep up your excellent work! :)

Nevertheless - I regard this as settled and remain quite now and hope you keep up your excellent work! :)

Thanks! Please continue to give helpful feedback, it's very much appreciated! In this case it made me realize that we can actually break the DAG in the current version!

Please continue to give helpful feedback, it's very much appreciated!

:) All right. Though no guarantees on the "helpfulness". Why not think about the DAG this way:
t1 A->B->C
^

\
t0 A->B->C
Taking the time dimension into consideration. If you then go from B to A the cycle disappears. It is just offset in time. The interpretation of the DAG might be too "flat", static. This is what actually happens with 'inout' - it is just not transparent in the visualization.

I remain a bit confused by this, I think there should be some clear documentation as to what is the best way to have this quasi-cyclic behaviour.
Like: what is the correct way to have a variable that is updated on every timestep?
In fastscape, this is done by refactoring : Surf2erode is the surface that all processes get their data from.
However, with multiple different processes that need to be updated (e.g. have this cyclic behaviour), this greatly increases the number of processes, just to implement updating a variable.
but the most simple way to work around this is basically the hack of changing some variable in the cycle from 'out' to 'inout'? and then make sure that that process:

is the only process that uses finalize_step for these variables
only assigns values to these variables in that step.

However, AFAIK this is not checked (and indeed I could assign values in the run_step in a cyclic case). One way would be to base the DAG on variables in the run_step, but this becomes really hairy (how do we know which variables are called in that step?)
Maybe this should be for the model designer, and proper documentation is just what is needed?

However, with multiple different processes that need to be updated (e.g. have this cyclic behaviour), this greatly increases the number of processes, just to implement updating a variable.

I agree this is a major limitation in xarray-simlab. I currently use other kinds of hacks in fastscape to circumvent this because computing all uplift and/or erosion processes from the topography at time t may not be the best / most stable solution compared to the chained application of those processes, one after another, each updating the topography. Also, I've never been 100% happy with how output snapshots are saved between run_step and finalize_step. It might be simpler to save it just after run_step is executed for the corresponding process and maybe get rid of finalize_step.
I think that the cleanest way to overcome this limitation would be to allow user-defined process ordering and relax some constraints on variable intent, e.g., allow 'inout' in multiple processes for the same variable.
This would be highly welcome, but this would require a big refactoring and design effort.
An open question is also how can we support both automated (any DAG) and user-defined (single-chain DAG) process ordering? Combining both approaches in the same model would be challenging, but I still like the possibility to just add a process to a model and let xarray-simlab figure out where it could be inserted in the DAG. That's very convenient when we want to extend a model "at the edges" (e.g., for fastscape adding processes that simulate limit conditions such as climate or tectonics).

I agree this is a major limitation in xarray-simlab. I currently use other kinds of hacks in fastscape to circumvent this because computing all uplift and/or erosion processes from the topography at time t may not be the best / most stable solution compared to the chained application of those processes, one after another, each updating the topography.

Aah, now that explains all the on_demand variables in fastscape?! :)

Also, I've never been 100% happy with how output snapshots are saved between run_step and finalize_step. It might be simpler to save them just after run_step is executed for their corresponding process and maybe get rid of finalize_step.

So, the conclusion here is that the finalize_step is actually not really necessary, since the order of calculation is determined from the DAG anyways? Or it is necessary because of parallel execution? and therefore, the inout variable will be calculated last, and it's value, when used will be from the beginning of the timestep.

I think that the cleanest way to overcome this limitation would be to allow user-defined process ordering and relax some constraints on variable intent, e.g., allow 'inout' in multiple processes for the same variable.
This would be highly welcome, but this would require a big refactoring and design effort.

Oof, that indeed sounds like a lot of work... Honestly, I think this limitation is already overcome with proper use of the inout intent right? Since that is currently the only place where the cycle is 'broken'. Having multiple 'inout' variables would also make the model very complex for the model maintainer I presume? Maybe, just allowing the intent of variables to be changed after process declaration can accomplish this? But then again, this requires proper documentation, because it is far from trivial from a user perspective.

An open question is also how can we support both automated (any DAG) and user-defined (single-chain DAG) process ordering? Combining both approaches in the same model would be challenging, but I still like the possibility to just add a process to a model and let xarray-simlab figure out where it could be inserted in the DAG. That's very convenient when we want to extend a model "at the edges" (e.g., for fastscape adding processes that simulate limit conditions such as climate or tectonics).

So this could also be accomplished by allowing changing intent of xs.variables, or allowing changing the location of the 'inout' intent? something like:
xs.change_inout_to_process(before_process, after_process)

That then puts the after_process last in the calculation chain.
hmm... on second thought, this may become more complicated. Also, I'm not sure if I completely understand what you want to accopmlish.. from looking at fastscape, it seems that you want to be able to change whether tectonics and erosion are done concurrently or simultaneously, and for that change the ordering in the graphs. This should be a (good) other issue I think?

On another note, I do really like what @jvail did with the dotted arrows. It may be nice to have references to an inout variable as input to another process indicated with a dotted arrow? possibly with an option for that, or as default when the show_only_variable is active?

I'm not sure if I completely understand what you want to accomplish

Current problem
Let me show a simple example:
@xs.process
class ProcessA:
    foo = xs.variable(intent='inout')

@xs.process
class ProcessB:
    foo = xs.foreign(ProcessA, 'foo', intent='in')

Currently it is possible to do:
model = xs.Model({'a': ProcessA, 'b': ProcessB})

Let's say that both a and b implement run_step and that we want to make sure that b.foo returns the value before it is updated in a. Unfortunately, we can't (*). A current workaround is to update the foo variable in a.finalize_step() that is run after b.run_step().
What we may also want to do:
@xs.process
class ProcessC:
    foo = xs.foreign(ProcessA, 'foo', intent='inout')

But this is not possible either: xs.foreign doesn't support intent='inout' (for the obvious reason that no process order can be determined from the variable intents unless it this order is explicitly defined by the user).
Proposal: user-defined dependencies
This could look like:
model = xs.Model(
    {'a': ProcessA, 'b': ProcessB, 'c': ProcessC},
    dependencies=[('a', 'b'), ('c', 'a')]
)

Where the dependencies argument here means that we explicitly want a be executed after b and c be executed after a (i.e., for each tuple: 1st item is the name of a process that depends on the process named by the 2nd item)
When we know the order of all processes in the model (here b -> a -> c), instead of specifying the whole chain of process dependencies as a list of 2-items tuples we could have the following options for more convenience (all these options have the same semantics than the code snippet here above):

a different syntax for the processes argument:

model = xs.Model([('b', ProcessB), ('a', ProcessA), ('c', ProcessC)])

a class method:

model = xs.Model.from_ordered_collection({'b': ProcessB, 'a': ProcessA, 'c': ProcessC})

a subclass of xs.Model (if we want to always have user-defined process order):

model = xs.SequentialModel({'b': ProcessB, 'a': ProcessA, 'c': ProcessC})

(*) actually, the example used here would just work with a dictionary for processes, but it's more an implementation detail so I'm not sure it's a good idea to rely on it. I'd prefer a more explicit API like:

model = xs.Model({'b': ProcessB, 'a': ProcessA, 'c': ProcessC}, dependencies='strict')

With user-defined dependencies, we could allow intent='inout' for foreign variables, and therefore update a variable successively in multiple processes during the same simulation stage. This would be a major improvement!
Unless one needs to clear some resources a each time step, we could get rid of finalize_step. Time-dependent output snapshots of a variable would then be saved just after the execution of run_step of its corresponding process. If we want to save the values of the same variable that is updated successively in different processes, we could just do:
xs.create_setup(
    model=model,
    clocks={'clock': ...},
    input_vars={'a__foo': ...},
    output_vars={'b__foo': 'clock', 'a__foo': 'clock', 'c__foo': 'clock'}
)

There's some potential challenges, though:

we need to return meaningful error messages when a variable with intent='inout' is used in multiple processes (with any intent) and when no explicit dependencies is given for such processes
we need to check that user-defined dependencies are consistent with the DAG defined from the intent of the variables defined in the model
it might not be straightforward to update the explicit dependencies when creating new models from existing ones using model.update_processes() and model.drop_processes()

Aah, now that explains all the on_demand variables in fastscape?! :)

Not exactly, on_demand variables are more for some model diagnostics (variables that are not useful in other processes but useful for post-processing, visualization, etc).
A better illustration is the SurfaceToErode process and the SurfaceAfterTectonics process that inherits form it. This creates additional arrays on the grid that could be avoided with user-defined process dependencies.

Great to see the discussion ongoing here. Just some observations while we are porting our model to simlab:

it would indeed be helpful if we could add e.g. a dotted line in case of an all-inout-var-process. Otherwise it sort of sits there like a dead-end with no successor (but it has one - in the next timestep ... :| )
I think adding a sort of 'ordering-hint' (as suggested) would be nice. I introduced an intent='out' variable to the  all-inout-var-process in order to force ordering (I needed it to run before another process that was consuming one of the 'inout' vars).

With user-defined dependencies, we could allow intent='inout' for foreign variables, and therefore update a variable successively in multiple processes during the same simulation stage. This would be a major improvement!

Not so sure about this. You could maybe create a new xs.shared variable. It seems very confusing that a xs.foreign can be changed in a consuming process. It might also be difficult to debug since it it can not be deduced anymore how the variable changed in each step because you might have several sub-steps now in a single model step. I think it is a good feature that xs.foreign are read-only outside the process.

dotted arrows
So I added an option show_inout_arrows in dot.py, that adds dotted arrows as in this example notebook (sorry it is not as concise).
Now it shows arrows by default, only in the most basic view. I also enhanced the inout look a bit for input variables.
the other discussion (which is not really the thread title)
this becaome a bit too long....

So I can for now see two examples, that would be solved by allowing the user to order processes:
having a chain of processes that are executed sequentially, in a user-defined order. -> xs.foreign(intent='inout')
As in Surf2Erode - SurfaceAfterTectonics in Fastscape. - solved now by subclassing. This also allows for completely different calculation
Basically the layout we have (arrows indicate calculation order, so as in the DAG):
Normal execution (tectonics (T) and erosion (E) calculated independently and added to topology)
      T->C
         ^
S2E ->E/

By subclassing, SurfaceToErode (S2E) no also determines tectonics before. enforced calculation order Erosion calculated after Tectonics.
T->S2E->E->C

this will also be solved in the following case, since elevation can be an inout variable, with the option_to_add_this_as_a_dependency_to_the_DAG set for erosion processes? However, this only solves for one process that can be put somewhere in a chain, whereas the suggestion by @benbovy of foreign vars with inout intent allows for any chain length Maybe, this is better served by another variable class, where the explicit intention is that multiple processes can update it at .
using an inout variable as input to another process, but enforcing it to be calculated first.
As suggested by @jvail  solved now by transferring that to an out variable. (in my notebook as otherclass) This has a drawback that it will introduce a lot of variables pretty quickly.
possible solution
@xs.process
class ProcessA:
    a_v = xs.variable(intent='inout')

@xs.process
class ProcessB
    a_v = xs.foreign(ProcessA, intent='in', option_to_add_this_dependency_to_the_DAG=True)

I think the benefit of this would be, that only the _get_process_dependecies has to be updated with a more enhanced algorithm that also checks for this option.

TL;DR
I made a proof-of-concept PR, that is exhibited in the example notebook.
Actually, both cases are basically the same, if an `inout` variable is declared, it does not have automatic dependencies.  Therefore, the user can add them. But to still allow for automatic dependency sorting, we use a dictionary such as:
`{'process_name__var_name':'dependent_process_name'}` for determining dependencies. Then, only the dependency for that variable is removed (so other processes can be dependencies as well). Strictly speaking, this is not really necessary, and this removing can actually made redundant when graph reduction is implemented #120
What now still can be implemented is the linear model, or a quicker syntax as @benbovy mentioned, that is then converted to the

What we may also want to do:
@xs.process
class ProcessC:
    foo = xs.foreign(ProcessA, 'foo', intent='inout')

But this is not possible either: xs.foreign doesn't support intent='inout' (for the obvious reason that no process order can be determined from the variable intents unless it this order is explicitly defined by the user).

This is implemented in #177, but as of now, it does not check if xs.foreign(intent='inout') variables have a dependency. This may need some more work.

* we need to return meaningful error messages when a variable with `intent='inout'` is used in multiple processes (with any intent) and when no explicit dependencies is given for such processes

Actually, this is even more subtle:
a normal variable with intent='inout' does not cause significant problems (assuming that it's calculation is last, except for explicit dependent variables).
However, for xs.foreign(intent='inout') variables, it all becomes quite complex. For example in the following configuration:
bad:
  in
  /
out->inout1->in
  \
  inout2->in

both inout1 and inout2 mutate the same variable, with unknown order of calculation. So we would have to ensure that all inout variables are chained linearly Also, AFAIK, the order of calculation in these cases is not known:
good:
out->inout1->inout2
 \     \       \
 in1   in2     in3

apart from implementation, how do we ensure even in the good case that in1 is used before inout1 (or even inout2) does its calculation and then mutates the variable? Because the DAG only ensures that processes are calculated after proper execution of the variables.
This would need some kind of lock in execution of xs.foreign(intent='inout') variables, or a DAG that becomes as complex as:
better:
out->inout1->inout2
 \   ^    \   ^ \
  \ /      \ /   \
  in1      in2   in3

where an inout variable depends on all input variables before that.
I  think this really complicates things, that should be solved in another PR possibly?

* we need to check that user-defined dependencies are consistent with the DAG defined from the intent of the variables defined in the model

Yes, in the current implementation, where the user specifies dependencies as a {'p_name__var_name':'dep_p_name'} dictionary. Now I'm stuck at getting the variable of dep_p from the key, or p_name__var_name

* it might not be straightforward to update the explicit dependencies when creating new models from existing ones using `model.update_processes()` and `model.drop_processes()`

I let the custom_dependencies be copied over (that should work). However, maybe write a function that filters for processes that are not in the model anymore...

if an inout variable is declared, it does not have automatic dependencies. Therefore, the user can add them.

Yes, exactly! The user must add them, unless in the two following cases where this isn't required:

the inout variable has no other reference in the model
the inout variable (resp. foreign) declared in process A has one reference (resp. is the only inout reference to an) out variable declared in process B. In this case I think it's ok to consider that out takes precedence over inout, i.e., B must be executed before A.

But to still allow for automatic dependency sorting, we use a dictionary such as: {'process_name__var_name':'dependent_process_name'} for determining dependencies.

I like the idea of using a dictionary for user-defined dependencies. We could even allow lists of process names as dict values.
However I don't understand why we need the variable name in dict keys. Could you expand on why you skip those variables when retrieving the process dependencies in #177 please?

I let the custom_dependencies be copied over (that should work). However, maybe write a function that filters for processes that are not in the model anymore...

I'm afraid this won't be enough for all cases. Suppose we have a model with a -> b -> c custom order and we want to create new_model = model.drop_processes('b'), then we need some logic so that new_model is built with the custom dependency ('c', 'a') that may not be explicitly stated in model.

You could maybe create a new xs.shared variable. It seems very confusing that a xs.foreign can be changed in a consuming process.

Hmm how xs.shared would be different than xs.foreign? It seems to me that there wouldn't be much difference to justify having two kinds of variables. xs.shared looks a bit confusing to me while xs.foreign makes it clear that the variable is declared in another process (declaration != value).

It might also be difficult to debug since it it can not be deduced anymore how the variable changed in each step because you might have several sub-steps now in a single model step.

This should not be harder to debug if we change how output variable snapshots are saved, like I suggest just before and/or after the execution of every process during the run_step stage and not anymore once between the run_step and finalize_step stages, so that we can save the values for each "sub-step" (i.e. process).

However I don't understand why we need the variable name in dict keys. Could you expand on why you skip those variables when retrieving the process dependencies in #177 please?

We need the variable name, since a process can depend on multiple other processes (with different variables). The variable name is used to create a dictionary of  skip_deps = {'p_name',key} that is then checked (and skipped if present) during normal dependency building.
I preferred this method over a {p_name:dep_p_name dictionary, because it also allows the dependency building that is already there.

However, normally during normal dependency building, A->C would be there, so we have to skip that dependency using skip_deps.

I don't think it's necessary to skip it. The topological algorithm will yield consistent process ordering with or without A->C. Also, I think it's better to keep both user-defined and automatically inferred dependencies instead of doing any graph "optimization" here, even though it results in more edges (dependencies).

The checking algortihm works now! (I added a transitive reduce, since it was easy) Both require a descendants/deps dict to work.   That would also be very useful in drawing the dotted arrows. @benbovy what are your thoughts on adding that to the model class?

* the `inout` variable has no other reference in the model

* the `inout` variable (resp. foreign) declared in process `A` has one reference (resp. is the only `inout` reference to an) `out` variable declared in process `B`. In this case I think it's ok to consider that `out` takes precedence over `inout`, i.e., `B` must be executed before `A`.

in fact, we never have to check for out variables, since they always come first. So we have two cases: inout variables with or without corresponding in variables.

I like the idea of using a dictionary for user-defined dependencies. We could even allow lists of process names as dict values.

done that, maybe a set is better? it needs one conversion less here, but maybe users are not as familiar with sets?

I'm afraid this won't be enough for all cases. Suppose we have a model with a -> b -> c custom order and we want to create new_model = model.drop_processes('b'), then we need some logic so that new_model is built with the custom dependency ('c', 'a') that may not be explicitly stated in model.

added that

Great! I commented on #177.

done that, maybe a set is better? it needs one conversion less here, but maybe users are not as familiar with sets?

Yep internally coercing into a set a sequence (tuple, list, etc) that passed through the API seems good to me.

authors: Joeperdefloep benbovy jvail

repo: xarray-contrib/xarray-simlab


text:
[feature request] SMS and call (and more) notifications to Kodi

The old XBMC remote had this cool feature that you could get notification of incoming text messages and phone calls, and it would even pause the playback when a call came in. It would be pretty neat to add this to Kore. Or even a more generic notification framework where you could select which app's notifications are forwarded to Kodi.

Not a fan, as it requires pretty invasive permissions (access calls, sms, etc) on the device.
I might take a look when the new M version comes out, as the permission system is changed, but for previous (current) versions, this won't be done.

authors: SyncedSynapse shtrom

repo: xbmc/Kore


text:
输入信息后窗口直接关闭了

你好，请教下，我输入信息后窗口直接关闭了，不管是在线还是离线都是如此，访问不了3000，而且本地好像也没有生成什么文件，这是还需要配置什么东西吗？

你好，请教下，我输入信息后窗口直接关闭了，不管是在线还是离线都是如此，访问不了3000，而且本地好像也没有生成什么文件，这是还需要配置什么东西吗？

有截图吗？可能是权限的原因

我下载后也是一样，输入完数据直接关闭，没有任何提示，用管理员身份运行也不行
用的是PostgreSQL，下载的1.1.2 db-doc-windows-amd64.exe，运行时显示的版本是1.1.1

authors: hzms xbmlz yansheng836

repo: xbmlz/db-doc


text:
🛑 18Join is down

In 1296c4f, 18Join (https://www.18join.com/api/captcha) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 18Join is back up in 731491d after 12 minutes.


text:
Remove No follow option

Jodit Version:  3.1
Expected behavior:
I'm missing an option to remove the no follow option in the hyperlink:
https://i.imgur.com/uWJOGye.png
Actual behavior:
An option to remove this button.
I can't find it in the documentation, so I assume it's not possible. Could you let me know if it is, and possibly add the option?

Thanks

Added two options https://xdsoft.net/jodit/doc/options/link/
"noFollowCheckbox": true,
"openInNewTabCheckbox": true

repo: xdan/jodit


text:
Podman team is interested in this tool or something similar.

We would like to add this functionality similar to oci-seccomp-bpf-hook and allow users to gather this information about capabilities as well as syscalls.
We kind of like the idea of learning mode, where the container can run in production mode for a few months gathering all of the capabilities. Once users are happy with the  container, then they can switch it to enforcing mode, and only allow the previously gathered capabilities (or syscalls).  Now I would want to keep the scanner going to watch for failed capabilities.
I even think this would be a good debugging code to allow users to figure out why a container is getting permission denied.
Currently seccomp and SELinux at least print messages in the audit.log when something is denied, there is no such mechanism for Capabilities.
Where is the output of this tool written, can you run it in permissive mode?

@vrothberg PTAL


text:
Add support for Linode as a DNS provider.

As the subject says, I've added support for Linode as a DNS provider.  Confirmed it works on at least subdomains (www.example.com) by acquiring a certificate for one of my domains.  Bare domains (example.com) SHOULD also work as well, but are currently untested.

Hello there and thank you for providing this! I'm sorry it took me so long to get back to you but the last couple of weeks were really exhausting :)
Seeing that you are also the maintainer of the used package for the linode api interaction. Do you intend to maintan that further?

And I'm sorry it took me so long to get back to you!  I'm apparently bad at realizing that I have something that I should respond to.
I wrote the Linode API package pretty much for the sole purpose of integrating with Lego.  In order to do that, I obviously needed to implement parts of their DNS API.  It didn't make sense to implement ONLY the parts of the DNS API that are required for a DNS provider, so I decided to implement it all.  So to that extent, yes, I intend to maintain it.
As for adding in support for other aspects of the Linode API... that I'm not as sure about.  I'm not strictly opposed to it if:
A) there is a demand for it and
B) I actually have the time to do so.
Lately, B seems to be the harder condition to work around.

@xenolf This would be cool if this was merged

🎉 👍

authors: RobertDeRose timewasted xenolf

repo: xenolf/lego


text:
Is top-level await necessary in the v3 branch?

Question
I saw the excellent performance of WebGPU, so I tried to install xenova/transformers.js#v3 as a dependency in my project.
I found that v3 uses the top-level await syntax. If I can't restrict users to using the latest browser version, I have to make it compatible (using vite-plugin-top-level-await or rollup-plugin-tla).
Is it possible to use other methods instead of top-level await? Or is this project not intended to support users who do not have support for top-level await?
Thanks.

@xenova Thanks for your rapid response! Looking forward to the official release of v3 coming soon! 😄🎉


text:
Update sharp.js version (+ add Deno NPM support)

Should fix #78

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Closing in favour of https://github.com/xenova/transformers.js/pull/545

authors: HuggingFaceDocBuilderDev xenova


text:
java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open(Ljava/lang/String;I)V

I am getting this error only in . Sqlite JDBC version 3.8.11.2

Windows Server 2012 R2

javax.persistence.PersistenceException: java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open(Ljava/lang/String;I)V
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:815)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:205)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:305)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:337)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:303)
    at com.accelerite.radialive.cs.storage.dao.ClusterPropertiesDAO.getPropertyByTypeAndKeyWithSubType(ClusterPropertiesDAO.java:42)
    at com.accelerite.radialive.cs.storage.dao.ClusterPropertiesDAO.addClusterProperty(ClusterPropertiesDAO.java:149)
    at com.accelerite.radialive.cs.util.Bootstrap.contextInitialized(Bootstrap.java:56)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5003)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5517)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open(Ljava/lang/String;I)V
    at org.sqlite.core.NativeDB._open(Native Method)
    at org.sqlite.core.DB.open(DB.java:161)
    at org.sqlite.core.CoreConnection.open(CoreConnection.java:220)
    at org.sqlite.core.CoreConnection.<init>(CoreConnection.java:76)
    at org.sqlite.jdbc3.JDBC3Connection.<init>(JDBC3Connection.java:24)
    at org.sqlite.jdbc4.JDBC4Connection.<init>(JDBC4Connection.java:23)
    at org.sqlite.SQLiteConnection.<init>(SQLiteConnection.java:45)
    at org.sqlite.JDBC.createConnection(JDBC.java:114)
    at org.sqlite.JDBC.connect(JDBC.java:88)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:98)
    at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.setOrDetectDatasource(DatabaseSessionImpl.java:207)
    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:760)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:265)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:731)
    ... 20 more

I'm getting the same error on ubuntu linux 14.04 running on a pandaboard (armhf architecture):
03/14/2016 14:59:31: Caused by: java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open(Ljava/lang/String;I)V
03/14/2016 14:59:31:    at org.sqlite.core.NativeDB._open(Native Method)
03/14/2016 14:59:31:    at org.sqlite.core.DB.open(DB.java:161)
03/14/2016 14:59:31:    at org.sqlite.core.CoreConnection.open(CoreConnection.java:220)
03/14/2016 14:59:31:    at org.sqlite.core.CoreConnection.(CoreConnection.java:76)
03/14/2016 14:59:31:    at org.sqlite.jdbc3.JDBC3Connection.(JDBC3Connection.java:24)
03/14/2016 14:59:31:    at org.sqlite.jdbc4.JDBC4Connection.(JDBC4Connection.java:23)
03/14/2016 14:59:31:    at org.sqlite.SQLiteConnection.(SQLiteConnection.java:45)
03/14/2016 14:59:31:    at org.sqlite.JDBC.createConnection(JDBC.java:114)
03/14/2016 14:59:31:    at org.sqlite.JDBC.connect(JDBC.java:88)
03/14/2016 14:59:31:    at java.sql.DriverManager.getConnection(DriverManager.java:571)
03/14/2016 14:59:31:    at java.sql.DriverManager.getConnection(DriverManager.java:233)

I have the same problem on Raspbian 2016

Same on Debian 8

Windows 10 Pro works fine, however Windows Server 2012 does not
Also using Sqlite JDBC version 3.8.11.2

Okay, at least I found my problem: The tmp directory for the application was wrong.
I now added a check to my application, whether the tmp directory exists, is a directory and can be written. Hope that helps me realize the problem sooner next time.

For linux I was able to work around this by making sure the tmp directory had exec permissions.

Hi,
I am using SQLite version 3.8.11.2 and it's giving the same error (java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open(Ljava/lang/String;I)V)
I tried other verions as well and 3.7.2 works fine on my system but with this version i face another issue.
I am using DBCP2 for connection pooling and with SQLite 3.7.2 it gives following error.
java.lang.AbstractMethodError: org.sqlite.Conn.isValid(I)Z
It means isValid() method is not present in SQLite 3.7.2.  And the version where this method is available, is not working on my system. Right?
I am using window 10 pro.
Same code runs fine on other Systems with WIndow 10 pro. Only my System is giving this issue.
I would really appreciate any help on this issue.
Thanks,
Jitender

Please check, that the tmpDir is set and you have the permissions. The SQLite DLL gets extracted from the jar to the tmp.
final File tmp = new File(System.getProperty("java.io.tmpdir")); if (!tmp.exists() || !tmp.isDirectory() || !tmp.canRead() || !tmp.canWrite()) {     throw new Exception("error with tmpDir"); } SQLiteJDBCLoader.initialize();

Hey jesudornenkrone
I used the code snippet and got following exception.
2016-07-20 15:50:58 ERROR DvSearchServices:152 - error with tmpDir java.lang.Exception: error with tmpDir 	at com.dataprivc.searchengine.consumer.DvSearchTaskServicesImpl.getSqliteDSConn(DvSearchTaskServicesImpl.java:158) 	at com.dataprivc.searchengine.consumer.DvSearchTaskServicesImpl.getTaskStatus(DvSearchTaskServicesImpl.java:37) 	at com.dataprivc.searchengine.webservices.DvSearchServices.getStatus(DvSearchServices.java:147) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.lang.reflect.Method.invoke(Method.java:498) 	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) 	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) 	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) 	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) 	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558) 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733) 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) 	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) 	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) 	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2517) 	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2506) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 	at java.lang.Thread.run(Thread.java:745)
So the tmpdir does not exist. How do I fix this?

Hey jesudornenkrone,
Thanks for pointing in the right direction.
I printed the path of the temp file and it was right in the Tomcat server's home directory. And there wa no temp folder.
I created a folder there manually and it worked like a charm. Now i can add a check in my code that if temp directory doesn't exist then create one.
Thanks a lot Again

Same error as above.
The root cause of my error is that: THERE IS NO TEMP FOLDER IN TOMCAT INSTALL DIR
So My solution:
cd /usr/share/tomcat8 # this is the install dir of my tomcat8 (cause I install it by apt-get)
sudo mkdir temp
sudo chmod 777 temp/
Then restart tomcat, the error is gone.

One other thing that could be causing this issue is that sqlite is only allowing a single network connection to the database. I was running into this error during development. If I republished the code in Eclipse and didn't stop and start the web application container (weblogic in this case) I would get this error. Stopping weblogic and starting it again worked to get sqlite to respond again.

same error, version 3.14.2,
uname -a
Linux AY14011115535187549fZ 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
lscpu

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 45
Stepping:              7
CPU MHz:               2200.062
BogoMIPS:              4391.09
Hypervisor vendor:     Xen
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              15360K
NUMA node0 CPU(s):     0-3

I've seen a few people run into this error too with version 3.14.2.1. Weirdly enough it didn't happen with version 3.8.11.2.

I only recently downloaded the source code, compiled it and tried to include in into my java application (console based server application with SQLite support planned).
The compiled  shared object in included in package /org/sqlite/native/Linux/arm and is named libsqlitejdbc.so
Now, according to some posts here, which I found useful, my server application checks "java.io.tmpdir" for correct permissions. Everything seems to be OK.
The error happens to me if my server is being executed on a Raspberry Pi 3 and the following line is executed:

I had the problem with Arch Linux.
My tmp directory was mounted with noexec option. Allowing execution solved the problem for me.

I think #191 can solve this permission problem.org.sqlite.tmpdir JVM env can be used to specify the temporary folder.
The latest version with this support is available from here:
https://oss.sonatype.org/content/repositories/snapshots/org/xerial/sqlite-jdbc/3.16.1-SNAPSHOT/sqlite-jdbc-3.16.1-20170106.232609-17.jar

Let me close this ticket.

Check that your /tmp is not mounted noexec. Debian 9, for example, mounts /tmp with noexec.
$ mount | grep /tmp
/dev/sda6 on /tmp type ext4 (rw,noexec,nosuid,nodev,relatime,data=ordered)

If this is the case, there are 2 workarounds:
Solution 1. Edit /etc/fstab and remove noexec from /tmp. Then remount /tmp:
$ mount -o remount /tmp

Solution 2. Use another tmp location.
$ java ... -Djava.io.tmpdir=/var/run/some-other-location

If running tomcat8 on Debian, edit /etc/default/tomcat8 and add:
JVM_TMP=$CATALINA_BASE/temp

how to solve it on mac???

repo: xerial/sqlite-jdbc


text:
Add Code Editor

Thank you @pratik-fsdet for taking out your valuable time in order to contribute to our project. Looking forward for more such amazing contributions :)

repo: xerocodee/InfraBoard


text:
Put examples into a standalone repo / integrate with pangeo gallery

Our list of examples is growing, and there are new proposals for examples / tutorials coming in (see #216, #257)
I would propose that we put the examples into a new repo (e.g. xgcm-examples) and use pangeo gallery / binderbot to automatically build them in the cloud. Then we could use a git submodule in xgcm to make the built notebooks appear as part of the docs.
What do you think?

Hi @rabernat, hopefully raising #257 in this repo was a constructive place to put it?  I'm happy to document anywhere that suits others.  I'm mainly trying to provide visibility of my embryonic efforts for when I hit the inevitable hurdles, hoping that might mean folks like @jbusecke could give me a boost. =)

Love this idea. Is there another example repo that we could use to get a feel for how the gallery/binderbot integtation works?

We would start by creating a new repo following the pangeo-gallery contributing guide.
We would get it to the point where it builds cleanly for gallery.pangeo.io.
Then we add this repo (the "built" branch) as a submodule on the main xgcm docs page.
It's a little bit of a hack for now, but it would work well enough.

I have started this: https://github.com/jbusecke/xgcm-examples
Let me play a bit with it and then next week Ill start to migrate the notebooks and organize them?

I am running into errors during the binderbot process. Does anybody have more knowledge about how to diagnose what is going on?

Pangeo Gallery is up: http://gallery.pangeo.io/repos/xgcm/xgcm-examples/01_example-notebook.html
But there is only dummy content in there for now.

Brilliant! That was my intention for now. I would like to set up the full pipeline and then migrate/reorganize the notebooks. Does that sound ok?

Ok I have migrated all notebooks over to xgcm-examples. I am running into some issues with the mitgcm example (@rabernat is that data in the cloud somewhere so we can refactor?) and the MOM6 example (@raphaeldussin there seems to be some problem with the downloaded grid file, could you try to run the notebook from the failed folder in the xgcm-examples?
How should we proceed with the docs over here? Is there a way to process external notebooks with sphinx? Or should we just built a list of links to the notebooks and binders (probably easier).

Ok I have migrated all notebooks over to xgcm-examples. I am running into some issues with the mitgcm example (@rabernat is that data in the cloud somewhere so we can refactor?) and the MOM6 example (@raphaeldussin there seems to be some problem with the downloaded grid file, could you try to run the notebook from the failed folder in the xgcm-examples?
How should we proceed with the docs over here? Is there a way to process external notebooks with sphinx? Or should we just built a list of links to the notebooks and binders (probably easier).

@jbusecke I'll take a look this week

@jbusecke I'll take a look this week

Awesome! Thanks @raphaeldussin

Awesome! Thanks @raphaeldussin

authors: Thomas-Moore-Creative jbusecke rabernat raphaeldussin

repo: xgcm/xgcm


text:
Advanced elem factory

Hoist P/R Checklist
Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.

[ ] Caught up with develop branch as of last change.
[ ] Added CHANGELOG entry, or determined not required.
[ ] Reviewed for breaking changes, added breaking-change label + CHANGELOG if so.
[ ] Updated doc comments / prop-types, or determined not required.
[ ] Reviewed and tested on Mobile, or determined not required.
[ ] Created Toolbox branch / PR, or determined not required.

If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, please consider using a squash commit to
collapse multiple intermediate commits into a single commit representing the overall feature
change. This helps keep the commit log clean and easy to scan across releases. PRs containing a
single commit should be rebased when possible.

Tom reviewed this -- there are still a number of API related issues we need to review before going to develop here, but Tom and I agreed that the main change here -- meaningful validation of props -- is absolutely critical.  Merging this to keep the whole thing moving forward.
We will review all critical issues before going to develop.

repo: xh/hoist-react


text:
Django1.11 compatibility

fix issue 21
This change resolves Django1.11 Incompatibility with retrocompatibility

I believe we'll be addressing this with the 0.0.4 release shortly


text:
Tabs for other notes

Hi,
That would be great to show an other note in tabs
Ex :
tab: Tab1
[file:nameOfNote]

tab: Tab2
[file:nameOfNote]

Hi, you can use link to display other note in tab
```tabs
tab: Tab1
![[File1]]

tab: Tab2
![[File2]]
```

authors: JamesDAdams xhuajin

repo: xhuajin/obsidian-tabs


text:
Update deps, address soundness issue in msg_send macro

As described in rust-objc#62, the msg_send macro could cause
UB in certain situations when built with a version of rustc that
includes the ! type.

@cmyr mentioned over in SSheldon/rust-objc#83:

In that thread raph makes a good point, which is that reflexively casting unused results to () might cause other problems. Is there any room for concern here? I would expect to be able to cast any id to a void*, but I'm not sure about casting to void. 😕

Definitely not an expert here, but I can say that the objc runtime uses different msg_send primitives on certain architectures between returns for floating point, structs, or other types. These mainly matter so that messaging nil gives a properly zeroed output. But there could be other spooky undefined behavior consequences?
Anyways, although I don't know of any specific problems you'd see, I'd say it is worth giving a quick audit while you're at it to see what the return type should be for the omitted returns. Hopefully not too hard, lots of them are setters which almost always return void in objc.

Thanks @SSheldon!

authors: SSheldon cmyr

repo: xi-editor/druid


text:
no "php" highlight?

Hi again,
I found there is no highlight color on php code (but javascript can)
do you know how to fix this ?

Thanks

sorry my fault...
I need to add <?php
please close this issue

repo: xianmin/hugo-theme-jane


text:
[WIP] Thread safety tester using C++11 threading

As far as I could tell, there was no test that really tested the thread safety of the library, with man concurrent BLAS/LAPACK calls.
This small C++ program aims to remedy that. It uses C++11 threading to launch a configurably large number of simultaneous calculations on random matrices. All threads are given a copy of the same inputs, and after all threads are done, the results are compared and an error is shown if any of the threads return a different result. This process is repeated a configurably large number of times to try and catch quasi-random failures.
WIP, no LAPACK calls and no makefiles yet. Probably going to hook this up as an optional test, in case folks have no C++(11) compiler.
The git history is a bit messy, but I think it should clean itself up if a squash merge is done.

[ ] Ready for review

You are right that there is no specific test for this in OpenBLAS, any thread safety checks so far have been performed by running valgrind or thread sanitizer on either test cases from the benchmark directory or reproducers for individual issues. If your test is not particularly time consuming, we could hook it up to the existing utest framework.

The DGEMM test is pretty much done, as far as the test itself is concerned. When using a single threaded build of OpenBLAS the test reliably passes with 50 concurrent threads, and reliably fails with 51 threads, exactly as expected, since by default 50 buffers are allocated in OpenBLAS.
Memory usage of the test is quite high, but using 512*512 matrices was not enough to reliably trigger thread safety problems.
I am going to create a LAPACK test as well, and then try to hook up the tests into the build system.

DGEMM and DGEMV tests are done. I will probably continue working on this branch, and then make a new PR with a cleaner history. I hope to get this merge-ready soon-ish, so I will probably forgo the LAPACK tests for now.

#2148 supersedes this

authors: TiborGY martin-frbg

repo: xianyi/OpenBLAS


text:
Bug: Plugin not working with react-ts

Plugin doesn't work with react
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tsConfigPaths from "vite-tsconfig-paths";
import removeConsole from "vite-plugin-remove-console";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react(), tsConfigPaths(), removeConsole()],
  envPrefix: "ENV_",
  resolve: {
    alias: [
      {
        find: "./runtimeConfig",
        replacement: "./runtimeConfig.browser",
      },
    ],
  },
});

It has been fixed in the latest version

It has been fixed in the latest version


text:
从2.1.9更新到3.1.0-beta1时,vector资源不能正常显示

从2.1.9更新到3.1.0-beta1时,vector资源不能正常显示

具体一点呢？

repo: ximsfei/Android-skin-support


text:
'std::bad_alloc' error while trying the demo

Hi, while trying the below command:

python demo_folder.py --demo-folder demo_folder --save-folder demo_save

I had the following error:

terminate called after throwing an instance of 'std::bad_alloc'
what():  std::bad_alloc
Aborted

greatly appreciate any idea to fix the problem. thanks.

Can you show more details about your environment seting? such as spconv, pytorch, etc;
From the error, it seems a mistake for the installation of spconv.

Hi, I'm using the below packages on a debian 10.11 system:

cudatoolkit              11.3.1
cumm-cu113           0.2.6
cython                     0.29.24
numpy                     1.21.2
pillow                       8.4.0
python                     3.7.11
python-dateutil        2.8.2
pytorch                   1.10.0
pytorch-mutex         1.0
spconv-cu113         2.1.19
torch-scatter           2.0.9
torchaudio              0.10.0
torchvision              0.11.1
yaml                       0.2.5

I'm trying to use the trained model on a custom dataset. I think my error is related to that. I couldn't find info on how to apply a trained model to a custom data. So I tried to modify config files for the new data but couldn't make it run. thank you again.


text:
feat: sync *.proto with go-sdk v1.7.0 (without delivery and timeseries)

refer to:
https://github.com/aliyun/aliyun-tablestore-go-sdk/commit/a426e0578cf0637fb2796d9e7e03a808db9dc3dd

Released in 0.1.4


text:
Add status check

Currently, for check the status of network, users need to use command sudo wg to check the raw output.
We can add status subcommand to check it by looking for matched IP in allowedIPs.

When user execute llat status, it should print Running or Stoped

repo: xinzhang-lotusflare/llat


text:
了解一下koa-grace目前的状态

在生产上使用么？
使用量有多大？

3ks

在用，例如：

qd.qufenqi.com
m.qufenqi.com
其他内网业务

目前是：6台8核机器，承载约500TPS的业务；配合Varnish，双十一峰值2000TPS也没有问题

authors: shipengyan xiongwilee

repo: xiongwilee/koa-grace


text:
Bug
python inference.py --image-dir /path/to/images --model-config /path/to/model.py --checkpoint /path/to/checkpoint.pth --show-dir /path/to/dir
环境信息
No response
补充信息
No response

这个bug已经有人提出了issue，可以参考其中的步骤来解决：https://github.com/xiuqhou/Salience-DETR/issues/44

authors: ChamberlainZBY xiuqhou

repo: xiuqhou/Salience-DETR


text:
command line for reproducing experiments in Table 1

Hello,
Could you let me know the command line for reproducing experiments in Table 1 in the paper? I wonder how to reproduce the experiment with MP, CIL, RL and CAL.

You can run the experiments for CAL if you follow the description in the readme.
For CIL checkout this repo. For RL this repo.
MP is not available on github to my knowledge (the values from the table are from the original CARLA paper).

authors: robotsoft xl-sr

repo: xl-sr/CAL


text:
update taskflow to v3.1.0

update taskflow to v3.1.0

应该是我没先同步

OK了

repo: xmake-io/xmake-repo


text:
(unify) Use SPDX for copyright and reuse.

Copyright header update
Replace the full apache header at the top of each file with this:
// SPDX-FileCopyrightText: {{DATE}} Comcast Cable Communications Management, LLC
// SPDX-License-Identifier: Apache-2.0

Replacing {{DATE}} with the copyright date in the file.
For all go files that are not generated and are missing this header add it.
Reuse preparation
Install: reuse
Create a directory named .reuse.
Add the file .reuse/deb5 with contents based on this:
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: {{REPO}}
Upstream-Contact: {{MAINTAINER}}
Source: https://github.com/xmidt-org/{{REPO}}

Files: .golangci.yml
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: go.mod
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: go.sum
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: .gitignore
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: MAINTAINERS.md
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: README.md
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

Files: .whitesource
Copyright: SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC
License: Apache-2.0

You may need to add/change files that cannot have copyright headers later.
Installing licenses
Run:
reuse download Apache-2.0

Checking the repo is compliant
Run:
reuse lint

you should see something similar to this:
# SUMMARY

* Bad licenses:
* Deprecated licenses:
* Licenses without file extension:
* Missing licenses:
* Unused licenses:
* Used licenses: Apache-2.0
* Read errors: 0
* Files with copyright information: 14 / 14
* Files with license information: 14 / 14

Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)

If not, fix the issues.
Enable copyright checking in the action
In .github.workflows/ci.yml remove the line copyright-skip: true.

Addressed by https://github.com/xmidt-org/medley/pull/52

authors: johnabass schmidtw

repo: xmidt-org/medley


text:
Updated make docker commands to match xmidt-deploy

fixed the make docker commands to match what codex-deploy expects.

Codecov Report

Merging #119 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #119   +/-   ##
=======================================
  Coverage   46.59%   46.59%
=======================================
  Files           6        6
  Lines         382      382
=======================================
  Hits          178      178
  Misses        199      199
  Partials        5        5

Continue to review full report at Codecov.

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

authors: codecov-io kristinaspring

repo: xmidt-org/svalinn


text:
Determine which groups to Hide correctly

This is a fix I have applied locally to make sure that when I use decorated layouts like tabbed in groups, XMonad does not leave bogus decoration windows lying around.
I think that the issue fixed is that the set of groups to send Hide to is determined by subtracting the extant groups from l, but l has already been put through readapt and so some groups may have been removed (if they are empty), so they don't get the Hide message.
The comparison should therefore be between _l and the new groups.
It seems to work for me.

Thanks!

authors: byorgey larkery

repo: xmonad/xmonad-contrib


text:
Fix build-with-cabal.sh when XDG_CONFIG_HOME is defined

Description
The current script fails in case the project files are in $XDG_CONFIG_HOME/xmonad/, it tries to read them from $XDG_CONFIG_HOME directly.
Checklist

[x] I've read CONTRIBUTING.md

[x] I've considered how to best test these changes (property, unit,
manually, ...) and concluded: manually

[x] I updated the CHANGES.md file

Thanks!

authors: gabrielsimoes slotThe


text:
Proposal: Use interior mutability within Client

Background
We need to support some degree of concurrency; even if we avoid concurrency in the library itself, we cannot avoid multi-threading in any foreign-language callers.
We currently access the Client struct from multiple places: the Conversations struct, the Conversation struct, and across the uniffi interface in bindings_ffi (as well as any other foreign language bindings in the future).
Rust mandates that a mut reference is exclusive, which means no other location can hold a reference for as long as a mut reference is held in a single location. Our way around mutable operations on Client so far has been to wrap all references to Client in a Mutex everywhere we use it.
Proposal
An alternative would be to only ever use non-mut references to Client everywhere. Unlike mut references, this is non-exclusive, which removes the need for a Mutex on all of the locations where Client is consumed. This can be achieved by upholding a new invariant:
No public-facing method on Client can use &mut self
In order to do this, we simply wrap any mutable state within Client itself with a Mutex or rwlock. In effect, we are simply pushing the mutex lower in the stack. I would suggest that in all cases of concurrent mutable access, we push it as far down as we can - for example, this PR modifies the XmtpApiClient trait to only use &self instead of &mut self, forcing all implementers to encapsulate any mutability internally.
Benefits

Simpler uniffi interface: With the old approach, every method across the uniffi boundary would need to be individually wrapped with a mutex acquisition operation, turning all method calls into async calls even if they weren't originally async, and introducing boilerplate code for every method.
Granularity of access: This allows safe parallelism in calls to Client, as calls that do not need access to mutable data can execute in parallel to calls that do. Of course, this is not a major concern for us right now.
Push complexity lower in the stack: Rather than force all callers of Client to deal with mutexes, we can handle it from within Client only in the places that need it.
Easier to send Client across await: With non-mutable references, Client does not need to be sync to cross an await (assuming a multi-threaded runtime; this does not necessarily matter for Uniffi consumers).

I like this a lot. That mutex on the Client was not aging well in its week of existence. This is a clear pattern we can use everywhere.
One thing worth noting: I don't think Client is the only thing we will need to expose to the FFI layer. Conversation is going to encapsulate a lot of the functionality applications are ultimately going to care about. We should treat that the same way we treat the Client

authors: neekolas richardhuaaa

repo: xmtp/libxmtp


text:
Bug: Error handling in listIntroductionPeers(pagination: Pagination?) function

Describe the bug
While debugging, an error log was noticed that originates from the listIntroductionPeers(pagination: Pagination?) function in the Conversations class. The error is caught and printed, but not rethrown, which prevents it from being handled by the client. This issue is to discuss whether this behavior is expected and if any changes are needed.

Steps to reproduce the bug
The error is triggered when calling Conversations.list(). The error message is
"Loading introduction from peers: queryError("query")".
The relevant code is in the listIntroductionPeers(pagination: Pagination?) function:
Sources/XMTP/Conversations.swift startLine: 247 endLine: 273

Closing, as intended -- if there’s bad data in an introduction message then we don’t want to break loading the rest of the introduction messages. Will reopen if this logic creates any issues.

authors: daria-github fabriguespe

repo: xmtp/xmtp-ios


text:
Bug: Unable to Import Keys for Clients Generated for the First Time in MessageKit

When generating fresh private keys for a client in MessageKit, key import fails in Converse. However, if the wallet is first generated in Metamask, key import works correctly in Conversr. If the same Metamask-generated wallet is subsequently used in MessageKit, it continues to work in Converse without issues.
Client creation in MessageKit:
https://github.com/ephemeraHQ/message-kit/blob/main/packages/message-kit/src/lib/client.ts

Alex noted that works in dev , not in prov.
Work around. create your wallet in metamask, log it in converse, and then use messagekit

Example: https://xmtp-labs.slack.com/archives/C07DX271K6V/p1729366132276669

Debugged step by step and the thing that breaks the import in messagekit is this line
await client.registerIdentity();

Related https://github.com/xmtp/xmtp-react-native/issues/512

Libxmtp calls that happen before error
RN -- create the inboxId for their local database
inboxId = getOrCreateInboxId(address)
RN iOS create --- Succeeds first
inboxId = getOrCreateInboxId(account.address)
createClient(account.address.lowercased(), inboxId)
signatureRequest()
addEcdsaSignature()
registerIdentity()
RN iOS buildFromBundle --- then fails to Build
inboxId = getOrCreateInboxId(address)
createClient(account.address.lowercased(), inboxId) <--- Blows up here
Create

authors: alexrisch fabriguespe nplasterer

repo: xmtp/xmtp-react-native


text:
🛑 x-off.ru is down

In efd82e1, x-off.ru (http://x-off.ru) was down:

HTTP code: 0
Response time: 0 ms

Resolved: x-off.ru is back up in 8622f0f.


text:
worker: Allow init supervisor_ref lazy

Avoid crashing worker on startup process if supervisor is not reachable.
因为__post_create__ 阶段连不上 supervisor 的时候会抛异常 crash, 所以允许在运行阶段重试去连接 supervisor。把 event, status_guard, cache_tracker , add_worker 等都挪到 supervisor 连上之后调用。
Base on PR #2011

Please resolve the conflicts.

@qinxuye  rebased latest main branch

authors: frostyplanet qinxuye

repo: xorbitsai/inference


text:
🛑 Design Swan is down

In 6b61f66, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 95 ms

Resolved: Design Swan is back up in b5d980b after 12 minutes.

repo: xoryorz/upptime


text:
🛑 Design Swan is down

In fc7456a, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 132 ms

Resolved: Design Swan is back up in 17b31b8 after 41 minutes.


text:
🛑 otzivi-tut is down

In 568b6fa, otzivi-tut (https://отзывы-тут.рф/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: otzivi-tut is back up in 56b24e1.


text:
Is it possible to write bytes directly to the serial port ?

Hi,
As per the title I am trying to find out if there is a way to write bytes directly onto the serial port. I am working with a device that exposes a byte based protocol. I tried to convert the bytes to hex and use the writeHex option however that doesnt seem to work and also seems like a round about way and was curious if there was a branch or clone which had the ability to directly write bytes onto a arduino board using the serial port.
Thanks

Bytes to hex with writeHex is the right approach. Had some problems in the byte to hex conversion, once past those writeHex writes the bytes correctly.

repo: xseignard/cordovarduino


text:
🛑 Xstatic is down

In 6045033, Xstatic (https://www.xstatic.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Xstatic is back up in fa94cf0 after 56 minutes.

repo: xstaticwebdev/upptime


text:
Infinite loop because constraintlayout use int and maui use double

Problem:
i update maui example in f2d46a3, a grid split to two part, one part is a constraintlayout, but constraintlayout can't deal with it, because if grid split give a not int value, constraintlayout alway return int, that let layout will infinite loop because result have bias.
For solve this problem, i would try use px as unit when measure and layout in constraintlayout, but set property and fluentlayoytconstraintset use dp, return size to maui a dp value, that will let it not always is int.

初步在dptopx分支修改后，依然无限循环。使用","时, grid传递给child的大小总是grid的大小，这导致constraintlayout也用这个大小去布局，我觉得传下来的高度应该是grid的一半，看maui的issue，造成无限循环它也可能不是我的问题，见
https://github.com/dotnet/maui/issues/14694 ，
https://github.com/dotnet/maui/issues/14520
我需要把例子调回net6再运行下看是否是版本的问题

重新运行主分支的例子, 我看到Log中285.5 变成了285:
MeasureLayout View=ConstraintLayout Id=-1132297589 availableSize={Width=484 Height=285.5} Spec=(MeasureSpec: EXACTLY 484 x MeasureSpec: EXACTLY 285)

这是因为:
https://github.com/xtuzy/SharpConstraintLayout/blob/f2d46a39844b7f49d1d257c5afe89de8c415aea8/SharpConstraintLayout.Maui/Widget/ConstraintLayout.cs#L445
修改成:
int availableWidth = (int)(availableSize.Width + 0.5);
int availableHeight = (int)(availableSize.Height + 0.5);

Log中285.5 变成了286:
MeasureLayout View=ConstraintLayout Id=-1132297589 availableSize={Width=484 Height=285.5} Spec=(MeasureSpec: EXACTLY 484 x MeasureSpec: EXACTLY 286)

之后运行成功.
fix in 5afb519bd81e4bb80e32fba388d5301cfe1bc1cd , 我还增加了点对其它doube to int的修改, 暂时不知道影响, 其它测试的外观都还正常
test in a816e75ab4db97107d7f479845d135f5b774f34f , FitGridTest的结果可以看到最终分配的大小还是按照Grid的设置分的, 所以对于ConstraintLayout来说, 内部会有1dp的偏差, 如果使用px, 偏差应该减小到1px, 但当前未打算修改

[ ]  convert dp and px

repo: xtuzy/SharpConstraintLayout


text:
「评论」来自 https://evanblogweb.com/ui/04.flex布局案例-圣杯布局.html

https://evanblogweb.com/ui/04.flex布局案例-圣杯布局.html

12313213

good

authors: tanbingqian xugaoyi

repo: xugaoyi/blog


text:
大神   你这个弹幕view 是飘在当前界面的最顶层，把其他的都覆盖了

怎么处理，让弹幕view 显示在当前layout所设置的层级处，我们这有个问题 ，就是弹幕把最牛逼的大礼物挡住了

用dmtextureview试试？

666  解决了

这样是可以解决层级问题，又引出个问题就是上下滑动切换直播间的时候，之前房间发过弹幕到下个房间弹幕ui是个大黑框，有了新的弹幕黑框才隐藏

如果方便截个图吧！想象力不大好 - -

在DMTextureView的onSurfaceTextureAvailable()方法最后加一句这个试试：mController.draw(0, true);

哦了，专业啊

authors: Leavds xujiaji