Enhance the readMe

I just need some idea on how to make a good ReadMe file

look at https://readme.so/editor and see if it might help you

Thanks I will check that

I can work on that if needed.

I will be very happy if you want to do it


MXSession: Expose the list of user ids for whom a 1:1 room exists.

https://github.com/vector-im/vector-ios/issues/529

Worth a test but it LGTM


Meta file to watch for scenario changes

Is your feature request related to a problem? Please describe.
The base issue here is that we currently require scl scenario --clean in most cases to rebuild scenarios. This could be greatly sped up by skipping cases where things do not need to be rebuilt.
Describe the solution you'd like
I suggest a meta file that would maintain a hash of base scenario resource files:

Map (e.g. map.xml)
Scenario (e.g. scenario.py)
requirements (e.g. requirements.txt)

When such files are noted to have changed it would trigger a rebuild of dependent scenario resources. This would be useful especially for very large maps and complex scenarios that take a long time to build.

Closed by #1764


cannot open readme pdf link

404 error

me neither.

What do you mean by readme pdf link? Could you send me the link?

for example, the link of Item2Vec - Neural Item Embedding for Collaborative Filtering.pdf
,which is
https://github.com/wzhe06/Ad-papers/blob/master/Recommendation/Item2Vec - Neural Item Embedding for Collaborative Filtering.pdf.
open this link only gets 404 error

@hackershi Thanks for your feedback. I have fixed the bug in readme file generator. All links are available now, enjoy it. thanks.


ARM: Fault Handling Mechanism and how to correctly report Stack Corruptions

We seem to  have technical challenges for both the MPU-based stack corruption detection, as well as for the detection based on the ARMv8-M stack pointer LIMIT registers.
First, about MPU. The way we implement the guard area, for stack corruption is somewhat problematic for SUPERVISOR threads.
The reason is simple; when there is a stack overflow, and the area is violated by Push instructions, the stack frame is NOT loaded in the guard area.
This means, that we cannot "by design" extract safely the instruction address that caused the error! Now, we might be lucky enough,
and there was an (at least) 8-byte "slack" between SP and Guard at the time we did the Push that overflowed the stack.
In that case, the "assumed" stack context will have the upper 8-byte part of the stack frame correct (and we will be able to read the address)!
This will be the PC and XPSR. But, in general, we cannot be sure about the faulty instruction address, and, of course, we can not do any "decoding" to see what type of instruction it was.
This is not a tragedy, but we must state this clearly. I think, the same applies for USER threads,
because the processor MODE changes after we branch to the MPU exception; the stacking occurs earlier, and... same problem.
Fortunately, the processor does report "Precise data access violation" and "Stacking Error", and the violated address.
It is safe to report a stack corruption in this scenario, because it could only have been the following:

The "normal" case: thread tried to push to stack, violated the guard and stacking also (naturally) failed
The "crazy" case: thread tried to explicitly write to the stack guard area (for some crazy reason), MPU fault raised, and (only) its Stacking caused the overflow.
But it was an overflow, and it was due to thread's operations, so it is ok to report it.

Things we WON'T report, now, as Stack corruptions:

Standard stacking error due to interrupt entry. This IS actually a minor problem, cause, practically, the thread stack did run out of space, but
we only caught it through an un-related exception. We can decide if we want to report this as a Stack Fail. Note, however, that we won't have the instruction address, of course,
but, also, we won't have the violated address in this case (it is not a Direct Address Violation). So we need to decide what to do with that.

The "crazy" scenario, where thread tried to explicitly write to the stack guard area, so an MPU fault raised but not together with Stacking error (i.e. there was lots of stack area remaining,
to stack the MPU fault context frame). I think this is OK to not report it as Stack Limit Check fail.

Second, about ARMv8-M and the built-in stack overflow checking:
Here the things are slightly different. First, we do not have a guard; just a limit on the PSP.
If a stack overflow occurs, we definitely know it was the right stack overflow (due to STMDB sp! that made the SP try to go beyond the preset limit).
So we are safe to report Stack Limit Check Fail, but we won't have a stack frame to present to the user at all!

My proposal is to just report to the user that the instruction address may be trash, and report Stacking && Direct Violation errors as stack corruptions (if memory addresses are within the guard areas)

In the case of the IRQ causing a stack overflow due to the stack frame push, we can still at least determine that it was an overflow.  We know the stack address and the size of the stack frame, so we can backup the address to determine which thread stack it was that overflowed.  We won't have the instruction, but we would at least know it ran out of stack space.

Raising this priority to high - we need to understand what is going on with the tail-chaining behavior in ARMv8-M, under faults with stacking error.

We filed a case for the tail-chaining with ARM - the details are below:
So, briefly, the situation is as follows:

Our aim is to detect stack corruption due to stack overflow in un-privileged mode. We are aware of having SPLIM registers in ARMv8, but we want a solution to be shared with ARMv7, that’s why we want an MPU-based solution.
So we configure the unprivileged thread stack with nPRIV RW permissions – all other SRAM is set to PRIV RW. Our PSP is initially pointing inside the unprivileged stack.
As soon as we overflow the unprivileged stack, we get MemManage “Stacking Error” and, possibly, also “Data Access Violation”. That’s as expected. According to the spec, the “created” stack frame may be corrupted (that’s what we observe), but the Stack Pointer has actually descent by -0x20 (that’s also what we observe).
Inside the MemManage handler we inspect the error and “pend” the pendSV exception, to do the required RTOS re-scheduling after the MPU fault  handler returns.
Upon the return of the MemManage handler, we experience MemManage “Unstacking Errors”. The specification says that this is due to the fact that the restoration of the stack frame is performed with the privilege mode where we return to. And since we were in nPRIV mode, and try to pop from a PRIV RW stack, we get errors. So, this is also expected, however:
According to the specification, we would expect the Cortex-M33 to perform tail-chaining of the pendSV exception. This does not seem to occur in ARMv8-M. It does occur in ARMv7-M. Tail chaining would help to skip the Unstacking Error, as we would normally unstack only after the pendSV return, and that would probably move the stack pointer elsewhere. So our inquiry concerns the experienced skipping of tail-chaining of the pendSV exception, after the MPU stacking error; should we expect this? Where could we find the explanation in the spec?

Raising this priority to high - we need to understand what is going on with the tail-chaining behavior in ARMv8-M, under faults with stacking error.

We have now understood what happens here.
This has been closed automatically. I am just adding here the resolution regarding tail-chaining.
Interrupt tail chaining is an optimization and, in general, software design shall not be based on the assumption that it definitely occurs, even if the conditions, according to the specification, are met.
Therefore, the software is responsible to always ensure that Un-stacking errors do not occur, and not rely on tail-chaining. We have implemented this in #13334 .


Dummy data

Codecov Report

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

@@           Coverage Diff           @@
##           master      #70   +/-   ##
=======================================
  Coverage   88.23%   88.23%
=======================================
  Files           9        9
  Lines          34       34
  Branches        2        2
=======================================
  Hits           30       30
  Misses          4        4

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 47e34f8...498b5db. Read the comment docs.

In markScheme elements - is it necessary to have completed as I imagine this will always be false and I don't think we'll be putting true responses back into the data store, which means less data has to be transferred from the database and more work can be done by the client. We can probably map through it and just add the completed as we go along.


Test results from other packages should only involve returns

I put trading stats in test/quantstrat/golden_cross_BA.txt  but this should be removed in favor of only comparing the returns on the account on a daily basis.
Comparing trading statistics is testing the results of the backtest and statistic algorithms at the same time, and these should be separated. The statistics should probably live in the FinancialAnalysis package and this data would be useful there once the returns results can be confidently accepted as reasonable and accurate.
The test/quanstrat/quantstrat_cross.R file does return an xts object called rets and this is the result that needs to be referenced.

The trade statistics actually include some non-analytical values that are useful, such as number of transactions, max winner/loser, etc. There are some values such as Annualized Sharpe that probably shouldn't be included but otherwise the bulk of statistics are useful. Closing this.


ERB snippets in .js.erb?

Is there a way to get this package working in .js.erb and not only in .html.erb?

Just to clarify the above comments... Do you have to change the scope inside each individual snippet file that we want o work with .js.erb? Or is there some global way to expand the scope of all snippets in this package to include .js.erb?
Thanks very much, fantastic Sublime Package.

Yes, you have to change the scope inside each individual snippet file.
But you can easily do that using find-and-replace.

Great, thanks very much. That's a good tip. Much appreciated, @guilhermesimoes !


cargo-sweep: 0.5.0 -> 0.6.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/holmgr/cargo-sweep/releases.
meta.description for cargo-sweep is: "A Cargo subcommand for cleaning up unused build files generated by Cargo"
meta.homepage for cargo-sweep is: "https://github.com/holmgr/cargo-sweep"
meta.changelog for cargo-sweep is: ""
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/ychmsl1rn9dk874ny6z354vacci3dii1-cargo-sweep-0.6.2/bin/cargo-sweep passed the binary check.

1 of 1 passed binary check by having a zero exit code.

1 of 1 passed binary check by having the new version present in output.

found 0.6.2 with grep in /nix/store/ychmsl1rn9dk874ny6z354vacci3dii1-cargo-sweep-0.6.2

found 0.6.2 in filename of file in /nix/store/ychmsl1rn9dk874ny6z354vacci3dii1-cargo-sweep-0.6.2

directory tree listing: https://gist.github.com/ace3bd5a364dc736ba4202e5d2eeafa1

du listing: https://gist.github.com/76328a8de5f55ac2c233703c225f96b9

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

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
cargo-sweep

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/ychmsl1rn9dk874ny6z354vacci3dii1-cargo-sweep-0.6.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/ychmsl1rn9dk874ny6z354vacci3dii1-cargo-sweep-0.6.2
ls -la /nix/store/ychmsl1rn9dk874ny6z354vacci3dii1-cargo-sweep-0.6.2/bin

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

