# Latest

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

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

**Page:** 1153

---

## [Similar strings](https://discourse.julialang.org/t/similar-strings/74571)

<div class="topic-metadata">

**Author:** [@cesarmarinhorj](https://discourse.julialang.org/u/cesarmarinhorj)\
**Replies:** 5\
**Last updated:** [January 13, 2022, 10:36pm UTC](https://discourse.julialang.org/t/similar-strings/74571 "2022-01-13T22:36:27Z")

</div>

When importing data, there are many “similar” labels, like: “T-012”, “T-12”, “T12” and “T012”. All are the same, must choose one and discard the others. Levenshtein distance could resolve this? And why Levenshtein in…

---

## [Why no do-blocks for regex matching](https://discourse.julialang.org/t/why-no-do-blocks-for-regex-matching/74445)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 8\
**Last updated:** [January 13, 2022, 8:25pm UTC](https://discourse.julialang.org/t/why-no-do-blocks-for-regex-matching/74445 "2022-01-13T20:25:02Z")

</div>

I’m just wondering why the standard library doesn’t include a method for match defined as function match(f::Function, r::Regex, args...) m = match(r, args...) if !isnothing(m) f(m) end end This allo…

---

## [Performance of Linear Programming Problem](https://discourse.julialang.org/t/performance-of-linear-programming-problem/74569)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 8:03pm UTC](https://discourse.julialang.org/t/performance-of-linear-programming-problem/74569 "2022-01-13T20:03:10Z")

</div>

Hi everybody! I am trying to improve the performance of a conventional Linear Programming Problem which I am solving by calling Gurobi through JuMP. A MWE is the following using JuMP, Ipopt, Optim, LinearAlgebra, Random…

---

## [MathOptInterface and Symbolics.jl](https://discourse.julialang.org/t/mathoptinterface-and-symbolics-jl/74575)

<div class="topic-metadata">

**Author:** [@sidpatil](https://discourse.julialang.org/u/sidpatil)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 7:53pm UTC](https://discourse.julialang.org/t/mathoptinterface-and-symbolics-jl/74575 "2022-01-13T19:53:20Z")

</div>

In the announcement for Symbolics.jl, JuMP is mentioned due to its independent implementation of symbolic variables and expressions. Is it feasible to refactor/rewrite MathOptInterface to use Symbolics.jl variables and …

---

## [Import TensorFlow lite model](https://discourse.julialang.org/t/import-tensorflow-lite-model/74572)

<div class="topic-metadata">

**Author:** [@tpoisot](https://discourse.julialang.org/u/tpoisot)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 7:09pm UTC](https://discourse.julialang.org/t/import-tensorflow-lite-model/74572 "2022-01-13T19:09:23Z")

</div>

I have a model that’s available as a .tflite file, and I’d like to retrain it in Julia (preferably using Flux). Is there a standard way of importing a tflite file in Julia?

---

## [Parametric type with numbers](https://discourse.julialang.org/t/parametric-type-with-numbers/74544)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 3\
**Last updated:** [January 13, 2022, 6:52pm UTC](https://discourse.julialang.org/t/parametric-type-with-numbers/74544 "2022-01-13T18:52:49Z")

</div>

Hello! I am having difficulties trying to model the adequate code for what I want to achieve. Imagine I have the following struct: struct Device a::NTuple{3,Float64} b::NTuple{2,Float64} end where b is always…

---

## ["UndefVarError: V not defined" using simple loop](https://discourse.julialang.org/t/undefvarerror-v-not-defined-using-simple-loop/74566)

<div class="topic-metadata">

**Author:** [@Tadas\_Surkys](https://discourse.julialang.org/u/Tadas_Surkys)\
**Replies:** 4\
**Last updated:** [January 13, 2022, 6:03pm UTC](https://discourse.julialang.org/t/undefvarerror-v-not-defined-using-simple-loop/74566 "2022-01-13T18:03:49Z")

</div>

I stuck in my very first lines. Why V is not visible inside the loop? What is the logic behind that? V=1 for i in 1:2 print(V) V=2 end ps Matlab background

---

## [Problem using ForwardDiff with backslash "\\" matrix solver](https://discourse.julialang.org/t/problem-using-forwarddiff-with-backslash-matrix-solver/74498)

<div class="topic-metadata">

**Author:** [@gaodifan](https://discourse.julialang.org/u/gaodifan)\
**Replies:** 4\
**Last updated:** [January 13, 2022, 3:02pm UTC](https://discourse.julialang.org/t/problem-using-forwarddiff-with-backslash-matrix-solver/74498 "2022-01-13T15:02:09Z")

</div>

Hello, I’m trying to use the ForwardDiff.jl package for automatic differentiation of my function, which includes using the backslash \\ operator for a matrix solve. ForwardDiff requires Arrays to be of the more general ty…

---

## [Cutom scatter tooltip with Makie's DataInspector](https://discourse.julialang.org/t/cutom-scatter-tooltip-with-makies-datainspector/74548)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 2:48pm UTC](https://discourse.julialang.org/t/cutom-scatter-tooltip-with-makies-datainspector/74548 "2022-01-13T14:48:03Z")

</div>

Hi all, Does anyone have an example on how to implement a simple custom tooltip for a scatterplot in Makie? After reading the DataInspector documentation I was unsure if I need to implement my own plot type or whether I…

---

## [Intersection of non-overlapping point clouds with Polyhedra.jl](https://discourse.julialang.org/t/intersection-of-non-overlapping-point-clouds-with-polyhedra-jl/74500)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [January 13, 2022, 2:39pm UTC](https://discourse.julialang.org/t/intersection-of-non-overlapping-point-clouds-with-polyhedra-jl/74500 "2022-01-13T14:39:20Z")

</div>

Hi all, I need to identify whether two point “clouds” of arbitrary dimension intersect. As a sanity check, I tested two non-overlapping point clouds to see if the results make sense. Strangely, the intersection is non…

---

## [Computational performance 3D finite difference stencil for different vectorization methods and precision](https://discourse.julialang.org/t/computational-performance-3d-finite-difference-stencil-for-different-vectorization-methods-and-precision/74382)

<div class="topic-metadata">

**Author:** [@Chiil](https://discourse.julialang.org/u/Chiil)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 2:30pm UTC](https://discourse.julialang.org/t/computational-performance-3d-finite-difference-stencil-for-different-vectorization-methods-and-precision/74382 "2022-01-13T14:30:37Z")

</div>

I have a code that generates with a macro a finite difference stencil. I have disabled the macro in order to make a minimal working example, so please forgive me for this absurdly long line, it is not there in my normal …

---

## [So now I convert my OSGB36 data to LLA ... oh ... that looks ... hard](https://discourse.julialang.org/t/so-now-i-convert-my-osgb36-data-to-lla-oh-that-looks-hard/74400)

<div class="topic-metadata">

**Author:** [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Replies:** 10\
**Last updated:** [January 13, 2022, 2:15pm UTC](https://discourse.julialang.org/t/so-now-i-convert-my-osgb36-data-to-lla-oh-that-looks-hard/74400 "2022-01-13T14:15:23Z")

</div>

Hi, The UK’s Office of National Statistics publishes data which uses OSGB36 East / North coordinates. Of which I have 39 million addresses from the ONSUD database e.g. East/North “426642,380231” Using an online con…

---

## [Strange error for unsupported Julia version](https://discourse.julialang.org/t/strange-error-for-unsupported-julia-version/74489)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 1:46pm UTC](https://discourse.julialang.org/t/strange-error-for-unsupported-julia-version/74489 "2022-01-13T13:46:08Z")

</div>

I am trying to set a minimum Julia version for a package I am developing. I may be misunderstanding something, but I thought from the docs (10. Project.toml and Manifest.toml · Pkg.jl) that the way to do this is to put …

---

## [CUDA CPU allocations with range](https://discourse.julialang.org/t/cuda-cpu-allocations-with-range/74549)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 5\
**Last updated:** [January 13, 2022, 1:15pm UTC](https://discourse.julialang.org/t/cuda-cpu-allocations-with-range/74549 "2022-01-13T13:15:16Z")

</div>

Hi! I was wondering, why CuArray of a range allocates the result on the CPU and moves it to the GPU afterwards? If I do the same directly with a broadcast call, it works flawless. Any suggestion how to prevent that? j…

---

## [Is there a better way to monitor a log file?](https://discourse.julialang.org/t/is-there-a-better-way-to-monitor-a-log-file/74538)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 4\
**Last updated:** [January 13, 2022, 12:47pm UTC](https://discourse.julialang.org/t/is-there-a-better-way-to-monitor-a-log-file/74538 "2022-01-13T12:47:28Z")

</div>

Hi all new to julia and so still learning the basics. I have a log file that another system updates about every 1 second. It’s just a simple text file and each “row” is about 1k bytes. I just want to get the “updates”…

---

## [Plotting graph using edge list](https://discourse.julialang.org/t/plotting-graph-using-edge-list/74541)

<div class="topic-metadata">

**Author:** [@Jeffrey](https://discourse.julialang.org/u/Jeffrey)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 11:57am UTC](https://discourse.julialang.org/t/plotting-graph-using-edge-list/74541 "2022-01-13T11:57:09Z")

</div>

Hi all. I want to plot a SimpleDiGraph using an edge list and label the edges according to their position in my edge list. For example, if I run the following code using Graphs, GraphPlot edge\_list = Edge.(\[ (1, 3), (3…

---

## [Where to post a problem of Julia's actual PDF doc?](https://discourse.julialang.org/t/where-to-post-a-problem-of-julias-actual-pdf-doc/74476)

<div class="topic-metadata">

**Author:** [@Minumsand](https://discourse.julialang.org/u/Minumsand)\
**Replies:** 6\
**Last updated:** [January 13, 2022, 10:41am UTC](https://discourse.julialang.org/t/where-to-post-a-problem-of-julias-actual-pdf-doc/74476 "2022-01-13T10:41:49Z")

</div>

Hello all Just have been running over Julia’s actual PDF doc in Julia Documentation · The Julia Language . Where shall I post a problem seen within that doc? Or who shall be informed about it? Michael

---

## [Argmax, but n biggest elements](https://discourse.julialang.org/t/argmax-but-n-biggest-elements/74501)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [January 13, 2022, 10:32am UTC](https://discourse.julialang.org/t/argmax-but-n-biggest-elements/74501 "2022-01-13T10:32:27Z")

</div>

I have an array with values, and I want to find the indices of the top n elements. argmax() allows me to find the biggest one, but not the n biggest, is there a way to modify it?

---

## [Help diagnosing a slow iterator](https://discourse.julialang.org/t/help-diagnosing-a-slow-iterator/74413)

<div class="topic-metadata">

**Author:** [@tecosaur](https://discourse.julialang.org/u/tecosaur)\
**Replies:** 5\
**Last updated:** [January 13, 2022, 9:56am UTC](https://discourse.julialang.org/t/help-diagnosing-a-slow-iterator/74413 "2022-01-13T09:56:16Z")

</div>

Note, this was asked on Zulip a week ago, but received no responses. Reposting in the hope that someone else might see and comment I have a tree-like structure, composed of a mix of types, and I’m looking to iterate th…

---

## [Writing to files on remote machine](https://discourse.julialang.org/t/writing-to-files-on-remote-machine/27356)

<div class="topic-metadata">

**Author:** [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Replies:** 7\
**Last updated:** [January 13, 2022, 9:45am UTC](https://discourse.julialang.org/t/writing-to-files-on-remote-machine/27356 "2022-01-13T09:45:40Z")

</div>

How can I write a text file on a remote machine where I log on using ssh? Thank you.

---

## [\[Beginner\] Installing uber-juno in atom](https://discourse.julialang.org/t/beginner-installing-uber-juno-in-atom/74533)

<div class="topic-metadata">

**Author:** [@KrKAlex](https://discourse.julialang.org/u/KrKAlex)\
**Replies:** 4\
**Last updated:** [January 13, 2022, 9:36am UTC](https://discourse.julialang.org/t/beginner-installing-uber-juno-in-atom/74533 "2022-01-13T09:36:43Z")

</div>

Hi community, I have an issue installing Juno. I looked for an environment to write my code in, and I noticed that Juno was the one recommended. In order to install it, I installed Atom. In the preferences in atom, I tr…

---

## [Write function in loop](https://discourse.julialang.org/t/write-function-in-loop/62121)

<div class="topic-metadata">

**Author:** [@assia855](https://discourse.julialang.org/u/assia855)\
**Replies:** 5\
**Last updated:** [January 13, 2022, 9:11am UTC](https://discourse.julialang.org/t/write-function-in-loop/62121 "2022-01-13T09:11:43Z")

</div>

I would like the output files of my program to have the same label as the input files. So I used that bellow code, but it doesn’t seems that it’s working. name = name\_data\[12:-6\] write(ML, "myResults/Separable\_Linear\_"…

---

## [AbstractTrees needs one more kind of DFS?](https://discourse.julialang.org/t/abstracttrees-needs-one-more-kind-of-dfs/74468)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 8\
**Last updated:** [January 13, 2022, 7:47am UTC](https://discourse.julialang.org/t/abstracttrees-needs-one-more-kind-of-dfs/74468 "2022-01-13T07:47:39Z")

</div>

Here is what a PostOrderDFS does Any\[1,Any\[2,3\]\] ├─ 1 └─ Any\[2,3\] ├─ 2 └─ 3 we will get \[1, 2, 3, \[2, 3\], \[1, \[2, 3\]\]\] . but what I want it to do is \[2, 3, \[2,3\], 1, \[1,\[2,3\]\]\]. It doesn’t appear that Abstract…

---

## [ImageView recent changes](https://discourse.julialang.org/t/imageview-recent-changes/74513)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 5:54am UTC](https://discourse.julialang.org/t/imageview-recent-changes/74513 "2022-01-13T05:54:53Z")

</div>

I am pretty sure that the following was working not so long ago with ImageView. ImageView.imshow(RGB\[RGB(0.98,0.98,0.98) RGB(0.98,0.98,0.98); RGB(0.98,0.98,0.98) RGB(0.98,0.98,0.98)\]) Now with julia 1.6.2 and ImageVie…

---

## [So I just kept Ctlr+clicked(vscode) my left mouse on "+" until add\_int(x, y)](https://discourse.julialang.org/t/so-i-just-kept-ctlr-clicked-vscode-my-left-mouse-on-until-add-int-x-y/74528)

<div class="topic-metadata">

**Author:** [@frydaydeep](https://discourse.julialang.org/u/frydaydeep)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 5:25am UTC](https://discourse.julialang.org/t/so-i-just-kept-ctlr-clicked-vscode-my-left-mouse-on-until-add-int-x-y/74528 "2022-01-13T05:25:59Z")

</div>

\## integer comparisons ## (\<)(x::T, y::T) where {T\<:BitSigned} = slt\_int(x, y) (-)(x::BitInteger) = neg\_int(x) (-)(x::T, y::T) where {T\<:BitInteger} = sub\_int(x, y) (+)(x::T, y::T) where {T\<:BitInte…

---

## [Intro to Julia course: Plotting: plotlyjs yields blank?](https://discourse.julialang.org/t/intro-to-julia-course-plotting-plotlyjs-yields-blank/74526)

<div class="topic-metadata">

**Author:** [@drscotthawley](https://discourse.julialang.org/u/drscotthawley)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 5:06am UTC](https://discourse.julialang.org/t/intro-to-julia-course-plotting-plotlyjs-yields-blank/74526 "2022-01-13T05:06:11Z")

</div>

Hi, during the lecture on plotting, Plotting | JuliaAcademy (ca. 3 minutes in), she switches over to the plotlyjs() backend. When I try that, I get only a blank area instead of a plot. This is whether I use the “pirate…

---

## [Help optimizing IPFP algorithm](https://discourse.julialang.org/t/help-optimizing-ipfp-algorithm/74376)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 6\
**Last updated:** [January 13, 2022, 3:56am UTC](https://discourse.julialang.org/t/help-optimizing-ipfp-algorithm/74376 "2022-01-13T03:56:38Z")

</div>

I’m trying to speed up this version of the IPFP algorithm, which alternates between solving 2 systems of nonlinear equations until convergence: using NLsolve using LinearAlgebra const szAge = 64 - 19 + 1 const szE = 2 …

---

## [What nonlinear solvers are available?](https://discourse.julialang.org/t/what-nonlinear-solvers-are-available/69801)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 10\
**Last updated:** [January 11, 2022, 5:37am UTC](https://discourse.julialang.org/t/what-nonlinear-solvers-are-available/69801 "2022-01-11T05:37:56Z")

</div>

I am trying to test nonlinear systems solvers, preferably with lots of available algorithms (analogous to the packages Optim.jl and NLopt.jl for optimization). I know of NLsolve.jl, IntervalRootFinding.jl, and NonlinearS…

---

## [Creating Animated Makie Plot in Pluto](https://discourse.julialang.org/t/creating-animated-makie-plot-in-pluto/74464)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 2\
**Last updated:** [January 13, 2022, 3:00am UTC](https://discourse.julialang.org/t/creating-animated-makie-plot-in-pluto/74464 "2022-01-13T03:00:55Z")

</div>

Hello, I’d like to embed an animation in my pluto NB. I don’t want to create an MP4 (if possible) - I just want the animation to loop. The animation itself is just a line plot. I tried following the post here. My MWE is…

---

## [Stochastic Differential Equation with positive-only noise?](https://discourse.julialang.org/t/stochastic-differential-equation-with-positive-only-noise/74517)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 1\
**Last updated:** [January 13, 2022, 1:45am UTC](https://discourse.julialang.org/t/stochastic-differential-equation-with-positive-only-noise/74517 "2022-01-13T01:45:26Z")

</div>

This may be more of a math question, but are there methods available for solving stochastic differential equations with positive only noise? I’ve been tinkering around with an interesting scalar system that includes the …

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

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