JKS not found

I am using Java-WebSocket:1.4.0 library in android for connection to wss server.
KeyStoreType: JKS
SSLProtocol: TLS
Algorithm: PKIX
But it return the error: java.lang.AssertionError: java.security.KeyStoreException: JKS not found
Caused by: java.security.NoSuchAlgorithmException: JKS KeyStore not available
How can I resolve this error.

Hello,
Please provide an example application and some steps to repeat otherwise this issue will be closed..
Best regards,
Marcel

Also, check out wiki page for WSS on android

My server used JKS, not used BKS, so I don't know how to access to server by BKS
try {
KeyStore keystore = KeyStore.getInstance("BKS");
        String path = Environment.getExternalStorageDirectory() + "/" + "wss/streamlock.net.bks";
       File kf = new File(path );
        InputStream in = new FileInputStream(kf);
        try {

            keystore.load(in, storePassword.toCharArray());
        } finally {
            in.close();
        }
        KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
        keyManagerFactory.init(keystore, keyPassword .toCharArray());
        TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
        tmf.init(keystore);

        sslContext = SSLContext.getInstance("TLS");
        sslContext.init(keyManagerFactory.getKeyManagers(), tmf.getTrustManagers(), null);
    } catch (KeyStoreException | IOException | CertificateException | NoSuchAlgorithmException | KeyManagementException | UnrecoverableKeyException e) {
        Log.e("ERROR", "MSG: "+e.getMessage());
        throw new IllegalArgumentException();
    }

My Server used JKS
I don't know how to use BKS to connect to server
try {
KeyStore keystore = KeyStore.getInstance("BKS");
String path = Environment.getExternalStorageDirectory() + "/" + "wss/streamlock.net.bks";
File f = new File(path);
if(!f.exists()){
f.mkdirs();
}
File kf = new File(path );
InputStream in = new FileInputStream(kf);
try {
keystore.load(in, storePassword.toCharArray());
} finally {
in.close();
}
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
keyManagerFactory.init(keystore, keyPassword .toCharArray());
TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
tmf.init(keystore);
sslContext = SSLContext.getInstance("TLS");
sslContext.init(keyManagerFactory.getKeyManagers(), tmf.getTrustManagers(), null);
} catch (KeyStoreException | IOException | CertificateException | NoSuchAlgorithmException | KeyManagementException | UnrecoverableKeyException e) {
Log.e("ERROR", "MSG: "+e.getMessage());
throw new IllegalArgumentException();
}

Maybe try this.

Issue should be solved!
Closing it.
Best regards,
Marcel

Hi,
I seem to be getting this issue with the current version of this library. So then do we have to use BKS format vs JKS as you have it in the Sample Server file? Additionally, i tried it with BKS but then handshake doesnt happen between the client and server. Any idea what i should do? I keep getting "handshake cancelled" error message from the wss client (a web application), and android is my server. Please assist.
Thanks


copy prompt logs button

Adds a small button for people to be able to copy logs for the current chat history item

Copies context, prompts and completions, llm info, etc. to the clipboard

clicked_copy_chat_history_logs posthog event


How to get error code from errorCallback

I'm trying to setup error handling for the player with errorCallback, on the following way (playing some broken url):
_player = [[ShakaPlayerView alloc] init];
_player.errorCallback = ^(NSString *errorMessage, NSString *errorContext) {
         NSLog(@"ERROR MSG: %@ - %@", errorMessage, errorContext);
 };

The response that it returns is:
ERROR MSG: Shaka Error NETWORK.BAD_HTTP_STATUS (https://dash.akamaized.net/dash264/TestCases/1c/q,404,,[object Object],0)    -   Error loading asset
However I'd like to only use the code BAD_HTTP_STATUS  , BAD_ENCODING, etc...
Is there a method to get this, or is the only way to slice the error message.
I didn't find anything specific in the documentation.

There is no way currently, but I'm going to change to expose the Error type to Objective-C and use that instead.


Update locally-with-an-ide.md

Fix the ngrok command

Docs Build status updates of commit ebc15f7:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/bots/how-to/debug/locally-with-an-ide.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/bots/how-to/debug/locally-with-an-ide.md
78
29
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Changes incorporated in another PR.

@YannickRe, the change is reflected on live site:
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/debug/locally-with-an-ide#debug-your-bot-locally

@surbhigupta12 Please check my PR again. The live site (and your screenshot) shows one dash -host-header but my PR updates it to TWO dashes: --host-header.
I can assure you that one dash is not correct ;)

So sorry. That's a miss from my side. I'd update it right away.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/bots/how-to/debug/locally-with-an-ide.md
78
29
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit ebc15f7:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/bots/how-to/debug/locally-with-an-ide.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@surbhigupta12 Thank you for fixing this, but why did you not merge my PR? It's taking away the recognition from me, and that's not really encouraging me to provide fixes in the future.

Hi @YannickRe,
We've updated:
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/debug/locally-with-an-ide#debug-your-bot-locally

I know YOU fixed it, taking the credit of the PR. You could have just accepted MY PR, have MY name show in the contributors list.
It is just a tiny typo update, but I found it, went through the effort of forking, updating and PR'ing. Your actions discourage any future contributions.

@YannickRe, that was not at all our intention. We are extremely apologetic for this. We reopened the PR and the Acrolinx score was <80 resulting in build failure.  intention was to help and not to take the credit at all. We highly appreciate all the contributions.

Thank you for recognizing this. I have no responsibility over the Acrolinx score, it should not block simple fixes like this.
If it does, there should be a better solution.

The Acrolinx score is a validation to ensure that the overall content quality of the article is met. It was not specific to the change you made. We'd look into how to handle this better.
Thank you for your understanding and we look forward to more contributions from your end. We'd guarantee you'd have a better experience.
Thank you.


chore: refactor of concrete categories

I think the ports

https://github.com/leanprover-community/mathlib4/pull/2902 (MonCat)
https://github.com/leanprover-community/mathlib4/pull/3036 (GroupCat)
https://github.com/leanprover-community/mathlib4/pull/3260 (ModuleCat)

didn't quite get things right, and also have some variation between them. This PR tries to straighten things out.
Major changes:

Have the coercion to type be via X.\a, and put attribute @[coe] on this.
Make sure the coercion from morphisms to functions means that simp lemmas about the underlying bundled morphisms apply directly.

This means we drop lemmas like

lemma Hom.map_mul {X Y : MonCat} (f : X ⟶ Y) (x y : X) : ((forget MonCat).map f) (x * y) = f x * f y

But at the expense of adding lemmas like

lemma coe_comp {X Y Z : MonCat} {f : X ⟶ Y} {g : Y ⟶ Z} : (f ≫ g : X → Z) = g ∘ f := rfl

Overall I'm pretty happy, and it allows me to unstick the long stuck https://github.com/leanprover-community/mathlib4/pull/3105.
This is not everything I want to do to refactor these files, but once I was satisfied that I can move forward with RingCat, I want to get this merged so we can unblock porting progress. I'll promise to come back to this soon! :-)

I strongly agree that it is much better that coercion of morphisms to functions does not make the forget functor appear. I wish I could have done it like this in the first place! This looks very good to me.

Thanks :tada:
bors merge


[update] Output devices as list rather than set

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

Comparison is base (94a875f) 97.61% compared to head (40ecb6c) 97.61%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   97.61%   97.61%
=======================================
  Files           2        2
  Lines          84       84
=======================================
  Hits           82       82
  Misses          2        2

Files
Coverage Δ

src/ledgered/utils/manifest.py
100.00% <ø> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Xcode 15] iOS 14.4 crashing with Realm <IP_ADDRESS>

How frequently does the bug occur?
Always
Description
Crash After Launch

Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
10.1.4
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Xcode15.  IOS14.4
Build environment
Xcode version: ...
Dependency manager and version: ...

Closing due to lack of response.


Fix CI ignoring build errors

