Process interrupt ignored when using cli-progress

When using cli-progress, if you attempt to interrupt the process using ctrl+c the command is ignored until the process fully completes.
Reading through the readme I may have missed how this is supposed to be handled, but I do not see any config options to specify how to handle a kill request from a user.

an option called gracefulExit has been added to v3.11 (see https://github.com/npkgz/cli-progress/blob/master/CHANGES.md) which restores the terminal state on SIGINT/SIGTERM

even using this option I still face the same behaviour

set gracefulExit: false to restore the "old" behaviour. i've to check the node.js docs regarding the SIGINT listener

from the docs

'SIGTERM' and 'SIGINT' have default handlers on non-Windows platforms that reset the terminal mode before exiting with code 128 + signal number. If one of these signals has a listener installed, its default behavior will be removed (Node.js will no longer exit).

i wasn't aware of this side effect. sry!
the question is how to solve this (putting and process.exit on the end of the listener may avoids users to add their own actions..)

set gracefulExit: false - this will be the default value in the upcoming hotfix

I use cli-progress 3.12.0
I tried:
const bar1 = new cliProgress.SingleBar({gracefulExit: true}, cliProgress.Presets.shades_classic);

and
const bar1 = new cliProgress.SingleBar({gracefulExit: false}, cliProgress.Presets.shades_classic);

both don't kill the node process after hitting ctrl+c in bash (the progress continues to run and the node process continues to work).


multi_gpu_model does not work with sparse input layer

Describe the current behavior
Using keras.utils.multi_gpu_model on a model with sparse input layer results in:
AttributeError: 'SparseTensor' object has no attribute 'device'

Describe the expected behavior
Should work or throw a proper error message.
Code to reproduce the issue
import keras
import numpy as np
import tensorflow as tf

X = np.array([[1, 2, 3, 4], [1, 2, 3, 4], [1, 2, 3, 4], [4, 2, 3, 4]])
y = np.array([0, 0, 0, 1])

input_layer = keras.layers.Input((4,), sparse=True)
output_layer = keras.layers.Dense(1)(input_layer)
model = keras.models.Model(input_layer, output_layer)

parallel_model = keras.utils.multi_gpu_model(model)
parallel_model.compile('loss=binary_crossentropy', optimizer='adam')

parallel_model.fit(X, y)

Other info / logs
The main issue is SparseTensor does not have a device property. When removing the line that calls x.device, it errors when trying to convert a SparseTensor to Tensor in order to perform the slice.

Have a somewhat working fix here: https://github.com/jmbannon/keras/commit/3bb9652f57d8d746164298ea33b59f2105e3181d
However, GPUs do not have a kernel for sparse_slice. So I have to set allow_soft_placement=True in order to get that piece ran on CPU.


Use postcss instead of rework

Switching CSS parser as discussed in #50 (isn't really related to #50 though).

Mh I'm not sure why the build is failing, maybe some dependency changed? The tests do not seem to start. I can reproduce this on a fresh install on my PC :/


agent: Simplify code using TryFrom trait

Simplified parse_input() drastically by implementing TryFrom for
InputPayload and KeyProviderInput.
Also refactored error handling and added lots of unit tests.
Signed-off-by: James O. D. Hunt<EMAIL_ADDRESS>

I think there is more opportunity for further refactoring (and additional tests), but this is a start :smile:

@jialez0 - Thanks for reviewing. I've just updated the branch further so that now un_wrap_key() calls InputPayload::try_from() rather than parse_input(), as that is more idiomatic and consistent with the rest of this branch.

@sameo, @fitzthum - Please could you tal?

Branch updated with the following changes:

global: Added new ERR_ANNOTATION_NOT_BASE64 and ERR_KBC_KBS_NOT_BASE64 errors.
InputPayload: Simplified try_from().
Dc: Added in check for valid URI (and new unit tests).
tests: Improved failure messages.
Fixed a potential crasher bug if the Dc parameters vector was empty (I've added a unit test).

I've also found a problem: as noted above the code now checks the KBS URI to make sure it looks valid. I've added a few unit tests but then I found https://github.com/confidential-containers/attestation-agent/tree/main/src/kbc_modules/eaa_kbc#usage which includes:

Set KBC_NAME::KBS_URI pair in the following format:
eaa_kbc::<IP>:<PORT>

e.g: EAA KBS address is <IP_ADDRESS>:1122 :
eaa_kbc::<IP_ADDRESS>:1122

The problem is eaa_kbc is not a valid URI scheme since schemes can only use alphabetics, +, - and . (see https://datatracker.ietf.org/doc/html/rfc3986#section-3.1).
Can I just go ahead and "fix" that document so the scheme becomes eaa-kbc? If so, I'll also add unit tests for eaa_kbc and eaa-kbc.

The problem is eaa_kbc is not a valid URI scheme since schemes can only use alphabetics, +, - and . (see https://datatracker.ietf.org/doc/html/rfc3986#section-3.1).
Can I just go ahead and "fix" that document so the scheme becomes eaa-kbc? If so, I'll also add unit tests for eaa_kbc and eaa-kbc.

Hmm. That would apply to all KBCs implemented thus far. We used underscores because Rust modules generally use snake casing and didn't really consider URL validity. We could, but users should be very aware of this change because their configurations will need updating. @fitzthum WDYT?

It would be a real shame if we didn't comply with the URI spec though :cry:

We're expectingKBC_NAME::KBS_URI. I think only the second half is supposed to be the URI. KBC_NAME isn't the scheme so I think its format may be fine. That said, we aren't actually providing a URI in KBS_URI in that example because it has no scheme.
Originally the idea with a URI was to differentiate KBCs that point to external resources like KBS and KBCs that point to internal resources like files. We ended up hardcoding the path for our two file-based KBCs so this feature wasn't given much scrutiny. Based on my initial understanding, we might want to update the KBC_URI to have a scheme.
It's also slightly weird that the KBS_URI is pointing to localhost in that example. That would seem to suggest that the KBS is running inside the enclave, which is odd.

Hi @fitzthum - thanks for explaining the context here. We still have a problem though because a URI requires a scheme, so <IP_ADDRESS>:1122 is "invalid" as there is no scheme prefix, hence some questions:

Do we / can we assume a default scheme to allow the URI to be validated?
<IP>: Do we mean IPv4 and IPv6?

I'd like to be able to validate the URI but without some sort of scheme we can't rely on standard facilities.
/cc @sameo.

/cc @jialez0

@jodh-intel I'm sorry that we didn't consider the URI format specification before. As you said, if we need to verify the URI here with the standard facilities, maybe we need to add an appropriate scheme prefix to socket address such as <IPv4/v6>:<port>, but I don't know the URI format specification, so I'm not sure what kind of scheme prefix it should be.

I think this is the address for the KBS grpc endpoint. grpc is implemented over http2 if I remember correctly (but please check). If this is true, then an https:// scheme should work:   https://IPv4:PORT/ (not sure how ipv6 works in a URI).

Branch rebased to resolve the conflict introduced by #31.
Thanks for the comments, but I'm not convinced about the URL validation. It sounds like the topic needs further discussion to me, so I've removed that part of the branch. I'm happy to add it at a later date.

Fixed clippy test code nits.

All green ;)


How to use Gammatone IRM to synthesis the original signal?

I use function synthesis_speech in synthesis_speech.py to systhesis the original signal .
When i get the IRM which shape is (64, frame_num) , the code in the python file is
masked_abs = np.abs(stft[:win_len//2+1]) * mk[:, i]
using stft multiply the mask. It do not match this axis.  So the python file is only used to systhesis those masks extracted by stft, but not Gammatone filter?

我在Synthesis_speech.py中使用函数Synthesis_speech来合成原始信号。
当我得到形状为（64，frame_num）的IRM时，python文件中的代码
masked_abs = np.abs(stft[:win_len//2+1]) * mk[:, i]
使用stft乘以掩码。它与该轴不匹配。因此，python文件仅用于合成由stft提取的那些蒙版，而不用于合成Gammatone过滤器吗？

My problem is the same as yours. How do you solve it?

我也是，怎么弄

是不是应该使用伽马通域的幅值谱*掩蔽值irm呢？

Please use the code in speech_utils.py and feature_extractor.py. The rest files are used when I developed this project.
In speech_utils.py, coch_synthesis is used for the maskes defined on the cochleagram (extracted with gammatone filterbanks). While, synthesis_speech is used for the makes defined on the STFT domain.


Test to check the capacity of volume using AdminCLI

Test steps:

Create VMDKs of different unit GB, TB and MB using vmdk_ops.createVMDK()
Check the capacity of volume using AdminCLI
command used: /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls -c volume capacity
Compare that both sizes are same.

will be taken care by #831


Time + 1.month is not working like expected

Bug Report
The following test fails with crystal 1.0.0-dev [89f0f8389] and stdlib 037a1ec96890bef667488cfa07625c9712d228b2 under MacOS in CET timezone.
(Time.local(2021, 7, 1) + 1.month).should eq Time.local(2021, 8, 1)

it produces 2021-07-31. The following test succeeds:
(Time.local(2021, 6, 1) + 1.month).should eq Time.local(2021, 7, 1)

Works for me and play.crystal-lang.org:
https://play.crystal-lang.org/#/r/bgo1

@asterite The time zone is important. Reproducing example:
Time.local(2021, 7, 1, location: Time::Location.load("CET")).shift(months: 1) # => 2021-07-31 00:00:00.0 +02:00 CET


The efficiency of sess.run

Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:

It must be a bug or a feature request.
The form below must be filled out.
It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
TensorFlow installed from (source or binary):
TensorFlow version (use command below):
Python version:
Bazel version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:
Exact command to reproduce:

You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

use Tensorflow for Image detection and classification;
For a single image ,However small is it , the sess.run() method cost  above 10ms
But a batch(batch num = 100) input, the sess.run() cost less than 200ms,  2ms per image
Why? Can I improve the efficiency for single Image input??

This is better suited for stackoverflow.
Small batches have worse performance because of how modern hardware architecture is structured. There are sometimes tricks to speed up small batches, ie, by using libxsmm which has some integration with TensorFlow.

As you said， single image batches on CPU, it will have to load neural net parameters into cache for each image， so the loading process consume too much time ?
But  in Machine Learning project we  usually load the neural net parameters(or trained model) at the very beginning for only once,  than we process each vali sample.
Can tensorflow load the weights Once? Cause sometimes our model can be small and won't take much cache

@juventi this is a general issue not specific to TensorFlow -- you get better utilization when dealing with large batches. For instance large matrix multiply can be 10x more efficient, in terms of ops/sec than small matrix multiplies. It has to do with underlying hardware organizing computation more efficiently, ie, by using SRAM cache, this is not something you can directly control from TensorFlow client side.


[Question] Best approach to keep track and access assets dependencies for SASS/SCSS files

Dear all,
In order to better integrate Sprockets with Nanoc (a static site generator) I need to keep track and access the dependencies of SASS/SCSS files in order to update Nanoc dependency graph.
I've been trying to find a way to do that without success...
Usually to access an asset you do as follow:
    environment.css_compressor = params[:css_compressor]
    environment.js_compressor  = params[:js_compressor]

    if asset = environment[filename]
        asset.to_s
    end

While asset.to_s gives you the content of the generated asset, is there a way to access its associated dependencies (e.g. the partials included in it, etc.) ? By dependencies I mean the paths to the dependencies.
Thanks for your help.

Hi @josh, In on of my projects nanoc-sprockets3 I was using
asset = environment[filename]
asset.metadata[:dependency_paths] #=> Set.new([ paths ])

in order to access dependency paths from my assets.
It appears that in Sprockets 3.0.0.beta.6 this was working but then somewhere between beta7 and beta8 the property dependency_paths disappeared from asset.metadata.
Could you please tell me how do I access assets dependency paths in the new beta of Sprockets 3.0.0 ?
Thanks for your help,
Best,
Rémi

Ah, sorry, my bad, try just asset.metadata[:dependencies]. Though, I think I'd like to add something specifically for sass deps like asset.metadata[:sass_imports], let me open a new issue for that.

Hi @josh, I did try asset.metadata[:dependencies] but unlike asset.metadata[:dependency_paths] the set is always empty :/

Hi @josh, I did try the asset.metadata[:dependencies] but unlike asset.metadata[:dependency_paths] it returns file-digest, right ? not path. Is there a way to map file-digest to path ?

@barraq you'll want to filter out any non-file-digest ones and just strip that prefix. Though, thats why I would like to add back https://github.com/sstephenson/sprockets/issues/709 with just plain old filenames.

@josh I need to get the dependencies for both Javascripts and stylesheets. Adding back #709 (i.e. adding back asset.metadata[:sass_imports]) will only address stylesheets.
Tell me if I am wrong but if I want to get all the dependencies for both Javascript and Stylesheets I will have to do it using `asset.metadata[:dependencies]. Right ?
Also another question, when looking at your documentation (from the README) regarding the metadata, you say that metadata[:required] returns a set of String Asset URIs that the Bundle processor should concatenate together. Are you talking about the sprockets require directives ? Cause I tried to print this value for an asset containing:
//= require 'bootstrap-sass/js/affix'
//= require 'bootstrap-sass/js/carousel'
//= require 'bootstrap-sass/js/dropdown'

$(function() {
   $('#main-header').affix({});
   $('.dropdown').dropdown();
   $('.carousel').carousel();
});

and metadata[:required] for this asset is always empty :/


Fix build broken by webapp merge

:white_check_mark: Build jmxtrans 346 completed (commit https://github.com/jmxtrans/jmxtrans/commit/1e4036d29c by @gquintana)


_size=255 and bubble sort

Whatever the problem, bubble sort is usually not the answer.  Hopefully I haven't done anything wrong, but I bench marked an int16_t version of RunningMedian on an Arduino Uno., and I compared bubble sort (with early termination) to insert sort and quick sort.  With random data, _size=255 and no oversampling, insert sort was almost 30 times faster than bubble sort and almost 5 times faster than quick sort.   (With significant oversampling, it is likely that quick sort is the better choice.)
void RunningMedian::sort()
{
	uint8_t i;							// loop index
	uint8_t j;							// loop index
	uint8_t t;							// swap buffer

	for(i=1;i<_cnt;i++)
	{
		t=_p[i];
		for(j=i;j>=1&&_ar[t]<_ar[_p[j-1]];j--)
			_p[j]=_p[j-1];
		_p[j]=t;
	}
	_sorted=true;
}

Hi Khalinda,
I am aware of that,
In previous versions of RunningMedian, bubblesort was fast enough as the maximum set was at most 19 elements.
With the change that the internal dataset may become up to 250 something bubblesort is indeed not the way to go.
I did not taken time to investigate which other sort is best it is still on my TODO list.
The first issue is that one can sort on two moments

when an element is added
when the median is requested (current choice)

The second issue is that when the internal buffer is full you want to know which value is removed.
As you also know which value  is added you need only to shift elements in between, either up or down.
simplified example:
assume remove 16 and add 11

before add               [  1  3  4  5  7   8  9  10  12  14  15  16  17  18  20 ]
remove 16                [  1  3  4  5  7   8  9  10  12  14  15  __  17  18  20 ]
shift until 11 fits in   [  1  3  4  5  7   8  9  10  __  12  14  15  17  18  20 ]
add 11 done              [  1  3  4  5  7   8  9  10  11  12  14  15  17  18  20 ]

As the shift can go upwards an downwards a bidirectional insertion sort is probably the way to go IF you do the sorting after each addition. IF you do the sorting last minute it depends on how much new values are added. Is this low then the array is nearly sorted, but if there are many one can consider it unsorted and quicksort might be the thing.
Feel free to create a pull request that solves the issue.

Hi Khalinda,
I am aware of that,
In previous versions of RunningMedian, bubblesort was fast enough as the maximum set was at most 19 elements.
With the change that the internal dataset may become up to 250 something bubblesort is indeed not the way to go.
I did not taken time to investigate which other sort is best it is still on my TODO list.
The first issue is that one can sort on two moments

when an element is added
when the median is requested (current choice)

The second issue is that when the internal buffer is full you want to know which value is removed.
As you also know which value  is added you need only to shift elements in between, either up or down.
simplified example:
assume remove 16 and add 11

before add               [  1  3  4  5  7   8  9  10  12  14  15  16  17  18  20 ]
remove 16                [  1  3  4  5  7   8  9  10  12  14  15  __  17  18  20 ]
shift until 11 fits in   [  1  3  4  5  7   8  9  10  __  12  14  15  17  18  20 ]
add 11 done              [  1  3  4  5  7   8  9  10  11  12  14  15  17  18  20 ]

As the shift can go upwards an downwards a bidirectional insertion sort is probably the way to go IF you do the sorting after each addition. IF you do the sorting last minute it depends on how much new values are added. Is this low then the array is nearly sorted, but if there are many one can consider it unsorted and quicksort might be the thing.
Feel free to create a pull request that solves the issue.

Investigation done, insertionSort is way faster and compared to quicksort (at least the recursive one) more memory friendly.
Solved in c3de2e1  Release 0.3.2

Investigation done, insertionSort is way faster and compared to quicksort (at least the recursive one) more memory friendly.
Solved in c3de2e1  Release 0.3.2


question: how debug levels are supposed to work?

I want to investigate Vault bootstrap procedure.
tried to modify TQVaultAE.exe.config:
DebugEnabled True
ARCFileDebugLevel 3
DatabaseDebugLevel 3
ItemDebugLevel 3
ItemAttributesDebugLevel 3
But tqdebug.txt file is missing, and log file still contains only string
2019-10-29 02:57:55,113 [1] INFO  TQVaultAE.GUI.MainForm [(null)] - TQVaultAE Initialization !

So it is impossible for builds downloaded from "release" section?
Can I download debug build or I need to compile it myself?

The DebugEnable option is for "debuging".
It's purpose is to facilitate code behavior tracking by programmers during code tuning of specific parts. It's not meant to be an end user option.
There is no debug build to download but you can easily make a debug build locally by cloning the repository. You will have to compile it yourself.

As discussed, releases are compiled in release mode to help with performance. This also disables the debug hooks. Feel free to clone and compile the solution yourself.


Can i change buttons' bg color?

Hi, is it possible to change the "Play" button and other buttons' color? I just don't like them to be green and the text in it is light gray which isn't much visible. How can I change it?

Which thème is that?

Which theme is that?

"DribbblishDynamic" Dark
Changing secondry_fg and main_fg doesn't do anything at all.

Those buttons shouldn't stay green

@ArashMaghsoodi make sure you installed the theme correctly


Open Graph scraping of Minified HTML

Looks like there may be a Facebook Open Graph scraper parsing issue with minified HTML; likely a regression https://developers.facebook.com/bugs/2025528171065799/

I can verify that Facebook has fixed this bug.


Autosave files after search-replace

VSCode Version: 1.9.1
OS Version: 10.12.13

Steps to Reproduce:

Go to search panel, search replace something in multiple files
The files are not autosaved, you have to open them and save them manually that the changes have an impact

@andi1984 the files should all open for you automatically, if not please file a bug on that particular issue.

@andi1984 Can you please confirm the behaviour in above comment?

@sandy081 I can confirm the behaviour in @bpasero comment. I don't know why it wasn't or I thought it wasn't the case when I filed the bug. Sorry! Nevertheless_ thx for the hint with auto-saving. I will enable this. I close this issue then.

I would be nice to have an option for files.autoSave: onSearchAndReplace

It would be nice if seach-replace has an option (like a checkbox) “autosave”， I don't want to autosave files except some search-replace purpose.


format the "generation" subtitles

Format the "generation" subtitles so they all have the same spacing.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Pretty basic but formatting was inconsistent.


proposed edits

Here are my proposed edits.
In section , Publishing Intersmash Library artifacts, you list only 1 archive this is publish to maven repo.  Aren't there others as well.  If so they should be listed as well.

Here are my proposed edits.
In section , Publishing Intersmash Library artifacts, you list only 1 archive this is publish to maven repo. Aren't there others as well. If so they should be listed as well.

Thanks Rebecca. Your changes LGTM but I'd leave the final part as is. the e.g.: before the intersmash-tools-core artifact id makes it quite clear about it being an example, IMO.
WDYT?

ok

Thanks for your review @rsearls !


aws-es-kibana on Docker hub

Hi,
It would be usefull to push regulary aws-es-kibana on your own Docker hub.
Indeed, I use aws-es-kibana with Jenkins. I would like to have automaticaly fresh aws-es-kibana without manual action.
To day, I build docker aws-es-kibana on my computer and push it on my own docker hub. Jenkins use this image to push on kibana. It's not very clean.
Thanks for advance

Thanks @nicodeur, have done that. aws-es-kibana is now available from Dockerhub. Added to documentation in README.md as well


decision_function instead of predict_proba

Several non-probabilistic estimators, such as SVMs in particular, can be used with uncertainty sampling. Scikit-Learn estimators that support the decision_function method can be used with the closest-to-hyperplane selection algorithm [Bloodgood]. This is actually a very popular strategy in AL research and would be very easy to implement.

if you just want to use the closest-to-hyperplane selection with a linear SVM, you could also write yourself a query strategy like:
def closest_to_hyperplane_sampling(svm: BaseLearner, X_pool):
y = svm.estimator.decision_function(X_pool)
w_norm = np.linalg.norm(svm.estimator.coef_)
dist = y / w_norm
query_idx = np.argmin(np.abs(dist))
return np.array([query_idx]), [X_pool[query_idx]]

This is great, thank you for the tip. Did not realize how simple it would be.

I am very curious why you normalize the confidence scores. I can't see how applying a linear scaling factor of (1 / w_norm) to the y vector would change the return value of the function.

yes you are right. you do not need this step.

Thought so. Cheers!


”Andreești”, ”Frasin”, "Valea Deșului", "Vladimir" are listed in the drop-down menu

Description:
”Andreești”, ”Frasin”, "Valea Deșului", "Vladimir" are listed in the drop-down menu alongside their corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Andreești"

Expected results
The location appears in the drop-down menu as "Sat Andreești, GORJ (Vladimir)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Frasin"

Expected results
The location appears in the drop-down menu as "Sat Frasin, GORJ (Vladimir)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Valea Deșului"

Expected results
The location appears in the drop-down menu as "Sat Valea Deșului, GORJ (Vladimir)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.


fix: lint errors

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[analyzer] broken import suggestions for package:collection

Hi, not sure if this is limited to the collection package, but that's the one I have a stable reproduce for.

install the package
create a.dart that imports import 'package:collection/collection.dart';
create b.dart with

void fn() {
  [].mapIn // <-- continue typing "mapIndexed" here
}

expected: code completion suggests package:collection/collection.dart and there is only one entry for mapIndexed.
result:

None of those files re-exports collection and applying any code completion suggestion does not work.
Dart SDK version: 3.5.1 (stable) (Tue Aug 13 21:02:17 2024 +0000) on "macos_arm64"

@DanTup fyi, not sure if this only happens in VS Code

There's an existing issue for this at https://github.com/dart-lang/sdk/issues/56320 (which by coincidence, I was just looking at earlier because I saw it numerous times this morning!).


Refactor ledger correction code and insert into revocation error handling

Addresses issue https://github.com/hyperledger/aries-cloudagent-python/issues/1868

Codecov Report

Merging #1892 (a655913) into main (d407c48) will decrease coverage by 0.10%.
The diff coverage is 7.95%.

@@            Coverage Diff             @@
##             main    #1892      +/-   ##
==========================================
- Coverage   93.79%   93.69%   -0.11%
==========================================
  Files         539      539
  Lines       34084    34127      +43
==========================================
+ Hits        31970    31975       +5
- Misses       2114     2152      +38

Per feedback from @WadeBarnes - do a TAA check before allowing the revocation to be processed (same applies to schema and cred def operations)


Accept the whitelist prop

To filter out what components to use inside

Hey, can you please provide a default for the prop, currently gives a linter warning. Once thats done, happy to merge this one in :)

All right, all passed


Improve Ingress SLO

Change the OpenShift cluster ingress SLI to use a cleaned version of the ingress_canary_route_reachable metric, with the pod and instance labels removed. We don't want those labels included, since they cause issues with the SLI and the SLO alerts when the ingress canary operator pod, which exposes the metric, is restarted.
We need #33 to create a new recording rule for max without(pod,instance) (ingress_canary_route_reachable), since Prometheus doesn't support any of the following queries:

1 - avg_over_time((max without(pod,instance) (ingress_canary_route_reachable))[{{.window}}]) results inError executing query: invalid parameter "query": 1:79: parse error: ranges only allowed for vector selectors

1 - avg_over_time(max without(pod,instance) (ingress_canary_route_reachable[{{.window}}])) results inError executing query: invalid parameter "query": 1:46: parse error: expected type instant vector in aggregation expression, got range vector

1 - avg_over_time(ingress_canary_route_reachable[{{.window}}]) without (pod,instance) results inError executing query: invalid parameter "query": 1:55: parse error: unexpected <without>

Checklist

[x] The PR has a meaningful title. It will be used to auto generate the
changelog.
The PR has a meaningful description that sums up the change. It will be
linked in the changelog.
[x] PR contains a single logical change (to build a better changelog).
[x] Categorize the PR by adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog.
[x] Link this PR to related issues or PRs.

From what I can see, this change has improved the SLO dashboard, and also has fixed the spurious ingress SLO alerts which were caused by changing labels. I'll merge the change and release a new version of the component.


"Open configuration file" does not work/respond

I am working on Win64, with onivim2 Ver.  <IP_ADDRESS>
The problem:
While "CTRL+SHIFT+P" does bring up the Preferences option, selecting
Preferences: Open Configuration file
and then hitting either the "Right" key or the "Enter" key leads to no response (the same happens when selecting "Open keybindings file")
Possibly related:
typing
:set
or
:f
leads to no visible response.

Seeing same behavior here.
OS: Windows 10 64 bits.

This is due to the issue outlined in #524, since we can't copy the config, we can't edit the config.
I'll leave this open (as a duplicate) since it is perhaps easier to find, but the real fix will be #356.


FIX:  replication dead loop  (some seq might be lost  in the middle of wal …

…, seems like a bug in rocksdb)

LGTM, nice~


Another template engine for micro controllers

Hey there,
i stumbled across your lib when i was searching for a template engine for micro controllers.
Since i have some further requirements (loops), i had to extend your lib a bit and came out with a completely new implementation: https://github.com/mincequi/tinja
At no offence, it outperforms your lib by far (~10 times faster) by using much less memory (especially for ESP8266).
Please check my test/benchmark suite. I will come out with numbers and charts as soon as i find the time to do so.
Hopefully, you find this interesting.
Cheers
Manuel

Hi Manual,
Thanks for sharing your code and making it available to others. So if you need a faster implementation than micro-moustache please use tinja!
I took a quick peek at your code and indeed it looks really nice! Maybe I'll give it a try in the future!
Thanks for sharing
Rene


Issue 962 - Use messaging system for canceled jobs on queue

This issue represents the first use of the new backend messaging system.

Created the first message type that bulk creates job_exe_end models.
Created a new scheduler background thread that regularly submits messages to the message broker.
Updated the scheduler to submit canceled job_exe_end instances from queued jobs to the new background thread (through the JobExecutionManager).

I still need to test this in Kiln.


Slick Grid Event - disable add button if rowcount > 0

Hi all,
i have problems to select the right event to check rowcount in slick grid.
i tried events init, refresh, initialrefresh, gridcanload etc...
I have a Master/Detail form. What i want to achieve is... on selecting row in Matergrid display all joint rows in Details-Grid... but if Details-Grid have one row (one record) disable the add button.
I trie grid.rowcount but this gives me 0
Any Idea Thanks

I believe you just need to do something like:
protected getButtons(): Serenity.ToolButton[] {
            var buttons = super.getButtons();
            var numRows = this.getItems().length;
            if (numRows > 0) {
                buttons.splice(Q.indexOf(buttons, x => x.cssClass == "add-button"), 1);
            }

            return buttons;
        }

Not 100% sure on the this.getItems().length being the row count though. I'll test it later and let you know,


Fix #1541: Support for JSON extended representations of BSON ObjectId and Uuid

closes #1541

Unfortunately due to errors, I was not able to test the code yet. When running
cargo test parse_uuid

I get
error[E0432]: unresolved import `chrono`
 --> tests/introspection.rs:5:5
  |
5 | use chrono::{NaiveDate, NaiveDateTime};
  |     ^^^^^^ use of undeclared crate or module `chrono`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `async-graphql` (test "introspection") due to 1 previous error

Probably cargo test --workspace --all-features would work better.
From my perspective it seems like you should not do parsing yourself, but rely on bson::extjson implementations. I would consider converting GraphQL's value .into_json() and calling an appropriate deserializer. But I may be wrong here, so it's up to you.

I am using bson::extjson now. Thanks for the hint.

@sunli829 what would you say about this PR?

thanks 🙂


Maya: RenderSettings set default image format for V-Ray+Redshift to exr

Brief description
Set default image format for V-Ray+Redshift to exr instead of png and iff in OP settings.
Testing notes:

Test setting default rendersettings with V-Ray and Redshfit.

Off the top of my head I don't remember precisely but I think Redshift required a list index to be passed as opposed to a file format string.  But I could be wrong

Off the top of my head I don't remember precisely but I think Redshift required a list index to be passed as opposed to a file format string. But I could be wrong

That's good to know, but that logic hasn't changed. It's still doing that conversion from settings extension name to index.
This only touches the default setting.

Off the top of my head I don't remember precisely but I think Redshift required a list index to be passed as opposed to a file format string. But I could be wrong

That's good to know, but that logic hasn't changed. It's still doing that conversion from settings extension name to index.
This only touches the default setting.

Oh damn yeah I'd forgotten writing that, yes sir that works just fine


Don't process new state if song is paused/stopped

This makes the controller to start pipeline processing, which looks strange for stopped songs.

What these changes resolve:

open http://youtubify.vebto.com/ using the extension from latest master (where youtubify is fixed);
the extension icon changes to a magnifying glass icon (means the pipeline process is started), but the song actually isn't playing (youtubify doesn't auto-play songs on startup).

I noticed that on other websites (e.g. VK), youtubify is used just as example.


feat(password): allow for multiple passwords (password rotation)

Example usage:
export default withIronSession(handler, {
  password: [
    {
      id: 2,
      password: "another_password_at_least_32_characters_long",
    },
    {
      id: 1,
      password: "complex_password_at_least_32_characters_long",
    },
  ],
});

fixes #69

:tada: This PR is included in version 3.2.0 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 3.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Body is expected to be empty when httpStatus is 404

We have a scenario where a provider, when responding with a 404 it also sends a response body.
What we noticed though is that pactVerify expect the body to be empty when the http response status is 404.
Example  pact.json file
{
  "provider": {
    "name": "Animal_Service"
  },
  "consumer": {
    "name": "Zoo_App"
  },
  "interactions": [

    {
      "provider_state": "there is not an alligator named Mary",
      "description": "a request for alligator Mary",
      "request": {
        "method": "get",
        "path": "/alligators/Mary"
      },
      "response": {
        "status": 404,
        "body": {
          "errorMessage": "Resource not found!"
        }
      }
    }
  ],
  "metadata": {
    "pact_gem": {
      "version": "1.0.9"
    }
  }
}

console output:
Given there is not an alligator named Mary
  a request for alligator Mary
    returns a response which
      has status code 404 (OK)
      has a matching body (FAILED)

Failures:

0) Verifying a pact between myConsumer and myProvider - a request for alligator Mary Given there is not an alligator named Mary returns a response which has a matching body
      $.body -> Expected errorMessage='Resource not found!' but was missing

      Diff:

      @1
      -    "errorMessage": "Resource not found!"
      +
      }

In this case, pactVerify is expecting a body to be returned, but it did not receive one. Can you verify that your provider is sending a body?
Have a look at issue #115, which was fixed by upgrading the version of the pact-jvm library.

Hey @uglyog , we ran the following interaction:
 {
      "description": "error scenario: expect a 404",
      "request": {
        "method": "GET",
        "path": "http://localhost:8070/item-service/item/00000000-0000-0000-0000-000000000000"
      },
      "response": {
        "status": 404,
        "headers": {
          "Content-Type": "application/json;charset=UTF-8"
        },
        "body": {
        }
      }
    }

We had the following error message:
  error scenario: expect a 404
    returns a response which
      has status code 404 (OK)
      includes headers
        "Content-Type" with value "application/json;charset=UTF-8" (OK)
      has a matching body (OK)
:pactVerify

BUILD SUCCESSFUL

And it is fine. The problem occurs when we try to test the response body, that contains an error message as described following:

{
      "description": "error scenario: expect a 404",
      "request": {
        "method": "GET",
        "path": "http://localhost:8070/item-service/item/00000000-0000-0000-0000-000000000000"
      },
      "response": {
        "status": 404,
        "headers": {
          "Content-Type": "application/json;charset=UTF-8"
        },
        "body": {
          "errorMessage": "Item not found!"
        }
      }
    }

We see the following message:
error scenario: expect a 404
    returns a response which
      has status code 404 (OK)
      includes headers
        "Content-Type" with value "application/json;charset=UTF-8" (OK)
      has a matching body (FAILED)

Failures:

0) Verifying a pact between providerService and consumerService - error scenario: expect a 404 returns a response which has a matching body
      $.body -> Expected errorMessage='Item not found!' but was missing

      Diff:

      @1
      -    "errorMessage": "Item not found!"
      +
      }

Accessing using the browser I can see the message:
{
"ts": "2015-05-25T14:15:28.671Z",
"httpStatus": 404,
"errorMessage": "Item not found"
}

Thanks!!

What version of the pact library are you using?

This is the version:
plugins {
    id "au.com.dius.pact" version "2.1.1"
}

The gradle version is 2.1.

It is fixed in version 2.2.1. Thanks.
This works:
plugins {
    id "au.com.dius.pact" version "2.2.1"
}


Show dotfiles but not .git

I have my own dotfiles repo with a lot of .files and .dirs (obviously) and I want project.nvim to include & show does, but I generally don't want to see the .git directory in any project. I'd like a way to show my dotfiles but not .git and the like.

That would be great, hope they add an option

I tried tweaking the find_project_files function from the lua/telescope/_extensions/project.lua file like this:
local utils = require("telescope.utils")

...

local function find_project_files(prompt_bufnr)
  local project_path, cd_successful = change_working_directory(prompt_bufnr, true)
  local opt = {
    cwd = project_path,
    hidden = config.options.show_hidden,
    mode = "insert",
  }
  local _, ret, _ = utils.get_os_command_output({ "git", "rev-parse", "--is-inside-work-tree" })
  if cd_successful then
    if ret == 0 then
      builtin.git_files(opt)
    else
      builtin.find_files(opt)
    end
  end
end

It checks if the current directory is a git repo; if yes, it will use Telescope's git_files to search files, which might solve your problem. Hope this helps!

@lonhattan007 Good tweak to allow use of git_files. I would move execution of the git command inside if cd_successful since there is no point in running the command if the cd failed.

@KnBrckr Thank you for pointing that out. I updated the code as you said.


manual repartitioning overridden by physical optimizer

Describe the bug
Using dataframe.repartition() function doesn't work as expected.
To Reproduce
Using the tpch bin from benchmarks, convert the .tbl (csv) files to Parquet format using the "partitions" option:
cargo run --release --bin tpch -- convert --input ./tpch-data --output ./tpch-data-parquet --format parquet --partitions 4

That should have produced 4 parquet files per table, but instead created 20 (this laptop has 20 cores).
Expected behavior
Expected it to produce the specified number of partitions (4 in this case).
Additional context
I added some debug and the physical plan produced is:
CoalesceBatchesExec: target_batch_size=4096
  RepartitionExec: partitioning=RoundRobinBatch(20)
    RepartitionExec: partitioning=RoundRobinBatch(4)
      RepartitionExec: partitioning=RoundRobinBatch(20)
        CsvExec: files=[home/kmitchener/dev/arrow-datafusion/benchmarks/tpch-data/region.tbl], has_header=false, limit=None, projection=[r_regionkey, r_name, r_comment]

The tpch bin repartitions the file using this bit of code:
        // optionally, repartition the file
        if opt.partitions > 1 {
            csv = csv.repartition(Partitioning::RoundRobinBatch(opt.partitions))?
        }

I am not sure if it's a bug in the planner.
After repartition a write is used - between those the planner is free to add changes as the write doesn't require any input partition - in fact, repartitioning (to 20) might improve the write performance (although now there are some unnecessary repartitions).
There are a couple of options I think to solve this:

Using the target_partitions config instead of using repartition will have the effect of generating this amount of files for the benchmark
Adding some way to define the number of partitions to write (e.g. )
Introducing a config option (e.g. default_write_partitions)  that defines the number of default partitions to write.

In this particular case of the tpch binary, if you leave the default partitions setting at 1, the physical plan is just the CsvExec node and it results in 1 file. (it's coming from 1 CSV file, so output partitions is just 1, resulting in a single file being written by write_parquet())
Based on this usage of Dataframe.repartition() and Andy's suggestion to use repartition() in this same way in the Slack channel, I think that round-robin splitting any input into N partitions is the desired use of repartition(). It just doesn't actually work because the physical optimizer adds RepartitionExec nodes after it to undo the work.
  RepartitionExec: partitioning=RoundRobinBatch(20)
    RepartitionExec: partitioning=RoundRobinBatch(4)
      RepartitionExec: partitioning=RoundRobinBatch(20)

I was thinking to fix it by adding some logical to the Repartitioning bit of the physical optimizer so that it won't add 2 repartitions in a row.

So the use case I'm thinking of is something like this:

get a single large CSV file, read it in
run some transformations on it (simple cleaning/trim/reformatting of timestamps/adding other columns/data type casting, etc)
write output to parquet file, where I can control the number of files being created

In this case, we want to leave target_partitions to default so it uses all cores for processing the transformations, but I want to control the number of parquet files being written. If I used a df.repartition() right before df.write_parquet(), it would work fine in this case, if the optimizer wasn't messing with it. (I actually can't think of any other use case for repartition() -- if it's not for this, what is it for?)

I need some more time to write the ideas up - but the gist is that I indeed believe at some point repartition as a method on dataframes should be deprecated in favor of adding ways to control the partitioning/file number in the writers instead.

I'm not in any rush and your idea sounds right to me. Also, if we can have more options for creating partitioned directory structures, that would be even better. Not sure how that API should look though.


Update pypi packages used on production

Description:
Update pypi packages used on production
New imports / dependencies:
Django==1.8.18
django-bootstrap3==9.0.0
django-cookie-law==1.0.13
logilab-common==1.4.1
Pillow==4.2.1
PyYAML==3.12
six==1.11.0
wheel==0.30.0
django-dynamic-fixture==1.9.5
psycopg2==<IP_ADDRESS>
djangorestframework==3.6.4
djangorestframework-camel-case==1.0b1

Codecov Report

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

@@           Coverage Diff           @@
##           master     #648   +/-   ##
=======================================
  Coverage   92.11%   92.11%
=======================================
  Files          80       80
  Lines        2649     2649
  Branches        2        2
=======================================
  Hits         2440     2440
  Misses        207      207
  Partials        2        2

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 ec11a3b...f76fd55. Read the comment docs.


Handling of missing Sabio-RK entries

I got KeyError: '<IP_ADDRESS>.5' in line 69 of create_combined_kcat_database.py. Tracing back the error, I observed that searching for EC-number <IP_ADDRESS>.5 in Sabio-RK with autopacmen does not give any results on any wildcard level. The last lines of output from create_combined_kcat_database may shed more light on the problem:
Wildcard level 3... ['3.6.*.*.*'] Performing query [{'ECNumber': '3.6.*.*.*', 'Parametertype': 'kcat', 'EnzymeType': 'wildtype'}]... SABIO-RK API error with query: ((ECNumber:3.6.*.*.* AND Parametertype:kcat AND EnzymeType:wildtype)) Wildcard level 4... ['3.*.*.*.*'] Performing query [{'ECNumber': '3.*.*.*.*', 'Parametertype': 'kcat', 'EnzymeType': 'wildtype'}]... SABIO-RK API error with query: ((ECNumber:3.*.*.*.* AND Parametertype:kcat AND EnzymeType:wildtype))
Sabio-RK has of course entries for these high wildcard levels, but there might just be too many of them for the API of return any results. This mean that even with the wildcard search, you may expect to have some EC-numbers to which no entry is obtainable. Consequently, we must handle the case where a Sabio-RK entry is not available for the combined database.

As far as I found out this error was caused by "<IP_ADDRESS>.5" being an invalid EC number format since it contains 5 numbers (and the standard is ..., where * stands for an integer or provisional characters). That's why the SABIO-RK wildcard search failed since there is no EC number with 5 numbers, and since I did not include a strict EC number validity test beforehand as there are sometimes strangely looking provisional or custom numbers.
Now, to address the error, I included a check in create_combined_kcat_database.py which looks if the current EC number has any entry in either the BRENDA or SABIO-RK database. If this is not the case, a warning is printed and the EC number is ignored. But there may be also other ways to show that there is a problem such as halting the program, this would be just a "non-intrusive" way to handle these invalid numbers.

I later realized that the 5-digit EC number was an error in the model, and there is therefore no wonder why it did not get any hits. I agree that it is a good idea to issue a warning when the EC number is not found in BRENDA or SABIO-RK. Ideally, I would perfer that any error in the user input would give a custom error message instead of an internal error such as KeyError, but it is not important for me and probably not worth the effort.


R: Basic Documentation

Add basic R documentation including notebooks
Needs further definition and consideration of future Polars build

We definitely do need R documentation and examples, but we'll be doing it in tabs parallel to the Python documentation. One place to begin is:

#1291

We do not plan to use R vignettes (and we'll probably be moving away from Python notebooks, too). Once the parallel tab documentation is in place we should see if there's anything in vignettes_old that isn't covered elsewhere, and then delete that directory.

#1258

Closing this issue as duplicate.


style(lint): fix code lint

closes #8

Some of the errors are ignored for now but will be addressed later.


Big problems with tcp offload

I use KVM in my company with a mix Linux/WIndows.
I use them with vhost_net, bridge and/or macvtap.
Problems com with macvtap on Windows.
without any management of tcp offload :

Windows reject any packet send from another vm on the same host (and in macvtap too). (can be correct by a tricky rule in iptables... but it's quite awful
More painful, when GRO is activated on host, ALL packets are dropped by windows...

Windows does not support GRO (receive offload). Any such configuration on
host will cause Windows to misbehave.
Those issues should be solved on the host. Windows driver reports that it
has no RX offload capabilities.
I will speak to QEMU guys to see what can be done.
Best regards,
Yan.
On Wed, Feb 8, 2012 at 5:37 PM, Guilhem <
<EMAIL_ADDRESS>
wrote:

I use KVM in my company with a mix Linux/WIndows.
I use them with vhost_net, bridge and/or macvtap.
Problems com with macvtap on Windows :
without any management of tcp offload :

Windows reject any paquet send from another another on the same host
(and in macvtap too). (can be correct by a tricky rule in iptables... but
it's quite awful
More painful, when GRO is activated on host, ALL packets are dropped by
windows...

Reply to this email directly or view it on GitHub:
https://github.com/YanVugenfirer/kvm-guest-drivers-windows/issues/1

--
Daynix Computing LTD
Yan Vugenfirer, Technology expert and consultant
Email<EMAIL_ADDRESS>Phone: +972-54-4758084
Web: www.daynix.com

Thank you for this information, I hope this will be fix ASAP :)
Don't hesitate to come back to me, I can do some tests on my infrastructure

That's how macvtap is supposed to work.

 1) Windows reject any packet send from another vm on the same host (and in macvtap too). (can be correct by a tricky rule in iptables... but it's quite awful
Tried this via virt-manager ,did not hit this issue . might be libvirt default firewall rule make it ?

A linux vm send package without any good checksum (thanks to offload). But with macvtap, packet is directly send to the Windows VM (and so without a good checksum). And Windows reject the package.
To correct this, I must use this rule on the GUEST Linux :
-A POSTROUTING -d WINDOWS-GUEST -p tcp -j CHECKSUM --checksum-fill
Very tricky rule...

Hi, guihem
which network type are you using , e1000 + macvtap , Am I right ?

HOST : e1000e + vhost_net
Guests : macvtap + virtio

Hi,
we are currently in a process of closing all github's issues that have been resolved or expired. I'm currently closing this issue, please reopen the issue or else open a new issue if needed.


Fix for plugins that don't enqueue their scripts properly

This is in reference to, and closes #1857
Code credit goes entirely to @Kimers. I just made it into a PR.

ty!

I would gleefully like to report that this takes care of all the Elementor plugin compatibility errors! (eg. Slider carousel not displaying due to slick "is not a function" JS error.)

This PR causes errors with plugins that print something directly in the wp_enqueue_scripts action.

Which plugin are you trying to use?

This: https://wordpress.org/plugins/jquery-validation-for-contact-form-7/
But there is more plugins that echoes in wp_enqueue_scripts.

That's horrifying.


Sprint 2  - Build/Test/Revise

Anand and I are going to find a way to get the intake high enough to deposit a sample into the high basket.

[ ] By the end of week one, we need to finish the basic assembly of the robot with the rest of the group to see what type of system we can incorporate to lift the intake
[ ] Once we know what we are dealing with we will brainstorm ideas for the lift
[ ] Throughout week two we will build and hopefully test our improved intake system to see if it can accomplish its tasks

I am going to try to get the assembled drive train moving and able to have the mobility that can be used for practicing purposes

[ ] Figuring out how to get the direction of the left joystick as a value (apparently according to sources you need tangent and a formula)
[ ] Incorporating the direction of the left joystick into motor speed so the robot moves precisely in the direction the joystick is facing (in relation to the direction the robot is facing)
[ ] Figuring out how to get the magnitude of the left joystick to allow for speed sensitive driving in relation to how far/hard in one direction the joystick is pointed to.
[ ] Programming the right joystick to control clockwise and counterclockwise rotations by moving the right joystick left (for counterclockwise) and right (for clockwise)
[ ] Bonus: figuring out how to make the movement of the robot field-orientated (so the robot moves left/right/forward/backwards or any direction in relation to the field

Now that the Forearm and claw assembly is complete the next steps are:

To attach the assembly to the robot
To code it to pickup and drop vertical and horizontal samples and specimens
Help wherever I'm needed
Assuming all that is done I will practice my driving coordination with Anand to be competition ready


[Example] ggml: use b2694 to verify the behavior

Hello, I am a code review bot on flows.network.
It could take a few minutes for me to analyze this PR. Relax, grab a cup of coffee and check back later. Thanks!


Support json for transfer with --silent

this is another feature parity thing for solana transfer following #1525  :)
the unfortunate twist here is that I had to introduce --silent not to pollute stdout for --output json while keeping current behavior untouched, this time...
before:
$ spl-token -ut transfer --allow-unfunded-recipient So11111111111111111111111111111111111111112 0.1 7DEkZ3z7cWA7DpfBZjR6iCEdc5zkfr8wZi2TNBTkbt6j
Transfer 0.1 tokens
  Sender: Ej1X2wW8ERUH5JXb4PJMcCjzPFx2A7PUpohwA71uJbDk
  Recipient: 7DEkZ3z7cWA7DpfBZjR6iCEdc5zkfr8wZi2TNBTkbt6j
  Recipient associated token account: Ej1X2wW8ERUH5JXb4PJMcCjzPFx2A7PUpohwA71uJbDk
Signature: LrmPTnvYgt1FRfnBujGcVzkHEdeMJHk8JCZiwaJTn4GyqLCqwwBngSKWqhcHNt1HSGBasdQuZoSYtgbqBaHMsyC

after:
$ spl-token -ut transfer --allow-unfunded-recipient So11111111111111111111111111111111111111112 0.1 7DEkZ3z7cWA7DpfBZjR6iCEdc5zkfr8wZi2TNBTkbt6j --output json --silent
{
  "signature": "4Thq5PbUVsfj4JY3MfodwoDZ3nLdHAGz1JkrHQ59a8s7iJ7GAVpovg34XYV3hb4oqMvTkt4CCEa5rDvwFQjeVEit"
}

or --output json implictly enables --silent mode?

or --output json implicitly enables --silent mode?

hmm, this could be too much overloaded meaning. if this is taken as precedent and this implicit behavior got widespread across code base, that as a while would be annoyance when debugging and developing...

... if this is taken as precedent and this implicit behavior got widespread across code base, that as a while would be annoyance when debugging and developing...

maybe we can cancel this implicit silencing with --verbose?

@t-nelson , fyi I'm taking this over -- refactoring to use OutputFormat across spl-token-cli. Any objections to that approach?

@t-nelson , fyi I'm taking this over -- refactoring to use OutputFormat across spl-token-cli. Any objections to that approach?

Sounds like a plan!  I've been eyeing JSON support here as well.  My only concern is another SPL dependency in the monorepo, but since we already deal with them, I'm not going to block


Add ImagePprocessor class

A general image processor class to do all sorts of image transforms in a sequential way.

Done in 15b167c


1.8.9 Menu Bug

Hi, I'm using the 1.8.9 version of MineMenu. I use Battlegear and Advanced Inventory, but when I tried using the setting for the battle inventory from Battlegear, nothing happened. I tried it with the inventory for Advanced, and it seemed to work, but when I closed out of it it reopened half a second later. So I closed it again. So it opened again.  I spammed Esc and got the pause menu up, but the menu STILL came up. I actually had to close out of Minecraft directly to exit the game. I even restarted and removed the option to open that inventory, and it came up anyway and I had to start again. Fortunately I found that clicking the LAN button prevents it from popping up on the pause screen so I didn't have to totally shut my game down. But is there any way you can fix this? Unfortunately I NEED it on 1.8.9, so simply just going to a new version won't do any good for me.

Unfortunately Mine Menu for 1.8.9 have not been supported for a long time. You can make a PR yourself to fix the issue, otherwise you're out of luck.


I Can't testing batch file Pls helpp

this is my setup
@BeforeTest
public void Setup()  {
    try {
        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability("app", "cmd.exe C/ \\Users\\pos\\Desktop\\Fashion.BAT");
        capabilities.setCapability("deviceName", "WindowsPC");
        capabilities.setCapability("platformName", "Windows");
        driver = new WindowsDriver(new URL("http://<IP_ADDRESS>:4723"), capabilities );
        driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);

    }catch(Exception e){
        e.printStackTrace();
    }
}

Exception
org.openqa.selenium.SessionNotCreatedException: Failed to locate opened application window with appId: C:\Users\pos\Desktop\Fashion.BAT, and processId: 13704 (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
this batch is also running but  ı have this exception pls help

What is there in batch file, what exactly are you trying to achieve

This batch file opening my jar application.
I ' m trying launch this batch file for opening my jar application and run my test


A few typo fixes on Markdown files

:tada: This PR is included in version 2.9.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Task/create view dashboard

What's this PR do?
It creates the main dashboard panel and the user panel which shows the available users.
Where should the reviewer start?
administracion/urls.py
administracion/views.py
administracion/tests.py
administracion/test_views.py
jp2_online/templates/administracion/
jp2_online/templates/base/
How should this be manually tested?
python manage.py test administracion
Any background context you want to provide?
N/A
This template was adapted ~stolen~ from Quickleft/Sprint.ly

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@c7b46b0). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff             @@
##             develop      #12   +/-   ##
==========================================
  Coverage           ?   83.06%
==========================================
  Files              ?       30
  Lines              ?      183
  Branches           ?        0
==========================================
  Hits               ?      152
  Misses             ?       31
  Partials           ?        0

Impacted Files
Coverage Δ

jp2_online/urls.py
100% <ø> (ø)

administracion/test_views.py
100% <100%> (ø)

administracion/tests.py
100% <100%> (ø)

administracion/urls.py
100% <100%> (ø)

administracion/views.py
100% <100%> (ø)

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 c7b46b0...c9e27a3. Read the comment docs.


Different suggestions for neovim and copilot.el ?

Thanks for copilot.el, nice to be able to try this out in emacs.
I'm experiencing some interesting behaviour comparing completions in neovim vs. copilot.el;
with the following code in neovim I get ten different solutions while copilot.el gives me a single one.
import jax
import haiku as hk

class Auto

(Completing after "Auto")
Is this an expected behaviour?

(Please update copilot.el, there is a related fix.)
Have you tried copilot-next-completion? I could get two or three solutions in this way.
How did you get those ten solutions? If it was by opening a side panel, I would say it is an unimplemented feature.

Yes, the ten solutions was with :Copilot panel in neovim.
However, I still get only one completion;
I also see
(:jsonrpc "2.0" :method "LogMessage" :params
	  (:level 1 :message "[INFO] [post-insertion] [2022-08-13T16:06:55.042Z] Could not get document for /tmp/test2.py. Maybe it was closed by the editor." :metadataStr "[INFO] [post-insertion] [2022-08-13T16:06:55.042Z]" :extra
		  ["Could not get document for /tmp/test2.py. Maybe it was closed by the editor."]))

in the `copilot events, maybe this is related?
To update I've executed straight-pull-package for copilot, and also checked the repository in ~/.emacs.d/straight/repos/copilot.el.
Emacs version is Emacs 27.1.

The side panel feature is the only missing feature compared to copilot.vim, but I have no plan to implement it.
I believe you can cycle solutions via copilot-next-completion or it will tell you only one completion is available.

I investigated that log before, but I found copilot.vim had similar log messages, so I think it's okay.

Sometimes there are more completions available, then copilot-next-completion works for me.
for this minimal snippet
import jax
import haiku as hk

class Autoencoder

cycling through completions in nvim gives me three variants, copilot.el only one.
For your example,
import jax
import haiku as hk

class S

both nvim and copilot.el give two completions each, but different ones.
Quite interesting.
Now I retried it with copilot.el five minutes later and I'm back to getting only one.

I observed the same behavior.
You can examine the *copilot events* buffer, especially getCompletionsCycling requests and corresponding responses. I think the requests are the same, but Copilot gives different results.

Interesting, then this is probably just how copilot currently works.


[new-rule-option] [switch-default] Add allow-exhaustive option

PR checklist

[x] Addresses an existing issue: #2104
[x] New feature, bugfix, or enhancement

[x] Includes tests

[x] Documentation update

Overview of change:
This builds upon #3370, and adds a new option to the "switch-default" rule to allow you to omit the default clause, as long as all possible cases have been handled. If there are cases missing, the error message will say which cases are missing. This option requires type information, and if there is no type checker available, the rule is not be applied and a warning is printed.
The exhaustiveness checking works as long as the switch expression is a union of the following types: string literal, number literal, bigint literal, true, false, boolean, null, or undefined. If any other types are included, it falls back to the existing behaviour and requires a default case.
A possible extension would be to add another option that reports a failure if there is an unnecessary default clause.
Is there anything you'd like reviewers to focus on?

decide if you're OK using IntrinsicType.intrinsicName to tell the difference between true and false, even though it's marked @internal.
this is my first PR in any TypeScript project, so I would appreciate any feedback
there's lots of code, good luck!

CHANGELOG.md entry:
[new-rule-option] switch-default Add allow-exhaustive option

Closing this PR for housekeeping, given the lack of activity since January. Please do comment here or send a new PR if you'd to push this forward!
Note: #4534 tracks the deprecation of TSLint overall.


No module named dolfin

Hi, I'm still trying to install fenics_arclength in Windows+Docker environment through the following commands:

docker pull quay.io/fenicsproject/stable:current
docker run -ti quay.io/fenicsproject/stable:current
pip install --user git+https://github.com/pprachas/fenics_arclength.git@master

It turned out that I still could not run any fenics_arclength examples and validations using pip install, hence I switched to clone and install like:

docker pull quay.io/fenicsproject/stable:current
docker run -ti quay.io/fenicsproject/stable:current
git clone https://github.com/pprachas/fenics_arclength.git
cd fenics_arclength
pip install --user .
cd validation
python validate_3Dbeamsmall.py

An error occurred:
Traceback (most recent call last):
  File "validate_bilayer.py", line 1, in <module>
    from dolfin import *
ImportError: No module named dolfin

I tried to fix the problem with these solutions: https://fenicsproject.discourse.group/t/modulenotfounderror-no-module-named-dolfin/11427/2  and  https://fenicsproject.discourse.group/t/no-module-named-dolfin-ubuntu-20-04/4528.
However, none of these worked.
Then I tried to use Mac OS to install fenics-arclength by:

git clone https://github.com/pprachas/fenics_arclength.git
cd fenics_arclength
pip install --user .
cd validation
python validate_3Dbeamsmall.py

it raised the same error:
Traceback (most recent call last):
  File "validate_bilayer.py", line 1, in <module>
    from dolfin import *
ImportError: No module named dolfin

I'm thinking of an alternative solution, could you please provide a more detailed step-by-step installation to example-run guidance for users who never used Fenics before? That would be very helpful!
Hao

Hi @kingyin3613
As a quick debug you can check the python version by python --version
If your default python version is is python 2 then FEniCS is not supported.
In this case you will need to use python3 command to run scripts (i.e. python3 validate_3Dbeamsmall.py) -- we have already specified this in the instruction of running the validation scripts. We also recommend running the beam examples first as they are faster than the bilayer examples.
Please let us know if this works! If not, we will take another look!

Hi @pprachas, python3 validate_3Dbeamsmall.py worked! Thanks for your prompt rely. I will proceed to check the results soon!


docs: Add Nix install instructions

raffi is now packaged in NixOS / Nix. It's currently in the unstable channel. It will likely make it to the next stable release when that rolls around (my guess is November).
https://search.nixos.org/packages?channel=unstable&show=raffi&sort=relevance&type=packages&query=raffi

Oh that's great thanks for doing this !


[FEAT] Remove old code from @daffodil/checkout

Checkout should be more of a glue package between order and cart than provide its own feature area

blocked by #2753


Add Tooltips when Hovering on Cells or Headers

Hello, great work for the package, thank you very much !
Can we add tooltips at some point as shown below ?
https://ag-grid.com/javascript-data-grid/tooltips/
I think this can be very helpful for advanced tables where we have to show some documentation - explain values shown.

Check this example here
http://localhost:8501/Cookbook?example=Tooltips

Thank you !


Doesnt work on android older than 11 due to loadlibrary implementation

fixing this after updater done btw :) should be quick

should be fixed by c421e37e1a723d3c3c37e174f7165c655fae65ed


tiny refactors for late block reorg

ForkChoiceNotifier needed to be supplier because it wasn't intiialised from BeaconChainController.
Also renamed newSlot to proposalSlot in line with a previous change.
adjunct to #6595
Documentation

[X] I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

[X] I thought about adding a changelog entry, and added one if I deemed necessary.

oh no, initialization sequence forcing us to pass a Supplier.. maybe there is something better

@rolfyone tried to remix the cards https://github.com/tbenr/teku/commit/39cad2f66f874d9bfc1aaa93c072aab21c144b0b
WDYT?

@rolfyone tried to remix the cards tbenr@640c078
WDYT?

looks worse? :/


[CSV-147] Error message optimization during faulty CSV record read

This fix is related to : https://issues.apache.org/jira/browse/CSV-147.
If we have some faulty data in the CSV then the current error message which we are getting is something similar to below.
java.io.IOException: (line 2) invalid char between encapsulated token and delimiter
With this fix, what we will be getting is something similar to below,
java.io.IOException: An error occurred while tying to parse the CSV content. Error in line: 2, position: 94, last parsed content: ...rec4,rec5,rec6,rec7,rec8

I'm OK with adding the position but I am guessing someone will create a security issue for data exfiltration.

@garydgregory :
That is a good point. But IMO, whenever someone log the exception, at that point they should consider the security risks.
Isn't usually exception provide such details? as I remember I have came across such scenarios.
What would be the best practice in this case ? - good to know :-)

@garydgregory @elharo :
Requested changes are done.

@garydgregory :
I understand your point. In this case, we will treat getLastParsedContent method as a new feature and decide whether it is actually needed or not in the product.
To make this PR work, I have removed the getLastParsedContent method content and only kept the positioning related changes.
Appreciate your feedback :-)

@garydgregory : let us know if there is anymore change to be done in this PR.

@garydgregory : Checkstyle issue has been fixed.

@garydgregory : Anything pending from development side for this to be merged ?

@gbidsilva Thank you for your updates. Please see my comments.

Completed.

Codecov Report

Merging #347 (c0759cd) into master (7104598) will increase coverage by 0.00%.
Report is 13 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master     #347   +/-   ##
=========================================
  Coverage     97.87%   97.87%
  Complexity      549      549
=========================================
  Files            11       11
  Lines          1178     1179    +1
  Branches        204      204
=========================================
+ Hits           1153     1154    +1
  Misses           13       13
  Partials         12       12

Files Changed
Coverage Δ

src/main/java/org/apache/commons/csv/Lexer.java
98.81% <100.00%> (+<0.01%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


monkfish square over a non-fishing spot

Describe the bug
monkfish square indicator over a nonfishable square
To Reproduce
Steps to reproduce the behavior:

fish monkfish, maybe if two spots overlap

Expected behavior
non-fishing spot should not have a fishing spot indicator
Screenshots

Environment (please complete the following information):

macOS.

Possible duplicate of #7702


Axon issue

It shows last notification even if you don’t open it.

Did you try change "Show By Default" setting?


Location of NESO-Particles utility functions

Context: we want to build upon the particle initialisation code that we have in NESO with more functionality, which may gather more dependencies (at the moment its boost). NESO-Particles is nice and light weight and we don't want it encumbered by bloaty deps. Some users will want the functionality but not the whole of NESO. Options:

Put this file in NESO-Particles clapped around ifdefs so that it gets ignored if a dep e.g. boost isn't found. (not an elegant solution and somewhat questionable regarding build reproducibility)
Keep this here and request users include it from NESO into their projects (danger we don't receive user improvements upstream if they are "copy pasting" it)
Put it in a third place, e.g. NESO-Particles-Extras which NESO git submodules? (repo profileration!)
Any other options?

throughts @whornsby82 @cmacmackin @oparry-ukaea


Combine authorization config with environment variables

The following variables will be fetched from environment variables if set:
MANAGEMENT_PORTAL_CLIENT_ID sets AuthConfig.managementPortal.clientId
MANAGEMENT_PORTAL_CLIENT_SECRET sets AuthConfig.managementPortal.clientSecret
AUTH_KEYSTORE_PASSWORD sets AuthConfig.jwtKeystorePassword

LGTM. Shouldn't we do think for database credentials in radar-jersey-hibernate as well?

Yup, forgot about that. Adding now.


Boot hang with DE2-115

Hello,
I'm trying with Altera DE2-115 kit. I have added ethernet patch to make TFTP boot work. However, the booting is hang at step Freeing unused kernel image (initmem) memory: 2708K
For the dts file, as the guide here https://github.com/litex-hub/linux-on-litex-rocket/issues/8
I made a copy of arty.dts, update few sessions

Update the right address for UART
Update RAM size
Update session related to soc, ethernet, uart with output from litex_json2dts.py
de2-115.dts.txt
csr.json.txt

This is the boot log. Could you please give me few hints on checking this issue?
Thank you!

        __   _ __      _  __
       / /  (_) /____ | |/_/
      / /__/ / __/ -_)>  <
     /____/_/\__/\__/_/|_|
   Build your hardware, easily!

 (c) Copyright 2012-2022 Enjoy-Digital
 (c) Copyright 2007-2015 M-Labs

 BIOS built on Feb 11 2022 07:16:50
 BIOS CRC passed (608dacb6)

 Migen git sha1: ac70301
 LiteX git sha1: 7cc781f7

--=============== SoC ==================--
CPU:            RocketRV64[imac] @ 50MHz
BUS:            WISHBONE 32-bit @ 4GiB
CSR:            32-bit data
ROM:            128KiB
SRAM:           8KiB
SDRAM:          65536KiB 16-bit @ 50MT/s (CL-2 CWL-2)

--========== Initialization ============--
Ethernet init...
Initializing SDRAM @0x80000000...
Switching SDRAM to software control.
Switching SDRAM to hardware control.
Memtest at 0x80000000 (2.0MiB)...
  Write: 0x80000000-0x80200000 2.0MiB
   Read: 0x80000000-0x80200000 2.0MiB
Memtest OK
Memspeed at 0x80000000 (Sequential, 2.0MiB)...
  Write speed: 5.8MiB/s
   Read speed: 9.7MiB/s

--============== Boot ==================--
Booting from serial...
Press Q or ESC to abort boot completely.
sL5DdSMmkekro
Timeout
Booting from network...
Local IP: <IP_ADDRESS>
Remote IP: <IP_ADDRESS>
Booting from boot.json...
Booting from boot.bin...
Copying boot.bin to 0x80000000... (17824296 bytes)
Executing booted program at 0x80000000

--============= Liftoff! ===============--
bbl loader
              vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
                  vvvvvvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrr       vvvvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrr      vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr    vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr    vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr    vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrr      vvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrr       vvvvvvvvvvvvvvvvvvvvvv
rr                vvvvvvvvvvvvvvvvvvvvvv
rr            vvvvvvvvvvvvvvvvvvvvvvvv      rr
rrrr      vvvvvvvvvvvvvvvvvvvvvvvvvv      rrrr
rrrrrr      vvvvvvvvvvvvvvvvvvvvvv      rrrrrr
rrrrrrrr      vvvvvvvvvvvvvvvvvv      rrrrrrrr
rrrrrrrrrr      vvvvvvvvvvvvvv      rrrrrrrrrr
rrrrrrrrrrrr      vvvvvvvvvv      rrrrrrrrrrrr
rrrrrrrrrrrrrr      vvvvvv      rrrrrrrrrrrrrr
rrrrrrrrrrrrrrrr      vv      rrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrr          rrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrrr      rrrrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrrrrr  rrrrrrrrrrrrrrrrrrrrrr

       INSTRUCTION SETS WANT TO BE FREE
[    0.000000] Linux version 5.17.0-rc3-g9416933b8c5f (administrator@sm06) (riscv64-unknown-linux-gnu-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1) #3 SMP Fri Feb 11 10:19:30 UTC 2022
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] Machine model: freechips,rocketchip-unknown
[    0.000000] earlycon: liteuart0 at I/O port 0x0 (options '')
[    0.000000] Malformed early option 'console'
[    0.000000] earlycon: liteuart0 at MMIO 0x0000000012003000 (options '')
[    0.000000] printk: bootconsole [liteuart0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000080200000-0x0000000083ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080200000-0x0000000083ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x0000000083ffffff]
[    0.000000] SBI specification v0.1 detected
[    0.000000] riscv: ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 13 pages/cpu s24088 r0 d29160 u53248
[    0.000000] pcpu-alloc: s24088 r0 d29160 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15624
[    0.000000] Kernel command line: console=liteuart earlycon=liteuart,0x12003000 swiotlb=noforce
[    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 45904K/63488K available (4455K kernel code, 4160K rwdata, 2048K rodata, 2711K init, 290K bss, 17584K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@c000000: mapped 8 interrupts with 1 handlers for 2 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x4d2/0x6c2 with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns:<PHONE_NUMBER>920 ns
[    0.000220] sched_clock: 64 bits at 500kHz, resolution 2000ns, wraps every<PHONE_NUMBER>000ns
[    0.012014] Timer extension is not available in SBI v0.1
[    0.030320] Console: colour dummy device 128x32
[    0.039670] Calibrating delay loop (skipped), value calculated using timer frequency.. 1.00 BogoMIPS (lpj=5000)
[    0.053426] pid_max: default: 32768 minimum: 301
[    0.085916] LSM: Security Framework initializing
[    0.106152] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.116798] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.463366] cblist_init_generic: Setting adjustable number of callback queues.
[    0.471982] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.506746] ASID allocator disabled (0 bits)
[    0.543518] rcu: Hierarchical SRCU implementation.
[    0.606262] EFI services will not be available.
[    0.644156] smp: Bringing up secondary CPUs ...
[    0.649526] smp: Brought up 1 node, 1 CPU
[    0.729568] devtmpfs: initialized
[    1.027678] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns:<PHONE_NUMBER>2750000 ns
[    1.040342] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    1.146192] remote fence extension is not available in SBI v0.1
[    1.176940] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    2.830826] pps_core: LinuxPPS API ver. 1 registered
[    2.836910] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti<EMAIL_ADDRESS>[    2.852106] PTP clock support registered
[    3.008754] clocksource: Switched to clocksource riscv_clocksource
[    4.742462] NET: Registered PF_INET protocol family
[    4.764414] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    4.843116] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    4.856366] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    4.867794] TCP bind hash table entries: 512 (order: 1, 8192 bytes, linear)
[    4.878386] TCP: Hash tables configured (established 512 bind 512)
[    4.904076] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    4.915416] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    4.948946] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    8.140368] workingset: timestamp_bits=46 max_order=14 bucket_order=0
[   11.262946] LiteX SoC Controller driver initialized
[   22.015250] 12003000.serial: ttyLXU0 at MMIO 0x0 (irq = 0, base_baud = 0) is a liteuart
[   22.032188] printk: console [liteuart0] enabled
[   22.032188] printk: console [liteuart0] enabled
[   22.042772] printk: bootconsole [liteuart0] disabled
[   22.042772] printk: bootconsole [liteuart0] disabled
[   23.240688] loop: module loaded
[   25.878566] liteeth 12000800.mac: error -ENXIO: IRQ index 0 not found
[   25.887044] liteeth 12000800.mac: Failed to get IRQ, using polling
[   26.001220] liteeth 12000800.mac eth0: irq 0 slots: tx 2 rx 2 size 2048
[   26.254712] NET: Registered PF_INET6 protocol family
[   26.470926] Segment Routing with IPv6
[   26.480862] In-situ OAM (IOAM) with IPv6
[   26.497858] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[   26.630914] NET: Registered PF_PACKET protocol family
[   26.893754] Warning: unable to open an initial console.
[   26.902926] remote fence extension is not available in SBI v0.1
[   27.446946] Freeing unused kernel image (initmem) memory: 2708K