1 package built:

cargo-sweep

Maintainer pings
cc @xrelkd for testing.

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

1 package built:

cargo-sweep


missing doc for __willBeReplacedGetFormatString and hooks in TypeScript

I'm trying to use the keyboard datepicker in typescript and I'm not sure how to call __willBeReplacedGetFormatString in typescript. It doesn't help that I'm not super proficient in typescript yet but it would be great if you could show me an example of how to get this working in typescript and hooks:
format={props.__willBeReplacedGetFormatString({
          moment: 'YYYY/MM/DD',
          dateFns: 'yyyy/MM/dd',
        })}

Environment

Tech
Version

@material-ui/pickers
3.2.4

material-ui
3.2.4

React
16

Browser
Chrome

Peer library
date-fns

Steps to reproduce

Try to use the code here in TypeScript

Expected behavior
Find an example in TypeScript
Actual behavior
No example

This thing is only our docs, it is using to replace format prop accordinaly to selected date library https://github.com/mui-org/material-ui-pickers/blob/next/docs/utils/utilsService.ts#L44

Use only string in the format prop


[Feature] Allow for manual rendering, without halting the 'Application' ticker.

I'm building an application and it would be useful to trigger the rendering manually when a change occurs, as occurred as opposed to default behaviour of 'PIXI.Application'.
The solution people propose is to halt rendering through the 'autoStart: false' option, affecting the ticker's rendering behaviour. However this requires calling the update/render event manually, defeating the purpose of using the ticker. (Unless you create another ticker to do this)
Example: https://github.com/pixijs/pixi.js/blob/69e6cee71ebd5ef7834c7f7b269c0c105d32ba19/packages/ticker/src/Ticker.js#L568
I propose a new 'Application' parameter 'autoRender', to cleanly control the rendering logic contained in the ticker.
Workaround
PIXI.Application.prototype.render = null; // Disable auto-rendering by removing the function
const app = new PIXI.Application({ width: 200, height: 200, backgroundColor: 0xFFFFFF });
document.body.appendChild(app.view);

app.ticker.add(() => {
    if (condition) // Manually render when something has changed
        app.renderer.render(app.stage);
});

Environment

pixi.js version: v5.0.0-rc.3

The Application class is a simple helper class for creating apps in PixiJS and contains common properties and functions. It's mega helpful for us in the examples we provide, for instance. But it is not meant to be a 1 stop solution for all use cases. For more complex requirements, we advise that users create their own version of Application that takes into account their needs, which is what I would advise you to do :)

The Application class is a simple helper class for creating apps in PixiJS and contains common properties and functions. It's mega helpful for us in the examples we provide, for instance. But it is not meant to be a 1 stop solution for all use cases. For more complex requirements, we advise that users create their own version of Application that takes into account their needs, which is what I would advise you to do :)

I don't agree it's a complex requirement, in-fact, I'd argue every application made using Pixi.js would potentially want to render manually.
For example, this is how much of my GPU is used to render a blank fullscreen canvas @ 60fps.

Sure, the hardware isn't the most powerful. (Surface Pro 4 2016, Intel 520) An application wouldn't be viable on my device with the default rendering behaviour, it just isn't powerful enough.

If you don't want the extra things that Application provides, then just create a Renderer and update it when you want.
const renderer = new PIXI.Renderer(800, 600, { backgroundColor: 0x1099bb });
document.body.appendChild(renderer.view);
const stage = new PIXI.Container();
// some stuff, only want to manually render
renderer.render(stage);

https://github.com/pixijs/pixi.js/wiki/v5-Custom-Application-GameLoop
PixiJS Application class is used as training wheels. The more abilities we add there, the more people will use it and forget "Whats an event loop?" and "Whats a renderer?".
We do not have enough tutorials and documentation, that's why we might leave some natural obstacles for people to train on. Its completely safe, it doesnt have pitfalls, optimal place for training.
I agree that autoRender is useful feature, but I'm also afraid that someone else will ask "why does not pixi re-render only if something was changed?".


Add support for webkit's (Chrome/Firefox) up/down arrows for input type = number fields

I was wondering if you could add support for webkit's "up/down" arrows that are added to  fields. Here is a hack that I've implemented, which works fine but is very expensive:
// here we are attaching calx to both keyup (when we are just going up/down with keyboard arrows), as well as webkit's "up/down" arrows on the  form fields
$("input[type=number]").bind('keyup input', function(){
// works fine, without visible redundancy
$('#table_id').calx();
});

Yes, I think I miss that, curently only field with [type= text] which is
listed, will add other type soon
Best regards,
Ikhsan
Sent from mobile
On Jan 30, 2015 2:41 PM, "yevheniyc"<EMAIL_ADDRESS>wrote:

I was wondering if you could add support for webkit's "up/down" arrows
that are added to fields. Here is a hack that I've implemented, which works
fine but is very expensive:
// here we are attaching calx to both keyup (when we are just going
up/down with keyboard arrows), as well as webkit's "up/down" arrows on the
form fields
$("input[type=number]").bind('keyup input', function(){
// works fine, without visible redundancy
$('#table_id').calx();
});
--
Reply to this email directly or view it on GitHub
https://github.com/xsanisty/jquery-calx/issues/10.

Thank you so much!!!

Hi @yevheniyc
I just noticed that calx cover all input tag, and behave differently only on checkbox and radio , on other input, blur is the default event binding that trigger the calculation.
you can try to change it on calx init
$('#id').calx({
    autoCalculateTrigger : 'keyup'
});

Works great for the "keyup" event. It still has issues with webkit's "up/down" arrows on the type=number input fields. This will suffice for me, but the "up/down" arrows bug is still there!

After searching for some reference, I think this link on SO is relevant to this issue
http://stackoverflow.com/questions/3940258/what-events-does-an-input-type-number-fire-when-its-value-is-changed
so, you can try to use the input or change event to trigger the calculation
$('#id').calx({
    autoCalculateTrigger : 'keyup input'
});


Recent 'clang++ -std=c++2a' deprecation warnings (re: enums and volatile)

In GASNet's nightly regression testing, Clang++ versions 11.0.0, 11.1.0 and 12.0.0 are issuing numerous complaints about enums like the following:
/scratch/upcnightly/EX-dirac-ibv-clang/runtime/bld/dbg/legion/runtime/legion/legion_config.h:1594:33: warning: arithmetic between different enumeration types ('legion_redop_kind_t' and 'legion_type_id_t') is deprecated [-Wdeprecated-enum-enum-conversion]
  LEGION_REDOP_OR_BOOL        = LEGION_REDOP_VALUE(SUM,BOOL),
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/upcnightly/EX-dirac-ibv-clang/runtime/bld/dbg/legion/runtime/legion/legion_config.h:1566:28: note: expanded from macro 'LEGION_REDOP_VALUE'
  LEGION_REDOP_KIND_##kind * LEGION_TYPE_TOTAL + LEGION_TYPE_##type
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~

These are with Legion stable at 0cf9ddd6  on Linux/x86_64
In addition to appropriate paths for LG_RT_DIR and GASNET_ROOT, I am using
REALM_NETWORKS=gasnetex CONDUIT=ibv
CC='clang -Wno-unused-command-line-argument'
CXX='clang++ -Wno-unused-command-line-argument -std=c++2a'
I plan to determine whether -std=c++2a is a prerequisite for these warnings, and will report here once I know.
I suspect adding one or more casts in the LEGION_REDOP_VALUE macro is all that is required to silence this.
Links to more complete logs:
LLVM-11.1.0 App build
LLVM-12.0.0 App build

assigning @lightsighter to look at the specific issue, and me to make sure we have clang 11/12 coverage in CI

I have confirmed my suspicion that -std=c++2a is a prerequisite for these warnings.
They do not occur with -std=c++17.
For completeness:  I also now see (previously lost in the noise) several c++2a-specific deprecation warnings like the following:
/[....]/legion/runtime/realm/dynamic_table.inl:338:18: warning: compound assignment to object of volatile-qualified type 'volatile Realm::DynamicTableFreeList<Realm::DynamicTableAllocator<Realm::SparsityMapImplWrapper, 10, 4>>::IT' (aka 'volatile unsigned long long') is deprecated [-Wdeprecated-volatile]
      next_alloc += ((IT)1) << ALLOCATOR::LEAF_BITS; // do this before letting go of lock
                 ^
/[....]/legion/runtime/realm/runtime_impl.cc:2363:82: note: in instantiation of member function 'Realm::DynamicTableFreeList<Realm::DynamicTableAllocator<Realm::SparsityMapImplWrapper, 10, 4>>::alloc_entry' requested here
      SparsityMapImplWrapper *wrap = local_sparsity_map_free_lists[target_node]->alloc_entry();
                                                                                ^
1 warning generated.

I know we've dealt with this warning in GASNet-EX and UPC++ in the past.
IIRC, it was as simple as replacing a += b with a = a + b to eliminate the "compound assignment".

Ok, so "add c++2a coverage" goes on the CI list too.  :)
Looking at that specific warning, I think that I should be removing the volatile there, but I'll stare at the code a bit more before changing stuff.

I'll not edit the Title yet again, but I can add that (at least w/ GCC 11.1.0) CXX='g++ -std=c++2a' gives the same warnings about the enums.  However, it drops dead before the volatile warning might have occurred (new issue coming soon).

We run C++ 20 in CI, so I assume this has been fixed?


oom always

远程连接开发设备
使用过程中经常出现oom

Does the world need Google Translate?

Does the issue happen when you run with --disable-extensions

Does the issue happen when you run with --disable-extensions
i need to debug... if --disable-extensions  later, debug still available?

Can you explain what debug functionality you are referring to ?

