Swift 4 AND overriden "abs" functions

I have added AudioKit frameworks in a previously compiling code and added "import AudioKit".
now I got:
.... ViewController.swift:21:8: Binary operator '<' cannot be applied to operands of type 'AKOperation' and 'Double'
So i replicated in brand-new iOS project:
if I write:
import UIKit
import AudioKit
func foo(){
let a: Float = 10
let b: Float = 20
let c = abs(a+b)
if c < 10.0{
}
}
I got the error. I noted that "abs" is colored as User-defined function.
to fix It I must use:
import UIKit
import AudioKit
func foo(){
let a: Float = 10
let b: Float = 20
let c : Float = abs(a+b)
if c < 10.0{
}
}
so avoiding Swift inference will use native method "abs()", that is now colored as swift built-in type/functions/methods.

Clever work around!

:)
I think other people will have it.

I've made a documentation page for this sort of thing, hopefully it will grow over time and be more useful than having this stuff in the issues list, so I'll close this issue in favor:
https://github.com/AudioKit/AudioKit/blob/develop/Documentation/TipsAndTricks.md


offline installation clarification

hi there,
in readme for offline install stated that prestoadmin--offline.tar.gz file should be downloaded and install-prestoadmin.sh file should be executed. but I dont see any of these files in repo. what I am missing? thank you.

Hi, you are right, documents do not mention where to download offline files. You can find them in releases section of GitHub. I included the link below anyway.
https://github.com/prestodb/presto-admin/releases


Patch within config

Add the ability to set patching within the config file. Something like
A:
  ...
B:
  $patch: A
C:
  $patch: B
D:
  $patch: B
E:
  ...
F:
  $patch: A<-E

The above would auto convert to:
A
A<-B
A<-B<-C
A<-B<-D
E
A<-E<-F

Added in #19


Use same mixer interface for wasapi and audiounit

Since we have similar patterns to call up/downmixing in cubeb_wasapi.cpp and cubeb_audiounit.cpp, it will be easier to maintain the code if we have an identical interface and use it in both backends.

Can you fix the issue on Linux ? The linux backend is still C so you can't use C++ constructs there.

I had the same issue for the resampler, I ended up keeping the C API, but doing static dispatch with templates underneath to have static polymorphism, look in cubeb_resampler.h and cubeb_resampler{,_internal}.cpp.

Thanks for the hints!


When Compact Crafting is installed, it causes Prefab to lag badly

Here's a spark profiler of me placing a structure from Prefab down while Compact Crafting is installed: https://spark.lucko.me/CJcZLzoQoY

Here's the same while CC is not: https://spark.lucko.me/SicatNZYT6

This is using compactcrafting-3.1.0.jar

Apparently a potential fix to this would be using the Points of Interest mechanic, the thing used for villager work stations etc, rather than checking an 11x11x11 cube every time a block is placed.


Improved autocomplete

Proposed changes
Added Data-Array for Autocomplete.  #219
Better organized Data-Structure than an Object with Keys. This is a breaking change because the old API for the Autocomplete was poorly designed so now it should be more flexible and ready for future upgrades (like maybe add a description to the options, or search different properties not only name).
I hope you merge it soon because it is a cool feature :D
Looking forward for your comments. Sorry @Smankusors I also removed some comments here an i tried to keep the code clean ;)
best greets and a good time!
Types of changes

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

Checklist:

[x] I have read the CONTRIBUTING document.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Also related issue: #115 => The sorting also gets easier and cleaner with the data-array.
What do you think @ChildishGiant ?
Additionally it would be a step in the right direction in issue #67 and would also solve this.
And as we changed the security fixes for autocomplete (xss) we already had a breaking change here and it also worked!
What do you think about the merge? I am hyped and looking forward for the merge, so please comment 😄

Good morning,
Just out of curiosity as these improvements are exactly what I need to finish a project I am working on. what is the rough timeline for this? (just trying to decide if I wait a bit or implement a temporary workaround)
Thank for the great tools :D

@wuda-io wait, should this be on v1.1 or v2 btw? This will break someone's existing app implementation 😅

Hello, any news on this PR? Why did you close it (and not merge it)? Thanks :)


Counts hits etc multiple times if log configured in .conf & command line

I've only been using Goaccess for a few days and love it but was surprised to see my web traffic almost doubled over a period of one hour.
I'm using version 1.3 on  Centos 7.
I checked the stats in the usual way and then closed it. Came back an hour later and reloaded it and found web traffic had doubled. The difference being that I had configured the goaccess.conf and included the log file to read and then loaded from the command line using "sudo goaccess /var/log/nginx/access.log"
It would seem goaccess read /var/log/nginx/access.log from the config file and then again from the command line and processed it twice.
Is it possible to add an internal check to see if the log file has been re-specified? I'm likely to do it again and be just as confused as I was earlier.

I'm guessing you are using the on-disk storage? If that's the case, the soon-to-be-release version will have this protection. #334

Brilliant, thanks. It isn't a real issue but it was confusing until I realized my mistake.
Thanks again.


Resolve macos build issues

[ ] Update slonik to 2.0, addressing type inconsistencies
[ ] base-project node_modules symlink follow endless loop
[ ] issue with jest setup/teardown for scripts test suite

Experimental canary has been published in order to test that bundle features still works in project space -<EMAIL_ADDRESS>

Hm.. this branch isn't completing the npm install either, but isn't complaining about slonik anymore. Attached is the error I get, and the code chunk in npm/prepare.ts it's complaining about. Seems like the cp command isn't building the path correctly on my machine.

Looks like maybe an issue with it following a symlink on that recursive copy and it's cycling infinitely.
I think we can exclude something from that copy to make it work, like the node_modules folder in base project path

This might be macos specific or zsh specific such that I don't hit it.

Decision is we will land this and migrate any remaining info to a new ticket


Feature/integrate spotless and prettier

Checklist

[x] I run yarn run webpack:build:main: the project builds without errors.
[x] I run yarn lint: there project builds without code style warnings.
[x] I removed unnecessary whitespace changes in all related files.
[x] I updated the documentation and models.
[x] I tested the changes and all related features on the test server https://artemistest.ase.in.tum.de.
[x] I added (end-to-end) test cases for the new functionality.

Motivation and Context
A consistent code style is important i added a automatic code formating
Description
added spotless for java and prettier for html, typescript, json and scss

IMPORTANT FILES:

.huskyrc
build.gradle
linting.sh
package.json

the rest is auto formatted

We already have some merge conflicts here.
We can try to commit these changes to the configuration files using --no-verify flag. (this ignores all pre-commit hooks)
That way this PR would be really small and could wait without conflicts until the time seems right to merge.


Sidebars not scrollable: Need to scroll the entire page to see bottom of them

Description
The sidebars don't have scrolls so if they are bigger than the screen, we need to scroll the entire page to see its end.
Expected behavior
We can scroll to see any item on the sidebars without needing to scroll the page.
Actual behavior
We need to scroll the entire page to see the last items of big sidebar menus.
https://user-images.githubusercontent.com/38889364/104638517-076aa200-5685-11eb-89e2-a204f9c4dc25.mp4

Closed by #40.

Closed by #40.


Asynchronous (concurrent-safe) predicates

In Yarn, we offer a way to inspect information about the project dependencies via Prolog. At the moment this process is completely synchronous, but I'm considering adding some new predicates, one of which lets you obtain the latest release available for a given dependency range - which requires to query the registry. While it's reasonably fast in parallel (~10s for all dependencies in an average project), it's much slower when done sequentially (~2mns).
Do you see a way we could make it possible to parallelize some parts of the execution? Perhaps by having a "fork point" predicate or syntax from which the interpreter would compute all the possible answers up until now, fork them, continue the execution into each individual thread, and coalesce all those result sets into a single one?

The set_timeout/3 predicate from the os module allows you to call predicates "in parallel" (if goals perform asynchronous tasks):
:- use_module(library(os)).

top :-
    set_timeout(0, (sleep(3000), write(a)), _),
    set_timeout(0, (sleep(2000), write(b)), _),
    set_timeout(0, (sleep(1000), write(c)), _).

?- top.
true.
cba

If you don't need to collect the answers, this predicate should suffice. But, for what you ask, it is a good idea to add a promises module in the promises package. I will look at it this week.

One thing I tried was to make my custom module predicate return a promise identifier, which could be passed to an await/2 predicate to actually block on the promise. It worked, but wasn't very convenient to work with - parallelizing the work required something similar to this:
:-

% This `bagof` call forces evaluation of all the `suggested_package_range` answers,
% before the execution blocks on the subsequent `await`
findall(Promise, suggested_package_range(Cwd, Name, Range, Promise), PromiseList),

% Then we turn back the result list into individual answers
member(Promise, PromiseList),