On Fri, Feb 11, 2022 at 02:48:40AM -0800, lapnd wrote:

This is the boot log. Could you please give me few hints on checking this
issue?

When you build your bitstream, does it pass timing?
Other than that, doublecheck the register addresses in DTS?
That's all I can think of, off the top of my head...

I can make it work now.
I'm not sure this is the root cause, but from the message remote fence extension is not available in SBI v0.1, I guest the issue may from SB1 v1.0.
Enable this option on kernel make the linux boot ok

        __   _ __      _  __
       / /  (_) /____ | |/_/
      / /__/ / __/ -_)>  <
     /____/_/\__/\__/_/|_|
   Build your hardware, easily!

 (c) Copyright 2012-2022 Enjoy-Digital
 (c) Copyright 2007-2015 M-Labs

 BIOS built on Feb 12 2022 13:27:25
 BIOS CRC passed (54bd8546)

 Migen git sha1: ac70301
 LiteX git sha1: 7cc781f7

--=============== SoC ==================--
CPU:            RocketRV64[imac] @ 50MHz
BUS:            WISHBONE 32-bit @ 4GiB
CSR:            32-bit data
ROM:            128KiB
SRAM:           8KiB
SDRAM:          65536KiB 16-bit @ 50MT/s (CL-2 CWL-2)

