Build fails on macos

I came upon this project for hacktoberfest and decided to try installing it for myself. I hit this build error:
$ cargo build --release
   Compiling libc v0.2.62
   Compiling proc-macro2 v1.0.3
   Compiling syn v1.0.5
   Compiling bitflags v1.1.0
   Compiling unicode-width v0.1.6
   Compiling unicode-segmentation v1.3.0
   Compiling strsim v0.8.0
   Compiling ansi_term v0.11.0
   Compiling block v0.1.6
   Compiling vec_map v0.8.1
   Compiling textwrap v0.11.0
    Buil   Compiling heck v0.3.1
   Compiling malloc_buf v0.0.6
   Compiling atty v0.2.13
   Compiling quote v1.0.2
   Compiling objc v0.2.6
   Compiling clap v2.33.0
   Compiling objc_id v0.1.1
   Compiling objc-foundation v0.1.1
   Compiling clipboard v0.5.0
   Compiling proc-macro-error v0.2.6
   Compiling structopt-derive v0.3.1
   Compiling structopt v0.3.1
   Compiling numconverter v1.1.0 (/Users/danpaz/code/numconverter)
error[E0277]: `?` couldn't convert the error to `ErrorCode`
   --> src/main.rs:211:43
    |
211 |     let content = clipboard.get_contents()?;
    |                                           ^ the trait `std::convert::From<std::boxed::Box<dyn std::error::Error>>` is not implemented for `ErrorCode`
    |
    = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
    = note: required by `std::convert::From::from`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `numconverter`.

To learn more, run the command again with --verbose.

I am running MacOS Catalina 10.15.
As the Travis tests only run on Linux I think CI would not have caught this.

Thanks for bringing this to my attention!  Unfortunately, I don't have a Mac to test on, so I am also not very familiar with the testing options available for Mac (like the Travis build).
Issue should be fixed by #30


[Runtime][WIP] Remove unnecessary copy

Context: The state was copied from a vector to another vector to a memref buffer. There was a redundant vector copy. For the following program:
#include <stdio.h>
#include <stdlib.h>

struct MemRefDouble {
  double *allocated;
  double *aligned;
  int offset;
};

// complex<double> type
struct CplxT_double {
    double real;
    double imag;
};

typedef struct CplxT_double CplxT_double;

struct MemRefT_CplxT_double_1d {
    CplxT_double *data_allocated;
    CplxT_double *data_aligned;
    size_t offset;
    size_t sizes[1];
    size_t strides[1];
};

extern void __quantum__rt__finalize();
extern void __quantum__rt__initialize();

extern void* __quantum__rt__qubit_allocate_array(int);
extern void __quantum__qis__State(struct MemRefT_CplxT_double_1d *, int, ...);
extern void *_mlir_memref_to_llvm_alloc(size_t);

int
main(int argc, char** argv)
{
  double buffer[1] = {0.0};
  __quantum__rt__initialize();
  char* endptr = NULL;
  size_t num_qubits = strtol(argv[1], &endptr, 10);
  CplxT_double *buffer_result = (CplxT_double *) _mlir_memref_to_llvm_alloc(sizeof(struct CplxT_double) * 1U << num_qubits);
  struct MemRefT_CplxT_double_1d result;
  result.data_allocated = buffer_result;
  result.data_aligned = buffer_result;
  void* array = __quantum__rt__qubit_allocate_array(num_qubits);
  __quantum__qis__State(&result, 0);
  __quantum__rt__finalize();
}

running
valgrind --tool=massif ./a.out 25

Shows a peak memory usage of 1.5 GB evenly distributed between three callsites
    GB
1.500^                                                                       #
     |                                                                       #
     |                                                                       #
     |                                                                       #
     |                                                                       #
     |                                                                       #
     |                                                                       #
     |                @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
     |                @                                                      #
     |                @                                                      #
     |                @                                                      #
     |                @                                                      #
     |                @                                                      #
     |                @                                                      #
     | @@@@@@@@@@@@@@@@                                                      #
     | @              @                                                      #
     | @              @                                                      #
     | @              @                                                      #
     | @              @                                                      #
     | @              @                                                      #
   0 +----------------------------------------------------------------------->Mi
     0                                                                   433.1

Number of snapshots: 75
 Detailed snapshots: [12, 14, 16, 24, 44, 45, 48, 50, 51, 53, 54, 55, 57, 58, 60, 62, 64, 68, 69, 70 (peak)]

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
 70    454,061,636    1,610,785,072    1,610,763,090        21,982            0