The  customer_app/Makefile returns success status even if one of the build scripts failed.
Since CI (https://github.com/pine64/bl_iot_sdk/pull/68) uses it it always succeeds even if there were errors during compilation.

Hi @ftk, thank you very much for this! We should disable some examples since they cannot be compiled (missing some deps).

It seems the errors appear after this 3c827b2d5697d6ac495a23ee6bc6a159bad0ddf3 commit. I enabled submodules in workflow: https://github.com/ftk/bl_iot_sdk/commit/9572d0c2f75a2880615946beb4ac61349bcb1419 but it doesn't seem to help for some reason.

Seems like some .mk files got deleted in this commit which prevent mbedtls compilation by make: https://github.com/pine64/bl_iot_sdk/commit/2aa0fdd6b6251544321dfef963cef58350598d1b#diff-0574a24798cb143ae60c9a722a85ac6ccb3f3b219e9c3c692ed345f70cc30f21

Ah yes. I will try to fix it. Thanks for finding out the issue 😊


Unable to access experiments that have previously finished running

Describe the issue:
After stopping a run of experiments at one time and opening a new one, all previous experiments that have ended their run are no longer available. Neither nnictl view/resume, nnictl experiment list --all, nor Web ui interface will work.

Currently only running experiments are available, none of the previously concluded experiments are available.

And in the ~/nni-experiments directory, the results of previously run experiments are actually there.
What can I do to enable previously closed experiments to be viewed again?
Environment:

NNI version: 2.7
Training service (local|remote|pai|aml|etc):local
Client OS:ubuntu
Server OS (for remote mode only):
Python version:3.8
PyTorch/TensorFlow version:pytorch
Is conda/virtualenv/venv used?:yes
Is running in Docker?:no

Configuration:

Experiment config (remember to remove secrets!):
Search space:

Log message:

nnimanager.log:
dispatcher.log:
nnictl stdout and stderr:

How to reproduce it?:

I think your experiment meta-data file might be corrupted. The file can be found in ~/nni-experiments/.experiment. You can check whether some experiments are missing in the file. As it's a JSON file, you can expect that it's not very reliable. If you want to restore some experiments back, you can use nnictl experiment load/save.

I think your experiment meta-data file might be corrupted. The file can be found in ~/nni-experiments/.experiment. You can check whether some experiments are missing in the file. As it's a JSON file, you can expect that it's not very reliable. If you want to restore some experiments back, you can use nnictl experiment load/save.

@nnnnnzy any updates for the issue with these suggestions? thanks.


different python version with macOS Monterey

Discussed in https://github.com/BenWiseman/sentiment.ai/discussions/15

Originally posted by salvadorrdm September 18, 2022
Hi,
congratulations for the package.
I am trying to use it but get a crash in RStudio.
According to this https://stackoverflow.com/questions/71577626/issues-installing-python-3-8-10-on-macos-12-3-monterey, I had to install Python 3.8.13 as I am using macOS Monterey in a Mac with M1.
Then, I run
library(sentiment.ai)
install_sentiment.ai(python_version = "3.8.13")
And everthing is fine.
Then, I go to tools > global options > python > python interpreter and set the default interpreter as the new one I see: ~/.pyenv/versions/3.8.13/bin/python
But when I run
init_sentiment.ai()
I see this in the console

Attempting to activate virtualenv environment...
Preparing Model
Using virtual environment '/Users/salvruiz/.virtualenvs/r-sentiment-ai' ...

'/Users/salvruiz/.virtualenvs/r-sentiment-ai/bin/python' -m pip install --upgrade --no-user 'tensorflow_hub'
Requirement already satisfied: tensorflow_hub in ./.virtualenvs/r-sentiment-ai/lib/python3.8/site-packages (0.12.0)
Requirement already satisfied: protobuf>=3.8.0 in ./.virtualenvs/r-sentiment-ai/lib/python3.8/site-packages (from tensorflow_hub) (3.19.5)
Requirement already satisfied: numpy>=1.12.0 in ./.virtualenvs/r-sentiment-ai/lib/python3.8/site-packages (from tensorflow_hub) (1.19.5)
Done!

And immediately I got the picture of the bomb and the message: R session aborted etc.
I've seen in the Reference manual that it is necessary to use  Python 3.8.10 but this doesn't work in Monterey
Could anyone help? thanks a lot

As the original post, rstudio is crashing trying at the init_sentiment_ai() call.
Python version: 3.8.13
sessInfo():
R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Ventura 13.2.1
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
loaded via a namespace (and not attached):
[1] compiler_4.2.1 tools_4.2.1


can't apply conditions in one to one association

the method .populate( foreignKey, [query] ) doesn't apply the query in one to one association.
for example in a relation like this, where a video belong to a project, I can't get active project videos.
video.js
module.exports = {

  attributes: {
  	title: 'string',
  	project_id: {
  		model: 'project'
  	}
  }
};

project.js
module.exports = {
  attributes: {
  	status: 'string',
  	title: 'string'
  }
};

The call
Content
    .find()
    .populate('project_id', {'status': 'delivered'} ).exec(function(e, r) {
        ...
     })

doesn't filter the project_id association.
If waterline doesn't fully support one to one association, please document it.

You can get to this by going from the opposite side:
// Video.js
module.exports = {
  attributes: {
    title: 'string',
    project_id: {
        model: 'project'
    }
  }
};

// Project.js
module.exports = {
  attributes: {
    status: 'string',
    title: 'string',
    videos: {
      collection: 'video',
      via: 'project_id'
    }
  }
};

Project.find()
.where({ status: 'delivered' })
.populate('videos')
.exec(....)

Populates only "inflate" defined attributes.

Thank you particlebanana... I knew that workaround but I can't use it.
Actually I need to query also videos so the problem persits.
Anyway, what I highlighted is that populate doesn't work as documented, I didn't need help.

Thanks for pointing that out, I've made a pull request to make that explicit in the Sails docs.


Fix missing escape of '%' in jsonnet

Signed-off-by: Juraj Sloboda<EMAIL_ADDRESS>

Please investigate why pipeline failed:
Error: Command failed: rm -rf "/home/runner/work/kubernetes-monitoring/kubernetes-monitoring/chart"
rm: cannot remove '/home/runner/work/kubernetes-monitoring/kubernetes-monitoring/chart/charts/dnation-kubernetes-jsonnet-translator-0.1.2.tgz': Permission denied

Problem was checkout after helm/chart-testing-action, which run in docker as root and therefore checkout cannot delete its files.
Solution: move linting appVersion to separate job. PR .


Do not crash at exit if reload threads are running

If some of the download/reload threads are running, and if you hit 'q'
to exit the program, newsboat might segfault in libpthread.
In main(), stack variable goes out of scope and destructor for View
object is called, then another thread tries to access mtx member
of an already freed object, which could be garbage at this point, and
then tries to call std::mutex::lock().
0  __GI___pthread_mutex_lock (mutex=0x746c75617e)
1  0x0000555f942f96ba in __gthread_mutex_lock (__mutex=0x746c75617e)
2  std::mutex::lock (this=0x746c75617e)
3  std::lock_guardstd::mutex::lock_guard (__m=..., this=)
4  newsboat::View::set_status (this=0x746c756166, msg="")
5  0x0000555f943c867f in newsboat::Reloader::reload (this=0x555f956e9600, pos=, max=, unattended=, easyhandle=)
6  0x0000555f943c912d in newsboat::Reloader::reload_range (this=0x555f956e9600, start=, end=, size=11, unattended=false)
7  0x0000555f943c97cf in newsboat::Reloader::reload_all (this=0x555f956e9600, unattended=unattended@entry=false)
8  0x0000555f94315197 in newsboat::DownloadThread::operator() (this=0x7fa284000bb8)
9  0x00007fa28d598ed0 in std::execute_native_thread_routine (__p=0x7fa284000bb0)
10 0x00007fa28dabcea7 in start_thread (arg=)
11 0x00007fa28d2a2def in clone ()
Let's allocate View and Controller objects on the heap, so that
destructor for them won't be called. Everything will be cleaned up by
the kernel when process terminates.

Might be related to #674 and #1739.

Let's allocate View and Controller objects on the heap, so that destructor for them won't be called. Everything will be cleaned up by the kernel when process terminates.

I don't think this approach will work well for us, because Controller holds an FsLock object, and View::~View() is responsible for resetting STFL (and thus the terminal). The kernel will clean up the memory, but it can't take care of other resources we might hold.
Can't a flag be introduced which would be checked by ReloadThreads periodically? q would set this flag, and Reloader wait for threads to exit in its destructor.

Can't a flag be introduced which would be checked by ReloadThreads periodically? q would set this flag, and Reloader wait for threads to exit in its destructor.
sure, but then you would have to wait for all threads to stop when you hit q, it might take some time and a user might not be expecting it. I did not check all code, but what if a thread is stuck doing networking IO? Would this cause long delays before the program terminates after hitting q?

Yes, the user would have to wait. I think the time is bounded by the download-timeout setting (presumably the flag is checked before fetching the next feed, so the wait is bounded by the time it takes to fetch and process a single feed). It can be made less surprising to the user by displaying a message like "Waiting for reload threads to finish…"

Yes, the user would have to wait

right, I don't really like this approach, I'll see if I can come up with something better

I'd start with checking if curl_easy_perform can be aborted somehow.

I think this stalled, so closing. We have #1739 for this bug, so future PRs can be linked to that.


Add automatic JWT parsing

I have a branch where JWT are automatically parsed and viewed as JSON (instead of the base-64 string).
Here's how it looks like (note I'm going a step further and displaying the expiration date as readable date + "time until" pretty print).
Before:

After:

Would you like me to finalize it as a PR?

Hey @dutzi thanks again for another PR. Could this on click of a checkbox/button?
It's a great idea, however not all users will want this by default.
Just to note: You can click the header directly to copy it, so we can't have the click to parse there.

I've gone ahead and progressed with this one and added the parsing via double click. I'll close this issue for now, the feature will be in version 2.19.4.
Readme also updated with mouse and keyboard shortcuts.


updated logo, copyright & IDEA settings

Current coverage is 94.94%

Merging #1126 into master will decrease coverage by -0.02% as of f6d356a

@@            master   #1126   diff @@
======================================
  Files           77      77
  Stmts         9183    9183
  Branches      1726    1726
  Methods          0       0
======================================
- Hit           8721    8719     -2
- Partial         90      91     +1
- Missed         372     373     +1

Review entire Coverage Diff as of f6d356a

Powered by Codecov. Updated on successful CI builds.


build runner goes on forever and doesnt stop and does not generate the file

`
part 'moor_database.g.dart';
class Todos extends Table {
IntColumn get id => integer().autoIncrement()();
TextColumn get title => text().withLength(min: 6, max: 32)();
TextColumn get content => text().named('body')();
IntColumn get category => integer().nullable()();
}
LazyDatabase _openConnection() {
return LazyDatabase(() async {
final dbFolder = await getApplicationDocumentsDirectory();
final file = File(p.join(dbFolder.path, 'db.sqlite'));
return VmDatabase(file);

});
}
@UseMoor(tables: [Todos])
class MyDatabase extends _$MyDatabase {
MyDatabase() : super(_openConnection());
@override
int get schemaVersion => 1;
}
`
i used the above code but when i ran flutter packages pub run build_runner watch in the terminal the build_runner never stops and doesnot generates the file also
there was Bad state: Unexpected diagnostics:
/home/faizar/flutter/bin/cache/dart-sdk/lib/core/uri.dart:3259:39 - Expected an identifier.
[SEVERE] moor_generator:moor_generator on test/widget_test.dart:
that came twice in the terminal..but the build runner goes on forever