Thanks for clarifying, you will not be able to use the debugging feature from the go extension with --disable-extensions, but the flag is the easiest way to narrow down if the issue is caused by extension or the core.


Mask all non-finite values in fit_gaussian()

Because curve_fit() also doesn't like infs.

I'm roguishly gonna go ahead and merge this because it's annoying to work around :see_no_evil:

Retrospective LGTM :wink:


Improve causes.html

want to improve that page responsiveness and improve the alignment and hover of the images.

@Sulagna-Dutta-Roy
Please assign

Go for it


Add instruction and struct definitions

Problem
Before getting started on the staking program, we need to agree on an interface, ie. structs and instructions.
Summary of changes
Going off the work at https://github.com/paladin-bladesmith/paladin-rewards-program/pull/1, this adds the basics for the staking program.
After thinking about it some more, I came to the conclusion that we can neatly separate the staking portion from the governance portion. The governance program just needs to interpret the stake and config accounts from this program to figure out things like voting power, but that's the only hard link between the two.
The stake program can grant slash and config authority to the governance, and then the governance can vote on instructions to the stake program.
The biggest question that came out for the rewards program is around the handling of staking rewards: I think we'll need to track and store them separately from the holder rewards, otherwise it's difficult to figure out what proportion of rewards should go to which stake account. I'll flag those in the PR.

This should be ready to go on my side!


Fix offline training for model comparison ignoring shared context

Also added a fix for last epoch validation loss not saving (by computing validation loss before checkpoint saving).


Only 10000 posts displayed

Describe the bug
When searching for all posts without any regimentation, only up to 10,000 posts are displayed.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://cai-einander-helfen-staging.fbi.h-da.de/'
Click on the 'Search' icon
See error ('10000 Ergebnisse' on the bottom of the page)

Expected behavior
All post should be displayed currently around 20.000.
Additional context
This problem is caused by the elasticsearch query in the frontend. With the query '/_search' elasticsearch returns only a maximum of 10,000 posts. This should be improved. This could be done for example by implementing the parameter 'scroll'.

displaying all posts as well as the correct number of posts for a query requires requires the use of 'search after':
https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after

displaying all posts as well as the correct number of posts for a query requires requires the use of 'search after':
https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after

By adding the parameter "track_total_hits": true, the correct number of all posts is output under hits.total.value.

By adding the parameter "track_total_hits": true, the correct number of all posts is output under hits.total.value.

By adding this parameter, you see now 3420 pages but all pages over page 1000 don't contain any results...


failing gracefully in case the given module could not be imported

Hello there!
First of all, many thanks for creating this great library.
I used it in my project but pointed the :ref: to an invalid python module of mine (it was missing a __init__.py), then sphinx-argparse raised an exception whose message was not helpful at all.
This patch provides a much more descriptive output, for example:
/home/..redacted../docs/source/cli.rst:33: ERROR: Failed to import "MyPythonProject.console.parsers.command1" from "parser": No module named parsers.command1
/home/..redacted../docs/source/cli.rst:33: ERROR: Failed to import "MyPythonProject.console.parsers.command2" from "parser": No module named parsers.command2

Please let me know what adjustments you would like me to do in the code for you to accept this PR

I've implemented this in the develop branch so it should be in the next release. Thanks!

Thank you!


Exception from analysis server (running from VSCode / Dart Code)

Exception from analysis server (running from VSCode / Dart Code)
What I was doing
Creating a new dart file. Not sure what else caused the crash.
Versions

Flutter SDK 1.5.9-pre.15
Visual Studio Code 1.33.1
Dart Code 2.26.0

Analyzer Info
The analyzer was launched using the arguments:
/Users/thinkdigital/development/flutter/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot
--client-id=Dart-Code.dart-code
--client-version=2.26.0

Exception
Failed to handle completion domain request: {id: 10, method: completion.setSubscriptions, params: {subscriptions: [AVAILABLE_SUGGESTION_SETS]}, clientRequestTime:<PHONE_NUMBER>522}
NoSuchMethodError: The getter 'iterator' was called on null.
Receiver: null
Tried calling: iterator
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5)
#1      _protocolAvailableSuggestionSet (package:analysis_server/src/domains/completion/available_suggestions.dart:141:35)
#2      createCompletionAvailableSuggestionsNotification.<anonymous closure> (package:analysis_server/src/domains/completion/available_suggestions.dart:75:14)
#3      MappedListIterable.elementAt (dart:_internal/iterable.dart:414:29)
#4      ListIterable.toList (dart:_internal/iterable.dart:219:19)
#5      createCompletionAvailableSuggestionsNotification (package:analysis_server/src/domains/completion/available_suggestions.dart:76:8)
#6      CompletionDomainHandler.setSubscriptions.<anonymous closure> (package:analysis_server/src/domain_completion.dart:482:11)
#7      _rootRunUnary (dart:async/zone.dart:1136:13)
#8      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#9      _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#10     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#11     _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#12     _StreamImplEvents.handleNext (dart:async/stream_impl.dart:707:11)
#13     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:667:7)
#14     _rootRun (dart:async/zone.dart:1120:38)
#15     _CustomZone.run (dart:async/zone.dart:1021:19)
#16     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#17     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#18     _rootRun (dart:async/zone.dart:1124:13)
#19     _CustomZone.run (dart:async/zone.dart:1021:19)
#20     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#21     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#22     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#23     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#24     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:391:30)
#25     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)

Diagnostics requested after the error occurred are:
[
    {
        "name": "/Users/thinkdigital/GoogleDrive/Development/IdeaProjects/teddycare/card_settings",
        "explicitFileCount": 29,
        "implicitFileCount": 858,
        "workItemQueueLength": 0,
        "cacheEntryExceptions": []
    },
    {
        "name": "/Users/thinkdigital/GoogleDrive/Development/IdeaProjects/teddycare",
        "explicitFileCount": 134,
        "implicitFileCount": 1157,
        "workItemQueueLength": 0,
        "cacheEntryExceptions": []
    },
    {
        "name": "/Users/thinkdigital/GoogleDrive/Development/IdeaProjects/teddycare/card_settings/example",
        "explicitFileCount": 3,
        "implicitFileCount": 659,
        "workItemQueueLength": 0,
        "cacheEntryExceptions": []
    }
]

Closed as a dupe of other issues


PSM for maintaining the English / Western reading order for PDF scanned text with double column layout

Your Feature Request
Traditional English literature with double column text are read from top to bottom per page and left to right for each column. I have noticed some OCR'd documents in a dataset I came across that did not maintain this kind of order in the extracted text. I have no idea if the documents were OCR'd by tesseract or not but I was wondering if tesseract has this feature to extract text by maintaining the reading order. If tesseract does provide this, I plan to re-OCR the documents to correct the order.
I had a look through tesseracts PSM list and it does not seem to provide anything for what I need (double column). But perhaps I am misunderstanding how PSM works?

Please use our forum for asking questions.


⚠ SceneTime has degraded performance

In bf3ee4a, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 2137 ms

Resolved: SceneTime performance has improved in e10dade after 12 minutes.


Issue #106 Add user template

Following issue:

#106

create the template to help our users to contribute to Nachet Interactive.

[x] Add User Bug Report template
[x] Add User Feature Request template

Hi @TaranMeyer
I wanted your opinion on this since you are the one that will use the template the most.
You can see them by clicking on Files changed:

And then you can click on the file icone to have the formatted document.

Maxence I'm just not sure where to find this in github, sorry :( If you have time to chat tomorrow (Thursday) maybe you can show me?


Add splash image upload feature

