DSGRN.Database() missing logic

Hi Shaun,
I ran into the above issue after computing a database locally and attempting to access it via ipython. The database computed correctly and I was able to query it using sqlite3. Then I wanted to do a more complicated query, so I tried loading in ipython. There I got the error "RuntimeError: Problem parsing network specification file: missing logic." My terminal output is below and here is the network:
SBF : (NDD1)(~YOX1) : E
NDD1 : (SBF) + (CLB) : E
CLB : (NDD1) + (CLB) : E
YOX1 : (SBF)(~CLB) : E
Thanks,
Bree
[bcummins@fruitful Desktop]$ mpiexec -np 4 Signatures wavepool20180425_perturb.txt wavepool20180425_perturb.db
[warn] kq_init: detected broken kqueue; not using.: No such file or directory
[warn] kq_init: detected broken kqueue; not using.: No such file or directory
[warn] kq_init: detected broken kqueue; not using.: No such file or directory
[warn] kq_init: detected broken kqueue; not using.: No such file or directory
[warn] kq_init: detected broken kqueue; not using.: No such file or directory
[warn] kq_init: detected broken kqueue; not using.: No such file or directory
[warn] kq_init: detected broken kqueue; not using.: No such file or directory
[warn] kq_init: detected broken kqueue; not using.: No such file or directory
[warn] kq_init: detected broken kqueue; not using.: No such file or directory
Computing Morse Graphs
100% (32928 of 32928) |####################| Elapsed Time: 0:00:00 Time: 0:00:00
Save Database
Inserting Signatures table into Database
100% (32928 of 32928) |####################| Elapsed Time: 0:00:00 Time: 0:00:00
Inserting MorseGraphViz table into Database
100% (2633 of 2633) |######################| Elapsed Time: 0:00:00 Time: 0:00:00
Inserting MorseGraphVertices table into Database
100% (2633 of 2633) |######################| Elapsed Time: 0:00:00 Time: 0:00:00
Inserting MorseGraphEdges table into Database
100% (2633 of 2633) |######################| Elapsed Time: 0:00:01 Time: 0:00:01
Inserting MorseGraphAnnotations table into Database
100% (2633 of 2633) |######################| Elapsed Time: 0:00:02 Time: 0:00:02
Indexing Database.
[bcummins@fruitful Desktop]$ sqlite3 wavepool20180425_perturb.db 'select count() from Signatures natural join (select distinct(MorseGraphIndex) from (select MorseGraphIndex,Vertex from MorseGraphAnnotations where Label="FC" except select MorseGraphIndex,Source from MorseGraphEdges))'
64
[bcummins@fruitful Desktop]$ sqlite3 wavepool20180425_perturb.db 'select count() from Signatures natural join (select distinct(MorseGraphIndex) from (select MorseGraphIndex,Vertex from MorseGraphAnnotations where Label="XC" except select MorseGraphIndex,Source from MorseGraphEdges))'
0
[bcummins@fruitful Desktop]$ sqlite3 wavepool20180425_perturb.db 'select count() from Signatures natural join (select distinct(MorseGraphIndex) from (select MorseGraphIndex,Vertex from MorseGraphAnnotations where Label="FC"))'
4930
[bcummins@fruitful Desktop]$ sqlite3 wavepool20180425_perturb.db 'select count() from Signatures natural join (select distinct(MorseGraphIndex) from (select MorseGraphIndex,Vertex from MorseGraphAnnotations where Label="XC"))'
0
[bcummins@fruitful Desktop]$ sqlite3 wavepool20180425_perturb.db 'select count(*) from Signatures natural join (select distinct(MorseGraphIndex) from (select MorseGraphIndex,Vertex from MorseGraphAnnotations where Label like "FP%"))'
32928
[bcummins@fruitful Desktop]$ dsgrn network wavepool20180425_perturb.txt parameter
There are 32928 parameters.
[bcummins@fruitful Desktop]$ ipython
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 12:04:33)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import DSGRN
In [2]: d = DSGRN.Database("wavepool20180425_perturb.db")
RuntimeError                              Traceback (most recent call last)
 in ()
----> 1 d = DSGRN.Database("wavepool20180425_perturb.db")
~/anaconda3/lib/python3.6/site-packages/DSGRN/Query/Database.py in init(self, database_name)
13     self.conn = sqlite3.connect(database_name)
14     self.cursor = self.conn.cursor()
---> 15     self.network = Network(database_name)
16     self.parametergraph = ParameterGraph(self.network)
17     # D is the number of network nodes
RuntimeError: Problem parsing network specification file: missing logic
In [3]: exit
[bcummins@fruitful Desktop]$ which python
/Users/bcummins/anaconda3/bin/python
[bcummins@fruitful Desktop]$ which Signatures
/Users/bcummins/anaconda3/bin/Signatures

Looks like we lost the feature to read .db files in the Network constructor.
https://github.com/shaunharker/DSGRN/commit/df8d0d6c4c72750144aa5bae07f0201b29b1aef1#diff-3277b24c997d16ab90d9e5058160d9b0
An alternative for now is to have the network spec file handy, or else use python sqlite interface to extract the spec string and use that.

My goal is to use DSGRN.SingleFixedPointQuery(). I don't think that will work with just the network spec, is that correct? I know I can write a whole script to mimic that query, I was just hoping to use the db since I have it.


fix(meta): appropriate default page titles for SEEK Asia

Helmet defaults are set to SEEK Jobs Australia's title.  That's obviously pretty wrong!
This PR allows tenant, language and country values to be passed to StyleGuideProvider in order to default to an appropriate, branded title with correct localisation.  Default titles reflect those of the JobStreet or JobsDB front pages in the appropriate locales.
Consuming apps can and should still use Helmet to provide an app-appropriate title.
MIGRATION GUIDE:
Before:
<StyleGuideProvider>

After:
<StyleGuideProvider tenant="jobsDB" country="hk" language="en">

Reached statute of limitations :)


Getting pink/green pictures when uploading via Tor Browser

Steps to Reproduce
I have attempted to upload a pic on archlinux via Tor Browser 14.0.2 (based on Mozilla Firefox 128.4.0esr) with standard security level and JS enabled for all bsky domains and get a pink/green image.
https://bsky.app/profile/technonerd.bsky.social/post/3lb3dksqvr22l

Attachments
No response
What platform(s) does this occur on?
Web (Desktop)
Device Info
archlinux
What version of the app are you using?
Build version: 1.93.0; Bundle info: 7cc6df1 (prod); Bundle date: 24111602; Platform: web
Additional Information
No response

I am getting this too. Do not know how far back this issue is as I just tried uploading a photo for the first time on BS.

For my case, allowing HTML canvas fixed it. However, more and more browsers are auto-blocking web canvas as it is being abused by bad sites more and more.


Add @implicitNotFound on Encoder

This is only really necessary for structured exports where user wants to return a case class without Outputs that will be JSON-serializable but it is a user facing error and therefore should be readable and easy to understand. Related to discussion in #305.

implemented in #328


Broken link to sample apps and tutorial assets

Multiple links throughout tutorial are broken and only lead to a Bing start page.
Should be leading to a download package for excel files used in the tutorial and examples of completed apps.
Can author please correct/refresh links or provide new links to the required files please?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2d58efad-c076-c853-dd96-e9e70e50187e
Version Independent ID: fcb0aa59-c412-d81e-bc9e-89ac3eb339f2
Content: Set up lists for SharePoint Online integration with Power Apps, Power Automate, and Power BI - Power Apps
Content Source: powerapps-docs/maker/canvas-apps/sharepoint-scenario-setup.md
Service: powerapps
GitHub Login: @NickWaggoner
Microsoft Alias: niwaggon

Managed to find the full link here: https://www.microsoft.com/en-us/download/details.aspx?id=54846

Thank you for reaching out. Documentation has been updated, please allow some time to reflect the changes.


Pitch: V7 chain-specific default dispatchers

In RxSwift, dispatching is an attribute of the chain. You switch dispatchers with a separate chain operator, e.g.
observable
    .observeOn(MainScheduler.instance)
    .subscribe { event in
        ...
    }
    ...

I believe ReactiveSwift works similarly, but I'm not as familiar with that library.
I love PromiseKit's simple convention of requiring an explicit dispatcher specification for each step in a chain unless you want to use the global default. It's direct and easily understood. I wouldn't want to change this system as the default.
Nevertheless, there's no reason why PromiseKit couldn't also, optionally, allow you to set a default dispatcher for a chain, and there are a couple of nice benefits that would come from this ability.
I'll mention some of the advantages below, but let me first clarify exactly what I'm talking about. Here's a straw-man proposal:

Promises gain setDefaultMapDispatcher and setDefaultReturnDispatcher methods (terrible placeholder names...) with a signature something like

public func setDefaultMapDispatcher(_ on: Dispatcher? = nil) -> Promise<T>

As usual, the returned promise is different from the original; it's a wrapper. Only subsequent chain elements added via the wrapper see the new default.

Any subsequent method uses the specified default dispatcher if nothing more specific is requested. conf.Q still exists but is consulted only if no chain-specific default has been set.

Methods that return new promises silently propagate the default dispatcher to them.

Benefits

Clearer and more self-documenting than conf.Q. I would hazard a guess that some users initially assume that conf.Q is consulted at the point of actual dispatch. But in fact, it's consulted at chain construction time through the default argument mechanism. This is useful because it allows different conf.Q values to be set for different regions of code, but it's not very discoverable without experimentation.

Chains don't affect each other. By contrast, there's only one conf.Q, and code has to take explicit precautions (save/restore) to avoid fighting over it.

Code is cleaner without repeating on: for every clause.

Purely additive: nothing changes unless you use the feature.

Facilitates debugging because you can easily set a temporary default for any portion of a chain. It's one line added or removed which affects no other code. With conf.Q, you have to add a variable assignment at the start of the chain, stop in the middle of the chain to set conf.Q, then resume the chain from the variable.

The big one: it allows functions that yield or propagate promises to specify (suggest, really) dispatching policy. Result types that aren't thread-safe can return themselves with dispatching set to a serial queue. For example, a routine that returns a Promise<NSManagedObject> might set the chain's default dispatcher to a CoreDataDispatcher for the appropriate NSManagedObjectContext so that the managed object can be freely manipulated with no additional code on the receiver's end. E.g.,

fetchUser(managerID).map { manager in
    (manager.firstName, manager.lastName)
}.done { name in
    button.setTitle("Email \(name.0) \(name.1)", for: .normal)
}

Thoughts?