It should work if you change your dev_dependency of build_runner to ^1.10.1.


Does it support causal mask for GPT2-esque models?

For models with only Decoder-stacks, how to apply causal mask?

@miguelvictor, I looked at the causal self-attention from mingpt,
        # causal self-attention; Self-attend: (B, nh, T, hs) x (B, nh, hs, T) -> (B, nh, T, T)         att = (q @ k.transpose(-2, -1)) * (1.0 / math.sqrt(k.size(-1)))         att = att.masked_fill(self.mask[:,:,:T,:T] == 0, float('-inf'))
It looks like the causal triangle mask needs to be applied for a O(T^2) matrix.
In this case, it needs to make some changes for this model for applying causal mask.
So I wonder if you want to apply Nystromformer for the above causal self-attention?

So I have thought about it a bit, and it turns out causal masking can be computed (more or less).
If you apply a similar trick like the one describe in the performer paper (appendix B.1), you should be able to have causal masking. Basically you replace Q with the first two matrices in the Nystrom approximation.
However there's another issue, if you landmark selection can't really be causal (at least in the current setup).
So if you can figure out some landmark selection algorithm that doesn't depend on the input sequence, you might be able to obtain a causal mask.

@thomasw21, the trick can be applied here for casual masking. But I am not sure if it will work out.
For the landmarks, we do not have to use all the input sequence to compute it. It depends on the input sequence. I thought about using standard self-attention to compute first k tokens. Then we use first k tokens to compute landmarks. I am not sure if a reasonable k will work out. This needs experimental results to support.
Adding trainable parameters to learn landmark selections is a reasonable way to do. While it introduces additional (linear) number of parameters, the landmarks (trainable parameters) will be fixed for the whole input dataset, which may lead to unfavorable performance. This also needs experimental results to verify.
It will be interesting to see some results by applying the above schemes.

For the landmarks, we do not have to use all the input sequence to compute it. It depends on the input sequence. I thought about using standard self-attention to compute first k tokens. Then we use first k tokens to compute landmarks. I am not sure if a reasonable k will work out. This needs experimental results to support.

I see two small issues here:

I guess this would be work for GPT-like models (you just say that the model needs to have sequence length bigger than k). However this wouldn't work for like general seq2seq model (you can't really go from 0 to k in one step, you can to increment 1 new token for each step).
I don't see how the first k tokens would have enough knowledge to create good landmarks for a given sequence. Nothing really tells you that the first k token are expressive enough in order to have a general sense of the sentence

Adding trainable parameters to learn landmark selections is a reasonable way to do. While it introduces additional (linear) number of parameters, the landmarks (trainable parameters) will be fixed for the whole input dataset, which may lead to unfavorable performance. This also needs experimental results to verify.

Yes I'd agree here. It's unclear to me if it would work. Yet if you look at Perceiver for example, they do have this trainable parameters in order to linearise their transformer.

It will be interesting to see some results by applying the above schemes.

+1

@thomasw21, the above scheme has those two issues.
1, For seq2seq model, the above scheme does not fit. I thought one new way to do it in the below response, which may be more suitable.
2, It does not guarantee if the first k tokens would have enough knowledge to represent a given sequence. I am not sure how large k is to make it work.

@miguelvictor, @thomasw21, One suitable way to apply Nystromformer to GPT2 and seq2seq model can be decribed here.
For GPT2, the attention is softmax(QK^T + M)V, where M is a mask matrix. After applying M, softmax(QK^T) is a lower triangle matrix. In order to apply Nystromformer, we need to change the way to design M. In this case, we define 3 masks in Nystromformer, M_l, M_m, and M_r, which M_l is to make the left n x m matrix, softmax(Q\tilde{K}^T) to be a lower triangle matrix, M_m is to make the middle m x m matrix, softmax(\tilde{Q}\tilde(K}^T) to be a lower triangle matrix, M_r is to make the right m x n matrix, softmax(\tilde{Q}K^T) to be a lower triangle matrix. Since the lower triangle matrix,  softmax(\tilde{Q}\tilde{K}^T) is invertible,  its inverse is also a lower triangle matrix. In this case, all matrices in Nystromformer are lower-triangle, the output from Nystromformer is a lower triangle matrix. Therefore, Nystromformer can be used here with a linear cost.
For seq2seq, assume the first sequence length is n_1, and the second sequence length is n_2. The mask is to make (n_1 + n_ 2) x (n_1 + n_2) softmax matrix to be like (S_1, 0; S_2, S_3), where S_1 \in R^{n_1 x n_1}, S_2 \in R^{n_2 x n_1}, and the lower triangle matrix S_3 \in R^{n_2 x n_2}. In order to make Nystromformer work here, we apply Nystromformer to compute S_1 by using the first sequence, S_2 by using the first sequence and the second sequence, the lower triangle S_3 by using the second sequence with a mask similar to the above GPT application. In this way, we can fit it here. Note that we do not need to form the (n_1 + n_2) x (n_1 + n_2) softmax matrix and then do the multiplication with V. We can use the similar trick in Nystromformer for the matrix multiplication to compute output. In this way, it achieves a linear cost self-attention computation.

Hi Yunyang,
Thank you very much for this amazing work! I am still unclear about the causal mask implementation in Nystromformer. I think even if you use causal masks when computing kernel 1&2&3, in https://github.com/mlpen/Nystromformer/blob/main/LRA/code/attention_nystrom.py#L38, when you compute the landmarks, the causal condition is still violated. But for now, I don't have a good idea about designing a causal mask for nystromformer.
Please correct me if I am wrong. Thank you again!
Yuzhen


Add interface client to tasks

Enable tasks to connect to interface to respond to user inputs. Also include interface constants for tasks to interpret interface results

Increased the scope a bit to add the processing of the interface calls for the stationary tasks. Should be ok since adding hte interface calls in here

Mission planner refactored so this PR is deprecated


Mechanism for sniffing for faulty plugins

This kind of goes hand in hand with the plugins system stuff. I though - why not have QS take a note of the plugin that's causing it to crash?
Then, the next time QS launches, it can inform the user of a faulty plugin, and attempt to delete it!
There's also one pull request here that deletes several paths which I thought of as unneeded.
Basically, QS would look for plugins in these folders on launch, which I thought was unnecessary /tmp/xxx paths are 'relative to the current path' and 'relative to QS.app':
   "/Network/Library/Application Support/Quicksilver/PlugIns",     "/tmp/QS/build/Debug",     "/Library/Application Support/Quicksilver/PlugIns",     "/tmp/QS/build/Debug/PlugIns",     "/tmp/QS/build/Debug/Embedded/PlugIns",     "/private/tmp/QS/build/Debug/Quicksilver.app/Contents/PlugIns",     "/private/tmp/QS/build/Debug",     "/private/tmp/QS/build/Debug/Embedded/PlugIns",     "/Users/patrick/Library/Application Support/Quicksilver/PlugIns",     "/private/tmp/QS/build/Debug/PrivatePlugIns",     "/private/tmp/QS/build/Debug/PlugIns"
I've reduced the list down to just QS.app and the app support dir

Sorry, forgot to say:
Main downsides to this are that loading of plugins at launch take around 200ms longer, since QS is having to write to the .plist before every plugin is loaded (incase it crashes immediately after)
I think it's a small price to pay for plugin robustness :)


azureml-train-automl-client	1.4.0

