text:
[LiveComponent] Live controller isn't registered automatically by startStimulusApp

I created new App (SF 6.1) with symfony/webpack-encore-bundle:^1.14.
I installed symfony/ux-live-component:^2.6 and ran yarn install
I set up everything correctly:  I enabled stimulus bridge in my webpack file, controllers.json was created, I imported bootstrap.js and so on.
Everything worked fine (stimulus, custom lazy loaded controllers), live component rendered correctly with data-controller="live" attribute. However there were no ajax actions triggered by live#$render or live#$action.

My controllers.json file
{
    "controllers": {
        "@symfony/ux-live-component": {
            "typed": {
                "enabled": true,
                "fetch": "eager",
                "autoimport": {
                    "@symfony/ux-live-component/styles/live.css": true
                }
            }
        }
    },
    "entrypoints": []
}

I had to manually import '@symfony/ux-live-component in my bootstrap.js and then register it as a controller.
import { startStimulusApp } from '@symfony/stimulus-bridge';
import LiveController from '@symfony/ux-live-component'; // <- ADDED MANUALLY
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
export const app = startStimulusApp(require.context(
    '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
    true,
    /\.[jt]sx?$/
));

// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);

app.register('live', LiveController); // <- ADDED MANUALLY

Then it started to work fine. I guess that it shouldn't behave like that, because that package should be registered by startStimulusApp.
Did I do something wrong? Why did I have to register that controller manually?

It seems good to me. Maybe something cache related? How did you run webpack? When you use watch is usually needs a restart to notice new packages.
Does your webpack.config.js contain:
   // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)
    .enableStimulusBridge('./assets/controllers.json')

You should try to remove the app.register('live', LiveController); and restart the watcher or rebuild the app.

Does your webpack.config.js contain:

Yes. It was turned on and it worked I guess, because I was able to correctly run assets/controllers/hello_controller.js

How did you run webpack?

The first few times I used the yarn build command (which creates a production build). Later I changed the command to yarn dev to create development build. I have never used a watcher.
I'll try to prepare a demo app and deploy it somewhere to confirm my settings.

Yea, everything looks good to me too. You literally showed all the code from your app that should be enough to get this working. Very strange.

@1ed @weaverryan I was able to reproduce the issue on my demo app.

You can preview my files and clone the repository -> https://github.com/sabat24/symfony-ux-632 (I left some my js dependencies in package.json)
You can view the example on my website

https://live-demo.sabat24.pl/live - simple live component with page liveProp and updatePage liveAction. It's a basic bootstrap file without any modifications. After clicking a text, live action should be triggered and page should change from 1 to 2. I tested on FF - nothing happened.
To prove that Stimulus working correctly you can test it on https://live-demo.sabat24.pl/hello
https://live-demo.sabat24.pl/live2 - same component but I created another entry point for webpack with my modifications (import and registration of LiveComponent manually). This version works fine.

@sabat24 please run yarn upgrade or just yarn add @symfony/stimulus-bridge@^3.2.0, because you are using an old version, which doesn't contain https://github.com/symfony/stimulus-bridge/pull/70. But I don't know how you got that, because when I create a new project I get 3.2.1?

Thanks for that information. This actually solved my problem.
I added stimulus-bridge to my repository on April. The demo repository wasn't created from the scratch. I added stimulus-bridge to my repository on April. The demo repository wasn't created from the scratch. I included my original .lock files to get same dependencies versions.


text:
change the composition of maestro message

remove fromPod

just in case we want this

source: gharchive/pull-request

license_type: permissive

license_source: github-api


text:
Do not include log4j in compile dependencies

Currently, the dependency tree is as follows:
+--- org.slf4j:slf4j-api:1.7.21 -> 1.7.25
|    +--- org.slf4j:slf4j-log4j12:1.7.21
|    |    +--- org.slf4j:slf4j-api:1.7.21 -> 1.7.25
|    |    --- log4j:log4j:1.2.17
Please don't include slf4j-log4j as a compile time dependency. Place it as a "runtime" dependency. Scoping details at https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
Basically add runtime to you pom for org.slf4j:slf4j-log4j12. This is messing with the ability to use log4j 2.x in a project. API is correct to leave as compile scope.

commit 8efb28e10dbd1c56e1bbef0376083b8d43ba26f1
Note:  I will be switching to logback over the next few commits.

source: gharchive/issue

authors: ftbb oniseijin

repo: symphonyoss/symphony-java-client

license_source: bigquery


text:
Windows build is failing on theano call

[NbConvertApp] ERROR | Error while converting 'code-printers.ipynb'
Traceback (most recent call last):
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\nbconvertapp.py", line 381, in export_single_notebook
    output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\exporters\exporter.py", line 172, in from_filename
    return self.from_file(f, resources=resources, **kw)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\exporters\exporter.py", line 190, in from_file
    return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\exporters\html.py", line 84, in from_notebook_node
    return super(HTMLExporter, self).from_notebook_node(nb, resources, **kw)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\exporters\templateexporter.py", line 268, in from_notebook_node
    nb_copy, resources = super(TemplateExporter, self).from_notebook_node(nb, resources, **kw)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\exporters\exporter.py", line 132, in from_notebook_node
    nb_copy, resources = self._preprocess(nb_copy, resources)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\exporters\exporter.py", line 309, in _preprocess
    nbc, resc = preprocessor(nbc, resc)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\preprocessors\base.py", line 47, in __call__
    return self.preprocess(nb,resources)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\preprocessors\execute.py", line 242, in preprocess
    nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\preprocessors\base.py", line 70, in preprocess
    nb.cells[index], resources = self.preprocess_cell(cell, resources, index)
  File "C:\Miniconda35\envs\codegen17\lib\site-packages\nbconvert\preprocessors\execute.py", line 275, in preprocess_cell
    raise CellExecutionError(msg)
nbconvert.preprocessors.execute.CellExecutionError: An error occurred while executing the following cell:
------------------
from sympy.printing.theanocode import theano_code
theano_code(expr)
------------------

I've noticed this too. I haven't got around running that notebook in my VM yet. (I will try to do so later tonight)

I ran this in my VM, there the cell actually works (but it gives a warning):
WARNING (theano.configdefaults): g++ not available, if using conda: `conda install m2w64-toolchain`
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.

installing m2w64-toolchain and rerunning the notebook gives an error:
...
. collect2.exe: error: ld returned 1 exit status_Windows-10-10.0.14393-SP0-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.6.1-64/lazylinker_ext/mod.cpp:976: undefined reference to `__imp__Py_TrueStruct'Error'ndefined references to `__imp__Py_NoneStruct' followow

I've removed the theano_code example.

undefined reference to __imp__Py_TrueStruct usually happens when you try to compile with mingw with an unpatched libpython.

That should probably be reported to anaconda. Their theano packages on windows should just work.

There's a anaconda package here to fix that, https://anaconda.org/anaconda/libpython

authors: bjodah isuruf moorepants


text:
eigen-3.2.8 is very old, newer releases exist

Eigen-3.2.8 is very old (Feb 2016), a number of newer releases exist.

eigen-3.2.8 also has support for Qt4 but apparently not Qt5

license: MIT


text:
[Bug]: Onchain balance incorrect after wallet restore having LN funds

Describe the bug
Restoring wallet with LN funds doesn't show correct onchain balance.
Reproduce

Need a wallet with onchain funds and recent LN channel funding transaction
Make sure to backup your wallet, then delete app & reinstall it
On startup, restore using your mnemonic
❌ Notice onchain balance is incorrect
🏥 Can be fixed with 'rescan addresses', but after reinstall same problem occurs

always repros on my end
Screenshots / Recording

Freshly restored
After 'rescan addresses'

Operating system
Android 14
Bitkit version
v106
Log output
No response

After sending all LN funds to savings, the total balance showed again the wrong 144 899.
A pull-to-refresh fixed it.

#1586 ?

This should be resolved as of the latest commits.

authors: JeanlChristophe coreyphillips ovitrif

repo: synonymdev/bitkit


text:
Sonderurlaubsarten selbst definieren

Als Office-Mitarbeitende möchte ich eigene Arten von Sonderurlauben anlegen können, um firmenspezifische Regelungen oder auch branchentypische Sonderurlaube abbilden zu können.
Frage:
Wie gehen wir mit der Internationalisierung um? Ggf. ist es in Ordnung, im Kontext einer Firma nur eine Darstellung des selbstdefinierten Sonderurlaubs dazustellen?

Duplikat von #2984

authors: derTobsch honnel

repo: synyx/urlaubsverwaltung


text:
Windows compile error