This PR hopefully solves #84 .
A section at the bottom of display configuration page has been added. User can select an image file from their machine. The image is centered onto the canvas (therefore, images with aspect ratio of 2:1 is preferable as the OLED size we're supporting is 128x64). It automatically converts it to monochrome which can be inverted via a checkbox. The same Save button is used for the upload which happens right after sending the display options request.
There were certain issues that I encountered in my attempts to implement this. One of the issue was that the Pico couldn't handle so much POST data needed to upload. I tried many methods including RLE, which really didn't help much (although it worked for one image). I also checked some compression methods, none of them were good enough. With all this, I settled for a simple approach, which is to chunk single request into many indexed ones, in this case 16 requests. Based on the index, the server writes the data to a temporary array, which when it receives the last request from the upload, writes to memory.
One thing that needs to be reviewed is the memory index of where the splash is being written (StorageManager.h:21).
Other things to note maybe the UX side of things.
Please merge if all the changes are good, otherwise suggest what needs to be updated.
Thanks!

Looks fantastic, that is pretty neat. We'll want to add some info about this to our documentation (when we get to that) about switching your splash mode to custom.


Migrate intent schema/sample utterances from AMAZON.LITERAL to custom slots

As of the end of November '16, AMAZON.LITERAL won't be supported for certification anymore. Also for other locales than US English it is not supported anymore already.

I've had a stab at making an update for this bug by replacing the AMAZON.LITERAL with custom slots. It works perfectly for an artist that is in the custom slot list but finds nothing else. I took all the examples from "echo/utterances.txt".
Quote taken from the linked page in this issues description - " Values outside the list may still be returned if recognized by the spoken language understanding system. Although input to a custom slot type is weighted towards the values in the list, it is not constrained to just the items on the list. "
I am new to Alexa/Echo so it maybe the custom slots need more examples than I currently have it. I'll update this post at the weekend with my changes for input from others.


Increase initial memory if code is large

When packing a Wasm contract for Parity Ethereum the data section in the constructor module might require more memory than is initially allocated. We fix this.

We should either review or close @NikVolf @pepyakin . I am not acquaint with the packing. Is this a sensible change?

We should either review or close @NikVolf @pepyakin . I am not acquaint with the packing. Is this a sensible change?

Oh, first of all,  thanks for the PR and sorry for the delay @geigerzaehler
Packing is a concept that comes from open-ethereum wasm (aka pwasm) which is an experiment abandoned a couple of years ago. In a nutshell, packing is similar to EVM constructor wrapping, i.e. when the constructor not just executes code but rather executes code that returns the final code of a contract. Newer contract environments based on wasm do not use this technique.
Therefore, I am wondering if this PR is still relevant, i.e. if there is a user of pwasm or similar that we don't know of. If not, I would vote for removing all that logic from wasm-utils

Oh, first of all,  thanks for the PR and sorry for the delay @geigerzaehler
Packing is a concept that comes from open-ethereum wasm (aka pwasm) which is an experiment abandoned a couple of years ago. In a nutshell, packing is similar to EVM constructor wrapping, i.e. when the constructor not just executes code but rather executes code that returns the final code of a contract. Newer contract environments based on wasm do not use this technique.
Therefore, I am wondering if this PR is still relevant, i.e. if there is a user of pwasm or similar that we don't know of. If not, I would vote for removing all that logic from wasm-utils

Closed for lack of activity.


Connection Failure

Hi, first kudos on setting this up, I've been all over the place looking for an android rtmp client.
I pretty much copied your sample on the SurfaceView, and I'm trying to stream to azure media services. But I keep getting a connection failure, I don't have any more information on the reason why, the endpoint is open, I can test it using other tools, any hints on what could be the cause?
Here's the logcat of the starting of the streaming
08-23 09:46:40.920 16915-16915/org.springframework.cloud.stream.videostreaming I/MicrophoneManager: Microphone created, 44100hz, Stereo
08-23 09:46:40.921 16915-16915/org.springframework.cloud.stream.videostreaming I/MicrophoneManager: Microphone created, 44100hz, Stereo
08-23 09:46:40.923 16915-22285/org.springframework.cloud.stream.videostreaming I/OMXClient: MuxOMX ctor
08-23 09:46:40.930 16915-16915/org.springframework.cloud.stream.videostreaming I/VideoEncoder: videoEncoder OMX.qcom.video.encoder.avc type supported: video/avc
08-23 09:46:40.931 16915-16915/org.springframework.cloud.stream.videostreaming W/VideoCapabilities: Unrecognized profile<PHONE_NUMBER> for video/avc
08-23 09:46:40.931 16915-16915/org.springframework.cloud.stream.videostreaming W/VideoCapabilities: Unrecognized profile<PHONE_NUMBER> for video/avc
08-23 09:46:40.932 16915-16915/org.springframework.cloud.stream.videostreaming I/VideoEncoder: Color supported:<PHONE_NUMBER>
08-23 09:46:40.932 16915-16915/org.springframework.cloud.stream.videostreaming I/VideoEncoder: Color supported:<PHONE_NUMBER>
08-23 09:46:40.932 16915-16915/org.springframework.cloud.stream.videostreaming I/VideoEncoder: Color supported:<PHONE_NUMBER>
08-23 09:46:40.932 16915-16915/org.springframework.cloud.stream.videostreaming I/VideoEncoder: Color supported:<PHONE_NUMBER>
08-23 09:46:40.932 16915-16915/org.springframework.cloud.stream.videostreaming I/VideoEncoder: Color supported:<PHONE_NUMBER>
08-23 09:46:40.932 16915-16915/org.springframework.cloud.stream.videostreaming I/VideoEncoder: Color supported:<PHONE_NUMBER>
08-23 09:46:40.932 16915-16915/org.springframework.cloud.stream.videostreaming I/VideoEncoder: Color supported: 21
08-23 09:46:40.937 16915-22289/org.springframework.cloud.stream.videostreaming I/OMXClient: MuxOMX ctor
08-23 09:46:40.956 16915-22289/org.springframework.cloud.stream.videostreaming E/ACodec: [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -1010
08-23 09:46:40.957 16915-22289/org.springframework.cloud.stream.videostreaming W/ACodec: do not know color format 0x7fa30c06 =<PHONE_NUMBER>
08-23 09:46:40.957 16915-22289/org.springframework.cloud.stream.videostreaming W/ACodec: do not know color format 0x7fa30c04 =<PHONE_NUMBER>
08-23 09:46:40.957 16915-22289/org.springframework.cloud.stream.videostreaming W/ACodec: do not know color format 0x7fa30c08 =<PHONE_NUMBER>
08-23 09:46:40.958 16915-22289/org.springframework.cloud.stream.videostreaming W/ACodec: do not know color format 0x7fa30c07 =<PHONE_NUMBER>
08-23 09:46:40.958 16915-22289/org.springframework.cloud.stream.videostreaming W/ACodec: do not know color format 0x7f000789 =<PHONE_NUMBER>
08-23 09:46:40.974 16915-22289/org.springframework.cloud.stream.videostreaming I/ACodec: setupAVCEncoderParameters with [profile: Baseline] [level: Level1]
08-23 09:46:40.977 16915-22289/org.springframework.cloud.stream.videostreaming I/ACodec: [OMX.qcom.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
08-23 09:46:40.977 16915-22289/org.springframework.cloud.stream.videostreaming I/ACodec: setupVideoEncoder succeeded
08-23 09:46:40.982 16915-22289/org.springframework.cloud.stream.videostreaming W/ACodec: do not know color format 0x7f000789 =<PHONE_NUMBER>
08-23 09:46:41.026 16915-16915/org.springframework.cloud.stream.videostreaming I/AudioEncoder: AudioEncoder started
08-23 09:46:41.076 16915-22294/org.springframework.cloud.stream.videostreaming I/Camera2ApiManager: camera opened
08-23 09:46:41.078 16915-22294/org.springframework.cloud.stream.videostreaming I/Camera2ApiManager: camera configured
08-23 09:46:41.090 16915-16915/org.springframework.cloud.stream.videostreaming I/MicrophoneManager: Microphone started
08-23 09:46:41.092 16915-22330/org.springframework.cloud.stream.videostreaming I/SrsFlvMuxer: worker: connecting to RTMP server by url=rtmp://xxx.channel.mediaservices.windows.net:1935/live/5dab22a72374418ba322c5e1f5437a33
08-23 09:46:41.092 16915-22330/org.springframework.cloud.stream.videostreaming D/RtmpConnection: connect() called. Host: xxx.channel.mediaservices.windows.net, port: 1935, appName: live, publishPath: 5dab22a72374418ba322c5e1f5437a33
08-23 09:46:41.250 16915-22330/org.springframework.cloud.stream.videostreaming D/RtmpConnection: connect(): socket connection established, doing handhake...
08-23 09:46:41.251 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: writeC0
08-23 09:46:41.251 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: writeC1
08-23 09:46:41.252 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: writeC1(): Calculating digest offset
08-23 09:46:41.252 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: writeC1(): (real value of) digestOffset: 352
08-23 09:46:41.252 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: writeC1(): recalculated digestOffset: 1128
08-23 09:46:41.253 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: writeC1(): digestOffsetBytes: 000061FF
08-23 09:46:41.253 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: partBeforeDigest(): size: 1128
08-23 09:46:41.253 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: writeC1(): Writing timestamp and Flash Player version
08-23 09:46:41.253 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: partAfterDigest(): size: 376
08-23 09:46:41.253 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: copying digest offset bytes in partBeforeDigest
08-23 09:46:41.253 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: writeC1(): Calculating digest
08-23 09:46:41.253 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: writeC1(): writing C1 packet
08-23 09:46:41.254 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: readS0
08-23 09:46:41.297 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: readS1
08-23 09:46:41.297 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: readS1(): S1 total bytes read OK
08-23 09:46:41.297 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: readC2
08-23 09:46:41.297 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: readS2
08-23 09:46:41.297 16915-22330/org.springframework.cloud.stream.videostreaming D/Handshake: readS2(): S2 total bytes read OK
08-23 09:46:41.297 16915-22330/org.springframework.cloud.stream.videostreaming D/RtmpConnection: connect(): handshake done
08-23 09:46:41.297 16915-22330/org.springframework.cloud.stream.videostreaming D/RtmpConnection: rtmpConnect(): Building 'connect' invoke packet
08-23 09:46:41.297 16915-22353/org.springframework.cloud.stream.videostreaming D/RtmpConnection: starting main rx handler loop
08-23 09:46:41.298 16915-22330/org.springframework.cloud.stream.videostreaming D/RtmpConnection: wrote packet: RTMP Command (command: connect, transaction ID: 1), size: 312
08-23 09:46:41.478 16915-22289/org.springframework.cloud.stream.videostreaming D/ACodec: dataspace changed to 0x10c40000 (R:2(Limited), P:4(BT601_6_525), M:3(BT601_6), T:3(SMPTE170M)) (R:2(Limited), S:4(BT601_525), T:3(SMPTE_170M))
08-23 09:46:41.488 16915-22293/org.springframework.cloud.stream.videostreaming I/SrsFlvMuxer: annexb demux 29B, pts=487, frame=17B, nalu=7
08-23 09:46:41.488 16915-22293/org.springframework.cloud.stream.videostreaming I/SrsFlvMuxer: annexb demux 29B, pts=487, frame=4B, nalu=8
08-23 09:46:41.488 16915-22293/org.springframework.cloud.stream.videostreaming I/SrsFlvMuxer: flv: h264 sps/pps sent, sps=17B, pps=4B
08-23 09:46:41.511 16915-16924/org.springframework.cloud.stream.videostreaming W/MessageQueue: Handler (android.os.Handler) {f23a81d} sending message to a Handler on a dead thread
                                                                                java.lang.IllegalStateException: Handler (android.os.Handler) {f23a81d} sending message to a Handler on a dead thread
                                                                                at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
                                                                                at android.os.Handler.enqueueMessage(Handler.java:643)
                                                                                at android.os.Handler.sendMessageAtTime(Handler.java:612)
                                                                                at android.os.Handler.sendMessageDelayed(Handler.java:582)
                                                                                at android.os.Handler.post(Handler.java:338)
                                                                                at android.hardware.camera2.dispatch.HandlerDispatcher.dispatch(HandlerDispatcher.java:61)
                                                                                at android.hardware.camera2.dispatch.MethodNameInvoker.invoke(MethodNameInvoker.java:88)
                                                                                at android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.onClosed(CallbackProxies.java:177)
                                                                                at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:404)
                                                                                at android.hardware.camera2.impl.CameraCaptureSessionImpl.finalize(CameraCaptureSessionImpl.java:619)
                                                                                at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)
                                                                                at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)
                                                                                at java.lang.Thread.run(Thread.java:761)