Type: Missing
Summary:
azureml-train-automl-client	1.4.0
Details:
PyPi site indicates license is Other/Proprietary License (https://aka.ms/azureml-sdk-license)
Resolution:
License file in package also indicates license is Other
Affected definitions:

Microsoft.ApplicationInsights.TraceListener 2.5.0

Closing; mismatched curation and details provided. Provided info for azureml-train-automl-client 1.4.0, but curated Microsoft.ApplicationInsights.TraceListener 2.5.0, which was curated in #4786 .


Allow open loop limits in StencilKernels

This merge further hones the new kernel API to allow generic open loop bounds for dimension loops. The open-loop mode becomes the default for stencil kernels, where dimension sizes are variable and inferred during .apply() from the shape of the given array data. The existing "bake-in" behaviour can be recovered by setting explicit iteration sizes on the Dimension objects. To demonstrate, the diffusion example now uses generic loop bounds, while setting x.size = nx; y.size = ny creates the previous kernel type with constant loop bounds.
An implementation note: Since "buffered" variables, eg. "time", don't allow us to infer the full size of the t dimension from data, we now require the actual number of timesteps to be supplied at execution time through keyword args, eg. t = nt.
Development note: We are currently taking a simplifying short-cut where the open loop limit is assumed to be the same variable as the dimension size. This is insufficient for generic loop-blocking and will be further refined in follow-on work.

Sorry it took so much time to review this.
I think this is good to go, I don't have any major objections. The only think that I start wondering, as you can see from the comments above, is whether we should introduce a proper hierarchy for objects that can return a C representation of themselves . This could be useful. It doesn't need to be addressed in this PR


bug: Extension always says downloading symf and bfg; never updates the search index

Version
v1.26.7
Describe the bug
Every time I start up VS Code, I see notifications that Cody is downloading bfg and symf, and that it is updating the search index.
However, these notifications never go away.

Expected behavior
I expect the downloads to complete and the search index to be updated.
Additional context
Here's the output from Cody:
█ telemetry-v2: recordEvent: cody.extension/savedLogin
█ AuthProvider:init:lastEndpoint: Token recovered from secretStorage https://sourcegraph.com/
█ GraphQLTelemetryExporter: evaluated export mode: 5.2.5+
█ openctx: OpenCtx is enabled in Cody
█ featureflag: refreshed
█ SymfRunner: unsafeEnsureIndex file:///home/ned/PCS/Pyrenees/Chihuahua-Firmware
█ LocalEmbeddingsController: constructor
█ symf: downloading symf from https://github.com/sourcegraph/symf/releases/download/v0.0.12/symf-x86_64-linux-musl.zip
█ ContextFiltersProvider: setContextFilters
█ ChatManager:constructor: init has local embeddings controller
█ ChatPanelsManager:constructor: init
█ LocalEmbeddingsController: start
█ CodyEngineService: constructor
█ LocalEmbeddingsController: start
█ LocalEmbeddingsController: get status
█ SimpleChatPanelProvider: postContextStatus [{"displayName":"Chihuahua-Firmware","providers":[{"kind":"embeddings","state":"indeterminate","embeddingsAPIProvider":"sourcegraph"}]}]
█ RepoNameResolver:getCodebaseFromWorkspaceUri: error
█ SimpleChatPanelProvider: postContextStatus [{"displayName":"Chihuahua-Firmware","providers":[{"kind":"embeddings","state":"indeterminate","embeddingsAPIProvider":"sourcegraph"},{"kind":"search","type":"local","state":"indexing"}]}]
█ CodyEngine: downloading bfg from https://github.com/sourcegraph/bfg/releases/download/v5.4.6040/bfg-linux-x64.zip
█ ClientConfigSingleton: refreshing configuration
█ ClientConfigSingleton: refreshed {"codyEnabled":true,"chatEnabled":true,"autoCompleteEnabled":true,"customCommandsEnabled":true,"attributionEnabled":false,"smartContextWindowEnabled":true,"modelsAPIEnabled":false}
█ CodyCompletionProvider:initialized: fireworks/deepseek-coder-7b
█ UpstreamHealth: Ping took 1068ms (Gateway: 978ms)
█ SimpleChatPanelProvider: postContextStatus [{"displayName":"Chihuahua-Firmware","providers":[{"kind":"embeddings","state":"indeterminate","embeddingsAPIProvider":"sourcegraph"},{"kind":"search","type":"local","state":"indexing"}]}]

I have tried uninstalling and reinstalling the extension.

Thanks @ned-pcs I will let the product team know now. How large is the repo (files and size)

My ~/.config/Code/User/workspaceStorage directory does not include a sourcegraph.cody-ai directory. All of its directories have hex names. And none of those directories include a symf or cody-engine directory.

Ok, I think I have something. For some reason the version naming scheme seems to have changed. I'm investigating now

Ok, that's great. You are correct that it's the globalStorage directory; I mixed it up when looking up the linux directory online (I'm on macOS). Thanks for taking the time to get those details regardless, it helps a lot!
The process for downloading looks like this:

Check if the correct version exists
Have processes race to make a .lock file so nobody else is downloading at the same time (we've eliminated that this has become stale causing the issue ✅ )
Download release from GitHub to .tmp dir
Unpack the binary in the zip to a file named the same as the lockfile but without the .lock

So if we now first check if there's a zip file inside the .tmp dir we can see if there's a problem with the downloading or the unpacking. Could you check this?
If there are zip files in there we can verify they're the same as if manually downloaded from https://github.com/sourcegraph/bfg/releases/download/v5.4.6040/bfg-linux-x64.zip and https://github.com/sourcegraph/symf/releases/download/v0.0.12/symf-x86_64-linux-musl.zip
If they are, then we can verify if installing them manually resolves things. You can do this by unzipping the archive and copying the contents to the directory where the lockfiles are. Then you rename the binary to match the lockfile name (without .lock), remove the lockfile and tmp dir, and restarting VSCode. If that works then there's some problem in unpacking these archives.
In the meantime I'll make sure to add some better error handling / reporting on these downloads

I also just noticed in the download code https://sourcegraph.com/github.com/sourcegraph/cody/-/blob/vscode/src/local-context/download-symf.ts?L113-171 that I added a different message for when it's extracting vs. downloading.
Given that the image you sent shows "downloading" I'm guessing that for whatever reason https://sourcegraph.com/github.com/sourcegraph/cody/-/blob/vscode/src/local-context/utils.ts?L38-49 isn't getting resolved.
I'm looking into why we're not receiving a finish signal.

OK, after clearing out the cody-engine and symf dirs and restarting VS Code, I see no trace of bfg in the cody-engine dir. However,  there are partial cody-engine and symf zip files there:
536768 Jul 25 09:03 ./cody-engine/cody-engine-5.4.6040-linux-x64.tmp/cody-engine-5.4.6040-linux-x64.zip
278201 Jul 25 09:03 ./symf/symf-v0.0.12-x86_64-linux.tmp/symf-v0.0.12-x86_64-linux.zip

I don't have the download link for the cody-engine zip file; I could try unpacking that plus the bfg zip in the cody-engine dir, and the symf zip in the symf dir if that's what is needed.

Thanks @ned-pcs I will let the product team know now. How large is the repo (files and size)

This is a repo containing submodules; most of the files are not of interest, but overall there are:
53290 C files
4369 Python files
2173 Javascript files
as well as a number of miscellaneous binary blobs, documents, and other things.

I don't see how to limit the scope of the search.

Ok I think the indexing is separate from the downloading / installation issue. I'll create a separate internal issue for it so we can get the right people looking at that one.
For the downloading; I think the issue might be that for some reason the previous request might have gotten interrupted and there were partial files left that prevented writing. This could maybe happen if VSCode restarted right as it was downloading. Alternatively...did you at any point start VSCode as sudo? I'll need to dig a little deeper to form a bit more solid theory.
The "cody-engine" is this file https://github.com/sourcegraph/symf/releases/download/v0.0.12/symf-x86_64-linux-musl.zip , it's just named differently. And although it will check for the latest versions every time you open Cody it won't re-download it if it's already available.


pull request for e2e test at 01/12/2017 17:56:08

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Timeout on build and deploy

Hi,
I have a large site with gatsby and lot of images.
When I try to deploy using GitHub Actions, I always have a timeout problem with Oryx
Oryx has timed out while building app, the current limit is 900 seconds. Failing build.
Is there any way to increase 900 seconds limit timeout? It's not enough for my site buiding.

Hi @adiazcan, we put this limit here to avoid build errors resulting in extra Github Action costs (private/org repos). Can you answer 2 quick questions?

Locally how long does it take to build your application? Is 900+ seconds expected?
How large is the application once built? We currently have a 100 MB limit and I'd expect you may hit that if your site is especially large.

Hi @miwebst
We are working to migrate our web magazine from SharePoint to Gatsby http://www.compartimoss.com/

It tooks about 30 minutes to build, we have more than 9000 images and more than 400 static html pages and gatsby has to generate all the thumbnails and pages.
Our application has 43,4 MB

How can we publish it?

I see! Ok in that case we probably want to keep this safety for other cases but add a workflow configuration so you can adjust it if your build takes longer. We will plan something for this and get back to you. Sadly right now there isn't a quick workaround

Ok, let me know If I can help/test this new version

Hi @miwebst
any plan to support more minutes on build? or can we deploy directly without build?

So we actually just added a configuration that you can add to the build and deploy step of your workflow step. Here is an example:
    app_location: 'app' # App source code path
    api_location: 'api' # Api source code path - optional
    app_artifact_location: 'build' # Built app content directory - optional
    build_timeout_in_minutes: 15

You may see an error saying there is an unrecognized input, that is just because we havent added it to our official GitHub Action and docs yet.
Valid values for the build timeout are 1 - 1440 minutes (although GitHub Actions may timeout before then)

@miwebst with build_timeout param my site compiled but I found another problem that you mentioned early, I have more than 4000 files on my site. exactly I have 13229 files, so the Github Action fail for this reason.
Any way to avoid this problem?

Ah I was afraid of this, yes we currently are limiting the number of files during preview to 4k files. I'm surprised that you are running into this limit and not the 100 MB limit. In either case, we currently will reject this application. These limits are in part a way for us to judge the needs of the community and we will be evaluating them as we head for general availability.

ok, we'll move to another service because we want to go live on one or two weeks

Sorry to hear that, we will be changing these limits as we get to GA, I appreciate you trying out the product though!

Hi @miwebst
any plan for GA? Do you have any date? Can we see the GA limits?
I want to try again with this service and our site.

@anthonychu can probably provide better answers on GA date. As for limits, I wont publish anything right now but we will be able to support 13k files at that time.

Best date we can provide right now is the first half of this year.

Best date we can provide right now is the first half of this year.

Hi @anthonychu hope you're having a great weekend!
do you know when  build_timeout_in_minutes: 15 will be GA? I just tried to set it to 30 and Oryx build timed out after 15 min.  Is there an updated version number of the AzureDevops Pipeline Task?
`Starting: AzureStaticWebApp
Task         : Deploy Azure Static Web App
Description  : [PREVIEW] Build and deploy an Azure Static Web App
Version      : 0.187.2
Author       : Microsoft Corporation
Help         : https://aka.ms/swadocs
==============================================================================`
Oryx has timed out while building app, the current limit is 15 minutes. Failing build.

It should be available after the updated task is rolled out. A member of the Azure DevOps team chimed in on https://github.com/Azure/static-web-apps/issues/642#issuecomment-985804112 with the release progress.

It should be available after the updated task is rolled out. A member of the Azure DevOps team chimed in on https://github.com/Azure/static-web-apps/issues/642#issuecomment-985804112 with the release progress.

Thanks dude! Super happy, greatful & excited! You rock!

The updated task should be available now. Also added this parameter to the docs:
https://docs.microsoft.com/en-us/azure/static-web-apps/build-configuration?tabs=github-actions#extend-build-timeout

The updated task should be available now. Also added this parameter to the docs:
https://docs.microsoft.com/en-us/azure/static-web-apps/build-configuration?tabs=github-actions#extend-build-timeout

Perfect thank you. Yes I got it working on all of my apps. I had to set it to 45 minutes :). Thanks!!

Unexpected input(s) 'build_timeout_in_minutes', valid inputs are ['entryPoint', 'args', 'action', 'app_location', 'azure_static_web_apps_api_token', 'api_build_command', 'api_location', 'app_artifact_location', 'output_location', 'app_build_command', 'repo_token', 'routes_location', 'skip_app_build', 'config_file_location', 'skip_api_build', 'production_branch', 'deployment_environment', 'is_static_export']
https://github.com/Azure/static-web-apps-deploy/blob/v1/action.yml
Am I missing something?


[feature] Compliance visitor data request plugin

Addresses #1073
Message thread with attachments:

Acceptance criteria 📋

General regression: Email + attachments to multiple recipients
General regression: receiving emails
Feature validation: visitors are able to request their data on nikean.org

⚠  verified safe on Heroku so I'm temporarily deploying this branch to nikean.org --
@Ayon95 please add documentation to the description on the PR once you verify this in production


Replace initializers for auto-properties

This commit replaces an auto-property with an initializer with a
property backed by a field. This ensures compatibility with C# 3.0 and
.NET 3.5.

@ThomasBarnekow,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


opencontrail: don't mix with vgw on devstack

When vgw is used it has also type of vhost and it might be discovered
first in place of vhost0. In that case tap interfaces will not be linked
in the topology.

test this

test this

test this

test this

test this

test this

test this

ok to test


Separate unit tests and integration tests

Background
Currently, the whole test run usually takes around 40s, which is not ideal. The main reason is that jest-pdf-snapshot has integration tests in which we run yarn install and yarn test. We don't need to run such as heavy-weight tests every once.
Goal

Make yarn test run only unit tests
Provide another command to run integration tests

jest-runner-groups seems to be good solution. (cf. Separating unit and integration tests in Jest)


Uncaught Error: EBUSY: resource busy or locked, open 'C:\Users\Emklos\ntuser.dat.LOG1'

Hi All,

I installed the plugin.
When I tried to open tasks the following errors appeared:

Atom Version: 1.7.3
System: Microsoft Windows 10 Pro
Thrown From: imdone-atom package, v1.3.29
Stack Trace
Uncaught Error: EBUSY: resource busy or locked, open 'C:\Users\Emklos\ntuser.dat.LOG1'
At fs.js:584

Error: EBUSY: resource busy or locked, open 'C:\Users\Emklos\ntuser.dat.LOG1'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:159:20)
    at Function.module.exports.sync (C:\Users\Emklos\.atom\packages\imdone-atom\node_modules\imdone-core\node_modules\read-chunk\index.js:34:14)
    at C:\Users\Emklos\.atom\packages\imdone-atom\node_modules\imdone-core\lib\mixins\repo-fs-store.js:104:31
    at FSReqWrap.oncomplete (fs.js:82:15)

Commands
     -1:29.1.0 imdone-atom:todays-journal (atom-text-editor.editor.mini.is-focused)
     -1:27.5.0 imdone-atom:tasks (atom-text-editor.editor.is-focused.power-mode)
     -0:34.9.0 imdone-atom:todays-journal (atom-text-editor.editor.power-mode.is-focused)
     -0:32.8.0 imdone-atom:tasks (atom-text-editor.editor.power-mode.is-focused)
  3x -0:20.4.0 core:backspace (atom-text-editor.editor.power-mode.is-focused)
     -0:17 editor:newline (atom-text-editor.editor.power-mode.is-focused)
  3x -0:16.4.0 core:backspace (atom-text-editor.editor.power-mode.is-focused)
     -0:15.4.0 editor:newline (atom-text-editor.editor.power-mode.is-focused)
     -0:12.5.0 imdone-atom:tasks (atom-text-editor.editor.power-mode.is-focused)

Config
{
  "core": {
    "disabledPackages": [
      "linter-write-good"
    ]
  },
  "imdone-atom": {
    "showNotifications": true,
    "showTagsInline": true,
    "todaysJournal": {
      "dateFormat": "DD-MM-YYYY",
      "monthFormat": "MM-YYYY"
    }
  }
}

Installed Packages
# User
activate-power-mode, v0.5.2
imdone-atom, v1.3.29
linter, v1.11.4
linter-alex, v3.0.0
linter-proselint, v3.0.1
minimap, v4.24.0
project-manager, v2.9.7

# Dev
No dev packages

This happens because a file is not able to be accessed.  I'll fix the handling of the exception in the next release.  Did you intend for imdone to look at your entire home folder?  My guess is no, but if you did, do you need it to look at ntuser.dat.LOG1?  If not, then add an .imdoneignore file.

Is this still an issue?


Descriptions missing?

Is it possible to get item descriptions set? I believe the old API had that available. I haven't gotten a working API key for the new version yet to see if this is data that can be gotten. Thanks!

Does this still use the old API key instead of the new Application Secret?

I think I understand it now - based on how you're getting the segments, there isn't a description to show, since there's none on the page.


fix:If join a node fail, it will be stored in ClusterFile and can't join it again

fix:If join a node fail, it will be stored in ClusterFile and can't join it again
Signed-off-by: zhy76<EMAIL_ADDRESS>
Describe what this PR does / why we need it
fix:If join a node fail, it will be stored in ClusterFile and can't join it again, unless remove it from ClusterFile manually
Does this pull request fix one issue?

#1802
Describe how you did it
At the beginning of the sealer join cmd,I store the default Clusterfile,if there exits an error,restore the ClusterFile to the default file,the second defer func will infect the first defer func and the value of 'err',so I change it to 'e'.
Describe how to verify it
I have made some tests,if cmd fail,the Clusterfile will be the default one:
before sealer join:

executing sealer join:

if sealer join cmd fail,the Clusterfile will be the default:

Special notes for reviews

OK,I'll fix it

Codecov Report
Base: 21.75% // Head: 21.72% // Decreases project coverage by -0.02% :warning:

Coverage data is based on head (54b2780) compared to base (f21cbb8).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1823      +/-   ##
==========================================
- Coverage   21.75%   21.72%   -0.03%
==========================================
  Files          72       72
  Lines        6554     6563       +9
==========================================
  Hits         1426     1426
- Misses       4942     4951       +9
  Partials      186      186

Impacted Files
Coverage Δ

pkg/clusterfile/clusterfile.go
35.63% <0.00%> (-4.12%)
:arrow_down:

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

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

@kakaZhou719 @VinceCui @Stevent-fei PTAL


UI - Make headings with links in red

See https://www.ssw.com.au/rules/do-you-know-the-8-steps-to-scrum
Most of the headings in that page are links, but #5.
As per my conversation with @jaydenalchin a heading should still be red even if it is a link.

Please fix CSS

AB#63292

@jaydenalchin
Hi @tiagov8,

Please fix CSS

Done - see screenshot

Figure: Headings with links now red like other headings


prefer AUIPC over CSRR for debug pcc access

First, I hope we can agree that csrr rd, pcc and auipc rd, 0 have exactly the same architectural effect in all non-Legacy execution modes in which they are supported, so any core which implements one can implement the other with, at worst, decoder changes.  The only reasons to prefer one over the other are opcode space allocation and naturalness for various implementation strategies.
Opcode space favors auipc - pcc as a CSR represents 6*1024 opcodes, of which 128 are redundant with cases of auipc and the rest are always illegal.
Rocket and NOEL-V provide the pc to the CSR write procedure solely for the purposes of validating misa.C writes.  BOOM does not even have the pc as part of the micro-op; CSR writes only have access to the pc as a side effect of the fact that BOOM currently implements all CSR instructions as machine-serializing, so the pc of the CSR instruction is the same as the ROB commit pc.
I can't think of any implementation strategy which would preclude providing an arbitrary value of pcc with known metadata to auipic instructions during debug halt, but which would allow CSR reads of pcc under the same conditions.  Please advise.
Another option would be for x0 to read as an Infinity capability in debug mode; this would prevent hartinfo.dataaccess=1 (data registers shadowed within 2 KiB of x0) from being useless in a CHERI environment.

First, I hope we can agree that csrr rd, pcc and auipc rd, 0 have exactly the same architectural effect in all execution modes in which they are supported

I'm not sure I agree? This prompted me to consider what CSRR rd, pcc means and raise https://github.com/riscv/riscv-cheri/issues/92. Regardless, when CSRR cd, pcc does exist in a way that reads the full capability, it should do so in legacy mode, whereas AUIPC rd, 0 should only get the metadata in capability mode (when it is in fact auipcc cd, 0)?

Ignore Legacy mode for now - I'm trying to separate the Legacy mode and debug mode uses of the pcc CSR name.

Stepping back a little, the purpose of PCC in a CSR is for debuggers to get a hold of its value.
Recall that entering debug mode causes PCC to be set to Infinite capability. And that debuggers will need a source of authority, for example, to perform memory access particularly when only implementing Zcheri_purecap and there is no ddc. In this case, you need to get your source of authority from somewhere and a way is to provide access to PCC which is set to Infinite when entering Debug mode. However, the problem is that the debug spec allows implementations to not support executing PC relative instructions from the program buffer (like AUIPCC) and this is a very common implementation choice. So the solution currently in the spec is to expose PCC as a CSR so the debugger can simply do csrr cd, pcc to get that source of authority.
There are a couple of alternative ways (inspired from @arichardson comment here) to provide that source of authority:

Add a debug-only instruction, like dret, that outputs Infinite cap when executed (e.g. DGETINFINITECAP cd)
Add a new read-only, debug-only CSR number that always return infinite cap when (read instead of PCC!)

My preference is (2) because its generally easier to add CSRs than instructions. What do you think @sorear @arichardson @PeterRugg ?

See https://github.com/riscv/riscv-cheri/pull/113

I agree, (2) is fine: it seems neater to have an always-almighty as opposed to shoehorning it into PCC. Note that the original reason that PCC existed in ISAv9 was to facilitate mode switching from legacy mode, but that's no longer an issue, as discussed elsewhere.

(1) and (2) are both fine for me.  (I have an infinitesimal preference for (1) due to less opcode space usage.)

Another idea would be to make c0 read as Infinity in debug mode; rocket's implementation uses dataaccess=1 and depends internally on being able to access memory relative to x0 as part of the Debug ROM.


PFFile set to nil remains as PFDeleteOperation

Given a PFObject subclass Place, with a PFFile? var photoImage, the photoImage of an instance of Place is removed:
place.photoFile = nil
self?.place.saveInBackgroundWithBlock() { (_, _) in
    print(place.photoFile)
}

Expected: console logs nil
Actual: console logs Optional(delete)
The photoFile is in fact empty when viewed in the Parse Dashboard, but as best as I can tell, the photoFile on the Place in memory is a PFDeleteOperation. Given that execution waited for the deletion to save, this is unexpected and problematic. Imagine a PFImageView that is loaded based on the presence of the photoImage:
if let photoFile = place.photoFile {
    cell.photoImageView.file = photoFile
    cell.photoImageView.loadInBackground()
    }

This is no longer safe. Since the deleted photoImage is not the expected nil, this code crashes attempting to load it:
-[PFDeleteOperation url]: unrecognized selector sent to instance 0x7ffaab79c060
This issue can be worked around by setting the image to nil a second time after saving:
place.photoFile = nil
self?.place.saveInBackgroundWithBlock() { (_, _) in
    print(place.photoFile)
    place.photoFile = nil
}

Expected: console logs nil
Actual: console logs nil

Interestingly, this issue does not occur if replacing this line from the PFSubclassing file:
@NSManaged var photoFile: PFFile?
with:
	var photoFile: PFFile? {

		get {
			if let photoFile = self["photoFile"] as? PFFile {
				return photoFile
			}
			return nil
		}
		set {
			self["photoFile"] = newValue ?? NSNull()
		}
	}

This was fixed by updating parse-server from 2.2.12 to 2.2.17.


lnrpc+lncli: add send support for custom data records

With the introduction of custom record sending and receiving, it became possible to attach arbitrary data to a payment. One obvious use case is attaching a human-readable message to a payment. Especially in the case of spontaneous key send payments, this can give the receiver some context on the payment.
For example: tipping. Usually people sending a tip would want to include some information on who they are or what the tip is for. For Lightning this may be even more desired than for other payment methods, because payments are anonymous by default.
Attaching and retrieving the message was already possible before, but this PR makes it easier to do so by introducing an additional lncli flag --data to attach one or more custom records:
lncli sendpayment -d 0274e7fb33eafd74fe1acb6db7680bb4aa78e9c839a6e954e38abfad680f645ef7 -a 100 --key_send --data 323442=00,3234556=ffff080812
To specify a string value, the standard command line tool xxd can be used (the example record id here is the 3-byte ascii string 'tip' converted to an integer):
--data 7629168=$(echo -n "Thank you!" | xxd -pu -c 10000)
(The -c parameter is to prevent xxd from inserting line breaks)
Note: The available onion blob space of 1300 bytes is used for routing info and custom records. The bigger the size of the custom records, the fewer bytes remain for routing info and the shorter the maximum route length will be.

Message record id updated to a different random number.
My thought was that if we don't pick a field and provide a few hooks to make it easy to use (string flag on lncli and string type invoice htlc field), payment messages are less likely to be used. The payment message functionality can serve as a demonstrator of everything else that is possible using custom records. it seemed nice to me to get people thinking about that.
But as @Roasbeef suggests, we can also generalize this to just a new lncli flag. But the question there is what a good format is. Any thoughts on that?
lncli sendpayment --data=34378273:"hello world!",124343:0feab32827cba23
It gets complicated with the spaces and special chars. Also not sure what different shells do there. In my bash, at least the data argument comes through as one block, but the quotes have disappeared.

Removed hard-coded record and replaced by generic --data flag.

With the introduction of custom record sending and receiving, it became possible to attach arbitrary data to a payment. One obvious use case is attaching a human-readable message to a payment. Especially in the case of spontaneous key send payments, this can give the receiver some context on the payment.
For example: tipping. Usually people sending a tip would want to include some information on who they are or what the tip is for. For Lightning this may be even more desired than for other payment methods, because payments are anonymous by default.
Attaching and retrieving the message was already possible before, but this PR makes it easier to do so by introducing an additional lncli flag --data to attach one or more custom records:
lncli sendpayment -d 0274e7fb33eafd74fe1acb6db7680bb4aa78e9c839a6e954e38abfad680f645ef7 -a 100 --key_send --data 323442=00,3234556=ffff080812
To specify a string value, the standard command line tool xxd can be used (the example record id here is the 3-byte ascii string 'tip' converted to an integer):
--data 7629168=$(echo -n "Thank you!" | xxd -pu -c 10000)
(The -c parameter is to prevent xxd from inserting line breaks)
Note: The available onion blob space of 1300 bytes is used for routing info and custom records. The bigger the size of the custom records, the fewer bytes remain for routing info and the shorter the maximum route length will...

This is the only method to send a message over lightning?
There is a short command method like a standard?

Currently yes, there is no standardized way of sending messages apart from these custom data records. Note that this require sender and receiver to be aware of the record type and format. There isn't any BOLT standard on how to do so, though some folks have implemented their own protocols on top of this primitive. Personally I wouldn't expect to see a messaging standard integrated into LND any time soon given now nascent these higher-level specifications are.

Dear lnd developers @Roasbeef @cfromknecht,
I am investigating custom data records attached to a Lightning Payment as should be available in lnd with this PR #3900. Thank you for that!
@joostjager was mentioning:

Note: The available onion blob space of 1300 bytes is used for routing info and custom records. The bigger the size of the custom records, the fewer bytes remain for routing info and the shorter the maximum route length will be.

Do you have an idea or experience, how many bytes can be consumed by the custom_records field and still getting a routeable onion payment? Do you have an estimate x if one wants to route a payment with custom data record via y hops, there usually remain 1300/y*x bytes for the data?
Can you point me to any sources to learn more on that? Any other way to transport encrypted custom data with a lightning payment, maybe compatible with other lightning implementations?
Thank you!
Cheers, Martin

Perhaps you could constrain your route length to about the diameter of the network, lncli getnetworkinfo shows me a value of 12, or a bit less, which should be plenty. Here some comment about the maximal number of hops in an onion.

Perhaps you could constrain your route length to about the diameter of the network, lncli getnetworkinfo shows me a value of 12, or a bit less, which should be plenty. Here some comment about the maximal number of hops in an onion.

Thanks @bitromortac  for your hint. If I understand your mentioned comment correctly, in a route with x non-exist hops there should remain at most 1300-37-x*65 bytes for a custom data record (assuming larger legacy hop payloads), right?

Right, but you can assume a base data size of 47 bytes as legacy onions will be phased out soon. If no other data is transported in there this should be the limit.

If I make a payment using lncli payinvoice ... --data 65536=$myuniquehex, is there any way to (later) easily find all payments that matches that hex?
Listing all payments (lncli listpayments) and manually comparing the hex is not the ideal solution when you might have hundreds of thousands of payments but only 5-10 has $myuniquehex. Any advise?


Datasets used for YOLOv4 head detection training

Hello,
Was the YOLOv4 head detection model trained on the same datasets as YOLOv3 from this repository, or were different datasets used?
Thank you!

Yes.


Update all.json

Site
URLScan link

liveappsaccess.com
https://urlscan.io/result/5a4741db-8583-402b-bd42-d87088cd54b4/dom

"app-erty.online",
"authorizedefi.network",
"dapps-validation.org",
"kwagh.click",
"netrectification.com",
"synchronization.online",
"syncwalletdapps.net",
"tpocket.bet",

WIP, adding some screenshots and URLscans, thanks for the approval


Debugging SourceBrowser.Site Intermittently breaks in VS 2015

Both myself and @AmadeusW have had issues debugging SourceBrowser in Visual Studio 2015. Occasionally, we won't be able to inspect variables and adding a watch displays the error message:

error CS1703: Multiple assemblies with equivalent identity have been imported: 'Microsoft.Build.Framework.dll' and 'Microsoft.Build.Framework.dll'. Remove one of the duplicate references.

Within Roslyn this message appear to be found here: http://source.roslyn.codeplex.com/#Microsoft.CodeAnalysis/ReferenceManager/CommonReferenceManager.Resolution.cs,628
I'm creating this issue to see if any other contributors notice this problem. If so, please report it here and we'll try to repro for the Roslyn team.

Have you seen this recently @AmadeusW? It seemed to stop for me...

I've followed steps from Microsoft's support email:

It seems that you are hitting an issue that. Let’s see if reverting to the old EE helps clear your issue:  Debug/Options/General -> Use the legacy C# and VB expression evaluators (you can find details on the above blog post as well).

Did you follow the same steps? I think I've forwarded you that email.

I didn't even do that, but I still haven't encountered this bug in weeks. I'm going to close it and we'll reopen it if we see it again.

Sounds good, let's keep the issue list clean


Update types and factories for VLAN Adjustments

Description
Update the types and factories as per the new VLAN API adjustments.
Type of Change]

