Error in testing (googletest)

...
[ 72%] Building CXX object source/tests/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
In file included from /opt/Development/libs/cppfs/source/tests/googletest/googletest/src/gtest-all.cc:42:
/opt/Development/libs/cppfs/source/tests/googletest/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’:
/opt/Development/libs/cppfs/source/tests/googletest/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized]
 1301 |   StackLowerThanAddress(&dummy, &result);
...

i've got this error in both of my linux devices [Arch/Debian].
The way I used to get around the problem was to stop all tests by typing cmake .. -DOPTION_BUILD_TESTS=OFF, and I was able to build and install the library

Thanks for reporting.
We're experiencing recurring problems with our in-source googletest module.
I updated the cppfs repository to reflect our more robust use of an external googletest installation.


Badge Support and friendly URLs

We use Renovate Bot on our projects to detect dependencies upgrades and vulnerabilities since Renovate adds OSV database check (https://osv.dev/blog/posts/renovate_announcement/).
Exemple of PR created by our bot where we added somes badges and urls from Snyk website:

Example of url/badge for a Github repository (https://support.snyk.io/hc/en-us/articles/360003997277-Badge-Support-for-Repositories):
https://snyk.io/test/github/auth0/node-jsonwebtoken
https://img.shields.io/snyk/vulnerabilities/github/auth0/node-jsonwebtoken

Example of url/badge for specifics dependency versions: (https://snyk-widget.herokuapp.com/public/badgecreator.html)
<EMAIL_ADDRESS>https://snyk-widget.herokuapp.com/badge/npm/jsonwebtoken/8.5.1/badge.svg

<EMAIL_ADDRESS>https://snyk-widget.herokuapp.com/badge/npm/jsonwebtoken/9.0.0/badge.svg

Suggestion:
Could the osv.dev website provide this type of functionality?

This may be better suited as an API rather than strictly website implementation...
There might also be an angle for https://github.com/google/osv-scanner-action here.


Chromium throws "Constructor Float32Array requires 'new'"

In src/texture/texture.js the following line throws an exception:
Texture.temp = Float32Array(4 * 4);

Solved the problem for me by adding the 'new' keyword:
Texture.temp = new Float32Array(4 * 4);

Thanks!


Update TEAMS.md

Removing @sophiewigmore as requested here -> https://github.com/orgs/paketo-buildpacks/discussions/309

I went ahead and merged without awaiting further approvals. I just thought it's a couple of days old already and the case is pretty clear with the removee having asked to be removed...


Merging order test

Motivation

Needed a unit test for OrderCalculator since it's an important part of our program
Changes

Added a new setter for Claim that is only used by the tester
Created a unit test for the OrderCalculator that tests both scores being calculated correctly and ordering the claims correctly.

Type of change (select all that apply):

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Refactoring (internal change to codebase, without changing functionality)
[x] Test update (change that modifies or updates tests only)
[ ] Documentation update (change that modifies or updates documentation only)
[ ] Other (please specify):

Testing
The test works accordingly and passes (as it should).
Remarks
Closes #49

Thanks for working on the tests cases for the OrderCalculator, Andrew! This covers the testing of one of our application's core features.
Overall, great work! The test logic is sound and tests all relevant outcomes of the orderClaims() method. I have just a few recommendations that consider unit testing best practices. They don't impact the logic of this test, so changes are not necessary for this PR. But I hope they guide any tests you write moving forward.
Coding style
Some suggestion for decorators and annotations which don't impede test logic but could improve readability of Junit test -> Added as comments to the changed files. Otherwise, java code conventions have been followed appropriately.
Correctness
No changes have been made to the core functionality.
Presence of tests and Test coverage
Tried running test locally on IntelliJ...it passed!
Adherence to Clean Architecture + SOLID
Since this is purely unit test code, there aren't any violations of CA or SOLID.
It would be better to place this test class inside an 'OrderCalculator' package within src/test since it's best practice for the 'test' package to mirror the 'main' package. (this is change I think should be addressed before merging to maintain our app code structure)
Javadoc
No documentation required in readme for unit tests added. Comments added to test file help clarify purpose of each method.
Clarity of any accompanying information in the pull request
PR decryption is clear and succinct and uses bullet points to outline changes(always a plus when delivering info clearly!). Commit messages are appropriately informative.

Oh that's a good point about the packaging structure that I missed. Mirroring the main package for our test package will definitely help us organize our code well. Thanks for pointing it out, Krisha!


[FEA] Should we fallback to ARENA if RMM fails to start up an async pool

We currently try and detect if the driver/runtime support the async allocator: https://github.com/NVIDIA/spark-rapids/blob/branch-23.02/sql-plugin/src/main/scala/com/nvidia/spark/rapids/RapidsConf.scala#L1966.
That said, it doesn't appear this is a sufficient check: https://github.com/NVIDIA/spark-rapids/discussions/7636. The user reports RMM itself failing to start, which happens after we have decided that ASYNC is OK given the software versions. In the user's case, it looks like it is related to a vGPU setup.
I could see us keeping the current behavior, but perhaps catch the RMM exception and point to a FAQ page that describes each scenario where RMM would fail to start with async, and pointers to the pool config to set ARENA to unblock users. Or I could see us fallback to ARENA automatically, perhaps complaining in the logs (though chances are the log message will be ignored).
Either way, we could do better than letting the RMM exception be thrown on its own. I am wondering if others have preferences on which way to go, automatic fallback or error with pointers on how to proceed.

An automatic fallback is preferred.  The plugin should probe to see whether ASYNC works and if not fall back to ARENA.


Is it on purpose that .SDT is invisible from MSTATUS?

Since SSTATUS is a subset of MSTATUS, I'm wondering why .SDT is absent in MSTATUS.

sstatus is a subset of mstatus. When a bit - such as SDT - is added to sstatus it is in mstatus.

Hi @ved-rivos Thanks for your confirmation! I'm asking because I don't see SDT in the layout of  mstatus, which confuses me, see https://github.com/riscv/riscv-isa-manual/blob/main/src/images/wavedrom/mstatusreg.adoc

@zengderui thanks for spotting that. I have have that updated in the ISA manual.


TypeError: unhashable type: 'list' while reading poetry project's poetry.lock

git clone https://github.com/sdispater/poetry
cd poetry
pip-run https://github.com/dephell/dephell/archive/master.zip -- -m dephell deps convert --from poetry.lock --to setup.py`
ERROR TypeError: unhashable type: 'list'

Currently this is the input file https://github.com/sdispater/poetry/blob/cb8dc0d94e68042f120441b4e30d89c92598b40e/poetry.lock

Thank you, I'll dive in it
ERROR TypeError: unhashable type: 'Container'
Traceback (most recent call last):
  File "/tmp/pip-run-iehbr2cb/dephell/cli.py", line 115, in main
    result = task()
  File "/tmp/pip-run-iehbr2cb/dephell/commands/deps_convert.py", line 46, in __call__
    resolver = loader.load_resolver(path=self.config['from']['path'])
  File "/tmp/pip-run-iehbr2cb/dephell/converters/base.py", line 94, in load_resolver
    root = self.load(path=path)
  File "/tmp/pip-run-iehbr2cb/dephell/converters/base.py", line 54, in load
    root = self.loads(content=stream.read())
  File "/tmp/pip-run-iehbr2cb/dephell/converters/poetrylock.py", line 63, in loads
    repo=root.repo,
  File "/tmp/pip-run-iehbr2cb/dephell/converters/poetrylock.py", line 163, in _make_deps
    subcontent = ','.join(set(subcontent))
TypeError: unhashable type: 'Container'

Yeah, and I did catch it too:
Traceback (most recent call last):
  File "/tmp/pip-run-n3__h6bo/dephell/cli.py", line 115, in main
    result = task()
  File "/tmp/pip-run-n3__h6bo/dephell/commands/deps_convert.py", line 46, in __call__
    resolver = loader.load_resolver(path=self.config['from']['path'])
  File "/tmp/pip-run-n3__h6bo/dephell/converters/base.py", line 94, in load_resolver
    root = self.load(path=path)
  File "/tmp/pip-run-n3__h6bo/dephell/converters/base.py", line 54, in load
    root = self.loads(content=stream.read())
  File "/tmp/pip-run-n3__h6bo/dephell/converters/poetrylock.py", line 63, in loads
    repo=root.repo,
  File "/tmp/pip-run-n3__h6bo/dephell/converters/poetrylock.py", line 149, in _make_deps
    envs=envs,
  File "/tmp/pip-run-n3__h6bo/dephell/controllers/_dependency.py", line 110, in from_params
    marker = Markers(marker)
  File "/tmp/pip-run-n3__h6bo/dephell_markers/_markers.py", line 23, in __init__
    self._marker = self._convert(markers)
  File "/tmp/pip-run-n3__h6bo/dephell_markers/_markers.py", line 169, in _convert
    return OrMarker(*cls._deduplicate(new_groups))
  File "/tmp/pip-run-n3__h6bo/dephell_markers/_markers.py", line 199, in _deduplicate
    if merged_node == node:
  File "/tmp/pip-run-n3__h6bo/dephell_markers/_operation/_base.py", line 88, in __eq__
    return self.op == other.op and set(self.nodes) == set(other.nodes)
  File "/tmp/pip-run-n3__h6bo/dephell_markers/_operation/_base.py", line 91, in __hash__
    return hash(self.nodes)
TypeError: unhashable type: 'list'
> /tmp/pip-run-n3__h6bo/dephell_markers/_operation/_base.py(91)__hash__()
-> return hash(self.nodes)
(Pdb) !self.nodes
[StringMarker(lhs=<Variable('sys_platform')>, op=<Op('==')>, rhs=<Value('linux2')>), StringMarker(lhs=<Variable('sys_platform')>, op=<Op('==')>, rhs=<Value('linux')>)]

Still an issue.
git clone https://github.com/python-poetry/poetry
cd poetry
dephell deps tree --from-format poetrylock --from-path poetry.lock
ERROR TypeError: unhashable type: 'Container'


Path-based routing: "exceptions" (or how-to block a path in a normal frontend)

Do you want to request a feature or report a bug?
Feature
What did you expect to see?
I run traefik as a kubernetes Ingress provider.
In my cluster I have Pods with 3rd party applications that expose a prometheus /metrics endpoint.
This endpoint is usually exposed on the same port as the rest of the application.
Now, when I generate a Service + Ingress for this port, I automatically open this /metrics up to the internet.
--> This is what I want to avoid.
The problem is even a bit more complex: the endpoint is not always exactly /metrics, it can be:

https://my.external.domain/metrics
https://my.external.domain/some/subpath/metrics

Now I'm thinking about how I can effectively allow acces to my.external.domain/* (= everything)
except my.external.domain/some/subpath/metrics.
I thought about using path-based routing.
But as far as I understand, this doesn't support exceptions.
In the documentation I couldn't find something like a "blacklist".
I think of something like this:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: test
spec:
  rules:
  - host: my.external.domain
    http:
      paths:
      - path: /
        backend:
          serviceName: test-service
          servicePort: http
      - path: /metrics
        backend: deny   # return FORBIDDEN or so

Is this a valid need or am I just logically on the wrong track?

Hi and thank you for taking the time to write to us!
I'm a bit embarrassed though, because I'm not sure I fully understand your problem.
Could you please take the time to rephrase your proposal with possible solutions to that problem (using the appropriate template).
Thank you!

@geraldcroes Hi and thank you very much for your answer. No need to be embarassed! I wrote my question in a hurry and tried to rephrase it now. Is it better now?

Any update on this?

hello, you can follow the issue #4812


close browsed file (aka remove file from history)

I understand now that the close a file feature should remove the file from the history and load the previous file instead. And that the next widgets browse command might start a complete new history if requested. So for instance if I call the widget directly from the terminal with:
$ tclsh shtmlview.tcl file1.html file2.html test.md
or even
$ tclsh shtmlview.tcl *.html *.md
after closing file1.html from the widget therafter file2.html should be displayed and the history should be cleaned, so that I can process all files similar like in an image viewer where I can walk through the images of a directory with a single N key for instance.
Right?

more or less right, in my idea when you close the file1.html it's not the case that history is cleaned but modified, removing the reference to file1.html in the history.
you can perform a clean up of the history after closing files, of course, but I prefer just reordering the history
if you have a history list of opened files and each movement backward and forward through the list implies reopen the selected file, simply removing the entry from the history list is enough
but if you keep all opened files in memory then close a file means to remove the file from memory and from the list of opened files, so further moves simply skip the position of the now inexistent file.
in other words, closing a file simply means removing it from the history list.  What "remove" means depends on what you store in the history list (a string with path and name of file, a file handle, a file object...)

Ok, I see your point. Sounds not to difficult, I will try to merge this functionality with a browse for multiple files
$widget browse file1 file2 file3
should create a history of the three files where with f (forward) and b (backward) I could switch from one file to the other and with k (kill) the current file will be deleted from the history and the next (forward) file would be shown, that way it would be easy browsing a set of HTML and Markdown files simply using the keyboard. Just the filenames btw are stored in the history. So they will re-rendered always. The widget is quite slow but should work for most files sufficiently fast.

I now uploaded the close file functionality. You can use the close file button or the 'q' key to remove a file from history, the next file in history will be displayed or the last file in the remaining history if the closed file was deleted.
You can now as well browse multiple files, even from the terminal:
tclsh shtmlview.tcl TclCmd/*.htm
would show the first file and place all other files in history, where you can walk everything with f and b keys.


Using BERT for encoding

Dear Authors,
Firstly, I would like to appreciate your excellent piece of work. My question extends to the question from the issue named "Segment Pooling Implementation #2 ", I had the same question and saw this issue. Could you please elaborate where exactly you are doing this encoding part and getting the representation of the entire document? Looking forward to hearing from you.

Hi,
I appreciate your interest in our work!
We split the documents into chunks and prepare the input_ids like I mentioned in Issue https://github.com/MiuLab/PLM-ICD/issues/2
So the shape of the input_ids is (batch_size, num_chunks, chunk_size).
The actual encoding and aggregation happen in modeling_bert.py for the BERT model. You can find the implementation below:
https://github.com/MiuLab/PLM-ICD/blob/410655073b70b7cc41b7dbd600c95d72bd11a4d3/src/modeling_bert.py#L86-L107
Best,
Chao-Wei

I can't provide my code as I signed an NDA. But I can tell how I did it. I had to submit my work, so to avoid too many documents, I simply copied and pasted the necessary code from different files to a Jupyter notebook. You just have to spend some time going through the repo (I know it is hard).


Error:  no Orders attribute

Hello, I am trying to get a simple program working using the library.  I tried the following example, and receive this error.  Do you know what might cause this?
Thanks!
python mws.py
Traceback (most recent call last):
  File "mws.py", line 1, in <module>
    import mws, os
  File "/home/ubuntu/environment/mws/mws.py", line 2, in <module>
    orders_api = mws.Orders(
AttributeError: module 'mws' has no attribute 'Orders'

Here is my sample program:
import mws, os
orders_api = mws.Orders(
    access_key=os.environ['MWS_ACCESS_KEY'],
    secret_key=os.environ['MWS_SECRET_KEY'],
    account_id=os.environ['MWS_ACCOUNT_ID'],
    region='US'
)

service_status = orders_api.get_service_status()

print(service_status.original)

@JGSpeights I chose ubuntu as that was what it looked like you were using

Closing inactive. If problem persists, please re-open or create a new issue. Thank you.


Touch AppBar to scroll home does not have acceleration in iOS

On iOS when you tap the AppBar to scroll to home it does so with an amount of jerk (acceleration curve). Flutter appears to scroll up with a constant velocity. This makes the app look non-native.

@HansMuller

In fact, in playing around with it more, none of the navigation has the proper acceleration. Drawers and scroll up are all constant velocity.
For some reason I thought Flutter was exposing UIKit to us like React-Native does, but I see that is not the case. It is a bit disappointing then that the UI, even with material design, does not feel like a native app. This may seem like a small thing but it is very noticeable.

Is there any way to expose the acceleration curves that Flutter uses on iOS so I can play with them?

@lukepighetti are you comparing the behavior to native in a debug build or a release/profile build?

profile build

Ah sorry, I misspoke earlier. When I said Drawer I meant the back/next screen as achieved through routing.

That would be the CupertinoPageRoute class, and it's related CupertinoPageTransition class that it constructs.

Hang on, I think I might be learning something. So if you use Material scaffold on iOS it's supposed to feel like Android? It will only feel like iOS if you're using Cupertino scaffold? I am using Material on iOS.

The MaterialPageRoute is designed to be adaptive based on the platform, though you could override this by changing the platform of the provided Theme
https://github.com/flutter/flutter/blob/09276bea258737e11b109e227f70eac94a4e1691/packages/flutter/lib/src/material/page.dart#L171

OK. Well, in that case, then I would (as before) expect Flutter, in Material or Cupertino, to have the iOS style acceleration for page animation and scroll to home (tap on AppBar), and it is currently not that way. :)

Hi! Congrats on today's event.
Yes, there is. If you tap the status bar on iOS when a list view is available, it scrolls to top with a linear speed. I believe iOS uses some custom animation curve.

Hi @lukepighetti
Does this issue still exist with latest stable?
If yes,  can you please provide your flutter doctor -v and flutter run --verbose?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so it's always better to open new issues and reference related issues.


Target List Unpopulated for "Bazel IntelliJ Plugin" Configuration Modal

Repro steps:

checkout this repository
open the WORKSPACE file
add the latest release of this plugin to IntelliJ
go to "Edit Configurations"

Hello @abhillman, Can you share an example repo to test the above scenario. Thanks!

Hello @abhillman, Did you get a chance to check the above comment. Thanks!

Due to lack of update on the above issue.  We are closing this issue now. Please feel free to reach us if you can provide above information. Thanks!


Compatibility with Node.js v4

Add 'use strict' directive in library for let compatibility with Node.js v4.

Coverage remained the same at 100.0% when pulling 5d0c788eca805ded6933485e41d51d707ad8e3b0 on dev into 46a3fa5e008fa33e6b79e97e585e233feadee173 on master.


No Chinese Support

I tried but lines written in Chinese does not work, while in Latin characters the plugin works.
Anything to do to solve the problem?

Would be happy to see, too.

+1 for non-ASCII support~~~

Could the problem be with the regex finder DokuWiki is using?

GJRobert, I think you're right. This looks to be a bug in DokuWiki: https://github.com/splitbrain/dokuwiki/issues/856 (also see https://bugs.dokuwiki.org/2947.html).
After messing with it for an hour, I wasn't able to find a fix. I tried hex-escaping the UTF-8 characters in helper.php like this:
$orig = '\\x' . implode('\\x', str_split(implode('', unpack('H*', $orig)), 2))

and it didn't help. However, changing getPerlMatchingFlags in /inc/Parsing/Lexer/ParallelRegex.php worked:
    protected function getPerlMatchingFlags()
    {
        return ($this->case ? "umsS" : "umsSi");
    }

I'll do a little more investigation. In the mean time, you can add support by making the change to Doku core code yourself.

I've added a comment to the dokuwiki ticket: https://github.com/splitbrain/dokuwiki/issues/856

Thanks for the insight @zioth
I have tried the method below:

However, changing getPerlMatchingFlags in /inc/Parsing/Lexer/ParallelRegex.php worked:
    protected function getPerlMatchingFlags()
    {
        return ($this->case ? "umsS" : "umsSi");
    }

But autolink4 does not seem to convert my Unicode strings. I guess there might be something I'm missing...
(other ASCII strings are converted)

From what I understand (as someone who neither speaks nor reads Chinese), two words in Chinese can be pressed up against each other without any space between. If that's true, that could be the cause of the problem, because DokuWiki's regular expression parser doesn't take that into account. I might be able to fix it by adding a special setting for Chinese and similar languages.
Could you post the autolink4 configuration line you're using, and a short piece of sample content including the word that's not working? I might be able to figure something out.

Thanks a lot. Here is my autolink4 config:
巧皇后, family:queen, , tt|once
我, :me, , tt|once

And sample article:
今天全家人（我請特休），和其他 3 個家庭約好去麗寶樂園，玩得真的挺開心的（雖然受限於小孩要午睡，能玩的時間很短）。午餐時我用筆電處理工作，聽到旁邊 5 歲的吾兒飯後吵著叫巧皇后買霜淇淋給他，結果一支還挺大的。

It's finally fixed. :) In addition to making the change to core Doku code, you'll have to set the new inword flag on every Chinese string in the config. This will allow for words that are not surrounded by spaces (DokuWiki's regular expression parser assumes words are always surrounded by spaces or punctuation).

Yes! 2020-10-25 + DW core code modification working for my non-Latin strings now. Thanks a million for your support!!!


[IRGen] Emit mod summary for full LTO to enable hermetic seal with lld

LTO pipeline requires consistent EnableSplitLTOUnit and module summary
in regular full LTO bitcode, and clang enables EnableSplitLTOUnit and
emit regular lto module summary on non-ld64 platforms.
Therefore, swiftc has to emit them for the consistency with clang.
This patch unlocks stdlib to be linked with a simple code with --hermetic-seal-at-link and lld on Linux

There are still some remaining issues:

autolinking somehow does not work
It seems conditional-dead-stripping doesn't work now when targeting ELF. test/IRGen/conditional-dead-strip-exec.swift doesn't pass yet.
test/IRGen/virtual-function-elimination-exec.swift and test/IRGen/witness-method-elimination-exec.swift are failing with the following preemption error.

ld.lld: error: cannot preempt symbol: $sBoWV
>>> defined in /home/katei/.ghq/work.katei.dev/swift-source/build/Ninja-ReleaseAssert/swift-linux-x86_64/lib/swift/linux/libswiftCore.so
>>> referenced by ld-temp.o
>>>               lto.tmp:($s4main7MyClassCMf)

It would be appreciated if you have any ideas.
Depends on https://github.com/apple/llvm-project/pull/4228

@swift-ci Please test

Please test with following PR:
https://github.com/apple/llvm-project/pull/4228
@swift-ci Please test Linux platform

@kubamracek Could you take a look if you have time?

I'm afraid I don't understand LTO enough to review this. @compnerd?

Hi @compnerd, you've also reviewed the cherry-picked LLVM patch on Apple's fork. Would you be available to review this PR as well? Thank you!

Ping @compnerd.

@eeckstein -- Any thoughts on the changes to the LTO settings here?

I know too little about LTO. That would be a question for @gottesmm or @aschwaighofer

Hi @gottesmm @aschwaighofer, would you have a moment to take a look at this PR? Thanks!

I am not an LTO expert either. The changes seem reasonable to me but I can't predict the consequences of unconditionally adding the module flags:
EnableSplitLTOUnit=1 and ThinLTO=0
The code seems to indeed follow what clang does.
Can we take this change and deal with any fallout (which I expect to be only on linux) or do you have concerns with doing so @kubamracek ?

No concerns with that.

Thanks for the reviews! Can we merge then?

re-trigger testing because it looks like the last test is quite a bit in the past

@swift-ci test

Could be this merged now?
Cheers

@swift-ci Please test and merge


NVSHAS-7880: unexpected Process.Profile.Violation incidents on ps process

The is a patch for NVSHAS-7649.

Looks good to me.


Caveat: tcomb must be requireable

This is grinding my usage of this plugin to a halt: I use SystemJS, where "require" is not part of the ecosystem. Rather, ES6 import tags are compiled down to asynchronous System.register calls.
Is there no way that the require tags can be converted to ES6 imports before letting later plugins in the pipeline convert the ES6 to ES5 (to systemjs, to commonjs, however it must be done)?

I should rephrase that paragraph, if you look at the tests this plugin actually outputs
import t from 'tcomb';

Hrm, I definitely get a "require" in my code that crashes the app.
The following code:
import type {ReactElementT} from "tcomb-react";

gives me the compiled output:
System.register("cdk/js/main.js", ["tcomb"], function (_export, _context) {
  "use strict";

  var _t, _tcombReact, ReactElementT;

  return {
    setters: [function (_tcomb) {
      _t = _tcomb.default;
    }],
    execute: function () {
      _tcombReact = require("tcomb-react");
      ReactElementT = _tcombReact.ReactElementT || _t.Any;
    }
  };
});

Ah ok, the problem is with import type declarations, you are right, I'm using require. Let me see if I can replace require with an import declaration

Apologies, thought that was what the caveat was referring to. Thank you very much.

Currently the plugin compiles
// ImportSpecifier
import type { A } from "types";

to
import _t from "tcomb";

const _types = require("types");

const A = _types.A || _t.Any;

and
// ImportDefaultSpecifier
import type React from "react";

to
import _t from "tcomb";

const _react = require("react");

const React = _react.default || _t.Any;

Would be ok to do this instead?
// ImportSpecifier case
import _t from "tcomb";

import * as _types from "types";

const A = _types.A || _t.Any;

and
// ImportDefaultSpecifier case
import _t from "tcomb";

import * as _react from "react";

const React = _react.default || _t.Any;

Looks perfectly sensible. I can test a branch if that is helpful.

I can test a branch if that is helpful

Yes thanks. lib is commited in, you can test it out simply doing
npm r babel-plugin-tcomb
npm i gcanti/babel-plugin-tcomb#139

The following converts from
import type {ReactElementT} from "tcomb-react";
import type {IntegerT} from "tcomb";

to
System.register("cdk/js/main.js", ["tcomb", "tcomb-react"], function (_export, _context) {
  "use strict";

  var _t, _tcombReact, _tcomb, ReactElementT, IntegerT;

  return {
    setters: [function (_tcomb2) {
      _t = _tcomb2.default;
      _tcomb = _tcomb2;
    }, function (_tcombReact2) {
      _tcombReact = _tcombReact2;
    }],
    execute: function () {
      ReactElementT = _tcombReact.ReactElementT || _t.Any;
      IntegerT = _tcomb.IntegerT || _t.Any;
    }
  };
});

It also works correctly on one of my own declared file.

Nice, I'm going to publish this fix

Great, thanks so much for that.

Released in https://github.com/gcanti/babel-plugin-tcomb/releases/tag/v0.3.20


Update aboutus

Close #18

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:


Occasionally hangs on reboot / shutdown

it seems /etc and /etc_rw can't be unmounted...

removing /etc from /etc/fstab (sounds weird) works quite nicely, although a boot error is introduced by this, something about seed optimisation, I'm guessing the boot procedure (it's systemd related, so... :unamused: ) tries to create some initial random seed and write it to /etc and that is now readonly, hence the error message...
I personally can live with this... will need to test more

I am facing hang on reboot.
Is your script already up to date with this 'fix' ?
I am ok with 1 boot error.
What exactly shoul I do?
remove this line from fstab?:
mount_unionfs /etc fuse defaults 0 0

ah, yes... I had that error as well... it's caused by the fact that /etc can't be unmounted during shutdown...
that's pretty much what I did, yes, I've removed that line from fstab and the appropriate lines from post-install.txt that deal with /etc (11, 14 and 16)...
for my particular case, I needed a few files in /etc to be writeable, so I moved them to /tmp and created a soft symlink in /etc (all this happens in post-install.txt)...
the files I need to be readwrite are hostname (I "calculate" the hostname from the MAC address, this way each board gets a unique hostname, even if the SD cards are the same) and hosts (for sudo to work properly after setting the hostname)... in addition to this, /etc/mtab is replaced with a symbolic symlink to /proc/self/mounts, so the mounts are displayed correctly when issuing the mount command...
I haven't (yet) updated the scripts in this repository, but now that I know that at least one other person is using it, I will... ;)


fix bug in BrBool peep where cmp2Src==cmp1Dst

Peep stops us from storing to the dst, so we shouldn't do the peep if result is used
OS: 12444855

LGTM


Enable plugin to skip variants/flavors

Using a project with two variants, debug/release, as an example. If some of my unit tests rely on classes defined on the debug variant only, assembleReleaseUnitTests will throw an error due to unreferenced classes. The proper approach would be to move those tests to a testDebug folder, but this becomes a problem in already complex projects.
Enabling the plugin to skip certain variants, e.g. release, allow users to still get all the information without having to fix certain builds issues.

Could you elaborate or, even better, provide a reproducer? I'd like to take a deeper look and see if there's some incorrect assumption I'm making, which I could address.

I'll try work on a repro example. I believe my point boils down to the fact this plugin suffers as the number of build types and flavors grows. In a scenario where the project has 2 build types (debug and release) and two flavor (demo and full), the dependencies of all four combinations will be evaluated. Another flavor brings the total permutations to 6 and so forth.
This results in a longer period before buildHealth completes and prevents me to adopt it if some of my variants do not comply with some of the assumptions previously made.

I agree that analyzing all variants leads to longer analysis, but this follows my philosophy for this plugin of making it simple to configure while also providing the most accurate advice possible. Ignoring certain variants automatically violates that second principle, while also violating the first in the sense that it complicates configuration, both from the user perspective and the in the implementation of the plugin itself.
I'm not really concerned about run time. I have one user with ~2000 modules and multiple variants, and even in their case, the initial (totally uncached ant not up to date) run took less than 20min. Very few projects are at that scale.
I'm certainly open to discussion, but I'm not inclined to add support for ignoring certain variants. As I said earlier, I'd prefer to fix the plugin (if possible) to handle scenarios like yours.

I managed to create a minimal example that reproduces the issue and uploaded to Google Drive.
There's a ClassToTest under app/debug and it is tested on the generic test variant. Note that :app:compileReleaseUnitTestKotlin throws an unresolved class error but the IDE won't complain about this setup unless you select the release variant.
As I said before, I understand that this is not a bug on the plugin but, as it is, it prevents me from getting results without fixing the entire code structure. Moreover I might never expect to run unit tests on the release build type - using the example above - and therefore it is less relevant for me to fix issues on that variant.

Ignoring certain variants automatically violates that second principle

I absolutely don't want any automatic behavior, but rather the ability to configure the plugin to skip those if I feel like I'll get enough information by only running a subset of the available variants. Similarly to how skipping ktx may produce cleaner results for user, skipping variants will produce better results on my scenario.

I requested access to the google drive link.

This is a really interesting case. I'm not sure how best to handle this at the level of my plugin. One thing you can do right now, though, is add this to your build script:
android {
  onVariants {
    unitTest {
      enabled = false
    }
  }
}

this is available since AGP 4.0.0, I think. I have verified that adding this to your reproducer will allow buildHealth to complete.
Since your goal is "avoid processing some variants", it makes sense to me to use existing facilities rather than waiting for me to tack something on to this plugin. (This plugin will still analyze the release variant, but the time involved is negligible for most projects.)
I do not mean to disregard your position on the subject of customizing behavior. However, it's a complex design and philosophy question, and not quite as black and white as "let users do whatever they want." Your ktx example provides an interesting comparison to the current request. The existence of what I call "ktx" dependencies points to the existence of a real thing that simply is not yet modeled by the gradle build tool -- that is, a "logical dependency" that is the set of several related dependencies that are expected to be consumed together, despite their existence as separate artifacts. Your request in this issue does not point to the existence of some fundamental thing that is as yet un-modeled by existing tooling; rather, it is about convenience. Moreover, convenience at the cost of accuracy. I value accuracy very highly. In fact, I prefer to provide false negatives (not reporting potential issues) than false positives (incorrectly reporting non-existent issues). This is because false negatives don't break a build (they follow the principle of least-harm), whereas false positives do break builds.
All of that said (and I welcome debate), I will at least see if I can detect this situation and emit a more warning when the build fails. Not sure if this is possible, but we'll see.

The suggestion partially worked, and I say that because on AGP v4 it fails with unitTestVariant must not be null, but that's is completely unrelated to your plugin. The important part is that skipping unit tests for unwanted variants is generally the solution to my problem.
I really appreciate you taking time to engage in this discussion and by now I understand better where you're coming from and with which priorities. That is all to say that I agree with your position on accuracy vs convenience in the context of this plugin and I thank you for creating it 😄
I don't think there's much more to be extracted from this issue, so I'll close it.

@autonomousapps Hi. Is it possible to apply the plugin only from single buildType or flavor?


How to trigger fadeout of all bubbles before new one shows up?

Hi, I have many palette-color-pickers in a table.

In an example above, overlapped color-pickers look a bit confusing so I want to trigger pcp.faceout on all the active palettes before a new one shows up like this:

How can I do this without monkey-patching?
Thanks!

Hi!.
Now you have a new setting: close_all_but_this: true when initializing the colorPicker.
You can see it in action in the sample 2 in the demo page click the sample 1 and quickly click on sample 2 it closes automatically all bubbles in page.

Thanks for the new option, pretty cool!


Call setRate instead of pause/play as they are equivalent

Video was resuming after seek when setRate was called after play/pause in applyModifiers. According
to Apple's docs play/pause are equivalent to setRate:1.0 and setRate:0.0, meaning that if rate was
1.0 the video resumed after seeking completed.

This makes sense to me, @johanneslumpe what do you think?

Seems logical for me as well. Haven't tested but this might fix #73 too.


Return different values based on DB function naming convention

create - Return the id of the inserted row
get - Return a tuple of dicts
update, delete - Return a count of the altered rows

Closed with 413ae58d420fd9b0c8a9f3f7604c7c9f88eb822a

Rather than enforcing convention in the naming of query functions, I went with the more obvious choice of returning different values based on the SQL function used.


equation issue

According to paper equation 3, there should be   - instead of *

but here it is *
out = - (ce_w * y_true_f *K.log(y_pred_f)) + ((1 - ce_w) * (1.0 - y_true_f) * K.log(1.0 - y_pred_f))

Same question. I think there are some typo on the paper. According to the definition of cross entropy, it must be * instead of -.


Trying to fetch url from a video story will retrieve only url to an image

Hi, as i said in the title i used your method (in readme file) to fetch stories url's, but for video stories i can get only an url to an image and not to a video. It's a bug or there is another way to fetch mp4 video stories ?

@Smartandroidtech how did you find the solution?


gulpfile dynamic parameters not being set correctly

After updated to latest, the gulpfile is not being generated correctly.
      moduleName: '<%= props.libraryName.original %>',

      // See https://github.com/rollup/rollup/wiki/JavaScript-API#globals
      globals: {
        typescript: 'ts'
      }

    }))
    .pipe(rename('<%= props.libraryName.kebabCase %>.umd.js'))

this is creating a dist/<%= props.libraryName.kebabCase %>.umd.js file

I am not seeing this issue here (on Mac) and haven't been able to reproduce this.
@dbfannin — What version of the generator are you on? Have you tried reinstalling the generator yet?
Is anyone else experiencing this? Thanks!

That's very odd. I uninstalled and reinstalled and now it works like a charm. Same version number (generator-angular2-library@10.1.0). Not sure what was going on there. Closing this issue out.

@dbfannin — Thanks for the update! 👍


Test problem?

HI, I use the pretrained model_2695.pt to test my own dataset.but it shows like this:

Below is my config.yaml :
Training settings
seed: 0
exps_dir: 'experiments'
iter_log_interval: 1
iter_time_window: 100
model_save_interval: 1
backup:
model:
name: PolyRegression
parameters:
num_outputs: 35 # (5 lanes) * (1 conf + 2 (upper & lower) + 4 poly coeffs)
pretrained: true
backbone: 'resnet50'
pred_category: false
curriculum_steps: [0, 0, 0, 0]
loss_parameters:
conf_weight: 1
lower_weight: 1
upper_weight: 1
cls_weight: 0
poly_weight: 300
batch_size: 16
epochs: 2695
optimizer:
name: Adam
parameters:
lr: 3.0e-4
lr_scheduler:
name: CosineAnnealingLR
parameters:
T_max: 385
Testing settings
test_parameters:
conf_threshold: 0.5
Dataset settings
datasets:
train:
type: LaneDataset
parameters:
dataset: nolabel_dataset
split: train
img_size: [540, 960]
normalize: true
aug_chance: 0.9090909090909091 # 10/11
augmentations:
- name: Affine
parameters:
rotate: !!python/tuple [-10, 10]
- name: HorizontalFlip
parameters:
p: 0.5
- name: CropToFixedSize
parameters:
width: 540
height: 960
root: "/home/share/make/PolyLaneNet/test_image"
test: &test
type: LaneDataset
parameters:
dataset: nolabel_dataset
normalize: true # Wheter to normalize the input data. Use the same value used in the pretrained model (all pretrained models that I provided used normalization, so you should leave it as it is)
augmentations: [] # List of augmentations. You probably want to leave this empty for testing
img_h: 540 # The height of your test images (they shoud all have the same size)
img_w: 960 # The width of your test images
img_size: [540, 960] # Yeah, this parameter is duplicated for some reason, will fix this when I get time (feel free to open a pull request :))
max_lanes: 5 # Same number used in the pretrained model. If you use a model pretrained on TuSimple (most likely case), you'll use 5 here
root: "/home/share/make/PolyLaneNet/test_image" # Path to the directory containing your test images. The loader will look recursively for image files in this directory
img_ext: ".jpg" # Test images extension (e.g., .png, .jpg)"
val = test
val:
<<: *test
Could you give me some advice ? Thanks

Every lane detection dataset will have a certain bias toward the position of the horizon line. Since the model was trained on TuSimple, and you're testing on a different dataset, that bias will have a large effect on the quality of the predictions. As you can see in your image, the horizon line has a large offset from the real horizon line.
In order to fix this, you'll have to fine-tune the model on your dataset.


Talk data request - comments from #frostreview

Can I get a list of APFids with the text from 140 character comments that include #frostreview from user tianxuan. It's the comments made by our summer student based on assessing images with frost.
Is is possible to get this by the end of the week? The summer program ends in  3 weeks so I wanted to give enough time for our student to use this in their analysis before her final presentation
Thanks,
~Meg

Not needed anymore at this time.


error: failed to synchronize all databases (no servers configured for repository)

Hi,
Thank you for reading this, and for the help.
"error: failed to synchronize all databases (no servers configured for repository)"
pacman -Syu or anything won't work.
I'm not able to use pacman at all with a fresh WSL2 version of Athena OS. I have even tried uncommenting some more servers than what were already uncommented at stock install. My WSL2 Kali works just fine (outside of seamless mode not showing the toolbar, which I cannot figure out how to fix [any help there would be much appreciated, and thanks if so]). I'm having to use a VPN to connect both of these WSL2 apps for them to work with Wi-Fi from the mall, but they work fine with my raw hotspot connection.
Kind regards,
TofuWand

Hey. Probably your mirrorlist is empty. Try to give a look to the contents of files inside /etc/pacman.d folder

Hey. Probably your mirrorlist is empty. Try to give a look to the contents of files inside /etc/pacman.d folder

Hi. Thanks, but I already mentioned that servers exist, and that I even uncommented some more. I have played around with all the mirror text files.

Hey. Probably your mirrorlist is empty. Try to give a look to the contents of files inside /etc/pacman.d folder

Hi. Thanks, but I already mentioned that servers exist, and that I even uncommented some more. I have played around with all the mirror text files.

Experiencing a very similar issue for the last day or so with pacman -Syyu.
error: failed retrieving file 'athena-theme-tweak-1.0.4-1-any.pkg.tar.zst' from hub.athenaos.org : The requested URL returned error: 404
error: failed retrieving file 'athena-mirrorlist-1.0.1-1-any.pkg.tar.zst' from hub.athenaos.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
error: failed retrieving file 'athena-repository.db' from github.com : The requested URL returned error: 404
error: failed retrieving file 'athena-repository.db' from github.com : The requested URL returned error: 404
error: failed retrieving file 'athena-repository.db' from hub.athenaos.org : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

This did the trick. Thanks.

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

This fixed one issue. Now when I run sudo pacman -Syyu I get the following issue:
error: could not open file /var/lib/pacman/sync/athena.db: Unrecognized archive format

Show me your /etc/pacman.d/athena-mirrorlist content

Show me your /etc/pacman.d/athena-mirrorlist content

/etc/pacman.d/athena-mirrorlist:
Global
Server = https://github.com/Athena-OS/athena-repository/tree/21c862c5930ba9834c732b0cc2639122e8218db3/x86_64
Lithuania
Server = https://hub.athenaos.org/athena/x86_64

Change the content of that file by:
# Global
Server = https://athena-os.github.io/$repo-repository/$arch

# Lithuania
Server = https://hub.athenaos.org/$repo/$arch

Thank you so much!
Now sudo pacman -Syyu is working perfectly.
Many thanks.

Experiencing a very similar issue for the last day or so with pacman -Syyu.
error: failed retrieving file 'athena-theme-tweak-1.0.4-1-any.pkg.tar.zst' from hub.athenaos.org : The requested URL returned error: 404 error: failed retrieving file 'athena-mirrorlist-1.0.1-1-any.pkg.tar.zst' from hub.athenaos.org : The requested URL returned error: 404 warning: failed to retrieve some files error: failed to commit transaction (failed to retrieve some files) Errors occurred, no packages were upgraded.
error: failed retrieving file 'athena-repository.db' from github.com : The requested URL returned error: 404 error: failed retrieving file 'athena-repository.db' from github.com : The requested URL returned error: 404 error: failed retrieving file 'athena-repository.db' from hub.athenaos.org : The requested URL returned error: 404 error: failed to synchronize all databases (failed to retrieve some files)

Thanks a bunch! 🤝💯

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

Thanks a bunch! 🤝💯

Change the content of that file by:
# Global
Server = https://athena-os.github.io/$repo-repository/$arch

# Lithuania
Server = https://hub.athenaos.org/$repo/$arch

Thanks a bunch! 🤝💯

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

I tried that, with no avail.

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

I took out the "-repository" part.

Change the content of that file by:
# Global
Server = https://athena-os.github.io/$repo-repository/$arch

# Lithuania
Server = https://hub.athenaos.org/$repo/$arch

After trying that, I still have the

repository issues.

Change the content of that file by:
# Global
Server = https://athena-os.github.io/$repo-repository/$arch

# Lithuania
Server = https://hub.athenaos.org/$repo/$arch

Change the content of that file by:
# Global
Server = https://athena-os.github.io/$repo-repository/$arch

# Lithuania
Server = https://hub.athenaos.org/$repo/$arch

After trying that, I still have the repository issues.

Please share with me all the current details (i.e., error string, content of mirrorlist files and son on).

Thanks. I put it off for a while, as you see.
sudo pacman -Syyu
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)
...
Note: The BlackArch mirrorlist is empty.

[chaotic-mirrorlist.txt](https://github.com/Athena-OS/athena-repository/files/13761336/chaotic-mirrorlist.txt)

Please share with me all the current details (i.e., error string, content of mirrorlist files and son on).

That issue occurs when a mirrorlist file is empty. If BlackArch mirrorlist is empty, it means that something in your connection is preventing to reach BlackArch mirrors.

That issue occurs when a mirrorlist file is empty. If BlackArch mirrorlist is empty, it means that something in your connection is preventing to reach BlackArch mirrors.

Hi, again. I've tried various things to fix the ping issue, since it won't ping anything but my local IP address. I tried flushing DNS, disabling firewall, changing the traffic settings in Hyper-V Manager, turning off and on some stuff in Windows Features, changing the nameserver (which won't let me edit it now that I did a remove of it), etc.
I did plenty of searching through threads.
https://github.com/microsoft/WSL/issues/5336#issuecomment-653881695
https://github.com/microsoft/WSL/issues/4275
https://github.com/microsoft/WSL/issues/7141
Etc.

@

Where are you from?

Where are you from?

Do you recognize SM SUPERMALLS, or just curious? I'm in the Philippines, but I'm from Miami, FL, America, born and raised (I'm happy to have left infamous Miami lol).
What about you?

Where are you from?

Do you recognize SM SUPERMALLS, or just curious? I'm in the Philippines, but I'm from Miami, FL, America, born and raised (I'm happy to have left infamous Miami lol).
What about you?

I needed this info to understand if your govt could block some connections. If you visit https://raw.githubusercontent.com/BlackArch/blackarch/master/mirror/mirror.lst you get an issue or you can see the content of file?

Where are you from?

Do you recognize SM SUPERMALLS, or just curious? I'm in the Philippines, but I'm from Miami, FL, America, born and raised (I'm happy to have left infamous Miami lol).
What about you?

I needed this info to understand if your govt could block some connections. If you visit https://raw.githubusercontent.com/BlackArch/blackarch/master/mirror/mirror.lst you get an issue or you can see the content of file?

Interesting. Yeah, I've used multiple hacking OSs before, bare metal, and in VMs. One also used Tor just fine here.
Yes, I was able to see the mirror list, nice.

So it is strange it does not work. Can you try to install Athena again, and if it fails, try to visit that link from Athena machine and also share with me /tmp/aegis.log?

So it is strange it does not work. Can you try to install Athena again (only in case you get the error during the installation), and if it fails, try to visit that link from Athena machine and also share with me /tmp/aegis.log?
In case you don't get error during the installation but you get it in your installed environment, run:
sudo rate-mirrors --concurrency 40 --disable-comments --allow-root --save /etc/pacman.d/blackarch-mirrorlist blackarch

and then check if the blackarch-mirrorlist file is still empty.

Thanks! I could try it again. Before I do, if I do, please see this:

Kali has the same issues. However, at least with Kali, I've been able to get Nuclei, and several other tools. They will connect, but not to the repositories, and not to <IP_ADDRESS> (Google), and other pings I do, other than when I ping my own IP, that I mentioned worked. I'm not sure if this newer information helps. I'm hoping to get WSL2 to work, since I have plenty of power on my new laptop, and I don't need to worry about browser tabs to run desktop-as-a-service, but I'll use that if this doesn't work.
If this newer information helps, then what might we do for any WSL2 to resolve these issues, outside of deleting, and reinstalling the WSL2 images.
Thanks!

So it is strange it does not work. Can you try to install Athena again (only in case you get the error during the installation), and if it fails, try to visit that link from Athena machine and also share with me /tmp/aegis.log?
In case you don't get error during the installation but you get it in your installed environment, run:
sudo rate-mirrors --concurrency 40 --disable-comments --allow-root --save /etc/pacman.d/blackarch-mirrorlist blackarch

and then check if the blackarch-mirrorlist file is still empty.

Also, I started seeing this WSL connection/firewall yesterday:

Which nuclei issue?

Which nuclei issue?
Did you solve the failed synch of databases?

I don't have a Nuclei issue. I'm just showing how it works fine with tools. If I were to use it properly, I'd enter options for Nuclei, but that was to quickly run it for an example. The WSL2 app images still do not work with databases/repositories though.

Are you still getting the error in the title?

What do you mean in the title? Which title?
On Tue, 26 Dec 2023, 11:24 pm D3vil0p3r, @.***> wrote:

Are you still getting the error in the title?
—
Reply to this email directly, view it on GitHub
https://github.com/Athena-OS/athena-repository/issues/6#issuecomment-1869614063,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4DEDFU24TZ57AXW5YOXTLDYLLT3NAVCNFSM6AAAAAA7WBYMP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZGYYTIMBWGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

[error: failed to synchronize all databases (no servers configured for repository)](https://github.com/Athena-OS/athena-repository/issues/6#top)

No. As mentioned, that's my issue still.
On Wed, 27 Dec 2023, 2:17 am D3vil0p3r, @.***> wrote:

error: failed to synchronize all databases (no servers configured for
repository)
—
Reply to this email directly, view it on GitHub
https://github.com/Athena-OS/athena-repository/issues/6#issuecomment-1869701610,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4DEDFTKK42E3TDDZBYSEATYLMIDPAVCNFSM6AAAAAA7WBYMP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZG4YDCNRRGA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Bump Bazel to v2.0.0

Description

Bump Bazel to the latest v2.0.0.
relates to bazelbuild/bazel#10131

Motivation

Thanks! You’ve moved to it already?
Let’s see if the tests pass...

Yeah, I am trying to get all our dependencies aligned with the new version before pulling the switch, I might do it after the new year though. :)

I suggest you take a look at #865 ? It’s a big change and I suggest you see meetup works well with it

Cool, I will take a look!


[woff] After saving loaded font as woff file, it is not loaded in Chrome

Used DroidSansFallback font.
Used following command to convert ttf file to woff
def save_as_woff(input):
  from fontTools.ttLib import TTFont
  font = TTFont(input)
  font.flavor = 'woff'
  font.save(input+'.woff')

This function worked for other fonts but this one.
Issue is generated woff file could not loaded in Chrome Version 36.0.1985.143
Tool used fontTools/samfishman:decompressing

Once a woff (CFF) is subsetted with pyftsubset, this is not decoded by Chrome in Windows 7. That doesn't happen. Could that be related with this issue?

Faced the same problem as well. To work around this, after I subsetted the fonts with pyftsubset, I used Glyphs to open the OTF files, and then exported them to woff and woff2. Chrome can decode the files generated by Glyphs.

@alphachung I don't think this has to do with the WOFF or WOFF2 compression per se. it might be the subsetted font is being rejected by the opentype sanitizer (used to decode fonts by Firefox and Chrome) for other reasons.
try passing the font to ots-sanitize tool https://github.com/khaledhosny/ots/, or send me a copy if you wish.
Thanks

Archive.zip

source.otf - Source
pyftsubset_regular.otf - Source subsetted by pyftsubset
pyftsubset_regular.woff & pyftsubset_regular.woff2 - Source subsetted by pyftsubset, woff & woff2 flavour
glyphs_regular.woff & glyphs_regular.woff2 - pyftsubset_regular.otf exported to woff & woff2 via Glyphs

I won't get to debug this immediately, so if @anthrotype can triage a bit would be nice. Thanks.

Running ots-sanitize on the source.otf file yields
ERROR: CFF : Failed to parse table
Failed to sanitize file!

Same error, consequently, for the pyft-subsetted fonts.
The glyphs_regular.woff and woff2 fonts sanitize successfully.
How was the original source.otf generated? The name table says the font is called "Inter UI".
https://rsms.me/inter/

If you dump to TTX the source.otf, and remove these two lines, then re-compile to OTF using ttx, then the font passes OpenType Sanitizer successfully.
diff --git a/source.ttx b/source.ttx
index 9fdfea3..b237f99 100644
--- a/source.ttx
+++ b/source.ttx
@@ -10768,8 +10768,6 @@
       <Private>
         <BlueValues value="-32 0 1536 1556 2048 2076"/>
         <OtherBlues value="-576 -512"/>
-        <FamilyBlues value=""/>
-        <FamilyOtherBlues value=""/>
         <BlueScale value="0.039625"/>
         <BlueShift value="16"/>
         <BlueFuzz value="0"/>

This reminded me of this
https://github.com/googlei18n/ufo2ft/pull/115

It's unclear whether empty Blues operators in PrivateDict is illegal or not. I just filed a issue against the OpenType Sanitizer.
https://github.com/khaledhosny/ots/issues/156
/cc @readroberts

I think we can close this issue as it's not related to fonttools. We are simply keeping the original CFF table's private dict operators (of unknown provenance) intact as we subset or compress to woff.
The issue, if any, is either in the source font (it has such empty Blues values) or in the OpenType Sanitizer that rejects it.
We can keep on discussing this on the OTS issue tracker.

It's unclear whether empty Blues operators in PrivateDict is illegal or not. I just filed a issue against the OpenType Sanitizer.

I suggest we fix here as well.  I thought I fixed that.

What is the fix then? And why is it broken?

Is it up to fontTools to fix an error in a source file? I'm not so sure it is.

I think @behdad thinks the subsetter was responsible for leaving behind empty dict operators.
But I checked the original "source.otf" file from the OP, and that already contained such empty operators. ttLib simply roundtrips the original CFF table.

Subsetter shouldn't leave empty, but yeah, if it's in the original, then it's not for fontTools to do anything to.

But I checked the original "source.otf" file from the OP, and that already contained such empty operators. ttLib simply roundtrips the original CFF table.

How come that font works but subset one doesn't then?  Or maybe I didn't read all the details correctly.

The original (I am not sure how original) font source.otf doesn’t work because of that issue. Of course the subsetted doesn’t either.

Any reason not close this? Looks to me as if the issue has been fixed and related issues closed.
FYI: It is legal to have an empty BlueValue array. You have to go back to the Adobe T1 specification, end of section '5.3 Blue Values':
"""The BlueValues array is required in the Private dictionary. If no
alignment zones are necessary, use an empty array for the value
of BlueValues:
/BlueValues [ ] def"""


make stringification configureable

Hi,
i do have problems controlling my Shelly plugs with the module cause of the "JSON.stringify" happening before the payload will be send as MQTT message.
With the changes in this pull request the stringification can be controlled with a general configuration option "stringifyPayload" which can be overriden by notifications in their configuration in notiMqttCommands if needed.
The default behavior stays the same.

That is great. Tom, do you want to maintain this repository as an owner?
I am not longer use the magicmirror, which means that I do not participate in this repository development. Can only accept or reject pull requests.
That is why I think it is better to transfer it to someone who can keep it alive and up to date.

If you like i can take the ownership. I can not guarantee to add a lot of features in the next time but i can take care to keep it compatible with current version of MagicMirror².
How does the transfer process work? Will the URL of the Repository be still available or do the users have to change the origin URL with a git command?

I just tried to move ownership to you. Github returned me with information that you have a repository with the same name, which means that you have to delete your fork, and after that, I will make a move for you. Can you please try this?
The only thing is that address will be changed to Tom-Hirschberger/MMM-MQTTbridge means that if some links
follow to this repository; they will not work.

I removed the fork at this moment. I can give it a second try. Maybe i will post in the forum that the ownership changed and that the users should set the new origin url to keep it up to date.

Sorry. Meant you can give it a second try.

Yes, it would be a good idea to inform the users.
I just sent the ownership, GitHub is waiting for your confirmation

seems that old link works as well

Thank you very much.
It worked like a charm.
And yes, i got redirected to the new url immediately.

that is. good. Thank you for taking it.
As I said, I am far away from this project in general, so I think someone involved can take better care of it.
Thank you again! You told me above that you are using Shelly. Do you use them with Home Assistant or as a separate instance?

https://forum.magicmirror.builders/topic/12230/mmm-mqttbridge
i was able to log in to the forum and change the initial topic ;) Now all the references route to your repository :)

Perfect.
Basically i use KNX bus in my home. But i added a Node-RED instance connected to a "knxd" installation to control some KNX devices with a Node-RED dashboard.
Since a few months i use a 3D printer i added a camera and led strip to. The led strip is connected to a ESP32 controller and can be switched on and off via mqtt.
I can access my mirror instance via VPN and watch the printers webcam with a MJPEG stream i embedded into the mirror. If the printer finished or if something wents wrong i wanted to abort the printing job by switching off the power of the printer.
So i ended up powering the printer with a Shelly Plug S and add a button to the mirror (with my MMM-TouchButton module) to switch the power off the Shelly Plug S with MQTT.
There is a Node-RED integration of Shelly as well but as i do have a MQTT infrastructure already it was easier this way.

I understood. Very cool setup indeed. :)
I was using MM with Home Assistant, and that is the initial reason for the development of this module. I see you want to implement all MQTT features - like QoS, "last will message" etc - that is an amazing plan!) Having this - the module becomes universal and secure!

Just checked one thing - I changed the LICENCE file, removed myself, and added you to it. GitHub allowed me to do so without a pull request with your approval.
Seems I have some special rights, so just in case - please remove such rights from me, just to be secure that only you can validate pull requests, if any.

I finished most of the job today.
Did some refactoring and speed up the notification listening.
Also all cennection (i.e. clean session) , publishing (QoS, retain) and subscription (QoS) are possible now.
Will try the implement a second way of configuration tomorrow and make some last test then the new release is finished.

Oh. I will check that. Thanks for the hint

Hoooray!:) Good luck with the tests!


Minified React error when upgrading to 0.69.2

I am getting the follow error after upgrading to the latest version (0.69.2) -
Error: Minified React error #188; visit https://reactjs.org/docs/error-decoder.html?invariant=188 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Object.le.findDOMNode (http://localhost:7000/static/module-hot-loader.04d3f3f7.js:11:19348)
    at y.w.performEnter (http://localhost:7000/static/vendor.b71b63cc.js:103:33528)
    at y.w.updateStatus (http://localhost:7000/static/vendor.b71b63cc.js:103:33290)
    at y.w.componentDidMount (http://localhost:7000/static/vendor.b71b63cc.js:103:32751)
    at Aa (http://localhost:7000/static/module-hot-loader.04d3f3f7.js:24:1673)
    at Gt (http://localhost:7000/static/module-hot-loader.04d3f3f7.js:26:5039)
    at R.unstable_runWithPriority (http://localhost:7000/static/vendor.b71b63cc.js:154:3911)
    at It (http://localhost:7000/static/module-hot-loader.04d3f3f7.js:22:38506)
    at jr (http://localhost:7000/static/module-hot-loader.04d3f3f7.js:26:1813)
    at Ii (http://localhost:7000/static/module-hot-loader.04d3f3f7.js:24:11094)

I am also running into the same issue.  I managed to get the unminified frontend (which is more difficult than it should be when serving the frontend directly from the backend).
Stack Trace
TypeError: init is not a function
    at mountLazyComponent (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:17663:19)
    at beginWork (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:19056:16)
    at HTMLUnknownElement.callCallback (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:3946:14)
    at Object.invokeGuardedCallbackDev (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:3995:16)
    at invokeGuardedCallback (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:4057:31)
    at beginWork$1 (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:23960:7)
    at performUnitOfWork (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:22772:12)
    at workLoopSync (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:22703:5)
    at renderRootSync (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:22666:7)
    at performSyncWorkOnRoot (webpack-internal:///./node_modules/@hot-loader/react-dom/cjs/react-dom.development.js:22289:18)

It seems that the version bump of @hot-loader/react-dom from @backstage/cli to 17.0.2 is the cause of this.  I was able to workaround by adding a resolution to the root package.json to force it to use the old version.
  "resolutions": {
    "**/@hot-loader/react-dom": "^16.14.0"
  },

Thanks @JP-Dhabolt for the tip, I'll give that a try!

Looking into this. I believe that anyone that is on React 16 and upgrades to the most recent release will run into this issue. Trying to figure out whether we just want to roll back @hot-loader/react-dom in the CLI, or whether there's some other fix.
I would like to avoid having this warning show up when using React 17 as well:

Ended up with #9879 as the fix. If anyone is able to try that out in an app that is currently having issues that'd help us make sure this issue is actually fixed 🙏

@Rugvip I was able to install this locally and verify that it resolved the issue with init is not a function.  Thanks for the quick turnaround on this!
On a side note, is there an easy way you would recommend to testing an unpublished package from this repo locally?  The only way I could get this to work was by cloning your branch, and then copying over the packages/cli directory to my Backstage installation's packages directory.  It worked, but seemed to be a bit clunky.

@Rugvip I am still facing this issue on 0.70.1 release. Any thoughts?.

@satrox28 are you upgraded to the most recent release (0.70.1)? If so, could you post the error you're seeing?

Hi @Rugvip
Yes am on latest release, please find the error below. I can see few of the plugins, which has this error like Jira, Grafana, Gitlab and Prometheus
Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Te (https://abc.com/static/vendor.f5c8ac4d.js:12:3937)
    at A.useContext (https://abc.com/static/vendor.f5c8ac4d.js:12:5805)
    at i (https://abc.com/static/vendor.f5c8ac4d.js:5:9544)
    at s (https://abc.com/static/vendor.f5c8ac4d.js:5:9774)
    at xi (https://abc.com/static/module-hot-loader.65268d13.js:19:52897)
    at _s (https://abc.com/static/module-hot-loader.65268d13.js:23:8729)
    at Es (https://abc.com/static/module-hot-loader.65268d13.js:23:947)
    at Za (https://abc.com/static/module-hot-loader.65268d13.js:23:875)
    at Nr (https://abc.com/static/module-hot-loader.65268d13.js:23:730)
    at bi (https://abc.com/static/module-hot-loader.65268d13.js:21:10884) ```

I deleted yarn.lock and reinstall the packages, its working fine now, please ignore. @Rugvip


feat: explicitly query fallback servers for NS records

Fixes #29

$ LOGGING_LEVEL=debug ./cdnsd
{"level":"info","timestamp":"2023-10-04T19:56:28-05:00","caller":"indexer/indexer.go:64","msg":"found previous chainsync cursor: 34352991, 06bf848293c5fedb326134351ea0b68efae0445c1332929665ecd25b46d0c92b"}
{"level":"info","timestamp":"2023-10-04T19:56:29-05:00","caller":"cdnsd/main.go:72","msg":"starting DNS listener on :8053"}
{"level":"info","timestamp":"2023-10-04T19:56:35-05:00","caller":"dns/dns.go:43","msg":"query: name: foo.bar.com., type: A, class: IN"}
{"level":"debug","timestamp":"2023-10-04T19:56:35-05:00","caller":"dns/dns.go:185","msg":"querying <IP_ADDRESS>:53: NS foo.bar.com."}
{"level":"debug","timestamp":"2023-10-04T19:56:35-05:00","caller":"dns/dns.go:185","msg":"querying <IP_ADDRESS>:53: NS bar.com."}
{"level":"debug","timestamp":"2023-10-04T19:56:35-05:00","caller":"dns/dns.go:185","msg":"querying <IP_ADDRESS>:53: A luke.ns.cloudflare.com."}
{"level":"debug","timestamp":"2023-10-04T19:56:35-05:00","caller":"dns/dns.go:185","msg":"querying <IP_ADDRESS>:53: A pam.ns.cloudflare.com."}
{"level":"info","timestamp":"2023-10-04T19:56:38-05:00","caller":"dns/dns.go:43","msg":"query: name: foo.dolphin.cardano., type: A, class: IN"}

$ dig @localhost -p 8053 foo.dolphin.cardano

; <<>> DiG 9.18.12-0ubuntu<IP_ADDRESS>-Ubuntu <<>> @localhost -p 8053 foo.dolphin.cardano
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17593
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;foo.dolphin.cardano.           IN      A

;; AUTHORITY SECTION:
dolphin.cardano.        999     IN      NS      ns2.dolphin.cardano.
dolphin.cardano.        999     IN      NS      ns1.dolphin.cardano.


optimize calls to KLASS for code names

I found out that there was a problem retrieving nynorsk names from the KLASS api, so I put in a workaround that improves performance.
Somehow calls to KLASS api (for example to get a classification version with language=nn) sometimes return 500 Internal server error. This fix just makes sure that the call is attempted again each time something from that classificationVersion is needed, instead of relying on the much slower failsafe where individual codes are retrieved.

Since I forgot to merge this, it went stale and conflicts emerged. I might have to do it again.


segmentation fault with libxmljs

I was checking for XXE, even though it shouldn't be possible with libxml2 2.9 used by OS X 10.9.2. Used node.js v0.10.26 and libxmljs v0.9.0.
The code used to trigger the segfault:
// xxe.js
var parser = require('libxml-to-js');
var xml = require('fs').readFileSync('./xxe.xml').toString()
parser(xml, function (err, res) {
	if (err) {
		console.error(err)
		process.exit(1)
	}
	console.log(res)
})

<!-- xxe.xml -->
<?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE foo [
   <!ELEMENT foo ANY >
   <!ENTITY xxe SYSTEM "file:///etc/passwd" >]><foo>&xxe;</foo>

node xxe.js
[1]    28749 segmentation fault  node xxe.js

libxml-to-js is just a wrapper for libxmljs that passes back a JavaScript object following the XML doc structure.

Fixed in #359

@teleological I think we can close this if you think it's been fixed by now. It's been more than a year and the memory management situation has evolved quite a bit in that time.

@rc0x03 The problem here is not due to memory management, but due to treating non-element nodes as elements,  and applying inapplicable operations to the wrapped nodes. I will clean up #359, which will address this issue.

Is there any chance this can get fixed? I use libxmljs via the libxml-to-js package and the segmentation faults from this issue are causing us some problems. Thanks!


Maximum sub array

Add the new module: Maximum sub array

Codecov Report
Base: 98.18% // Head: 97.35% // Decreases project coverage by -0.83% :warning:

Coverage data is based on head (c301961) compared to base (aed1620).
Patch coverage: 95.12% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
- Coverage   98.18%   97.35%   -0.84%
==========================================
  Files           5        6       +1
  Lines         110      151      +41
==========================================
+ Hits          108      147      +39
- Misses          2        4       +2

Impacted Files
Coverage Δ

source/maximum_sub_array.cpp
95.12% <95.12%> (ø)

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

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


[FEATURE] Implement GraphQL as the way to use Storage interface

Each storage backend should then implement a way to convert the graph query to correct driver query (be it mongodb query/filesystem/SQL/...) and return the response in form of graph response

Related to #22


Potential internal restructuring

I have had the following thoughts for some time now, and am debating whether I should do the changes listed below:

Implement support to differentiate between commands that run on key-down, repeat, and release events.
Implement mouse-down, up events.
Add IPC mechanism to query current state and/or all state. This includes current available hotkeys (based on the active mode), or all modes with the hotkeys they provide. Probably json output for best integration with external tools.
Utilize above IPC mechanism to synthesize hotkeys so that we don't need to take the overhead of process startup to simply synthesize a key. This will also allow the option to pass some kind of flag that makes skhd not capture the event it posted, so that key-remapping becomes more feasible than it currently is.
I want to revise the syntax used to define hotkeys.

This might end up with me just starting from scratch and replacing the current files in the repo with a new version, eventually, as the planned changes pretty much call for a complete rewrite. The plan is to persist all current features somehow, but the syntax is probably going to be somewhat different.

A more compact syntax similar to 'sxhkd' [1] would be great to reduce clutter!
https://github.com/baskerville/sxhkd#example-bindings

I know this might not make it to the top of your priority list, but a way to display a "cheat-sheet" for available commands would be great. It will serve a few purposes:

help everyone in remembering skhd keybindings
adopting skhd keybindings from someone else will become easier as you can quickly see what keybindings are available
more importantly, for people using modals - it will help them know which modal state they are in. This has been a real issue for me (and the only one with skhd). I use modals heavily (#152) and oftentimes, I am not sure what modal state I am in.

I have only just started using skhd but being able to capture mouse button key presses and pass commands within apps would allow me to replace btt which i routinely have problems with.

I know this might not make it to the top of your priority list, but a way to display a "cheat-sheet" for available commands would be great. It will serve a few purposes:

help everyone in remembering skhd keybindings
adopting skhd keybindings from someone else will become easier as you can quickly see what keybindings are available
more importantly, for people using modals - it will help them know which modal state they are in. This has been a real issue for me (and the only one with skhd). I use modals heavily (vim-like modal keybindings workflow #152) and oftentimes, I am not sure what modal state I am in.

I had the same need and I ended up creating a small which-key with hammerspoon for that:
https://www.youtube.com/live/UchF6s2j5r8?feature=share&t=2273

Well a potential internal restructuring didn't happen, so instead there will be something else:
https://github.com/koekeishiya/meraki/blob/master/examples/merakirc
This is not aiming for feature parity with skhd or anything like that, which is why it is a separate project.
I am not really interested in input, but I am just linking it here in case the end goal might be interesting.
The reference specification is more or less a complete description of how things will work.


uv init creates project with warning about Requires-Python

❯ mkdir example
❯ cd example
❯ uv init
warning: `uv init` is experimental and may change without warning
Initialized project example
❯ tree .
.
├── README.md
├── pyproject.toml
└── src
    └── example
        └── __init__.py

3 directories, 3 files
❯ uv run -- python -c "import example"
warning: `uv run` is experimental and may change without warning
Using Python 3.12.1 interpreter at: /Users/zb/Library/Application Support/uv/python/cpython-3.12.1-macos-aarch64-none/bin/python3
Creating virtualenv at: .venv
warning: No `requires-python` field found in the workspace. Defaulting to `>=3.12`.
Resolved 1 package in 2ms
   Built example @ file:///Users/zb/workspace/example
Prepared 1 package in 1.02s
Installed 1 package in 0.86ms
 + example==0.1.0 (from file:///Users/zb/workspace/example)

We should set a Python requirement to avoid creating warnings in our own tool:

warning: No requires-python field found in the workspace. Defaulting to >=3.12.

Is it just: the version of the current interpreter?


Allow deletion of builds

Allow deletion of cancelled / failed builds.
Currently builds can be started and cancelled, however they cannot be removed via the portal or via the API.

Thanks for this request @scriptam. Is your use case here to clear up clutter from the list of builds?

Hi and thanks @nrajpurkar.
The use case leading for this request is as follows:

Customer automates and schedules builds via a script
One or more builds are cancelled
New builds will be queued
For resuming scripts (and for reporting), fetching all builds is cumbersome as they need to be filtered out by status every time
Customer wishes to only retain builds that completed, succeeded or failed (since they contain logs and meaningful data) but not cancelled ones (since they are empty)

De-cluttering will be a secondary but valuable benefit.


Ruby

Hi @tj. Apex looks really interesting. I saw this issue and just wanted to check: why did you close this without adding any Ruby runtime support to the project?

I didn't think we could add it, but I forgot about JRuby so that might be doable, though I think AWS is working on it right now (they tweeted a while back)


Cheat sheets > Data import / export has a few inconsistencies.

          `Cheat sheets > Data import / export` has a few inconsistencies.

The order of the items in the sidebar doesn't match the All Formats doc.  e.g. new_table is at the bottom.
empty_table is missing from the nav but is in the All Formats doc.

Originally posted by @chipkent in https://github.com/deephaven/deephaven.io/pull/4026#discussion_r1669264356

reorder the cheat sheet to match CSV, Kafka, Parquet, etc. With new & empty table at the bottom
We can add empty_table to the new_table cheat sheet and retitle.


configure problem - novice!

Hi
running on raspian,
on execute I get the following:
python3 -m mqtt_io config.MCP3008.yml
2022-03-31 00:53:17 mqtt_io.main [ERROR] MqttIo crashed!
Traceback (most recent call last):
File "/home/openhabian/mqtt-io/mqtt_io/main.py", line 104, in main
mqtt_gpio.run()
File "/home/openhabian/mqtt-io/mqtt_io/server.py", line 1229, in run
self._init_sensor_modules()
File "/home/openhabian/mqtt-io/mqtt_io/server.py", line 255, in _init_sensor_modules
self.sensor_modules[sens_config["name"]] = _init_module(
File "/home/openhabian/mqtt-io/mqtt_io/server.py", line 128, in _init_module
return module_class(module_config)
File "/home/openhabian/mqtt-io/mqtt_io/modules/sensor/init.py", line 22, in init
self.setup_module()
File "/home/openhabian/mqtt-io/mqtt_io/modules/sensor/mcp3008.py", line 46, in setup_module
spi=SPI.SpiDev(self.config["spi_port"], self.config["spi_device"])
File "/home/openhabian/.local/lib/python3.9/site-packages/Adafruit_GPIO/SPI.py", line 42, in init
self._device.open(port, device)
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/openhabian/mqtt-io/mqtt_io/main.py", line 112, in
main()
File "/home/openhabian/mqtt-io/mqtt_io/main.py", line 104, in main
mqtt_gpio.run()
File "/home/openhabian/mqtt-io/mqtt_io/server.py", line 1229, in run
self._init_sensor_modules()
File "/home/openhabian/mqtt-io/mqtt_io/server.py", line 255, in _init_sensor_modules
self.sensor_modules[sens_config["name"]] = _init_module(
File "/home/openhabian/mqtt-io/mqtt_io/server.py", line 128, in _init_module
return module_class(module_config)
File "/home/openhabian/mqtt-io/mqtt_io/modules/sensor/init.py", line 22, in init
self.setup_module()
File "/home/openhabian/mqtt-io/mqtt_io/modules/sensor/mcp3008.py", line 46, in setup_module
spi=SPI.SpiDev(self.config["spi_port"], self.config["spi_device"])
File "/home/openhabian/.local/lib/python3.9/site-packages/Adafruit_GPIO/SPI.py", line 42, in init
self._device.open(port, device)
FileNotFoundError: [Errno 2] No such file or directory
configure file is :
mqtt:
host: 192.168.##.##
port: 1883
user: ""
password: ""
client_id: control_panel
clean_session: true
topic_prefix: battery
status_payload_running: "online"
status_payload_stopped: "offline"
status_payload_dead: "offline"
sensor_modules:

name: mcp_adc
module: mcp3008

sensor_inputs:

name: test_adc
module: mcp_adc
channel: CH0

any insight appreciated...

Hi,
somethings not working with your SPI:
File "/home/openhabian/.local/lib/python3.9/site-packages/Adafruit_GPIO/SPI.py", line 42, in init
self._device.open(port, device)
FileNotFoundError: [Errno 2] **No such file or directory**

As far as I remember, you have to switch on SPI on the raspberry. e.g. via sudo raspi-config

Thanks, will try that this eve........

Thanks, SPI enabled and its now working.
I have a mcp3008 and using this config i am getting the reading from channel 0 every 15 secs.
I am struggling to to set the channel number, can be 0 - 7
mqtt:
host: <IP_ADDRESS>
port: 1883
user: ""
password: ""
topic_prefix: battery
gpio_modules:

name: rpi
module: raspberrypi

sensor_modules:

name: mcp3008
module: mcp3008

sensor_inputs:

name: analog7
module: mcp3008
interval: 15

however f I add the channel number:
sensor_inputs:

name: analog7
module: mcp3008
channel: 7
interval: 15

i get the following:
openhabian@openhabian:~ $ python -m pi_mqtt_gpio.server mqtt-io/config.MCP3008.yml                    2022-04-02 21:43:03,338 mqtt_gpio (INFO): Startup
2022-04-02 21:43:03,604 mqtt_gpio (ERROR): Config for 'mcp3008' sensor named 'analog7' did not validate:
channel:

must be of string type

looking at the schema:
SENSOR_SCHEMA = {
    "channel": dict(
        type="integer",
        required=True,
        min=0,
        max=7,
    )
}

solved this by using the following
I can now specify channels.
sensor_inputs:

name: analog0
module: mcp3008
interval: 10
channel: CH0


psi-plus: 1.5.1615 -> 1.5.1618

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/psi-plus/versions.
meta.description for psi-plus is: "XMPP (Jabber) client based on Qt5"
meta.homepage for psi-plus is: "https://psi-plus.com"
meta.changelog for psi-plus is: ""
Updates performed

Version update

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/8v953sc52p52srxwfxh3wp0z2450kmwi-psi-plus-1.5.1618/bin/psi-plus had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/8v953sc52p52srxwfxh3wp0z2450kmwi-psi-plus-1.5.1618/bin/.psi-plus-wrapped had a zero exit code or showed the expected version
0 of 2 passed binary check by having a zero exit code.
0 of 2 passed binary check by having the new version present in output.
found 1.5.1618 with grep in /nix/store/8v953sc52p52srxwfxh3wp0z2450kmwi-psi-plus-1.5.1618
found 1.5.1618 in filename of file in /nix/store/8v953sc52p52srxwfxh3wp0z2450kmwi-psi-plus-1.5.1618

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
psi-plus

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/8v953sc52p52srxwfxh3wp0z2450kmwi-psi-plus-1.5.1618 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A psi-plus https://github.com/r-ryantm/nixpkgs/archive/76591b5b62275ed19e86353c2c6c91e0267dfc15.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/8v953sc52p52srxwfxh3wp0z2450kmwi-psi-plus-1.5.1618
ls -la /nix/store/8v953sc52p52srxwfxh3wp0z2450kmwi-psi-plus-1.5.1618/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

psi-plus

Maintainer pings
cc @orivej @misuzu @unclechu for testing.

Result of nixpkgs-review pr 167440 run on x86_64-linux 1

1 package built:

psi-plus


SoD: Maelstrom Weapon, Power Surge implementation, Power Surge and Elemental Focus interaction. Era: Elemental Focus has 1 stack.

Rework of #174 which couldn't be fixed easily. Thanks for the hard work :)


[HUDI-2817] Sync the configuration inference for HoodieFlinkStreamer

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.

What is the purpose of the pull request
(For example: This pull request adds quick-start document.)
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Can we sync up all the inference logic ?

@danny0405 is this still useful?

We can close it.


DeserializeObject fails in .NET Core 3 on collection initialized with Enumerable.Empty

When I have a collection initialized with an Enumerable.Empty then DeserializeObject throws:
Unhandled exception. Newtonsoft.Json.JsonSerializationException: Cannot create and populate list type System.Linq.EmptyPartition`1[System.String]. Path 'Values', line 1, position 11.

If I change the initialization to something else (such as new List<string>()) then it works. This worked in prior versions of .NET, but now seems to fail in .NET Core 3.
Full repo:
namespace ConsoleApp1
{
    public class Foo
    {
        public IEnumerable<string> Values { get; set; } = Enumerable.Empty<string>();
    }

    class Program
    {
        static void Main(string[] args)
        {
            var f1 = new Foo { Values = new[] { "apple", "banana", "carrot" } };
            var json = JsonConvert.SerializeObject(f1);
            Console.WriteLine(json);

            var f2 = JsonConvert.DeserializeObject<Foo>(json);
            Console.WriteLine(f2.Values.Count());
        }
    }
}

I believe this is fixed in https://www.nuget.org/packages/Newtonsoft.Json/12.0.3-beta2

We tested and it seems it's working with the patch. Of course, the next question is what do you envision a release? Given that it breaks anyone using .NET Core 3 it seems an important patch to get out.
Thanks.

Any update? I don't see milestones, so I'm unsure what the plan is.

This still appears to be an issue, so same question as above re. an update. Our codebase makes extensive use of Json.NET functionality so switching to System.Text.Json isn't an appealing option.


fix: cursor shape update while hidden

The fix will allow updates of the cursor shape while the cursor is being hidden.
Fixes https://github.com/deep-entertainment/issues/issues/30

Thanks a lot. 😊


Added transformExtensions option for sourcemaps

ManifestPlugin currently doesn't handle sourcemap assets properly. main.js.map and main.css.map will result in a single output key, main.map. This is caused by the expectation of only a single file extension.
This is probably not the best way to solve this, but it works with minimal code changes. The imageExtensions RegExp was also changed to handle this. Additional extensions can easily be added for other modifiers. The change also includes a passing test for
Note: this branch is based off of patch-1 (#3). I can change that and rebase if you like the PR but don't want to have to cherry pick around.

awesome. thanks for the help