--========== Initialization ============--
Ethernet init...
Initializing SDRAM @0x80000000...
Switching SDRAM to software control.
Switching SDRAM to hardware control.
Memtest at 0x80000000 (2.0MiB)...
  Write: 0x80000000-0x80200000 2.0MiB
   Read: 0x80000000-0x80200000 2.0MiB
Memtest OK
Memspeed at 0x80000000 (Sequential, 2.0MiB)...
  Write speed: 5.8MiB/s
   Read speed: 9.3MiB/s

--============== Boot ==================--
Booting from serial...
Press Q or ESC to abort boot completely.
sL5DdSMmkekro
Timeout
Booting from network...
Local IP: <IP_ADDRESS>
Remote IP: <IP_ADDRESS>
Booting from boot.json...
Booting from boot.bin...
Copying boot.bin to 0x80000000... (17824296 bytes)
Executing booted program at 0x80000000

--============= Liftoff! ===============--
bbl loader
              vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
                  vvvvvvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrr       vvvvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrr      vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr    vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr    vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrrrr    vvvvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrrrrr      vvvvvvvvvvvvvvvvvvvvvv
rrrrrrrrrrrrr       vvvvvvvvvvvvvvvvvvvvvv
rr                vvvvvvvvvvvvvvvvvvvvvv
rr            vvvvvvvvvvvvvvvvvvvvvvvv      rr
rrrr      vvvvvvvvvvvvvvvvvvvvvvvvvv      rrrr
rrrrrr      vvvvvvvvvvvvvvvvvvvvvv      rrrrrr
rrrrrrrr      vvvvvvvvvvvvvvvvvv      rrrrrrrr
rrrrrrrrrr      vvvvvvvvvvvvvv      rrrrrrrrrr
rrrrrrrrrrrr      vvvvvvvvvv      rrrrrrrrrrrr
rrrrrrrrrrrrrr      vvvvvv      rrrrrrrrrrrrrr
rrrrrrrrrrrrrrrr      vv      rrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrr          rrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrrr      rrrrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrrrrr  rrrrrrrrrrrrrrrrrrrrrr

       INSTRUCTION SETS WANT TO BE FREE