People have asked this before (being able to change the default queue for a specific chain) and my argument generally was you return promises all over the place, and in such a case you wouldn't know what dispatcher you were getting.
Like the argument still stands, but perhaps we should just make this a thing the user has to be aware of, that is, you need to reset the dispatcher before you return or document the fact that the dispatcher is not the default?
Certainly we’ve all wanted this feature from time to time. Though PMKv7 distinguishing between in-between closures and done-type closures has helped me a lot there at least since I typically now set conf.Q.map to .global().
Side note: conf.Q is meant to be one-time-set app-wide; it used to be set with a dispatch_once and thus if you created any Promises before setting it, setting it failed. But Swift does not expose dispatch_once so in PMKv7 I had to remove it (hacks with objc bridging wouldn't work with SwiftPM etc.).

Yes, that seems like a real issue and a potential concern. I agree that the docs should advise strongly against returning promises that have a default dispatcher unless there's a specific reason to do that.
I suspect that a predominant source of problems is likely to be that people set a default dispatcher for notational convenience and then send their promises elsewhere without consciously realizing that they're imposing a dispatcher on the recipient. It's obvious if you even think about it, but it's the kind of cleanup that's easy to overlook.
I was thinking about what the various failure modes might be and trying to pick out the ones that are most worth worrying about. They're not all equally bad.
For example, if you use the default dispatchers and someone puts you on a different thread, and then you try to do main-thread UI stuff, that's usually self-evident pretty quickly because of warning messages or crashes. That seems fine. And similarly, if you're using a nonstandard global default queue, that's probably a pretty good sign that you understand the dispatching system and can be left alone.
The really bad failure mode, I think, is when you believe your own code is all main-threaded, but parts actually end up running on two or more threads. So it almost always works, but every so often there's a completely unexplained crash. 😣
A few possible ways to be safer:

Require chain-specific dispatchers to be unset by the end of the chain. I guess the specifics would be something like: if 1) you reach the transition from map-type elements to return-type elements, and 2) there's a chain-specific default for map, and 3) there is no chain-specific default for return, then print a warning message. Optionally, add the additional requirement that 4) both conf.Q values are DispatchQueue.main. Disadvantage: requires an additional, useless dispatchOn(nil) just to suppress the warning.

Propagate defaults up the chain instead of down. When you set a chain-specific default, it does not affect future blocks. Instead, it traverses up the chain, setting the dispatcher for each block whose dispatcher was previously determined by the global default. When you reach a block that already has an explicit dispatcher (including one set by a chain-specific default), stop. Disadvantages: 1) It's really weird. 2) Now you have the reverse problem of potentially inadvertently setting a dispatcher on blocks that were created by other code. (But they must have just been using the defaults, so maybe it's ok...) 3) You lose the ability to return promises with default dispatchers. 4) Touches a lot of code - currently all the dispatchers are tucked away in closures. You'd have to pull them into a Promise instance variable and reference them from there. Also, I don't think there's existing infrastructure to go back in the chain.

Explicit scoping with brackets. This is essentially a formalization of the way conf.Q actually works now, so it's easy to implement. For example:

dispatchOn(.global()) {
    firstly {
        doTimeConsumingThing()
    }. then { a in
        doOtherTimeConsumingThing().map { (a, $0) }
    }
}.done { ab in ... }

Disadvantages: 1) You lose the ability to return promises with default dispatchers. 2) Ugly code with another layer of nesting to track. 3) firstly would probably have to run on the stated dispatcher, different from now.


Look into ToS & related legalish stuff

Get a ToS? Notify users when it's updated, perhaps block writing on the site until it's agreed to but perhaps just have a term that we'll make a reasonable effort to notify of changes and then do it by email / in-site notification?
Check our handling of private data? (UK has Data Protection Act, EU has similar laws – GDPR? – do we need to alter anything to ensure we comply?)
Cookie banner?

More things we may need:

Privacy policy, goes with ToS. Require agreement at sign up, block-to-backfill-agreement for existing users.
Maaaaybe encrypt email addresses?
There's a Right to Erasure thing that looks interesting under the GDPR, but that might be as simple as "we allow you to request a dev/mod detaches your email address from your account", it's not like an email address is required functionality. (UI required, sure, but nothing would break except notifications.)

To comply with the GDPR, we need to have several things. I can probably come up with a more exhaustive list than this, but:

A list of data we gather, and why
The whole privacy policy written in plain English
Who they should contact in the event we have some erroneous data gathered about them
Who they can appeal to should we fail to respond promptly to requests like this
Right to erasure (need to figure out what's up with that)
Anything third-party (like NewRelic?) might need to be consented to

We should also do this ASAP since GDPR went active back in May, iirc.

Leaving open for now despite #919 existing because I have not yet confirmed GDPR compliance

This is marked crit, what is needed to actually confirm GDPR compliance?

I think we're compliant enough at this point - we have clear consent + clear explanations of how we use data in our privacy policy (linked from the TOS) and we have a feature to be able to delete a user account on request. https://www.glowfic.com/privacy
AIUI these are our main obligations


Regenerating SDKs following introspection of schemas.

#53  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @JasonCWang and the rest of your teammates on  Graphite


Add a new metric type: Gauge + CurrentMemoryUsage to metrics

Which issue does this PR close?

Closes #.
Rationale for this change

A gauge metric is useful for reporting purposes by returning a value each time, and a gauge suits well for memory consumption reports.
What changes are included in this PR?

a new kind of metric: Gauge
add CurrentMemoryUsage to BaselineMetrics
use gauge in sort for memory tracking.

Are there any user-facing changes?

No.

And thank you for the review @liukun4515


[Bug] Public vs. logged in state for previously visited servers is buggy

If I make a new server (via Browser servers) and leave Enable logging in as Public checked, just Connect and Browse, everything that is public is correct and I can access images.
BUT
If I then go to Manage servers and log in, browse becomes a to a bugged state:
I end up showing as logged in but getting the All groups All members view, like public would, but without access to any images. And looking at my user group, basically everything is , I can't even see myself.
(this is contrary to how it works just using the web interface when first connecting as public and then logging in)
This persists even when restarting QuPath: using Manger servers -> connect yields a working Public interface, but clicking log in gives a bugged state where I can't access images.
However
If I start over and make a new server, uncheck allow Enable Public, then I get asked to authenticate and when I browse then I see things mostly correct and can switch between web and ICE (although I'm not sure what that ICE is showing, given our split servers, see https://github.com/qupath/qupath-extension-omero/issues/1#issuecomment-1934381702 )
Now I get a lot of  for members of groups that I cannot see on the actual web interface, which makes navigating the things I can use a bit annoying, but everything seems to be logged in properly.
BUT
If I then reconnect--using Manage servers--it looks like the Public setting here also isn't honored (as noted https://github.com/qupath/qupath-extension-omero/issues/4 ), even if I don't click Browse but go right to log in. SO after I authenticate and hit browse I'm directly in the bugged state as above where I cannot access anything.
And again, restarting QuPath doesn't change it.

Yup, I cannot reproduce the issue, I think it's fixed.


Cannot run VSCode source code because its unable to find electron app in directory

Overview:
When I attempt to run VSCode with the instructions given in the contributions page to download all the packages, build the source code and then run it all on terminal, an error message pops up saying that I don't have the electron app in the vscode directory. Shouldn't have the electron app been installed when I ran the yarn command to install and build all the dependencies?
Steps to reproduce bug:

$ yarn   //building and installing all dependencies

$ yarn watchd   //building vscode

$ ./scripts/code.sh   //running vscode

Error Message:
Error launching app
Unable to find Electron app at /home/juan/Desktop/Projects/vscode
Cannot find module '/home/juan/Desktop/Projects/vscode/out/main'. Please verify that the package.json has a valid "main" entry
System Details:

CPUs
Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 3200)

GPU Status
2d_canvas: unavailable_softwareflash_3d: disabled_softwareflash_stage3d: disabled_softwareflash_stage3d_baseline: disabled_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: disabled_offrasterization: disabled_softwareskia_renderer: disabled_off_okvideo_decode: disabled_softwareviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
1, 1, 1

Memory (System)
7.63GB (0.12GB free)

Process Argv
. --no-sandbox

Screen Reader
no

VM
0%

OS
Ubuntu 18.04 LTS

Extensions:

Extension
Author (truncated)
Version

Bookmarks
ale
11.2.0

vscode-sqlite
ale
0.8.2

code-gnu-global
aus
0.2.2

npm-intellisense
chr
1.3.0

vscode-svgviewer
css
2.0.0

vscode-markdownlint
Dav
0.36.0

jshint
dba
0.10.21

vscode-eslint
dba
2.1.5

vscode-html-css
ecm
0.2.3

EditorConfig
Edi
0.15.1

vscode-npm-script
eg2
0.3.12

vscode-firefox-debug
fir
2.8.0

beautify
Hoo
1.5.0

vscode-emacs-friendly
lfs
0.9.0

rainbow-csv
mec
1.7.0

python
ms-
2020.5.80290

cpptools
ms-
0.28.2

debugger-for-chrome
msj
4.12.8

sqltools
mtx
0.22.5

material-icon-theme
PKi
4.1.0

rust
rus
0.7.8

lc2k
vio
1.1.1

I ran the build successfully on the web using $ yarn web but still wasn't successful at running it locally. The package.json indicates that there is supposed to be a "main" file in ./out/main but rather when it's building it doesn't create it, I am unsure if this is how it's supposed to behave.


feat(useFetcher): allow passing in axios request config

Summary
Add a new, optional axiosRequestConfig option to the shared useFetcher function to allow passing in an AxiosRequestConfig object.
As an example, if you have an endpoint needing to allow 404 status responses, you could do something like this:
const { fetcher, fetcherState } = useFetcher(props.config, fetcherBaseUrl.value, undefined, {
  validateStatus: (status: any) => status === 404 || (status >= 200 && status < 300),
})

Closing in favor of https://github.com/Kong/public-ui-components/pull/1243


Fix crashing on Xamarin Designer

Fix for https://github.com/luberda-molinet/FFImageLoading/issues/418

Thank you @tilutza, it's merged now. 👍


Adaptive solver ignores step_ts for impulse discontinuous ODE

I'm trying to integrate a jump discontinuous ODE using an adaptive solver (i.e. discontinuous at a specific timepoint).
However, the integration seems to ignore my step_ts:
import diffrax

t0, t1 = 0, 3
jump = 0.5  #  let's jump at this point
step_ts = [t0, jump, t1]

def vector_field(t, y, args):
    return -1.0 * y + 100.0 * (t == jump)  # also tried jnp.allclose but doesn't work either

term = diffrax.ODETerm(vector_field)
solver = diffrax.Tsit5()
saveat = diffrax.SaveAt(ts=step_ts)
stepsize_controller = diffrax.PIDController(
    pcoeff=0.0,
    icoeff=1.0,
    dcoeff=0.0,
    rtol=1e-4,
    atol=1e-6,
    step_ts=step_ts,
)

sol = diffrax.diffeqsolve(
    term,
    solver,
    t0=t0,
    t1=t1,
    dt0=None,
    y0=1,
    saveat=saveat,
    stepsize_controller=stepsize_controller,
)

print(sol.ts)
assert jump in sol.ts
print(sol.ys)

Output:
[0.  0.5 3. ]
[1.         0.6068427  0.04981759]  # should be something much larger since we have a large jump at t=0.5

I'm avoiding jump_ts based on https://github.com/patrick-kidger/diffrax/issues/58, which addressed the case where you have piecewise constant vector fields. However I'm not quite sure what to do when there's a delta-function in the vector field (impulse external control)
Is there a way to do this in diffrax?

Hi, I think what you are trying to do here is not really well-defined. A delta distribution is not something you'll be able to handle directly in any numerical code.
Of course, you can do the standard engineering trick and integrate the differential equation in an epsilon environment around the jump $t_0$ which gives
$$\int_{t_0 - \epsilon}^{t_0 + \epsilon} \dot y  dt = y(t_0 + \epsilon) - y(t_0 - \epsilon) = - \int_{t_0 - \epsilon}^{t_0 + \epsilon} y dt + 100 \int_{t_0 - \epsilon}^{t_0 + \epsilon} \delta(t - t_0) dt \xrightarrow{\epsilon \rightarrow 0} 100 $$
and tells you that $y$ will jump by 100 after passing $t_0$. So what you could do is to integrate the differential equation without the delta distribution numerically until $t_0$ and then continue the integration from $t_0$ onwards with the initial condition given by whatever the first integration produced + 100.

As @jaschau suggests, probably the simplest approach is to just split your problem into two separate diffeqsolves. (Actually a lax.scan over diffeqsolves would be slightly better, as that'll reduce compilation time.) And then apply your desired impulse between the two solves. It's expected that using step_ts wouldn't result in the delta function being noticed, I'm afraid -- what you're trying to do isn't within the normal remit of differential equation solvers.
Other notes:

If your impulse time isn't known statically then you could detect the time using an event, which halts the solve once it occurs.
I would quite like to extend the event interface to support this kind of thing directly. What you're after here is a continuous (i.e. potentially-within-step) non-terminating event. If you're comfortable with the numerics then I'd welcome PRs on this.

[Also, wait, we can use LaTeX on GitHub now? Hurrah!]

That makes sense! Thank you to both of you :) Would be great for diffrax to have non-terminating event handling, especially for the simple case where the timestamps are known. Unfortunately won't be able to code up the feature now but maybe in the future!


Question: barcodes for cells

Hello,
I would like to get the barcodes associated with the Conga clusters (in the image below, my understanding is that there are 41 cells and 26 clonotypes associated with the conga cluster 2/10).  Is there an output file I could look at to get this info OR a place in a python data structure that points to this info?  Thanks for your help,
@s2hui

Great question! There should be a tab-separated text file produced by the graph-vs-graph analysis named <outfile_prefix>_graph_vs_graph.tsv. That file has columns gex_cluster, tcr_cluster, and clone_index (and others). You would look for the lines with 2 in the gex_cluster column and 10 in the tcr_cluster, and get the clone_index column for those. Those clone_index numbers will be the indices into the final anndata object (if you still have it in a jupyter notebook) or if you ran conga from the command line, into the saved anndata object and saved tab-separated text file called <outfile_prefix>_final_obs.tsv. Looking at those (0-indexed) rows in either anndata (adata.obs) or in the final_obs.tsv spreadsheet will give you the barcodes for the representative cells, along with their TCR sequences. Then to get all the cell barcodes you could look for those TCR sequences in the input TCR information, for example the filtered_contigs file (or the conga clones file and barcode mapping files). As a cross-check, note that the graph_vs_graph.tsv file also has TCR amino acid information, so you can double-check you are getting the right cells. Let me know if that's not clear!

Here's a bit of code that does what Phil suggested above:
Open the AnnData object with the conga results
gvg_hits_file = 'your_path/some_prefix_conga.h5ad'
adata = sc.read_h5ad(adata_file)

Open the gvg results
gvg_hits_file = 'your_path/some_prefix_graph_vs_graph.tsv'
gvg_hits = pd.read_csv(gvg_hits_file, sep ='\t')

Clone_index in the gvg hits df matches the adata.obs index which contains the cell barcodes
We can append these to the gvg results with this:
gvg_hits['barcode'] = adata.obs.iloc[gvg_hits.clone_index,].index
Resave
gvg_hits.to_csv(gvg_hits_file, sep ='\t', index = False )

Hi, Thank you for your help!  I ran the code provided by @sschattgen and with the following modifications it appears to have worked.
adata_file = 'your_path/some_prefix_final.h5ad'
adata = sc.read_h5ad(adata_file)

@s2hui

Sorry for the typo but glad it worked!


Create api endpoints for embeddings

Create api endpoints for embeddings
Description
Implement and verify embedding endpoints for the OMI Data Pipeline.
This task includes implementing both api and crud operation.
Checklist
Api

[x] CRUD Embedding engine endpoints
[x] CRUD Content embedding endpoints
[x] CRUD Annotation embedding endpoints
[x] Query Annotation endpoints
[x] Query Content endpoints
[x] Generate text embedding endpoint
[ ] Generate image embedding endpoint

PGVector

[x] Update postgres image to use pgvector extension
[x] Integrate OMI Data Pipeline models to use pgvector fields

Embedding generation

[x] Add support for generating embedding inside OMI Data Pipeline

Image embedding generation functionality is blocked until this release with this commit - https://github.com/qdrant/fastembed/commit/9c72d2f59f91f87753da07c12a6f1082e233ecb3 is available


Update prometheus-metrics.md

Following up on https://github.com/jetstack/cert-manager/issues/3446

/ok-to-test

/lgtm


Getting Started review

[x] URL: https://yearn.github.io/yearn-devdocs/getting-started/products/yvaults/overview

[x] What are yVaults? it's not rendered as title
[x] [How to Understand yVault ROI](https://docs.yearn.finance/resources/guides/how-to-understand-yvault-roi) goes to the "soon old docs". But do we want to do with these kind of links?

[x] URL: https://yearn.github.io/yearn-devdocs/getting-started/products/yvaults/vault-tokens

[x] yVault Tokens goes to soon old docs

[x] URL: https://yearn.github.io/yearn-devdocs/getting-started/products/yvaults/yvault-advantages#leverage

[x] flash loans goes to soon old docs.

[ ] URL: https://yearn.github.io/yearn-devdocs/getting-started/guides/how-to-add-a-custom-token-to-metamask

[ ] addyearn.finance is dead. We need a new one.

[ ] URL: https://yearn.github.io/yearn-devdocs/getting-started/guides/how-to-understand-crv-vote-locking can we immprove this with qosmonot's article?
[ ] URL: https://yearn.github.io/yearn-devdocs/getting-started/guides/how-to-understand-yvault-roi#roi

[ ] Why we can't use compound or linear interest formulas to estimate yVaults returns_ goes to the old docs.
[x] strategies goes to the old docs
[ ] Can we show formulas in equation format? this: $$F = I * P$$, $$(vault tokens) / (wrapped tokens) = P$$
[x]  inception of vault goes to the old docs
[x] https://github.com/thegismar/yearn_roi/blob/master/yearn_vaults_ROI_calc.ipynb link is dead
[x] Statistics FAQ goes to old docs

[ ] URL: https://yearn.github.io/yearn-devdocs/getting-started/guides/how-to-understand-yveCRV

[ ] here goes to old docs
[x]  general guide goes to old docs
[ ]  state of the vaults: should go to vaults at yearn
[x] `## Still have questions? : we should add discord link here

[ ] URL: https://yearn.github.io/yearn-devdocs/getting-started/using-yearn

[ ] The first image doesn't look good
[x] Community resources to monitor your returns 	Trackavault has the bare link, whiel the others have a nice description
[x] Delete Yearn-roi.yxz. Is dead

created tasks for the remaining items


Swin_backbone

Excuse me, is there any difference between this and STARK? As far as I know, the author of STARK has verified Swin_backbone and concatenation

Excuse me, is there any difference between this and STARK? As far as I know, the author of STARK has verified Swin_backbone and concatenation

Thanks for this question. So far, we are not aware of any trackers using Swin Transformer for tracking. If there is any, could you please provide us with a reference so we can add the discussion? Thank you.
We noticed that concatenation-based feature fusion is applied in STARK. However, the goal of this work is to build a strong BASELINE for Transformer tracking with a large-scale study to investigate various factors including backbone, feature concatenation (concatenation based or cross attention based), positional encoding, loss, etc.
We appreciate any feedback.

Excuse me, is there any difference between this and STARK? As far as I know, the author of STARK has verified Swin_backbone and concatenation

Thanks for this question. So far, we are not aware of any trackers using Swin Transformer for tracking. If there is any, could you please provide us with a reference (like a paper or implementation link) so we can add the discussion? Thank you.
We noticed that concatenation-based feature fusion is applied in STARK. However, the goal of this work is to build a strong BASELINE for Transformer tracking with a large-scale study to investigate various factors including backbone, feature concatenation (concatenation based or cross attention based), positional encoding, loss, etc.
We appreciate any feedback.

https://github.com/researchmm/Stark/blob/main/lib/models/stark/backbone_X.py      In fact, the author of STARK has verified Swin Transformer in the program. At the same time, he also explained the effectiveness of Swin Transformer on github, including his public speech also explained the effectiveness of Swin Transformer. Many people know this, the only difference is that you write it in the paper.Therefore, I think it’s a bit unreasonable to take the innovations that others have completed as own contributions.

Thanks for pointing this out. We want to stress that we are NOT taking
other’s innovations as ours because we were not aware of this in the STARK.
Indeed, we have tried different backbones very earlier. As seen in this
git, we’d like to explore different impactors for improving tracking. Study
on backbone is a natural idea (like STRK does concurrently). However, we
still want to express thanks for pointing it out and would add discuss or
explanation for clarification.
lizhe-dlut @.***>于2021年12月4日 周六上午12:11写道：

Excuse me, is there any difference between this and STARK? As far as I
know, the author of STARK has verified Swin_backbone and concatenation
Thanks for this question. So far, we are not aware of any trackers using
Swin Transformer for tracking. If there is any, could you please provide us
with a reference (like a paper or implementation link) so we can add the
discussion? Thank you.
We noticed that concatenation-based feature fusion is applied in STARK.
However, the goal of this work is to build a strong BASELINE for
Transformer tracking with a large-scale study to investigate various
factors including backbone, feature concatenation (concatenation based or
cross attention based), positional encoding, loss, etc.
We appreciate any feedback.
https://github.com/researchmm/Stark/blob/main/lib/models/stark/backbone_X.py
In fact, the author of STARK has verified Swin Transformer in the program.
At the same time, he also explained the effectiveness of Swin Transformer
on github, including his public speech also explained the effectiveness of
Swin Transformer. Many people know this, the only difference is that you
write it in the paper.Therefore, I think it’s a bit unreasonable to take
the innovations that others have completed as own contributions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/LitingLin/SwinTrack/issues/1#issuecomment-985976601,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQDPW5BS5KQND2QSLS42SX3UPGWKDANCNFSM5JJLLKDA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Thanks for pointing this out. We want to stress that we are NOT taking others’ innovations as ours because we were not aware of this in the STARK, either in the official paper or the readme of the official implementation. Indeed, we have tried different backbones very earlier. As seen in this git, we’d like to explore different impactors for improving tracking. Study on the backbone is a natural idea (like STRK does concurrently). However, we still want to express thanks for pointing it out. lizhe-dlut @.***>于2021年12月4日 周六上午12:11写道：
…
Excuse me, is there any difference between this and STARK? As far as I know, the author of STARK has verified Swin_backbone and concatenation Thanks for this question. So far, we are not aware of any trackers using Swin Transformer for tracking. If there is any, could you please provide us with a reference (like a paper or implementation link) so we can add the discussion? Thank you. We noticed that concatenation-based feature fusion is applied in STARK. However, the goal of this work is to build a strong BASELINE for Transformer tracking with a large-scale study to investigate various factors including backbone, feature concatenation (concatenation based or cross attention based), positional encoding, loss, etc. We appreciate any feedback. https://github.com/researchmm/Stark/blob/main/lib/models/stark/backbone_X.py In fact, the author of STARK has verified Swin Transformer in the program. At the same time, he also explained the effectiveness of Swin Transformer on github, including his public speech also explained the effectiveness of Swin Transformer. Many people know this, the only difference is that you write it in the paper.Therefore, I think it’s a bit unreasonable to take the innovations that others have completed as own contributions. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQDPW5BS5KQND2QSLS42SX3UPGWKDANCNFSM5JJLLKDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

But in any case, STARK was the first to use Swin_backbone in tracking. I personally think that it is inappropriate for you to take this as your main contribution. Although it is not clearly stated in the STARK article, I believe that as a student of learning tracking, many of us should have studied the STARK code. At the same time, the author of STARK has repeatedly mentioned the influence of Swin_backbone in public,like this https://github.com/researchmm/Stark/issues/26   .I believe you may have studied swin_backbone very early, but this cannot be a reason. Just like we have also studied the impact of Transformer on tracking very early, but there are still people who have implemented it earlier than us.

This will be my last time to respond.
The link here (https://github.com/LitingLin/ubiquitous-happiness/commit/add3905407bdfd55c1cc36c92ce8b9fd860fce66) shows that we started our investigation of Swin Transform in the middle of April this year. Our direct motivation is that Swin Transformer (really a nice work) is so strong, and we want to test its potential for tracking to provide a baseline. Later many excellent works (TrSiam, TransT, STARK, etc.) have been proposed (focusing on how to fuse features) and we set our goal to a strong baseline based on Swin Transformer. For this purpose, we did various studies (early on April) on possible impactors including backbone architectures, feature fusion strategies (cross style or concatenation style), positional encoding (here I want to say positional encoding really matters for tracking), loss, etc. I checked the link that you mentioned, it was available in Aug this year. At that time, we were close to finish the experiment.
Many people are doing the same topic in the vision community, and it is very common to have similar ideas in some concurrent works for the same problem. Classical FCN and U-Net for segmentation are good examples if you checked their time available on arXiv. They get the credits that they are deserved. Likewise, STARK, which is a nice and neat tracking framework, will also get the credit it should have.
Like I stressed many times, our goal is to study various impactors of Transformer for tracking. This is completely independent work, although the idea is very straightforward. We just want to show the possible improvements for tracking by studying Transformer in detail.

The following is not a response, it's a clarification.
This work aims at studying various impactors to provide a strong and simple Transformer based tracking baseline, i.e., we investigate many aspects including (three) Transformer and one ResNet architectures, (template and search region) feature fusion strategies, positional encoding methods, losses for prediction heads, etc. Our motivation is Swin Transformer achieves strong performance, how is its potential for tracking given that many excellent tracking works have been developed based on Transformer.
To clarify the concerns with STARK here, we contacted the (corresponding) authors of STARK and confirmed that (1) this work is completely independent (see the timestamp: https://github.com/LitingLin/ubiquitous-happiness/commit/add3905407bdfd55c1cc36c92ce8b9fd860fce66) with different goals (indeed, not just studying backbone, we also analyzed other aspects like positional encoding, decoder manner in feature fusion, losses, etc) and (2) no models and results are provided or reported in STARK's paper and implementation.
Welcome to test our models and we appreciate any feedback.
Thank you.


what is wrong with session?

I usually get the message in my logs .
My session driver is  redis .
Error while trying to free lock for ci_session:d0bd0a18e8438e3d777433b283e865cd89396c19:lock

By the way , my ci version is 3.0.6

A lot of things could go wrong.


Add checkout step 0 (select payment type)

In B2b, we will need one more checkout step: Payment Type.
In this ticket, we mainly focus on the checkout progress configuration. So, when different payment type is selected, the checkout steps can be different.

sample data PR: https://github.tools.sap/cx-commerce/spartacussampledataaddon/pull/24

To code reviewer:
Check this wiki page to for API deprecation.
https://wiki.hybris.com/pages/viewpage.action?spaceKey=spar&title=b2boccaddon+Deprecation

There is b2b's addToCart API, which will be deprecated. To use the b2c's add to cart,  we can comment it out from B2BCartsController in b2boccaddon.  When the API is ready, we need to add it in SPA, but it is out of the scope of this ticket.

Set payment type to cart API is also deprecated. So, the implementation in occ adapter does nothing.

setPaymentType(
    _userId: string,
    _cartId: string,
    _paymentType: string,
    _purchaseOrderNumber?: string
  ): Observable<any> {
    return of({});
  }

The PaymentTypes is in Checkout store. We need discussion about how to mix/separate the b2c checkout and b2b checkout. So, the code's structure of the PaymentTypes maybe need to be refactored.

Only focus on the checkout progress configuration.

To code reviewer:
The PR is here: https://github.com/SAP/spartacus/pull/7541
In this ticket, we mainly focus on the checkout progress bar; and "back"/"continue" button of each step. Only need to make sure the steps work well, nothing else.


Simple "hello world" .NET console app for use in NodeJS

Overview
I am trying to create a simple JavaScript file for use in a NodeJS environment from a C# Console application (the end goal is to create a simple image processing utility, this is my starting point).
I have successfully cloned and built the JSIL solution (disabling XNA projects), added the JSIL bin directory to my path so that I am able to call JSILc.exe "path/to/myConsoleApp.exe".
Program.cs:
using System;

namespace NodeImageUtilities {
    static class Program {
        static void Main(string[] args) {
            args = args.Length > 0 ? args : new[] { "noop" };

            Console.WriteLine(string.Join(",", args));
        }
    }
}

After compiling my C# app, I run JSILc.exe to convert my executable to JavaScript which completes without error, generating the following files:

mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089.js
NodeImageUtilities, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null.js
NodeImageUtilities.exe.manifest.js
NodeImageUtilities.exe.jsillog

At this point I would employ an additional series of build tasks (like grunt) to concatenate / minify the JS files.
Issue
This is where I'm a bit hazy on JSIL library dependencies.  In the generated JavaScript, the JSIL object itself is not actually constructed.  It appears that this happens in the projects/JSIL/Libraries/JSIL.js file (and possibly other files within projects/JSIL/Libraries/*.js).
Most of the examples I've found are showing JSIL in use within the browser, which I am guessing facilitates loading the JSIL library along with any necessary dependencies.  My need is the opposite:  I do not plan on running this in the browser, this library will be run server-side only (NodeJS).
Are there any recommendations for automatically including JSIL dependencies in this type of application (anything out of the box)?  I wanted to ask before I start crafting some elaborate build process.
Thanks!

JSIL can be used in a shell environment, you just want to load JSIL.js with manifest(s) available like in the browser. For node you may need to add a variation on the spidermonkey shell environment that's already in JSIL.js to map things to node's APIs for stuff like stdout and script loading.

Thanks @kg, this is helpful.  I'll update this issue with any helpful information and questions as I continue to try integrating with Node for anyone else that may be trying to do the same thing.


any type for dynamic log methods

Is it possible to not use any for dynamic log methods in class logTyped? Maybe these methods can be typed like this:
(...args: unknown []) => void

Creating a standard type for the whole logger class without knowing the log level names first is complex.
However if you wanted to have a better typed log function you could create your own type and assign it to the logger object:
type myLoggerType = {
  debug: (...args: unknown[]) => void;
  info: (...args: unknown[]) => void;
  warn: (...args: unknown[]) => void;
  error: (...args: unknown[]) => void;
};

const LOG = logger.createLogger(loggerConfig) as any as myLoggerType;

Thanks for your reply @alessandro-bottamedi. This is a good solution.


PDF generation from web app

Describe what problem your feature request solves:
The desktop app allows saving the report as PDF.
For the web app, I only found the option to print the report.
It would be nice to have a "download PDF" option in the web app.
Describe the solution you'd like:
Next to the "print" button could be a "download" button that auto generates and downloads a PDF file.

you make a good point @ch-lepp , when we have looked at this previously the browser was able to export as PDF so there was not the need to add the button. If you want to make the changes then it is certainly something to revisit

Hi @jgadsden ,
I have done some research and found some great libraries that allow users to save web pages as PDF files. I have implemented this feature in the web app. Would you like me to share it with you?
Look at how it saves the page in a PDF file: https://drive.google.com/file/d/1mnt32MI_VKDWNuv2HhMUZDlV2o1TLUC4/view?usp=sharing

Hey, Can I work on this?


impr: ai tools v0.2

Summary by Sourcery
Refactor chat components to improve code organization and state management, including separating message pair rendering into a new component and enhancing loading state handling. Update the regex in the web search tool for better JSON data matching.
Enhancements:

Refactor the ChatList component to separate message pair rendering into a new MessagePairs component for better code organization.
Improve the handling of loading states and tool calls in the chat functionality, including better state management and user feedback.
Enhance the regex used in the getWebSearchTool function to better match JSON data blocks with nested braces.
Refactor the chat panel and header components to use the loading state from the useThread hook, simplifying the component props.

Summary by CodeRabbit
Release Notes

New Features

Enhanced chat functionality with improved message handling and error management.
Introduced MessagePairs component for better organization of chat messages.
Added loading state indicators and improved user experience in chat components.
Enhanced web search tool with more precise JSON extraction and structured error messages.
Added ThreadPopUpCardHeader for better organization of thread popup functionality.
Introduced AiToolCall type to improve type safety for AI tool interactions.
Launched useMBChat hook for streamlined chat interactions and message management.
Added new anchor component for improved hyperlink handling in chat messages.
Updated ChatPanelHeader and ChatPanel for better loading state management.
Refactored Chat component and ThreadPopup for improved message processing and UI feedback.
Simplified BotThreadsPage and BrowseProBotPage components by removing unnecessary prompt formatting logic.

Bug Fixes

Improved error handling in the web search tool and chat components, ensuring clearer error messages.

Documentation

Updated descriptions and parameter details for AI tools to enhance clarity and usability.

Chores

Refined styling and layout of components for a more consistent and polished user interface.
Streamlined TypeScript configurations for better readability and updated ECMAScript targets.

@Bran18 @AnoukRImola @mledezma — Major changes have been merged to develop. Please pull the latest from develop branch. Additionally, regarding your issues, we will need to test these changes if resolve your issues related with the chat.
If anything, please let me know, and any details are specified within this PR. I created a few issues based on these changes so we can keep track of them.
@sheriffjimoh @Nemunas @luighis — These major changes might be important to take a look at, reading the whole description (it is recommended to see the code changes) should give a very good context. In short, these are related to the chat and a few improvements at the component level.


Unable to install GPU enabled TensorFlow

To install TensorFlow with GPU on an Ubuntu system, I installed CUDA v 8.0 using cuda-repo-ubuntu1404_8.0.44-1_amd64.deb and cuDNN using cudnn-8.0-linux-x64-v5.1.
The following are the environment variables in ~/.profile file:
LD_LIBRARY_PATH=/usr/local/cuda/lib64
CUDA_PATH=/usr/local/cuda

On running the ./configure command inside the tensorflow folder the following error is displayed:

Seeking assistance from @drpngx
Any help is appreciated.

Cross-linking from stackoverflow: http://stackoverflow.com/questions/40555477/unable-to-install-gpu-enabled-tensorflow?noredirect=1#comment68351563_40555477

How about sudo apt-get install libcupti-dev ? That's required for the profiler capabilities.

@drpngx: I am unable to install the libcupti-dev package, the following error is displayed E: Unable to locate package libcupti-dev

It should be part of your regular ubuntu distro. Which one are you running 14, 15 or 16?

I am running Ubuntu 14.04

OK, then this should work for you: https://installion.co.uk/ubuntu/trusty/multiverse/l/libcupti-dev/install/index.html

@drpngx: I was successfully able to install libcupti-dev, however on running ./configure command the same error is displayed again.

We probably want to run dpkg -S libcupti to see where it's installed.

I suggest using cuda8.0 local deb file to install cuda, donwload from here
https://developer.nvidia.com/cuda-downloads
sudo dpkg -i cuda-repo-ubuntu1404-8-0-local_8.0.44-1_amd64.deb
and use
tar xvzf cudnn-8.0-linux-x64-v5.1-ga.tgz
sudo cp -P cuda/include/cudnn.h /usr/local/cuda/include
sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*

to install cuDNN,
and use all default value when you do ./configure

@willdzeng: On uninstalling cuda and reinstalling it and running the command sudo apt-get update, the update does not finish successfully. Please find the screenshot of the error attached.

So, did you manage to get any version of libcupti on your system? If so, just symlink it as instructed above.

I started the entire installation process again and followed the instructions given by @willdzeng. However on performing sudo apt-get update, I am facing the problem mentioned above. Because of which I am unable to install CUDA and cuDNN. Can you guide me with it?

@drpngx: On running ./configure command the following error is displayed:

And result of command dpkg -S libcupti is shown in below image:

looks like you have serval different version of cuda installed in your system.
Use
sudo apt-get remove cuda-.
remove all cuda first and then install the 8.0 from the local deb file.
also looks like you have some linkage broken with the dpkg linkage broken that causing you failing the apt-get update,
you should go to setting/Software&Update/other software to clean your source list, especially remove those who are failing.

It looks like this is in /usr/x86_64-linux-gnu, so you can symlink it from there.

Closing due to lack of activity.


VimuxRunCommand（）可不可以向指定的pane发送命令呢？

English please.

sorry ,Can VimuxRunCommand()  sends commands to the specified pane?not next pane.

Yes. See :help vimux for details on how to target starting a frame in a specific location or even re-use an existing one by ID.


[Question]: Double width or height?

Description
Is it possible to achieve a layout in which I can assign certain cols as double width, double height or both? To have some variation?
Solution
No response
Additional context
No response
Preferences

[ ] I want to be assigned to and work on this issue myself

The height of items depends on the items themselves, so that's certainly possible.
However, all columns have the same width.

v3.7.0 now supports differing column widths.


[test] Retrieve Linux distro and version from /etc/os-release

Certain Linux distributions like UBI9 don't include lsb_release. Let's use /etc/os-release to detect the Linux distro and version by default, and fall back to lsb_release if /etc/os-release is not available.
This makes it possible to mark C++ interop tests that require C++20 as unsupported on distros that bundle an older libstdc++ version.

@swift-ci please build toolchain UBI

@swift-ci please build toolchain UBI9

@swift-ci please build toolchain UBI9

@swift-ci please build toolchain UBI9

lit.py: /home/build-user/swift/test/lit.cfg:2912: note: Running tests on rhel-9.4

This looks correct to me. The build failure on UBI is unrelated to this patch.

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please build toolchain UBI9


Wrong HSTS header detection when multiple redirects involved

Here is an example: http://wmfusercontent.org redirects to https://wmfusercontent.org, which then redirects to https://www.wikimedia.org. https://wmfusercontent.org sets the HSTS header with includeSubDomain and preload, which I believe satisfy all requirements for preloading, although https://www.wikimedia.org doesn't set includeSubDomain directive. But the error message says:

HTTP redirects to a page without HSTS
http://wmfusercontent.org redirects to https://wmfusercontent.org/, which does not serve a HSTS header that satisfies preload conditions. First error: No includeSubDomains directive

Could you please clarify the requirements or is the error message wrong? Thanks!

Hmm, it seems you're right; there is probably a bug. I'll look into it right now.

You should be able to submit now; thanks for the report!


Incompatible with PHPStorm

I haven't spent enough time on this to really give a very helpful description, but basically the problem is that when using ClipMenu I do not get what I expect when pasting into PHPStorm.  It seems PHPStorm is trying to be smart and have its own clipboard history.  This is most likely a PHPStorm issue only, but I would like to know how this application works when pasting a selected history item.  Does it move the selected entry into the system clipboard and then execute ⌘-V?
PHPStorm will only paste the last thing copied from within the editor until I simply switch away from and back to the editor.  After that, ClipMenu works as expected until I copy something from within the editor.

It works great! The bad thing is we lost a lot of preferences.

Hi @naotaka , thanks for this version. Like @senechaux I lost preferences and back history when testing this, which is a shame, but not too big of a problem.
However, in my case what it does is simply lets the JIDea clipboard manager take over. Which is not my intention.
I will go back to trying the JIdea workaround (see http://stackoverflow.com/questions/26611642/external-clipboard-manager-breaking-in-jidea/26611643#26611643 ) and see if that solves it.

@shirki This seems to work for me in PHPStorm 8.0.3 - and seems to be the most "correct" way to solve this...there should be a user setting in PHPStorm for "Use System Clipboard"
@naotaka if you agree, I would close this issue.  Thanks for the help.

Confirming that it fixed the issue for me too


#454 Don't show completions after "var" keyword

Fix #454

:+1:

Added a unit test and comments to make the behavior clearer.


Cannot push source that relies on Contract.settings-meta.xml settings.

Summary
When pushing source to a scratch org, the autoCalculateEndDate value "false" in Contract.settings-meta.xml will not be used, causing the push to fail if any code or no-code automation tries to modify Contract.endDate.
Steps To Reproduce:
Repository to reproduce: contract-end-date-test

Clone the repo and cd into the project root directory

./createOrgFailPush

Note that the push command in the script failed to push with an error that Contract.EndDate is not writeable, even though force-app/main/default/settings/Contract.settings-meta.xml contains <autoCalculateEndDate>false</autoCalculateEndDate>:
TYPE   PROJECT PATH                                     PROBLEM
─────  ───────────────────────────────────────────────  ───────────────────────────────────────────────
Error  force-app/main/default/classes/ContractTest.cls  Field is not writeable: Contract.EndDate (6:18)
ERROR running force:source:push:  Push failed.

./preDeployContractSettingsAndPush

Note that the push command in this script succeeds, because Contract.settings-meta.xml was previously deployed via sfdx force:source:deploy.

Expected result
It should be possible to push code that modifies Contract.EndDate in the same force:source:push that sets autoCalculateEndDate to "false" in Contract.settings-meta.xml.  In terms of the demo repo, the first script (./createOrgFailPush) should have successfully pushed the source to the scratch org.
Actual result
The push fails unless the Contract setting autoCalculateEndDate is already set to false prior to the push, either by changing manually in the org or by pre-deploying the Contract.settings-meta.xml file.
Additional information
SFDX CLI Version
sfdx-cli/7.60.0-e2bb2907cb darwin-x64 node-v10.15.3

SFDX plugin Version
salesforcedx 48.16.2
├─ @salesforce/sfdx-plugin-lwc-test 0.1.5
├─ salesforcedx-templates 48.18.0
└─ salesforce-alm 48.17.0

OS and version:
Mac OS 10.14.5

Please note:  if you cloned the demo repo in the first 30 minutes this ticket was open, please pull changes - the wrong versions of the two demo scripts were originally included in the demo repo; this has been fixed.

@jclark-dot-org thank you for reporting, we are sending this information to the metadata team

There are lots of Settings that need to deploy before other metadata can deploy.
Everything in the metadata API under Settings can be added to your scratch org definition file, so that the org is ready to deploy to after it's created.
You'd do something like
...,
settings: {
  ...,
  contractSettings: {
    autoCalculateEndDate: false
  }
}

This is not a bug.


AIHW My Hospitals (Independent Publisher)

When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)

[x ] I attest that the connector works and I verified by deploying and testing all the operations.
[x ] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[x ] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[x ] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[x ] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[x ] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[x ] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.

[x ] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.

[ ] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

@paulculmsee Sorry for the delay in response, We do not have a schema definition idea for the content type you have shared, Let me move forward and prepare your connector for production deployment. We may receive suggestions from the engineering team during prepping your connector for prod deployment. Thanks

[[certify-connector]]

Dear partner,
We apologize for the delay you might be experiencing while we are working on a high volume of connector requests. Rest assured that we are doing everything we can to address this volume. We are taking measures like improving our processes and hiring additional team members to guarantee resolving your connector requests in a timely manner.
Please let us know if you have any questions in the meantime.

@paulculmsee Sorry for the delay in response, your connector is now in production deployment and reached to Asia region, and it would be completed and available in all the production regions by Friday 11th February 2022. Please let us know if you have any questions, Thanks.

@paulculmsee Congratulations! The deployment of your connector and documentation page is now complete, We have a short survey on the connector certification process that we would like for you to complete. Your feedback is appreciated and will help us improve the program, Thanks.


Update DG use cases

Closes #208

Codecov Report
Base: 71.42% // Head: 71.42% // No change to project coverage :thumbsup:

Coverage data is based on head (48c16d2) compared to base (c661544).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #216   +/-   ##
=========================================
  Coverage     71.42%   71.42%
  Complexity      631      631
=========================================
  Files           106      106
  Lines          2009     2009
  Branches        226      226
=========================================
  Hits           1435     1435
  Misses          505      505
  Partials         69       69

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.


[PORT] Change to "--framework netcoreapp2.1"

Port this change from botbuilder-dotnet/master branch:
https://github.com/microsoft/botbuilder-dotnet/pull/3232

Turns out netcoreapp3.0 creates a test bot that does not work. Specifying 2.1 does work.

Not Applicable


Generic computed properties

TypeScript Version<EMAIL_ADDRESS>Search Terms: generic computed properties
Code
type withKey<K> = {
    [K]: boolean
}

const X: withKey<'foo'> = {
    foo: true
}

Expected behavior:
I want to be able to type objects that expect a certain key known at compile time. This is useful when writing methods that connect a data source to let's say a React view e.g.
connectToApi(View, API, 'prop')
// 'prop' should be in the interface of `View`

Actual behavior:
Compiler fails with:
A computed property name in a type literal must refer to an expression
whose type is a literal type or a 'unique symbol' type.

Playground Link: https://agentcooper.github.io/typescript-play/#code/C4TwDgpgBA7glsAFgaQiAPMgfFAvFAbwCgpSoBtZAXQC4oAjAe0YBsIBDAOyIF8iiAxo04BnYFAAadeElQYA5ADNm8nPmJkoyxnWAAnAK4Re-IaPEBNaQhRp0SlWsIky9dnt2HjfIA
Related Issues: Don't know if this is related https://github.com/Microsoft/TypeScript/issues/13948

Perfect, thank you very much!

@gigobyte any idea why your example doesn't work if the K part is inferred as follows:
class Message<T extends string> {}
type MessageString<T> = T extends Message<infer S> ? S : never

type withKey<M> = {
    [m in MessageString<M>]: boolean
}

I figured out that the issue has to do with the inference being made to String as opposed to a Literal; hardcodedly inferring the correct literal type fixes the issue:
abstract class Message<T extends string> {}
type MessageString<T> = T extends Message<infer S> ? 'M1' : never   // infer 'M1' instead of string

type WithKey<M> = {
    [m in MessageString<M>]: boolean
}

class Base {[index:string]: boolean }
class M1 extends Message<'M1'>{}
class C1 extends Base implements WithKey<M1>{}   // NON-ISSUE: 'M1' property is enforced here

The question now is how does one arrange for a literal inference?
related issue: https://github.com/microsoft/TypeScript/issues/27704

Resolution:
abstract class Message<T extends string> {}
type MessageString<T> = T extends Message<infer S> ? S : never

type WithKey<M> = {
    [m in MessageString<M>]: boolean
}

class Base {[index:string]: boolean }
//class M1 extends Message<'M1'>{}
type M1 = Message<'M1'>                          // use a *simple* type; no union or intersection
class C1 extends Base implements WithKey<M1>{}   // NON-ISSUE: 'M1' property is enforced here

I also found a trick to merge multiple generic computed parameters together. It doesn't seem that I can put multiple of these [k1 in Key1]: string in one type, so I had to use &/
export type Prop1<Key1 extends string> = {
  [k1 in Key1]: string
}
export type Prop2<Key2 extends string> = {
  [k2 in Key2]: string
}
export type MyType<Key1 extends string, Key2 extends string> = Prop1<Key1> & Prop2<Key2>


Changing cache node color to green

RHOAIENG-7144
Description
Dashboard shows cached pipeline steps in gray (no info about what it means). Changed the cache (successfull) node color to green, keeping the cache icon.

How Has This Been Tested?
Duplicate a pipeline run to see the cache node.
Test Impact

Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[ ] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

[x] Included any necessary screenshots or gifs if it was a UI change.
[x] Included tags to the UX team if it was a UI/UX change (find relevant UX in the SMEs section).

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

@yannnz

would we want to show "Skipped" as the status in the drawer? Currently we are showing "Succeeded" for those skipped tasks.

Yes you are correct Jenny. @dpanshug Can you make sure this is reflected

@Gkrumbach07 @jenny-s51 That's what i was bothered about from start. We are not using custom nodes in the pipeline topology, the badge color and status both are defined in the same function translateStatusForNode. Changing the color of node from skipped to succeed also changes it's status.
Should I move with the custom node? but that will need to refractor a lot of things, or is there any other solution we can think of.

@dpanshug Is there just a way to save that it is cached in the node so that later on we can read from that?

@dpanshug This solution should work
diff --git a/frontend/src/concepts/pipelines/topology/parseUtils.ts b/frontend/src/concepts/pipelines/topology/parseUtils.ts
index a45733fb..775bd58b 100644
--- a/frontend/src/concepts/pipelines/topology/parseUtils.ts
+++ b/frontend/src/concepts/pipelines/topology/parseUtils.ts
@@ -315,8 +315,8 @@ export const translateStatusForNode = (
       return RunStatus.InProgress;
     case ExecutionStateKF.COMPLETE:
     case RuntimeStateKF.SUCCEEDED:
-    case ExecutionStateKF.CACHED:
       return RunStatus.Succeeded;
+    case ExecutionStateKF.CACHED:
     case RuntimeStateKF.SKIPPED:
       return RunStatus.Skipped;
     case RuntimeStateKF.RUNTIME_STATE_UNSPECIFIED:
diff --git a/frontend/src/concepts/topology/customNodes/StandardTaskNode.tsx b/frontend/src/concepts/topology/customNodes/StandardTaskNode.tsx
index 4f31022c..52a715c3 100644
--- a/frontend/src/concepts/topology/customNodes/StandardTaskNode.tsx
+++ b/frontend/src/concepts/topology/customNodes/StandardTaskNode.tsx
@@ -39,6 +39,13 @@ const StandardTaskNode: React.FunctionComponent<StandardTaskNodeProps> = ({
     />
   ) : null;

+  const getNodeStatus = () => {
+    if (data?.pipelineTask.status?.state === ExecutionStateKF.CACHED) {
+      return RunStatus.Succeeded;
+    }
+    return data?.runStatus;
+  };
+
   return (
     <g ref={hoverRef as React.LegacyRef<SVGGElement>}>
       <TaskNode
@@ -46,7 +53,7 @@ const StandardTaskNode: React.FunctionComponent<StandardTaskNodeProps> = ({
         onSelect={onSelect}
         selected={selected}
         scaleNode={hover && detailsLevel !== ScaleDetailsLevel.high}
-        status={data?.runStatus}
+        status={getNodeStatus()}
         customStatusIcon={
           data?.pipelineTask.status?.state === ExecutionStateKF.CACHED ? (
             <AngleDoubleRightIcon />

/lgtm
/approve
this solution looks to work. and tested live


The program crashed when input long context on windows CPU

Hi, I found the program will crash at first forward when input long context..
I just modifed the code to print the length of input tokens, and used some corpus to test the crash border.
And I notice the first talking run will add some instruction, so I use hello to skip it.
When the length of input tokens > 126, the program will crash. And I checked the crash position, it happends at the first loop of  https://github.com/mit-han-lab/TinyChatEngine/blob/de720b46327ee3b8cbb20a069799ff2e69908a13/llm/src/nn_modules/non_cuda/LLaMAGenerate.cc#L75C38-L75C38
Have any idea about it?
Here is the test log.
(TinyChatEngine) PS C:\Users\Documents\codes\TinyChatEngine\llm> .\chat.exe

TinyChatEngine by MIT HAN Lab: https://github.com/mit-han-lab/TinyChatEngine
Using model: LLaMA2_7B_chat
Using AWQ for 4bit quantization: https://github.com/mit-han-lab/llm-awq
Loading model... Finished!
USER: hello
ASSISTANT:
25
Hello! How can I help you today? Is there something specific you would like to know or discuss?
Inference latency, Total time: 7.6 s, 343.8 ms/token, 2.9 token/s, 22 tokens

USER: Context: domains with a joint attention model. The only interaction in a CLIP model between the image and text domain is a single dot product in a learned joint embedding space. We are excited to see CLIP hybridized with this line of work. CLIP is trained on text paired with images on the internet. These image-text pairs are unltered and uncurated and result in CLIP models learning many social biases. This has been previously demonstrated for image caption models(Bhargava & Forsyth, 20
ASSISTANT:
126
I understand that you're interested in the potential of hybridizing CLIP with joint attention models to improve its performance on tasks such as image-text matching and visual question answering. By incorporating a joint attention model into the CLIP architecture, we can enable the model to better understand the relationships
between images and text, and generate more accurate and informative captions for images.
Inference latency, Total time: 35.0 s, 442.6 ms/token, 2.3 token/s, 79 tokens

USER: Context: domains with a joint attention model. The only interaction in a CLIP model between the image and text domain is a single dot product in a learned joint embedding space. We are excited to see CLIP hybridized with this line of work. CLIP is trained on text paired with images on the internet. These image-text pairs are unltered and uncurated and result in CLIP models learning many social biases. This has been previously demonstrated for image caption models(Bhargava & Forsyth, 201
ASSISTANT:
127

Share you HW configuration.
I think this might be memory related.
I am running TinyChatEngine on Codespace with just 2core and 8Gb, and I get crashes.
TinyChatEngine by MIT HAN Lab: https://github.com/mit-han-lab/TinyChatEngine
Using model: LLaMA2_7B_chat
Using AWQ for 4bit quantization: https://github.com/mit-han-lab/llm-awq
Loading model... Finished!
USER: hello
ASSISTANT:
Hello! How can I help you today? Is there something specific you would like to know or talk about?
Inference latency, Total time: 8.3 s, 360.9 ms/token, 2.8 token/s, 23 tokens
USER: What do you know about the Tensor Virtual Machine framework?
ASSISTANT:
The Tensor Virtual Machine (TVM) is an open-source framework for building and deploying machine learning models. It was developed by Google and is designed to make it easier to train and deploy machine learning models on a variety of platforms, including cloud, edge, and embedded devices. TVM provides a high-level API that allows developers to write machine learning code in a simple and intuitive way, without worrying about the underlying hardware or software details. This makes it easier for developers to focus on building their models and deploying them in a variety of environments.
TVM supports a wide range of machine learning frameworks and libraries, including TensorFlow, PyTorch, and scikit-learn. It also provides tools for debugging and profiling models, as well as support for distributed training and deployment.
Overall, TVM isTerminated

running the chat in a local machine (WSL2, 12Gb allocated + 4Gb swap) has not produced a crash yet, but as the system swaps chat gets slower and slower.
Later, I will be migrating the Codespace to 4core, 16Gb to check if the crash occurs (with the same prompt).


Update passcode prompt design

What kind of PR is this?:
/kind feature
What this PR does / why we need it:

To display the transaction is authorized before queueing it

Which issue(s) does this PR fixes?:

Fixes #963
Additional comments?:

No translations for for zh-Hans and zh-Hant yet for some

Developer Checklist:

[x] Read your code changes at least once
[x] Tested on iOS/Android device (e.g, No crashes, library supported etc.)
[x] No console errors on web
[x] Tested on Light mode and Dark mode*
[x] Your UI implementation visually matched the rendered design*
[x] Unit tests*
[ ] Added e2e tests*
[x] Added translations*

Can we Center align the transaction description text?
Texted with German translation on iPhone 12


Bind post_task lazily in TaskEnhancements#after.

Consider you have two files:
# a.rake

task :a do
end
after :a, :b

# b.rake

task :b do
end

If a.rake is loaded before b.rake, it will fail, complaining that
"Don't know how to build task b". This is because TaskEnhancements#after
tries to look up task b before it's been defined.
However, the task is not actually needed until execution gets inside the
block that's passed to Rake::Task#enhance, at which point all tasks
should have been loaded and it's legitimate to complain about a task not
being recognised.
Havign this change allows app authors to write something like
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }

in their Capfile and not explicitly define load order. This cannot be
solved by calling require at the top of a.rake because require
throws a LoadError on .rake files. It also cannot be solved by
calling import at the top of a.rake, because Rake's import does
not load the referenced file immediately; it puts it in a queue and
continues processing the current file.

Please see the contributing guidelines at https://github.com/capistrano/capistrano/blob/master/CONTRIBUTING.md otherwise looks fine (i.e just check the CHANGELOG, and credit yourself, etc)

I've added a test for the issue I'm fixing, added myself to the changelog, and rebased.

Thanks @jcoglan !


Role & ClusterRole incorrect labeling in v1.2.1

@gadinaor  The screenshot was handcrafted; however, I've worked on this feature a bit today (from the master branch currently tagged at 1.2.1).
Unrelated: I noticed something a bit odd. The results  of the lookup command are different in the 1.2.0 and the 1.2.1 .The 1.2.0 labels ClusterRoles as Roles when they are used on a namespaced (i.e. with a Rolebinding).
Is the change from 1.2.0 to 1.2.1 intentional or a regression?

After reviewing - this is actually the intended behavior as of v1.2.1


phpstan 1.12.0 introduces final classes, breaking ReadWriteConfigPropertiesRule

Hi
phpstan 1.12 made the class PHPStan\Rules\DeadCode\UnusedPrivatePropertyRule final.
Here's the change which mentions v2: https://github.com/phpstan/phpstan-src/commit/4010b73ffd62ef9d4a2095fb3d7d00bb81199c89
This affects ReadWriteConfigPropertiesRule: Class Syntro\SilverstripePHPStan\Rule\ReadWriteConfigPropertiesRule cannot extend final class PHPStan\Rules\DeadCode\UnusedPrivatePropertyRule
I don't know if there is an easy fix for this? workaround is to use 1.11 for now
Thanks
James

Maybe the solution here is to remove the ReadWriteConfigPropertiesRule? The @config annotation is no longer recommended by Silverstripe https://github.com/silverstripe/developer-docs/pull/268/files#diff-4279843c08150f597889cfdc1a46f91bcfbae036ffa0a9367e97ca2559471379
Configuration properties are just any private static property that don't have the @internal annotation

That broken ReadWriteConfigPropertiesRule adds a hint for devs, that @config is missing.
PHPstan still expects @config for ignoring Silverstripe's config properties. So this hint is still worth being printed out. (I wrote a configurable rector rule to add this type hints in many cases, see https://github.com/wernerkrauss/silverstripe-rector )
What could we do? At a first look I didn't see any method to add notices to error messages.
We could also write our own extended copy of UnusedPrivatePropertyRule, which has the disadvantage, that it won't update if the original rule recieves bugfixes.

Is it possible  for the ReadWriteConfigPropertiesRule rule to not extend \PHPStan\Rules\DeadCode\UnusedPrivatePropertyRule ?
At the moment, the only way to use this module alongside phpstan and rector is to set a version constraint of phpstan to ~1.11.0 and rector to 1.2.4 (1.2.5 requires phpstan ^1.12.2)
I see no issue with removing the ReadWriteConfigPropertiesRule, given the removal of the documentation linked by @Cambis

Afair @config didn't have a meaning in Silverstripe, as every private static was and is seen as a config value. When I started using PHPStan that hint message helped me a lot.
If you decide to remove that class, then please add that hint in the documentation or a FAQ or whatever.
We could also write our own rule, pass processNode() to PHPstan and adjust the error array. What do you think about that?

I'd be keen to remove the ReadWriteConfigPropertiesRule completely and modify the existing behaviour of ReadWritePropertiesExtension.
Currently the ReadWritePropertiesExtension checks for the @config annotation on a property. We can update this to just check if the property is private static and it doesn't have a the @internal annotation. Same behaviour as Silverstripe.
I made a branch with these changes a while back, so I can put in a PR to action this.
For a short term solution, you can still use this extension but create your own version of the phpstan.neon file and remove the ReadWriteConfigPropertiesRule from there.
# phpstan.neon

- # Rule informing the user to add the @config docblock
-    -
-        class: Syntro\SilverstripePHPStan\Rule\ReadWriteConfigPropertiesRule
-        arguments:
-            alwaysWrittenTags: %propertyAlwaysWrittenTags%
-            alwaysReadTags: %propertyAlwaysReadTags%
-            checkUninitializedProperties: %checkUninitializedProperties%
-       tags:
-           - phpstan.rules.rule

Otherwise you can use the extension I've been developing as an alternative. You can find it on packagist


Remove launch.json from gitignore

This prevent that file from being formated

No changes needing a change description found.

You can try these changes here

🛝 Playground
🌐 Website
📚 Next docs


Different behaviour in different OS variants.

Hi,
I worked with the library and its pretty cool. Thanks.
But, there is a concern. When I am trying to swipe the card with "OxygenOS" variants or their derivatives (One Plus Devices), the animation is quite different. Its like, it is hinged at the centre and a rotation happens in the direction (1-4). When I try to dismiss the top card in either direction (via code), the behaviour is good.
Any idea, like why is it behaving differently on different OS?
PS: In stock and cyanogenmod, there is a usual behaviour. No glitch.

As per my investigations, I came to know that the rotation_coefficient is what makes them behave differently in different devices. This is actually the outcome of the large screen DPI's and can be solved by using larger co-efficient value (In: CardAnimator.java drag method).


ThaliCore: update for Swift 4 and iOS 11

There are a couple of minor fixes needed to compile ThaliCore for iOS11.
One is a minor change in Swift 4 (that comes with Xcode 9), the other is an API change in iOS 11.

Fixed in the master-swift4 branch:
https://github.com/thaliproject/thali-ios/commit/8b6c4ecdf8ba27e3a364f35a2262c6b104854dc1


🐛  Fix KS version in create-kubestellar-demo-env.sh

Summary
This PR fixes the KubeStellar version number in scripts/create-kubestellar-demo-env.sh and updates the release process document to include that in the list of self-references to update.
Related issue(s)
Fixes #

/lgtm

/approve


Update required AHK version info

it also requires AutoHotkey 1.1.36 or newer:

Alright my ahk is way old, so I update to latest nonalpha, 2.0.1.   Requires >=1.1.36 <2".
I propose changing wherever it is noted that AHK 1.1.36 is required, this be updated to include "and below AHK 2.0".  That would be decent of you, thanks.

"Unable to locate the appropriate interpreter to run this script. Requires >=1.1.36 <2". I get this problem and how to fix it ?

thanks


Adding workflow to build the extension on push and pull request.

Use current version, @v4 as of today, of the checkout action.

Thanks, applied!


Time to open (UI/Main thread)

I am facing some problems to open the crop, it is very slowly, by searching about native threads I find something that is use to run the plugin in the main thread, my question right now is about to add that feature to the plugin, I made my own version with:
iOS (added when presentViewController):
   dispatch_async(dispatch_get_main_queue(), ^{
        PECropViewController *cropController = [[PECropViewController alloc] init];
        cropController.delegate = self;
        cropController.image = image;

        CGFloat width = image.size.width;
        CGFloat height = image.size.height;
        CGFloat length = MIN(width, height);
        cropController.toolbarHidden = YES;
        cropController.rotationEnabled = NO;
        cropController.keepingCropAspectRatio = NO;

        cropController.imageCropRect = CGRectMake((width - length) / 2,
                                                  (height - length) / 2,
                                                  length,
                                                  length);

        UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:cropController];

        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
            navigationController.modalPresentationStyle = UIModalPresentationFormSheet;
        }

        [self.viewController presentViewController:navigationController animated:YES completion:NULL];
    });

Android:
cordova.getActivity().runOnUiThread(new Runnable() {
    public void run() {
         Crop.of(cropPlugin.inputUri, cropPlugin.outputUri)
            .start(cordova.getActivity());
    }
});

Can you explain why it is not added to the plugin. In my case it solved all the problems when open the cropper and maybe I can create a PR to add this feature to the plugin.
Thanks.

It looks like your edits are in the CTCrop.m file for iOS and then the CropPlugin.java file for Android?
I will try out your changes and let you know how it runs for me, thanks for taking the time to improve this, this plugin came in handy 👍


Crash When Set Date To 1350!

Calendar now = new UmmalquraCalendar(1350, UmmalquraCalendar.SHAABAN, 11);

Yep. I can confirm it crashes when date is less than 1400. I hope this can be fixed.

Any update on this issue?


Problem on VN startup

Game language: English
Operating system: Windows
Episode and chapter where the issue occurs:
Description of the issue:
When adding the lines indicated in the readme, the game won't start; specifically, the line with the discord-id seems to be the problem
Screenshot of the issue

To resolve it is necessary to also install the custom executable you can find here:


when an opened map page is dragged out (via the option"move to new window")to become a separate window, you cannot drag the map with the mouse inside that page.

in the version of (V0.15.6),when an opened map page is dragged out (via the option"move to new window")to become a separate window, you cannot drag the map with the mouse inside the page.

i hope that this web page will help you :Plugin developers: How to update your plugin to support pop-out windows - Announcements - Obsidian Forum
besides,thanks for your effort to develep this plugin! this plugin has became indispensable to me! and l will waitng for the new function to be released! especially in # 88


Actor Reminders share OperationId

It seems that all reminders are being recorded with the same OperationId. I have a long running actor acting as a sort of cron job. It is repeatedly called via an actor reminder for the lifetime of the application. All operations it performs get recorded together which makes parsing these time consuming. How can I split each reminder executing into separate Operations with unique OperationIds?

@profet23 Have you looked at StartOperation?

Thank you @yantang-msft. I agree that this is a good workaround. But still feel each reminder invocation is a separate operation. I dunno. I guess it's debatable.

@profet23 I'm glad you can work around this issue.
I agree with you each invocation is a separate operation. To make this happen, it requires some modifications in the SF framework, which we currently don't have any plan on that. Sorry about that.


fix message-box bug

Please make sure these boxes are checked before submitting your PR, thank you!

[x] Make sure you follow Element's contributing guide (中文 | English | Español).
[x] Make sure you are merging your commits to dev branch.
[x] Add some descriptions and refer relative issues for you PR.
fix message-box bug
#8931

不算是 bug。我们已经在文档中添加了相关提示信息。http://element.eleme.io/#/zh-CN/component/message-box#zi-ding-yi


Audit what we have re: directories for keys (is it what openssh does?)

https://github.com/openssh/openssh-portable/blob/d637c4aee6f9b5280c13c020d7653444ac1fcaa5/misc.c#L1838-L1907 contains the behavior we should emulate. requiring 0700 is more strict.


Unhandled Exception: Bad state: Cannot add new events after calling close

Describe the bug
What exception i'm not handling?
[VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: Bad state: Cannot add new events after calling close
#0      _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:249:24)
#1      _RxImpl.addListener.<anonymous closure>
package:get/…/rx_core/rx_impl.dart:147
#2      _rootRunUnary (dart:async/zone.dart:1198:47)
#3      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#4      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
#5      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#6      _DelayedData.perform (dart:async/stream_impl.dart:611:14)
#7      _StreamImplEvents.handleNext (dart:async/stream_impl.dart:730:11)
#8      _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:687:7)
#9      _rootRun (dart:async/zone.dart:1182:47)
#10     _CustomZone.run (dart:async/zone.dart:1093:19)
#11     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#12     _CustomZone.bindCallbackGuarded.<anonymous closure> <…>

Reproduction code
import 'dart:convert';

import 'package:app/models/apps_model.dart';
import 'package:app/utils/storage.dart';
import 'package:app/utils/stores.dart';
import 'package:get/get.dart';
import 'package:get/get_state_manager/get_state_manager.dart';

class AppLauncherController extends GetxController {
  static BrowserStorage browserStorage = BrowserStorage();
  AppsModel requested = Get.arguments;

  final Stores stores = Stores();

  RxList myTabs = [].obs;
  RxInt currentTab = 0.obs;
  RxBool isLoaded = false.obs;

  @override
  void onInit() {
    super.onInit();
    loadOldTabs();
  }

  void updateCurrentIndex(int index) {
    currentTab.value = index;
  }

  void closeTab(String storeID) {
    if (myTabs.contains(storeID)) {
      var tabToBeClosed = myTabs.indexOf(storeID);
      myTabs.remove(storeID);
      if ((myTabs.length - 1) < tabToBeClosed) {
        var finalTab = myTabs.length - 1;
        currentTab.value = finalTab;
      }
      updateTabs();
      if (myTabs.length.isLowerThan(1)) {
        Get.back();
      }
    }
  }

  void openTab() {
    if (myTabs.contains(requested.getId)) {
      currentTab.value = myTabs.indexOf(requested.getId);
    } else {
      myTabs.add(requested.getId);
      currentTab.value = myTabs.length - 1;
    }
    updateTabs();
  }

  void updateTabs() {
    browserStorage.setActiveTabs(jsonEncode(myTabs).toString());
  }

  void loadOldTabs() {
    var tabs = browserStorage.activeTabs.toString();
    if (tabs.isNotEmpty) {
      var json = jsonDecode(tabs) as List;
      myTabs.clear();
      for (var i = 0; i < json.length; i++) {
        myTabs.add(json[i]);
      }
    }
    openTab();
  }
}

Expected behavior
Everything just works fine in app but in debug console this warning appears
Flutter Version:
1.22.1
Getx Version:
3.13.2
Describe on which device you found the bug:
iPhone 11

Your code cannot be reproduced.
Place the code so that we can copy, paste and run.

Your code cannot be reproduced.
Place the code so that we can copy, paste and run.

I think that will be very difficult, sorry.

Hi, try close project, use:
flutter clean
And recompile the project.
See if the problem persists.
It seems to me another cache problem.

Hi, try close project, use:
flutter clean
And recompile the project.
See if the problem persists.
It seems to me another cache problem.

The warning appears randomly, don't know what is causing that.

I had the same error and after i encoded body while requesting data it's gone
json.encode(body)

Hi, try close project, use:
flutter clean
And recompile the project.
See if the problem persists.
It seems to me another cache problem.

The warning appears randomly, don't know what is causing that.

Cache, flutter clean solves it :)


Update rotem-rozmarin.yml

ok

Docs Build status updates of commit f89c06d:
:clock10: Pending: waiting for processors (13 builds ahead of you)
:warning: Docs Build is busy, currently there are 13 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

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

File
Status
Preview URL
Details

rd/rotem-rozmarin.yml
:white_check_mark:Succeeded

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.

OK

oi


Polygons fixes

Please do not update the README or Change Log, we will do this when we merge your PR.
This PR (delete as applicable)

Fixes a bug

Describe the changes below:

Fixed Path not being added to display list
Fix on line to line intersection code

Path should not be added to the Display List as it does not extend GameObject and therefore doesn't provide any of the properties or methods required for passing any of the render checks. What was the reasoning for adding it?

Hi,
Yes sorry, I realized that later, solution seems to be more complex than that...
The thing is that adding a Path to a scene doesn’t seem to work the same way as adding circle or other figures but semantics is the same.
I believe path method doesn’t seem to be ok as it just creates a path instance from parameters and return it without adding it to anything.
Are we missing a GameObject representation for paths, or what would you suggest should be the right approach here?
Regards.

El 21 feb. 2021, a la(s) 13:41, Richard Davey<EMAIL_ADDRESS>escribió:

Path should not be added to the Display List as it does not extend GameObject and therefore doesn't provide any of the properties or methods required for passing any of the render checks. What was the reasoning for adding it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Rendering a path is quite unusual, but you can do it by using the Path's ability to draw to a Graphics object. It has methods for that built into it. Anything more complex should be handled directly by your own code.

Hi Richard, ok got you. What about the other change? Without validating it’s < 1 you could end up having intersections outside the line segment span.
Regards.

El 22 feb. 2021, a la(s) 07:28, Richard Davey<EMAIL_ADDRESS>escribió:

Rendering a path is quite unusual, but you can do it by using the Path's ability to draw to a Graphics object. It has methods for that built into it. Anything more complex should be handled directly by your own code.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Can you post a simple example showing how < 1 fails currently, please?

Hi Richard,
Here's an example that requires this patch:
var line1 = [{x:100,y:100},{x:200,y:200}]
var line2 = [{x:300,y:100},{x:300,y:300}]
The value for T1 will be calculated as 2, which means it goes outside the
line segment parameterized between [0, 1]
But besides that I've found more errors on the implementation of
GetLineToLine. Another easy to see error is that whenever the line1 is
straight vertical it will not intersect with anything as there's code that
returns null whenever dx1 === 0
[image: image.png]
What are your thoughts regarding collinear lines that overlap? intersection
definition says that result is everything that belongs to both groups but
on this code it returns null, basically if you intersect to equal lines you
will get null as result which is weird...
So I'm working on an improved version of this method as I need a fully
reliable line intersection that solves all these issues and I couldn't find
any other 100% reliable implementation.
On Mon, Feb 22, 2021 at 2:50 PM Richard Davey<EMAIL_ADDRESS>wrote:

Can you post a simple example showing how < 1 fails currently, please?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/photonstorm/phaser/pull/5571#issuecomment-783553296,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALZWCLI3KQ34RKCDS5H2ULTAKKOHANCNFSM4X6HELHA
.

If you want to update the function to deal with coincidental lines, that's fine.

This was fixed via #5701, so going to close this PR.


Rate Control

How is it managed to ensure that only 10 resources are created at the same time? In CloudFormation, we have to use the 'DependOn' attribute to achieve a similar result.

@jennerfer thank you for your question. When performing CRUD operations on resources AWS Terraform Provider handles the retry in the background for you. Some information is the Terraform documentation. For AWS Control Tower controls I think the default timeout is set to 60 minutes for create and delete operations (please check the source code in the repository https://github.com/hashicorp/terraform-provider-aws (from a recent commit I can see timeouts of 60 minutes here). Please let me know if you need additional information and if I can close this issue.