% And finally we can await each of them individually (they are all running in the background,
% so blocking the execution isn't a problem)
await(Promise, Latest).

It'd be interesting if there was a meta predicate abstracting this writing so that it'd become:
parallel(suggested_package_range(Cwd, Ident, Range, Latest), Latest)

I just added the the basic predicates for the library.

future(+Template, +Goal, -Future)
await(+Future, ?Result)
future_all(+ListOfFutures, -Future)
future_any(+ListOfFutures, -Future)

Example (http://tau-prolog.org/sandbox/I6q4S1lY):
:- use_module(library(os)).
:- use_module(library(concurrent)).

top(X) :-
    future(X, (sleep(3000), X = a), F1),
    future(X, (sleep(1000), X = b), F2),
    future(X, (sleep(1000), X = c), F3),
    get_time(T0),
    future_all([F1,F2,F3], F),
    await(F, X),
    get_time(T1),
    Time is T1 - T0,
    write(time(Time)).

?- top(X).
X = [a,b,c].
time(3003.0)

If the suggested_package_range/4 predicate returns futures on backtracking:
?- findall(Future, suggested_package_range(Cwd, Name, Range, Future), FutureList),
   future_all(FutureList, Future),
   await(Future, Latest).

Thanks for looking into that! I tried it with Yarn, it's a nice start, here are my observations:

The concurrent module doesn't wrap its pl extensions into an extend function (unlike what the promises module does), so it doesn't work on Node without modifications

Calling link.toJavaScript crashes on future - the alternative is to check that we're working with anything but a future and handle this case separately, but that's more complicated for lists of futures (or even deeper); perhaps turning them into null or the string "<Promise>" would be better

In terms of performance, I must be doing something wrong. To give you an idea, my last experiment (https://github.com/yarnpkg/berry/pull/4566) involved creating a special operator (|). When encountered, the left side answers are all retrieved, then the right side is evaluated against each answer (inside a new thread). With this workflow, the following command (which you can test by just cloning my PR and running the command inside the repo) takes ~12s on my machine:
$ time yarn constraints query --json "workspace_has_dependency(Cwd, Ident, Range, _) | suggested_package_range(Cwd, Ident, Range, Future), await(Future, Latest)" | wc -l

599
12.22s user 1.79s system 111% cpu 12.577 total

On the other hand, using findall and future_all, I get much worse perfs (more than a minute):
$ time yarn constraints query --json "workspace_has_dependency(Cwd, Ident, Range, _), findall(Future, suggested_package_range(Cwd, Ident, Range, Future), FutureList), future_all(FutureList, FutureAll), await(FutureAll, Latest)" | wc -l

599
16.40s user 2.77s system 27% cpu 1:09.18 total

To evidence that the execution didn't start in parallel, we can see that the naive command (where we don't parallelize anything, we just immediately await all futures) takes as much time:
time yarn constraints query --json "workspace_has_dependency(Cwd, Ident, Range, _), suggested_package_range(Cwd, Ident, Range, Future), await(Future, Latest)" | wc -l

599
14.09s user 2.03s system 25% cpu 1:04.26 total

It's almost as if the findall had no effect - do you have any idea what I might be doing wrong? This is my implementation for suggested_package_range:
https://github.com/yarnpkg/berry/blob/d051f2e55e6a1b3131d3fa7a8c3bdf8be78b3f8d/packages/plugin-constraints/sources/tauModule.ts#L47-L89

Oh, I think I misunderstood your predicates.
If suggested_package_range/4 provides an answer for each answer to workspace_has_dependency/4, you should do something like this:
?- findall(Future, (
       workspace_has_dependency(Cwd, Ident, Range, _),
       suggested_package_range(Cwd, Ident, Range, Future)
   ), FutureList),
   future_all(FutureList, FutureAll),
   await(FutureAll, Latest).

Furthermore, you don't need to directly use pl.type.Future in the implementation of suggested_package_range/4. Just make an async predicate that pushes a new state on the stack with the response when available. Then you will be able to create the future from Prolog:
?- findall(Future, (
       workspace_has_dependency(Cwd, Ident, Range, _),
       future(X, suggested_package_range(Cwd, Ident, Range, X), Future)
   ), FutureList),
   future_all(FutureList, FutureAll),
   await(FutureAll, Latest).

The concurrent module doesn't wrap its pl extensions into an extend function (unlike what the promises module does), so it doesn't work on Node without modifications

Fixed.

The concurrent module doesn't wrap its pl extensions into an extend function (unlike what the promises module does), so it doesn't work on Node without modifications

I will look at it.

I expected future_all(FutureList, FutureAll), await(FutureAll, Result) to put a list of resolved values inside Result, but it seems to generate one answer for each value in the array (as if there was an implicit member(Result, ResultList)). Is it expected?

future_all/2 takes a list of futures and returns a single Future that resolves to a list of the results of the input futures. Similar to Promise.all.

If suggested_package_range/4 provides an answer for each answer to workspace_has_dependency/4, you should do something like this:
?- findall(Future, (
       workspace_has_dependency(Cwd, Ident, Range, _),
       suggested_package_range(Cwd, Ident, Range, Future)
   ), FutureList),
   future_all(FutureList, FutureAll),
   await(FutureAll, Latest).

Oh, I didn't realize the workspace_has_dependency had to be inside the meta-predicate rule, although that makes sense (I guess that otherwise the interpreter was spawning one separate future for each package resolution request, essentially nullifying the parallelism).
However, moving it inside findall prevents me from getting the values for Cwd, Ident, and Range. Do you see a way I could retrieve them? I tried replacing findall by bagof, but then the execution is slow again. I think I'd need a predicate that would store the answers into a future opaque object, then another that would await this future and unpack the answers 🤔


make compile with current ros2 HEAD

this PR makes it compile with the current ros2 master branch.
Please apologize the whitespace madness, must be a visual studio thing.

I added some comments. Could you change these things?

Thanks. I just updated the documentation.


Enhance Menu cards

We can add another card on clicking any food card, which opens up and has same image and some description of dish along with review section and item counter.

@khushi-joshi-05  please assign this to me i am GSSOC'24 contributor with 2+ years of experience in development


[IE/DML] Change resample to resample2d.

Change resample to resample2d for IE and DML.
Add test cases for new feature align with WebNN-polyfill.
@fujunwei PTAL, thanks!

@fujunwei Updated according to the suggestions from you and merged the DML code into this PR for CI checking. PTAL, thanks!

Solved these issues. PTAL, @fujunwei thanks a lot!

Solved these issues. PTAL, @fujunwei thanks a lot!

LGTM, thanks.

@miaobin Please rebase it, thanks.

@miaobin Please rebase it, thanks.

OK, will be updated in the next commit.

@fujunwei I have rebased the code. PTAL, thanks a lot!


Proxy in latest version cannot work well

Hi @Teranode ,I'm sorry, maybe I was wrong just now.
Now my Axios and proxy versions are the latest, but proxy still doesn't work.

[Vue Router warn]: No match found for location with path "/api/v2/Member"
Could you please check on your side?

@KahrLu http-proxy-middleware is going through a refactor so im gonna be using http-proxy can you update to 1.2.0 and see if that works?

Thx, it works well now

Hello, I have same problem here, how did you resolve it please ? I tried @Teranode s answer but it doesn't work.

Got the same problem. Would be great so see a working example.


Fix the encoding of the MSFT_OP_* unwind codes.

@pmsjt : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Installing on MacOS Big Sur

Installing go from scratch does not work for Big Sur as 1.4 does not have a binary for this OS (this command fails - gvm install go1.4 -B).
To use gvm, you can do this:

Install go from the official site
gvm install go1.15.5
gvm use go1.15.5 --default
sudo rm -rvf /usr/local/go/ (which will uninstall non-gvm version).

Thanks @bullgare, this worked for me as well.

Installing go1.16.2...
 * Compiling...
go1.16.2 successfully installed!
$ rm -rf go

I submitted a patch that should resolve this https://github.com/moovweb/gvm/pull/380
Go version 1.4.x, is ancient at this point and will not work on Big Sur (it's nearly 6 years old), but more recent binary versions work as expected.

Agree with @patrykkrawczyk re brew.
One thing to add, remember to export GOROOT_BOOTSTRAP. If not then future gym install commands will fail to compile
brew install go
gvm install go1.15.5
gvm use go1.15.5 --default
brew uninstall go
export GOROOT_BOOTSTRAP=$GOROOT
gvm install go1.18.3
gvm use go1.18.3 --default

For Mac M1, I was only success with go1.8 or 'go1.9'


Add missing some build parameter and can't parse .drone.yml file for Bitbucket (Stash) server.

Screenshot as below.

Signed-off-by: Bo-Yi Wu<EMAIL_ADDRESS>

Need waiting #1690

Already merged into #1690 so closed this PR.


Alphabetize adapters

super minor but thought it would be nice to have these alphabetized (case insensitive because it makes it easier to spot named adapters i.e. Redis v. memory) to make it easier to spot supported adapters

I'm all for minor improvements. Thanks for caring!


croutonversion: "unknown"

I received an update to Cromeos, and tried to update my chroot after installing it. But it failed because it was trying to fetch urls with "unknown" where the version should be. This seems to be because my crountonversion just says "unknown."
Here's the exact output:
(trusty)[redacted]@localhost:~$ croutonversion
crouton: version unknown
release: unknown
architecture: unknown
xmethod: xiwi
targets: xiwi,xephyr,xfce,audio,core,extension,keyboard
host: version 6946.70.0 (Official Build) stable-channel falco
kernel: Linux localhost 3.8.11 #1 SMP Tue Jul 7 19:37:29 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux
freon: yes

I tried searching and didn't see this exact issue.

What's the output when you try to update the chroot?


[v1.0.0] Can not importData

Run
        superscript(options, (err, _botInstance) => {
            logger.warn('superscript#botInstance created.')
            if (err)
                return reject(err)
            this.botInstance = _botInstance;
            resolve(this);
        });

get the output
[2016-11-16 16:48:38.193] [INFO] console - config.superscript.data chatbot-mvp/philly-logic/data.json
[2016-11-16 16:48:38.635] [ERROR] console - Mongoose: gambits.ensureIndex({ id: 1 }, { background: true })
[2016-11-16 16:48:38.640] [ERROR] console - Mongoose: gambits.remove({}, {})
[2016-11-16 16:48:38.641] [ERROR] console - Mongoose: replies.ensureIndex({ id: 1 }, { background: true })
[2016-11-16 16:48:38.642] [ERROR] console - Mongoose: replies.remove({}, {})
[2016-11-16 16:48:38.643] [ERROR] console - Mongoose: topics.ensureIndex({ name: 1 }, { unique: true, background: true })
[2016-11-16 16:48:38.644] [ERROR] console - Mongoose: topics.remove({}, {})
[2016-11-16 16:48:38.644] [ERROR] console - Mongoose: users.remove({}, {})
[2016-11-16 16:48:38.649] [ERROR] console - Mongoose: gambits.ensureIndex({ trigger: 1 }, { background: true })
[2016-11-16 16:48:38.654] [ERROR] console - Mongoose: topics.findOne({ name: null }, { fields: undefined })
[2016-11-16 16:48:38.669] [ERROR] console - Mongoose: topics.insert({ _id: ObjectId("582c1d6667954b053042507b"), gambits: [], keywords: [], filter: '', nostay
: false, system: false, keep: false, __v: 0 })
[2016-11-16 16:48:38.683] [ERROR] console - Mongoose: topics.findOne({ name: null }, { fields: undefined })
[2016-11-16 16:48:38.689] [INFO] console - Bot is ready for input!

In the Importer, data is like below.
data.json
{
  "topics": {
    "random": {
      "flags": [],
      "keywords": []
    },
    "sayhello": {
      "flags": [
        "keep"
      ],
      "keywords": [
        "hello"
      ],
      "filter": null
    }
  },
  "gambits": {
    "ew25c5aW": {
      "topic": "sayhello",
      "options": {
        "isQuestion": false,
        "qType": false,
        "isConditional": false,
        "qSubType": false,
        "filter": false
      },
      "replys": [
        "xVVAS1zZ",
        "rVJZorXd",
        "ElcLpBqk"
      ],
      "redirect": null,
      "trigger": "~emohello",
      "raw": "~emohello"
    },
    "0ONYOEjZ": {
      "topic": "sayhello",
      "options": {
        "isQuestion": false,
        "qType": false,
        "isConditional": false,
        "qSubType": false,
        "filter": false
      },
      "replys": [
        "2DBSPSTZ"
      ],
      "redirect": null,
      "trigger": "what(?:\\s*is the\\s*|\\s*)weather(?:\\s*in\\s*|\\s*)(\\S+(?:\\s+\\S+){0})",
      "raw": "what [is the] weather [in] *1"
    },
    "aZHrEvNJ": {
      "topic": "sayhello",
      "options": {
        "isQuestion": false,
        "qType": false,
        "isConditional": false,
        "qSubType": false,
        "filter": false
      },
      "replys": [
        "TrYNXgoi",
        "ZlgT7lE5",
        "2Ljkpo9P",
        "35g8ARg4",
        "xy7j4Ngj"
      ],
      "redirect": null,
      "trigger": "how (\\bare\\b|\\bare\\b|\\babout\\b)\\s? (\\byou\\b|\\byou\\b)\\s?",
      "raw": "how (are|are|about) (you|you)"
    },
    "QWTkYSh9": {
      "topic": "sayhello",
      "options": {
        "isQuestion": false,
        "qType": false,
        "isConditional": false,
        "qSubType": false,
        "filter": false
      },
      "replys": [
        "jn88QbiR",
        "bMkmz3cm"
      ],
      "redirect": null,
      "trigger": "~emohozit",
      "raw": "~emohozit"
    }
  },
  "convos": {},
  "replys": {
    "xVVAS1zZ": "{keep} hi, ^displayUsername().",
    "rVJZorXd": "Nice to meet you. ^displayUsername()",
    "ElcLpBqk": "hey, how are you today?",
    "2DBSPSTZ": "^getWeather(<cap1>)",
    "TrYNXgoi": "I am fine, what a nice day!",
    "ZlgT7lE5": "I am great.",
    "2Ljkpo9P": "Fine, thank you.",
    "35g8ARg4": "Not bad, everything is in a rush.",
    "xy7j4Ngj": "I'm doing great, thank you my friend",
    "jn88QbiR": "how do you do, ^displayUsername()",
    "bMkmz3cm": "Do you know that in English \"How do you do\" is a formal greeting, similar to \"Hello\"?"
  },
  "checksums": {
    "./topics/greetings.ss": "439f952e8f1a14af157826f62073a3b56b8f6481"
  }
}

Expected Behavior
All gambits, replies and topics should be imported into database.
Current Behavior
Only one topic is created. Well, it seems name is missing.
{
    "_id" : ObjectId("582c1ee54e7f3a1b2052fead"),
    "gambits" : [],
    "keywords" : [],
    "filter" : "",
    "nostay" : false,
    "system" : false,
    "keep" : false,
    "__v" : 0
}

Possible Solution

Steps to Reproduce (for bugs)
Does it use another superscript parser for v1.0.0?
In my condition, after writing ss file, processing is done with https://github.com/superscriptjs/ss-parser
Context

Your Environment

Version used:
Environment name and version (e.g. PHP 5.4 on nginx 1.9.1):
Server type and version:
Operating System and version:
Link to your project:

Yep, a completely new parser is used for SuperScript v1. You'll want to re-parse the file with parse and it should fix it.
I'll leave this open so we can add a version to the parsed JSON file, which'll tell us which version of the parser it was built with (and then fail if it doesn't match a supported SS version).

fixed with latest parser
https://github.com/superscriptjs/ss-parser/tree/v1.0.0

I've added a version number to scripts so if anyone runs into this issue, they'll now get an informative message about what's gone wrong.


Fail fast if our python dependencies aren't installed – closes #236

We were jumping through some weird hoops to avoid early imports that might have prevented the plugin from loading entirely, with bad error messaging. But that resulted in the plugin getting a lot further into execution than it should (including starting the server), since it can't do anything useful without these deps installed.
I came up with a way to validate the deps before our Python modules load, so now we can import normally in our code. This works in Vim and Neovim, prompting the user with a message when starting up if a dependency is missing.
There is one edge case: if a Neovim user has already used ensime-vim before and has generated the rplugin manifest, Neovim is going to load it. In the case that they've inadvertently removed one of the deps or their Python environment changed or whatever, they'll first be shown the message at startup as usual about missing deps (pausing for them to hit Enter), but then Neovim will start reporting errors about the autocmd handlers not working.
I think this is acceptable, the user still gets the helpful error message first and just needs to quit the editor and fix it. Plus it's a fairly unusual case. What do you think? I can't see a way to avoid this except to have every function in the rplugin do an ImportError check before calling super, or something gross like that. This is an unfortunate consequence of the whole :UpdateRemotePlugins cached manifest system.

On the same page, I have been thinking we could implement a Neovim Health Checker. What you reckon?

That's pretty nifty, I didn't even know the ability for plugins to hook into that got implemented. Too much stuff happening in Neovim for me to keep up with 😄
Okay cool, I'll merge this then because it's going to conflict with #367 so I'll rebase it.

For future nvim users, who may experience problems after this update and google for traceback.
After updating all plugins I started to see following warning after git commit:
Error detected while processing function <SNR>98_DependenciesValid:
line   12:
Traceback (most recent call last):
  File "<string>", line 10, in <module>
AttributeError: 'module' object has no attribute 'vars'
Press ENTER or type command to continue
Aborting commit due to empty commit message.

Problem was in ~/gitconfig, because I had vim as core.editor and old vim doesn't know anything about neovim python interface. Solution is just to change core.editor to nvim (and all other possible places).
Sorry if this is irrelevant, but it took some time for me to figure out problem and culprit plugin.

@chuwy That's interesting, this should be compatible with standard Vim's Python interface as well, not Neovim-specific. Can you report the vim --version for the Vim that your git config was executing when this happened?

Hey @ches, sure.
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 14 2016 16:06:49)
Compiled by<EMAIL_ADDRESS>Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype
+path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn
-python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
 -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
 -xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe
Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses

This is standard Mac OS El Capitan vim, placed in /usr/bin/vim.
Obviously this also fails on simple vi invocation, not just on git commit.

Okay thanks, I tried on the stock /usr/bin/vim on Sierra and vim.vars in :py works, maybe this was added in 7.4 because it's VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 19 2016 15:09:36). I'll see about detecting that or using an approach that's more compatible with older versions so others don't run into this error, thanks for reporting.


Add ivsc-firmware to ipu6 option

Description of changes
ivcs firmware is needed for some ipu6 webcams (reading some threads seems like mostly dells) and looking into the documentation for https://github.com/intel/ipu6-drivers seems like ivsc firmware is need it
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

related to #295508

Quick question, should this: https://github.com/bubuntux/nixpkgs/blob/811872a489f6ca41809f16a6032658894edf53c2/nixos/modules/hardware/video/webcam/ipu6.nix#L28-L32
have an extra one called v4l2loopback ?

at least on my system doesn't seems like is need it to get the webcam working


  I am using REFix version 0.5.1-b1 (https://github.com/TheTedder/REFix/releases/tag/v0.5.1-beta.1) in combination with REFramework version 1.5.2 and 1.5.3; none work, and all have the same error message. There is an error with REFramework's plugin_initialize process:

[REFramework] [error] [PluginLoader] REFix has an exception in reframework_plugin_initialize, skipping...

I reinstalled windows, updated it via windows update, disabled any AV/windows defender/etc, installed all system/device drivers, and then re-installed the game, and the error still occurred.
System info:
Win10 Pro x64 build 19045
MSI GeForce 3070
Intel Core i7 965
Attachments:
Log
re2_framework_log.txt
Screenshot

Make an issue on his repo.


[main] --: /tmp/.WJf2lg: /bin/sh: bad interpreter: Text file busy

Hi,
I am trying to test Werk out for the first time and I'm running into the following error.
Here's how to repro:
docker run --name werk_test -dt centos:7 bash
docker exec -it werk_test bash
curl -LO https://github.com/marghidanu/werk/releases/download/0.7.3/werk-linux-x64
chmod +x werk-linux-x64

Now I add a very basic werk.yml:
version: "1"

description: "Manage Werk with Werk"

jobs:
  main:
    description: "sleep"
    executor: local
    commands:
      - sleep 1

Planning works:
./werk-linux-x64 plan
┌──────────────────────────────────┐
│             Stage 0              │
├────────┬─────────────┬───────────┤
│  Name  │ Description │ Can fail? │
├────────┼─────────────┼───────────┤
│  main  │ sleep       │    No     │
└────────┴─────────────┴───────────┘

But not running:
./werk-linux-x64 run
[main] --: /tmp/.et15hF: /bin/sh: bad interpreter: Text file busy

Any ideas or am I doing something wrong?
Thanks!

My apologies @marghidanu , I made a miss of things. Feel free to check this out and merge it the right way when you have some time.

Hello! Thank you for using werk! Can you please add a PR on the main repo for this?


Refactor the processing of environment variables

Current behavior
Environment variables are processed in a dozen of places and could benefit from a more consistent treatment (see this PR comment for an example)
Desired behavior
Refactor the access to environment variables as a function
pub fn get_env<T: FromString>(var_name: &str, default_value: T): Result<T>

where

FromString is a trait used to parse strings into values, with implementations for String, comma-separated list of strings, bool, u8, etc... (it cannot be FromStr because we want to accept values like TRUE or 1 for booleans)
default_value is returned if the variable is missing
an Err is returned if the value cannot be parsed

We love helping new contributors!
If you have questions or need help as you work on your first Ockam contribution, please leave a comment on this discussion.
If you're looking for other issues to contribute to, checkout this discussion and labels -  https://github.com/build-trust/ockam/labels/good first issue or https://github.com/build-trust/ockam/labels/help wanted

I could take that

That would be great, thanks! Please don't hesitate to ask questions if you need more directions.

I have a couple of questions to clarify the implementation details:

What is the best place to declare this function?
Is it basically "try to get env with name var_name, if it doesn't exist, then return the default value"?

And also,
3. Where can I find implementation of FromString trait? Or do I need to implement it myself?

@ JungleTryne FromString would be a new trait with default implementations. Let me try to write a more complete specification for this feature :-):
Function
Signature
pub fn get_env<T: FromString>(var_name: &str, default_value: T): ockam_core::Result<T>

This function must be available with unit tests in ockam_core/src/env.rs

if an env. var does not exist the default value is returned
if an env. var exists, decode it with the corresponding FromString instance

if its value cannot be decoded, this is an Err which should specify: the erroneous value and the expected type

FromString trait
trait FromString<T> {
   fn from_string(str: String): ockam_core::Result<T>
}

This trait must be available in ockam_core/src/env.rs
The FromString behaviour for the following types is:

bool accepts true or false whether they are capitalized or not, accepts 1 for true and 0 for false
u<n> accepts any string representing a u<n> (where n is 8, 16, 32, 64, size)
char is accepted if the string is just one character
String is accepted as it is
Vec<T> is accepted if it is a comma-delimited list of strings where each string represents a T: FromString

Scope
All the code that is currently using std::env::var or std::env::var_os (16 matches) should be retrofitted to use that function.

Thanks for the great explanation! What do you think would be the best way to test get_env? Do I just set env variables in the unit tests by env::set_var, or there is a way to mock it properly?

Good question. Ideally, at some stage, I would like to have interfaces and mocks for all the IO in the library: to read environment variables, but also to read/write files. In the meantime I suggest that you indeed use env::set_var (with a dummy variable name to avoid possible clashes with other tests, like OCKAM_TEST_ENV_VAR).  There are mostly 3 tests to do:

the env var is found and can be parsed
the env var is found but cannot be parsed
the env var is not found

The other tests are pure unit tests on the FromString instances.

I noticed that in some places when the env var value is not found an error is returned. There are several ways to handle this case:

Make default_value optional. And if default_value is not specified then the function with return an error:

pub fn get_env<T: FromString>(var_name: &str, default_value: impl Into<Option<T>>): Result<T>

Make default_value optional the other way

let result = get_env::<String>("SOME_VAR")
    .with_default("Hello")
    .done()

I would apprericate if you could help me figure it out!

Good point. I propose a variation to avoid the option and give some flexibility to the client of get_env

get_env which returns a Result<Option<T>>, and Ok(None) if the variable is not found to let the client decide what to do with it (maybe access another variable or raise an error). We keep the Result only for parsing errors
get_env_with_default which returns Result<T> and uses a default value if the environment variable is not set


Add script to automatically create doc changes

Thanks @AlexWendland! :cake:
I iterated over this and finished the automated migration here: https://github.com/fastapi/fastapi/pull/12950
Thank you! I'll now close this one. :coffee:


First implementation of property_migrations lookup

This is an initial implementation to incorporate property_migrations into the ingest client. All local tests passing.

Codecov Report

Merging #21 into master will decrease coverage by 2.09%.
The diff coverage is 39.24%.

@@            Coverage Diff            @@
##           master      #21     +/-   ##
=========================================
- Coverage   61.11%   59.01%   -2.1%
=========================================
  Files          26       26
  Lines        2515     2789    +274
=========================================
+ Hits         1537     1646    +109
- Misses        978     1143    +165

Impacted Files
Coverage Δ

ingest/template/spreadsheet_builder.py
54.42% <16.66%> (-1.22%)
:arrow_down:

ingest/template/schema_template.py
77.73% <41.09%> (-12.89%)
:arrow_down:

ingest/api/dssapi.py
22.95% <0%> (-1.47%)
:arrow_down:

ingest/exporter/ingestexportservice.py
25.93% <0%> (+2.79%)
:arrow_up:

ingest/api/ingestapi.py
30.81% <0%> (+5.24%)
:arrow_up:

Continue to review full report at Codecov.

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

@simonjupp Please let me know if you're happy for this to be pushed through the pipes in its current form or if you were hoping for something more fully fledged.


Allow accounts to be editable

This pull request needs to be re-opend because the head of the main branch was rest


[Feature request] Scrolling text

So the basic idea of this feature, is whenever some text is larger than the module width, the text would be scrolling from the left or from the right.
Like this:

I know, that you can limit the length of the given text for a module, but I think, this would be a nice feature for the mpd module.
Some considerations:

would this feature be intensive on the cpu?
would it be much effort to implement this?

I would love to hear feedback about this feature.

Right now, the "heavy" lifting of the max-length config is done by Gtk::Label and its method set_max_width_chars.
I'd say it's tricky to implement a marquee function in ALabel, because the event control for any updates and re-rendering is in the places that use ALabel and not in ALabel itself. (But perhaps I understood that wrong from a quick glance.)
What might work though in the long run, is to use CSS. In general, it's possible to create Marquee animation using CSS like this:
#custom-xyz {
    animation-name: marquee;
    animation-duration: 5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
    background-color: #330000;
    color: #ffffff;
}

@keyframes marquee {
    0%{
	transform: translateX(0px);
    }
    100% {
        transform: translateX(100px);
    }
}

Sadly, this does not work in Gtk3, but might to a certain degree in Gtk4, if Waybar ever switches to that.
I had ChatGPT create this python demo. Gtk does not accept percentages as parameter to translateX at this point, perhaps that needs a feature request as well.
There are probably plenty examples out there for "CSS Marquee" that could be tried.


Compatibility with Kotlin 1.3.70

Attempting to build the current 1.10.0 version of klock in a Multiplatform setting causes the iOS library to be skipped due to an unexpected abi version.
> Task :shared:compileKotlinIos FAILED w: skipping /Users/corey/.gradle/caches/modules-2/files-2.1/com.soywiz.korlibs.klock/klock-iosx64/1.10.0/aa48e4992242cc06e8d749eafad3e3f9ba26c69e/klock.klib. The abi versions don't match. Expected '[17]', found '22' w: The compiler versions don't match either. Expected '[]', found '1.3.70-release' e: Could not find "/Users/corey/.gradle/caches/modules-2/files-2.1/com.soywiz.korlibs.klock/klock-iosx64/1.10.0/aa48e4992242cc06e8d749eafad3e3f9ba26c69e/klock.klib" in [/Users/corey/Development/kotlin/Life4Trials, /Users/corey/.konan/klib, /Users/corey/.konan/kotlin-native-macos-1.3.61/klib/common, /Users/corey/.konan/kotlin-native-macos-1.3.61/klib/platform/ios_x64].
I've tried changing the compiler version back to 1.3.61 via setting the proper version in my Gradle files, and by reinstalling the 1.3.61 version of the Kotlin plugin without much luck, but that's a separate issue.

The error says that it expects 17 (1.3.61), but found 22 (1.3.70). Also I'm using 1.10.0 successfully on other projects with Kotlin 1.3.70. Are you sure your configuration is right?

This is what I have in my build scripts as of right now:
Dependencies.kt
object Versions {
    val min_sdk = 18
    val target_sdk = 28
    val compile_sdk = 28

    val kotlin = "1.3.61"
    val klock = "1.10.0"
    ...
}

object Deps {
    val klock = "com.soywiz.korlibs.klock:klock:${Versions.klock}"
    ...
}

build.gradle.kts (shared)
...
kotlin {
    android()
    //Revert to just ios() when gradle plugin can properly resolve it
    val onPhone = System.getenv("SDK_NAME")?.startsWith("iphoneos")?:false
    if(onPhone){
        iosArm64("ios")
    }else{
        iosX64("ios")
    }
    targets.getByName<KotlinNativeTarget>("ios").compilations["main"].kotlinOptions.freeCompilerArgs += "-Xobjc-generics"

    version = "1.0"

    sourceSets["commonMain"].dependencies {
        implementation(kotlin("stdlib-common", Versions.kotlin))
        implementation(Deps.klock)
        ...
    }
    ...
}

For now, I'm going to try to run it back to 1.9 since I've been having some issues with Kotlin 1.3.70.  I may have been misinterpreting the error and assuming that I was USING 1.3.70 rather than that version of klock LOOKING for 1.3.70.

Ran it back to 1.8.4 and that got me through.  I'll tackle the 1.3.70 update somewhere down the line.


Add MKL-DNN based deep learning framework

The new MKL-DNN backend is merged (9677) into MXNET master branch.
Add a link to MXNET.

Thanks for the update. Merged.


Unit tests inherit shell env vars, ignoring test configuration

I have a shell environment configured for running a given Bootique app. It exposes a variable for DB URL. When running tests from Maven that are based on JettyTestFactory, I provide a configuration with an in-memory database instead. Test configuration is ignored in favor of shell variables.
I think BQTestFactory, JettyTestFactory and friends should scrub the environment passed to the test stack, to ensure that all the vars are controlled within the test and there are no outside influences. This will allow to configure different tests differently, and avoid conflicts with app runtime.

@ebondareva : noticed something this morning... Long var names used here (bq.core.exclude.system.variables and bq.core.exclude.system.properties) result in deeply nested JSON structures inside the config (one level of nesting for each dot). So perhaps rename them to a more flat structure. E.g. bq.core.excludeSystemVariables and bq.core.excludeSystemProperties)


Add instructions for inline scripts for animate on scroll

As mention, the inline script that I'm using to animate when circle is scrolled into viewport. Thought it might be useful to others as well. This is a fast solution for me and I thought it was good enough to get things done. But if this is useful, I can also look into how I could implement into source code and make animate when in viewport as an option that they can trigger.

Hey,
that's really cool!
Could we indeed include it as default functionality?
Thus, if the user wants to disable it, we should also provide an option for disabling it.
TB

Sure, I'll look into it again.

@wing-puah any update on this?

@wing-puah any updates here?

I think this PR is now redundant with #57 and #59

Exactly the reason it was decided to keep that open. Unfortunately, that won't see the light of the day :/


Ban check not working for !buy X item

Hello a user reported their bot was reported for trading with banned users. The ban checks were enabled and said okay during the transaction.
We should check for bans prior to accepting friend requests. The banned user is<PHONE_NUMBER>3516972 however the bot seems to think it's okay
logs.txt
v4.5.4, Jan 12, 4:20 pm EST
joekillerbot3-2022-01-12.log.gz

I am going to arrange for my integration3 bot to have trade bans to investigate check sufficiency.

Replied to the bptf thread, but I see no reason to do this when you can just hardcode a SteamID?

you can just hardcode a SteamID

If you could elaborate a little more I'm game for trying things other than dealing with a ban in an account.
With that in mind, I'm unsure if hardcoding fail would hit the right paths. the bot seemed to think the person wasn't banned it makes me think somewhere in the detection is defective in a unintuitive way.

@ZeusJunior Thanks for the suggestion. I've fixed the bug.


[tool_crash] FileSystemException: Cannot delete file, OS Error: Permission denied, errno = 13

Command
flutter --quiet assemble --no-version-check --depfile /Users/emadbeltaje/StudioProjects/arabic_mate/android/app/build/intermediates/flutter/debug/flutter_build.d --output /Users/emadbeltaje/StudioProjects/arabic_mate/android/app/build/intermediates/flutter/debug -dTargetFile=/Users/emadbeltaje/StudioProjects/arabic_mate/lib/main.dart -dTargetPlatform=android -dBuildMode=debug -dTrackWidgetCreation=true --DartDefines=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== debug_android_application

Steps to Reproduce

...
...
...

Logs
FileSystemException: Cannot delete file, OS Error: Permission denied, errno = 13
#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File._deleteSync (dart:io/file_impl.dart:298:5)
#2      FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:408:7)
#3      ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:70:16)
#4      ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:70:16)
#5      ErrorHandlingFileSystem.deleteIfExists (package:flutter_tools/src/base/error_handling_io.dart:82:12)
#6      FlutterBuildSystem.trackSharedBuildDirectory (package:flutter_tools/src/build_system/build_system.dart:742:33)
#7      FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:630:5)
<asynchronous suspension>
#8      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:317:32)
<asynchronous suspension>
#9      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1140:27)
<asynchronous suspension>
#10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
<asynchronous suspension>
#15     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>

[✓] Flutter (Channel stable, 2.8.0, on macOS 13.0.1 22A400 darwin-arm, locale en-PS)
    • Flutter version 2.8.0 at /Users/emadbeltaje/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision cf44000065 (1 year, 1 month ago), 2021-12-08 14:06:50 -0800
    • Engine revision 40a99c5951
    • Dart version 2.15.0

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/emadbeltaje/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.72.2)
    • VS Code at /Users/emadbeltaje/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.56.0