08-23 09:46:41.600 16915-16915/org.springframework.cloud.stream.videostreaming I/MicrophoneManager: Microphone stopped
08-23 09:46:41.600 16915-22330/org.springframework.cloud.stream.videostreaming D/RtmpConnection: socket closed
08-23 09:46:41.601 16915-16915/org.springframework.cloud.stream.videostreaming I/SrsFlvMuxer: SrsFlvMuxer closed
08-23 09:46:41.604 16915-22366/org.springframework.cloud.stream.videostreaming I/SrsFlvMuxer: worker: disconnect ok.
08-23 09:46:41.624 16915-16915/org.springframework.cloud.stream.videostreaming I/AudioEncoder: AudioEncoder stopped
08-23 09:46:41.624 16915-16915/org.springframework.cloud.stream.videostreaming I/Choreographer: Skipped 31 frames!  The application may be doing too much work on its main thread.
08-23 09:46:41.633 16915-16915/org.springframework.cloud.stream.videostreaming I/MicrophoneManager: Microphone stopped
08-23 09:46:41.633 16915-16915/org.springframework.cloud.stream.videostreaming I/SrsFlvMuxer: SrsFlvMuxer closed
08-23 09:46:41.634 16915-16915/org.springframework.cloud.stream.videostreaming I/AudioEncoder: AudioEncoder stopped
08-23 09:46:41.634 16915-22367/org.springframework.cloud.stream.videostreaming I/SrsFlvMuxer: worker: disconnect ok.

This look a problem with a connect packet response from server, maybe any param is not supported for azure server. Maybe flash version is the problem.
Go to:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtmp/src/main/java/com/github/faucamp/simplertmp/io/RtmpConnection.java#L185
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtmp/src/main/java/com/github/faucamp/simplertmp/io/RtmpConnection.java#L220
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/rtmp/src/main/java/com/github/faucamp/simplertmp/io/RtmpConnection.java#L258
and replace with:
args.setProperty("flashVer", "LNX 11,2,202,233");
If the problem persists, let me know a rtmp url for test or instructions to install azure server for debug

Hi, sorry for reopening an old issue but this issue is currently affecting me. I have tried changing the flashVer as per your last comment but this does not resolve the problem.
If you are still willing to help resolve the issue let me know and I can get an RTMP url for testing purposes.

Hi, If you can give me an url for test I can do it more easy. You ca send me url to email if you want


No rebuild of overlay on screen update

I noticed this previous when resizing a desktop window, that the overlay hole does not resize correctly.
But as this is a minor case ... so be it.
But now I noticed that this creates an issue when using ads. Which are only displayed after getting data.
https://user-images.githubusercontent.com/77293597/147824925-eb7e967c-6fc4-43d4-945b-e0f907f00558.mp4

Please check in v3 about the the desktop issue.
please attach a minimal replication code. The onboarding has a layout builder and should rebuild when the screen size changes.
But on this mobile screen I don't see screen changing.


Supports yarn berry?

System information

node version: 14.18.2
npm or yarn version: yarn 3.2.0
OS/version/architecture: macOS M1 / 12.2 / arm64
Applicable nodegit version: 0.27.0

internal/process/esm_loader.js:74
    internalBinding('errors').triggerUncaughtException(
                              ^

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for /Users/noel/Desktop/querypie-yarn-berry/packages/querypie-middleware/node_modules/node-pre-gyp/bin/node-pre-gyp
    at new NodeError (internal/errors.js:322:7)
    at defaultGetFormat (internal/modules/esm/get_format.js:71:15)
    at getFormat$1 (file:///Users/noel/Desktop/querypie-yarn-berry/.pnp.loader.mjs:157:10)
    at Loader.getFormat (internal/modules/esm/loader.js:105:42)
    at Loader.getModuleJob (internal/modules/esm/loader.js:243:31)
    at async Loader.import (internal/modules/esm/loader.js:177:17)
    at async Object.loadESM (internal/process/esm_loader.js:68:5) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}

I got this error while running lifecycleScripts/install.js.
any supports for yarn berry?

Try the latest alpha 0.28.0-alpha.13, but this isn't something we've ever looked into so I wouldn't be surprised if there were issues.


[INLONG-7883][Manager] Invalidate user session when deleting user

Prepare a Pull Request

Fixes #7883

Motivation
Invalidate user session when deleting user.
Modifications
Invalidate user session when deleting user.

We need to consider a way to manage user information in a distributed manner. After deleting a user, all sessions in the Manager service will be invalidated.
My idea is, without the use of three-party components, can we cache user info in the memory of the Manager service, synchronize it from the DB regularly, and remove the session when the user data in the DB is found to be invalid.
In this way, all Manager services can be synchronized within a certain period of time.


missing template file in wagtailadmin 4.0.x is breaking wagtailmenus

I get the following error after updating to wagtail 4.0.1 or 4.0.2
django.template.exceptions.TemplateDoesNotExist: wagtailadmin/pages/_editor_css.html
I checked the wagtail repository and the _editor_css.html file is missing.
I believe one "include" line needs to be removed from /wagtailmenus/templates/wagtailmenus/mainmenu_edit.html

{% block extra_css %}
<!--    {% include "wagtailadmin/pages/_editor_css.html" %}-->
    {{ edit_handler.form.media.css }}
    {{ view.media.css }}
{% endblock %}

{% block extra_js %}
    {% include "wagtailadmin/pages/_editor_js.html" %}
    {{ edit_handler.form.media.js }}
    {{ edit_handler.html_declarations }}
    {{ view.media.js }}
{% endblock %}

{% block header %}
    {% include "wagtailmenus/includes/header_with_site_switcher.html" with title=view.page_title subtitle=view.get_page_subtitle icon=view.header_icon %}
{% endblock %}

{% block form_action %}?{% endblock %}

I believe this is solved by #432

It works fine now. Thank you for updating this very useful package!


No named AwbModes

I would like to use the AWB mode names as defined in the libcamera documentation: auto, incandescent, tungsten, etc.
However only numeric values 0-7 are allowed now.
This is similar to #38 for exposure mode.

Hi, yes indeed, as I commented on that other issue, this clearly wants improving. It probably ought to be part of libcamera itself so we'll talk to them about that.


Path names are too long for windows

I am running into the Windows 260 character limit for file paths.  The .tmp structure is highly nested and ends up generating paths beyond the limit.  The file the library trips up on is:
c:/ws/vm-prpc-ready-rh65-pg91-tc7-j7/puppet/.tmp/librarian/cache/source/puppet/forge/forgeapi_puppetlabs_com/puppetlabs-postgresql/4.0.0/cache/tmp-unpacker20140922-7768-h352q1/puppetlabs-postgresql-4.0.0/spec/unit/functions/postgresql_acls_to_resources_hash_spec.rb
Can the path be shortened some to avoid this issue?

Man, this issue drove me for at least 4 hours until I found out windows complaining the path is too long...
Why this is not getting fixed? .tmp should just move out from the current path of puppet...


Theme UI Color modes not working in gatsby-theme when exporting theme from deck (v3)

I am unable to get Theme UI Color Mode working with gatsby-theme-mdx-deck.
It works properly when shadowing src/gatsby-plugin-theme-ui/index.js in the consuming Gatsby site. But not when exporting theme from a deck, following the theme documentation.
I expected all features of shadowing src/gatsby-plugin-theme-ui/index.js to be equal to exporting theme on a per deck basis. Is this not the case?
I setup two codesandboxes, the only difference is how the theme is added
Theme exported from deck (not working): https://codesandbox.io/s/gatsby-theme-mdx-deck-color-modes-gvop6
Shadowing gatsby-plugin-theme-ui (working): https://codesandbox.io/s/gatsby-theme-mdx-deck-color-modes-4jczj
I've been trying to debug this for quite some time now, but I am at my wits end. I would appreciate any advice or pointers if this is supposed to work and I'll submit a PR if I can get it working.

IIRC I don't think you can specify color modes from the deck's exported theme since it's a nested theme under the base one

Ok. Yeah that's kind of my conclusion as well. I just instinctively thought it should work.
Is it this line that documents this? (from https://theme-ui.com/guides/nested-theme-providers/#how-contexts-merge)

The inner Theme Provider will not create a new color mode state, but inherit this from the parent.

So I guess there is no way of specifying color modes on a per deck basis then.

I found a work around. I don't think its a bad approach, but would like your input @jxnblk just to make sure I'm not doing something bad.
I basically applied the approach detailed in https://styled-system.com/guides/color-modes as a Provider for my mdx deck theme.
Codesandbox here

If its an OK approach, can that logic/Provider be extracted into core and run conditionally if any colors modes are set in the mdx deck theme? I'm thinking maybe in the deck template or deck component


added caseNameAliases annotation with implementation in Json codec

Fixes #381

@devsprint Good to merge when conflicts fixed!

@devsprint Can you please fix conflicts? 🙏


Demographic indicators

Goal: output 9 tables containing all data points for the 4 indicators that fall into the demographics category.  Note that data comes from Census (all of Race and Hispanic origin comes from Census) or it comes from ACS PUMS data.
Final output will include 9 tables; 1 for each geography level and 1 for each timeframe.  Each table should have the same number of columns.

PUMA: 1 row for each PUMA

demographics_2000_puma.csv
demographics_0812_puma.csv
demographics_1519_puma.csv

Borough: 1 row per borough

demographics_2000_borough.csv
demographics_0812_borough.csv
demographics_1519_borough.csv

City: 1 row for citywide data

demographics_2000_citywide.csv
demographics_0812_citywide.csv
demographics_1519_citywide.csv

Create new folder in edm-publishing db-eddt>demographics>demographics_2000_puma.csv to place output files.
Each datapoint will have the following:

Count
CV
MOE
Percent
Percent MOE

Consult data dictionary and data matrix field specifications tab with detailed information on exactly what to pull for each indicator.

AD feedback on output

[ ] 1) Update file names and folder structure to match what was scoped out in the epic so that structure is consistent across outputs.
[ ] 2) Where is the 2000 data?
[ ] 3) Something is wrong with the outputs because there are only 6 rows in the demographic 2019_by_puma.csv
[ ] 4) Remove total_pop-pct-denom field.
[ ] 5) I think the the denominator logic is different for the race and hispanic origin category.  Instead of having the denominator be the total population of that race, it's the total population (i.e. pop anh pct would be 4677 / 110196 = 4.24%)
[ ] 6) Remove the total_pop-anh-pct-denom and other race denominator fields for total pop.  Let's discuss how to best record race
[ ] 7) Double check to make sure that CV calculation matches was was done in Pop Fact Finder.  See here
[ ] 8) This document walks you through of how to calculate median age
[ ] 9) I checked the counts, MOEs, and percent values for 2019 data for PUMA 3701 using the census summary tables and the values look correct to me.
[ ] 10) We'll need to rename the fields, but lets draft out the naming convention and agree on it so were on the same page before implementing anything