Non breaking change ('update', 'change')

To-Do:

[x] Get mock Configs populating in Linode Configs table

Going ahead and removing the WIP label.
With regards to the hard-coded IDs in linodeConfigs.ts and serverHandlers.ts, I tried using Factory.each((i) => i) but it was either causing a TS error or mismatching the data in such a way that the Network Interfaces column was empty


add persistence.existingClaim

Fixes #55

LGTM.
Merging. It will be available in the next release.


[IMPROVE] get_income_statement returns inaccurate results

Hi! I have been validating get_free_cash_flow_yield ratio and can see that for some tickers it is not accurate.
Example:
If i try to get ratio for HYMTF in the following way:
companies = Toolkit(
	tickers=tickers,
	api_key=FMP_KEY,
	start_date="2019-12-21",
	quarterly=False,
	# historical_source='YahooFinance',
)
print(companies.ratios.get_free_cash_flow_yield())

the result is:
date       2019      2020      2021     2022
HYMTF -294.1981 -298.0033 -330.6268 411.7727

but it cannot be larger than 1, right?
looking at the income statements, the Weighted Average Shares seems to be incorrect:
date                                                  2019          2020          2021           2022
Revenue<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>00.0
Cost of Goods Sold<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0
Gross Profit<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0
Gross Profit Ratio                                  0.0002        0.0002        0.0001         0.0002
Research and Development Expenses<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0
General and Administrative Expenses<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0
Selling and Marketing Expenses<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0
Selling, General and Administrative Expenses<PHONE_NUMBER>.0<PHONE_NUMBER>0.0<PHONE_NUMBER>.0<PHONE_NUMBER>0.0
Other Expenses<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0
Operating Expenses<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0
Cost and Expenses<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0<PHONE_NUMBER>00.0
Interest Income                                461336400.0   361212300.0   278890400.0    511373600.0
Interest Expense                               285281100.0   326139300.0   243633600.0    428868800.0
Depreciation and Amortization<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0
EBITDA<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>0.0<PHONE_NUMBER>0.0
EBITDA Ratio                                        0.0001        0.0001        0.0001         0.0001
Operating Income<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0
Operating Income Ratio                                 0.0           0.0           0.0         0.0001
Total Other Income                             502434900.0  -271273500.0<PHONE_NUMBER>.0    902539200.0
Income Before Tax<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0
Income Before Tax Ratio                                0.0           0.0        0.0001         0.0001
Income Tax Expense                             880308000.0   151832700.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0
Net Income<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0<PHONE_NUMBER>.0
Net Income Ratio                                       0.0           0.0           0.0            0.0
EPS                                                 5.0895         3.316        7.5916        11.4084
EPS Diluted                                         5.0895         3.316        7.5916        11.4084
Weighted Average Shares                         474278.355<PHONE_NUMBER><PHONE_NUMBER><PHONE_NUMBER>
Weighted Average Shares Diluted                 474278.355<PHONE_NUMBER><PHONE_NUMBER><PHONE_NUMBER>