100.00% (1,610,763,090B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->33.33% (536,870,912B) 0x48F1D66: Catalyst::Runtime::Simulator::LightningSimulator::State() (in /home/eo/Code/catalyst-latest/runtime/build/lib/backend/librt_backend.so)
| ->33.33% (536,870,912B) 0x4A4388F: __quantum__qis__State (in /home/eo/Code/catalyst-latest/runtime/build/lib/capi/librt_capi.so)
|   ->33.33% (536,870,912B) 0x1093B8: main (a.c:45)
|
->33.33% (536,870,912B) 0x48F66B9: std::vector<std::complex<double>, Pennylane::Util::AlignedAllocator<std::complex<double> > >::vector(unsigned long, std::complex<double> const&, Pennylane::Util::AlignedAllocator<std::complex<double> > const&) (in /home/eo/Code/catalyst-latest/runtime/build/lib/backend/librt_backend.so)
| ->33.33% (536,870,912B) 0x48F6593: Pennylane::StateVectorDynamicCPU<double>::StateVectorDynamicCPU(unsigned long, Pennylane::Threading, Pennylane::CPUMemoryModel) (in /home/eo/Code/catalyst-latest/runtime/build/lib/backend/librt_backend.so)
|   ->33.33% (536,870,912B) 0x48F04BA: Catalyst::Runtime::Simulator::LightningSimulator::AllocateQubits(unsigned long) (in /home/eo/Code/catalyst-latest/runtime/build/lib/backend/librt_backend.so)
|   | ->33.33% (536,870,912B) 0x4A3EB65: __quantum__rt__qubit_allocate_array (in /home/eo/Code/catalyst-latest/runtime/build/lib/capi/librt_capi.so)
|   |   ->33.33% (536,870,912B) 0x1093A7: main (a.c:44)
|   |
|   ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
|
->33.33% (536,870,912B) 0x4A3E5CD: _mlir_memref_to_llvm_alloc (in /home/eo/Code/catalyst-latest/runtime/build/lib/capi/librt_capi.so)
| ->33.33% (536,870,912B) 0x109388: main (a.c:40)
|
->00.01% (150,354B) in 1+ places, all below ms_print's threshold (01.00%)

The first callsite is the temporary vector used to pass results from PL-lightning library to the C-API runtime. The second callsite to the aligned allocator in PL-lightning. The third one is the memory requested in the main function to hold the result values.
Description of the Change: This is just a WIP to find other possible redundant copies. The changes involve passing the data pointer directly to the memref for copying. After this change, the same program shows the following memory profile:
    GB
1.000^                            ###########################################
     |                            #
     |                            #
     |                            #
     |                            #
     |                            #
     |                            #
     |                            #
     |                            #
     |                            #
     |  @@@@@@@@@@@@@@@@@@@@@@@@@@#                                          :
     |  @                         #                                          :
     |  @                         #                                          :
     |  @                         #                                          :
     |  @                         #                                          :
     |  @                         #                                          :
     |  @                         #                                          :
     |  @                         #                                          :
     |  @                         #                                          :
     |  @                         #                                          :
   0 +----------------------------------------------------------------------->Mi
     0                                                                   241.1

100.00% (1,073,892,930B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->49.99% (536,870,944B) 0x48F6619: std::vector<std::complex<double>, Pennylane::Util::AlignedAllocator<std::complex<double> > >::vector(unsigned long, std::complex<double> const&, Pennylane::Util::AlignedAllocator<std::complex<double> > const&) (in /home/eo/Code/catalyst-latest/runtime/build/lib/backend/librt_backend.so)
| ->49.99% (536,870,944B) 0x48F64F3: Pennylane::StateVectorDynamicCPU<double>::StateVectorDynamicCPU(unsigned long, Pennylane::Threading, Pennylane::CPUMemoryModel) (in /home/eo/Code/catalyst-latest/runtime/build/lib/backend/librt_backend.so)
|   ->49.99% (536,870,912B) 0x48F04BA: Catalyst::Runtime::Simulator::LightningSimulator::AllocateQubits(unsigned long) (in /home/eo/Code/catalyst-latest/runtime/build/lib/backend/librt_backend.so)
|   | ->49.99% (536,870,912B) 0x4A3EB65: __quantum__rt__qubit_allocate_array (in /home/eo/Code/catalyst-latest/runtime/build/lib/capi/librt_capi.so)
|   |   ->49.99% (536,870,912B) 0x1093B0: main (a.c:44)
|   |
|   ->00.00% (32B) in 1+ places, all below ms_print's threshold (01.00%)
|
->49.99% (536,870,912B) 0x4A3E5CD: _mlir_memref_to_llvm_alloc (in /home/eo/Code/catalyst-latest/runtime/build/lib/capi/librt_capi.so)
| ->49.99% (536,870,912B) 0x109391: main (a.c:40)
|
->00.01% (151,074B) in 1+ places, all below ms_print's threshold (01.00%)

Benefits: Less time spent copying data, less memory usage.

I know that we already discussed this issue but have to mention again here that the main reason we ended up returning a deep-copy of the state vector instead of a reference (or pointer to the underlying data) was because of keeping the State method as general and static as possible. Note that every backend simulator has its own data-type for representing state-vectors. You can check on the implementation of Lightning-kokkos for example. How would you think this issue can be tackled?

The last message I received on the topic was that you liked the idea about getting rid of the copy. :sweat_smile: But yes, we can hold on to this. The way to get rid of it would be to have a per-device lowering, where we lower the QIR to the corresponding calls to the lightning API and the QIR calls to kokkos to the kokkos API.

The way to get rid of it would be to have a per-device lowering, where we lower the QIR to the corresponding calls to the lightning API and the QIR calls to kokkos to the kokkos API.

This is not going to happen soon ;)

Ok, but we should note that there are inefficiencies introduced by this interface and once we get rid of this interface, it will unlock optimization opportunities.

we all agree that one copy is necessary in order to leave the internal device state intact when a quantum state is returned to the user program

Yes

the second copy here exists to allow the generic QuantumDevice interface to return a std::vector without making assumptions about which datatype the backend uses to store the statevector

Yes

What if the QuantumDevice interface returns some kind of view of the data instead, without assuming it is a complex vector? Is the std::vector datatype, or the complex data type, or both, the issue? I guess getting a array view of arbitrary complex container is tricky, unless we return two views to the real and imaginary parts thus making no assumptions about how the complex data is stored?

Yes. A view would remove the copy. It complicates the API a bit. I would need a more concrete description of the view, but I can imagine something concretely as two iterators, one for the real part and the other for the complex part. Then there would be no copy of the data.

What if the QuantumDevice interface actually provides (accepts as argument) the iterator that the device implementation must write the data into?
Because I was also thinking that this must work for something like probs as well, not just state, and it would eliminate the copy in the runtime to move the data from the device provided buffer into the memref.


Error when simulating spatial transcriptomics data for benchmarking DE genes

Hi,
I want to simulate a spatial dataset based on Human DLPFC dataset to benchmark clustering and DE analysis. Here is my code:
  example_sce <- getRDS("2020_maynard_prefrontal-cortex", "151507")
  # print(example_sce)

  set.seed(101)
  dec <- scran::modelGeneVar(example_sce)
  top <- scran::getTopHVGs(dec, n = 2000)

  example_sce <- example_sce[top, !is.na(example_sce@colData$layer_guess_reordered)]

  mt_idx<- grep("mt-",rownames(example_sce))
  if(length(mt_idx)!=0){
    example_sce   <- example_sce[-mt_idx,]
  }

  set.seed(1)
  example_data <- construct_data(
    sce = example_sce,
    assay_use = "counts",
    celltype = "layer_guess_reordered",
    pseudotime = NULL,
    spatial = c("row", "col"),
    other_covariates = NULL,
    corr_by = "1"
  )

  example_marginal <- fit_marginal(
    data = example_data,
    predictor = "gene",
    mu_formula = "layer_guess_reordered",
    sigma_formula = "1",
    family_use = "nb",
    n_cores = 10,
    usebam = FALSE
  )

  set.seed(1)
  example_copula <- fit_copula(
    sce = example_sce,
    assay_use = "counts",
    marginal_list = example_marginal,
    family_use = "nb",
    copula = "gaussian",
    n_cores = 10,
    new_covariate = NULL,
    input_data = example_data$dat
  )

  example_para <- extract_para(
    sce = example_sce,
    marginal_list = example_marginal,
    n_cores = 10,
    family_use = "nb",
    new_covariate = NULL,
    data = example_data$dat
  )

  diff <- apply(example_para$mean_mat, 2, function(x){max(x)-min(x)})
  diff_ordered <- order(diff, decreasing = TRUE)
  diff <- diff[diff_ordered]
  num_de <- 1000
  de_idx <- names(diff[1:num_de])
  non_de_idx <- names(diff[-(1:num_de)])
  non_de_mat <- apply(example_para$mean_mat[,non_de_idx], 2, function(x){
    avg <- (max(x)+min(x))/2
    new_mean <- rep(avg, length(x))
    return(new_mean)
  })
  example_para$mean_mat[,non_de_idx] <- non_de_mat

  set.seed(1)
  example_newcount <- simu_new(
    sce = example_sce,
    mean_mat = example_para$mean_mat,
    sigma_mat = example_para$sigma_mat,
    zero_mat = example_para$zero_mat,
    quantile_mat = NULL,
    copula_list = example_copula$copula_list,
    n_cores = 10,
    family_use = "nb",
    input_data = example_data$dat,
    new_covariate = example_data$newCovariate,
    important_feature = example_copula$important_feature
  )

The code will generate this error:
Use Copula to sample a multivariate quantile matrix
Sample Copula group 1 starts
Error in dimnames(x) <- dn :
  length of 'dimnames' [2] not equal to array extent

If I don't manually set DE and no DE genes, that is to say if I delete this part, then the simulation works well.
  diff <- apply(example_para$mean_mat, 2, function(x){max(x)-min(x)})
  diff_ordered <- order(diff, decreasing = TRUE)
  diff <- diff[diff_ordered]
  num_de <- 1000
  de_idx <- names(diff[1:num_de])
  non_de_idx <- names(diff[-(1:num_de)])
  non_de_mat <- apply(example_para$mean_mat[,non_de_idx], 2, function(x){
    avg <- (max(x)+min(x))/2
    new_mean <- rep(avg, length(x))
    return(new_mean)
  })
  example_para$mean_mat[,non_de_idx] <- non_de_mat

Do you have any suggestions? Thanks.
Best,
Tian

@ttgump Hi Tian,
I'm sorry for not getting back to you sooner. Your problem is caused by some NA values in your mean_mat. We have now updated our package by avoiding NA in mean_mat and now it should work for you. Please let me know if things go well!
Best,
Dongyuan


[release/1.7] CDI: Use CRI Config.CDIDevices field for CDI injection

This is a cherry-pick of the recent CDI enhancement to  1.7

@fuweid

would you please to use git commit -sx to cherry-pick? Thanks

Done


Fixed marker

Is there any way to make the marker fixed on one location?
I want the ability to be able to move the map but the location of marker stays fixed in the center of the screen even on dragging the map and the location of the marker gives the coordinates for region?
I have tried a lot to do it but coming up short. Any help would be greatly appreciated!

Would have been good if you could use the issue template we have in place.
To answer your question you can do this by adding a view on top of the map in the center of the screen that contains an image if the marker and on regionChange to find the center.


[channels,printer] default CUPS to being enabled

printer support now enabled by default unless iOS or ANDROID is build.
Move cups library detection to printer module

@freerdp-bot test please


SSH aliasing to custom remote URL

Is your feature request related to a problem? Please describe.
My github repo is cloned using an SSH alias, i.e.
Host github-mycompany
        HostName github.com
        User git
        IdentityFile ~/.ssh/mycompany

As a result, the extension doesn't seem to know that my directory points to a github repository
Describe the solution you'd like
Support remote definitions. For example, gitlens solves this with a configuration:
  "gitlens.remotes": [
    {
      "regex": "github-mycompany",
      "type": "Custom",
      "urls": {
        "repository": "https://github.com/${repoBase}/${repoPath}",
        "branches": "https://github.com/${repoBase}/${repoPath}/branches",
        "branch": "https://github.com/${repoBase}/${repoPath}/commits/${branch}",
        "commit": "https://github.com/${repoBase}/${repoPath}/commit/${id}",
        "file": "https://github.com/${repoBase}/${repoPath}?path=${file}${line}",
        "fileInBranch": "https://github.com/${repoBase}/${repoPath}/blob/${branch}/${file}${line}",
        "fileInCommit": "https://github.com/${repoBase}/${repoPath}/blob/${id}/${file}${line}",
        "fileLine": "#L${line}",
        "fileRange": "#L${start}-L${end}"
      }
    }
  ],

Although I don't need anything this advanced. Even something like this would suffice:
"github-actions.remote-url": "https://github.com/mycompany"

Maybe not a bug, but my gut feeling is that enhancement means this is very low priority. Until it's fixed, this extension does nothing but cause false alarms for me - since it can't talk to github, it assumes variables are undefined. 😞

Adding to this, in the case where different GH account are to be used from the same computer, it seems like using SSH aliases is a good approach.
In my case, I have the following ~/.ssh/config:
Host drorata-personal
  Hostname github.com
  User git
  IdentityFile ~/.ssh/personal_id_ed25519
  IdentitiesOnly yes

Host drorata-official
  Hostname github.com
  User git
  IdentityFile ~/.ssh/drorata_official_id_ed25519
  IdentitiesOnly yes

In this case, the origin in an "official" repo is: @drorata-official:drorata-official-username/calling_workflow_with_inputs.git . This seems to break the behavior of this extension.

I'm not sure about the exact authentication method, but I was able to get the VS Code extension to recognize the GitHub repository by adding a remote repository and configuring VS Code settings.
VS Code settings.json:
{
  "github-actions.remote-name": "github-https",
}

Adding the remote repository:
git remote add github-https https://github.com/your-repo-https-url.git


Define cirq.NoiseModel and cirq.NO_NOISE/cirq.ConstantQubitNoiseMode

cirq.NoiseModel has semi-abstract noisy_moment/moments/operation methods (at least one must be implemented)
cirq.ConstantQubitNoiseModel applies a given gate to every qubit at the end of every moment
cirq.NO_NOISE is a noise model that returns its inputs unchanged
DensityMatrixSimulator now has a noise attribute that takes a NoiseModel
Simulators now force keyword args for dtype

Part of https://github.com/quantumlib/Cirq/issues/1355
Fixes https://github.com/quantumlib/Cirq/issues/343
Defers https://github.com/quantumlib/Cirq/issues/1409

Simulators now force keyword args for dtype

Why?

Why?

Rule of thumb is that forcing keyword args is safer than not, because you can stop forcing it without breaking compatibility. I try to do it whenever there is not a clear order of arguments, or when there are very similar methods that have additional arguments where the order is not clear.


[fix](stream load) do not throw exception but skip record when can not find database (#39360)

pick (#39360)
When fetch stream load record from BE node, if can not find database, StreamLoadRecordMgr will throw exception and the remaining records will not be recorded in memory.
For example: Ten stream load records were pulled, and the database associated with the stream load of the first record was deleted by the user. Therefore, the pull will end, resulting in the remaining nine records not being consumed recorded in memory.
This pr do not throw exception but skip record when can not find database to solve this problem.

run buildall


[Gst-va] add transcode hevc and mpeg2 support

add transcode support for gst-va hevc and mpeg2 input support
1, hevc 8bit input
2, mpeg2 input

Please provide a PR for BAT test HEVC/MPEG2 xcode references to avoid breaking CI pre-check for others. I have already fixed the AVC xcode case in BAT that got merged previously.

Added, (Comments: gst-va doesn't support mpeg2 encode, so this will not impact gst-va bat mpeg2 transcode)


Introduce and use a micro size server instancetype

What this PR does / why we need it:
This should be suitable for use with CirrOS [1] and other minimal test
OSes used by KubeVirt CI.
[1] https://github.com/cirros-dev/cirros/issues/53
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

A new `micro` size has been introduced and used by the existing `server` family of instance types.

This LGTM obviously but I'm going to use this PR next week to add CI to the project etc.

I can imagine a use cases, when users would like to use this with other OSes, which have much higher requirements and then they will report us, that OS is not working. What about some label / annotation, readme, that this is intented only for cirros and other OSes are not supported?

I can imagine a use cases, when users would like to use this with other OSes, which have much higher requirements and then they will report us, that OS is not working. What about some label / annotation, readme, that this is intented only for cirros and other OSes are not supported?

I'm working on expressing minimum resource requirements through preferences. This should allow us to reject requests using both instance types and vanilla VM definitions without enough resources provided. I'll follow up here once I have a WIP PR posted.


create-service usage text is confusing for first time / infrequent users

Command
cf create-service
What occurred
This was confusing:
cf create-service SERVICE PLAN SERVICE_INSTANCE
What you expected to occur
Recommend changing to:
cf create-service SERVICE_NAME PLAN_NAME INSTANCE_NAME
CLI Version
6.23.1+a70deb38f.2017-01-13

We're not consistent in all commands at the moment with "X" vs "X_NAME", but I wonder whether e.g. "PLAN" vs "PLAN_NAME" can make a difference, other than the USAGE becoming longer.
The "instance" by itself in the CLI tends to refer to an app instance.
What was your confusion that it is improved by your suggestion?

Closing due to inactivity. Let's revisit when we refactor this command.


Sort & filter client cards

These three buttons on the top left of the home page are currently non-functional:

This issue specifically refers to adding the functionality of the first two, sort and filter.

I'll take this


On large cleanup tasks, gcr experiences temporary interruptions

I've been using the Dockerfile from #25 to run gcr cleaner tasks.
On a large gcr repo, where I needed to delete 5000+ images, gcr cleaner made a proper listing of all images to delete. Now, when running the deletion tasks, it failed a few times, with transient errors.
In order to finalize the cleanup, I had to restart the same gcr cleanup task, with the same parameters, a few times.
I'm wondering whether adding a try/catch to re-try failed deletions 2 or 3 times before failing the main process could fix this issue.
Is anyone else experiencing something similar?

hello @ferpizza is there any details for response message for header once you got the error ?

Fixed by this PR #27 . Added retry functionality.
@ferpizza @iomarmochtar

Fixed by this PR #27  . Added retry functionality.
@ferpizza @iomarmochtar

can we close this then?:)


Improvement for k8s.io/docs/tasks/run-application/horizontal-pod-autoscale/

Due to technical constraints, the HorizontalPodAutoscaler controller cannot exactly determine the first time a pod becomes ready when determining whether to set aside certain CPU metrics. Instead, it considers a Pod “not yet ready” if it’s unready and transitioned to unready within a short, configurable window of time since it started. This value is configured with the --horizontal-pod-autoscaler-initial-readiness-delay flag, and its default is 30 seconds. Once a pod has become ready, it considers any transition to ready to be the first if it occurred within a longer, configurable time since it started. This value is configured with the --horizontal-pod-autoscaler-cpu-initialization-period flag, and its default is 5 minutes.

This paragraph is very confusing, please rephrase.

Thank you for the feedback @RedBaron80
/retitle Confusing text in HorizontalPodAutoscaler task page
/priority backlog


Add example to put ticks into DB

@dingmaotu
Hi Ding,
Great work! :1st_place_medal:
Do you think you can also add an example script or EA to put live ticks into the SQLite3 DB?

For MT5 this is already available.
Perhaps we can reuse some of this code?


Fix the way that pointers to speeches in Prologue-like things render in the critical paratexts.

Related to Issue #27. The same fix might do for both.
Fix the way that the pointers from critical paratexts to speeches in prologue render in the parenthetical citations. E.g., see emdSel_staging where it has “link” instead of Prol.#.

I think this is a red herring, just like #27: the encoding in emdSel_M appears to be wrong.


Tesla Stock Market Prediction with Sentiment Analysis

I would like to contribute through the project based on neural networks with NlP .. LSTM (RNN + NLP) on Tesla stock market prediction

@Thatsooraj go for it .

@Niketkumardheeryan can you please assign this issue to me? I saw its up for grab


bibtext and reference.bib updated for 'Correction for multiple comparison using FDR' in multi_comp.py

Reference issue
Fixes #8930 .
What does this implement/fix?
updated bibtext and references.bib for 'Correction for multiple comparison using FDR' in multi_comp.py
Additional information
The html doc have been built properly locally

This one has a merge conflict...  probably you didn't update main from upstream before creating the new branch.  The solution is to git fetch upstream and then git rebase upstream/main.  Then, type git mergetool to open a text editor.  You will see that you and someone else both added new BibTeX references to the end of the file.  You need to keep them both, and remove any of the <<<< HEAD and ===== type of lines, save and close the file, and then run git rebase --continue.

thanks @FinLouarn


Ensure RCTFatalExceptions are skipped

In the case that JS initialization never happens, move up the essential elements of the JS config to ensure RCTFatalException messages are missed.
Fixes #115
Steps to test:

Initialize a React Native app using the docs instructions, skipping the JS portion
Configure bugsnag
Run the app on iOS
Ensure that causing a JS error does not generate an error report with the title RCTFatalException ...

Closing this in favor of a docs change better explaining the root cause.


An underlying issue of service.SecureString?

Does it extra call json.Marshal / json.Unmarshal?
Though they are symmetric, if you try to convert a struct which contains a SecureString member to map[string]interface{} by something like service.GetMapFromStruct, the SecureString member would have an unexpected value. And it needs separate json.Marshal and json.Unmarshal to get the correct value.
I can show some example code: https://play.golang.org/p/fWTCTXCw81P. It is a SecureString type without your crypto.

Hey @zhongyi-zhang. Thanks for reporting this.
I don't think there's actually an issue here. Let me try to explain some of the more nuanced aspects of how marshaling/unmarshaling work in Go and why the code is the way it is. I can also explain why your example code exhibits the strange behavior you are observing.
First, this line might look odd. (Or maybe not?) I have bytes already and I'm marshaling those to... bytes. Let me explain that and I think it sets us up for understanding the rest of this...
First, the bytes that you get after encrypting are not necessarily ASCII bytes.  To successfully include this information in JSON, it needs to be base64 encoded. As it so happens, when you marshal []byte in Go, what you get back is the original bytes base64 encoded then double quoted.
By way of example, let's assume you start with SecureString("abc") and no-op encryption. During the marshaling process, this becomes bytes [97 98 99] and gets base64 encoded as [89 87 74 106], after the quotes are added to the beginning and end, you end up with [34 89 87 74 106 34].
This ends up in the JSON doc looking like this:
{
  "foo": "YWJj"
}

Reversing the above requires stripping the quotes then base64 decoding.
In both directions, we rely on the encoding/json package to do all the heavy lifting. (Could have written this code to use encoding/base64 + some ugly slice manipulation instead, but I thought it was more comprehensible as currently written.
I hope this makes sense and explains why the custom marshaling / unmarshaling code in SecureString is correct.
Now I can explain why you're encountering difficulty (as in your example) despite SecureString code being correct.
In your example, everything works as you might expect all the way up through marshaling into the tmp variable. It's when you unmarshal that things go wrong for you. If you were unmarshaling into a struct of your type a, Go's unmarshaler would see that field X is of type SecureString and as a result, the custom unmarshaler for SecureString would be invoked at the proper point and everything would work as you expect. However, this is not what you are doing...
You are unmarshaling into a map[string]interface{}. When you do that, Go's unmarshaler doesn't get any hints about the type of each field in the JSON object. Unquoted true and false are treated as bool, anything else that is quoted is treated as a string, and anything else unquoted is treated as the numeric Go type most capable of holding any numeric value (integer or floating point)-- float64...
So-- when you unmarshal the JSON bytes in the tmp variable into m map[string]interface{}, "YWJj" is treated as a plain string. The custom unmarshaling code for SecureString is never invoked.
When you proceed, toward the end of your example to unmarshal bytes directly into y SecureString, Go's unmarshaler gets the hint and will properly invoke custom unmarshaling code for SecureString.
So... to summarize, the behavior you're seeing is normal Go behavior when you unmarshal JSON into a map[string]interface{} and the unmarshaler doesn't receive any hints about the types of fields. Custom unmarshaling code gets bypassed.
What this means, practically speaking, is that you probably shouldn't do this!

if you try to convert a struct which contains a SecureString member to map[string]interface{} by something like service.GetMapFromStruct, the SecureString member would have an unexpected value.

That doesn't surprise me because I don't believe those struct <--> map conversions utilize the custom marshalers / unmarshalers. You will actually notice that after we introduced the SecureString type, we actually stopped using the map utility functions in the (stable) modules. (They only still exist because I think they were useful somewhere in some bit of test code. Some experimental modules still use them, but note that experimental modules are currently excluded from the build. There's a lot of cleanup that we need to do on those modules to get them re-incorporated into the build.)
Sorry... I know this has been a long and complex explanation, but have I convinced you that nothing is wrong here?

@krancour thanks for the elaborate explanation! I learned useful and interesting things.


unresolves external symbol __imp_glewInit refrenced in function ARDrawingContext

Hello
I have problem when I want to use that
. after run command cmake .
cmake created sln file and when I build project I have 6 unresolved externals

Can you try to build the project using OpenCV – 3.0.0? This should work.


[v3] Introduce e2e testing

Ensure all docz functionalities, from cli commands, to exposed documentation features along with exported components (<PropsTable />; <Playground />)

Closed in favor of the new refactor


Resolve key loading issue on big-endian systems.

Closes: #208

I've verified this patch passes tests on on both AMD64 and on S390X.

@ChrisMacNaughton hi, thank you for the contribution and sorry for the late reply! Merged, will be included in the next release.


Support ODS files (OpenDocument Format Spreadsheet)

Please add support for ods files, created with LibreOffice Calc
https://www.libreoffice.org/
What do you think?
Thank you

This will be available only in the Pro version. It will be available in the next few weeks.


Print layout-field-preview before children

We have added layout component previews for parent elements (ie. having children) and then it makes more sense to have the preview up on top with the heading instead of below the children with the add button.
This PR simply moves the layout component preview area to be printed before the children.

Before PR:

After PR:

Rebased this to be easily merged


Room Textures

Room textures have found to have now moved to base.boxcritters.com. This is a new problem because there is no apparent way of working this out for now.
Let us know if you know anything about this
Click subscribe on the right to receive more updates on this.

this issue has be solved with a manual room json


Change name of arguments to share crowdsource results

An idea to give an incentive for users to upload their results. Thoughts?


work-around for go module import

This is a workaround for #11, go module import from github.com and golang.org
What do you think? @trotterdylan
PS: I havn't checked tests yet.

@trotterdylan, added comments, linked to vcs.go, changed name DOMAINS to VCS, added more VCS domains.


Incompatibility with fluent_ui package

What happened?
There is an incompatibility issue between the realm package and the fluent_ui package when used together in the same project.

Repro steps

Create a new Flutter project.
Add realm version 3.3.0 or higher to pubspec.yaml.
Add fluent_ui version 4.4.0 to pubspec.yaml.
Run flutter pub get.

Version
'>=3.3.3 <4.0.0'
What Atlas Services are you using?
Local Database only
What type of application is this?
Flutter Application
Client OS and version
win11
Code snippets
No response
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response

Hi @IvanMao714
Using Flultter 3.22.3 (latest stable per today), realm 3.3.0, and fluent_ui 4.9.0 resolves fine for me.
Trying to force flutter_ui 4.4.0 will yield the error:
Because fluent_ui >=3.10.0 <4.6.0 depends on flutter_localizations from sdk which depends on intl 0.19.0, fluent_ui >=3.10.0 <4.6.0 requires intl 0.19.0.
So, because fluent_io_plus_realm depends on fluent_ui 4.4.0 which depends on intl ^0.17.0, version solving failed.

No realm needed. Trying to use just fluent_ui pinned to 4.4.0 with latest stable flutter (3.22.2) gives the same error.


Will you relicense to MIT, like React did?

https://code.facebook.com/posts/300798627056246/relicensing-react-jest-flow-and-immutable-js/
https://github.com/facebook/react/commit/d63249d03488fec1ea92a81ba29f0e87a82feeae

I will look into this and get an answer a soon as possible. Thanks for your patience while we figure this out.

We are reconsidering our use of the BSD + Patents license, but we are not ready to make a change to this project yet. We are working with Facebook’s legal team to review our intellectual property in this area, but it will take some time. Unfortunately, we cannot commit to any certainty or timeframe for this change, but we will let you know as soon as that changes.
For now I'm closing this issue since there is nothing actionable and we don't know how long things will take. Sorry that there isn't more to report.

Hi, I was wondering if there is any new status you could share about this.
Thanks, and have a great day!

https://github.com/ant-design/ant-design/issues/10180

🎉 #1967


Reduce conditionals in signin/signup inner forms

by always using SignInLink and SignUpLink in the form action

why not use LinkAccountMode?

The goal of this PR is to reduce conditionals, so the reason NOT to use LinkAccountMode is because it'd be another conditional. Why would you want to add so much logic in a template ?
Templates would ideally be as simple as possible, as they are meant to be customized.
Now why would you keep it ?
Also, what does LinkAccountMode mean, exactly ? What are you linking ? Where does it say it's about OAuth2 ? Or should it also be for OpenID ? Let's start reducing the use of those conditionals, then maybe we'll be able to do w/out them completely.

LGTM

LGTM

It's better than before so I'm merging :)


Unmute does not work

System details at end of post.
I press mute (keyboard) and audio mutes, GUI displays mute. I then press mute (keyboard) again and GUI displays volume level, but no sound comes out until I press volume up or down (keyboard).
Details:
Operating System: Fedora Linux Asahi Remix 39
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.6.3-413.asahi.fc39.aarch64+16k (64-bit)
Graphics Platform: Wayland
Processors: 4 × Apple Firestorm (M1), 4 × Apple Icestorm (M1)
Memory: 7.3 GiB of RAM
Graphics Processor: Apple M1
Product Name: Apple MacBook Air (M1, 2020)
U-Boot Version: 2023.07

This is a side effect of how we map the equal loudness curve plugin to the channel volumes. I think this needs changes in Plasma's volume control module. It's something that's on the to-do list.

Thank you for the update.
On Sat, Mar 16, 2024, 10:44 PM James Calligeros @.***>
wrote:

This is a side effect of how we map the equal loudness curve plugin to the
channel volumes. I think this needs changes in Plasma's volume control
module. It's something that's on the to-do list.
—
Reply to this email directly, view it on GitHub
https://github.com/AsahiLinux/asahi-audio/issues/34#issuecomment-2002286241,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFZOHLHOHUVX4VHEGL7UV3YYT7SJAVCNFSM6AAAAABEUUG2TWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBSGI4DMMRUGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Fixed in Plasma 6


Bump Dependencies #1412914529

Bumps dependencies for product-is. Link : https://github.com/wso2/product-is/actions/runs/1412914529

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Display Hotsname

Added code which displays hostnames besides vendors
as it is raised as isuse by here
need hostnames if there are same vendor

Hi there @R3DDY97. On my first run I got an Unknown host error:
kickONEOff selected...
Online IPs:Traceback (most recent call last):  File "kickthemout.py", line 489, in <module>    main()
  File "kickthemout.py", line 461, in main
    kickoneoff()
  File "kickthemout.py", line 166, in kickoneoff
    hostname = socket.gethostbyaddr(onlineIPs[i])[0]
socket.herror: [Errno 1] Unknown host

I'm looking into socket's docs to see whether this method is effective and applicable for all devices. Thanks!

@k4m4
i tried with
utils.socket.gethostbyaddr(IP)
it worked
utils method form scapy
i have added now utils method before scoket now
try using utils.socket.gethostbyaddr(IP)
and kindly
let me know
whether it worked on not

hi
@k4m4
i have removed conflicts and made new PR
Thanks !


etcdserver: failed to reach the peerURL

This isn't a show-stopper, but I'm seeing this in my grid logs a lot:
kontena-etcd | 2017-01-03 19:00:56.199314 W | etcdserver: failed to reach the peerURL(http://<IP_ADDRESS>:2380) of member 1e9fce08da9bfda7 (Get http://<IP_ADDRESS>:2380/version: dial tcp <IP_ADDRESS>:2380: i/o timeout)

It's been there for several days. One thing to note about my setup is that I originally started with a few smaller nodes and decided to replace them with nodes with more memory. My only guess is that it's related to that. It just seems like whatever cleanup needs to occur, should happen on its own when using kontena tools to add and remove nodes.
Please let me know if there's any more information I can provide.

Sounds like you're missing one of your initial nodes. This needs #1468 for the CLI to display that clearly.
Do you have any offline initial nodes in kontena node ls? If you're replacing nodes, then you must first shutdown the node, and then kontena node rm. Once you have removed an initial node, then any new node that you install will replace that initial node.

That sounds like exactly what's going on. I did remove one of my initial nodes. I didn't shut it down as I recall, I just used the digital ocean plugin to remove it. Then once removed, added replacement nodes, and manually deleted the node from DO.
Name                                                                   Status     Initial    Labels
morning-morning-52                                                     online     yes        region=sfo1,az=sfo1,provider=digitalocean
long-firefly-44                                                        online     yes        region=sfo1,az=sfo1,provider=digitalocean
late-water-57                                                          online     no         region=sfo1,az=sfo1,provider=digitalocean
proud-sun-11                                                           online     no         region=sfo1,az=sfo1,provider=digitalocean
patient-fog-31                                                         online     no         region=sfo1,az=sfo1,provider=digitalocean```

I know that at one point I had three nodes marked as initial.

In the state I'm currently in, it sounds as though I need to somehow promote a node to initial. But the word initial doesn't sound like it's something you change. Do you have any advice for someone with kontena in this state?

So right now you're running a slightly degraded grid "that's all".
At what point did you run kontena node rm some-node-xy for the original initial node? Or are you saying you never did that? Because from my experience until you do that the node lingers in the node list as offline and once you do remove it, next time you provision a new node it will join and take it's place in the grid. So I'm guessing you provisioned new nodes to the grid and then later on removed the old initial node from kontena, thus resulting in a grid like that. And now if you provision one more new node that should take it's place as the third initial node in the grid, though you may run in to some problems with that because of this: https://github.com/kontena/kontena/issues/1136, 1.0.4 should fix that

That makes sense. What I did, assuming it was the safe route, was add new nodes, and then remove nodes. It sounds like I did it in the reverse order! Of course, it does still sound safer to add nodes before removing others. Thanks for taking the time to explain 👍
Though, given that you're reducing redundancy when removing nodes, it still seems like it would be nice for a new node to take its place if you add nodes first.

It may be slightly confusing, but consider this. Kontena does not know that you have in fact terminated the node, it only knows it seems to be down, but might be coming up at any time. So if you then start a new node and that node was to steal the place of the offline node as one of the intial nodes then what would happen if the original initial node were to come online at some point later? You would end up having 4 initial nodes, but your grid was configured as a 3 intial node grid so obviously that would cause some serious problems.

I agree that it would be nice to promote a new node to initial before terminating an old one. This requires a separate command (and lot's of internal magic) because master cannot resolve this kind of situation automatically (as @timolehto explained).
/cc @jnummelin

The one thing I'm uncertain of is wether or not I terminated the node or removed it. Until this conversation, they two were somewhat synonymous to me. But, just to share, I added a new node and it took the place of the missing "initial" node. I have to say, the descriptor "initial" is a bit misleading to me, because now that it's been replaced, it's no longer "initial". It seems that maybe a different word should be used?

The term initial comes from etcd clustering. I do agree that it's a bit misleading, but at this point it's bolted already at some APIs and might not be possible to change in all places while keeping API compatibility.
Technically I think it's possible to "swap" one node to take initial role of from another node. However, it will temporarily anyway impair your grid heavily as many of the Kontena components on a node need to be recreated with different config. For example Weave needs to be reconfigured and etcd needs to be re-created from "scratch". As @jakolehm said, this requires lot's of internal magic to make it happen automatically.
For some background on the initial node replacement, we have a blog post that explains some of the details: http://blog.kontena.io/automatic-etcd-cluster-member-replacement/

The funny thing about kontena node rm is that in a sense you can't really remove a healthy node. Doing that will remove it temporarily, but as the node is really healthy out there it will almost instantly rejoin the grid. It seems it will reappear on the list as offline though and will not automatically recover, however to fully recover it seems you just need to reboot the node.

I'm going to close this as I've fixed it on my end, and I know a related fix went in on your end.


updated the pre-commit configuration

This PR contains new pre-commit configuration.

PR #64 is blocked until this is merged, so would appreciate someone having a look here.

Thanks @norlandrhagen .

(I can access the file from local now, so it might have been an intermittent network effect)

@martindurant The same issue has also been raised here in #61. I'm running the notebook associated with this error.

NoCredentials implies that it is trying to authenticate - but the data is public, so anon=True should be in the remote_options.


Feat/update react version

react version 0.12

jsx files without jsx pragma
remove jsxhint error (still line too long)
replace gulp-webserver by a bulk connect + livereload

closed in favor of PR #33


Suggestions for OS X build instructions

mkdir $GOPATH/src/github.com/rhysd && cd $GOPATH/src/github.com/rhysd
might be better with -p option, i.e.
mkdir -p $GOPATH/src/github.com/rhysd && cd $GOPATH/src/github.com/rhysd
Additionally, the realpath command isn't available on OS X.
# On macOS
$ brew install bdw-gc`

might be better as
# On macOS
$ brew install bdw-gc
$ brew install coreutils

You're correct. I'll fix doc


python310Packages.govee-ble: init at 0.14.0, python310Packages.inkbird-ble: init at 0.5.2, python310Packages.xiaomi-ble: init at 0.8.0, python310Packages.sensorpush-ble: init at 1.5.1, python310Packages.moat-ble: init at 0.1.1

Description of changes

moat-ble: https://github.com/Bluetooth-Devices/moat-ble
sensorpush-ble: https://github.com/Bluetooth-Devices/sensorpush-ble
xiaomi-ble: https://github.com/Bluetooth-Devices/xiaomi-ble
inkbird-ble: https://github.com/Bluetooth-Devices/inkbird-ble
govee-ble: https://github.com/Bluetooth-Devices/govee-ble

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.


Export PSReadLine to changes to public project

This is just so I remember to do this for @lzybkr.

Changes have been exported, closing.

This shouldn't be closed until PSReadline has a single source of truth.

[ ] Changes are accepted
[ ] Package from lzybkr/PSReadline are being consumed here
[ ] PSReadline sources are removed from this repo

Okay, well I'm at least changing over the assignee then.


changes related to FooSoft/yomichan#84

Instead of hard coding Sequence = -1 for everything, I added sequence to epwing.go that increments every time extractor.extractTerms is called. JMnedict had Sequence already. The rikai solution isn't perfect, but I'm not familiar enough with the format to say if it's possible to infer the original "sequence" from it (unless you hash by glossary or something).

Looks good, thanks for the updates!


Add image augmentation for CIFAR-10

Pad 4 pixels of 0s on each side
Randomly crop 32x32
Randomly mirror vertically

Is there a good way to make this optional?

Thanks for adding this!


Changed support interval parameter

Fixes  #36544
Removed boolean value from interval parameters

Thanks for the PR but this is incomplete and a breaking change.


Fix icon paths

I had just referred to the icons using the wrong path, which is why we had to manually copy them.

fixes path
undoes the manual copy

Should work, but can't tell until it renders on gh-pages.

@willingc Fixes my prefix fix. Sorry for confusion!

Yay! It works! Now, we need pretty icons :) Thanks!

Yay! It works! Now, we need pretty icons :) Thanks!


assert failure

assert failure at line 467 in file exec.c of yara version 3.5 when rule is:
rule fire2013 : webshell
{
meta:
author      = "Vlad https://github.com/vlad-s"
date        = "2016/07/18"
description = "Catches a webshell"
strings:
$a = "eval("\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61"
$b = "yc0CJYb+O//Xgj9/y+U/dd//vkf'\x29\x29\x29\x3B")"
condition:
all of them
}
and the file content to scan is :
eval("\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61
the code which bug occoured like this
457      case OP_OBJ_LOAD:
458        identifier = (char_)(ip + 1);
459        ip += sizeof(uint64_t);
460
461        r1.o = (YR_OBJECT_) yr_hash_table_lookup(
462            context->objects_table,
463            identifier,
464           NULL);
465
467        assert(r1.o != NULL);
468        push(r1);
469        break;

I'm unable to reproduce this issue. With that rule YARA 3.5 is working fine for me. Are you able to reproduce it with this single rule? Or are you running YARA with more rules besides this one?

https://github.com/Yara-Rules/rules
<EMAIL_ADDRESS>From: Victor M. Alvarez
Date: 2016-09-07 15:32
To: VirusTotal/yara
CC: mccoysc; Author
Subject: Re: [VirusTotal/yara] assert failure (#514)
I'm unable to reproduce this issue. With that rule YARA 3.5 is working fine for me. Are you able to reproduce it with this single rule? Or are you running YARA with more rules besides this one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

https://github.com/Yara-Rules/rules
all rules dwonload from this URL.
<EMAIL_ADDRESS>From: Victor M. Alvarez
Date: 2016-09-07 15:32
To: VirusTotal/yara
CC: mccoysc; Author
Subject: Re: [VirusTotal/yara] assert failure (#514)
I'm unable to reproduce this issue. With that rule YARA 3.5 is working fine for me. Are you able to reproduce it with this single rule? Or are you running YARA with more rules besides this one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Still unable to reproduce it. A stack trace would be great.

would you give me your email address that can receive big attachment files so that i will send my all project files to you
<EMAIL_ADDRESS>From: Victor M. Alvarez
Date: 2016-09-07 16:08
To: VirusTotal/yara
CC: mccoysc; Author
Subject: Re: [VirusTotal/yara] assert failure (#514)
Still unable to reproduce it. A stack trace would be great.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

plusvic at gmail

I'm seeing this as well on Windows when trying to use modules (hash specifically) in 3.5.0.
import "hash" rule test_hash { condition: filesize < 500KB and hash.md5(0, filesize) == "f4f684066175b77e0c3a000549d2922c" }
I'll try to dig in a little more, but here's a stack trace:
>	ucrtbased.dll!issue_debug_notification(const wchar_t * const message) Line 125	C++
 	ucrtbased.dll!__acrt_report_runtime_error(const wchar_t * message) Line 142	C++
 	ucrtbased.dll!abort() Line 61	C++
 	ucrtbased.dll!common_assert_to_stderr_direct(const wchar_t * const expression, const wchar_t * const file_name, const unsigned int line_number) Line 124	C++
 	ucrtbased.dll!common_assert_to_stderr<wchar_t>(const wchar_t * const expression, const wchar_t * const file_name, const unsigned int line_number) Line 142	C++
 	ucrtbased.dll!common_assert<wchar_t>(const wchar_t * const expression, const wchar_t * const file_name, const unsigned int line_number, void * const return_address) Line 383	C++
 	ucrtbased.dll!_wassert(const wchar_t * expression, const wchar_t * file_name, unsigned int line_number) Line 405	C++
 	YaraNugetTest.exe!yr_execute_code(_YR_RULES * rules, _YR_SCAN_CONTEXT * context, int timeout, __int64 start_time) Line 468	C++
 	YaraNugetTest.exe!yr_rules_scan_mem_blocks(_YR_RULES * rules, _YR_MEMORY_BLOCK_ITERATOR * iterator, int flags, int(*)(int, void *, void *) callback, void * user_data, int timeout) Line 470	C++
 	YaraNugetTest.exe!yr_rules_scan_file(_YR_RULES * rules, const char * filename, int flags, int(*)(int, void *, void *) callback, void * user_data, int timeout) Line 615	C++
 	YaraNugetTest.exe!main() Line 73	C++
 	[External Code]

Part of the issue for me is that after 073c7b287f1c0e72d24b602ebdf91a2ae9cd3672d the bits from the 2015 project no longer imports modules properly.

@Mccoysc this should be fixed in Master. Can you try rebuilding?

Closing because of this issue is out of date. Please reopen if still valid.


Bump ruby to 2.7.5

Summary
This bumps ruby to the latest 2.7.x versions which includes bug fixes and 3 CVEs (https://www.ruby-lang.org/en/news/2021/11/24/ruby-2-7-5-released/)
Changelog
[iOS] [Changed] - Bump ruby to 2.7.5
Test Plan
no test plan, should just pass tests.

@cortinico as @mikehardy mentioned in https://github.com/reactwg/react-native-releases/discussions/19#discussioncomment-2494872 it might be worthwhile to bump straight to the newest version of ruby instead of just the newest in the 2.7 release. What do you think? Are there any internal reasons to stay on 2.7?

I'm trying to learn if from the MSFT side of things we have some specific requirements about Ruby (for now, I couldn't find anything), but in the meantime I'm looking at the Ruby website:

on the download page, they say current stable is 3.1.1 (https://www.ruby-lang.org/en/downloads/)
on the maintenance branches one they say that 2.7, 3.0 and 3.1 are all on "normal maintenance" (https://www.ruby-lang.org/en/downloads/branches/)
So at this point in time it feels like it should be fine to move to 3.1.

But I'm still asking around MSFT internally to learn if there's any reason why we might want to stay on 2.7 so take what I'm saying with a pinch of salt

@cortinico as @mikehardy mentioned in reactwg/react-native-releases#19 (reply in thread) it might be worthwhile to bump straight to the newest version of ruby instead of just the newest in the 2.7 release. What do you think? Are there any internal reasons to stay on 2.7?

I don't see any blockers on top of my mind. I believe we're good to go, as long as it concerns the iOS build pipeline. I would however suggest we:

Merge this PR first.
Do the bump to Ruby 3 in a separate PR as see if things are breaking because of that.

The reason is that it might not make it into 0.69.x and I believe we can anyway land this PR regardless 👍


split in stand alone repos

do you have any plans to split what is in packages into stand-alone repositories? Seems like it would be easier to maintain them

In general we prefer monorepos.  Is there something in particular that annoys you?  Perhaps we can come up with a solution.


fix: 🐛 fixed double file type extension

filename had ".png.png". Picture wasn't loading in the readme file

Thanks for your contribution.


datepicker gets the focus when resizing the window

Bug, feature request, or proposal:
Bug
What is the expected behavior?
When we resize the window, the focus shouldnt be on the datepicker input
What is the current behavior?
When we resize the window, the input has the focus automatically
What are the steps to reproduce?
Just go to the demo page and resize the window.

@dimitribocquet we have fixed this issue with latest release of md2.


updates story user-guide

added story_like & story_unlike to story methods table
added a snippet for story_like and story_unlike

@HellBoy-OP thanks!


(WIP) add importsNotUsedAsValues:error to tsconfig, fix resulting code errors

Summary
Solid leaves type imports behind, causing some systems to try to import non-existing things at runtime.
This relates to the node vs web structure. The app in question imports lume, which imports solid-js/html, etc, however does not use these APIs on the backend, only on the client.
The workaround for the app is to use await import('lume') in client-side code, so it is ignored in SvelteKit pre-rendering.
Here's a sample error:
file:///Users/trusktr/src/project/node_modules/.pnpm/solid-js@1.4.8/node_modules/solid-js/html/dist/html.js:1
import { effect, style, insert, spread, createComponent, delegateEvents, classList, mergeProps, dynamicProperty, setAttribute, setAttributeNS, addEventListener, Aliases, PropAliases, Properties, ChildProperties, DelegatedEvents, SVGElements, SVGNamespace } from 'solid-js/web';
                                                                                ^^^^^^^
SyntaxError: The requested module 'solid-js/web' does not provide an export named 'Aliases'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
SyntaxError: The requested module 'solid-js/web' does not provide an export named 'Aliases'
file:///Users/trusktr/src/project/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.438_svelte@3.55.1+vite@3.0.9/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:50
                                throw new Error(format_error(details, config));
                                      ^

Error: 500 /
    at file:///Users/trusktr/src/project/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.438_svelte@3.55.1+vite@3.0.9/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:50:11
    at save (file:///Users/trusktr/src/project/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.438_svelte@3.55.1+vite@3.0.9/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:339:4)
    at visit (file:///Users/trusktr/src/project/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.438_svelte@3.55.1+vite@3.0.9/node_modules/@sveltejs/kit/src/core/prerender/prerender.js:226:3)

How did you test this change?
Not done yet, need to test and update code

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 88.233%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1292

Relevant Lines:
1389

💛  - Coveralls

Interesting, how can all tests have passed. Still need to update code.

I'm seeing this error when trying to import solid-js/html into my app, whether rendering on the server or on the client.  I'm on solid-js v1.6.11


[Question] How to enable MarkdownPreview in sharing note?

I'm trying to use the MarkdownPreview widget in a sharing note but I'm not sure how to enable it. I've followed the general installation and usage instructions provided in the README, but it doesn't seem to work as expected in the remote sharing note context.
Local note screenshot:

Remote sharing note screenshot:

If you mean like the shared view where you visit a URL in the browser accessible by everyone, that is unsupported and not really the point of this plugin unfortunately.


ArcGIS for the Military: Domestic Operations: An Overview - post PPT & video for Ops Server release

@joebayles check email reminder for details of what goes where.

Done, to @BobBooth to verify.

@abrowning80 You should upload your stuff before we close this issue.

@joebayles What stuff did you want me to post up?  At UC you said that you were quite happy to do the videos so have not kept any of the stuff I used.

@joebayles - what is the title? I don't see anything with "Domestic Operations" in the title.
Is there a corresponding video?

@BobBooth I've uploaded what I can.


nixos/jupyter: Fix documentation example for jupyter.kernels

Motivation for this change
The environment variable loading fails when using the example for kernels config, due to incorrect syntax. The error being something along the lines of path not found. The same is true for the loading of the relevant icons from path.
This change is a simple update of the service documentation.
Things done

Built on platform(s)

[x] NixOS

[x] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

If I am correct, it's indeed removing the spaces like you did, and replacing the single $ with $$.


Fix/#527 Resume input field with Drag and Drop file select

Fixes Issue: #527
Created an ResumeUploader.jsx file for the input field to select and add Resume. Further Firebase or any other Cloud storage service can be used to store these  Files...
Screenshots:

Summary by CodeRabbit

New Features

Introduced a resume upload component with drag-and-drop functionality.
Resume upload confirmation now displayed with a checkmark icon.

Enhancements

Updated user dashboard to include the new resume uploader.
Refined label text for resume upload section.

We're removing Resume field for now.


[HxMultiSelect] Keyboard navigation causes whole page to scroll

If I hit Up/Down keyboard when HxMultiSelect the whole page scrolls.
I guess it doesn't stop the keyboard event propagation.

Hello @crdo,
this happens when none of the items in the dropdown menu are focused, it's not caused by the absence of keyboard event stop propagation attributes.
The user can easily focus the items by pressing tab, therefore I don't consider this to be an issue.
If you still find this to be an issue, we can automatically put focus on the first item using JS when the dropdown menu opens.


RuntimeError: Sizes of tensors must match except in dimension 2. Got 316 and 313 (The offending index is 0

Hi. I'm trying to use custom dataset with your model.
I've changed few codes where I think I have to, like
point_cloud_range, classes, etc.
When I run the command

python train.py --data_root own_data
I get error message below.

RuntimeError: Sizes of tensors must match except in dimension 2. Got 316 and 313 (The offending index is 0)
can I get any help?

Hello, @kihoon71, which line causes the error ?

Instead of my team mate, i did upload this issue. He must know better about this issue than me, so i will mention him here.
@fb059

Hi, I'm the one who asked for it.
The error occures in line 181 of pointpillars.py.
I'll put total error message below.
Traceback (most recent call last):
File "train.py", line 222, in
main(args)
File "train.py", line 89, in main
pointpillars(batched_pts=batched_pts,
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/workspace/PointPillars/model/pointpillars.py", line 393, in forward
x = self.neck(xs)
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/workspace/PointPillars/model/pointpillars.py", line 181, in forward
out = torch.cat(outs, dim=1)
RuntimeError: Sizes of tensors must match except in dimension 2. Got 316 and 313 (The offending index is 0)

Hi, @fb059 ,  could you help to provide your config for voxel_size and point_cloud_range ?
And then print(xi.size()) in https://github.com/zhulf0804/PointPillars/blob/57af3f50fd3442e6e5c22467e16d28033c4cc51a/model/pointpillars.py#L179

voxel_size is
[0.25, 0.25, 8]
and point_cloud_range is
[-50, -50, -5, 50, 50, 3].
And when I print(xi.size()) in pointpillars.py, the output is
torch.Size([6, 128, 200, 200])

voxel_size is [0.25, 0.25, 8]
and point_cloud_range is [-50, -50, -5, 50, 50, 3].
And when I print(xi.size()) in pointpillars.py, the output is torch.Size([6, 128, 200, 200])

Hi, so how 316 and 313 are generated, when your x_i.size() is [6, 128, 200, 200]?

Sorry, my mistake.
I changed configs in pointpillars.py to
             nclasses=2,
            voxel_size=[0.16, 0.16, 4],
            point_cloud_range=[0, -39.68, -3, 69.12, 39.68, 1],
            max_num_points=32,
            max_voxels=(16000, 40000)):

and after that change
RuntimeError: Sizes of tensors must match except in dimension 2. Got 316 and 313 (The offending index is 0)
no longer occurs.
But now I get different error described below.

Traceback (most recent call last):
File "train.py", line 215, in
main(args)
File "train.py", line 154, in main
pointpillars(batched_pts=batched_pts,
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/workspace/PointPillars/model/pointpillars.py", line 396, in forward
pillar_features = self.pillar_encoder(pillars, coors_batch, npoints_per_pillar)
File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/workspace/PointPillars/model/pointpillars.py", line 92, in forward
pooling_features = torch.max(features, dim=-1)[0] # (p1 + p2 + ... + pb, out_channels)
RuntimeError: cannot perform reduction function max on tensor with no elements because the operation does not have an identity

Hi @fb059, it seems there are no elements in tensor features.
Please help check features.size() in
https://github.com/zhulf0804/PointPillars/blob/57af3f50fd3442e6e5c22467e16d28033c4cc51a/model/pointpillars.py#L76
and
https://github.com/zhulf0804/PointPillars/blob/57af3f50fd3442e6e5c22467e16d28033c4cc51a/model/pointpillars.py#L91

Hi, @zhulf0804
First, I misunderstood my point_cloud_range(min x,y,z values and max x,y,z values), so I fixed it right.
point_cloud_range=[-39.9442, -39.7883, -2.3986, 39.8011, 39.8065, 6.9456],

And as you recommanded, I checked features.size()
The first features.size() looks like
torch.Size([583, 64, 9])
torch.Size([892, 64, 9])
torch.Size([879, 64, 9])
torch.Size([905, 64, 9])
torch.Size([626, 64, 9])
torch.Size([789, 64, 9])
torch.Size([742, 64, 9])
torch.Size([697, 64, 9])
torch.Size([632, 64, 9])
torch.Size([636, 64, 9])
torch.Size([623, 64, 9])
torch.Size([644, 64, 9])
torch.Size([679, 64, 9])
torch.Size([916, 64, 9])
torch.Size([871, 64, 9])
torch.Size([720, 64, 9])
torch.Size([704, 64, 9])
torch.Size([896, 64, 9])
torch.Size([833, 64, 9])
torch.Size([855, 64, 9])
torch.Size([880, 64, 9])
torch.Size([762, 64, 9])
torch.Size([872, 64, 9])
torch.Size([642, 64, 9])
torch.Size([825, 64, 9])
torch.Size([634, 64, 9])
torch.Size([751, 64, 9])
torch.Size([608, 64, 9])
torch.Size([474, 64, 9])
torch.Size([663, 64, 9])
torch.Size([540, 64, 9])
torch.Size([982, 64, 9])
torch.Size([772, 64, 9])
torch.Size([813, 64, 9])
torch.Size([0, 64, 9])
Traceback (most recent call last):
And the second features.size() looks like
torch.Size([583, 64, 9])
torch.Size([583, 64, 64])
torch.Size([892, 64, 9])
torch.Size([892, 64, 64])
torch.Size([879, 64, 9])
torch.Size([879, 64, 64])
torch.Size([905, 64, 9])
torch.Size([905, 64, 64])
torch.Size([626, 64, 9])
torch.Size([626, 64, 64])
torch.Size([789, 64, 9])
torch.Size([789, 64, 64])
torch.Size([742, 64, 9])
torch.Size([742, 64, 64])
torch.Size([697, 64, 9])
torch.Size([697, 64, 64])
torch.Size([632, 64, 9])
torch.Size([632, 64, 64])
torch.Size([636, 64, 9])
torch.Size([636, 64, 64])
torch.Size([623, 64, 9])
torch.Size([623, 64, 64])
torch.Size([644, 64, 9])
torch.Size([644, 64, 64])
torch.Size([679, 64, 9])
torch.Size([679, 64, 64])
torch.Size([916, 64, 9])
torch.Size([916, 64, 64])
torch.Size([871, 64, 9])
torch.Size([871, 64, 64])
torch.Size([720, 64, 9])
torch.Size([720, 64, 64])
torch.Size([704, 64, 9])
torch.Size([704, 64, 64])
torch.Size([896, 64, 9])
torch.Size([896, 64, 64])
torch.Size([833, 64, 9])
torch.Size([833, 64, 64])
torch.Size([787, 64, 9])
torch.Size([787, 64, 64])
torch.Size([855, 64, 9])
torch.Size([855, 64, 64])
torch.Size([880, 64, 9])
torch.Size([880, 64, 64])
torch.Size([762, 64, 9])
torch.Size([762, 64, 64])
torch.Size([872, 64, 9])
torch.Size([872, 64, 64])
torch.Size([642, 64, 9])
torch.Size([642, 64, 64])
torch.Size([825, 64, 9])
torch.Size([825, 64, 64])
torch.Size([634, 64, 9])
torch.Size([634, 64, 64])
torch.Size([751, 64, 9])
torch.Size([751, 64, 64])
torch.Size([608, 64, 9])
torch.Size([608, 64, 64])
torch.Size([474, 64, 9])
torch.Size([474, 64, 64])
torch.Size([663, 64, 9])
torch.Size([663, 64, 64])
torch.Size([935, 64, 9])
torch.Size([935, 64, 64])
torch.Size([540, 64, 9])
torch.Size([540, 64, 64])
torch.Size([982, 64, 9])
torch.Size([982, 64, 64])
torch.Size([772, 64, 9])
torch.Size([813, 64, 9])
torch.Size([813, 64, 64])
torch.Size([0, 64, 9])
torch.Size([0, 64, 64])
Traceback (most recent call last):

Hi @fb059, as the final feature'size is [0, 64, 9], it seems that the data is abnormal. Please help check it. Thanks.


Notarization error: Unimplemented element

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
When notarizing an app, I got Unimplemented element. This is the only code I ran
notarize(
		use_notarytool: false,
		package: "MY_PATH",
		username<EMAIL_ADDRESS>		print_log: true
	)

But the app ended up notarized after the error. This is still an issue though because the script I wrote ended prematurely even though it is a success.
Command executed

Complete output when running fastlane, including the stack trace and command used
[21:18:24]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run `fastlane env` to append the fastlane environment to your issue
/opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/plist-3.7.0/lib/plist/parser.rb:128:in `parse': \e[31m[!] Unimplemented element. Consider reporting via https://github.com/patsplat/plist/issues\e[0m (Plist::UnimplementedElementError)
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/plist-3.7.0/lib/plist/parser.rb:38:in `parse_xml'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/actions/notarize.rb:127:in `block in altool'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/actions/notarize.rb:240:in `with_notarize_authenticator'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/actions/notarize.rb:117:in `altool'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/actions/notarize.rb:44:in `run'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	from Fastfile:232:in `block in parsing_binding'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/gems/fastlane-2.212.1/bin/fastlane:23:in `<top (required)>'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/bin/fastlane:25:in `load'
	from /opt/homebrew/Cellar/fastlane/2.212.1/libexec/bin/fastlane:25:in `<main>'

Environment
✅ fastlane environment ✅
Stack

Key
Value

OS
13.0

Ruby
3.1.3

Bundler?
false

Git
git version 2.37.3

Installation Source
/opt/homebrew/Cellar/fastlane/2.212.1/libexec/bin/fastlane

Host
macOS 13.0 (22A380)

Ruby Lib Dir
<EMAIL_ADDRESS>

OpenSSL Version
OpenSSL 3.0.7 1 Nov 2022

Is contained
false

Is homebrew
true

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
14.1

Swift Version
5.7.1

System Locale

Variable
Value

LANG
en_CA.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`

RELATIVE_DESKTOP_ROOT = "../../../Desktop"
DSYM_FILE = "Session.app.dSYM.zip"
IOS_PATH = "#{RELATIVE_DESKTOP_ROOT}/SessioniOS"
MACOS_PATH = "#{RELATIVE_DESKTOP_ROOT}/Session"

IOS_PATH_PKG = "#{IOS_PATH}/Session.ipa"
MACOS_PATH_PKG = "#{MACOS_PATH}/Session.pkg"

IOS_PATH_DSYM = "#{IOS_PATH}/#{DSYM_FILE}"
MACOS_PATH_DSYM = "#{MACOS_PATH}/#{DSYM_FILE}"
SETAPP_PATH_DSYM = "#{RELATIVE_DESKTOP_ROOT}/Session Setapp/#{DSYM_FILE}"

TEAM_ID = "XXXXXXXXXXXXXXX"

def get_release_notes(platform, build_number = nil)
	normalized_build_number = build_number || get_version_number(xcodeproj: "Session.xcodeproj", target: platform == "mac" ? "Session" : "SessioniOS")

	# notes that used on mac and iOS
	shared_notes = sh("sed -n -e '/## #{normalized_build_number}/, /#/ p' ../release_notes_shared.md | sed '1d' | sed '$d' | sed '$d';")

	# get release notes by build number and delete last 2 line
	notes = sh("sed -n -e '/## #{normalized_build_number}/, /#/ p' ../release_notes_#{platform}.md | sed '1d' | sed '$d' | sed '$d';")

	notes = shared_notes + "\n" + notes

	notes = notes.strip

	if notes.empty?
		raise Exception.new "No notes written!"
	end
	return notes
end

lane:notarize_setapp do
	notarize(
		use_notarytool: false,
		package: "MY_PATH",
		username<EMAIL_ADDRESS>		print_log: true
	)
end

No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.212.1
✅ Up-To-Date

Loaded fastlane plugins:

Plugin
Version
Update-Status

fastlane-plugin-appcenter
2.0.0
✅ Up-To-Date

fastlane-plugin-dmg
1.0.0
✅ Up-To-Date

Loaded gems

Gem
Version

error_highlight
0.3.0

did_you_mean
1.6.1

atomos
0.1.3

rexml
3.2.5

CFPropertyList
3.0.6

claide
1.1.0

colored2
3.1.2

nanaimo
0.3.0

xcodeproj
1.22.0

rouge
2.0.7

xcpretty
0.3.0

terminal-notifier
2.0.0

unicode-display_width
1.8.0

terminal-table
1.8.0

plist
3.7.0

public_suffix
5.0.1

addressable
2.8.1

multipart-post
2.0.0

word_wrap
1.0.0

optparse
0.1.1

tty-screen
0.8.1

tty-cursor
0.7.1

tty-spinner
0.9.3

artifactory
3.0.15

babosa
1.0.4

colored
1.2

highline
2.0.3

commander
4.6.0

excon
0.99.0

faraday-em_http
1.0.0

faraday-em_synchrony
1.0.0

faraday-excon
1.1.0

faraday-httpclient
1.0.1

faraday-multipart
1.0.4

faraday-net_http
1.0.1

faraday-net_http_persistent
1.2.0

faraday-patron
1.0.0

faraday-rack
1.0.0

faraday-retry
1.0.3

ruby2_keywords
0.0.5

faraday
1.10.3

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20190701

http-cookie
1.0.5

faraday-cookie_jar
0.0.7

faraday_middleware
1.2.0

fastimage
2.2.6

gh_inspector
1.1.3

json
2.6.1

mini_magick
4.12.0

naturally
2.2.1

rubyzip
2.3.2

security
0.1.3

xcpretty-travis-formatter
1.0.1

dotenv
2.8.1

bundler
2.3.26

simctl
1.6.10

jwt
2.7.0

uber
0.1.0

declarative
0.0.20

trailblazer-option
0.1.2

representable
3.2.0

retriable
3.1.2

mini_mime
1.1.2

memoist
0.16.2

multi_json
1.15.0

os
1.1.4

signet
0.17.0

googleauth
1.3.0

httpclient
2.8.3

webrick
1.8.1

google-apis-core
0.11.0

google-apis-playcustomapp_v1
0.12.0

google-apis-androidpublisher_v3
0.34.0

google-cloud-env
1.6.0

google-cloud-errors
1.3.0

google-cloud-core
1.6.0

google-apis-iamcredentials_v1
0.17.0

google-apis-storage_v1
0.19.0

rake
13.0.6

digest-crc
0.6.4

google-cloud-storage
1.44.0

emoji_regex
3.2.3

jmespath
1.6.2

aws-partitions
1.716.0

aws-eventstream
1.2.0

aws-sigv4
1.5.2

aws-sdk-core
3.170.0

aws-sdk-kms
1.62.0

aws-sdk-s3
1.119.1

set
1.0.2

forwardable
1.3.2

logger
1.5.0

pathname
0.2.0

shellwords
0.1.0

cgi
0.3.5

date
3.2.2

timeout
0.2.0

stringio
3.0.1

securerandom
0.2.0

uri
0.11.0

openssl
3.0.1

digest
3.1.0

io-nonblock
0.1.0

ipaddr
1.2.4

io-wait
0.2.1

zlib
2.1.1

resolv
0.2.1

time
0.2.0

open-uri
0.2.0

mutex_m
0.1.1

net-http
0.3.0

net-protocol
0.1.2

ostruct
0.5.2

english
0.7.1

erb
2.2.3

strscan
3.0.1

abbrev
0.1.0

io-console
0.5.11

tempfile
0.1.2

delegate
0.2.0

fileutils
1.6.0

tmpdir
0.1.2

base64
0.1.1

singleton
0.1.1

open3
0.1.1

nkf
0.1.1

prettyprint
0.1.1

pp
0.3.0

find
0.1.1

yaml
0.2.0

psych
4.0.4

fastlane-plugin-appcenter
2.0.0

csv
3.2.5

fastlane-plugin-dmg
1.0.0

Same @twomedia. Sorry I didn't update this thread. Moving to notarytools solved it.


Update Wagtail logo to the latest version

Fixes #10404
Update Wagtail logo to the latest version (dynamic instances):

sidebar, default and slim

SVGs optimised with SVGOMG (paths not merged).

Before
After

Please check the following:

[x] Do the tests still pass?[^1]
[x] Does the code comply with the style guide?

[x] Run make lint from the Wagtail root.

[x] For front-end changes: Did you test on all of Wagtail’s supported environments?[^2]

[x] Please list the exact browser and operating system versions you tested:
Chrome 113, Firefox 113, Safari 16.3 macOS 13.2

Please describe additional details for testing this change.
[^1]: Development Testing
[^2]: Browser and device support
[^3]: Accessibility Target

Hey @albinazs are you still able to pursue this PR or should we close for someone else to pick up?

I will try to finish this PR

New PR has been put up to rebase this https://github.com/wagtail/wagtail/pull/11756


Cross-realm object access in Webpack 5

Context
High issue in the ssh-tunnel repo

https://github.com/US-EPA-CAMD/ssh-tunnel-app/security/dependabot/20

Ssh tunnel issues do not need to be addressed


Next

lib/mysql: DRY
init-mysql: added 'drop' CLI arg
test(user): remove duplicate setup code
test(user): add invalid user & pass tests

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 8 (100.0%)  changed or added relevant lines in 2 files are covered.
22 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.8%) to 82.436%

Files with Coverage Reduction
New Missed Lines
%

routes/user.js
7
86.17%

lib/user.js
15
64.19%

Totals

Change from base Build<PHONE_NUMBER>:
-0.8%

Covered Lines:
501

Relevant Lines:
599

💛  - Coveralls


Create the TIKI Shopify app sqlite database

As a developer,
I want to create an SQLite database for the TIKI Shopify app,
So that we can maintain the synchronization between TIKI and Shopify user IDs in a 1-to-1 relationship.
Description
To establish a reliable sync between TIKI and Shopify user IDs, we need to implement a solution that allows us to store and retrieve the relationships between these IDs. As the APIs for writing into customer data in Shopify are limited, we will create a simple SQLite database within the TIKI Shopify app. This database will store the user ID and TIKI user ID associations. Every time the TIKI SDK is initialized, the TIKI user ID associated with the currently logged-in user should be passed to ensure accurate synchronization. In the future, it can be extended with more data.
Acceptance Criteria

The TIKI Shopify app should include an SQLite database.
The database should store the relationships between Shopify user IDs and TIKI user IDs.
The relationship between Shopify user IDs and TIKI user IDs should be maintained as a 1-to-1 mapping.
When a logged in user accepts an offer, the TIKI user ID should be saved.
When a new user is created and a TIKI ID is saved in cookies, it should be saved and the cookie removed.
When the TIKI SDK is initialized, the TIKI user ID associated with the currently logged-in user should be passed from the database.

[ ] Design the schema for the SQLite database, defining the necessary tables and columns.
[ ] Implement the SQLite database within the TIKI Shopify app.
[ ] Develop the necessary functions or methods to store and retrieve the relationships between Shopify user IDs and TIKI user IDs.
[ ] Integrate the SQLite database with the TIKI SDK initialization process to pass the associated TIKI user ID.
[ ] Integrate the SQLite database with the user creation flow to save the TIKI user ID.

replaced by customer meta fields


PR: Remove duplicated logic in Editor checkable Actions

Fixes: #5131
I think this could be improved but that will need a refactoring of how actions are created, create_action logic could be moved to __init__ method of SpyderAction and that will allow to inherit from that class, and create a  CheckableEditorAction and abstract the logic in that class. (Although that is out of the scope of this PR)

It looks really good!!
@jnsebgosselin, @goanpeca, what do you think about this one?


Async http client credential provider

Simplified version of CredentialProvider that Fabian posted earlier

Renamed Credential to StaticCredential
Renamed CredentialProvider to Credential
Added protocol CredentialProvider which returns a EventLoopFuture< Credential >
Added StaticCredentialProvider which always returns the credential it was initialised with
Added MetaDataCredentialProvider which returns credentials supplied by MetaDataService. It also manages the renewal of these.
AWSClient is initialised with CredentialProvider
send() functions calls CredentialProvider.getCredential() and in the flatMap of the result it creates an AWSSigner to sign our request.

Tested on EC2, with expiration dates being forced to 5 mins and 3 seconds, so we'll see a renew of credentials.

Commited a form of your version. Slight changes are

I used the withLock() function you get with the NIO lock.
I removed the force unwrap of currentEventLoop as it was causing a crash
credential is never allowed to be nil

Given signURL(url:, httpMethod:, expires:) now returns a EventLoopFuture<URL> we have an interface change and will be required to up to version 5.0.0


[installer] hack/download-installer.sh produces a obs-installer binary that does not work

Bug description
From a workspace in the observability repo, we get the below issue, which prevents us from deploying Workspace clusters.
gitpod /workspace/observability (main) $ ./hack/download-installer.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 70.6M  100 70.6M    0     0  19.8M      0  0:00:03  0:00:03 --:--:-- 26.8M
obs-installer
gitpod /workspace/observability (main) $ ./obs-installer
./obs-installer: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./obs-installer)
./obs-installer: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./obs-installer)

But, if I run a build the same workspace via make -C ./installer/ build , the binary works.
Perhaps something in the Github Action for Release is polluting the release asset?
Suggestion: stop overwriting release assets, too. The 0.0.3 release was created on September 16, but, its release assets appear to get overwritten with each merge to main. :grimacing:
Steps to reproduce
Refer to issue description
Expected behavior
Download a working installer
Example repository
No response
Anything else?
I'm not sure how this impacts the IDE and WebApp teams for their deployments.
For the Workspace deploy, we have to take the following steps:

change workspace-cluster-new job so that
it clones observability repo, but, avoids using hack/download-installer.sh , and instead create a local branch for observability from  `f43930575b97217dca1ac8d91d9e86c136ed0ae4 (valid as of Nov 16)
build the obs-installer manually using make -C ./installer/ build

@corneliusludmann @geropl @akosyakov @WVerlaek for :eyes:


mf's deleting the rat

is there a way to rename the rat to smthn like Google Chrome???!!

of course

can u tell me how?

like when they open the stub named cc-checker i want it to create another file named Google

I don't knoiw if I get it right, but you can use my other repositor for that (kesaro-python), however, I made that for self-purposes so you might have to change some things to suit your needs