Hey sorry about the 6 columns in the by puma, I thought I ran the export with all data but I only ran with test data. I will re-run now and then we will have the full columns. Will work through other feedback while that is running

2000 data is from Erica, we are holding off on that

Putting Te's comment here
Naming Convention
I am still unsure about the naming convention. In this work race, moe, cv suffix is appended with - and in the wiki it seems that all should be appended with _.

This was a good comment he made on the export PUMS pull request. The reason I'm not addressing it yet is because of our plan changing math first and worry about column labels second. it makes sense to merge in this export PUMS pull request first as to not create merge conflicts in the aggregation code. We will address this once math is correct

Ok so race crosstabs denominators seem to be correct for indicators but not correct for the total_pop columns. I think we can just take out the total pop crosstabbed by race? We only use that information to calculate percentages and it should only be reported in the relevant denominator columns. We will get correct numbers on race from the decennial census

March 10 review

File names in folder is correct
Review of 1519_borough file
[ ] There shouldn't be a cv for a percent (just have pct_moe and drop pct_cv)
[ ] Remove _count from field names (i.e. lep should just be lep and not lep_count same with fb. fb and not fb_count)
[ ] Age field names do not match convention we agreed on yesterday (i.e. age_popu16, age_p16t64, age_p65pl, age_median, age_p5pl)
[ ] The Race/ethnicity abbreviation and stats suffix should always follow the root field name (i.e. age_median and not age_hsp_median)
[ ] Update field names to be all lower case
[ ] Missing age_p5pl

I thought we said no age_p5pl, because denominator columns stay as is

I thought if something had a specific variable we'd include the field.  If that last piece is a heavy life then leave all denominators as is.

sorry I guess I remembered wrong.
I'm not sure if I understand
"The Race/ethnicity abbreviation and stats suffix should always follow the root field name (i.e. age_median and not age_hsp_median)"
What's the issue with age_hsp_median? It's the same as lep_wnh_count or pop_hsp_pct as far as I can see?

Yeah they all need to be updated to follow the convention that we've laid out and have estaibaled with other field names.

Ok so all race crosstab column labels for all processes we have are in the wrong order. Is this something we've talked about before? I don't remember talking about it in standup, and it's not in the long comment. I don't think I can make those changes very quickly

Let's discuss what this would entail after I'm off the phone with Lynn

ok


Fix #60 - remove playlistpos reference.

This is a simple fix for #60. playlistpos no longer exists, so it can't be used in onPlayBackEnded. Whilst here, remove playlistlen too, since it's only set and never used.
I'm not sure about the original use of this stuff in #18 though, and why it was partially removed later. It probably wouldn't be too hard to fix it by re-adding the code instead. I'd be happy update my pull request to do that if preferred.

Hi, thanks for your pull,
Initially the playlist "hack" was intended for playlist/plugins adding extra (intros/outros, trailers..), if you play a list, then the plugin would stop after the first video ends and either stay in the dark or fixed lights.
If you want to update your PR, you can test the plugin I found the problem on initially, "cinemavision".
It was probably made broken during mpolednik's refactoring.
It would be nice to keep and fix those bits, as it also fixes : https://github.com/mpolednik/script.kodi.hue.ambilight/issues/67 (at least, I assume)
Thank you :)

@Moyster ok, done. I've tested this still fixes #60. Not sure about #67, but it might fix it too. I haven't tested with cinemavision though, but the code is back how it was in #18, so it has a good chance of being fine - shouldn't be any worse at least :-)

@tdb awesome, thanks :)
Will give that a test later today when I get home, see if cinemavision finally "git gud". Looking at your commit, I'm pretty sure you nailed both https://github.com/mpolednik/script.kodi.hue.ambilight/issues/60 & https://github.com/mpolednik/script.kodi.hue.ambilight/issues/67 :+1:

Well it works fine here, tested cinemavision and playing a few episodes in a playlist (fast-forwarding 'til 30sec before the end).
A single movie/episode or a playlist also undims the lights according to the settings (I used the hue app on mobile to set my lights to 63%, started kodi, played an episode and waited for the end to undim the lights, hue app was back to 63%).
Also found the commit where it all started :
https://github.com/mpolednik/script.kodi.hue.ambilight/commit/51dfb710a71e83493dc8a71b826a0a95446e91ee#diff-e87f4dd869f897586689ccfd0fa643d5L89
@tdb thanks again, let's summon @mpolednik for the merge :)

@Moyster @Moyster So, being the case in which I was always wanted for the script to that. Are you guys going to release a fix or update on the plug in?

Hi @Macpatto @Macpatto, you can just download the branch tdb pushed his fix to :
https://github.com/tdb/script.kodi.hue.ambilight/tree/fix-60
I have no powers here, I can't merge PR nor close issues, we need to wait mpolednik to merge :)

@Moyster awesome.. hopefully @mpolednik can't merge it. Thanks.


Misc bigblocks bugfixes

Found these whilst doing a second code review and investigating why the regression tests were failing.
Note: includes a patch to set softlimit == hardlimit by default.

Merged into my blocksize_fork_0.11 branch.


Container Build

It would be nice to have a containerised version of this (via Dockerfile or other means).

Hey @psharma04,
That would be a good idea but I do not have enough experience with Docker. If you do, a PR would be great!
In the meantime, you could use the ghosler-cli which is pretty straightforward to manage the app.
Thanks.

I currently have an Ubuntu VM running 24/7 for Ghosler. A Docker version would be awesome. See if any users can help 🙏.

Hi! @ItzNotABug

I have managed to get Ghosler in Docker, but there is a bug.
When I run "ghosler restart" it shows this error and does not work.

What process names are returned if you do pm2 ls?

What process names are returned if you do pm2 ls?

Nothing..

I am not sure if ghosler is installed in the docker container.
If it is, I am not sure how you got it started? (node app.js?)
The container must have access to the pm2 which manages the whole ghosler instance for restarts, updates, etc.

I am not sure if ghosler is installed in the docker container. If it is, I am not sure how you got it started? (node app.js?) The container must have access to the pm2 which manages the whole ghosler instance for restarts, updates, etc.

Ok, for now:

If I start with "Node app.js", Ghosler's Docker starts without problems, but if I do "pm2 List" it comes up empty.

If I start with "pm2 start app.js --name ghosler", the Ghosler Docker creates the pm2 process but the docker container stops automatically, it doesn't work.

Using node app.js is probably fine inside a docker container and you may not even need PM2 for this. Of-course I could be wrong due to my limited experience with Docker.

Ready. I got it through "pm2-runtime".
I will publish a tutorial this week in my Blog.
Ghosler can officially run on Docker :)

That's great 🚀!
Waiting for the article!

Hey @viriatusX,
I just checked it as I received it on email 🚀.
I'll add a step on README.md for this & keep this issue open anyway.
Thanks a ton.

Hey @psharma04, @viriatusX,
An official support for Docker x Ghosler is now supported out of the box.
Closing this!


Getting error: could not find Cargo.toml in /code or any parent directory

Hello,
I'm a newbie to this environment and technology. Pls help on the below issue.
When I am trying to follow this setup procedure, I've encountered some set of issues..
Resolving one by one, And currently I'm blocked at this error..
When I am running ./runagora --help (or) ./runqlog --help below is the error output.
error: could not find Cargo.toml in /code or any parent directory
./runagora: line 10: /home/ubuntu/graphprotocol-mainnet-docker/agora/target/release/agora: No such file or directory
Is Cargo.toml missing?? How do we get it? It seems some manifest file.
Note:- Pls check the 7th line in runagora file, Check if bash -c '(cd /code/agora; cargo build --release)' need to be changed to  bash -c '(cd /code; cargo build --release)'

You can skip installing both Agora and Qlog for now. They're not mandatory.

Unfortunately none of these commands are working either..

Extract queries since depends on qlog
As for the rest, you're supposed to use an actual IPFS Hash not that placeholder.
The reason why your CLI doesn't connect to the agent is probably because either:

agent is crash looping
firewall is blocking the cli


Heatmap support / example?