while directly querying FMP endpoint https://financialmodelingprep.com/api/v3/income-statement/HYMTF gives more reasonable results at least for share count:
  {
    "date": "2022-12-31",
    "symbol": "HYMTF",
    "reportedCurrency": "KRW",
    "cik": "0000000000",
    "fillingDate": "2022-12-31",
    "acceptedDate": "2022-12-31 00:00:00",
    "calendarYear": "2022",
    "period": "FY",
    "revenue":<PHONE_NUMBER>00000,
    "costOfRevenue":<PHONE_NUMBER>00000,
    "grossProfit":<PHONE_NUMBER>0000,
    "grossProfitRatio": 0.1986847805,
    "researchAndDevelopmentExpenses":<PHONE_NUMBER>000,
    "generalAndAdministrativeExpenses":<PHONE_NUMBER>000,
    "sellingAndMarketingExpenses":<PHONE_NUMBER>0000,
    "sellingGeneralAndAdministrativeExpenses":<PHONE_NUMBER>0000,
    "otherExpenses":<PHONE_NUMBER>000,
    "operatingExpenses":<PHONE_NUMBER>0000,
    "costAndExpenses":<PHONE_NUMBER>00000,
    "interestIncome":<PHONE_NUMBER>00,
    "interestExpense":<PHONE_NUMBER>00,
    "depreciationAndAmortization":<PHONE_NUMBER>000,
    "ebitda":<PHONE_NUMBER>0000,
    "ebitdaratio": 0.1175501492,
    "operatingIncome":<PHONE_NUMBER>000,
    "operatingIncomeRatio": 0.0688973467,
    "totalOtherIncomeExpensesNet":<PHONE_NUMBER>000,
    "incomeBeforeTax":<PHONE_NUMBER>0000,
    "incomeBeforeTaxRatio": 0.0768128278,
    "incomeTaxExpense":<PHONE_NUMBER>000,
    "netIncome":<PHONE_NUMBER>000,
    "netIncomeRatio": 0.0516697633,
    "eps": 14260.5,
    "epsdiluted": 14260.5,
    "weightedAverageShsOut": 399470516,
    "weightedAverageShsOutDil": 399470516,
    "link": null,
    "finalLink": null
  },

