# Latest

**URL:** https://discourse.julialang.org/latest.md?page=722

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 723

---

## [Mirror makie elements](https://discourse.julialang.org/t/mirror-makie-elements/97629)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 2:13pm UTC](https://discourse.julialang.org/t/mirror-makie-elements/97629 "2023-04-20T14:13:35Z")

</div>

Hey folks, I’m using GLMakie to make some videos with contours, and it would be nice to be able to apply mirroring to a given axis (or two, in my case). My data is all in one quadrant, and I could make an array four tim…

---

## [Repeated Precompilation in 1.9rc2](https://discourse.julialang.org/t/repeated-precompilation-in-1-9rc2/97652)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 6\
**Last updated:** [April 20, 2023, 1:51pm UTC](https://discourse.julialang.org/t/repeated-precompilation-in-1-9rc2/97652 "2023-04-20T13:51:07Z")

</div>

Using 1.9-rc2 in noticed, that quite often precompilation repeats even though there is no apparent reason for that. What I observe in my day to day usage: start Julia (Revise and Test is loaded in startup) activate env…

---

## [What is StrideArrays.jl](https://discourse.julialang.org/t/what-is-stridearrays-jl/97146)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 26\
**Last updated:** [April 20, 2023, 12:01pm UTC](https://discourse.julialang.org/t/what-is-stridearrays-jl/97146 "2023-04-20T12:01:03Z")

</div>

It’s an odd question to ask, but I see StrideArrays.jl being used in a lot of extremely performance critical code, but meanwhile the documentation of the project… leaves a lot to be desired. So: what is StrideArrays.jl?…

---

## [ZMQ Basics Publisher Example Crashes](https://discourse.julialang.org/t/zmq-basics-publisher-example-crashes/97700)

<div class="topic-metadata">

**Author:** [@opiateblush](https://discourse.julialang.org/u/opiateblush)\
**Replies:** 0\
**Last updated:** [April 20, 2023, 11:20am UTC](https://discourse.julialang.org/t/zmq-basics-publisher-example-crashes/97700 "2023-04-20T11:20:13Z")

</div>

Hey, unfortunately there was no response to my issue on GitHub, so maybe someone over here got an idea what the problem might be: The example publisher in the Basics section of the ZMQ Guide crashes if put in a function…

---

## [HTTP.jl disable self signed certificate](https://discourse.julialang.org/t/http-jl-disable-self-signed-certificate/36590)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 11:16am UTC](https://discourse.julialang.org/t/http-jl-disable-self-signed-certificate/36590 "2023-04-20T11:16:43Z")

</div>

How to disable self signed certificate in a HTTP.request in the HTTP.jl package. IOError(MbedTLS error code -9984: X509 - Certificate verification failed, e.g. CRL, CA or signature check failed during request

---

## [Disable compiler optimization](https://discourse.julialang.org/t/disable-compiler-optimization/97663)

<div class="topic-metadata">

**Author:** [@green.nsk](https://discourse.julialang.org/u/green.nsk)\
**Replies:** 7\
**Last updated:** [April 20, 2023, 10:18am UTC](https://discourse.julialang.org/t/disable-compiler-optimization/97663 "2023-04-20T10:18:21Z")

</div>

is there a reliable way to disable optimization for code like this? function read\_reg64(base::Ptr{UInt32}, offset::Int) lower = unsafe\_load(base, offset + 1) upper = unsafe\_load(base, offset + 2) % UInt64 u…

---

## [Best practice for reading large matrix with repeated spaces as text](https://discourse.julialang.org/t/best-practice-for-reading-large-matrix-with-repeated-spaces-as-text/97685)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 8\
**Last updated:** [April 20, 2023, 9:00am UTC](https://discourse.julialang.org/t/best-practice-for-reading-large-matrix-with-repeated-spaces-as-text/97685 "2023-04-20T09:00:02Z")

</div>

Hi, I have a moderately large text file with 1305639×114 entires in a matrix, separated by repeated whitespaces (not always fixed width) per line. About 1.5 GB or so with the spaces. On julia 1.8.2 The file reads fine w…

---

## [IOError: could not spawn \`....\`: no such file or directory (ENOENT)](https://discourse.julialang.org/t/ioerror-could-not-spawn-no-such-file-or-directory-enoent/72540)

<div class="topic-metadata">

**Author:** [@ANDREA-TQ](https://discourse.julialang.org/u/ANDREA-TQ)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 7:30am UTC](https://discourse.julialang.org/t/ioerror-could-not-spawn-no-such-file-or-directory-enoent/72540 "2023-04-20T07:30:06Z")

</div>

Hi I’m new in the world of programming, i’m trying to perform this exercise but it gives me this error could you help me please? this is my Julia version julia\> versioninfo() Julia Version 1.6.3 Commit ae8452a9e0…

---

## [Flux: How to minimise the garbage collection time?](https://discourse.julialang.org/t/flux-how-to-minimise-the-garbage-collection-time/97572)

<div class="topic-metadata">

**Author:** [@onurcanbektas](https://discourse.julialang.org/u/onurcanbektas)\
**Replies:** 22\
**Last updated:** [April 20, 2023, 7:26am UTC](https://discourse.julialang.org/t/flux-how-to-minimise-the-garbage-collection-time/97572 "2023-04-20T07:26:11Z")

</div>

I have a code where I use several different separate neural networks inside a for loop. Here is the times that it tooks to go over the loop: 0.149468 seconds (10.69 k allocations: 1.331 MiB, 99.45% gc time) 0.001026 s…

---

## [Plots.jl with PGFPlotsX backend produces plot way of center](https://discourse.julialang.org/t/plots-jl-with-pgfplotsx-backend-produces-plot-way-of-center/97678)

<div class="topic-metadata">

**Author:** [@TheBigZet](https://discourse.julialang.org/u/TheBigZet)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 6:55am UTC](https://discourse.julialang.org/t/plots-jl-with-pgfplotsx-backend-produces-plot-way-of-center/97678 "2023-04-20T06:55:50Z")

</div>

This simple Julia code: using Plots; pgfplotsx(); using LaTeXStrings x = \[-243, 144, 243\] e1 = \[120, 149, 26\] e2 = \[218, 271, 68\] e3 = \[314, 380, 148\] function plot\_eps(p, x, y, color, label) plot!(p, x, y, label …

---

## [Parallell TensorKit](https://discourse.julialang.org/t/parallell-tensorkit/97410)

<div class="topic-metadata">

**Author:** [@Nellatur](https://discourse.julialang.org/u/Nellatur)\
**Replies:** 5\
**Last updated:** [April 20, 2023, 6:48am UTC](https://discourse.julialang.org/t/parallell-tensorkit/97410 "2023-04-20T06:48:27Z")

</div>

Based on Please read: make it easier to help you - #2 Avoid extending the original question that has already been answered with many new questions. It is better to start a new thread. Let me start a new thread than f…

---

## [Create a Cmd from a String](https://discourse.julialang.org/t/create-a-cmd-from-a-string/2842)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 9\
**Last updated:** [March 25, 2023, 8:26pm UTC](https://discourse.julialang.org/t/create-a-cmd-from-a-string/2842 "2023-03-25T20:26:28Z")

</div>

I am using Julia to combine information from a combination of sources and generate a (rather lengthy) string that is a call to an external program. I can generate a String containing the text that I would type into the s…

---

## [ConstructFrom.jl - Construct objects without spelling out their types](https://discourse.julialang.org/t/constructfrom-jl-construct-objects-without-spelling-out-their-types/97459)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 4:22am UTC](https://discourse.julialang.org/t/constructfrom-jl-construct-objects-without-spelling-out-their-types/97459 "2023-04-20T04:22:03Z")

</div>

Over the past couple of weeks, I’ve frequently had to write code like the following. struct MyType data::Dict{Int, Dict{Float64, String}} end MyType() = MyType(Dict{Int, Dict{Float64, String}}()) …

---

## [Help in running flux on NVIDIA GeForce GT 710 GPU](https://discourse.julialang.org/t/help-in-running-flux-on-nvidia-geforce-gt-710-gpu/97679)

<div class="topic-metadata">

**Author:** [@Ritu\_Lahkar](https://discourse.julialang.org/u/Ritu_Lahkar)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 3:41am UTC](https://discourse.julialang.org/t/help-in-running-flux-on-nvidia-geforce-gt-710-gpu/97679 "2023-04-20T03:41:32Z")

</div>

I have a NVIDIA GeForce GT 710 GPU. I tried to run Flux on it using both julia 1.8 and 1.9. Both way I am getting: CUDNNError: CUDNN\_STATUS\_ARCH\_MISMATCH (code 6) Please help, how to solve it.

---

## [Julia crashes when using ImageView together with PyPlot](https://discourse.julialang.org/t/julia-crashes-when-using-imageview-together-with-pyplot/63071)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 2:13am UTC](https://discourse.julialang.org/t/julia-crashes-when-using-imageview-together-with-pyplot/63071 "2023-04-20T02:13:37Z")

</div>

In one of my machines, it has become impossible for me to use PyPlot and ImageView at the same time, Julia crashes with a message like: XmbTextListToTextProperty result code -2 XmbTextListToTextProperty result code -2 X…

---

## [Is there any way to make custom binary infix operators right associative?](https://discourse.julialang.org/t/is-there-any-way-to-make-custom-binary-infix-operators-right-associative/3202)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 7\
**Last updated:** [April 20, 2023, 1:35am UTC](https://discourse.julialang.org/t/is-there-any-way-to-make-custom-binary-infix-operators-right-associative/3202 "2023-04-20T01:35:17Z")

</div>

If I define some new binary infix operator, it appears to always be left associative by default, i.e. julia\> ⨳(a,b) = (a,b) julia\> 1⨳2⨳3 ((1,2),3) Is there any to make it right associative instead? I had guessed defini…

---

## [Problem using Turing in Jupyter](https://discourse.julialang.org/t/problem-using-turing-in-jupyter/97624)

<div class="topic-metadata">

**Author:** [@alexdmeyer](https://discourse.julialang.org/u/alexdmeyer)\
**Replies:** 1\
**Last updated:** [April 19, 2023, 10:44pm UTC](https://discourse.julialang.org/t/problem-using-turing-in-jupyter/97624 "2023-04-19T22:44:20Z")

</div>

Hi Julia folks, I’m running into a strange issue using Turing.jl. I do most of my work in Atom, where Turing works just fine. However, recently I’ve been getting the following error below upon running using Turing in Ju…

---

## [Hline and PlotlyJS](https://discourse.julialang.org/t/hline-and-plotlyjs/97677)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 1\
**Last updated:** [April 19, 2023, 9:29pm UTC](https://discourse.julialang.org/t/hline-and-plotlyjs/97677 "2023-04-19T21:29:21Z")

</div>

Today it gave me a bit of a headache to figure out how to use the function hline() inside a PlotlyJS-figure. By text string search inside the PlotlyJS-package I was able to put a minimal example together, I hope it help…

---

## [Cubic Spline Interpolation for unevenly sampled data with gradient support?](https://discourse.julialang.org/t/cubic-spline-interpolation-for-unevenly-sampled-data-with-gradient-support/89794)

<div class="topic-metadata">

**Author:** [@astrobc1](https://discourse.julialang.org/u/astrobc1)\
**Replies:** 1\
**Last updated:** [April 19, 2023, 9:27pm UTC](https://discourse.julialang.org/t/cubic-spline-interpolation-for-unevenly-sampled-data-with-gradient-support/89794 "2023-04-19T21:27:25Z")

</div>

I’m trying to use Flux.jl to optimize a loss function that needs to perform cubic spline interpolation, so I need a package that includes gradient support. Right now I’m working with DataInterpolations.jl. So far I have …

---

## [Opinions on piping into variable?](https://discourse.julialang.org/t/opinions-on-piping-into-variable/86643)

<div class="topic-metadata">

**Author:** [@martin.auer](https://discourse.julialang.org/u/martin.auer)\
**Replies:** 11\
**Last updated:** [April 19, 2023, 7:39pm UTC](https://discourse.julialang.org/t/opinions-on-piping-into-variable/86643 "2023-04-19T19:39:52Z")

</div>

We use the Julia REPL quite a bit with custom data flows. When interactively toying around with them, we find the pipe operator extremely handy; especially combined with expressive Base.show() output, the sense of progre…

---

## [UndefVarError: Order not defined Stacktrace: \[1\] top-level scope @ In\[22\]:23](https://discourse.julialang.org/t/undefvarerror-order-not-defined-stacktrace-1-top-level-scope-in-22-23/97538)

<div class="topic-metadata">

**Author:** [@Vahagn](https://discourse.julialang.org/u/Vahagn)\
**Replies:** 1\
**Last updated:** [April 19, 2023, 7:10pm UTC](https://discourse.julialang.org/t/undefvarerror-order-not-defined-stacktrace-1-top-level-scope-in-22-23/97538 "2023-04-19T19:10:53Z")

</div>

Hi everyone, I am new in using Julia and I want to replicate my neural network code that I have written in Matlab in Julia, so I ask ChatGPT to write a simple code, but when I run it in Julia it returns me an error, can…

---

## [Extra dimensions and CartesianIndices](https://discourse.julialang.org/t/extra-dimensions-and-cartesianindices/97665)

<div class="topic-metadata">

**Author:** [@danicaratelli](https://discourse.julialang.org/u/danicaratelli)\
**Replies:** 2\
**Last updated:** [April 19, 2023, 5:35pm UTC](https://discourse.julialang.org/t/extra-dimensions-and-cartesianindices/97665 "2023-04-19T17:35:17Z")

</div>

Hello, I was wondering whether anyone has had to deal with “extra dimensions” while using ChartesianIndices. In particular, I am tempted to implement the following but it doesn’t work. Thanks in advance! N = 2; M = 2;…

---

## [How to add extra variables when defining ODEProblem in DifferentialEquations?](https://discourse.julialang.org/t/how-to-add-extra-variables-when-defining-odeproblem-in-differentialequations/85126)

<div class="topic-metadata">

**Author:** [@laurar1891](https://discourse.julialang.org/u/laurar1891)\
**Replies:** 8\
**Last updated:** [April 19, 2023, 5:10pm UTC](https://discourse.julialang.org/t/how-to-add-extra-variables-when-defining-odeproblem-in-differentialequations/85126 "2023-04-19T17:10:46Z")

</div>

I’m trying to define a system of differential equations using matrix notation. The issue is that this matrix varies depending on the problem and in all the examples that I’ve seen the function f that goes in the ODEProbl…

---

## [Change the dependent variable in GLM linear regression programmatically](https://discourse.julialang.org/t/change-the-dependent-variable-in-glm-linear-regression-programmatically/97496)

<div class="topic-metadata">

**Author:** [@rustysinsix](https://discourse.julialang.org/u/rustysinsix)\
**Replies:** 7\
**Last updated:** [April 19, 2023, 4:32pm UTC](https://discourse.julialang.org/t/change-the-dependent-variable-in-glm-linear-regression-programmatically/97496 "2023-04-19T16:32:45Z")

</div>

Hello Everyone, I am new to julia dn i have been trying to run a basic linear regression model using the GLM package, I have found how to programmatically change the independent variables but i am unable to find a way to…

---

## [ModelingToolkit & Distributions for MLE estimation](https://discourse.julialang.org/t/modelingtoolkit-distributions-for-mle-estimation/97613)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 4\
**Last updated:** [April 19, 2023, 4:17pm UTC](https://discourse.julialang.org/t/modelingtoolkit-distributions-for-mle-estimation/97613 "2023-04-19T16:17:04Z")

</div>

I am trying to use ModelingToolKit.jl to write a maximum loglikelihood estimator for generic distributions eg Univariate, Mixture, Multivariate etc. using ModelingToolkit, Optimization, OptimizationOptimJL using Distrib…

---

## [Resize\_to\_layout!() does not remove margins around plots in GridLayout](https://discourse.julialang.org/t/resize-to-layout-does-not-remove-margins-around-plots-in-gridlayout/97365)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 5\
**Last updated:** [April 19, 2023, 3:46pm UTC](https://discourse.julialang.org/t/resize-to-layout-does-not-remove-margins-around-plots-in-gridlayout/97365 "2023-04-19T15:46:33Z")

</div>

I use resize\_to\_layout!() to remove whatever margins around the plot in Figure after plotting. For example, the following code using CairoMakie fig = Figure() fig\[2,1\] = Axis(fig, aspect=DataAspect()) hm = heatmap!(ra…

---

## [Array indexing/slicing is slow](https://discourse.julialang.org/t/array-indexing-slicing-is-slow/97633)

<div class="topic-metadata">

**Author:** [@danicaratelli](https://discourse.julialang.org/u/danicaratelli)\
**Replies:** 9\
**Last updated:** [April 19, 2023, 2:07pm UTC](https://discourse.julialang.org/t/array-indexing-slicing-is-slow/97633 "2023-04-19T14:07:27Z")

</div>

I am doing very simple calculations in loops. It looks like the array extraction is the most expensive part of this. Is there an obvious way to speed it up? Here is a MWE of what I am doing. Any help would be greatly app…

---

## ['DiffEqArray' is not directly plotted](https://discourse.julialang.org/t/diffeqarray-is-not-directly-plotted/97643)

<div class="topic-metadata">

**Author:** [@Random\_0826](https://discourse.julialang.org/u/Random_0826)\
**Replies:** 3\
**Last updated:** [April 19, 2023, 1:47pm UTC](https://discourse.julialang.org/t/diffeqarray-is-not-directly-plotted/97643 "2023-04-19T13:47:03Z")

</div>

Hello. I am using Julia for the first time. I want to use the function ‘timeseries\_steps\_mean’ which is explained in the under website. It says that The mean and meanvar versions return a DiffEqArray which can be di…

---

## [Structs with Fixed length strings and allocatedinline](https://discourse.julialang.org/t/structs-with-fixed-length-strings-and-allocatedinline/97646)

<div class="topic-metadata">

**Author:** [@Vinothkumar\_Raman](https://discourse.julialang.org/u/Vinothkumar_Raman)\
**Replies:** 1\
**Last updated:** [April 19, 2023, 12:18pm UTC](https://discourse.julialang.org/t/structs-with-fixed-length-strings-and-allocatedinline/97646 "2023-04-19T12:18:30Z")

</div>

I have struct like this, struct A a:: Symbol end I see a huge number of allocations of objects Union{A, Nothing}. I checked \> Base.allocatedinline(A) true \> Base.allocatedinline(Union{A, Nothing}) false I ori…

---

## [How to add several subdirectories to LOAD\_PATH in startup.jl file?](https://discourse.julialang.org/t/how-to-add-several-subdirectories-to-load-path-in-startup-jl-file/34195)

<div class="topic-metadata">

**Author:** [@josimar](https://discourse.julialang.org/u/josimar)\
**Replies:** 13\
**Last updated:** [February 8, 2022, 10:28pm UTC](https://discourse.julialang.org/t/how-to-add-several-subdirectories-to-load-path-in-startup-jl-file/34195 "2022-02-08T22:28:40Z")

</div>

If I have several subdirectories within a main directory, how would I add it to LOAD\_PATH without having to type each of them individually ? Example: push!(LOAD\_PATH,"/mainDir/") ## This is what I want to do ## I do…

[Previous page](https://discourse.julialang.org/latest.md?page=721)

[Next page](https://discourse.julialang.org/latest.md?page=723)