Hey, I'm trying to create a candlestick chart with a heatmap on it (like tensorcharts, bookmap tools). I've got the candlestick chart working fine but can't figure out how to add the heatmap to it. Any ideas?
To see what I mean, check out tensorcharts.com or bookmap.com.
EDIT: I found this https://codesandbox.io/s/m7q82r1x79 which is an example of 2 charts in 1 canvas. I haven't tried it yet but wonder if this canvas supports having a candlestick and heatmap chart in it, will give it a go.

Hey @TensorTom , I managed to get something working in react-highcharts BUT now trying to work out how to make it performant. Basically I create a chart and use type "heatmap", then I have 2 series in it, one is "candlestick" and the other is "heatmap" and then I add the data sets to it. Result is what I wanted - a heatmap series displaying on top of a candlestick that also zooms and pans.
Now I have 45k data points in the heatmap and when I try to zoom or pan, it's painfully slow, probably due to each data point being an SVG. I looked into a "boost" option which highcharts offers and it only improves the loading speed, not the panning. If I disable the heatmap, it's super fast. I've spent a bit researching into how to make highcharts as fast as possible (disable animations, labels, use GPU rendering, turbo threshold, boost threshold etc) but so far still slow to zoom/pan.
Someone recommended I try the hacky option of drawing a heatmap in a canvas and then lay it on top of the chart and just modify the size/position when the chart changes, but I'm not a fan of that solution at all. I think I need to find another chart library maybe?
My end goal here is just a fun personal project/learning experience, I want to make my own version of tensorcharts.com for myself where I can personalize it and add a few ideas I have (like ability to export image and upload to my discord server when I use a command).

I never really got into react so have not been able to use those nice charts :( I did recently get accepted to the TradingView SDK which I think can accomplish what you're doing.

I've actually got this project completely working now. I ended up using other charting libraries to accomplish it. It was quite hacky and a huge learning curve, but i'm happy with it now! Going to close this issue, completely forgot it was still open :)


Take a look at codecov for organizing test coverage

Feature Request
Desired behaviour
Noticed this neat feature which could let us organize tests by build stage/profile
https://docs.codecov.io/docs/flags

Done


Implement CI

Travis CI might be a good fit here. Would you mind wiring that up to this repo @khalidabuhakmeh?  (I don't have appropriate permissions).
I can handle the configuration after it's wired up.


kusion compile -o option produces error

Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
git clone https://github.com/KusionStack/konfig
cd konfig
kusion compile -w appops/guestbook-frontend/pre -o output.yaml

2. What did you expect to see? (Required)
compiled result in output.yaml file
3. What did you see instead (Required)
 ❌  KCL Runtime Error[E3M38] : Evaluation failure
      ---> File /Users/amy/work/open/konfig/appops/guestbook-frontend/pre/main.k:5
      5 |appConfiguration: frontend.Server { -> Failure
      attribute 'mainContainer' of Server is required and can't be None or Undefined

4. What is your KusionStack components version? (Required)

kusion version
releaseVersion: v0.7.2
gitInfo:
    latestTag: v0.7.2
    commit: fb996130c1e4a8a30da7c04e672433ea6c870384
    treeState: clean
buildInfo:
    goVersion: go1.17.13
    GOOS: linux
    GOARCH: amd64
    numCPU: 2
    compiler: gc
    buildTime: "2022-12-02 07:00:28"
dependency:
    kclvmgoVersion: v0.4.4-alpha.1
    kclPluginVersion: v0.4.1-alpha2

Thanks for reporting, this is a bug and the root cause as below:
Users can specify a stack dir as workDir, use flag -w, so kusion will preset o.Settings and o.Output which are default in ci-test directory. But the condition is extremely hard, need o.Settings, o.Output and o.Filenames all empty.
So I change a little, preset them separately according to each own condition.


 This is likely the result of Logseq's recent update not being supported by the theme

It would be nice if you guys could fix :)

Or at least, make the title have a better contrast with the ugly yellow.  I only see the usual horizontal collapsible.

Logseq does not have those tabs by default.
I can look into supporting the plugin if you can figure out which external plugin creates those yellow buttons.


transport_socket tap no tap data

If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via emailing
<EMAIL_ADDRESS>where the issue will be triaged appropriately.
Title: One line description
Description:

Describe the issue.
ef-tap-transport_socket.yaml

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: tap
spec:
  workloadSelector:
    labels:
      istio: ingressgateway
  configPatches:
  - applyTo: NETWORK_FILTER
    match:
      context: GATEWAY
      listener:
        portNumber: 8080
        filterChain:
          filter:
            name: "envoy.filters.network.http_connection_manager"
    patch:
      operation: MERGE
      value:
              name: envoy.filters.network.http_connection_manager
              typedConfig:
                '@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
                route_config:
                  name: test
                  virtual_hosts:
                  - name: test
                    domains:
                    - "*"
                    routes:
                    - name: testroute
                      match:
                        prefix: /
                      route:
                        cluster: productpage
  - applyTo: CLUSTER
    patch:
      operation: ADD
      value:
            name: productpage
            connect_timeout: 30s
            type: LOGICAL_DNS
            dns_lookup_family: V4_ONLY
            lb_policy: ROUND_ROBIN
            load_assignment:
              cluster_name: productpage
              endpoints:
              - lb_endpoints:
                - endpoint:
                    address:
                      socket_address:
                        address: productpage.istio
                        port_value: 9080
            transport_socket:
              name: envoy.transport_sockets.tap
              typed_config:
                "@type": type.googleapis.com/envoy.extensions.transport_sockets.tap.v3.Tap
                common_config:
                    static_config:
                      match_config:
                        http_request_headers_match:
                          headers:
                            - name: ":path"
                              string_match:
                                contains: "productpage"
                      output_config:
                        max_buffered_tx_bytes: 2048
                        streaming: true
                        sinks:
                          - format: PROTO_TEXT
                            file_per_tap:
                              path_prefix: /var/lib/istio/data/
                transport_socket:
                  name: envoy.transport_sockets.raw_buffer

[optional Relevant Links:]

Any extra documentation required to understand the issue.

cc @mattklein123 @daixiang0

I am not familiar with Istio, could you help provide an Envoy config?
/cc @xu1zhou has some experience with Istio tap.

Tap works fine for me with format: PROTO_BINARY. Hope you make sure the path_prefix is mount from host correctly.  You can also enable debug mode for envoy for more detail.


syscall/js: possibility of using String.prototype.* methods on strings

With GopherJS, it was possible to call the String.prototype.toLowerCase method on a JavaScript String:
https://gopherjs.github.io/playground/#/ekZpm7tuW4
It's possible I'm overlooking something trivial, but this doesn't seem possible with syscall/js API of WebAssembly. Consider the same program modified to use syscall/js:
package main

import (
	"fmt"
	"syscall/js"
)

func main() {
	body := js.Global().Get("document").Get("body")

	fmt.Println(body.Get("nodeName"))
	fmt.Println(body.Get("nodeName").Call("toLowerCase"))
	fmt.Println(body.Get("nodeName").Get("toLowerCase").Invoke())
}

Its output with Go 1.13.4 is:
BODY
panic: syscall/js: call of Value.Get on string

goroutine 1 [running]:
syscall/js.Value.Get(0x7ff800010000000e, 0x34d12, 0xb, 0x7ff800010000000e)
	/usr/local/go/src/syscall/js/js.go:252 +0x39
main.main()
	/tmp/tmp.CQimpW7L/main.go:12 +0xb

Depending on whether a JavaScript String type is considered a "JavaScript object" or not, this may be consistent with js.Value.Get documentation, which says:

Get returns the JavaScript property p of value v. It panics if v is not a JavaScript object.

I'm wondering if it's possible to use toLowerCase with syscall/js API? If not, should it be possible?
/cc @neelance

Workaround: you can call JS String methods via the String.prototype itself, i.e. in JS:
String.prototype.toLowerCase.call("FOO")

In Go:
js.Global().Get("String").Get("prototype").Get("toLowerCase").Call("call", js.ValueOf("FOO"))

I have used this in #251 in order to workaround this problem.

If not, should it be possible?

I think it should. The current API relies on Reflect.get which only works on objects, and therefore fails on normal strings. With a little bit of code, and now with the argument spread syntax available, I was able to make it work.
fmt.Println(body.Get("nodeName").Call("toLowerCase"))
fmt.Println(body.Get("nodeName").Call("charAt", 3))

Not pasting the code here. But I can send a CL if Richard is okay with it.

This is because of JavaScript's autoboxing. string and String are two distinct types. The first is the primitive type, the second one is the boxed object type and only the second has methods. Autoboxing makes it so the expression
"foo".toUpperCase()

gets interpreted as
new String("foo").toUpperCase()

I do not yet see why syscall/js should emulate autoboxing. Is there any proper use case? In my opinion, for the examples above the proper solution is to use the .String() method to get the Go string and then use Go's functions for manipulating the string.

Thanks for the explanation.

I do not yet see why syscall/js should emulate autoboxing.

I agree, I don't think that would be a good change.
It should just be possible to use JavaScript's toLowerCase explicitly. It sounds like it is possible with one of these two ways:
var str string = "FOO"

js.Global().Get("String").New(str).Call("toLowerCase")

// or

js.Global().Get("String").Get("prototype").Get("toLowerCase").Call("call", str)

So nothing needs to be done. I'll close this if there aren't objections.

It looks like there are no objections. ping @dmitshur.


Disable warpReduce under the LTS driver

Allows all HF Float32 Training accuracy models to pass under LTS driver and upstream PyTorch.
cc #1336

What's the issue to fix it on LTS?

#1336 linked above

#1336 linked above

Thanks, I thought that issue is for this PR, and not for the future investigation.

Still fails after the fox127 upgrade so I'm going to merge this.


Using AggregationFunction "AVG" for "views" metrics, but should use SUM

In the getting_started notebooks, AggregationFunction "AVG" is used for "views" metrics, but should use SUM.

Will fix in the current workshop refactor I'm doing now. Thanks for the heads up!

Will fix in the current workshop refactor I'm doing now. Thanks for the heads up!

Thanks. We should fix 2 notebooks "3.GettingStartedWithLiveData.ipynb" and "4.BacktestingWithHistoricalData.ipynb".

Thanks. We should fix 2 notebooks "3.GettingStartedWithLiveData.ipynb" and "4.BacktestingWithHistoricalData.ipynb".


Compilation error while running Nim ->wasm

Trying to run Nim code in wasm
When I run nim c -d:useRealtimeGC -d:release -d:emscripten --out=index.html hello.nim
I gives me error
Hint: system [Processing]
Hint: hello [Processing]
CC: hello
CC: system
Error: execution of an external compiler program 'emcc -c -w -s WASM=1 -s 'BINARYEN_METHOD="native-wasm"' -Iemscripten -O3  -I/usr/lib/nim -o /vagrant/nimcache/hello.o/vagrant/nimcache/hello.c' failed with exit code: 32512

/bin/sh: 1: emcc: not found

emcc -v
INFO:root:generating system asset: is_vanilla.txt... (this will be cached in "/home/achala/.emscripten_cache/is_vanilla.txt" for subsequent builds)
INFO:root: - ok
INFO:root:(Emscripten: Running sanity checks)
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.16
clang version 6.0.1  (emscripten 1.38.16 : 1.38.16)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/achala/emsdk/clang/e1.38.16_64bit
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Candidate multilib: .;@m64
Selected multilib: .;@m64
INFO:root:(Emscripten: Running sanity checks)

 nim -v
Nim Compiler Version 0.19.0 [Linux: amd64]
Compiled at 2018-09-26
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: f6c5c636bb1a1f4e1301ae0ba5a8afecef439132
active boot switches: -d:release

How to solve this issue?TIA

It looks like emscripten is now also needed to compile nim to web assembly
see the instructions here: https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html
Pull requests updating the documentation are welcome!

I have installed emscripten according to the above link itself. It's newest version (emcc version I have mentioned above)
I'm running on Linux system

So I tried the instructions on a VM Linux box to make sure nothing on my local system may be interfering with the instructions.
$ nim --version
Nim Compiler Version 0.19.0 [Linux: amd64]
Compiled at 2018-09-26
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: f6c5c636bb1a1f4e1301ae0ba5a8afecef439132
active boot switches: -d:release

$ emcc --version
emcc (Emscripten gcc/clang-like replacement) 1.38.16 (commit 7a0e27441eda6cb0e3f1210e6837cae4b080ab4c)
Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt)
This is free and open source software under the MIT license.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.1 LTS
Release:	18.04
Codename:	bionic