do you have any ideas what's the issue here?
Thanks!

Ah!! The issue here is that I automatically convert financial statements based on their currency. E.g. in this case I'd convert the statement to USD given that the historical data is also in USD (so any calculation that would use both actually works). This is also very relevant when you wish to compare companies.
However, as the Income Statement contains the shares as well, which is not defined in a currency, this falsely alters these numbers. For now, disable this please by setting convert_currency=False within the Toolkit initialization.
Thanks for bringing this up, I'll fix this issue this week.

Thank you, I tried this, the income statement now matches the FMP endpoint output:
date                                                      2019              2020              2021              2022
Revenue<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0
Cost of Goods Sold<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>00000.0
Gross Profit<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0
Gross Profit Ratio                                       0.167            0.1777            0.1865            0.1987
Research and Development Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
General and Administrative Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Selling and Marketing Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>0000.0
Selling, General and Administrative Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0
Other Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Operating Expenses<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0
Cost and Expenses<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0
Interest Income<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0
Interest Expense<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0
Depreciation and Amortization<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
EBITDA<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0
EBITDA Ratio                                            0.0799            0.0655            0.1092            0.1176
Operating Income<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Operating Income Ratio                                  0.0341             0.023            0.0568            0.0689
Total Other Income<PHONE_NUMBER>00.0   -301415000000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Income Before Tax<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>0000.0
Income Before Tax Ratio                                 0.0394            0.0201            0.0677            0.0768
Income Tax Expense<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Net Income<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Net Income Ratio                                        0.0282            0.0185             0.042            0.0517
EPS                                                     5655.0           3684.44            9489.5           14260.5
EPS Diluted                                             5655.0           3684.44            9489.5           14260.5
Weighted Average Shares                            526975950.0       522345435.0       520823647.0       399470516.0
Weighted Average Shares Diluted                    526975950.0       522345435.0       520823647.0       399470516.0

however companies.ratios.get_free_cash_flow_yield() is still inaccurate:
date       2019      2020      2021     2022
HYMTF -294.1981 -298.0033 -330.6268 411.7727

Thank you, I tried this, the income statement now matches the FMP endpoint output:
date                                                      2019              2020              2021              2022
Revenue<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0
Cost of Goods Sold<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>00000.0
Gross Profit<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0
Gross Profit Ratio                                       0.167            0.1777            0.1865            0.1987
Research and Development Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
General and Administrative Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Selling and Marketing Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>0000.0
Selling, General and Administrative Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0
Other Expenses<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Operating Expenses<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0
Cost and Expenses<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0<PHONE_NUMBER>00000.0
Interest Income<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0
Interest Expense<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0
Depreciation and Amortization<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
EBITDA<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>0000.0<PHONE_NUMBER>0000.0
EBITDA Ratio                                            0.0799            0.0655            0.1092            0.1176
Operating Income<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Operating Income Ratio                                  0.0341             0.023            0.0568            0.0689
Total Other Income<PHONE_NUMBER>00.0   -301415000000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Income Before Tax<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>0000.0
Income Before Tax Ratio                                 0.0394            0.0201            0.0677            0.0768
Income Tax Expense<PHONE_NUMBER>00.0<PHONE_NUMBER>00.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Net Income<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0<PHONE_NUMBER>000.0
Net Income Ratio                                        0.0282            0.0185             0.042            0.0517
EPS                                                     5655.0           3684.44            9489.5           14260.5
EPS Diluted                                             5655.0           3684.44            9489.5           14260.5
Weighted Average Shares                            526975950.0       522345435.0       520823647.0       399470516.0
Weighted Average Shares Diluted                    526975950.0       522345435.0       520823647.0       399470516.0