[    0.000000] Linux version 5.17.0-rc3-g9416933b8c5f (administrator@sm06) (riscv64-unknown-linux-gnu-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1) #8 SMP Sat Feb 12 14:10:33 UTC 2022
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] Machine model: freechips,rocketchip-unknown
[    0.000000] earlycon: liteuart0 at I/O port 0x0 (options '')
[    0.000000] Malformed early option 'console'
[    0.000000] earlycon: liteuart0 at MMIO 0x0000000012003000 (options '')
[    0.000000] printk: bootconsole [liteuart0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000080200000-0x0000000083ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080200000-0x0000000083ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x0000000083ffffff]
[    0.000000] SBI specification v0.1 detected
[    0.000000] riscv: ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 13 pages/cpu s24088 r0 d29160 u53248
[    0.000000] pcpu-alloc: s24088 r0 d29160 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15624
[    0.000000] Kernel command line: console=liteuart earlycon=liteuart,0x12003000 swiotlb=noforce
[    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 45900K/63488K available (4456K kernel code, 4160K rwdata, 2048K rodata, 2711K init, 290K bss, 17588K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@c000000: mapped 8 interrupts with 1 handlers for 2 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x4d2/0x6c2 with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns:<PHONE_NUMBER>920 ns
[    0.000212] sched_clock: 64 bits at 500kHz, resolution 2000ns, wraps every<PHONE_NUMBER>000ns
[    0.026782] Console: colour dummy device 128x32
[    0.038478] Calibrating delay loop (skipped), value calculated using timer frequency.. 1.00 BogoMIPS (lpj=5000)
[    0.054212] pid_max: default: 32768 minimum: 301
[    0.093540] LSM: Security Framework initializing
[    0.118384] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.131374] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.565868] cblist_init_generic: Setting adjustable number of callback queues.
[    0.574786] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.622070] ASID allocator disabled (0 bits)
[    0.669942] rcu: Hierarchical SRCU implementation.
[    0.752388] EFI services will not be available.
[    0.801336] smp: Bringing up secondary CPUs ...
[    0.806874] smp: Brought up 1 node, 1 CPU
[    0.906226] devtmpfs: initialized
[    1.285146] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns:<PHONE_NUMBER>2750000 ns
[    1.301032] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    1.471906] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    3.735036] pps_core: LinuxPPS API ver. 1 registered
[    3.741152] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti<EMAIL_ADDRESS>[    3.762362] PTP clock support registered
[    3.963138] clocksource: Switched to clocksource riscv_clocksource
[    6.493222] NET: Registered PF_INET protocol family
[    6.527318] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.640860] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.660720] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    6.678662] TCP bind hash table entries: 512 (order: 1, 8192 bytes, linear)
[    6.692624] TCP: Hash tables configured (established 512 bind 512)
[    6.731198] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.749454] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.799224] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    7.571636] workingset: timestamp_bits=46 max_order=14 bucket_order=0
[   16.580154] LiteX SoC Controller driver initialized
[   32.479270] 12003000.serial: ttyLXU0 at MMIO 0x0 (irq = 0, base_baud = 0) is a liteuart
[   32.502872] printk: console [liteuart0] enabled
[   32.502872] printk: console [liteuart0] enabled
[   32.519442] printk: bootconsole [liteuart0] disabled
[   32.519442] printk: bootconsole [liteuart0] disabled
[   34.277182] loop: module loaded
[   38.113612] liteeth 12000800.mac: error -ENXIO: IRQ index 0 not found
[   38.130100] liteeth 12000800.mac: Failed to get IRQ, using polling
[   38.299362] liteeth 12000800.mac eth0: irq 0 slots: tx 2 rx 2 size 2048
[   38.663754] NET: Registered PF_INET6 protocol family
[   39.008108] Segment Routing with IPv6
[   39.021624] In-situ OAM (IOAM) with IPv6
[   39.050544] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[   39.250182] NET: Registered PF_PACKET protocol family
[   39.763178] Warning: unable to open an initial console.
[   40.553822] Freeing unused kernel image (initmem) memory: 2708K
[   40.599206] Run /init as init process
[   40.603954]   with arguments:
[   40.610538]     /init
[   40.613552]   with environment:
[   40.620356]     HOME=/
[   40.623542]     TERM=linux
# ls
bin      etc      init     linuxrc  nfs      root     sys      usr
dev      home     lib      mnt      proc     sbin     tmp
# ifconfig eth0 <IP_ADDRESS>
# ping <IP_ADDRESS>
<IP_ADDRESS> is alive!
# ifconfig eth0
ifconfig: no support for status display
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
<IP_ADDRESS>     <IP_ADDRESS>         <IP_ADDRESS>   U     0      0        0 eth0
# ping <IP_ADDRESS>
<IP_ADDRESS> is alive!