[✓] Connected device (2 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 13 (API 33) (emulator)
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 108.0.5359.124

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: malformed
Version: 1.3.0+4
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: null
Creation framework version: null
Plugins
agora_rtc_engine-4.2.2
Flutter-UIKit-7fd294db65b0e89bd617f3619f6217bd58e5536e
awesome_notifications-0.7.3
facebook_auth_desktop-0.0.8
file_picker-4.6.1
firebase_auth-3.3.8
firebase_auth_web-3.3.8
firebase_core-1.12.0
firebase_core_web-1.6.0
firebase_messaging-11.2.7
firebase_messaging_web-2.2.8
flutter_facebook_auth-5.0.7
flutter_facebook_auth_web-4.1.1
flutter_inappwebview-5.6.0+2
flutter_plugin_android_lifecycle-2.0.7
flutter_secure_storage-7.0.1
flutter_secure_storage_linux-1.1.2
flutter_secure_storage_macos-2.0.1
flutter_secure_storage_web-1.1.1
flutter_secure_storage_windows-1.1.3
google_sign_in-5.4.1
google_sign_in_android-6.1.0
google_sign_in_ios-5.5.0
google_sign_in_web-0.10.2
image_cropper-1.5.1
image_picker-0.8.5+3
image_picker_android-0.8.5+2
image_picker_for_web-2.1.8
image_picker_ios-0.8.5+6
open_file-3.2.1
path_provider-2.0.11
path_provider_android-2.0.12
path_provider_ios-2.0.11
path_provider_linux-2.1.7
path_provider_macos-2.0.6
path_provider_windows-2.0.7
pay-1.0.11
pay_android-1.0.8
pay_ios-1.0.7
permission_handler-10.0.0
permission_handler_android-10.2.0
permission_handler_apple-9.0.7
permission_handler_windows-0.1.2
sqflite-2.0.2
url_launcher-6.1.5
url_launcher_android-6.0.17
url_launcher_ios-6.0.17
url_launcher_linux-3.0.1
url_launcher_macos-3.0.1
url_launcher_web-2.0.7
url_launcher_windows-3.0.1
video_player-2.3.0
video_player_android-2.3.9
video_player_avfoundation-2.3.5
video_player_web-2.0.12
video_thumbnail-0.5.2
wakelock-0.6.2
wakelock_macos-0.4.0
wakelock_web-0.4.0
webview_flutter-3.0.4
webview_flutter_android-2.8.14
webview_flutter_wkwebview-2.7.5

Closing this as a duplicate of https://github.com/flutter/flutter/issues/103861.


[Feature Request] Support unofficial flutter version

First of all, thank you for providing such a convenient tool to help us to switch flutter env.We encountered the following problem during use fvm, because some reason, we use a internal flutter version, and connected to our internal flutter folder through a soft link under the fvm/versionsfolder,then we can use command fvm list to find our internal in flutter versions result;
$ fvm list
2.0.3 (global)
1.22.6
1.22.0-custom

But when i use command fvm use 1.22.0-custom global, it warning 1.22.0-custom is not a valid Flutter channel or release,so could you please to add command like fvm use 1.22.0-custom global --force or fvm use 1.22.0-custom global --unstable , which will be skip valid flutter channel check?

@franticn is this a flutter fork? I will look a bit into this as adding flag is simple however just want to make sure there won’t be side effects on validation

@franticn is this a flutter fork? I will look a bit into this as adding flag is simple however just want to make sure there won’t be side effects on validation

Yes, it's just a flutter fork

This has been merged for 2.0

@leoafarias Thanks!


Update visual-studio-unrecoverable-process-error.md

Add missing processes to list.

@TerryGLee - Hi, could you review the proposed changes? Thank you

@nnpcYvIVl : Thanks for your contribution! The author(s) have been notified to review your proposed change.


[MRG] Allows to build NNs in A2C from a string equal to the function's name

Allows to build value_net_fn and policy_net_fn from a string using rlberry.utils.factory.load. This is useful when you want to
call model_factory_from_env to build the architectures from a .yaml file according to args specified therein

It is not a big problem it is just that in the test for A2C, policy_net_fn  was always the default I guess so it does not test policy_net_fn which is string or callable.
It would be nice to include a small test on this, maybe doing one iteration on some environment to check that there is no Runtime error. You could do this with @pytest.mark.parametrize for instance, it is clean (example of use in https://github.com/rlberry-py/rlberry/blob/85176dea56f4b2fe75d0e9e5374110e9f68c9462/rlberry/tests/test_agent.py#L53).

@TimotheeMathieu I added some checks and is fine now


componetWillReceiveProps and shouldComponentUpdate is not executed

class Home extends Component {
componentWillReceiveProps(nextProps){
console.log('nextProps',nextProps);
};
render(){
return(

)
}
}
const Tab = TabNavigator({
home: {screen: Home}
});
export default StackNavigator({
tab: {screen: Tab}
})
// when I use navigate to jump to a new page and goBack this page the componentWillReceiveProps method and shouldComponentUpdate method was not executed.

@zhenliliu Did you figure out a workaround?

+1

I had a similar problem and how I figure it out was sending a function as a parameter to the navigated screen and then run it on componentWillUnmount.
Its not the same thing but maybe it could help.

@bennygenel would you please be able to provide some sample code of your solution?

I have the same problem

+1

+1

@galhardi @shangxinbo @MrHubble @schneck @zhenliliu Is that settled?

Have the same problem.

@zhenliliu in your case, this is because the screen in question has already mounted, and no new props are being passed to it. One way you could do this (if you use redux for navigation) is to connect the component to nav state, then anytime you navigate it will receive the updated nav state, and shouldComponentUpdate and componentWillReceiveProps will fire.
I'm having a problem where componentWillMount and shouldComponentUpdate are not firing when I navigate to the screen in the first place, but that's a different issue.

Pinging OP @zhenliliu  since this issue has not been active for a while, and it's related to an old version of the lib. (and it doesn't adhere to any kind of issue template, which makes it basically impossible to investigate)
Please let me know if you want this to remain open, because if I get no answer in the next 7 days I will close it.

For future people who visits this thread here is a sample implementation that I have talked about before;
export default class SomeComp extends Component {
onGoBack = (someDataFromModal) => {
  console.log(someDataFromModal);
}

render() {
    const { navigate } = this.props;
    return (
        <TouchableOpacity
          onPress={navigate("Modal", { onGoBack: this.onGoBack })}
        />
       )
    }
}

export default class Modal extends Component {
componentWillUnmount() {
  if(this.props.navigation.state.params.onGoBack) {
    this.props.navigation.state.params.onGoBack('I\'m fired from Modal!');
  }
}

render() {
    const { data, ... } = this.props.navigation.state.params;
    const { goBack } = this.props.navigation;
    return (
        <View>
            <TouchableOpacity
              onPress={goBack()}
            />
            <Text>
               {'Some Text'}
            </Text>
        </View>
       )
    }
}

Hi there @zhenliliu,
In an effort to cleanup this project and prioritize a bit, since this issue had no follow up since my last comment I'm going to close it. Btw thanks @bennygenel for the snippet, it will surely help.
If you are still having the issue with the latest version (especially if it's a bug report) please check the current open issues, and if you can't find a duplicate, open a new one that uses the new Issue Template to provide some more details to help us solve it.


bug: Using vscode produce errors

When I m using my local vscode, I receive the error below
quarto_render : quarto.exe not found
even if quarto is installed and quarto is enable to render a single qmd file

I just tried myself, and it worked fine after I installed pandoc (instead of relying on the Studio bundled one).
@Cervangirard are we okay to close this issue?


[Question] How to know if Field.ty is one of the TypeParams?

Hi, would you be so kind to provide some tips for my situation?
[#derive(MyTrait)]
struct Foo<A, B, C>(C, String, B, usize, Box<A>, u8);

I'd like to imply some trait bounds for my deriving implementation, like:
impl<A, B, C> MyTrait for Foo<A, B, C>
where A: MyTrait,
      B: MyTrait,
      C: MyTrait,

However, I've stuck at the place where I have Fields and TypeParams of the Foo struct, and cannot figure out the way how to check if theField uses a TypeParam inside.
If there are examples of doing this somewhere out there I'll be very thankful for providing them.

This is a hard problem in general. Most macros would emit a bound on every type parameter to keep things simple, possibly with an inert attribute that can be used to override the inferred bounds such as #[my_trait(bound = "A: OtherTrait, C: MyTrait")].
An implementation more along the lines of what you are asking can be found in serde_derive:
https://github.com/serde-rs/serde/blob/v1.0.90/serde_derive/src/bound.rs#L83-L217

@dtolnay oh, thank you very much! At the first glance it's exactly what I was looking for. I'll try to play and adopt it for my case.


How to adapt this project to my db?

Hello, Shayan!
First of all, thank you for the incredible work on CHESS—I've really appreciated exploring it, and I’m eager to adapt it to my setup.
I'm using an Azure SQL Server database with a single database and five tables. My goal is to make this adaptation as straightforward as possible, ideally with minimal modifications to the existing codebase.
Could you suggest the simplest approach to integrate my database with CHESS? If there are specific files or configurations that I should focus on or modify, I'd appreciate the guidance. Thanks again for sharing this great project!

Hi Marcelo,
Thanks for reaching out! I'm glad to hear you're interested in adapting CHESS to your setup.
Fortunately, our code is designed to be modular and can be easily adapted to different database management systems, including Azure SQL Server. The key area you'll need to focus on is the database_utils directory. This is where we define all interactions with the database, such as SQL execution, parsing, and schema processing.
To integrate your Azure SQL Server database with CHESS, you can modify or extend the functions within the database_utils directory to be compatible with Azure SQL Server. Ensure that the function interfaces remain consistent so that the rest of the codebase can interact seamlessly with your database.
I hope this helps! If you have any questions or need further assistance, please feel free to reach out.


DropDownItem inside NavDropdown getting focus line

Issue description

components: DropDownItem
reactstrap version 5.0.0-alpha.3
bootstrap version 4.0.0-beta.2

What is happening?
Shows the focus line around the link on click

What should be happening?
the focus line shouldn't show.
(correct behaviour from bootstrap doc

Solution
Briefly comparing the Element against the original bootstrap's one, looks like there's tabIndex set on the element on this line in reactstrap side, which isn't in original BS. Removing the line fixed the issue in my environment. What's the purpose of this tabIndex?

It works the same way as Bootstrap, just defaulting to better accessibility. By default, if you do not provide an href on the DropdownItem it will create a button (button) instead of a link. If you do provide an href on the DropdownItem, it will create an link/anchor (a) which is what bootstrap's docs have.
The difference between a link and a button that a link navigates the user to a new resource, taking them away from the current context. A button toggles something in the interface, like a video player; or triggers new content in that same context.
So, if you are navigating the user, you should be using the href to take the user to the new page (this applies for SPAs; Link from react-router (and others like it) can be used as thetag and will output an a with an href and work as bootstrap's docs do).
If you are just trigging the content on the page to change, then button is what you should be using. reactstrap doesn't include any styles, and if you think that the item should not get the outline style, you might want to open an issue with bootstrap (stating that for accessilbility, a button should be used, but when a button is used it does not match the link styles).
If you don't care about accessibility, you can just provide href="#" like bootstrap's docs and reactstrap will output the an <a> with that href. You can also provide tag="a" to output an anchor without an href, but that is not recommended and bad things happen when achor tags do not have an href.
Exmaple showcaing the difference between using and not using href with DropdownItem: https://www.webpackbin.com/bins/-KxhnjuLlS0za-wW7EZ9

Ohhh right didn't notice, thanks for the detailed answer :)

I'm closing this since the the issue appears it was answered above. Please comment and it will be opened if you feel the issue has not been resolved / the question has not been answered


Combat Calculator in Skill Calculator Interface

Please add another option in the skill calculator interface that allows you to calculate what your combat level would be with specific combat skill levels.
Also, if possible, maybe even an option to retrieve the levels of an account we can specify to make the inputting of levels slightly easier?
I don't know how to add the label 'feature request' myself.

Duplicate of #857


Fix markdown errors on the *.md files

Signed-off-by: Humble Chirammal<EMAIL_ADDRESS>

/release-note-none

/assign @pohly
/assign @msau42

@pohly apologies for the delay in reverting. I have addressed the comments, ptal. Thanks in advance.

@msau42 :)

Are the updated .md files now still passing the proposed linter check?
I think I would prefer to merge the .md changes and the linter in the same PR and see a similar test PR against some other repo with more documentation. That way, we will get a feeling for the changes in the .md files that will be required when enabling the linter, and we can tweak the linter when it enforces things that we don't care about. For example, plain URLs IMHO are fine. There's no need to enforce angular brackets around them, that's just causing churn.


Menu: getOpenRecentActions leaks

Steps to Reproduce: just open and close the same file over and over. Notice a call to:
https://github.com/microsoft/vscode/blob/35425d369ada2ba625304f9adb626332f13d1753/src/vs/workbench/browser/parts/titlebar/menubarControl.ts#L243
Each time because the menu is updated (even though these actions are not even visible?).
The Action is actually created here:
https://github.com/microsoft/vscode/blob/35425d369ada2ba625304f9adb626332f13d1753/src/vs/workbench/browser/parts/titlebar/menubarControl.ts#L334-L342
But I think is never disposed when getOpenRecentActions is called again.
Logging what kind of actions get created just by switching between 2 editors:

I think it would be best if we could simply avoid this call and defer it to when the menu opens?

I think it would be best if we could simply avoid this call and defer it to when the menu opens?

We have to pro-actively update menus on the native titlebar so i don't think this is possible?

Fyi I was able to resolve the leak by switching to toAction and using IAction instead of Action. But left this issue open to understand why we need to call this method so often, esp. since the "Open Recent" menu is hidden under the "File" menu.

okay, the reason we call it is because native menus need to be updated proactively. we could at least buffer the call perhaps?

^


Syntax error on Typography IE11

Material-ui gives syntax error when running app in ie11:
const styles = theme => ({     root: {         display: 'block',         margin: 0     },     display4: theme.typography.display4,     ...etc. })

Tech
Version

Material-UI
v3.7.1

React

Browser

TypeScript

etc.

@BaumVitaly This is not just with IE 11: https://material-ui.com/guides/minimizing-bundle-size/#ecmascript.
In the future, I think that we should rename the folder /src, some people use this version to reduce the bundle size. With @eps1lon we where discussing whether or not we should keep it.


Wrong data for ibm

E.g
https://leetcode.com/discuss/compensation/4945800
It is showing 93,60,000 where as it's one 0 less.

It's all 1 zero extra.
You might to fix the code and recaliberate the data.

Thanks for the raising the issue. I'm aware that parsing using smaller (relatively) llms was bound to be inaccurate sometimes.
There is not much to be done here other than manually cleanup such instances when reported. If it was possible to confidently parse salaries without llms I would taken that route (already tried this with regex and it's very messy).
Btw, you can raise a PR to fix these cases as well. Look at the data folder.

Addressed in this commit


MCC value problem on Nucleotide Transformer

I really appreciate your work, but when I train model on the downstream task Nucleotide Transformer, it shows that no MCC result returned, the details are as follows, could you please help me to solve it, thank you very mcuh!
Traceback (most recent call last):
File "/root/code/dnabert3/hyena-dna/train.py", line 692, in main
train(config)
File "/root/code/dnabert3/hyena-dna/train.py", line 673, in train
trainer.fit(model)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 603, in fit
call._call_and_handle_interrupt(
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/call.py", line 38, in _call_and_handle_interrupt
return trainer_fn(*args, **kwargs)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 645, in _fit_impl
self._run(model, ckpt_path=self.ckpt_path)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1098, in _run
results = self._run_stage()
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1177, in _run_stage
self._run_train()
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1200, in _run_train
self.fit_loop.run()
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/loop.py", line 200, in run
self.on_advance_end()
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/fit_loop.py", line 295, in on_advance_end
self.trainer._call_callback_hooks("on_train_epoch_end")
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1380, in _call_callback_hooks
fn(self, self.lightning_module, *args, **kwargs)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 312, in on_train_epoch_end
self._save_topk_checkpoint(trainer, monitor_candidates)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 367, in _save_topk_checkpoint
raise MisconfigurationException(m)
lightning_lite.utilities.exceptions.MisconfigurationException: ModelCheckpoint(monitor='val/mcc') could not find the monitored key in the returned metrics: ['trainer/loss', 'trainer/epoch', 'val/accuracy', 'val/loss', 'train/accuracy', 'train/loss', 'epoch', 'step']. HINT: Did you call log('val/mcc', value) in the LightningModule?

Are you running the docker image? or default repo code?

It seems like a config changed and you are no longer passing the val/mcc metric to Lightning.  You need this in your config somewhere, which is currently in the configs/pipeline/nucleotide_transformer.yaml.

train:
  monitor: val/${dataset.metric}
  mode: max

Thanks for your reply. I am running the default repo. Yes, I learn what you mean,  but I want to calculate the MCC value and output it. I think maybe it does not calculate or log the MCC, could I modify something to output the MCC other than the accuracy (it works well when I use accuracy)
Besides, I want to perform a train-val-test experiment on dataset Nucleotide Transformer. In the default setting, the code onlys performs train and test without validating. I use the code on line 675 in train.py, (i.e. trainer.test(model)), but it has the following problem:
Traceback (most recent call last):
File "/root/code/dnabert3/hyena-dna/train.py", line 690, in main
train(config)
File "/root/code/dnabert3/hyena-dna/train.py", line 675, in train
trainer.test(model)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 780, in test
return call._call_and_handle_interrupt(
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/call.py", line 38, in _call_and_handle_interrupt
return trainer_fn(*args, **kwargs)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 829, in _test_impl
results = self._run(model, ckpt_path=self.ckpt_path)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1098, in _run
results = self._run_stage()
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1174, in _run_stage
return self._run_evaluate()
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1214, in _run_evaluate
eval_loop_results = self._evaluation_loop.run()
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/loop.py", line 199, in run
self.advance(*args, **kwargs)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 152, in advance
dl_outputs = self.epoch_loop.run(self._data_fetcher, dl_max_batches, kwargs)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/loop.py", line 199, in run
self.advance(*args, **kwargs)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 137, in advance
output = self._evaluation_step(**kwargs)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 234, in _evaluation_step
output = self.trainer._call_strategy_hook(hook_name, *kwargs.values())
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1480, in _call_strategy_hook
output = fn(*args, **kwargs)
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/strategies/strategy.py", line 399, in test_step
return self.model.test_step(*args, **kwargs)
File "/root/code/dnabert3/hyena-dna/train.py", line 440, in test_step
return self._shared_step(
File "/root/code/dnabert3/hyena-dna/train.py", line 338, in _shared_step
torchmetrics = getattr(self, f'{prefix}_torchmetrics')
File "/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1265, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'SequenceLightningModule' object has no attribute 'final/val_torchmetrics'
Could you please help me to solve them, thank you very much!

Not sure what else to tell you, if you follow the previous comment it will
calculate the mcc.
If there’s some other custom functionality you need then you’ll need to get
very familiar with Pytorch Lightning. Good luck!
On Fri, Nov 24, 2023 at 2:31 PM WeiminWu2000 @.***>
wrote:

Thanks for your reply. I am running the default repo. Yes, I learn what
you mean, but I want to calculate the MCC value and output it. I think
maybe it does not calculate or log the MCC, could I modify something to
output the MCC other than the accuracy (it works well when I use accuracy)
Besides, I want to perform a train-val-test experiment on dataset
Nucleotide Transformer. In the default setting, the code onlys performs
train and test without validating. I use the code on line 675 in train.py,
(i.e. trainer.test(model)), but it has the following problem:
Traceback (most recent call last):
File "/root/code/dnabert3/hyena-dna/train.py", line 690, in main
train(config)
File "/root/code/dnabert3/hyena-dna/train.py", line 675, in train
trainer.test(model)
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py",
line 780, in test
return call._call_and_handle_interrupt(
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/call.py",
line 38, in _call_and_handle_interrupt
return trainer_fn(*args, **kwargs)
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py",
line 829, in _test_impl
results = self._run(model, ckpt_path=self.ckpt_path)
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py",
line 1098, in _run
results = self._run_stage()
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py",
line 1174, in _run_stage
return self._run_evaluate()
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py",
line 1214, in _run_evaluate
eval_loop_results = self._evaluation_loop.run()
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/loop.py",
line 199, in run
self.advance(*args, **kwargs)
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py",
line 152, in advance
dl_outputs = self.epoch_loop.run(self._data_fetcher, dl_max_batches,
kwargs)
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/loop.py",
line 199, in run
self.advance(*args, **kwargs)
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py",
line 137, in advance
output = self._evaluation_step(**kwargs)
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py",
line 234, in _evaluation_step
output = self.trainer._call_strategy_hook(hook_name, *kwargs.values())
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py",
line 1480, in _call_strategy_hook
output = fn(*args, **kwargs)
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/pytorch_lightning/strategies/strategy.py",
line 399, in test_step
return self.model.test_step(*args, **kwargs)
File "/root/code/dnabert3/hyena-dna/train.py", line 440, in test_step
return self._shared_step(
File "/root/code/dnabert3/hyena-dna/train.py", line 338, in _shared_step
torchmetrics = getattr(self, f'{prefix}_torchmetrics')
File
"/root/miniconda3/envs/hyena-dna/lib/python3.8/site-packages/torch/nn/modules/module.py",
line 1265, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'SequenceLightningModule' object has no attribute
'final/val_torchmetrics'
Could you please help me to solve them, thank you very much!
—
Reply to this email directly, view it on GitHub
https://github.com/HazyResearch/hyena-dna/issues/31#issuecomment-1826116871,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGNEKPCDNXEIUGEVI6KLCTTYGEN4ZAVCNFSM6AAAAAA7ZMXDP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGEYTMOBXGE
.
You are receiving this because you commented.Message ID:
@.***>

Thanks very much. I'll learn about it.

Actually, what I showed above grabs the default metric set by the Nucleotide Transformer benchmarks, so it could be acc, or mcc.  To force it show mcc, you can hardcode it, like this.
Note, this what Lightning uses to save the best checkpoints, it "monitors" the val/mcc and will save the "max" or highest mcc ckpts.
train:
  monitor: val/mcc
  mode: max

Thanks for your reply! I'll try it!

Yes, thanks very much for you help!


Data science - Iteration 1

I'm almost certain I will need to take another stab at this in a second iteration -- had a difficult time understanding the requirements of the AB results.

@jcurlee Please take a look at Zamir's comments and resubmit. Nice first iteration.


Can I use this proxy with Grafana?

I have no idea. You could try! It's based off kibana, right?

The framework seems well suited, but grafana has multiple backends.


Invalid Date on Firefox

moment is giving "Invalid Date" in firefox when using a string like "2016-07-26T17:00:00.000z" .
When converted to uppercase "2016-07-26T17:00:00.000Z" the date is recognized correctly.
Could this be considered a valid utc value?
(If not the bug is in .Net framework that generates json date as this  :S )
Regards Andre

Works for me...

What version of moment are you running?

The version is
2.10.6
I have temporary fixed using a touppercase in variable before send it to moment in my code
but i will change the moment version soon
Thanks

I'm going to close this. If you can replicate the issue in 2.14, feel free to re-open.


The link in README.md cannot be opened correctly

https://microsoft.github.io/dts-gen/manual.html

Assuming you want to use it because of CORS issues, how I got around it (still experimenting now) is to use this link<EMAIL_ADDRESS>and then have it saved on my origin and change the src to somewhere which is reachable on your server. I couldn't find manual.html anywhere so that's the best that I could come up with, it isn't available on archive.org either it 404 in 2020.


Misc FAIRtracks bugs/issues

[ ] Studies -> Collection_ref (to be moved to track) should be required, not augmented
[ ] Rename Track -> Raw File IDs?

[ ] Harmonize attribute names. E.g. studies ->study_name but track -> label_short and collection -> label.


TF-M: introduce uniformity in Non-Secure target names

Is your enhancement proposal related to a problem? Please describe.
Currently, the names we choose for the non-secure version of TrustZone-enabled platforms have different suffix versions:
All _ns, ns, _nonsecure are used.
Describe the solution you'd like
Ideally, we should pick one option to use in Zephyr and force this as a convention.
We should probably do this for the LTS2.

@microbuilder @galak does this sound reasonable?

As proposed on slack: Could we change the way s/ns are defined: as an example for the cpuapp in nrf5340:
a. We start by defining cpuapp (and "board" for processing by Kconfig.defconfig): In the dts of this board sram0_s is defined as the whole sram0 region (excluding the ipc_shm region),
flash0_s is defined as the  whole flash0_s region,
chosen is: zephyr, sram = sram0_s, zephyr, flash = flash0_s.
b. from the cpuapp we derive cpuapp_s by:
deleting node sram0_s and splitting it up in sram0_s and sram0_ns
deleting node flash0_s and splitting it up in flash0_s and flash0_ns
chosen is: zephyr, sram = sram0_s, zephyr, flash = flash0_s
c. from cpuapp_s cpuapp_ns is derived by setting chosen: zephyr, sram = sram0_ns, zephyr, flash = flash0_ns
To integrate mcuboot (or a different bootloader) a similar method is used: cpuapp_mcuboot deletes node flash0_s and redefines it as mcuboot, slot0, slot1, scratch. And similar for cpuapp_s_mcuboot, cpuapp_ns_mcuboot.

My proposal would be to standardise on _ns, since it's brief but clear, and the underscore helps differentiate it from the underlying MCU, core or board name.

_ns sounds good to me as well.


Downgrade airbrake to 4.x

Our errbit installation doesn't like the airbrake 5.x gem and so deploys
don't get notified properly.  Downgrading to 4.x will fix this.

Does the config need to get to get updated/rolled back too? It changed in the commit that bumped the gem. Just tried deploying the branch and got errors related to config

That was my plan today; to try and deploy it and see if it works.  I'll check out that commit, thanks @davidbasalla .

I was only being nosey because we'll need to do the same for LocalLinksManager :)

Hmm, deployed this version to integration and got a 504 gateway timeout - is that better than a 404 not found ?

Oh! But it has recorded the deploy in errbit (twice...).  Gonna call this a success.


Tests failing when using --doctest-modules

After upgrading pytest-invenio to version 1.4.0 and applying changes, tests started failing.
The issue is the pytest argument --doctest-modules in the file pytest.ini but the cause is not clear.
The 3 tests that are failing are the ones using the decorator:
@patch('pkg_resources.iter_entry_points', _mock_entry_points)
For the time being, the argument --doctest-modules has been removed.

Closing as won't fix


fix: Allow alternate domain names in the distribution

Fixes #100
It appears that we can pass in multiple domain names to the cloudfront distribution
https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-cloudfront.Distribution.html#:~:text=g.%2C example.com/).-,domainNames%3F,Alternative%20domain%20names%20for%20this%20distribution.,-enableIpv6%3F
Modifies buildDistributionDomainNames to combine the list of alternateNames with the customDomain if they exist

Thanks!


Update README

Added a note under the section Using-the-addon in order to emphasize that fa5 is not supported yet.

Thanks @teakap. Looks great.


module/auto-start.lua: bad argument #1 to ipairs (table expected, got strings)

The error is raised at startup.
the function "run_once" expects a table but in lines 17 and 19 it's given a string.
When replacing
run_once('compton --config ' .. filesystem.get_configuration_dir() .. '/conf/compton.conf')
-- To allow gnome tools to ask authentication like pamac
run_once(
'/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg)'
)
With
run_once({'compton --config ' .. filesystem.get_configuration_dir() .. '/conf/compton.conf'})
-- To allow gnome tools to ask authentication like pamac
run_once({
'/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg)'}
)
The error disappears.

No problem. I saw your reddit post and wanted to try it out.
I've still to make it work but it looks promising.
Let me know if you need any more info on the other issues. I'd like to contribute as much as possible.


[W6.6c][T13-B2] Jacob Vosburgh

Added new user stories to the 'DeveloperGuide'

Nicely added user stories. Do note the user stories follow the order of decreasing priorities. Additionally, try and come up with some user stories with users of certain descriptions, e.g. very command-line comfortable users vs users who prefer GUI.
Please close this PR.


samples/../mcumgr/smp_svr: differentiate integration platform

Differentiate integration)platforms list per each sample test.
Signed-off-by: Andrzej Puzdrowski<EMAIL_ADDRESS>

@carlescufi Can you merge?


Create camera plugin supporting live preview

Use new texture support (#2319) to create and publish a Flutter plugin for interacting with the device camera, including live preview.

Thank you very much

Awesome!!!!

any updates on this

I have a plugin almost working. It needs some polishing, and a fix needs to go into engine.
I hope to publish a v. 0.0.1 this week.

It won't happen before after New Year - but a fix has gone into engine (https://github.com/flutter/engine/commit/eee4a1ed821e98922476f2ce0b1e99ce1a606704) (not rolled yet).
The current plugin is at https://github.com/sigurdm/camera if you are curious.
It still needs some polish before publishing it on pub.

@sigurdm is the engine fix likely to roll soon and has it landed on master yet?

@mravn-google @MichaelSowah  can I use more than one camera instance or texture component with live preview?. It is for a Google Cardboard/AR Application.

Hi @rubencg195 - you can use several texture components simultaneously. (For example showing several videos)
I don't think any of Android or iOS supports opening several cameras at the same time, nothing in the flutter plugin limits it - but you will probably get an error from the system.
More details:
https://stackoverflow.com/questions/30100273/is-it-possible-to-open-front-and-back-cameras-at-the-same-time-in-camera2
https://stackoverflow.com/questions/31586266/how-to-record-video-of-front-and-back-camera-at-a-time-in-ios.

Thank you for your help @sgraham, would it be possible to access the back camera raw data and show it in two different textures or web-gl textures?.

Yes. Using the camera plugin you can get a CameraController instance representing e.g. the back camera. You can insert any number of "new CameraPreview(controller)" widgets in your app, they will all show the same preview.
There is no way currently to manipulate the raw data of the camera preview inside dart.

Thank you very much @sigurdm this is whay I want to do, I will try to do it with Flutter. I attach below some of the results with react-native-camera.
Expected behaviour
Having two instances of the camara controller.

Actual behaviour
When creating two camera instances, one is black.

You seem to be using react native and not Flutter? :)
https://github.com/react-native-community/react-native-camera/blob/master/docs/RNCamera.md
If that's the case, I'm afraid I cannot help you out.

Yes, I just wanted to show you the error I had in RN, and what I plan to do in Flutter.

Is there anyway to retrieve the camera byte data while it's being previewed? Can't seem to find an implementation that supports such

Need instance preview frame data also, taking shot into a image file is too much time consuming for many scenarios. I'm still not able to find a solution yet.

camera plugin uses classes introduced in iOS 10, so live preview is not working on versions below that
any chance that live preview will be made available for iOS 9.3?

This issue is long closed. Please create new issues for additional feature requests.


TLS auth for nginx-controller

How can I implement mutual tls auth on nginx-controller?
Example:
ssl_certificate /etc/nginx-ssl/ca.crt;
ssl_certificate_key /etc/nginx-ssl/api-api.pem;
ssl_client_certificate /etc/nginx-ssl/api-api.pem;
ssl_verify_client on;

I put ca.crt to ingress secret:
apiVersion: v1
kind: Secret
metadata:
  name: api-search
  namespace: api-search
data:
  tls.crt: base64 string
  tls.key: base64 string
  ca.crt: base64 string

but /etc/nginx-ssl/api-api.pem file not contain ca.crt.
Thank you.

@dshmelev this is not supported (yet) https://github.com/kubernetes/kubernetes/issues/24669
workaround: concatenate the tls.crt and ca.crt

@dshmelev I forgot to mention that the concatenation is just for the validation of the certification.
(I will add the mutual tls auth to the TODO list)

@aledbf thank you for fast response =)


HD Demo

HD Demo does not work for me.

The issue is with setting the media constraints - you have to do something like this:
var hdConstraints = {
  video: {
    mandatory: {
      minWidth: 1280,
      minHeight: 720
    }
  }
};

navigator.getUserMedia(hdConstraints, successCallback, errorCallback);

Ah, thank you very much!  I added this in v1.0.1, and it seems to work fine for me now.
http://pixlcore.com/demos/webcamjs/demos/hd.html

Joe


Cap redstone mode fails when cap sides configured

Issue Description:
Power monitor cannot control cap bank once the cap bank sides have been configured as input output.
What happens:
Power monitor will control cap input if all cap sides are set to none, if set a side to input and one to output it no longer shuts off the input.
What you expected to happen:
I expect the input to be controlled no matter if configured or not

Affected Versions (Do not use "latest"):
1.10.2-3.1.156.jar in direwolf20 pack

Did you connect the power monitor via energy conduit to the cap bank (and not directly)?
The power monitor is monitoring a conduit network and all attached cap banks.

Yes I sure did - like i said it works fine if I remove the configuration of the sides
Get Outlook for iOShttps://aka.ms/o0ukef

From: MatthiasMann<EMAIL_ADDRESS>Sent: Sunday, January 8, 2017 12:50:30 PM
To: SleepyTrousers/EnderIO
Cc: kennymoto; Author
Subject: Re: [SleepyTrousers/EnderIO] Cap redstone mode fails when cap sides configured (#3982)
Did you connect the power monitor via energy conduit to the cap bank (and not directly)?
The power monitor is monitoring a conduit network and all attached cap banks.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/SleepyTrousers/EnderIO/issues/3982#issuecomment-271170407, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKosovl8BWpvYh2PLggcaznMJHMiedL7ks5rQS_2gaJpZM4LdwlO.

I'll look into it.
Get an email client that doesn't add advertisements to your mails.

Thanks for fixing this. I fixed my email signature. Have a good day!
Kenny

From: Henry Loenwind<EMAIL_ADDRESS>Sent: Monday, January 9, 2017 12:49:48 AM
To: SleepyTrousers/EnderIO
Cc: kennymoto; Author
Subject: Re: [SleepyTrousers/EnderIO] Cap redstone mode fails when cap sides configured (#3982)
I'll look into it.
Get an email client that doesn't add advertisements to your mails.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/SleepyTrousers/EnderIO/issues/3982#issuecomment-271220328, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKosoqUrXrmuNiqjAgJgQnGJJFMxJAl3ks5rQdiMgaJpZM4LdwlO.


codec(ticdc): simplify avro encoder

What problem does this PR solve?

Issue Number: close #7639
What is changed and how it works?

avro does not batch multiple messages into one, so no need to check single message too large, it can be report by the sarama  kafka producer.

no need to preallocate 4096 for messages, since Build will always be called after AppendRowChangedEvent, only one message is enough.

Check List
Tests

Unit test

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`.

/run-all-tests

/run-all-tests

Codecov Report

Merging #7636 (e1b5315) into master (0438dd4) will decrease coverage by 0.1766%.
The diff coverage is 37.0110%.

Additional details and impacted files

Flag
Coverage Δ

cdc
66.4290% <34.6028%> (-0.4877%)
:arrow_down:

dm
52.1081% <50.0000%> (+0.0254%)
:arrow_up:

engine
63.7442% <68.1818%> (-0.0419%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #7636        +/-   ##
================================================
- Coverage   60.0458%   59.8692%   -0.1767%
================================================
  Files           807        810         +3
  Lines         92391      92869       +478
================================================
+ Hits          55477      55600       +123
- Misses        32099      32416       +317
- Partials       4815       4853        +38

/run-all-tests

no need to preallocate 4096 for messages, since Build will always be called after AppendRowChangedEvent, only one message is enough.

I was wondering if we always know that it only has one event, can we use an array instead of a slice? like [1] *message

/run-integration-test

/run-all-tests

/run-all-tests

no need to preallocate 4096 for messages, since Build will always be called after AppendRowChangedEvent, only one message is enough.

I was wondering if we always know that it only has one event, can we use an array instead of a slice? like [1] *message

I've tried to use the array instead of the slice, but it make the code more complicated, so use slice is preferred.
When we call the build method, and consider a.result is typed in [1]*common.Message:
result = a.result[:]
a.result = [1]*common.Message{}
return result

This makes the returned value result become the nil, to fix the problem we have to use copy, I think it's no necessary, and to keep the code simple and unified with other codec encoder implementation, so keep it to use slice.

/merge

/merge

/run-verify-ci


Change allow mutation wording

Change Summary
Changed wording of blog post to show frozen can be used instead of allow_mutation.
Related issue number
fix #6181
Checklist

[ ] Unit tests for the changes exist
[ ] Tests pass on CI and coverage remains at 100%
[x] Documentation reflects the changes where applicable
[x] changes/<pull request or issue id>-<github username>.md file added describing change
(see changes/README.md for details)
[ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

working on link fix


I can't uninstall it on Kubuntu 20.04

I ran sudo apt remove ./TodoistPackage but still the app persists in the system. Anyone facing similar issue?

hey @jayaherkar, thanks for the report.
Do you see any info/warning/error messages when you run apt remove command?

Nope! I finally manually removed Todoist files from /opt and also removed desktop entry file so it's good now but I didn't got any error while running apt remove command

Strange. Glad you were able to remove it manually.
I'll keep the issue open until it's confirmed that apt is able to remove the app. Thanks again for the report

I was able to remove it manually but I can't install it now.

You got any idea why this issue happened in the first place? Also after removing files from /opt and removing desktop files still it's saying Todoist is installed. Please let me know how to solve this.

I can still see Todoist in apt installed package list. I used this command sudo apt list --installed

Ok so the app is removed manually and apt doesn't know about it and still thinks the app is installed. APT has its own DB so it make sense that the DB doesn't know about the manual remove.
Can you try to delete it with apt remove todoist?

Yeah! It's working that way. Thanks. I removed that and installed again. No Problems now :)

Perfect!


Issues with sequence_loss() during training.

I was trying to train the model with S=8, N=75 but got this error. It seems there is an error either in the sequence_loss function or passing argument. Can you please make sure and provide a resolution?
line 120, in sequence_loss
i_loss = (flow_pred - flow_gt).abs() # B,S,N,2
~~^
RuntimeError: The size of tensor a (8) must match the size of tensor b (75) at non-singleton dimension 2

I found the issue, it was from my side.

I found the issue, it was from my side.