When I ran the build command
$ nim c -d:useRealtimeGC -d:release -d:emscripten --out=index.html hello.nim
Hint: used config file '/home/developer/.choosenim/toolchains/nim-0.19.0/config/nim.cfg' [Conf]
Hint: used config file '/home/developer/Projects/OpenSource/compile-to-web/Nim/nim.cfg' [Conf]
Hint: system [Processing]
Hint: hello [Processing]
CC: hello
CC: stdlib_system
Hint:  [Link]
INFO:root:generating system library: dlmalloc.bc... (this will be cached in "/home/developer/.emscripten_cache/asmjs/dlmalloc.bc" for subsequent builds)
INFO:root: - ok
INFO:root:generating system library: libc.bc... (this will be cached in "/home/developer/.emscripten_cache/asmjs/libc.bc" for subsequent builds)
INFO:root: - ok
INFO:root:generating system library: compiler-rt.a... (this will be cached in "/home/developer/.emscripten_cache/asmjs/compiler-rt.a" for subsequent builds)
INFO:root: - ok
INFO:root:generating system library: wasm-libc.bc... (this will be cached in "/home/developer/.emscripten_cache/asmjs/wasm-libc.bc" for subsequent builds)
INFO:root: - ok
INFO:root:generating system asset: generated_struct_info.json... (this will be cached in "/home/developer/.emscripten_cache/asmjs/generated_struct_info.json" for subsequent builds)
INFO:root: - ok
Hint: operation successful (12382 lines compiled; 65.484 sec total; 13.195MiB peakmem; Release Build) [SuccessX]

I'd try making sure that emsdk_env.sh has been sourced in the same terminal as the nim build (https://kripken.github.io/emscripten-site/docs/tools_reference/emsdk.html#how-do-i-change-the-currently-active-sdk-version)

You mean emscripten file should be there in inside the Nim ??
I have activated all emsdk tools n it is in path.
But error not solved

They can be in separate folders.
$ which nim
/home/developer/.nimble/bin/nim

$ which emcc
/home/developer/Bin/emsdk/emscripten/1.38.16/emcc

I'd try the solutions from:

https://stackoverflow.com/questions/30776583/emcc-command-does-not-recognized
https://stackoverflow.com/questions/47395391/emscripten-installation-error-emcc-no-such-file-or-directory


Git LFS for the model file

Good Day @BBillot ,
Thank you for releasing the source code and model for SynthSeg.
I am interested to try it out, but experience difficulties getting the model SynthSeg.h5 file that you have provided.
When I perform a git lfs pull, I am told that...
batch_response: Git LFS is disabled for this repository
error: failed to fetch some objects from 'https://github.com/BBillot/SynthSeg.git/info/lfs'

A solution to this would be greatly appreciated!
Thank you very much!

Dear Russ Chua,
just out of curiosity, doesn't it work if you simply clone the repo ?
I don't think I used git lfs to upload the model, so that would explain why
git lfs doesn't work.
Best regards,
Benjamin
Le jeu. 2 juil. 2020 à 11:04, Russ Chua<EMAIL_ADDRESS>a écrit :

Good Day @BBillot https://github.com/BBillot ,
Thank you for releasing the source code and model for SynthSeg.
I am interested to try it out, but experience difficulties getting the
model SynthSeg.h5 file that you have provided.
When I perform a git lfs pull, I am told that...
batch_response: Git LFS is disabled for this repository
error: failed to fetch some objects from 'https://github.com/BBillot/SynthSeg.git/info/lfs'
A solution to this would be greatly appreciated!
Thank you very much!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BBillot/SynthSeg/issues/2, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHTKEZCLBDTYGSGC6BDU3C3RZRLRHANCNFSM4OOXH5ZA
.

Dear Benjamin,
Thanks for the swift response. Yeah it doesn't work if I simply clone the repo.
I get the following error:
OSError: Unable to open file (file signature not found)
and the model size is only 8 kb.
Alternatively, could you host the weights on a file sharing site that I could do a wget from?
Thanks so much!

Okay it should be fixed now.
I successfully cloned the repository and made it work (you'll see that the
model is not 8kb anymore...)
It turned out to be an upload issue, as my network is not as powerful as
the one I had at work, and it keeps playing me little tricks.
Let me know if you have any other issues,
Benjamin.
Le jeu. 2 juil. 2020 à 11:47, Russ Chua<EMAIL_ADDRESS>a écrit :

Dear Benjamin,
Thanks for the swift response. Yeah it doesn't work if I simply clone the
repo.
I get the following error:
OSError: Unable to open file (file signature not found)
and the model size is only 8 kb.
Alternatively, could you host the weights on a file sharing site that I
could do a wget from?
Thanks so much!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BBillot/SynthSeg/issues/2#issuecomment-652933809, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHTKEZCFLHA4LEW45WZH6BDRZRQVNANCNFSM4OOXH5ZA
.

Thanks for updating your repo! It works now!


Package 'unittest' is depended on from both sources 'sdk' and 'hosted

This issue was originally filed by<EMAIL_ADDRESS>
What steps will reproduce the problem?

Create a pubspec.yaml for a library like:
  name:  nigori
  description:  Secrets in the cloud

  dependencies:
    unittest: { hosted: unittest }
Depend on it in a application pubspec.yaml like:
  name:  PassgoriExtension
  description:  Password storage using Nigori

  dependencies:
    js: { hosted: js }
    nigori:
      git: file:///home/drt24/dart/nigori/
On saving the second pubspec.yaml the following error is produced by pub install:
  Running pub install ...
  Pub install fail, Resolving dependencies...
  Package 'unittest' is depended on from both sources 'sdk' and 'hosted'.

What is the expected output? What do you see instead?
I expect dependencies to be correctly resolved. Instead they fail. Changing unittest: { hosted: unittest } to unittest: { sdk: unittest } results in the same error message. Changing js: { hosted: js } to js: { sdk: js } results in:
  Running pub install ...
  Pub install fail, Resolving dependencies...
  Entry null is not a supported type.
What version of the product are you using? On what operating system?
Dart Editor version 0.2.6_r15355
Dart SDK version <IP_ADDRESS>_r15355
$ uname -a
Linux 3.2.0-34-generic #53-Ubuntu SMP Thu Nov 15 10:48:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID:	Ubuntu
Description:	Ubuntu 12.04.1 LTS
Please provide any additional information below.
I expect it to just work but failing that something in the error message indicating where the conflicting constraints on sources are coming from would greatly aid debugging.

This issue has been moved to dart-lang/pub#332.


Task/#144 add multiselect to field cluster

#144
Add option to combine clusters in field cluster selector

The URL accept the multi-selection of fields and the queries are processed properly.


API errors handling

In file lib/templates/middleware/context.js we have condition that check if the fields from API response exists, but in case we have e.g. 404 error - the response will be undefined and calling response.data will crash function callee.
Suggested solution: replace if (response.data && response.data.page) with if (response && response.data && response.data.page). This way the app will render error page if it exists, not the nuxt call stack.

Thank you for that 👏