however companies.ratios.get_free_cash_flow_yield() is still inaccurate:
date       2019      2020      2021     2022
HYMTF -294.1981 -298.0033 -330.6268 411.7727

Hi! This is correct given that the stock price is in USD (which is used to calculate the market cap) and the financial statement is KWD.  Please wait for the fix.

Alright, I have adjusted the income statement so that the weighted shares are not adjusted by the currency. What is good to note in this case is that it is better to find the ticker in which both financial statements and historical data line up. For example, "Hyundai Motor Company" reports their financial statements in KRW however the ticker you have chosen is the ticker as shown on the American exchange. This means that the historical market data is depicted in USD.
I automatically correct for this by finding the exchange rates and adjust the financial statement (so that the financial statement is the same as the historical data's currency) however this does lead to some discrepancies. Therefore, the more accurate result would be taking the ticker from the Korean exhange ("005380.KS", see https://sg.finance.yahoo.com/quote/005380.KS) which has both the financial statements as the historical data listed in KRW.
I did notice that the weighted shares is different for both (which is why the numbers don't align as well as you would expect) in which I've reached out to FinancialModelingPrep to explain the difference. I'll let you know once they reply. In any case, do these numbers align better with your expections? Note that the market cap is based on the Weighted Average Shares.

This issue has been resolved in v1.7.4, see: https://github.com/JerBouma/FinanceToolkit/releases/tag/v1.7.4


Did not work while searching in [Fuseable]

Here is my implementation. it always succeeds while checking if !item.responds(to: Selector(property.name))
extension Member: Fuseable {     var properties: [FuseProperty] {         return [             FuseProperty(name: name ?? ""),             FuseProperty(name: phone ?? "")         ]     } }
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {         guard searchText.count > 0 else {             self.displayedMembers = self.allMembers             self.membersTableView.reloadData()             return         }         self.displayedMembers = searchEngine.search(searchText, in: self.allMembers).map {             self.allMembers[$0.index]         }         self.membersTableView.reloadData()     }

I ran into the same problem, but after diving into it, it turned out I was using an old version of the package.
Fuseable support for structs was added after the latest release of the package (which is a while ago), see #20. Therefore, downloading only the most recent release (something package managers including Carthage do automatically) does not include this functionality (and the readme of the master is not in sync with what you're using).
I fixed it by pointing Carthage to the most recent commit:
github "krisk/fuse-swift" "c7adb16"

That fixed the problem for me. I hope it does so for you too!
@krisk Any reason why there hasn't been a release in a while?


[cherry-pick] add adhoc post processing for pic-translate and translation tools

Codecov Report
Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (2520b8d) 61.45% compared to head (582589e) 61.21%.

Files
Patch %
Lines

...ebot-agent/src/erniebot_agent/tools/remote_tool.py
18.75%
13 Missing :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##           aistudio     #206      +/-   ##
============================================
- Coverage     61.45%   61.21%   -0.25%
============================================
  Files            56       56
  Lines          2771     2787      +16
============================================
+ Hits           1703     1706       +3
- Misses         1068     1081      +13

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


getSearchResults query containing "+" don't work

I am attempting to query users with a phone number. So using getSearchResults like so.
client.getSearchResults(User.class, "phone:+16465551000");

I was testing queries with known numbers so I expected to get results but got none. I turned on debugging and it looks like the "+" is not being properly escaped.
GET /api/v2/search.json?query=phone%3A+16465551000+type%3Auser

So you can see that the plus is not escaped. Also note the "+" between the number and type.
From my initial look at the code + is used to insert a space in the url. Is there a reason a space wasn't used which the underlying com.damnhandy.uri.template.UriTemplate would then properly escape? I have tried using UriTemplate directly and when it is passed "type:user phone:+16465551000" it does produce a properly escaped url.

I turned on debugging

Is there a way to "turn on" HTTP debugging? I'm using log4j in my project and have been trying to figure out how to get a request/response dump to look at.


Add country filter support

I want pwa directory support country filter

The lang attribute for the html tag could be used to detect language / country for a page, and create a filter.

Some case you can't do that because some country use same language


Swagger Documentation for SelfLoansApiResource.java

I haven't annotated the last POST endpoint as it is not in the existing documentation

@Sanyam96 I have updated the PR


Documentation

Where can I find detail documentation about the react-charts components' API?

@tannerlinsley I think my question would best be under the documentation thread as well here, as this is what I did.
When I copy/paste from the line example on the homepage into an empty CRA I get
./src/App.js
Module not found: Can't resolve 'components/Box' in '/Users/hunterhusar/Code/covid-live/covid-live/src'

I'm just wondering where can I find in the docs something about components/Box...
Thanks for your time! I'm a huge fan of your Table component, didn't even see you did a chart till today, stoked!

@angelsalazar the react-charts API and some examples have been published here
https://react-charts.tanstack.com/docs/api


Add xylar as a maintainer

Add python version constraints
Add pip check

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@parthea, this looks like another you aren't able to maintain.  Please merge when tests have passed so I can help out.


Please add AirPurifier2S ( zhimi-airpurifier-mc1 ) and  MiFan2S ( zhimi-fan-za4 )

Unfortunately both do not use the miot protocol but the old miio protocol. The fan is supported in my other plugin homebridge-xiaomi-fan so you might want to check that out.

Ok, thanks !
Jacek
dnia 26 kwietnia 2021 o 12:09:43, Marcin @.***) napisał:
Closed #18 https://github.com/merdok/homebridge-miot/issues/18.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/merdok/homebridge-miot/issues/18#event-4643848672, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/APKPIUHROIDTTVS4JMACOI3TKU3WPANCNFSM43SQIGSA
.


epic: Nitro has a client library

Problem
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Success Criteria
A clear and concise description of what you want to happen.
Sub Issues
Additional context
Add any other context or screenshots about the epic request here.

This is being done in #367

@louis-jan is reviewing the PR

Close as duplicated with https://github.com/janhq/jan/issues/1078


Incomplete cable termination causes topology to crash

Hello there!
It seems to be the problem when trying to display device with existing incomplete cable termination (e.g. when termination A is defined and termination B does not exist)
The complete exception is provided below:

<class 'IndexError'>

list index out of range

Python version: 3.12.3
NetBox version: 4.1.4
Plugins:
  netbox_reorder_rack: 1.1.3
  nextbox_ui_plugin: 1.0.1

Incomplete cable terminations may arrive when deleting an adjacent interface (or the entire device).
It might be enough to exclude such connections here:
https://github.com/iDebugAll/nextbox-ui-plugin/blob/6c14c9009861cfe50de8275c12fc93f24d095860/nextbox_ui_plugin/views.py#L432-L441
But there may be a few more places I haven't noticed.

Thank you for pointing out the ways to reproduce the bug. I have already found the fix and tested it in my development environment.


Changing crop activates drag-and-drop layers below image-crop

I have a setup where I use a react-image-crop inside a dialog/modal that is over a react-beautiful-dnd list.
Whenever I try to change the crop-area it also activates the drag-and-drop below.
This behavior is fixed by adding an e.stopPropagation when the specific events happen and is what we are using internally to fix this right now. But it might be more interesting to expose all the events to the consumer so he can decide when to stopPropagation or what so ever.

Hi @JCQuintas if the event is passed to onDragStart and onDragEnd would this help?

I believe it would help, yes. Though I'm not sure if it would fix my exact issue. If you wish, I can try to setup a demo of the interaction tomorrow.
The version we are using in my company is here. But I pretty much put an e.stopPropagation anywhere an event happened. It might not be necessary though.

Passing and event or returning false on dragStart/End doesn't do anything - problem appears when you try to drag an image that is longer than wider.

@JCQuintas I've applied an temp fix for now  that works on all browsers (expecially needed for IE overflowing problem)
getCropImageMaxSize = () => {
    const { offsetWidth = 0, offsetHeight = 0 } = this.reactCropImageContainer || {};
    return {
      width: offsetWidth,
      height: offsetHeight,
    };
  };

 <div
          id="image-crop-container"
          ref={element => {
            this.reactCropImageContainer = element;
          }}>
          <ReactCrop
            src={uploadedImage.file.base64 || ''}
            crop={croppedImage.crop}
            onImageLoaded={image => this.handleReactCropImageLoaded(image)}
            onChange={crop => this.handleReactCropChange(crop)}
            onComplete={cropImage => this.handleReactCropComplete(cropImage)}
            disabled={disabled}
            imageStyle={{
              maxHeight: this.getCropImageMaxSize().height,
              maxWidth: this.getCropImageMaxSize().width,
            }}
            ref={element => {
              this.reactCropImage = element;
            }}
          />
        </div>

+1

+1


[fix] Fix out-of-bounds selection in UICollectionView"

error info：
#0 (null) in __exceptionPreprocess ()
#1 (null) in objc_exception_throw ()
#2 (null) in -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] ()
#3 (null) in -[UICollectionView _validateSelectionOrHighlightIndexPath:isSelection:allowMassIndexPath:assertIfInvalid:] ()
UICollectionView tries to select a particular IndexPath and finds that the IndexPath is invalid. This usually occurs when the IndexPath does not exist in the current data source.