By default there will be a compile error in most Visual Studio projects due to a Windows macro for min and max. You can fix this by replacing this line in picojson.h:
if (errno == 0 && std::numeric_limits<int64_t>::min() <= ival && ival <= std::numeric_limits<int64_t>::max() &&
With this:
if (errno == 0 && (std::numeric_limits<int64_t>::min)() <= ival && ival <= (std::numeric_limits<int64_t>::max)() &&

tinygltf does not use picojson.h anymore. devel is primary branch and master is too old and at some point master will be replaced by devel. So please use devel branch.

In the branches folder, I see a folder called "devel-picojson". Is that what you are referring to?

authors: JoshKlint syoyo

repo: syoyo/tinygltf


text:
wiki: broken link to templates

Hi!
On this wiki page, I noticed the references to the templates folder in the repository is broken ('tree' and 'master' in the URL are swtiched, the correct link is this one).

@namnatulco Thanks a lot for the feedback! We moved the documentation to readthedocs . I have updated the README to reflect this. Thanks!

authors: ivotron namnatulco

repo: systemslab/popper

license: mit


text:
Fixes #248 Implement a popper add sub-command

A new sub-command add is added which adds a pipeline to the repo from existing popperized repositories on github and also updates the .popper.yml as required.

Hello @ankan17! Thanks for submitting the PR.

In the file cli/popper/commands/cmd_add.py, following are the PEP8 issues :

Line 41:1: E302 expected 2 blank lines, found 1

PyGithub did not have the necessary functionalities to download files or directories from github. So I had to implement it with the requests module. Also it looks cleaner this way. What do you say @ivotron ?

@ankan17 Can you add requests as a sub module?
For external dependencies, we are also vendoring them in cli/bin/vendor.
Also, can you please use git commit --amend ?

Sure I'll add it to the vendors

Done @ivotron

cool! Thanks a lot!


text:
エラー型による条件分岐をやりやすくする

毎回if Core:type(v)!='error' ...と書かなければならないのは不便なので、より簡単な書き方を考えます。
今までの案
catch(v) {...}

投げてないのにcatchはおかしい

if Core:is_ok(v) ...

あまり書きやすさが変わっていない？

補足
v ?? v2（vがエラー型以外ならv、エラー型ならv2を返す）、?.（エラー型ならチェーンしない？）も欲しい

if Is:ok(v) ... とか…？

ifによる値のチェックとは区別して
if v is error { ... }

とか...？

Core:type(v) == Tをv is Tにする？

Core:type(v) == Tをv is Tにする？

同意見

isnotは必要？

どちらかと言うと型表記の方に補集合を表す表記方が欲しいような？

Rustの?みたいにエラーならそれをreturnする演算子が欲しいかも……
@f() {
  let v = ...
  v?.something // vがエラーならvを返し、そうでなければプロパティを評価
}

// トップレベルの場合
let v = ...
v? // vがエラーならCore:abort(v.name)

標準関数を追加するならこう？(大して楽にならないかも)
Error:is(v) // vがエラーならtrue、そうでなければfalseを返す
Error:and(v, v2) // vがエラーならv2、そうでなければvを返す
Error:and_then(v, @(err) { ... }) // vがエラーなら関数を引数vで呼び出してその返値を返し、そうでなければvを返す

?はこれまた欲しいと言われているJavaScript流のオプショナルチェーン（?.）と文法的に衝突するんですよね…

?.と書いてエラーが出たときに、

エラーを呼び出し元に再送出するか
エラーを式の評価値とするか

どちらの記法のほうが平均的なコードが簡単になるんでしょうね……
前者にした場合、後者のv?.propの代わりにError:or_else(v, @(v) { v.prop })あるいは@(){ v?.prop }()
後者にした場合、前者のv?の代わりにif v is error { return v }
みたいな書き方になるのかな
それか?も?.も導入(?.を優先してトークナイズ)してv? .v2あるいは(v?).v2みたいに書かせるとか……
これは文法がややこしくなりそうですけど

#237 はbug扱いになっているのでそっちを優先的に着手したいですね

あと今のReturnをラッパーで包む実装方法だと中途returnの実装がかなり面倒になりそうな気がするんですよね
（この辺りはreturnの実装の方を変えるべきな気もします）

authors: FineArchs marihachi saki-lere takejohn

repo: syuilo/aiscript


text:
リモートフォローは必ず承認待ち状態を挟むように変更

Resolve #2604, #2605
リモートフォロー時は、ローカルで鍵と認識している否かを問わず
必ず一旦フォローリクエストにするように変更しています。
（即時フォロー済みに変更するのではなく）
UIやisLockedを見てる部分も変更しています。
変更前
相手がリモートの場合、鍵垢と認識している場合のみフォローリクエスト
変更後
相手がリモートの場合、常にフォローリクエスト
一時的にスタータスは承認待ちになる（DBもUIも）
リモートから Accept/Rejectが返ってきたタイミングで
→DBを承認待ちから変更(フォロー済み/未フォローへ)
→publish follow/unfollow event
→eventを受けてUIのフォローボタンが変わる

ありがとうございます🙏🙏🙏

repo: syuilo/misskey


text:
Also export getViteConfig

Please at the bottom of src/main.ts also export getViteConfig for the async function getViteConfig().
The purpose would be to allow writing better log lines in the callback of the listen.  For example to construct and write the exact URL to browse to by also using the base.
This is for someone having several projects, giving them to other people to use, each with a different base.  It would help having a little more certainty and hence sanity.
Thank you for this useful module!

Version 0.16.0 was just published :rocket: Thank you for your contribution @srguiwiz2!

Version 0.16.0 have been just released :rocket: Thank you for your contribution @srguiwiz2!

repo: szymmis/vite-express


text:
fix: use auth instead of question while merging the router

✅ Checklist

[x] I have followed every step in the contributing guide (updated 2022-08-15).
[x] The PR title follows the convention we established conventional-commit
[x] I performed a functional test on my final commit

Changelog

While scaffolding a project with Next Auth and tRPC, there is a `protected-example-router` to show how to protect tRPC routers with Next Auth. This router is merged as `question.` in the index file. But in `src/pages/index.tsx`, the query is called using `auth.getSecretMessage` which will obviously fail because its `question.getSecretMessage`. This PR fixes it and merges the router as `auth.`.

Generate a patch changeset so you'll be credited in the changelog

authors: juliusmarminge nexxeln


text:
Add ((.../...)) autolink shortcuts for elements/attributes.

This patch adds the fairly lame double-parens shortcut for elements and
element attributes. That is ((element)) will produce a link to the
element named 'element', and ((element/attribute)) will produce a link
to the attribute 'attribute' for the element 'element'.
Closes #323.

I stripped out some of the complexity around the !! syntax, as I don't think we need it for attributes and elements. WDYT, @tabatkins?

Ping. Crazy? Not crazy?
Would <{.../...}> be better or worse?

Sorry for delay - I don't look at email over the weekend.
The code looks fine to me at a glance.  I'm fine with whatever shorthand you like more, just decide on one and I'll merge.
And yes, no need for the !! stuff - this shorthand is fully typed already from the syntax, so there's never a need to specify the type explicitly.

Honestly I kind of like <{.../...}> if that counts for anything. I am pretty unlikely to be using this syntax though so don't take me too seriously :).

@mikewest Do you prefer the <{foo}> syntax as well?  If so, I'll pull these edits in and switch it over.

Updated the patch with the <{.../...}> syntax. WDYT?

authors: domenic mikewest tabatkins

repo: tabatkins/bikeshed


text:
Enhancement request: When using remote polling, TabMon should recover from remote machine restarts

When using remote polling, communication with the remote nodes can be broken by system restarts.  This is a feature request to update TabMon to detect down nodes and recover when they come back online, without requiring a service restart.

I've spent a couple of hours trying to reproduce this issue. So far it looks like the PerfMon counters recover properly after shutting down remote hosts.
If this issue does occur again, we do have a potential fix. I am going to avoid making that change unless absolutely necessary.
Closing this out.

authors: danjrahm jmangue

repo: tableau/TabMon


text:
Telegram: Multiple captions of individual photos of an album get overwritten

  Feature: Send individual captions per photo
    As a user
    I would like to caption every photo of my photo album differently
    Each caption should become the `alt` attribute of an image respectively
    Because I want to describe what you can see on each photo separately, not only the album
    as a whole. I would like to have this information incorporated in the 100eyes software,
    maybe I want to tell the journalists something through image captions.

Status quo: Captions get overwritten. The last caption of an image wins.

Don’t think the caption should become the alt text — I’d assume users don’t primarily use that feature to provide optional, purely descriptive  text, but additional info on the photo.
Instead, I think the caption should either be displayed below the image or alternatively when hovering over the image.

authors: roschaefer tillprochaska


text:
Q. Random Access within XML?

Hi. Not an issue, so much as a question of usage/capability.
I'm working with SVG files. A typical file contains any number of  tags, all nested in any number of arrangements with other tags.  e.g.
<?xml version="1.0" encoding="UTF-8"?>
<svg ...>
	<defs>
            <path ... </path>
            <path ... </path>
    </defs>
    <g ...>
        <g ...>
			<path ...</path>
			<path ...</path>
			<path ...</path>
            <g ...>
   				<path ...</path>
				<path ...</path>
                <g id="pick_me">
                    <use ...</use>
                    <use someAttribute="PICK_ME_PICK_ME"</use>
                </g>
            </g>
        </g>
    </g>
</svg>

I'm sorry for the verbosity, but hopefully you get the idea: the overall structure is convoluted and unknown at build-time.
Q. is there a facility in AEXML to find an element that contains a specific attribute? In this case, the parent  that contains a  tag with the attribute "PICK_ME_PICK_ME"?
e.g. a way to firstly find the tag with the attribute, and then the parent element?
Or would I somehow need to iterate through all children, to find the elements? (And if so, would you recommend a particular usage-pattern of AEXML for this?)
I've looked through the unit tests, but haven't seen a random-access example.
Thanks for all your hard work on this project. Cheers.

I was able to solve this issue using AEXML and noahcgreen's changes. Cheers to you both.

Great, then I'll close this one!

authors: SuperWomble tadija

repo: tadija/AEXML


text:
WWW-Authenticate challenge may be parsed incorrectly

In my project I am using angular-digest-auth to talk to a Restlet 2.3 based webserver (Java 7).
The authentication would not work correctly. It would always be rejected, even with the correct credentials.
I tracked this down and discovered a discarded exception in the Restlet server.  This showed that the reason was that the response to the challenge sent by angular-digest-auth was incorrect - the server expected a nonce which matched the one it sent, and was a valid base64 encoding (which means it must be the correct length).
Checking the angular-digest-auth code, I noticed that the parseHeader() function's regex did not permit = characters in the values, which is what base64 uses to pad an encoded string to the required length.  In fact the regex discarded the trailing = characters silently.
An example of the challenge sent by Restlet:
Digest realm="redacted realm", domain="/", nonce="MTQ0NzE3NDIzNjA2ODpmMzIxZTgzyzczYjq5NjU2ZDcyZGY3OTYxMjhiNGViYQ

==", algorithm=MD5, qop="auth"
A trivial fix is possible just by permitting this character, but inspecting the regex I see it would not cope with other legal challenges.  In particular, any empty parameter value would not get parsed correctly, nor any unquoted values, nor quoted values containing a comma or a quote character.  Not to mention multiple challenges embedded in one header.
See https://tools.ietf.org/html/rfc2617#section-1.2 and https://tools.ietf.org/html/rfc2616#section-2.1

I have a fix with tests prepared, see the upcoming pull request branch wu-lee/issue-21

repo: tafax/angular-digest-auth


text:
Align big TAHO balances

Resolves #665

What has been done:

Added line break if TAHO amount is too big to fit in one line with the label
Aligned inputs horizontally

Testing:

[ ] Login to testertesting.eth and see if the line breaks and inputs are aligned
[ ] Login to another account and check if everything is also aligned

Do we need to catch this case? Like @VladUXUI mentioned its edge case and document.querySelectorAll(".token_amount_label")  may cause us more unexpected(hard to debug) issues if fields with class token_amount_label appear somewhere in the document.  We should just wrap the line if the value is too long.

Agree that doing this through useEffect is overkill--a combination of flow settings here should let the browser break this in exactly the same way for us I expect. Making both elements ("wallet balance:" and the number) display: inline-block might be enough.

@VladUXUI should we bother with this? As you said no one will have that big amount of TAHO, so maybe let's not complicate it

Do we need to catch this case? Like @VladUXUI mentioned its edge case and document.querySelectorAll(".token_amount_label") may cause us more unexpected(hard to debug) issues if fields with class token_amount_label will appear somewhere in the document. We should just wrap the line if the value is too long.

I know that querySelector might me troublesome, but I couldn't find any other way to always align inputs horizontally - it won't look good if there are not on the same level

Actually now I've realized that this issue won't apply in the new realm UI, since each staking form has it's own tab

So closing this PR and issue, no need to put more effort here, since it won't apply

authors: Shadowfiend ioay xpaczka

repo: tahowallet/dapp


text:
tests: Implement mechanism to detect API changes by OS

Follow-up #64
Run-time feature detection on aarch64 usually requires the use of platform APIs, and we define our own FFI bindings to those APIs.
We use only one function and a few constants per platform, but technically OS can change these APIs so it is preferable to be able to detect them.

bors r+
This will be more important for runtime detection support on aarch64 NetBSD, which is currently being worked on than the current implementations (aarch64 OpenBSD/Windows).

we define our own FFI bindings to those APIs.

By the way, replacing our own implementation with the use of libc does not help for issues that this PR addresses. (I may work on improving the situation on the libc side in the future, but that is another issue.)

repo: taiki-e/portable-atomic


text:
Cannot build: can't find reason for requirement on github.com/google/pprof

I wanted to give this a try because it looks extremely Cool, but I'm having trouble building it, it seems that the Go package manager is getting Confused:
go: downloading github.com/jackc/pgproto3/v2 v2.3.1
go: downloading github.com/go-logfmt/logfmt v0.5.1
go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
go: downloading github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96
go: downloading github.com/golang/snappy v0.0.4
go: downloading github.com/golang/glog v1.0.0
go: downloading github.com/jackc/chunkreader/v2 v2.0.1
go: downloading github.com/jackc/pgpassfile v1.0.0
go: downloading github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
panic: internal error: can't find reason for requirement on github.com/google/pprof@v0.0.0-20210407192527-94a9f03dee38

goroutine 1 [running]:
cmd/go/internal/modget.(*resolver).updateBuildList.func1({{0xc000b26618, 0x17}, {0xc0000306f0, 0x22}})
        /usr/lib/go/src/cmd/go/internal/modget/get.go:1760 +0xd4
cmd/go/internal/modget.(*resolver).updateBuildList(0xc000156000, {0xb3bd58, 0xc00002c0e0}, {0x0, 0x0, 0x0})
        /usr/lib/go/src/cmd/go/internal/modget/get.go:1765 +0x54c
cmd/go/internal/modget.(*resolver).applyUpgrades(0xc000156000, {0xb3bd58, 0xc00002c0e0}, {0x0?, 0x0, 0xc0000a5d70?})
        /usr/lib/go/src/cmd/go/internal/modget/get.go:1312 +0x465
cmd/go/internal/modget.runGet({0xb3bd58, 0xc00002c0e0}, 0xc000028618?, {0xc000024220, 0x2, 0x2})
        /usr/lib/go/src/cmd/go/internal/modget/get.go:351 +0x458
main.invoke(0xe51280, {0xc0000241f0, 0x5, 0x5})
        /usr/lib/go/src/cmd/go/main.go:225 +0x3d9
main.main()
        /usr/lib/go/src/cmd/go/main.go:179 +0x7ce
2023/03/05 14:38:04 [FATAL] exit status 2

It is super cool!
But alas, you have hit a known bug in the go command.
We've figured out, that with Caddy, specifying the version of v2.6.3 or higher (v2.6.4 is current) fixes it. The plugin can do that in its go.mod or you can manually create a replacement in your own go.mod.

I've had to update both the Caddy and the Tailscale dependencies to get this to build and to work (somehow with the old Tailscale version the node would seemingly be connected to the tailnet but no traffic would actually go through)
--- a/go.mod
+++ b/go.mod
@@ -3,8 +3,8 @@ module github.com/tailscale/caddy-tailscale
 go 1.19

 require (
-       github.com/caddyserver/caddy/v2 v2.5.3-0.20220831215348-67098e5cbd68
-       tailscale.com v1.1.1-0.20220902232949-3344c3b89bd1
+       github.com/caddyserver/caddy/v2 v2.6.4
+       tailscale.com v1.36.2
 )

 require (

(+ many more changes after running go mod tidy)
I've also had to patch the module slightly because the newer version of tsnet verifies the network parameter in Listen. I just hardcoded "tcp", not sure if that's strictly correct but it seemed to work.
--- a/module.go
+++ b/module.go
@@ -46,7 +46,7 @@ func getPlainListener(_ context.Context, network string, addr string, _ net.List
                return nil, err
        }

-       return s.Listen(network, ":"+port)
+       return s.Listen("tcp", ":"+port)
 }

 func getTLSListener(_ context.Context, network string, addr string, _ net.ListenConfig) (any, error) {
@@ -60,7 +60,7 @@ func getTLSListener(_ context.Context, network string, addr string, _ net.Listen
                return nil, err
        }

-       ln, err := s.Listen(network, ":"+port)
+       ln, err := s.Listen("tcp", ":"+port)
        if err != nil {
                return nil, err
        }

specifying the version of v2.6.3 or higher (v2.6.4 is current) fixes it.

As we also concluded in #9, this has to be proposes as a PR

I applied to changes as originally I also ran into compiling issues with the old dependencies (ref: #9). I have a repo, that works with gitpod at: https://gitpod.io/#https://github.com/spotsnel/caddy-tailscale
the changes in module.go are needed, otherwise it fails to start with:
Error: loading initial config: loading new config: http app module: start: listening on tailscale/caddy:80: unsupported network type
Besides this, it works... any suggestions to remove the hard-coded tcp part?

Hey ! Running into same issue here !
Here are some logs, if they are some kind of useful :
2023/06/15 21:00:24 [INFO] exec (timeout=-2562047h47m16.854775808s): /usr/local/go/bin/go get -d -v
2023/06/15 21:00:28 [INFO] Build environment ready
2023/06/15 21:00:28 [INFO] Building Caddy
2023/06/15 21:00:28 [INFO] exec (timeout=-2562047h47m16.854775808s): /usr/local/go/bin/go mod tidy -e
go: finding module for package golang.org/x/crypto/internal/subtle
caddy imports
        github.com/tailscale/caddy-tailscale imports
        tailscale.com/tsnet imports
        tailscale.com/ipn/ipnlocal imports
        github.com/tailscale/golang-x-crypto/ssh imports
        github.com/tailscale/golang-x-crypto/chacha20 imports
        github.com/tailscale/golang-x-crypto/internal/subtle tested by
        github.com/tailscale/golang-x-crypto/internal/subtle.test imports
        golang.org/x/crypto/internal/subtle: module golang.org/x/crypto@latest found (v0.10.0), but does not contain package golang.org/x/crypto/internal/subtle
2023/06/15 21:00:28 [INFO] exec (timeout=-2562047h47m16.854775808s): /usr/local/go/bin/go build -o /home/pi/temp/caddy -ldflags -w -s -trimpath
package caddy
        imports github.com/tailscale/caddy-tailscale
        imports tailscale.com/tsnet
        imports tailscale.com/ipn/ipnlocal
        imports tailscale.com/net/dns
        imports tailscale.com/net/tstun
        imports gvisor.dev/gvisor/pkg/tcpip
        imports gvisor.dev/gvisor/pkg/atomicbitops
        imports gvisor.dev/gvisor/pkg/cpuid
        imports gvisor.dev/gvisor/pkg/state
        imports gvisor.dev/gvisor/pkg/state/wire
        imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /home/pi/go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20220801230058-850e42eb4444/pkg/gohacks
2023/06/15 21:00:29 [INFO] Cleaning up temporary folder: /tmp/buildenv_2023-06-15-2100.2723375457
2023/06/15 21:00:29 [FATAL] exit status 1

pi@john:~/temp $ go version
go version go1.20.5 linux/arm64

I'm on Raspberry Pi 4GB, running latest Go and xcaddy, Raspberry Pi OS based on Debian 11.

Oh, I didn't realised it wasn't the same issue

@fr3nchalp4a I ran into that issue as well.
Manually patched the value in go.mod to use the value from https://github.com/tailscale/tailscale/pull/6168/
I'm still running into some issues, but am getting closer.
caddy imports
        github.com/tailscale/caddy-tailscale imports
        tailscale.com/util/strs: cannot find module providing package tailscale.com/util/strs
caddy imports
        github.com/caddyserver/caddy/v2/modules/standard imports
        github.com/caddyserver/caddy/v2/modules/caddypki/acmeserver imports
        github.com/smallstep/certificates/acme imports
        github.com/smallstep/go-attestation/attest imports
        github.com/google/go-tpm/tpm2/credactivation: cannot find module providing package github.com/google/go-tpm/tpm2/credactivation
        ```

The first error is due to this [commit](https://github.com/tailscale/tailscale/commit/b1248442c3e40371c34fdf5bd90138b3ece615a7).

I'm going to need to learn some go to tackle this, it seems like mashing commands I don't understand isn't going to get me to power through the dependency hell that my chosen set of plugins seems to create.

`xcaddy` does panic with the exception that started this thread.

xcaddy version
v0.3.4

xcaddy build --with github.com/tailscale/caddy-tailscale --with github.com/caddyserver/caddy/v2/modules/standard --with github.com/caddy-dns/cloudflare --with github.com/lum8rjack/caddy-maxmind-geolocation

[ Snipped ]go: downloading github.com/jackc/pgproto3/v2 v2.3.1
go: downloading github.com/golang/glog v1.0.0
panic: internal error: can't find reason for requirement on github.com/google/pprof@v0.0.0-20210407192527-94a9f03dee38
goroutine 1 [running]:
cmd/go/internal/modget.(*resolver).updateBuildList.func1({{0xc001605e90, 0x17}, {0xc000034660, 0x22}})
/nix/store/i3ab37h47xmd0zh75708gj57hah7v7f4-go-1.20.5/share/go/src/cmd/go/internal/modget/get.go:1760 +0xd4
cmd/go/internal/modget.(*resolver).updateBuildList(0xc00013e000, {0xb45e38, 0xc000032240}, {0x0, 0x0, 0x0})
/nix/store/i3ab37h47xmd0zh75708gj57hah7v7f4-go-1.20.5/share/go/src/cmd/go/internal/modget/get.go:1765 +0x54c
cmd/go/internal/modget.(*resolver).applyUpgrades(0xc00013e000, {0xb45e38, 0xc000032240}, {0x0?, 0x0, 0xc0000bfd70?})
/nix/store/i3ab37h47xmd0zh75708gj57hah7v7f4-go-1.20.5/share/go/src/cmd/go/internal/modget/get.go:1312 +0x465
cmd/go/internal/modget.runGet({0xb45e38, 0xc000032240}, 0xc00002e660?, {0xc000024220, 0x2, 0x2})
/nix/store/i3ab37h47xmd0zh75708gj57hah7v7f4-go-1.20.5/share/go/src/cmd/go/internal/modget/get.go:351 +0x458
main.invoke(0xe67340, {0xc0000241f0, 0x5, 0x5})
/nix/store/i3ab37h47xmd0zh75708gj57hah7v7f4-go-1.20.5/share/go/src/cmd/go/main.go:225 +0x3d9
main.main()
/nix/store/i3ab37h47xmd0zh75708gj57hah7v7f4-go-1.20.5/share/go/src/cmd/go/main.go:179 +0x7ce
2023/07/14 19:53:48 [FATAL] exit status 2

I was able to get this to build by replacing the the tailscale-caddy module with the contents on https://github.com/tailscale/caddy-tailscale/pull/13/.
 go mod edit --replace github.com/tailscale/caddy-tailscale=github.com/trea/caddy-tailscale@network-listener-changes

I was able to get this to build by replacing the the tailscale-caddy module with the contents on #13.
 go mod edit --replace github.com/tailscale/caddy-tailscale=github.com/trea/caddy-tailscale@network-listener-changes

Caddy introduced a breaking change so caddytls.AutomationPolicy field Subjects needs to be SubjectsRaw at command.go line 202 to build against Caddy master. After fixing that, you should be able to build with xcaddy build master --with github.com/tailscale/caddy-tailscale=github.com/trea/caddy-tailscale@network-listener-changes.

#13 has been merged, which I believe addresses most (or all?) of the issues mentioned here.  This bumps us to caddy v2.6.4, which @mholt noted fixes the original problem discussed.  #13 also includes some other changes which I believe takes care of needing to hardcard a network value of "tcp" as well as the tailscale.com/util/strs issue.
If any of these problems remain after updating to the latest version of caddy-tailscale, feel free to reply here or open a new issue.

Yayyyy thanks Will!

authors: Zaba anaisbetts fr3nchalp4a gbraad icb- mholt vamega willnorris

repo: tailscale/caddy-tailscale


text:
运行后报错

osx 10.2
Traceback (most recent call last):
  File "/usr/local/bin/douban.fm", line 9, in <module>
    load_entry_point('douban.fm==0.2.8', 'console_scripts', 'douban.fm')()
  File "build/bdist.macosx-10.10-intel/egg/douban/douban.py", line 187, in main
  File "build/bdist.macosx-10.10-intel/egg/douban/douban.py", line 43, in __init__
  File "build/bdist.macosx-10.10-intel/egg/douban/douban.py", line 94, in play
  File "build/bdist.macosx-10.10-intel/egg/douban/douban_token.py", line 154, in get_song
IndexError: pop from empty list

每次都出现吗?

直接下载安装包,或git clone,没有安装mplayer的时候一直报错.
看了下报错信息:
pop from empty list

我以为是我的收藏列表为空,就下载了app,收藏了几个.发现还是报错.
最后安装了mplyer之后,可以播放了.
我以为你的这个python setup.py install,可以直接运行了的.
osx貌似用afplay,mpg123都可以.

authors: taizilongxu urmyfaith


text:
tsconfig paths not works

Describe the bug
Hi. I just tried to upgrade @ladle/react from v2.4.5 to v2.11.1, and met this problem:

My project is a nx monorepo, and ladle is an app. @/... is actually a lib consumed by other apps. With the tsconfig:
"compilerOptions": {
    "paths": {
      // align with apps tsconfig
      "@/*": ["../app-shared/*"],
    },
	"include": [
      "**/*",
      "./.ladle/**/*",
      "../app-shared/**/*",
    ]
  },

it worked quite well originally.
Looking up release logs, I wonder the problem has something to do with this patch?
Environment

OS: WSL2
Version 2.11.1

Are you using yarn pnp? If so, 2.11.1 disables vite-tsconfig-paths in pnp environment. We had some issues with it in our internal monorepo but it might be specific to our (pretty complicated) setup. You can add it back by creating your own vite.config.js.

Nope, I don't. But I do have customized vite.config.ts for configuring pubicDir. Might it be the cause?
// vite.config.js
/**
 * @type  {import("vite").UserConfig}
 */
export default {
  publicDir: "public",
};

Hi, my case is less simpler, so I made some extractions to demo the issue: https://github.com/donrsh/issue-ladle-tsconfig-path-not-work

it got broken by updating vite-tsconfig-paths@3.6.0 to vite-tsconfig-paths@4.0.0
going to pin it down in Ladle to 3.6.0
in meantime, you can fix your setup by adding this into package.json
"resolutions": {
  "vite-tsconfig-paths": "3.6.0"
},

authors: donrsh tajo

repo: tajo/ladle


text:
Notebook links not converted correctly

I'm having trouble with the treatment of links to notebooks in latex output.  No matter what I do, running bookbook just converts them to hyperlinks (\href).
If I make a test markdown file with a link like
[link](01-notebook.ipynb)

and run
pandoc --filter ./filter_links.py -f markdown -t latex test.md

it works fine; I get Section \ref{sec:01-notebook} as expected.  I've also tried patching nbconvert by pasting bookbook's filter_links.py code into nbconvert's version, and then running nbconvert on a notebook with links; that works correctly.
It seems to me like the convert_link code in bookbook simply never gets called.  Do you have a working example so that I could verify whether the problem is with my setup?

I wonder if https://github.com/jupyter/nbconvert/commit/178ce3d31c92d06a4294634f12c8cc393db37216 could possibly have broken this?

Yep, I think one of those changes in nbconvert has indeed broken bookbook. Specifically, I think it's a change to the template that makes it no longer use the Jinja filter bookbook overrides.

I've tried patching it but so far without success.

Have a go with that. You may need to update the pandocfilters package.

Thanks for the help.  Somehow it still does not work for me.  It must be a problem with my setup, because the test also fails on my system.

I got things working, as noted in my comment on https://github.com/takluyver/bookbook/issues/5.  Thanks again, and many thanks for creating this!  It has been very useful.  In case you're interested, the project I'm using it for is here (it's somewhat of a mess at the moment):
https://github.com/clawpack/riemann_book

Great, thanks for helping to track down bugs in experimental code :-)

authors: ketch takluyver

repo: takluyver/bookbook


text:
Usage in macOS for Xamarin

Hi takuya-takeuchi,
I'm new to .net platform, and I'm currently using Xamarin (from visual studio for Mac) to develop apps for iOS and Android. Since it is a .net package, I just assumed that it will also work in Xamarin. So here are my questions:

Can we build the project with CPU only? Is <cpu/cuda> choosing either cpu or cuda?
Can you please explain the parameters used in the build command
Build.ps1 <Debug/Release> <cpu/cuda> 64 desktop <2015/2017/2019> <92/100/101>
What does desktop <2015/2017/2019> <92/100/101> mean?

Thank you very much!

@Lingfeng158
I'm very sorry.
I didn't check osx build work for a long time.
Build.ps1 does not support Linux and OSX.
You can use https://github.com/takuya-takeuchi/OpenPoseDotNet/blob/master/src/BuildMacOSX.sh.
$ ./BuildMacOSX.sh Release

And this script support only cpu.
Because I have no osx machine with nvidia gpu.

Thank you for your promptly response! I encountered a few questions when trying to build with $ ./BuildMacOSX.sh Release
I tried both BuildMacOS.sh from ./src and ./src/OpenPoseDotNet.Native, but they pose similar errors:
./src/OpenPoseDotNet.Native/BuildMacOS.sh:
CMake Error at CMakeLists.txt:54 (find_package):
  By not providing "FindGFlags.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "GFlags", but
  CMake did not find one.

  Could not find a package configuration file provided by "GFlags" with any
  of the following names:

    GFlagsConfig.cmake
    gflags-config.cmake

  Add the installation prefix of "GFlags" to CMAKE_PREFIX_PATH or set
  "GFlags_DIR" to a directory containing one of the above files.  If "GFlags"
  provides a separate development package or SDK, be sure it has been
  installed.```

and from ./src/BuildMacOS.sh:

-- Could NOT find GFlags (missing: GFLAGS_INCLUDE_DIR GFLAGS_LIBRARY)
-- Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY)
CMake Error at /usr/local/Cellar/cmake/3.18.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.18.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.18.1/share/cmake/Modules/FindProtobuf.cmake:626 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:431 (find_package)

Both saying that GFlag is missing.

How could I fix it?

Thank you for your promptly response!
May I ask which BuildMacOS should I use? The one in src/ or the one in src/OpenPoseDotNet.Native?
Also I encountered the following problem:
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)

Which is a problem of my environment I believe. Solutions on forums suggest that CMakeList.txt needs to be changed; however, I cannot find the cmakelist that your script use.
Could you please point me to the right cmakelist that you use?
Thank you very much!

So I managed to build the source code, and the console outputs   Built target openpose_lib in the end, but I wasn't able to find the file anywhere in my computer. Do you know where could it be?
In addition, since it is a .net package, is it possible that you can release a cpu-only package that can be directly used on macOS?
Thank you for your project!

I'm sorry that I pose multiple questions consecutively, but I'm a bit confused about the overall usage of your project. I would like to use your library inside other projects, i.e. by including using OpenPoseDotNet in some files.
However, I wasn't able to find the library after I build it. How do I access OpenPoseDotNet's API in other projects?
Do I also need to install your NuGet package from
```?

I'm sorry that I pose multiple questions consecutively, but I'm a bit confused about the overall usage of your project, as I'm very new to .net and NuGet systems. Currently I hold a few questions about the project:

After build the project using src/BuildMacOSX.sh, I can find all the files in src/OpenPoseDotNet in Visual Studio. I would like to try out OpenPoseDemo, but I wasn't able to find any quick start guide for macOS. How should I use OpenPoseDemo under macOS?

Other tutorials start with executable or binary of OpenPose, but openposeDotNet it is a .NET Standard library, I assume that there is no executable for macOS? Then how should I use the library to make predictions?

What I would like to achieve is to input pictures of body and output coordinates of joints; input pictures of a face and output coordinates of the face. Could you please give me some suggestions/directions on using the library?

Thank you very much, and again, I'm deeply sorry for posting/editing/deleting my post repeatedly.

@Lingfeng158

After run BuildOSX.sh, you find libopenpose.dylib but I can not current develop branch.

openposeDotNet is library, And you can use in your .NET core  apps. You can build examples and run it by using openposeDotNet.dll and libopenpose.dylib.
But due to 1., it is expectation.

These examples could satisfy your requirements.

Face

https://github.com/takuya-takeuchi/OpenPoseDotNet/tree/master/examples/TutorialApiCpp/06_FaceFromImage

Body

https://github.com/takuya-takeuchi/OpenPoseDotNet/tree/master/examples/TutorialApiCpp/02_WholeBodyFromImageDefault

@Lingfeng158
Latest develop branch support osx cpu binary.
$ cd nuget
$ pwsh BuildOSX.ps1
$ ls -ls artifacts/cpu/runtimes/osx-x64/native/
total 25640
2200 -rwxr-xr-x  1 t-takeuchi  staff  1123232 Aug 14 11:03 libOpenPoseDotNetNative.dylib
5472 -rwxr-xr-x  1 t-takeuchi  staff  2798824 Aug 14 10:46 libcaffe.1.0.0.dylib
5472 -rwxr-xr-x  1 t-takeuchi  staff  2798824 Aug 14 10:46 libcaffe.dylib
6248 -rwxr-xr-x  1 t-takeuchi  staff  3195368 Aug 14 10:51 libopenpose.1.6.0.dylib
6248 -rwxr-xr-x  1 t-takeuchi  staff  3195368 Aug 14 10:51 libopenpose.dylib

Thank you for your efforts and response! I will take a look!

I Cant seem to build using develop and BuildOSX.ps1
user@MacBook-Air-2 nuget % pwsh BuildOSX.ps1
Build OpenPoseDotNet.Native [x64] for cpu
Start Build openpose
   cmake -D CMAKE_BUILD_TYPE=Release
         -D USE_CUDA:BOOL=OFF
         -D GPU_MODE=CPU_ONLY
         /Users/jackhonour/Desktop/opdn/src/openpose
   cmake --build . --config Release
End Build openpose
Start Build OpenPoseDotNet.Native
   cmake -D BUILD_SHARED_LIBS=ON
         ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-------------------------------------------------------
-- CMAKE_SYSTEM_INFO_FILE: Platform/Darwin
-- CMAKE_SYSTEM_NAME:      Darwin
-- CMAKE_SYSTEM_PROCESSOR: arm64
-- CMAKE_SYSTEM:           Darwin-22.6.0
-- CMAKE_C_COMPILER:       /Library/Developer/CommandLineTools/usr/bin/cc
-- CMAKE_CXX_COMPILER:     /Library/Developer/CommandLineTools/usr/bin/c++
-- os_version_suffix:
-- Project: /Users/jackhonour/Desktop/opdn/src/OpenPoseDotNet.Native
-- Binaries: /Users/jackhonour/Desktop/opdn/src/OpenPoseDotNet.Native/build_osx_desktop_cpu_x64
-------------------------------------------------------
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/jackhonour/Desktop/opdn/src/OpenPoseDotNet.Native/build_osx_desktop_cpu_x64
gmake[2]: *** No rule to make target 'openpose/src/openpose/libopenpose.dylib', needed by 'libOpenPoseDotNetNative.dylib'.  Stop.
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/OpenPoseDotNetNative.dir/all] Error 2
gmake: *** [Makefile:111: all] Error 2

authors: JaxkDev Lingfeng158 takuya-takeuchi

repo: takuya-takeuchi/OpenPoseDotNet


text:
New Audio Command: !nani

Add a new audio command to the overlay called !nani
Doing this command will trigger the stereotypical "NANI!!" audio queue you hear for animes. Find a source you feel best embodies the power of NANI and add it as a new source.
Good source for audio that might help on the hunt: https://www.myinstants.com/index/us/
Instructions:

Add audio source to: app/static/assets/audio
Add new command information to /app/scripts/helpers/audioFactory.js
Test audio to make sure it isn't too loud compared to other audio commands, tweak the volume if it is

Here's my PR #71 :)


text:
Ignore some errors while proxying

10.5.0.2: 2019/12/05 13:37:16.186640 log.go:87: Unknown [/machine.Machine/Logs] 7.045771818s stream 2 errors occurred:
10.5.0.2: 	* error sending error back: rpc error: code = Canceled desc = context canceled
10.5.0.2: 	* error sending error back: rpc error: code = Canceled desc = context canceled
10.5.0.2:
10.5.0.2:  (:authority=127.0.0.1;content-type=application/grpc;targets=10.5.0.2,10.5.0.3;user-agent=grpc-go/1.25.1)

10.5.0.2: 2019/12/05 13:37:58.747844 log.go:87: Unknown [/machine.Machine/Logs] 3.659807956s stream 2 errors occurred:
10.5.0.2: 	* error sending error back: rpc error: code = Unavailable desc = transport is closing
10.5.0.2: 	* error sending error back: rpc error: code = Unavailable desc = transport is closing
10.5.0.2:

Closed via #6

repo: talos-systems/grpc-proxy


text:
Is it possible to disable telemetry data in Free-RASP-Flutter Plugin?

We are using Free-RASP-Flutter plugin to detect Frida hooking and found plugin collects device data (Screen lock, Biometrics, HW-Backed Keystore, OS versions)
Is it possible/anyway to disable telemetry data in Free-RASP-Flutter Plugin?

Hi,
Any update?

Hello @SymphonyAISummit ,
currently it is not possible to disable the telemetry data. It is also used in one of the reports describing how many of your users have screen lock, biometrics turned on or devices supporting HW-backed keystore.
We might consider adding this option in the future. It would affect all freeRASP packages (even other platforms). I will transfer this to the Ideas, where it can get upvoted.
Kind regards,
Matúš Šikyňa

authors: SymphonyAISummit msikyna

repo: talsec/Free-RASP-Flutter


text:
Add BattleCry generators to facilitate creating/updating schemas

I added BattleCry generators to help creating/updating schemas.
Those who have different setups can easily make use of this generators by editing the schema.generator.js file and/or the templates (they get downloaded via cry download).
Example
cry g schema user name age:int:required cars:string[] favoriteBook:book friends:user[]:default :updateAge

Ideas on how these templates can be improved are very welcome.
Notes
I wasn't sure where to add the description of how to use the generators, so I added them to the main README.md.

@pedsmoreira sorry for the delay on merging that, and thanks a lot for the contribution!

authors: pedsmoreira talyssonoc

repo: talyssonoc/structure


text:
[FEATURE] Improving Shop Page

Description
Hey @IAmTamal I want to improve the UI of the SHop page. Please assign me this issue. Thank you!
Screenshots
No response
🥦 Browser
Google Chrome
Checklist ✅

[X] I checked and didn't find similar issue
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (blank for no)

Hi there, currently there are a lot of changes that are being done with respect to our integrated shop. So I would recommend waiting until all those are taken care of, because with all the API integrations and stuff - the UI is kind of messy.

@tamalCodes Ok bro np!

Hey, @tamalCodes Are the changes still not done?

Can I start working on this issue? @tamalCodes

repo: tamalCodes/Milan


text:
Pass streamers and branch into JaggType to fix issue 61

Closes https://github.com/tamasgal/UnROOT.jl/issues/61 . May not be elegant, but at least now everything (root file/streamers, branch, and leaf) is available inside the JaggType function for maximum flexibility to determine interpretation in the future.

LGTM. We can make it "nicer" later, for now we focus on functionality anyways :) Thanks!

authors: aminnj tamasgal


text:
Use barometer for altitude?

According to this StackOverflow post, GPS has poor altitude information. Should the barometer be used on phones that support it? OTOH, maybe GPS altitude is better just for consistency between different phones?

How can we use barometer to get altitude value?

I don't know :(

https://developer.android.com/reference/android/hardware/SensorManager#getAltitude(float, float)

authors: luke-jr stefanb tananaev

repo: tananaev/traccar-client-android


text:
The leap year bug. Incorrect datetime value: '281916-03-01 11:05:38'

The leap year bug.
Device send devicetime =  0x046da8 = 290216 (29-feb-2016) but traccar convert it into 281916-03-01
2016-02-29 11:06:01  WARN: Data truncation: Incorrect datetime value: '281916-03-01 11:05:58' for column 'deviceTime' at row 1 - MysqlDataTruncation (... < QueryBuilder.java:412 < DataManager.java:329 < DefaultDataHandler.java:27 < ...)

Traccar version 3.1

What device are you using? Also, please provide original HEX message.

device starline M17
HEX: 0208xxxx251848470afa010262daa690013aa4046da83745f8812560df010001126a

It works on the latest version of Traccar.

I will update. Thank you

authors: divelgrom tananaev

repo: tananaev/traccar


text:
Help me with db Traccar-Server

Hi, I am new in this and I need help with any problems with upgrade installation of traccar server. my problem is that icon of my device no show ,  and the log say the problem
 WARN: Column count does not match; SQL statement:
INSERT INTO positions (device_id, protocol, serverTime, time, valid, latitude, longitude, altitude, speed, course, address)
    VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); [21002-194] - JdbcSQLException (... < QueryBuilder:58 < *:135 < DataManager:293 < DefaultDataHandler:27 < ...)

I dont create db and dont know how.
please can you help me. note: sorry for english idiom but I speak and write only spanish,

Traccar creates database schema automatically. I guess you did something wrong, but without any information on what you did, there is no way to tell what the problem is.

Are you sure you are using official version without modifications? It seems like you at least modified config file.

I try upgrade the version modified with google maps traccar GUI

What version?

http://traccar.litvak.su/installation.html
I have you version 3.11 and try upgrade to 3.8 of traccar.litvak.su

That's not an official Traccar project, so you should ask on the project issue tracker, not here. Also, I don't think you can easily migrate between two.

authors: proyntec tananaev


text:
Unable to commit from codesandbox

I loaded the files to codesandbox, i was unable to edit the package.json file initially, but after clicking on fork in codesandbox, i was able to edit. Now after making the necessary changes i clicked on the github icon and all i can see is "Fetching Changes" and i can't see the commit message part. Please help! Thankyou in advance.

Hey,
I am receiving the same issue, are you able to solve it ?

repo: tanaypratap/tanay-demo-blog


text:
Compile Help

Hi, i'm compiling you project and i get some error:
C++ exception handling is not supported with /kernel。
Can you tell me something about how to use stl eg. std::array when writing kernel driver。
I compile it using VS2015 & WDK10.0 。Thanks 。

Many thanks。But i have some confusion，does all stl libray work correctly?  Have you ever occasionally got some unsupported situation?

The use of STL is merely for faster prototyping, and I do not believe all part of STL work correctly (if it does, it should have been supported by Microsoft). Some might not compile and some might trigger unexpected runtime behaviour.
I personally have not seen any issues with the very limited use of STL in the kernel, but I guess exception would cause an issue (I do not remember what STL does when _HAS_EXCEPTIONS is zero).

i get it。thanks。

authors: Pai-Po tandasat


text:
Update a document about creating a new project with regard to submodules

Using submodules instead of copying files is planned. Update the user document once we started to use submodules in order to reflect related operational changes.

Fixed at 7fcebb546244b2e1f7d8348d84c62b795bd99ffd

repo: tandasat/HyperPlatform


text:
【HEO主题】安知鱼主题美化

为什么提出这个新的特性改动
heo主题还是不敢好看，部分页面如友链/关于我都没有美化
描述一下你推荐的解决方案
希望可以让安知鱼主题和heo一样可一键切换，谢谢。

你好，安知鱼是指这个主题吗：https://blog.anheyu.com/

是的，感谢大佬的回复。但是根据我的了解这个主题要用hexo是不可能一键部署并且切换的。请原谅小白的错误。


text:
Model Weights?

Hello!
Thank you for your incredible work here, as well as releasing your data scripts. I was wondering if you would consider releasing the model you've trained and reported metrics on in the paper? It would be great to give the model a try on new APIs!
Thank you again!

Thank you for your kind words and interest in our work. The trained models are now available on Hugging Face Hub. You can find them at the following links:

ToolAlpaca-7B
ToolAlpaca-13B

For usage and evaluation, please refer to the 'Evaluation' section in the README. I hope this helps and I look forward to any further questions or feedback you may have.

authors: VenkatKS tangqiaoyu

repo: tangqiaoyu/ToolAlpaca


text:
Add various religion icons

Mostly copy them over from Walkabout icons.

authors: nvkelso sensescape

repo: tangrams/tron


text:
Incorrect types for onlineManager.setEventListener

Describe the bug
I'm trying to use onlineManager.setEventListener for React Native. The docs give this code snippet:
 import NetInfo from '@react-native-community/netinfo'
 import { onlineManager } from 'react-query'

 onlineManager.setEventListener(setOnline => {
   return NetInfo.addEventListener(state => {
     setOnline(state.isConnected)
   })
 })

However, setOnline is an empty function that doesn't receive any arguments (according to TypeScript types).
To Reproduce
Steps to reproduce the behavior:
See this Expo Snack: https://snack.expo.io/@nandorojo/ashamed-popsicle
Expected behavior
setOnline should be a function that expects a boolean, based on the docs.
Screenshots

This is the error:

Desktop (please complete the following information):

OS: n/a
Browser: n/a
Version: "react-query": "^3.13.0"

Smartphone (please complete the following information):

Device: n/a
OS: n/a
Browser: n/a
Version: n/a

Additional context
It seems like setEventListener is passing the wrong setOnline function. When I call onlineManager.setOnline directly, it seems like the types are correct:
onlineManager.setEventListener(() => {
  return NetInfo.addEventListener((state) => {
    onlineManager.setOnline(state.isConnected)
  })
})

I'm not sure if that will cause any circular references or anything. I'll stick to that for now. Maybe the docs need updating if this is the correct usage.

Also, for what it's worth, importing NetInfo directly breaks SSR on web because it requires window.
I think the real solution for React Native (which is also compatible with web) is this:
import { Platform } from 'react-native'

if (Platform.OS !== 'web') {
  const Network: typeof NetInfo = require('@react-native-community/netinfo')
    .default
  onlineManager.setEventListener(() => {
    return Network.addEventListener((state) => {
      onlineManager.setOnline(state.isConnected)
    })
  })
}

I agree, this looks like a bug. This is the type definition:
https://github.com/tannerlinsley/react-query/blob/7c08f330ec54383b9116f3580e0cc74eeb606a84/src/core/onlineManager.ts#L15
so it looks like the cleanup function actually gets passed the online flag, not the actual event handler

Right, looks like those just need to get swapped.

like so maybe?
https://github.com/tannerlinsley/react-query/pull/2053

That looks right.

authors: TkDodo nandorojo

repo: tannerlinsley/react-query


text:
socket/communicate: restart Unix socket when the deserialize fails

        // XXX: “If this returns an Error, `reader` may be in an invalid state”.
        // what the heck does that mean.
        bincode::deserialize_from(timeout_socket).map_err(|e| {

https://github.com/target/lorri/pull/81#discussion_r295205662

I think that means the socket is tainted and should be restarted, since a read may resume in a weird spot in the data stream.

This should be easy to solve.

Since we switched to varlink, this is not relevant anymore.

repo: target/lorri


text:
bug: sending conflicted transactions at the same time seem to crash VNs

Happens on a tari_swarm network.
For example sending this transactions 2 times:
async function initFaucet(provider: TariUniverseProvider, initSupply: string, symbol: string) {
  const req: SubmitTransactionRequest = {
    account_id: 1,
    instructions: [
      {
        CallFunction: {
          template_address: FAUCET_TEMPLATE_ADDRESS,
          function: "mint_with_symbol",
          args: [initSupply, symbol]
        }
      }
    ],
    input_refs: [],
    required_substates: [],
    is_dry_run: false,
    fee_instructions: [{
      CallMethod: {
        component_address: ACCOUNT_ADDRESS,
        method: "pay_fee",
        args: ["1000"]
      }
    }],
    inputs: [],
    min_epoch: null,
    max_epoch: null
  };
  try {
    const txResponse = await provider.submitTransaction(req);
    return txResponse
  } catch (error) {
    console.error(error)
  }
}

This has been fixed

repo: tari-project/tari-dan


text:
react-spring使用有问题

如图，按文档给的方法，使用出问题，怎么回事呀。

0.31.0 已修复, 这个问题只出现在 production 环境, 之前没发现.

authors: Mihawk-zhao cncolder

repo: tarojsx/library


text:
can't run on large file with complex query

I'm running tarql on a 3.4Gb file with 4,000,001 rows. My query is 420 lines.
java's eaten 2Gb RAM and stays at 90-95% CPU, for half an hour now.
There is no output yet.
The same query is tested sucessfully with 33k rows.
Questions:

Does tarql try to slurp the whole input file?
Does it try to build RDF model in memory

If so, that's IMHO a very bad architectural decision. There's no flow of info from row to row (except ?ROWNUM), so it can process and output one row at a time. There's no reason to eat 2Gb if each row is under 2-3k.
Of course I can split the file to 100 chunks but... Maybe I better turn to r2rml+sql.

Ran out of memory after 30-40 min. I think this is while still reading the input (1 above):
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at com.hp.hpl.jena.graph.impl.LiteralLabelFactory.create(LiteralLabelFactory.java:87)
        at com.hp.hpl.jena.graph.NodeFactory.createLiteral(NodeFactory.java:66)
        at com.hp.hpl.jena.graph.NodeFactory.createLiteral(NodeFactory.java:55)
        at org.deri.tarql.CSVParser.toBinding(CSVParser.java:104)
        at org.deri.tarql.CSVParser.next(CSVParser.java:150)
        at org.deri.tarql.CSVParser.next(CSVParser.java:26)
        at org.deri.tarql.CSVTable$2.next(CSVTable.java:77)
        at org.deri.tarql.CSVTable$2.next(CSVTable.java:65)
        at com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper.moveToNextBinding(QueryIterPlainWrapper.java:57)

        at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.nextBinding(QueryIteratorBase.java:154)
        at com.hp.hpl.jena.sparql.algebra.table.TableN.materialize(TableN.java:53)
        at com.hp.hpl.jena.sparql.algebra.table.TableN.<init>(TableN.java:43)
        at com.hp.hpl.jena.sparql.algebra.TableFactory.create(TableFactory.java:54)
        at com.hp.hpl.jena.sparql.engine.main.iterator.QueryIterJoinBase.calc(QueryIterJoinBase.java:51)
        at com.hp.hpl.jena.sparql.engine.main.iterator.QueryIterJoinBase.<init>(QueryIterJoinBase.java:47)
        at com.hp.hpl.jena.sparql.engine.main.iterator.QueryIterJoin.<init>(QueryIterJoin.java:30)
        at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:337)
        at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:220)
        at com.hp.hpl.jena.sparql.algebra.op.OpTable.visit(OpTable.java:58)
        at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:47)
        at com.hp.hpl.jena.sparql.engine.main.OpExecutor.exec(OpExecutor.java:123)
        at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:237)
        at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:131)
        at com.hp.hpl.jena.sparql.algebra.op.OpSequence.visit(OpSequence.java:75)
        at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:47)
        at com.hp.hpl.jena.sparql.engine.main.OpExecutor.exec(OpExecutor.java:123)
        at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:441)
        at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.visit(ExecutionDispatch.java:300)
        at com.hp.hpl.jena.sparql.algebra.op.OpExtend.visit(OpExtend.java:100)
        at com.hp.hpl.jena.sparql.engine.main.ExecutionDispatch.exec(ExecutionDispatch.java:47)
        at com.hp.hpl.jena.sparql.engine.main.OpExecutor.exec(OpExecutor.java:123)
        at com.hp.hpl.jena.sparql.engine.main.OpExecutor.execute(OpExecutor.java:94)

So tarql can be used only on small toy examples?

Vladimir, Tarql is supposed to stream, and I've used it on files that were larger than the available VM memory. I cannot say why it's not working in your case.
I tend to use --ntriples but that might just be superstition.
Does a trivial mapping work on the same input?
You can also just give it more memory by setting $JAVA_OPTS to something like -Xmx8G. You're not trying to run this on your phone are you? ;-)

I downloaded a binary from http://lab.linkeddata.deri.ie/2013/tarql/tarql-1.0a-bin.zip. Is there a newer version? Should I build from source?
a select * or even select one col doesn't stream rows. I think the reason is that it wants to compute the col width for output
a trivial construct (all fields emitted against one node) streams rows, even if it has all 151 cols
my construct has about 100 binds, makes about 25 (connected) nodes and dispatches about 130 values among these nodes

But the same construct is tested successfully with 20-33k rows.
For 20k rows, there is a 5s delay, it eats 1Gb RAM, then starts streaming rows.
WEIRD. Smells like a memory leak?

The version you found is outdated and indeed doesn't stream (and the charge of only working with toy examples is somewhat justified).
Yes, please build from source. Sorry for the lack of an official binary release.

Thanks! We'll try that right away.

We build it and we experience similar behaviour. The line bellow seems to read the whole csv file prior to writing any triple. Then how the model is created?
https://github.com/tarql/tarql/blob/master/src/main/java/org/deri/tarql/CSVParser.java#L187
Our expectation was that you will build an RDF model per line and write that into triples. Note that we don't have references between lines. What writing in streams means?
thanks!

@pandid The line you're pointing to just skips empty lines at the beginning of the file. It doesn't read in the whole file.
What version are you using?

Apologies. I might have digging deeper into the code.
Anyway, I have build it from source, and I see it running for few hours, runs some threads but I see my ttl file still empty.
I've tried to force jstack and see what is going on. Here is part of the stack...
Thread 29398: (state = IN_JAVA)

au.com.bytecode.opencsv.CSVParser.parseLine(java.lang.String, boolean) @bci=422, line=213 (Compiled frame; information may be imprecise)
au.com.bytecode.opencsv.CSVParser.parseLineMulti(java.lang.String) @bci=3, line=174 (Compiled frame)
au.com.bytecode.opencsv.CSVReader.readNext() @bci=21, line=237 (Compiled frame)
org.deri.tarql.CSVParser.next() @bci=14, line=146 (Interpreted frame)
org.deri.tarql.CSVParser.next() @bci=1, line=26 (Interpreted frame)
org.deri.tarql.CSVTable$2.next() @bci=14, line=77 (Interpreted frame)
org.deri.tarql.CSVTable$2.next() @bci=1, line=65 (Interpreted frame)
com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper.moveToNextBinding() @bci=4, line=57 (Interpreted frame)
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.nextBinding() @bci=67, line=154 (Interpreted frame)

Okay, thanks for checking. Does a trivial mapping (empty WHERE clause) work on the same input?

Ok thanks for the hint. I also have tried to debug the code. The code repeatedly calls CSVParser method next for quite a while. Is it parsing the csv there? I've seen next() have been called on each line?
I've also run the code with trivial mapping, still waiting for the result. It keeps calling on the same method
at org.deri.tarql.CSVParser.next(CSVParser.java:146)
I will keep you posted how it goes tomorrow as it still runs.
thanks for your help!

OK so with empty where clause it runs over night and still haven't finished. The jstack shows it still reads lines under next in CSVParser. I've run it with 30g and this is the current memory state:
Heap
PSYoungGen      total 10485248K, used 9173312K [0x0000000580000000, 0x0000000800000000, 0x0000000800000000)
eden space 10484736K, 87% used [0x0000000580000000,0x00000007afe382b0,0x00000007fff00000)
from space 512K, 18% used [0x00000007fff80000,0x00000007fff98000,0x0000000800000000)
to   space 512K, 0% used [0x00000007fff00000,0x00000007fff00000,0x00000007fff80000)
ParOldGen       total 9979392K, used 4400921K [0x0000000080000000, 0x00000002e1180000, 0x0000000580000000)
object space 9979392K, 44% used [0x0000000080000000,0x000000018c9c6700,0x00000002e1180000)
Metaspace       used 11960K, capacity 12010K, committed 12160K, reserved 1060864K
class space    used 1599K, capacity 1617K, committed 1664K, reserved 1048576K
waiting for some next steps. I will run it with more memory while I'll wait for your input.

Just to confirm: It has been running overnight without starting to generate any output? And this is with --ntriples?

no output. No --ntriples as well.

this is how I run it:
tarql  -t ../config/link1.tarql unix.tdv > unix.ttl

Hi @cygri!
There are a bunch of values that I need to make conditional, eg 1. ignore fields of all zeros, 2. emit /address/physical URL only if some fields for the physical address are present... About half of the 100 binds are conditional
  # Ignore value 000 in county_code, state_prov_code, country_code, continent_code
  bind(if(regex(?phy_city_code      ,"^0+$"),?undef,uri(concat(str(dnb:),"country/",?phy_country_code,"/city/",     ?phy_city_code      ))) as ?phyCityUrl)
  bind(if(regex(?phy_county_code    ,"^0+$"),?undef,uri(concat(str(dnb:),"country/",?phy_country_code,"/county/",   ?phy_county_code    ))) as ?phyCountyUrl)
  bind(if(regex(?phy_state_prov_code,"^0+$"),?undef,uri(concat(str(dnb:),"country/",?phy_country_code,"/stateProv/",?phy_state_prov_code))) as ?phyStateProvUrl)
  bind(if(regex(?phy_country_code   ,"^0+$"),?undef,uri(concat(str(dnb:),                             "country/",   ?phy_country_code   ))) as ?phyCountryUrl)
  bind(if(regex(?phy_continent_code ,"^0+$"),?undef,uri(concat(str(dnb:),                             "continent/", ?phy_continent_code ))) as ?phyContinentUrl)
  bind(coalesce(?phy_addr1, ?phy_addr2, ?phy_postal_code, ?phyCityUrl, ?phycountyUrl, ?phyStateProvUrl, ?phyCountryUrl,  ?phyContinentUrl) as ?hasPhyAddr)
  bind(if(bound(?hasPhyAddr),uri(concat(str(?companyUrl),"/address/physical")),?undef) as ?phyAddrUrl)
  bind(if(?available_address_phy="Y",true,if(?available_address_phy="N",false,?undef)) as ?available_address_PHY)

I use a "variable" ?undef because SPARQL allows the constant UNDEF to be used in only one place:
  values ?undef {undef}

It is this single line (the first thing in WHERE) that fucks up everything.
Replacing it with this:
  bind(1+"undef" as ?undef)

fixes the problem.
So we have a workaround, but I think I found a bug in ARQ. Can you help me formulate it?

Wrote too soon.

the tdv input is 3.4Gb (4M rows)
we expect the ttl output to be about 26Gb
but after outputting 1.05G, it gets stuck (stops outputting). This is exactly 1,132,167,168 bytes: we tried on Windows and Ubuntu with different Java, it stops at the same place.
On Windows, the process consumes 25-30% CPU and 2.2Gb RAM (slowly growing).
the last few lines of Turtle are:

<http://data.ontotext.com/resource/dnb/country/805/city/007554>
        rdf:type                  dnbo:City ;
        fibo-fnd-rel-rel:hasUniqueIdentifier  "007554" ;
        fibo-fnd-rel-rel:hasName  "Scottsdale" ;
        dnbo:hasCounty            <http://data.ontotext.com/resource/dnb/country/805/county/467> ;
        dnbo:hasStateProv         <http://data.ontotext.com/resource/dnb/country/805/stateProv/005> ;
        dnbo:hasCountry           <http://data.ontotext.com/resource/dnb/country/805> .

<http://data.ontotext.com/resource/dnb/country/805/county/467>
        rdf:type                  dnbo:County ;

There's nothing strange about the data for this county. It has been output before (there is redundancy in the data):

<http://data.ontotext.com/resource/dnb/country/805/county/467>
        rdf:type                  dnbo:County ;
        fibo-fnd-rel-rel:hasUniqueIdentifier  "467" ;
        fibo-fnd-rel-rel:hasName  "Maricopa" ;
        dnbo:hasStateProv         <http://data.ontotext.com/resource/dnb/country/805/stateProv/005> ;
        dnbo:hasCountry           <http://data.ontotext.com/resource/dnb/country/805> .

(after killing the process, it appended "fTerminate batch job (Y/N)?", for a total of 1,132,167,197 bytes)
it gets stuck at row 173394 of 4000001 (4.3%)

> grep -n 00011023889 link_jun2014_f1.tdv
173394:00011023889      N       N       N       Banana Republic, LLC    Banana Republic N       7014 E Camelback RdScottsdale   Maricopa        Arizona USA...

Try --ntriples. No idea whether that will make a difference, but it would narrow down where the problem is.
ARQ doesn't seem to optimise VALUES very well. The way you use it, it should just add a new variable with unbound value to each row. Instead, ARQ seems to execute it by doing a join between a one-row table and a 4M-row table, and the join implementation forces a slurp of the entire file into memory.
The ARQ version we use is pretty old, so this may well be fixed in more recent versions. But Tarql uses internal ARQ APIs that have changed since, so upgrading isn't trivial.
We could add a pre-provided variable ?null or ?unbound or ?undef to address your use case.
The hang after 1,132,167,168 bytes is interesting. It's divisible by 2^15, so the number is probably not random. It is also just above 50% of the maximum length of a String in Java. So maybe it's keeping the entire String somewhere in a buffer, and the buffer auto-grows by doubling in size when it's full, and it gets stuck when trying to grow the buffer beyond the maximum size supported by Java? The Windows memory usage numbers lend support to that theory—a string of that many bytes would take around 2.1G of memory. Anyway, it seems that the sticking point is writing the output, and not reading the input, and also not total available memory.
Hence the question about --ntriples. It uses a different code path for the output. If that doesn't work, then probably a deep dive into the Jena output classes used from StreamingRDFWriter.java is needed.

Unfortunately   using the --ntriples  options leads to the same outcome. It hangs after 2.6 gb.

should we post a bug against ARQ VALUES?
 bind(1+"undef" as ?undef) makes such a variable
your buffer auto-growth theory is interesting. But it does spit out triples in a streaming fashion, so why would it need to grow the buffer so many times?
I also think it hangs on output not input. But how about the stack trace above: doesn't it indicate parseLine(CSVParser.java:213)? Or it's not actually stuck at that place...
Splitting to chunks of 100001 rows is a workable workaround for us. Cheers!

I don't see evidence of a bug in ARQ. There is a a possible lack of optimisation. Tarql is an atypical use of ARQ, and the response could just be that it was not designed for situations involving 4M rows. And as I said, it's an old version of ARQ and an effort should be made to check if the problem is still there in the current version.
The fact that --ntriples outputs significantly more data but then also hangs speaks against the theory of a problem in the output pipeline. (Did it hang at the same input row?)
I looked at the CSVParser.java sources earlier and couldn't see any smoking gun. No I/O is performed there, just some string munging. The only potential problem I can see there would be a runaway quote in the input. That is, an opening quote that is never closed, leading to the rest of the file being mistreated as the contents of the same cell. I thought this theory didn't fit some of the evidence you gave earlier.
Could you have a look in the input file for suspicious unmatched quotes in the lines surrounding the last successful one?

The first quote is at row 1181 (id 00001095236) and involves these names:  Toys "r" Us, Inc. and Toys "R" Us. It is correctly converted to:
        fibo-fnd-rel-rel:hasLegalName  "Toys \"r\" Us, Inc." ;
        fibo-fnd-rel-rel:hasAlias      "Toys \"R\" Us" ;

There are no tabs in the file: this returns nothing:
grep -an $'\t' link*.txt

@VladimirAlexiev I have investigated further and now believe that you have a stray unclosed double quote somewhere in your input file. I have tested that case on a large file, and the result is consistent with what you have observed: It stops producing output, and slows to a crawl (down to a handful of lines read per second). This is due to inefficient handling of multi-line values in the CSV parser we use (OpenCSV).
Look for a value containing just an opening double quote and no matching closing double quote, like Toys "R Us, Inc., somewhere shortly after line 173394.

You're exactly right!
perl -ne '@matches = m{(")}g; $matches=@matches; print "$matches quotes, line $.: $_" if $matches%2' link*.txt
1 quotes, line 173397: 00011024150NNNGone Troppo Inc    Emack & Bolio"s ...

What threw me off is that balanced quotes (as in Toys "r" Us) are handled as literal chars.
So what should I do now, quote it as \" ?

Yes, OpenCSV's handling of quotes in the middle of content is somewhat questionable. But then, CSV is a rather rubbish and underspecified format with many different variations, so it is very hard to say what the correct behaviour would be.
The standard way of escaping quotes in CSV is by doubling them: Emack & Bolio""s. I think this works in OpenCSV.
I've submitted a patch to OpenCSV that would throw a reasonably helpful exception in this case:
https://sourceforge.net/p/opencsv/patches/54/

Thanks for your help!
Using double quote fixes the issue.
(but I think I'll convert to single apostrophe in this case).

If your file doesn't make use of quotes around fields, you can also set --quotechar to some character that never occurs in the file (e.g., a funny Unicode character) to disable quote processing.

For the record: both of these are unnecessary:
 bind(1+"undef" as ?undef)
 values ?undef {UNDEF}

Just use the var ?undef without binding it: it has the value UNDEF.

authors: VladimirAlexiev cygri pandid

repo: tarql/tarql


text:
Support JSON-LD as output format

Would be nice to have option to output JSON-LD directly from TARQL.

Should be easy to do. I believe Jena has been shipping with a JSON-LD writer for a while now (the format is called JSON-LD), and in the Tarql code this would be handled similarly to --ntriples.
I don't know though if the JSON-LD writer can be used in a streaming fashion. We have to jump through some hoops to make the Turtle and N-Triple writers stream (in [StreamingRDFWriter.java|https://github.com/tarql/tarql/blob/master/src/main/java/org/deri/tarql/StreamingRDFWriter.java]). If that's not possible/easy for JSON-LD, it should warn in the docs.

Confirmation from @afs: No streaming for JSON-LD.

One would expect serializing RDF output to JSON-LD in a streaming fashion could be achieved similar to N-Triples if one thinks of it as an array of triple objects:
[
  { "@id": "<subject>", "<predicate>": "<object>" },
  ... _more data_ ...
  { "@id": "<subject>", "<predicate>": "<object>" }
]

Concrete example:
This graph:
<http://dbpedia.org/resource/John_Lennon> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> .
<http://dbpedia.org/resource/John_Lennon> <http://schema.org/name> "John Lennon" .
<http://dbpedia.org/resource/John_Lennon> <http://schema.org/born> "1940-10-09"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://dbpedia.org/resource/John_Lennon> <http://schema.org/spouse> "http://dbpedia.org/resource/Cynthia_Lennon" .

Could be serialized in 'streaming JSON-LD' as such:
[
  { "@id": "http://dbpedia.org/resource/John_Lennon", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": { "@id": "http://schema.org/Person" } },
  { "@id": "http://dbpedia.org/resource/John_Lennon", "http://schema.org/name": "John Lennon" },
  { "@id": "http://dbpedia.org/resource/John_Lennon", "http://schema.org/born": { "@value": "1940-10-09", "@type": "http://www.w3.org/2001/XMLSchema#date" } },
  { "@id": "http://dbpedia.org/resource/John_Lennon", "http://schema.org/spouse": { "@id": "http://dbpedia.org/resource/Cynthia_Lennon" } }
]

Nice-to-have would be more compact way to write the rdf:type statements:
[
  { "@id": "http://dbpedia.org/resource/John_Lennon", "@type": "http://schema.org/Person" }
]

In general, that would be no more significantly verbose that N-Triples.

@jaw111 I don't disagree with any of that, but implementing custom serialisers are out of scope for Tarql, so this would have to happen in Jena or in some other Jena-compatible library.

@cygri sure, that is fair. have dropped a mail to the Jena dev mailing list.
for now might see what can be achieved to convert N-Triples to JSON-LD via a cunning mix of sed/awk.

@cygri @jaw111 Hey, I am Sakshi. I am a under-graduate student in IIIT-Delhi, I want to contribute this project, I was looking on this issue.
So after going through the code-base, I see that you were using the StreamRDF to stream the n-triples.
So currently the jena has support for the serialization for JSON-LD also, so we can do something like serialize the n-trilpes to JSON-LD and then use a Java Stream to stream the output on the terminal ?


text:
Avoid duplication of task execution

Fixed a bug that causes second execution of task in a same minute

Closes #296.

repo: taskiq-python/taskiq


text:
SyntaxError: Unexpected token < in JSON at position 0

ElasticDump version v.3.x

Node.js version v8.9.3

command
elasticdump \
 --input=https://myproduction.es.com:9200/my_index \
 --output=my_index.json \
--searchBody '{  "query":{"range":{"@timestamp":{"gte": 1513342800000,"lte": 1513350000000} }}}'

command  output

undefined:1
<html>
^
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Request.callback (C:\Users\AppData\Roaming\npm\node_modules\elasticdump\lib\tra                     nsports\elasticsearch.js:52:21)
at Request.self.callback (C:\Users\AppData\Roaming\npm\node_modules\elasticdump\nod                     e_modules\request\request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (C:\Users\AppData\Roaming\npm\node_modules\elasticdump\node                     modules\request\request.js:1163:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (C:\Users\AppData\Roaming\npm\node_modules\elasticdu                     mp\node_modules\request\request.js:1085:12)
at Object.onceWrapper (events.js:313:30)

I used to run similar query with no problem.

What version of ElasticDump are using ?
What's version of Elasticsearch are using ?
A data set you can share publicly which reproduces the problem

The issue template is there to help diagnose and replicate your issue.

Closing this issue.
Please re-open if you are still having issues.

authors: ferronrsmith laurazh

repo: taskrabbit/elasticsearch-dump


text:
Update README.md

huggingface, HuggingFace -> Hugging Face

please do not submit frivolous PRs.

authors: eltociear rtaori


text:
[question] I have a feature that needs to work with a http server built into tari, I chose to use actix_web, but I would like to know how to get the database connection created by tari-plugin-sql in the enpoint of actix_web.

I have a feature that needs to work with a http server built into tari, I chose to use actix_web, but I would like to know how to get the database connection created by tari-plugin-sql in the endpoint of actix_web.

FIXED

repo: tauri-apps/plugins-workspace


text:
Error with shellapi::Shell_NotifyIconW

Panic info
PanicInfo { payload: Any { .. }, message: Some(error while running tauri application: Runtime(SystemTray(OsError { line: 112, file: "C:\\Users\\admin\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\tao-0.16.5\\src\\platform_impl\\windows\\system_tray.rs", error: CreationError("Error with shellapi::Shell_NotifyIconW") }))), location: Location { file: "src\\main.rs", line: 172, col: 6 }, can_unwind: true, force_no_backtrace: false }
Backtrace [
    { fn: "BaseThreadInitThunk" },
    { fn: "RtlGetAppContainerNamedObjectPath" },
    { fn: "RtlGetAppContainerNamedObjectPath" },
]

I just hit this bug myself. Could this be Windows API change related? I'm on the 0.16.x release because of Tauri 1.x dep for now.

authors: ChristianJacobsen muwoo

repo: tauri-apps/tao


text:
error: failed to run custom build command for javascriptcore-rs-sys v0.4.0 ubuntu mate 22.04LTS

Describe the bug
npm run tauri dev
The following warnings were emitted during compilation:

warning: javascriptcore-rs-sys@0.4.0:

error: failed to run custom build command for `javascriptcore-rs-sys v0.4.0`

Caused by:
  process didn't exit successfully: `/home/dfmd/dev/caliberation/dfmd_camera_recoder/rust/desktop/dfmd_cam_zustand/src-tauri/target/debug/build/javascriptcore-rs-sys-623ef5bb16fe089c/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=JAVASCRIPTCOREGTK_4.0_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:warning=
  pkg-config exited with status code 1
  > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags javascriptcoregtk-4.0 javascriptcoregtk-4.0 >= 2.24

  The system library `javascriptcoregtk-4.0` required by crate `javascriptcore-rs-sys` was not found.
  The file `javascriptcoregtk-4.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `javascriptcoregtk-4.0.pc`.

warning: build failed, waiting for other jobs to finish...

even
sudo apt search javascriptcoregtk-4.0
Sorting... Done
Full Text Search... Done
libjavascriptcoregtk-4.0-bin/noble-updates,now 2.44.2-0ubuntu0.24.04.2 all [installed]
  WebKitGTK JavaScript command-line interpreter (transitional dummy package)

@tauri-apps/cli": "^1.5.14"
uname -a
Linux camera 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Note if i try to install Prerequisites (https://tauri.app/v1/guides/getting-started/prerequisites)
sudo apt install libwebkit2gtk-4.0-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libwebkit2gtk-4.0-dev
E: Couldn't find any package by glob 'libwebkit2gtk-4.0-dev'
so i installed sudo apt install libwebkit2gtk-4.1-dev. after that i am getting above error. How can i install sudo apt install libwebkit2gtk-4.0-dev on ubuntu mate 22.04LTS or resolve above error
Reproduction

npm create tauri-app@latest
cd myapp
npm i
npm run tauri dev

Expected behavior
Tauri app should run on ubuntu 22.04LTS
Full tauri info output
npm run tauri info

> myapp@0.0.0 tauri
> tauri info

[✘] Environment
    - OS: Ubuntu 24.04 X64
    ✘ webkit2gtk-4.0: not installed
      Visit https://tauri.app/v1/guides/getting-started/prerequisites to learn more about tauri prerequisites
    ✔ rsvg2: 2.58.0
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 20.15.0
    - npm: 10.7.0

[-] Packages
    - tauri [RUST]: 1.7.1
    - tauri-build [RUST]: 1.5.3
    - wry [RUST]: 0.24.10
    - tao [RUST]: 0.16.9
    - @tauri-apps/api [NPM]: 1.6.0
    - @tauri-apps/cli [NPM]: 1.6.0

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace
No response
Additional context
No response

Duplicate of the pinned issue https://github.com/tauri-apps/tauri/issues/9662

authors: FabianLars learncodingforweb

repo: tauri-apps/tauri


text:
url not allowed on the configured scope

Describe the bug
lib.rs
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
#[tauri::command]
fn greet(name: &str) -> String {
    format!("Hello, {}! You've been greeted from Rust!", name)
}

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
    tauri::Builder::default()
    .plugin(tauri_plugin_http::init())
    .run(tauri::generate_context!())
    .expect("error while running tauri application");
}

default.json
{
  "$schema": "../gen/schemas/desktop-schema.json",
  "identifier": "default",
  "description": "Capability for the main window",
  "windows": ["main"],
  "permissions": [
    {
        "identifier": "http:default",
        "allow": [{
           "url": "http://*:*"
        }],
        "deny": [{
            "url": "http://*:*"
        }]
    }
  ]
}

node test
const http = require('http');

const hostname = 'localhost';
const port = 3000;

const server = http.createServer((req, res) => {
  if (req.method === 'GET' && req.url === '/test') {
    res.statusCode = 200;
    res.setHeader('Content-Type', 'text/plain');
    res.end('test');
  } else {
    res.statusCode = 404;
    res.end('Not Found');
  }
});

server.listen(port, hostname, () => {
});

const response = await fetch("http://localhost:3000/aaa", {
method: "GET",
});
error: "url not allowed on the configured scope: http://localhost:3000/aaa"
Reproduction
No response
Expected behavior
No response
Full tauri info output
"url not allowed on the configured scope: http://localhost:3000/aaa"

Stack trace
No response
Additional context
No response

I write it wrongly
http://localhost:3000/test

  "permissions": [
    {
        "identifier": "http:default",
        "allow": [{
           "url": "http://*:*"
        }],
        "deny": [{
            "url": "http://*:*" <-----
        }]
    }
  ]

即使中的 URLdeny也位于 中，也始终会被拒绝allow。因此，在这种情况下，如果您删除拒绝条目，它应该会起作用。

Thank you, it has been resolved


text:
macos titlebar transparent,but unmoved window

Describe the bug
i want macos app titilebar and contentview mix together.like

but this time ,window can't  drag and move.
add div with "data-tauri-drag-region",  also have a bar in my window?
how to solve this problem?
Reproduction
No response
Expected behavior
No response
Platform and versions
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.0.0", features = ["api-all", "macos-private-api"] }
window-vibrancy = { version = "=0.1.3" }
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.24.0"
objc = "0.2.7"
Stack trace
No response
Additional context
No response

Have you enabled window > startDragging, window > maximize and window > unmaximize in your allowlist?

Have you enabled window > startDragging, window > maximize and window > unmaximize in your allowlist?

allowlist set all：true

seems like you just want https://github.com/tauri-apps/tauri/issues/2663 so I am closing this as duplicate

authors: JonasKruckenberg amrbashir njfanxun


text:
[bug] WARN log when window is (re)focused

Describe the bug
When using the tauri_plugin_log plugin, the following warning log displays every time the window is refocused - i.e. you have to focus on another window, then click back onto the tauri window.
[2023-12-29][09:23:39][WARN][tao::platform_impl::platform::event_loop::runner] NewEvents emitted without explicit RedrawEventsCleared
[2023-12-29][09:23:39][WARN][tao::platform_impl::platform::event_loop::runner] RedrawEventsCleared emitted without explicit MainEventsCleared

This doesn't actually seem to affect the functionality of the app at all, but I'm currently trying to log errors/warnings to a log file in production and the file gets very large, very fast...
Additional notes:

it sometimes only triggers after 2-3 refocuses, but then triggers every time you refocus
you actually have to click on the window content as the refocus - i.e. Alt+Tab doesn't trigger, and clicking on the window's app bar also doesn't trigger it

Reproduction

run pnpm create tauri-app
choose the following options:

✔ Choose which language to use for your frontend · TypeScript / JavaScript - (pnpm, yarn, npm, bun)
✔ Choose your package manager · pnpm
✔ Choose your UI template · Solid - (https://www.solidjs.com/)
✔ Choose your UI flavor · TypeScript

add the plugin_log to your Cargo.toml:

tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1", features = ["colored"] }

modify your main.rs to the following:

// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use tauri_plugin_log::fern::colors::ColoredLevelConfig;
use tauri_plugin_log::LogTarget;

// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
#[tauri::command]
fn greet(name: &str) -> String {
    format!("Hello, {}! You've been greeted from Rust!", name)
}

fn main() {
    tauri::Builder::default()
        .plugin(
            tauri_plugin_log::Builder::default()
                .targets([LogTarget::Stdout])
                .with_colors(ColoredLevelConfig::default())
                .build(),
        )
        .invoke_handler(tauri::generate_handler![greet])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

run pnpm tauri dev
unfocus & refocus on the tauri window by clicking with your mouse

Expected behavior
The warning shouldn't show - either the underlying issue needs to be fixed, or the logging turned off for this issue?
Full tauri info output
[✔] Environment
    - OS: Windows 10.0.22621 X64
    ✔ WebView2: 120.0.2210.91
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.71.0 (8ede3aae2 2023-07-12)
    ✔ cargo: 1.71.0 (cfd3bbd8f 2023-06-08)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.19.0
    - pnpm: 8.6.3
    - npm: 10.2.3

[-] Packages
    - tauri [RUST]: 1.5.4
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.5
    - @tauri-apps/api [NPM]: 1.5.2 (outdated, latest: 1.5.3)
    - @tauri-apps/cli [NPM]: 1.5.8 (outdated, latest: 1.5.9)

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: SolidJS
    - bundler: Vite

Stack trace
No response
Additional context
No response

also in v2
[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 120.0.2210.91
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.74.0 (79e9716c9 2023-11-13)
    ✔ cargo: 1.74.0 (ecb9851af 2023-10-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.16.1
    - pnpm: 8.6.11
    - yarn: 3.6.4
    - npm: 9.5.1

[-] Packages
    - tauri [RUST]: 2.0.0-alpha.20
    - tauri-build [RUST]: 2.0.0-alpha.13
    - wry [RUST]: 0.35.1
    - tao [RUST]: 0.24.0
    - @tauri-apps/api [NPM]: 2.0.0-alpha.12
    - @tauri-apps/cli [NPM]: 1.5.6 (outdated, latest: 1.5.9)

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Vite

+1

authors: erduotong linden-dg lopo12123


text:
chore(master): release 1.0.3

:robot: I have created a release beep boop
1.0.3 (2023-10-02)
Bug Fixes

generate random ids (#6) (6475ccc)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/taxdown/lift/releases/tag/v1.0.3 :sunflower:

repo: taxdown/lift


text:
Compiles fine on OSX but all tests fail

Hi,
I have been trying to package this program for conda but all tests fail after I compile this on travis osx:
https://travis-ci.org/bioidiap/bob.conda/jobs/112988995
Do you have any idea what goes wrong?
You can see my conda recipe here:
https://github.com/bioidiap/bob.conda/tree/master/libmatio
I ran this on my mac and here is the log:
testsuite.txt

Sorry, I have no idea, but it should work on OSX, see https://travis-ci.org/tbeu/matio

Yes it should work but all tests are failing with an error like this:
#                             -*- compilation -*-
1. mat4_read_le.at:29: testing Read 2d double-precision array ...
./mat4_read_le.at:31: $builddir/test_mat readvar $srcdir/datasets/matio_test_cases_v4_le.mat var1
--- /dev/null	2016-03-03 15:55:59.000000000 +0100
+++ /Users/travis/miniconda/conda-bld/work/matio-1.5.6/test/testsuite.dir/at-groups/1/stderr	2016-03-03 15:55:59.000000000 +0100
@@ -0,0 +1,4 @@
+dyld: Library not loaded: @rpath/./libhdf5.10.dylib
+  Referenced from: /Users/travis/miniconda/conda-bld/work/matio-1.5.6/test/.libs/test_mat
+  Reason: image not found
+/Users/travis/miniconda/conda-bld/work/matio-1.5.6/test/testsuite.dir/at-groups/1/test-source: line 54: 37108 Trace/BPT trap: 5       $builddir/test_mat readvar $srcdir/datasets/matio_test_cases_v4_le.mat var1
--- -	2016-03-03 15:55:59.000000000 +0100
+++ /Users/travis/miniconda/conda-bld/work/matio-1.5.6/test/testsuite.dir/at-groups/1/stdout	2016-03-03 15:55:59.000000000 +0100
@@ -1,12 +1 @@
-      Name: var1
-      Rank: 2
-Dimensions: 4 x 5
-Class Type: Double Precision Array
- Data Type: IEEE 754 double-precision
-{
-1 5 9 13 17
-2 6 10 14 18
-3 7 11 15 19
-4 8 12 16 20
-}

./mat4_read_le.at:31: exit code was 133, expected 0
1. mat4_read_le.at:29: 1. Read 2d double-precision array (mat4_read_le.at:29): FAILED (mat4_read_le.at:31)

You might try to build matio w/o hdf5 support.

Maybe, this one helps: http://stackoverflow.com/questions/28244468/dyld-library-not-loaded-rpath-with-ios8

My problem is probably related to issues mentioned here:
https://github.com/ContinuumIO/anaconda-issues/issues/598
https://github.com/conda/conda-build/issues/279
https://github.com/conda/conda-build/pull/312

MAT IO compiles fine with hdf5 from system but not with the one that is in conda.

Sorry, can't help (further). Neither I have OSX experience nor an idea what conda is.

Nothing I can do here. Sorry.

Is there a way that I could install the test files with make install and test the library after it is packaged in conda. Since conda does some library path manipulation after you install the package.

repo: tbeu/matio