On Sat, Feb 12, 2022 at 06:20:58AM -0800, lapnd wrote:

I can make it work now.
I'm not sure this is the root cause, but from the message remote fence
extension is not available in SBI v0.1, I guest the issue may from SB1 v1.0.
Enable this option on kernel make the linux boot ok

I'm not really sure how enabling RISCV_SBI_V01 in your kernel is in
any way related to the dev board, fpga model, or HDL compiler you're
using!
Seems like something about how you compiled the rest of your software
stack (i.e., busybox or whatever it is you're booting on top of
Linux).
Besides, the help line in the kernel Kconfig says RISCV_SBI_V01 is
being deprecated, so relying on it is not a good long-term strategy.
But good to hear it's working for you, at least! :)

Thanks @lapnd I recently tried recompiling the kernel and I ran into the same issue.
For me it would hang after Timer extension is not available in SBI v0.1.
Adding CONFIG_RISCV_SBI_V01=y to the defconfig like you suggested did the trick.


Angular Universal (SSR) and Ckeditor 4 error

Hi, I used angular universal for server-side rendering and ng2-ckeditor.
when I want to be compress and webpack ng2-ckeditor the belove error show:
CKEditor 4.x is missing (http://ckeditor.com/)

how can I resolve this problem? I must be used ng2-ckeditor !!

The meassage means that the reference to ckeditor is missing in index.html file. Please look at the documentation in angular-starter project. There are two different forms of Server Side Rendering. In prerender mode:

Renders your application and replaces the dist index.html with a version rendered at the route

Look at the index.html file after compression. I would say that the reference to ckeditor is not there.

this is my index.html file and load perfectly ckeditor but the error shows. i use webpack for convert server.ts to server.js.
<!doctype html>

  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>My Website</title>
  <base href="/">

  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <link rel="stylesheet" href="/assets/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="/assets/resources/themes/omega/theme.css">
  <link rel="stylesheet" href="/assets/resources/primeng.css">

  <link rel="stylesheet" href="/assets/plugins/lightbox/lightgallery.min.css">
  <link rel="stylesheet" href="/assets/plugins/lightbox/lg-transitions.min.css">

  <app-root>

  </app-root>

For clarification: do you get the error message while compiling your angular project or does the error shows in browser console? If in browser console, does the reference to ckeditor exist in html markup code?

Do you get more error detail or just only CKEditor 4.x is missing (http://ckeditor.com/) ? I'm not familiar with universal-starter project, but in my opinion the reference to ckeditor is not being injected into index.html file. There is a part res.render() and res.send() in server.ts code. Maybe you could ask your question in universal-starter project: not-found?

The just only CKEditor 4.x is missing (http://ckeditor.com/) and nothing more.
I ask my question.
what is these message?
i load ckeditor.js in html but the message show again!

The message  comes from ng2-ckeditor when the instance is undefined. Your project is being compiled fine with ng build --prod. I don't believe that something is wrong with ng2-ckeditor. The question ist what happen in universal-starter compilation. Is an additional reference needed somewhere in server.ts or other config file in universal-starter project?

@kzimny I think it would be useful if the CKEditorModule can be used without ckeditor reference, for Universal rendering the ckeditor is not needed. In that case it would be nice if the error would be replaced by a warning. You can use isPlatformBrowser to make it possible: https://angular.io/api/common/isPlatformBrowser

Did you already try that?

@kzimny not yet, if you want me to try it I will set up development environment for ng2-ckeditor and check if I can make it working.

I don't know who else would be interested in this topic. Of course if you would find the reason and the solution that works it would help other developers having the same problem.

@kzimny I'm confident I can solve the problem, as I have a lot of experience with Angular Universal. Problem is I don't know how to set up the development environment for this repository. Do you guys have any document or wiki for that? I tried loading up this module as a child module to my test project, but I was unable to serve it properly. Seems webpack doesn't like a symlinked module. Having to build the child module manually over and over is kind of a pain.

On main page you will find a short installation instruction. In addition you need to import import {FormsModule} from '@angular/forms'; into your own module. Is it what what you are missing? Ng2-ckeditor works fine with webpack.

It is working fine when the package has been built, the problem comes when it has not been build yet. For development purposes, I don't want to manually build the child module every time I have made a change. So I added the following to the main module as dependency to the package.json: "ng2-ckeditor": "file:../ng2-ckeditor". This however is giving me the following error:
ERROR in ../ng2-ckeditor/ng2-ckeditor.ts Module build failed: Error: /Users/xxx/Documents/projects/personal/ng2-ckeditor/ng2-ckeditor.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
Which I'm able to solve by adding the ng2-ckeditor file to the include property in the tsconfig, but then I get this error on serve / build: ERROR in No NgModule metadata found for 'AppModule'.
Any pointers would be appreciated, this is the first time I try to contribute to a project that doesn't work stand alone. So maybe I'm missing something obvious here.

Still an open issue or did you found a solution? It seems that nobody can/want help...

Close the issue?

Nobody wants to investigate and solve the SSR problem. PR's are welcome, the issue can be open again in case someone really wants.